1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.13 |
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
6 | # |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | # Defaults: |
---|
11 | ac_help= |
---|
12 | ac_default_prefix=/usr/local |
---|
13 | # Any additions from configure.in: |
---|
14 | ac_help="$ac_help |
---|
15 | --with-debug build with debugging options turned on" |
---|
16 | ac_help="$ac_help |
---|
17 | --with-Singular build for use with Singular" |
---|
18 | ac_help="$ac_help |
---|
19 | --with-Singularerror use error reporting from Singular" |
---|
20 | ac_help="$ac_help |
---|
21 | --with-NOSTREAMIO : do not require iostream include nor library" |
---|
22 | |
---|
23 | # Initialize some variables set by options. |
---|
24 | # The variables have the same names as the options, with |
---|
25 | # dashes changed to underlines. |
---|
26 | build=NONE |
---|
27 | cache_file=./config.cache |
---|
28 | exec_prefix=NONE |
---|
29 | host=NONE |
---|
30 | no_create= |
---|
31 | nonopt=NONE |
---|
32 | no_recursion= |
---|
33 | prefix=NONE |
---|
34 | program_prefix=NONE |
---|
35 | program_suffix=NONE |
---|
36 | program_transform_name=s,x,x, |
---|
37 | silent= |
---|
38 | site= |
---|
39 | srcdir= |
---|
40 | target=NONE |
---|
41 | verbose= |
---|
42 | x_includes=NONE |
---|
43 | x_libraries=NONE |
---|
44 | bindir='${exec_prefix}/bin' |
---|
45 | sbindir='${exec_prefix}/sbin' |
---|
46 | libexecdir='${exec_prefix}/libexec' |
---|
47 | datadir='${prefix}/share' |
---|
48 | sysconfdir='${prefix}/etc' |
---|
49 | sharedstatedir='${prefix}/com' |
---|
50 | localstatedir='${prefix}/var' |
---|
51 | libdir='${exec_prefix}/lib' |
---|
52 | includedir='${prefix}/include' |
---|
53 | oldincludedir='/usr/include' |
---|
54 | infodir='${prefix}/info' |
---|
55 | mandir='${prefix}/man' |
---|
56 | |
---|
57 | # Initialize some other variables. |
---|
58 | subdirs= |
---|
59 | MFLAGS= MAKEFLAGS= |
---|
60 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
61 | # Maximum number of lines to put in a shell here document. |
---|
62 | ac_max_here_lines=12 |
---|
63 | |
---|
64 | ac_prev= |
---|
65 | for ac_option |
---|
66 | do |
---|
67 | |
---|
68 | # If the previous option needs an argument, assign it. |
---|
69 | if test -n "$ac_prev"; then |
---|
70 | eval "$ac_prev=\$ac_option" |
---|
71 | ac_prev= |
---|
72 | continue |
---|
73 | fi |
---|
74 | |
---|
75 | case "$ac_option" in |
---|
76 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
77 | *) ac_optarg= ;; |
---|
78 | esac |
---|
79 | |
---|
80 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
81 | |
---|
82 | case "$ac_option" in |
---|
83 | |
---|
84 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
85 | ac_prev=bindir ;; |
---|
86 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
87 | bindir="$ac_optarg" ;; |
---|
88 | |
---|
89 | -build | --build | --buil | --bui | --bu) |
---|
90 | ac_prev=build ;; |
---|
91 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
92 | build="$ac_optarg" ;; |
---|
93 | |
---|
94 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
95 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
96 | ac_prev=cache_file ;; |
---|
97 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
98 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
99 | cache_file="$ac_optarg" ;; |
---|
100 | |
---|
101 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
102 | ac_prev=datadir ;; |
---|
103 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
104 | | --da=*) |
---|
105 | datadir="$ac_optarg" ;; |
---|
106 | |
---|
107 | -disable-* | --disable-*) |
---|
108 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
109 | # Reject names that are not valid shell variable names. |
---|
110 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
111 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
112 | fi |
---|
113 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
114 | eval "enable_${ac_feature}=no" ;; |
---|
115 | |
---|
116 | -enable-* | --enable-*) |
---|
117 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
118 | # Reject names that are not valid shell variable names. |
---|
119 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
120 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
121 | fi |
---|
122 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
123 | case "$ac_option" in |
---|
124 | *=*) ;; |
---|
125 | *) ac_optarg=yes ;; |
---|
126 | esac |
---|
127 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
128 | |
---|
129 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
130 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
131 | | --exec | --exe | --ex) |
---|
132 | ac_prev=exec_prefix ;; |
---|
133 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
134 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
135 | | --exec=* | --exe=* | --ex=*) |
---|
136 | exec_prefix="$ac_optarg" ;; |
---|
137 | |
---|
138 | -gas | --gas | --ga | --g) |
---|
139 | # Obsolete; use --with-gas. |
---|
140 | with_gas=yes ;; |
---|
141 | |
---|
142 | -help | --help | --hel | --he) |
---|
143 | # Omit some internal or obsolete options to make the list less imposing. |
---|
144 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
145 | cat << EOF |
---|
146 | Usage: configure [options] [host] |
---|
147 | Options: [defaults in brackets after descriptions] |
---|
148 | Configuration: |
---|
149 | --cache-file=FILE cache test results in FILE |
---|
150 | --help print this message |
---|
151 | --no-create do not create output files |
---|
152 | --quiet, --silent do not print \`checking...' messages |
---|
153 | --version print the version of autoconf that created configure |
---|
154 | Directory and file names: |
---|
155 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
156 | [$ac_default_prefix] |
---|
157 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
158 | [same as prefix] |
---|
159 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
160 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
161 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
162 | --datadir=DIR read-only architecture-independent data in DIR |
---|
163 | [PREFIX/share] |
---|
164 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
165 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
166 | [PREFIX/com] |
---|
167 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
168 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
169 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
170 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
171 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
172 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
173 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
174 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
175 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
176 | --program-transform-name=PROGRAM |
---|
177 | run sed PROGRAM on installed program names |
---|
178 | EOF |
---|
179 | cat << EOF |
---|
180 | Host type: |
---|
181 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
182 | --host=HOST configure for HOST [guessed] |
---|
183 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
184 | Features and packages: |
---|
185 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
186 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
187 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
188 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
189 | --x-includes=DIR X include files are in DIR |
---|
190 | --x-libraries=DIR X library files are in DIR |
---|
191 | EOF |
---|
192 | if test -n "$ac_help"; then |
---|
193 | echo "--enable and --with options recognized:$ac_help" |
---|
194 | fi |
---|
195 | exit 0 ;; |
---|
196 | |
---|
197 | -host | --host | --hos | --ho) |
---|
198 | ac_prev=host ;; |
---|
199 | -host=* | --host=* | --hos=* | --ho=*) |
---|
200 | host="$ac_optarg" ;; |
---|
201 | |
---|
202 | -includedir | --includedir | --includedi | --included | --include \ |
---|
203 | | --includ | --inclu | --incl | --inc) |
---|
204 | ac_prev=includedir ;; |
---|
205 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
206 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
207 | includedir="$ac_optarg" ;; |
---|
208 | |
---|
209 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
210 | ac_prev=infodir ;; |
---|
211 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
212 | infodir="$ac_optarg" ;; |
---|
213 | |
---|
214 | -libdir | --libdir | --libdi | --libd) |
---|
215 | ac_prev=libdir ;; |
---|
216 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
217 | libdir="$ac_optarg" ;; |
---|
218 | |
---|
219 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
220 | | --libexe | --libex | --libe) |
---|
221 | ac_prev=libexecdir ;; |
---|
222 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
223 | | --libexe=* | --libex=* | --libe=*) |
---|
224 | libexecdir="$ac_optarg" ;; |
---|
225 | |
---|
226 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
227 | | --localstate | --localstat | --localsta | --localst \ |
---|
228 | | --locals | --local | --loca | --loc | --lo) |
---|
229 | ac_prev=localstatedir ;; |
---|
230 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
231 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
232 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
233 | localstatedir="$ac_optarg" ;; |
---|
234 | |
---|
235 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
236 | ac_prev=mandir ;; |
---|
237 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
238 | mandir="$ac_optarg" ;; |
---|
239 | |
---|
240 | -nfp | --nfp | --nf) |
---|
241 | # Obsolete; use --without-fp. |
---|
242 | with_fp=no ;; |
---|
243 | |
---|
244 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
245 | | --no-cr | --no-c) |
---|
246 | no_create=yes ;; |
---|
247 | |
---|
248 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
249 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
250 | no_recursion=yes ;; |
---|
251 | |
---|
252 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
253 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
254 | | --oldin | --oldi | --old | --ol | --o) |
---|
255 | ac_prev=oldincludedir ;; |
---|
256 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
257 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
258 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
259 | oldincludedir="$ac_optarg" ;; |
---|
260 | |
---|
261 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
262 | ac_prev=prefix ;; |
---|
263 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
264 | prefix="$ac_optarg" ;; |
---|
265 | |
---|
266 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
267 | | --program-pre | --program-pr | --program-p) |
---|
268 | ac_prev=program_prefix ;; |
---|
269 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
270 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
271 | program_prefix="$ac_optarg" ;; |
---|
272 | |
---|
273 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
274 | | --program-suf | --program-su | --program-s) |
---|
275 | ac_prev=program_suffix ;; |
---|
276 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
277 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
278 | program_suffix="$ac_optarg" ;; |
---|
279 | |
---|
280 | -program-transform-name | --program-transform-name \ |
---|
281 | | --program-transform-nam | --program-transform-na \ |
---|
282 | | --program-transform-n | --program-transform- \ |
---|
283 | | --program-transform | --program-transfor \ |
---|
284 | | --program-transfo | --program-transf \ |
---|
285 | | --program-trans | --program-tran \ |
---|
286 | | --progr-tra | --program-tr | --program-t) |
---|
287 | ac_prev=program_transform_name ;; |
---|
288 | -program-transform-name=* | --program-transform-name=* \ |
---|
289 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
290 | | --program-transform-n=* | --program-transform-=* \ |
---|
291 | | --program-transform=* | --program-transfor=* \ |
---|
292 | | --program-transfo=* | --program-transf=* \ |
---|
293 | | --program-trans=* | --program-tran=* \ |
---|
294 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
295 | program_transform_name="$ac_optarg" ;; |
---|
296 | |
---|
297 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
298 | | -silent | --silent | --silen | --sile | --sil) |
---|
299 | silent=yes ;; |
---|
300 | |
---|
301 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
302 | ac_prev=sbindir ;; |
---|
303 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
304 | | --sbi=* | --sb=*) |
---|
305 | sbindir="$ac_optarg" ;; |
---|
306 | |
---|
307 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
308 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
309 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
310 | | --sha | --sh) |
---|
311 | ac_prev=sharedstatedir ;; |
---|
312 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
313 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
314 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
315 | | --sha=* | --sh=*) |
---|
316 | sharedstatedir="$ac_optarg" ;; |
---|
317 | |
---|
318 | -site | --site | --sit) |
---|
319 | ac_prev=site ;; |
---|
320 | -site=* | --site=* | --sit=*) |
---|
321 | site="$ac_optarg" ;; |
---|
322 | |
---|
323 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
324 | ac_prev=srcdir ;; |
---|
325 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
326 | srcdir="$ac_optarg" ;; |
---|
327 | |
---|
328 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
329 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
330 | ac_prev=sysconfdir ;; |
---|
331 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
332 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
333 | sysconfdir="$ac_optarg" ;; |
---|
334 | |
---|
335 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
336 | ac_prev=target ;; |
---|
337 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
338 | target="$ac_optarg" ;; |
---|
339 | |
---|
340 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
341 | verbose=yes ;; |
---|
342 | |
---|
343 | -version | --version | --versio | --versi | --vers) |
---|
344 | echo "configure generated by autoconf version 2.13" |
---|
345 | exit 0 ;; |
---|
346 | |
---|
347 | -with-* | --with-*) |
---|
348 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
349 | # Reject names that are not valid shell variable names. |
---|
350 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
351 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
352 | fi |
---|
353 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
354 | case "$ac_option" in |
---|
355 | *=*) ;; |
---|
356 | *) ac_optarg=yes ;; |
---|
357 | esac |
---|
358 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
359 | |
---|
360 | -without-* | --without-*) |
---|
361 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
362 | # Reject names that are not valid shell variable names. |
---|
363 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
364 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
365 | fi |
---|
366 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
367 | eval "with_${ac_package}=no" ;; |
---|
368 | |
---|
369 | --x) |
---|
370 | # Obsolete; use --with-x. |
---|
371 | with_x=yes ;; |
---|
372 | |
---|
373 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
374 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
375 | ac_prev=x_includes ;; |
---|
376 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
377 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
378 | x_includes="$ac_optarg" ;; |
---|
379 | |
---|
380 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
381 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
382 | ac_prev=x_libraries ;; |
---|
383 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
384 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
385 | x_libraries="$ac_optarg" ;; |
---|
386 | |
---|
387 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
388 | ;; |
---|
389 | |
---|
390 | *) |
---|
391 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
392 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
393 | fi |
---|
394 | if test "x$nonopt" != xNONE; then |
---|
395 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
396 | fi |
---|
397 | nonopt="$ac_option" |
---|
398 | ;; |
---|
399 | |
---|
400 | esac |
---|
401 | done |
---|
402 | |
---|
403 | if test -n "$ac_prev"; then |
---|
404 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
405 | fi |
---|
406 | |
---|
407 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
408 | |
---|
409 | # File descriptor usage: |
---|
410 | # 0 standard input |
---|
411 | # 1 file creation |
---|
412 | # 2 errors and warnings |
---|
413 | # 3 some systems may open it to /dev/tty |
---|
414 | # 4 used on the Kubota Titan |
---|
415 | # 6 checking for... messages and results |
---|
416 | # 5 compiler messages saved in config.log |
---|
417 | if test "$silent" = yes; then |
---|
418 | exec 6>/dev/null |
---|
419 | else |
---|
420 | exec 6>&1 |
---|
421 | fi |
---|
422 | exec 5>./config.log |
---|
423 | |
---|
424 | echo "\ |
---|
425 | This file contains any messages produced by compilers while |
---|
426 | running configure, to aid debugging if configure makes a mistake. |
---|
427 | " 1>&5 |
---|
428 | |
---|
429 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
430 | # Also quote any args containing shell metacharacters. |
---|
431 | ac_configure_args= |
---|
432 | for ac_arg |
---|
433 | do |
---|
434 | case "$ac_arg" in |
---|
435 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
436 | | --no-cr | --no-c) ;; |
---|
437 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
438 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
439 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
440 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
441 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
442 | esac |
---|
443 | done |
---|
444 | |
---|
445 | # NLS nuisances. |
---|
446 | # Only set these to C if already set. These must not be set unconditionally |
---|
447 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
448 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
449 | # Non-C LC_CTYPE values break the ctype check. |
---|
450 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
451 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
452 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
453 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
454 | |
---|
455 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
456 | rm -rf conftest* confdefs.h |
---|
457 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
458 | echo > confdefs.h |
---|
459 | |
---|
460 | # A filename unique to this package, relative to the directory that |
---|
461 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
462 | ac_unique_file=factor.h |
---|
463 | |
---|
464 | # Find the source files, if location was not specified. |
---|
465 | if test -z "$srcdir"; then |
---|
466 | ac_srcdir_defaulted=yes |
---|
467 | # Try the directory containing this script, then its parent. |
---|
468 | ac_prog=$0 |
---|
469 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
470 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
471 | srcdir=$ac_confdir |
---|
472 | if test ! -r $srcdir/$ac_unique_file; then |
---|
473 | srcdir=.. |
---|
474 | fi |
---|
475 | else |
---|
476 | ac_srcdir_defaulted=no |
---|
477 | fi |
---|
478 | if test ! -r $srcdir/$ac_unique_file; then |
---|
479 | if test "$ac_srcdir_defaulted" = yes; then |
---|
480 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
481 | else |
---|
482 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
483 | fi |
---|
484 | fi |
---|
485 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
486 | |
---|
487 | # Prefer explicitly selected file to automatically selected ones. |
---|
488 | if test -z "$CONFIG_SITE"; then |
---|
489 | if test "x$prefix" != xNONE; then |
---|
490 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
491 | else |
---|
492 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
493 | fi |
---|
494 | fi |
---|
495 | for ac_site_file in $CONFIG_SITE; do |
---|
496 | if test -r "$ac_site_file"; then |
---|
497 | echo "loading site script $ac_site_file" |
---|
498 | . "$ac_site_file" |
---|
499 | fi |
---|
500 | done |
---|
501 | |
---|
502 | if test -r "$cache_file"; then |
---|
503 | echo "loading cache $cache_file" |
---|
504 | . $cache_file |
---|
505 | else |
---|
506 | echo "creating cache $cache_file" |
---|
507 | > $cache_file |
---|
508 | fi |
---|
509 | |
---|
510 | ac_ext=c |
---|
511 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
512 | ac_cpp='$CPP $CPPFLAGS' |
---|
513 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
514 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
515 | cross_compiling=$ac_cv_prog_cc_cross |
---|
516 | |
---|
517 | ac_exeext= |
---|
518 | ac_objext=o |
---|
519 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
520 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
521 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
522 | ac_n= ac_c=' |
---|
523 | ' ac_t=' ' |
---|
524 | else |
---|
525 | ac_n=-n ac_c= ac_t= |
---|
526 | fi |
---|
527 | else |
---|
528 | ac_n= ac_c='\c' ac_t= |
---|
529 | fi |
---|
530 | |
---|
531 | |
---|
532 | |
---|
533 | |
---|
534 | libfac_name="\"Factorization and characteristic sets library\"" |
---|
535 | |
---|
536 | libfac_version="3.1.0" |
---|
537 | |
---|
538 | libfac_date="\"Aug 2008\"" |
---|
539 | |
---|
540 | libfac_author="\"M. Messollen\"" |
---|
541 | |
---|
542 | |
---|
543 | libfac="libfac" |
---|
544 | |
---|
545 | libfac_g="libfac-g" |
---|
546 | |
---|
547 | libsingfac="libsingfac" |
---|
548 | |
---|
549 | libsingfac_g="libsingfac-g" |
---|
550 | |
---|
551 | factorH="factor.h" |
---|
552 | |
---|
553 | |
---|
554 | |
---|
555 | # Check whether --with-debug or --without-debug was given. |
---|
556 | if test "${with_debug+set}" = set; then |
---|
557 | withval="$with_debug" |
---|
558 | : |
---|
559 | fi |
---|
560 | |
---|
561 | |
---|
562 | # Check whether --with-Singular or --without-Singular was given. |
---|
563 | if test "${with_Singular+set}" = set; then |
---|
564 | withval="$with_Singular" |
---|
565 | : |
---|
566 | fi |
---|
567 | |
---|
568 | |
---|
569 | if test "$with_Singular" = yes; then |
---|
570 | cat >> confdefs.h <<\EOF |
---|
571 | #define SINGULAR 1 |
---|
572 | EOF |
---|
573 | |
---|
574 | cat >> confdefs.h <<\EOF |
---|
575 | #define NOSTREAMIO 1 |
---|
576 | EOF |
---|
577 | |
---|
578 | if test "$with_debug" = yes; then |
---|
579 | targetname="libsingfac-g" |
---|
580 | else |
---|
581 | targetname="libsingfac" |
---|
582 | fi |
---|
583 | else |
---|
584 | if test "$with_debug" = yes; then |
---|
585 | targetname="libfac-g" |
---|
586 | else |
---|
587 | targetname="libfac" |
---|
588 | fi |
---|
589 | fi |
---|
590 | |
---|
591 | # Check whether --with-Singularerror or --without-Singularerror was given. |
---|
592 | if test "${with_Singularerror+set}" = set; then |
---|
593 | withval="$with_Singularerror" |
---|
594 | : |
---|
595 | fi |
---|
596 | |
---|
597 | |
---|
598 | if test "$with_Singularerror" = yes; then |
---|
599 | cat >> confdefs.h <<\EOF |
---|
600 | #define SINGULAR_ERROR 1 |
---|
601 | EOF |
---|
602 | |
---|
603 | fi |
---|
604 | |
---|
605 | # Check whether --with-NOSTREAMIO or --without-NOSTREAMIO was given. |
---|
606 | if test "${with_NOSTREAMIO+set}" = set; then |
---|
607 | withval="$with_NOSTREAMIO" |
---|
608 | : |
---|
609 | fi |
---|
610 | |
---|
611 | |
---|
612 | if test "$with_NOSTREAMIO" = yes; then |
---|
613 | cat >> confdefs.h <<\EOF |
---|
614 | #define NOSTREAMIO 1 |
---|
615 | EOF |
---|
616 | |
---|
617 | fi |
---|
618 | |
---|
619 | if (test "x${prefix} != xNONE && test "${prefix} != "/usr/local") || \ |
---|
620 | test "${ac_default_prefix}" != "/usr/local" || \ |
---|
621 | test "${includedir}" != '${prefix}/include'; then |
---|
622 | CPPFLAGS="-I${includedir} ${CPPFLAGS}" |
---|
623 | fi |
---|
624 | CPPFLAGS="-I./factor ${CPPFLAGS}" |
---|
625 | |
---|
626 | if (test "x${prefix} != xNONE && test "${prefix} != "/usr/local") || \ |
---|
627 | test "${ac_default_prefix}" != "/usr/local" || \ |
---|
628 | test "${libdir}" != '${prefix}/lib'; then |
---|
629 | LDFLAGS="-L${libdir} ${LDFLAGS}" |
---|
630 | fi |
---|
631 | LDFLAGS="-L. ${LDFLAGS}" |
---|
632 | |
---|
633 | if test "${CXXFLAGS+set}" != set; then |
---|
634 | ac_cxxflags_set=no |
---|
635 | if test "$with_debug" = yes; then |
---|
636 | CXXFLAGS="-g" |
---|
637 | else |
---|
638 | CXXFLAGS="-O" |
---|
639 | cat >> confdefs.h <<\EOF |
---|
640 | #define NDEBUG 1 |
---|
641 | EOF |
---|
642 | |
---|
643 | fi |
---|
644 | fi |
---|
645 | |
---|
646 | ac_ext=C |
---|
647 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
648 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
649 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
650 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
651 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
652 | |
---|
653 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
---|
654 | do |
---|
655 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
656 | set dummy $ac_prog; ac_word=$2 |
---|
657 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
658 | echo "configure:659: checking for $ac_word" >&5 |
---|
659 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
---|
660 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
661 | else |
---|
662 | if test -n "$CXX"; then |
---|
663 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
664 | else |
---|
665 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
666 | ac_dummy="$PATH" |
---|
667 | for ac_dir in $ac_dummy; do |
---|
668 | test -z "$ac_dir" && ac_dir=. |
---|
669 | if test -f $ac_dir/$ac_word; then |
---|
670 | ac_cv_prog_CXX="$ac_prog" |
---|
671 | break |
---|
672 | fi |
---|
673 | done |
---|
674 | IFS="$ac_save_ifs" |
---|
675 | fi |
---|
676 | fi |
---|
677 | CXX="$ac_cv_prog_CXX" |
---|
678 | if test -n "$CXX"; then |
---|
679 | echo "$ac_t""$CXX" 1>&6 |
---|
680 | else |
---|
681 | echo "$ac_t""no" 1>&6 |
---|
682 | fi |
---|
683 | |
---|
684 | test -n "$CXX" && break |
---|
685 | done |
---|
686 | test -n "$CXX" || CXX="gcc" |
---|
687 | |
---|
688 | |
---|
689 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
690 | echo "configure:691: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
---|
691 | |
---|
692 | ac_ext=C |
---|
693 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
694 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
695 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
696 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
697 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
698 | |
---|
699 | cat > conftest.$ac_ext << EOF |
---|
700 | |
---|
701 | #line 702 "configure" |
---|
702 | #include "confdefs.h" |
---|
703 | |
---|
704 | int main(){return(0);} |
---|
705 | EOF |
---|
706 | if { (eval echo configure:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
707 | ac_cv_prog_cxx_works=yes |
---|
708 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
709 | if (./conftest; exit) 2>/dev/null; then |
---|
710 | ac_cv_prog_cxx_cross=no |
---|
711 | else |
---|
712 | ac_cv_prog_cxx_cross=yes |
---|
713 | fi |
---|
714 | else |
---|
715 | echo "configure: failed program was:" >&5 |
---|
716 | cat conftest.$ac_ext >&5 |
---|
717 | ac_cv_prog_cxx_works=no |
---|
718 | fi |
---|
719 | rm -fr conftest* |
---|
720 | ac_ext=C |
---|
721 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
722 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
723 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
724 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
725 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
726 | |
---|
727 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
---|
728 | if test $ac_cv_prog_cxx_works = no; then |
---|
729 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
---|
730 | fi |
---|
731 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
732 | echo "configure:733: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
733 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
---|
734 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
735 | |
---|
736 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
737 | echo "configure:738: checking whether we are using GNU C++" >&5 |
---|
738 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
739 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
740 | else |
---|
741 | cat > conftest.C <<EOF |
---|
742 | #ifdef __GNUC__ |
---|
743 | yes; |
---|
744 | #endif |
---|
745 | EOF |
---|
746 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
747 | ac_cv_prog_gxx=yes |
---|
748 | else |
---|
749 | ac_cv_prog_gxx=no |
---|
750 | fi |
---|
751 | fi |
---|
752 | |
---|
753 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
754 | |
---|
755 | if test $ac_cv_prog_gxx = yes; then |
---|
756 | GXX=yes |
---|
757 | else |
---|
758 | GXX= |
---|
759 | fi |
---|
760 | |
---|
761 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
---|
762 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
763 | CXXFLAGS= |
---|
764 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
765 | echo "configure:766: checking whether ${CXX-g++} accepts -g" >&5 |
---|
766 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
---|
767 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
768 | else |
---|
769 | echo 'void f(){}' > conftest.cc |
---|
770 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
771 | ac_cv_prog_cxx_g=yes |
---|
772 | else |
---|
773 | ac_cv_prog_cxx_g=no |
---|
774 | fi |
---|
775 | rm -f conftest* |
---|
776 | |
---|
777 | fi |
---|
778 | |
---|
779 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
---|
780 | if test "$ac_test_CXXFLAGS" = set; then |
---|
781 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
782 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
783 | if test "$GXX" = yes; then |
---|
784 | CXXFLAGS="-g -O2" |
---|
785 | else |
---|
786 | CXXFLAGS="-g" |
---|
787 | fi |
---|
788 | else |
---|
789 | if test "$GXX" = yes; then |
---|
790 | CXXFLAGS="-O2" |
---|
791 | else |
---|
792 | CXXFLAGS= |
---|
793 | fi |
---|
794 | fi |
---|
795 | |
---|
796 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
---|
797 | echo "configure:798: checking how to run the C++ preprocessor" >&5 |
---|
798 | if test -z "$CXXCPP"; then |
---|
799 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
---|
800 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
801 | else |
---|
802 | ac_ext=C |
---|
803 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
804 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
805 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
806 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
807 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
808 | CXXCPP="${CXX-g++} -E" |
---|
809 | cat > conftest.$ac_ext <<EOF |
---|
810 | #line 811 "configure" |
---|
811 | #include "confdefs.h" |
---|
812 | #include <stdlib.h> |
---|
813 | EOF |
---|
814 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
815 | { (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
816 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
817 | if test -z "$ac_err"; then |
---|
818 | : |
---|
819 | else |
---|
820 | echo "$ac_err" >&5 |
---|
821 | echo "configure: failed program was:" >&5 |
---|
822 | cat conftest.$ac_ext >&5 |
---|
823 | rm -rf conftest* |
---|
824 | CXXCPP=/lib/cpp |
---|
825 | fi |
---|
826 | rm -f conftest* |
---|
827 | ac_cv_prog_CXXCPP="$CXXCPP" |
---|
828 | ac_ext=C |
---|
829 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
830 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
831 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
832 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
833 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
834 | fi |
---|
835 | fi |
---|
836 | CXXCPP="$ac_cv_prog_CXXCPP" |
---|
837 | echo "$ac_t""$CXXCPP" 1>&6 |
---|
838 | |
---|
839 | |
---|
840 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
841 | echo "configure:842: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
842 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
843 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
844 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
845 | else |
---|
846 | cat > conftestmake <<\EOF |
---|
847 | all: |
---|
848 | @echo 'ac_maketemp="${MAKE}"' |
---|
849 | EOF |
---|
850 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
851 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
852 | if test -n "$ac_maketemp"; then |
---|
853 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
854 | else |
---|
855 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
856 | fi |
---|
857 | rm -f conftestmake |
---|
858 | fi |
---|
859 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
860 | echo "$ac_t""yes" 1>&6 |
---|
861 | SET_MAKE= |
---|
862 | else |
---|
863 | echo "$ac_t""no" 1>&6 |
---|
864 | SET_MAKE="MAKE=${MAKE-make}" |
---|
865 | fi |
---|
866 | |
---|
867 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
868 | set dummy ranlib; ac_word=$2 |
---|
869 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
870 | echo "configure:871: checking for $ac_word" >&5 |
---|
871 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
872 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
873 | else |
---|
874 | if test -n "$RANLIB"; then |
---|
875 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
876 | else |
---|
877 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
878 | ac_dummy="$PATH" |
---|
879 | for ac_dir in $ac_dummy; do |
---|
880 | test -z "$ac_dir" && ac_dir=. |
---|
881 | if test -f $ac_dir/$ac_word; then |
---|
882 | ac_cv_prog_RANLIB="ranlib" |
---|
883 | break |
---|
884 | fi |
---|
885 | done |
---|
886 | IFS="$ac_save_ifs" |
---|
887 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
888 | fi |
---|
889 | fi |
---|
890 | RANLIB="$ac_cv_prog_RANLIB" |
---|
891 | if test -n "$RANLIB"; then |
---|
892 | echo "$ac_t""$RANLIB" 1>&6 |
---|
893 | else |
---|
894 | echo "$ac_t""no" 1>&6 |
---|
895 | fi |
---|
896 | |
---|
897 | # Extract the first word of "ar", so it can be a program name with args. |
---|
898 | set dummy ar; ac_word=$2 |
---|
899 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
900 | echo "configure:901: checking for $ac_word" >&5 |
---|
901 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
---|
902 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
903 | else |
---|
904 | if test -n "$AR"; then |
---|
905 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
906 | else |
---|
907 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
908 | ac_dummy="$PATH" |
---|
909 | for ac_dir in $ac_dummy; do |
---|
910 | test -z "$ac_dir" && ac_dir=. |
---|
911 | if test -f $ac_dir/$ac_word; then |
---|
912 | ac_cv_prog_AR="ar" |
---|
913 | break |
---|
914 | fi |
---|
915 | done |
---|
916 | IFS="$ac_save_ifs" |
---|
917 | fi |
---|
918 | fi |
---|
919 | AR="$ac_cv_prog_AR" |
---|
920 | if test -n "$AR"; then |
---|
921 | echo "$ac_t""$AR" 1>&6 |
---|
922 | else |
---|
923 | echo "$ac_t""no" 1>&6 |
---|
924 | fi |
---|
925 | |
---|
926 | if test -z "$AR"; then |
---|
927 | { echo "configure: error: Need ar" 1>&2; exit 1; } |
---|
928 | fi |
---|
929 | |
---|
930 | |
---|
931 | ac_safe=`echo "factory.h" | sed 'y%./+-%__p_%'` |
---|
932 | echo $ac_n "checking for factory.h""... $ac_c" 1>&6 |
---|
933 | echo "configure:934: checking for factory.h" >&5 |
---|
934 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
935 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
936 | else |
---|
937 | cat > conftest.$ac_ext <<EOF |
---|
938 | #line 939 "configure" |
---|
939 | #include "confdefs.h" |
---|
940 | #include <factory.h> |
---|
941 | EOF |
---|
942 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
943 | { (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
944 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
945 | if test -z "$ac_err"; then |
---|
946 | rm -rf conftest* |
---|
947 | eval "ac_cv_header_$ac_safe=yes" |
---|
948 | else |
---|
949 | echo "$ac_err" >&5 |
---|
950 | echo "configure: failed program was:" >&5 |
---|
951 | cat conftest.$ac_ext >&5 |
---|
952 | rm -rf conftest* |
---|
953 | eval "ac_cv_header_$ac_safe=no" |
---|
954 | fi |
---|
955 | rm -f conftest* |
---|
956 | fi |
---|
957 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
958 | echo "$ac_t""yes" 1>&6 |
---|
959 | : |
---|
960 | else |
---|
961 | echo "$ac_t""no" 1>&6 |
---|
962 | echo "configure: warning: factory.h not found! Install factory before building libfac!" 1>&2 |
---|
963 | fi |
---|
964 | |
---|
965 | |
---|
966 | |
---|
967 | |
---|
968 | if test x${GXX} = xyes; then |
---|
969 | |
---|
970 | if test "$ac_cxxflags_set" = no; then |
---|
971 | if test "$with_debug" = yes; then |
---|
972 | CXXFLAGS="-O -g" |
---|
973 | else |
---|
974 | CXXFLAGS="-O3 " |
---|
975 | fi |
---|
976 | # check whether CXX accepts -fno-rtti |
---|
977 | |
---|
978 | ac_ext=C |
---|
979 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
980 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
981 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
982 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
983 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
984 | |
---|
985 | echo $ac_n "checking whether gcc accepts -fno-rtti""... $ac_c" 1>&6 |
---|
986 | echo "configure:987: checking whether gcc accepts -fno-rtti" >&5 |
---|
987 | tmp_flags=${CXXFLAGS} |
---|
988 | CXXFLAGS="${CXXFLAGS} -fno-rtti" |
---|
989 | if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then |
---|
990 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
991 | else |
---|
992 | cat > conftest.$ac_ext <<EOF |
---|
993 | #line 994 "configure" |
---|
994 | #include "confdefs.h" |
---|
995 | |
---|
996 | int main() { |
---|
997 | |
---|
998 | ; return 0; } |
---|
999 | EOF |
---|
1000 | if { (eval echo configure:1001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1001 | rm -rf conftest* |
---|
1002 | ac_cv_cxx_have_rtti=yes |
---|
1003 | else |
---|
1004 | echo "configure: failed program was:" >&5 |
---|
1005 | cat conftest.$ac_ext >&5 |
---|
1006 | rm -rf conftest* |
---|
1007 | ac_cv_cxx_have_rtti=no |
---|
1008 | fi |
---|
1009 | rm -f conftest* |
---|
1010 | |
---|
1011 | fi |
---|
1012 | |
---|
1013 | echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6 |
---|
1014 | CXXFLAGS=$tmp_flags |
---|
1015 | if test "${ac_cv_cxx_have_rtti}" = yes; then |
---|
1016 | CXXFLAGS="$CXXFLAGS -fno-rtti" |
---|
1017 | fi |
---|
1018 | |
---|
1019 | echo $ac_n "checking whether gcc accepts -fno-exceptions""... $ac_c" 1>&6 |
---|
1020 | echo "configure:1021: checking whether gcc accepts -fno-exceptions" >&5 |
---|
1021 | tmp_flags=${CXXFLAGS} |
---|
1022 | CXXFLAGS="${CXXFLAGS} -fno-exceptions" |
---|
1023 | if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then |
---|
1024 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1025 | else |
---|
1026 | cat > conftest.$ac_ext <<EOF |
---|
1027 | #line 1028 "configure" |
---|
1028 | #include "confdefs.h" |
---|
1029 | |
---|
1030 | int main() { |
---|
1031 | |
---|
1032 | ; return 0; } |
---|
1033 | EOF |
---|
1034 | if { (eval echo configure:1035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1035 | rm -rf conftest* |
---|
1036 | ac_cv_cxx_have_exceptions=yes |
---|
1037 | else |
---|
1038 | echo "configure: failed program was:" >&5 |
---|
1039 | cat conftest.$ac_ext >&5 |
---|
1040 | rm -rf conftest* |
---|
1041 | ac_cv_cxx_have_exceptions=no |
---|
1042 | fi |
---|
1043 | rm -f conftest* |
---|
1044 | |
---|
1045 | fi |
---|
1046 | |
---|
1047 | echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6 |
---|
1048 | CXXFLAGS=$tmp_flags |
---|
1049 | if test "${ac_cv_cxx_have_exceptions}" = yes; then |
---|
1050 | CXXFLAGS="$CXXFLAGS -fno-exceptions" |
---|
1051 | fi |
---|
1052 | |
---|
1053 | |
---|
1054 | ac_ext=C |
---|
1055 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1056 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1057 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1058 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1059 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
1060 | |
---|
1061 | |
---|
1062 | fi |
---|
1063 | CXXTEMPLFLAGS="-fno-implicit-templates" |
---|
1064 | |
---|
1065 | |
---|
1066 | else |
---|
1067 | CXXTEMPFLAGS="" |
---|
1068 | fi |
---|
1069 | |
---|
1070 | |
---|
1071 | trap '' 1 2 15 |
---|
1072 | cat > confcache <<\EOF |
---|
1073 | # This file is a shell script that caches the results of configure |
---|
1074 | # tests run on this system so they can be shared between configure |
---|
1075 | # scripts and configure runs. It is not useful on other systems. |
---|
1076 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
1077 | # |
---|
1078 | # By default, configure uses ./config.cache as the cache file, |
---|
1079 | # creating it if it does not exist already. You can give configure |
---|
1080 | # the --cache-file=FILE option to use a different cache file; that is |
---|
1081 | # what configure does when it calls configure scripts in |
---|
1082 | # subdirectories, so they share the cache. |
---|
1083 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
1084 | # config.status only pays attention to the cache file if you give it the |
---|
1085 | # --recheck option to rerun configure. |
---|
1086 | # |
---|
1087 | EOF |
---|
1088 | # The following way of writing the cache mishandles newlines in values, |
---|
1089 | # but we know of no workaround that is simple, portable, and efficient. |
---|
1090 | # So, don't put newlines in cache variables' values. |
---|
1091 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
1092 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
1093 | (set) 2>&1 | |
---|
1094 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
1095 | *ac_space=\ *) |
---|
1096 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
1097 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
1098 | sed -n \ |
---|
1099 | -e "s/'/'\\\\''/g" \ |
---|
1100 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
1101 | ;; |
---|
1102 | *) |
---|
1103 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
1104 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
1105 | ;; |
---|
1106 | esac >> confcache |
---|
1107 | if cmp -s $cache_file confcache; then |
---|
1108 | : |
---|
1109 | else |
---|
1110 | if test -w $cache_file; then |
---|
1111 | echo "updating cache $cache_file" |
---|
1112 | cat confcache > $cache_file |
---|
1113 | else |
---|
1114 | echo "not updating unwritable cache $cache_file" |
---|
1115 | fi |
---|
1116 | fi |
---|
1117 | rm -f confcache |
---|
1118 | |
---|
1119 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
1120 | |
---|
1121 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
1122 | # Let make expand exec_prefix. |
---|
1123 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
1124 | |
---|
1125 | # Any assignment to VPATH causes Sun make to only execute |
---|
1126 | # the first set of double-colon rules, so remove it if not needed. |
---|
1127 | # If there is a colon in the path, we need to keep it. |
---|
1128 | if test "x$srcdir" = x.; then |
---|
1129 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
1130 | fi |
---|
1131 | |
---|
1132 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
1133 | |
---|
1134 | # Transform confdefs.h into DEFS. |
---|
1135 | # Protect against shell expansion while executing Makefile rules. |
---|
1136 | # Protect against Makefile macro expansion. |
---|
1137 | cat > conftest.defs <<\EOF |
---|
1138 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
1139 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
1140 | s%\[%\\&%g |
---|
1141 | s%\]%\\&%g |
---|
1142 | s%\$%$$%g |
---|
1143 | EOF |
---|
1144 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
1145 | rm -f conftest.defs |
---|
1146 | |
---|
1147 | |
---|
1148 | # Without the "./", some shells look in PATH for config.status. |
---|
1149 | : ${CONFIG_STATUS=./config.status} |
---|
1150 | |
---|
1151 | echo creating $CONFIG_STATUS |
---|
1152 | rm -f $CONFIG_STATUS |
---|
1153 | cat > $CONFIG_STATUS <<EOF |
---|
1154 | #! /bin/sh |
---|
1155 | # Generated automatically by configure. |
---|
1156 | # Run this file to recreate the current configuration. |
---|
1157 | # This directory was configured as follows, |
---|
1158 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
1159 | # |
---|
1160 | # $0 $ac_configure_args |
---|
1161 | # |
---|
1162 | # Compiler output produced by configure, useful for debugging |
---|
1163 | # configure, is in ./config.log if it exists. |
---|
1164 | |
---|
1165 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
1166 | for ac_option |
---|
1167 | do |
---|
1168 | case "\$ac_option" in |
---|
1169 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
1170 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
1171 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
1172 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
1173 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
1174 | exit 0 ;; |
---|
1175 | -help | --help | --hel | --he | --h) |
---|
1176 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
1177 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
1178 | esac |
---|
1179 | done |
---|
1180 | |
---|
1181 | ac_given_srcdir=$srcdir |
---|
1182 | |
---|
1183 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
1184 | EOF |
---|
1185 | cat >> $CONFIG_STATUS <<EOF |
---|
1186 | |
---|
1187 | # Protect against being on the right side of a sed subst in config.status. |
---|
1188 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
1189 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
1190 | $ac_vpsub |
---|
1191 | $extrasub |
---|
1192 | s%@SHELL@%$SHELL%g |
---|
1193 | s%@CFLAGS@%$CFLAGS%g |
---|
1194 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
1195 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
1196 | s%@FFLAGS@%$FFLAGS%g |
---|
1197 | s%@DEFS@%$DEFS%g |
---|
1198 | s%@LDFLAGS@%$LDFLAGS%g |
---|
1199 | s%@LIBS@%$LIBS%g |
---|
1200 | s%@exec_prefix@%$exec_prefix%g |
---|
1201 | s%@prefix@%$prefix%g |
---|
1202 | s%@program_transform_name@%$program_transform_name%g |
---|
1203 | s%@bindir@%$bindir%g |
---|
1204 | s%@sbindir@%$sbindir%g |
---|
1205 | s%@libexecdir@%$libexecdir%g |
---|
1206 | s%@datadir@%$datadir%g |
---|
1207 | s%@sysconfdir@%$sysconfdir%g |
---|
1208 | s%@sharedstatedir@%$sharedstatedir%g |
---|
1209 | s%@localstatedir@%$localstatedir%g |
---|
1210 | s%@libdir@%$libdir%g |
---|
1211 | s%@includedir@%$includedir%g |
---|
1212 | s%@oldincludedir@%$oldincludedir%g |
---|
1213 | s%@infodir@%$infodir%g |
---|
1214 | s%@mandir@%$mandir%g |
---|
1215 | s%@libfac_name@%$libfac_name%g |
---|
1216 | s%@libfac_version@%$libfac_version%g |
---|
1217 | s%@libfac_date@%$libfac_date%g |
---|
1218 | s%@libfac_author@%$libfac_author%g |
---|
1219 | s%@libfac@%$libfac%g |
---|
1220 | s%@libfac_g@%$libfac_g%g |
---|
1221 | s%@libsingfac@%$libsingfac%g |
---|
1222 | s%@libsingfac_g@%$libsingfac_g%g |
---|
1223 | s%@factorH@%$factorH%g |
---|
1224 | s%@targetname@%$targetname%g |
---|
1225 | s%@CXX@%$CXX%g |
---|
1226 | s%@CXXCPP@%$CXXCPP%g |
---|
1227 | s%@SET_MAKE@%$SET_MAKE%g |
---|
1228 | s%@RANLIB@%$RANLIB%g |
---|
1229 | s%@AR@%$AR%g |
---|
1230 | s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g |
---|
1231 | |
---|
1232 | CEOF |
---|
1233 | EOF |
---|
1234 | |
---|
1235 | cat >> $CONFIG_STATUS <<\EOF |
---|
1236 | |
---|
1237 | # Split the substitutions into bite-sized pieces for seds with |
---|
1238 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
1239 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
1240 | ac_file=1 # Number of current file. |
---|
1241 | ac_beg=1 # First line for current file. |
---|
1242 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
1243 | ac_more_lines=: |
---|
1244 | ac_sed_cmds="" |
---|
1245 | while $ac_more_lines; do |
---|
1246 | if test $ac_beg -gt 1; then |
---|
1247 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
1248 | else |
---|
1249 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
1250 | fi |
---|
1251 | if test ! -s conftest.s$ac_file; then |
---|
1252 | ac_more_lines=false |
---|
1253 | rm -f conftest.s$ac_file |
---|
1254 | else |
---|
1255 | if test -z "$ac_sed_cmds"; then |
---|
1256 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
1257 | else |
---|
1258 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
1259 | fi |
---|
1260 | ac_file=`expr $ac_file + 1` |
---|
1261 | ac_beg=$ac_end |
---|
1262 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
1263 | fi |
---|
1264 | done |
---|
1265 | if test -z "$ac_sed_cmds"; then |
---|
1266 | ac_sed_cmds=cat |
---|
1267 | fi |
---|
1268 | EOF |
---|
1269 | |
---|
1270 | cat >> $CONFIG_STATUS <<EOF |
---|
1271 | |
---|
1272 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
---|
1273 | EOF |
---|
1274 | cat >> $CONFIG_STATUS <<\EOF |
---|
1275 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
1276 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
1277 | case "$ac_file" in |
---|
1278 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
1279 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
1280 | *) ac_file_in="${ac_file}.in" ;; |
---|
1281 | esac |
---|
1282 | |
---|
1283 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
1284 | |
---|
1285 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
1286 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
1287 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
1288 | # The file is in a subdirectory. |
---|
1289 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
1290 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
1291 | # A "../" for each directory in $ac_dir_suffix. |
---|
1292 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
1293 | else |
---|
1294 | ac_dir_suffix= ac_dots= |
---|
1295 | fi |
---|
1296 | |
---|
1297 | case "$ac_given_srcdir" in |
---|
1298 | .) srcdir=. |
---|
1299 | if test -z "$ac_dots"; then top_srcdir=. |
---|
1300 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
1301 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
1302 | *) # Relative path. |
---|
1303 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
1304 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
1305 | esac |
---|
1306 | |
---|
1307 | |
---|
1308 | echo creating "$ac_file" |
---|
1309 | rm -f "$ac_file" |
---|
1310 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
1311 | case "$ac_file" in |
---|
1312 | *Makefile*) ac_comsub="1i\\ |
---|
1313 | # $configure_input" ;; |
---|
1314 | *) ac_comsub= ;; |
---|
1315 | esac |
---|
1316 | |
---|
1317 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
1318 | sed -e "$ac_comsub |
---|
1319 | s%@configure_input@%$configure_input%g |
---|
1320 | s%@srcdir@%$srcdir%g |
---|
1321 | s%@top_srcdir@%$top_srcdir%g |
---|
1322 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
1323 | fi; done |
---|
1324 | rm -f conftest.s* |
---|
1325 | |
---|
1326 | EOF |
---|
1327 | cat >> $CONFIG_STATUS <<EOF |
---|
1328 | |
---|
1329 | EOF |
---|
1330 | cat >> $CONFIG_STATUS <<\EOF |
---|
1331 | |
---|
1332 | exit 0 |
---|
1333 | EOF |
---|
1334 | chmod +x $CONFIG_STATUS |
---|
1335 | rm -fr confdefs* $ac_clean_files |
---|
1336 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
1337 | |
---|
1338 | |
---|