1 | #! /bin/sh |
---|
2 | |
---|
3 | # From configure.in Id: configure.in |
---|
4 | # Guess values for system-dependent variables and create Makefiles. |
---|
5 | # Generated automatically using autoconf version 2.10 |
---|
6 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
7 | # |
---|
8 | # This configure script is free software; the Free Software Foundation |
---|
9 | # gives unlimited permission to copy, distribute and modify it. |
---|
10 | |
---|
11 | # Defaults: |
---|
12 | ac_help= |
---|
13 | ac_default_prefix=/usr/local |
---|
14 | # Any additions from configure.in: |
---|
15 | ac_help="$ac_help |
---|
16 | --with-memman(=<memman>) specify Factory memory manager. |
---|
17 | <memman> is either \`old' (default), \`new', or \`no'." |
---|
18 | ac_help="$ac_help |
---|
19 | --with-gmp(=<gmp_inc_path>(,<gmp_lib_path>)) |
---|
20 | specify where to find gmp library." |
---|
21 | ac_help="$ac_help |
---|
22 | --with-Singular build for use with computer algebra system Singular." |
---|
23 | ac_help="$ac_help |
---|
24 | --disable-streamio build Factory without stream IO" |
---|
25 | ac_help="$ac_help |
---|
26 | --enable-memdebug=<level> switch on memory management debugging. Meaningful |
---|
27 | with \`--with-memman=new' only. <level> may be either |
---|
28 | \`no' (default), \`normal', or \`full'." |
---|
29 | ac_help="$ac_help |
---|
30 | --enable-assertions build Factory with assertions activated" |
---|
31 | ac_help="$ac_help |
---|
32 | --enable-timing build Factory so it will print timing information" |
---|
33 | ac_help="$ac_help |
---|
34 | --enable-debugoutput build Factory so it will print debugging information" |
---|
35 | ac_help="$ac_help |
---|
36 | --enable-gmp together with \`--with-Singular' means: installation |
---|
37 | in process, be graceful when there is no \`gmp.h'" |
---|
38 | |
---|
39 | # Initialize some variables set by options. |
---|
40 | # The variables have the same names as the options, with |
---|
41 | # dashes changed to underlines. |
---|
42 | build=NONE |
---|
43 | cache_file=./config.cache |
---|
44 | exec_prefix=NONE |
---|
45 | host=NONE |
---|
46 | no_create= |
---|
47 | nonopt=NONE |
---|
48 | no_recursion= |
---|
49 | prefix=NONE |
---|
50 | program_prefix=NONE |
---|
51 | program_suffix=NONE |
---|
52 | program_transform_name=s,x,x, |
---|
53 | silent= |
---|
54 | site= |
---|
55 | srcdir= |
---|
56 | target=NONE |
---|
57 | verbose= |
---|
58 | x_includes=NONE |
---|
59 | x_libraries=NONE |
---|
60 | bindir='${exec_prefix}/bin' |
---|
61 | sbindir='${exec_prefix}/sbin' |
---|
62 | libexecdir='${exec_prefix}/libexec' |
---|
63 | datadir='${prefix}/share' |
---|
64 | sysconfdir='${prefix}/etc' |
---|
65 | sharedstatedir='${prefix}/com' |
---|
66 | localstatedir='${prefix}/var' |
---|
67 | libdir='${exec_prefix}/lib' |
---|
68 | includedir='${prefix}/include' |
---|
69 | oldincludedir='/usr/include' |
---|
70 | infodir='${prefix}/info' |
---|
71 | mandir='${prefix}/man' |
---|
72 | |
---|
73 | # Initialize some other variables. |
---|
74 | subdirs= |
---|
75 | MFLAGS= MAKEFLAGS= |
---|
76 | |
---|
77 | ac_prev= |
---|
78 | for ac_option |
---|
79 | do |
---|
80 | |
---|
81 | # If the previous option needs an argument, assign it. |
---|
82 | if test -n "$ac_prev"; then |
---|
83 | eval "$ac_prev=\$ac_option" |
---|
84 | ac_prev= |
---|
85 | continue |
---|
86 | fi |
---|
87 | |
---|
88 | case "$ac_option" in |
---|
89 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
90 | *) ac_optarg= ;; |
---|
91 | esac |
---|
92 | |
---|
93 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
94 | |
---|
95 | case "$ac_option" in |
---|
96 | |
---|
97 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
98 | ac_prev=bindir ;; |
---|
99 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
100 | bindir="$ac_optarg" ;; |
---|
101 | |
---|
102 | -build | --build | --buil | --bui | --bu) |
---|
103 | ac_prev=build ;; |
---|
104 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
105 | build="$ac_optarg" ;; |
---|
106 | |
---|
107 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
108 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
109 | ac_prev=cache_file ;; |
---|
110 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
111 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
112 | cache_file="$ac_optarg" ;; |
---|
113 | |
---|
114 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
115 | ac_prev=datadir ;; |
---|
116 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
117 | | --da=*) |
---|
118 | datadir="$ac_optarg" ;; |
---|
119 | |
---|
120 | -disable-* | --disable-*) |
---|
121 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
122 | # Reject names that are not valid shell variable names. |
---|
123 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
124 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
125 | fi |
---|
126 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
127 | eval "enable_${ac_feature}=no" ;; |
---|
128 | |
---|
129 | -enable-* | --enable-*) |
---|
130 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
131 | # Reject names that are not valid shell variable names. |
---|
132 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
133 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
134 | fi |
---|
135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
136 | case "$ac_option" in |
---|
137 | *=*) ;; |
---|
138 | *) ac_optarg=yes ;; |
---|
139 | esac |
---|
140 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
141 | |
---|
142 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
143 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
144 | | --exec | --exe | --ex) |
---|
145 | ac_prev=exec_prefix ;; |
---|
146 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
147 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
148 | | --exec=* | --exe=* | --ex=*) |
---|
149 | exec_prefix="$ac_optarg" ;; |
---|
150 | |
---|
151 | -gas | --gas | --ga | --g) |
---|
152 | # Obsolete; use --with-gas. |
---|
153 | with_gas=yes ;; |
---|
154 | |
---|
155 | -help | --help | --hel | --he) |
---|
156 | # Omit some internal or obsolete options to make the list less imposing. |
---|
157 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
158 | cat << EOF |
---|
159 | Usage: configure [options] [host] |
---|
160 | Options: [defaults in brackets after descriptions] |
---|
161 | Configuration: |
---|
162 | --cache-file=FILE cache test results in FILE |
---|
163 | --help print this message |
---|
164 | --no-create do not create output files |
---|
165 | --quiet, --silent do not print \`checking...' messages |
---|
166 | --version print the version of autoconf that created configure |
---|
167 | Directory and file names: |
---|
168 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
169 | [$ac_default_prefix] |
---|
170 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
171 | [same as prefix] |
---|
172 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
173 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
174 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
175 | --datadir=DIR read-only architecture-independent data in DIR |
---|
176 | [PREFIX/share] |
---|
177 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
178 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
179 | [PREFIX/com] |
---|
180 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
181 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
182 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
183 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
184 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
185 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
186 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
187 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
188 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
189 | --program-transform-name=PROGRAM |
---|
190 | run sed PROGRAM on installed program names |
---|
191 | EOF |
---|
192 | cat << EOF |
---|
193 | Host type: |
---|
194 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
195 | --host=HOST configure for HOST [guessed] |
---|
196 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
197 | Features and packages: |
---|
198 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
199 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
200 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
201 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
202 | --x-includes=DIR X include files are in DIR |
---|
203 | --x-libraries=DIR X library files are in DIR |
---|
204 | EOF |
---|
205 | if test -n "$ac_help"; then |
---|
206 | echo "--enable and --with options recognized:$ac_help" |
---|
207 | fi |
---|
208 | exit 0 ;; |
---|
209 | |
---|
210 | -host | --host | --hos | --ho) |
---|
211 | ac_prev=host ;; |
---|
212 | -host=* | --host=* | --hos=* | --ho=*) |
---|
213 | host="$ac_optarg" ;; |
---|
214 | |
---|
215 | -includedir | --includedir | --includedi | --included | --include \ |
---|
216 | | --includ | --inclu | --incl | --inc) |
---|
217 | ac_prev=includedir ;; |
---|
218 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
219 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
220 | includedir="$ac_optarg" ;; |
---|
221 | |
---|
222 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
223 | ac_prev=infodir ;; |
---|
224 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
225 | infodir="$ac_optarg" ;; |
---|
226 | |
---|
227 | -libdir | --libdir | --libdi | --libd) |
---|
228 | ac_prev=libdir ;; |
---|
229 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
230 | libdir="$ac_optarg" ;; |
---|
231 | |
---|
232 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
233 | | --libexe | --libex | --libe) |
---|
234 | ac_prev=libexecdir ;; |
---|
235 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
236 | | --libexe=* | --libex=* | --libe=*) |
---|
237 | libexecdir="$ac_optarg" ;; |
---|
238 | |
---|
239 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
240 | | --localstate | --localstat | --localsta | --localst \ |
---|
241 | | --locals | --local | --loca | --loc | --lo) |
---|
242 | ac_prev=localstatedir ;; |
---|
243 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
244 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
245 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
246 | localstatedir="$ac_optarg" ;; |
---|
247 | |
---|
248 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
249 | ac_prev=mandir ;; |
---|
250 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
251 | mandir="$ac_optarg" ;; |
---|
252 | |
---|
253 | -nfp | --nfp | --nf) |
---|
254 | # Obsolete; use --without-fp. |
---|
255 | with_fp=no ;; |
---|
256 | |
---|
257 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
258 | | --no-cr | --no-c) |
---|
259 | no_create=yes ;; |
---|
260 | |
---|
261 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
262 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
263 | no_recursion=yes ;; |
---|
264 | |
---|
265 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
266 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
267 | | --oldin | --oldi | --old | --ol | --o) |
---|
268 | ac_prev=oldincludedir ;; |
---|
269 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
270 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
271 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
272 | oldincludedir="$ac_optarg" ;; |
---|
273 | |
---|
274 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
275 | ac_prev=prefix ;; |
---|
276 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
277 | prefix="$ac_optarg" ;; |
---|
278 | |
---|
279 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
280 | | --program-pre | --program-pr | --program-p) |
---|
281 | ac_prev=program_prefix ;; |
---|
282 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
283 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
284 | program_prefix="$ac_optarg" ;; |
---|
285 | |
---|
286 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
287 | | --program-suf | --program-su | --program-s) |
---|
288 | ac_prev=program_suffix ;; |
---|
289 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
290 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
291 | program_suffix="$ac_optarg" ;; |
---|
292 | |
---|
293 | -program-transform-name | --program-transform-name \ |
---|
294 | | --program-transform-nam | --program-transform-na \ |
---|
295 | | --program-transform-n | --program-transform- \ |
---|
296 | | --program-transform | --program-transfor \ |
---|
297 | | --program-transfo | --program-transf \ |
---|
298 | | --program-trans | --program-tran \ |
---|
299 | | --progr-tra | --program-tr | --program-t) |
---|
300 | ac_prev=program_transform_name ;; |
---|
301 | -program-transform-name=* | --program-transform-name=* \ |
---|
302 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
303 | | --program-transform-n=* | --program-transform-=* \ |
---|
304 | | --program-transform=* | --program-transfor=* \ |
---|
305 | | --program-transfo=* | --program-transf=* \ |
---|
306 | | --program-trans=* | --program-tran=* \ |
---|
307 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
308 | program_transform_name="$ac_optarg" ;; |
---|
309 | |
---|
310 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
311 | | -silent | --silent | --silen | --sile | --sil) |
---|
312 | silent=yes ;; |
---|
313 | |
---|
314 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
315 | ac_prev=sbindir ;; |
---|
316 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
317 | | --sbi=* | --sb=*) |
---|
318 | sbindir="$ac_optarg" ;; |
---|
319 | |
---|
320 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
321 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
322 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
323 | | --sha | --sh) |
---|
324 | ac_prev=sharedstatedir ;; |
---|
325 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
326 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
327 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
328 | | --sha=* | --sh=*) |
---|
329 | sharedstatedir="$ac_optarg" ;; |
---|
330 | |
---|
331 | -site | --site | --sit) |
---|
332 | ac_prev=site ;; |
---|
333 | -site=* | --site=* | --sit=*) |
---|
334 | site="$ac_optarg" ;; |
---|
335 | |
---|
336 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
337 | ac_prev=srcdir ;; |
---|
338 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
339 | srcdir="$ac_optarg" ;; |
---|
340 | |
---|
341 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
342 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
343 | ac_prev=sysconfdir ;; |
---|
344 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
345 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
346 | sysconfdir="$ac_optarg" ;; |
---|
347 | |
---|
348 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
349 | ac_prev=target ;; |
---|
350 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
351 | target="$ac_optarg" ;; |
---|
352 | |
---|
353 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
354 | verbose=yes ;; |
---|
355 | |
---|
356 | -version | --version | --versio | --versi | --vers) |
---|
357 | echo "configure generated by autoconf version 2.10" |
---|
358 | exit 0 ;; |
---|
359 | |
---|
360 | -with-* | --with-*) |
---|
361 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
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 | case "$ac_option" in |
---|
368 | *=*) ;; |
---|
369 | *) ac_optarg=yes ;; |
---|
370 | esac |
---|
371 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
372 | |
---|
373 | -without-* | --without-*) |
---|
374 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
375 | # Reject names that are not valid shell variable names. |
---|
376 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
377 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
378 | fi |
---|
379 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
380 | eval "with_${ac_package}=no" ;; |
---|
381 | |
---|
382 | --x) |
---|
383 | # Obsolete; use --with-x. |
---|
384 | with_x=yes ;; |
---|
385 | |
---|
386 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
387 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
388 | ac_prev=x_includes ;; |
---|
389 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
390 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
391 | x_includes="$ac_optarg" ;; |
---|
392 | |
---|
393 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
394 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
395 | ac_prev=x_libraries ;; |
---|
396 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
397 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
398 | x_libraries="$ac_optarg" ;; |
---|
399 | |
---|
400 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
401 | ;; |
---|
402 | |
---|
403 | *) |
---|
404 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
405 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
406 | fi |
---|
407 | if test "x$nonopt" != xNONE; then |
---|
408 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
409 | fi |
---|
410 | nonopt="$ac_option" |
---|
411 | ;; |
---|
412 | |
---|
413 | esac |
---|
414 | done |
---|
415 | |
---|
416 | if test -n "$ac_prev"; then |
---|
417 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
418 | fi |
---|
419 | |
---|
420 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
421 | |
---|
422 | # File descriptor usage: |
---|
423 | # 0 standard input |
---|
424 | # 1 file creation |
---|
425 | # 2 errors and warnings |
---|
426 | # 3 some systems may open it to /dev/tty |
---|
427 | # 4 used on the Kubota Titan |
---|
428 | # 6 checking for... messages and results |
---|
429 | # 5 compiler messages saved in config.log |
---|
430 | if test "$silent" = yes; then |
---|
431 | exec 6>/dev/null |
---|
432 | else |
---|
433 | exec 6>&1 |
---|
434 | fi |
---|
435 | exec 5>./config.log |
---|
436 | |
---|
437 | echo "\ |
---|
438 | This file contains any messages produced by compilers while |
---|
439 | running configure, to aid debugging if configure makes a mistake. |
---|
440 | " 1>&5 |
---|
441 | |
---|
442 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
443 | # Also quote any args containing shell metacharacters. |
---|
444 | ac_configure_args= |
---|
445 | for ac_arg |
---|
446 | do |
---|
447 | case "$ac_arg" in |
---|
448 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
449 | | --no-cr | --no-c) ;; |
---|
450 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
451 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
452 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
453 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
454 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
455 | esac |
---|
456 | done |
---|
457 | |
---|
458 | # NLS nuisances. |
---|
459 | # Only set LANG and LC_ALL to C if already set. |
---|
460 | # These must not be set unconditionally because not all systems understand |
---|
461 | # e.g. LANG=C (notably SCO). |
---|
462 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
463 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
464 | |
---|
465 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
466 | rm -rf conftest* confdefs.h |
---|
467 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
468 | echo > confdefs.h |
---|
469 | |
---|
470 | # A filename unique to this package, relative to the directory that |
---|
471 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
472 | ac_unique_file=canonicalform.cc |
---|
473 | |
---|
474 | # Find the source files, if location was not specified. |
---|
475 | if test -z "$srcdir"; then |
---|
476 | ac_srcdir_defaulted=yes |
---|
477 | # Try the directory containing this script, then its parent. |
---|
478 | ac_prog=$0 |
---|
479 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
480 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
481 | srcdir=$ac_confdir |
---|
482 | if test ! -r $srcdir/$ac_unique_file; then |
---|
483 | srcdir=.. |
---|
484 | fi |
---|
485 | else |
---|
486 | ac_srcdir_defaulted=no |
---|
487 | fi |
---|
488 | if test ! -r $srcdir/$ac_unique_file; then |
---|
489 | if test "$ac_srcdir_defaulted" = yes; then |
---|
490 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
491 | else |
---|
492 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
493 | fi |
---|
494 | fi |
---|
495 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
496 | |
---|
497 | # Prefer explicitly selected file to automatically selected ones. |
---|
498 | if test -z "$CONFIG_SITE"; then |
---|
499 | if test "x$prefix" != xNONE; then |
---|
500 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
501 | else |
---|
502 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
503 | fi |
---|
504 | fi |
---|
505 | for ac_site_file in $CONFIG_SITE; do |
---|
506 | if test -r "$ac_site_file"; then |
---|
507 | echo "loading site script $ac_site_file" |
---|
508 | . "$ac_site_file" |
---|
509 | fi |
---|
510 | done |
---|
511 | |
---|
512 | if test -r "$cache_file"; then |
---|
513 | echo "loading cache $cache_file" |
---|
514 | . $cache_file |
---|
515 | else |
---|
516 | echo "creating cache $cache_file" |
---|
517 | > $cache_file |
---|
518 | fi |
---|
519 | |
---|
520 | ac_ext=c |
---|
521 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
522 | ac_cpp='$CPP $CPPFLAGS' |
---|
523 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
524 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
525 | |
---|
526 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
527 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
528 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
529 | ac_n= ac_c=' |
---|
530 | ' ac_t=' ' |
---|
531 | else |
---|
532 | ac_n=-n ac_c= ac_t= |
---|
533 | fi |
---|
534 | else |
---|
535 | ac_n= ac_c='\c' ac_t= |
---|
536 | fi |
---|
537 | |
---|
538 | |
---|
539 | |
---|
540 | ac_aux_dir= |
---|
541 | for ac_dir in bin $srcdir/bin; do |
---|
542 | if test -f $ac_dir/install-sh; then |
---|
543 | ac_aux_dir=$ac_dir |
---|
544 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
545 | break |
---|
546 | elif test -f $ac_dir/install.sh; then |
---|
547 | ac_aux_dir=$ac_dir |
---|
548 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
549 | break |
---|
550 | fi |
---|
551 | done |
---|
552 | if test -z "$ac_aux_dir"; then |
---|
553 | { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; } |
---|
554 | fi |
---|
555 | ac_config_guess=$ac_aux_dir/config.guess |
---|
556 | ac_config_sub=$ac_aux_dir/config.sub |
---|
557 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
558 | |
---|
559 | |
---|
560 | # |
---|
561 | # Do not change version here!!! |
---|
562 | # |
---|
563 | factory_version="1.3b" |
---|
564 | factory_configuration="'$ac_configure_args' in `pwd`" |
---|
565 | |
---|
566 | # |
---|
567 | # - check withs and enables. |
---|
568 | # |
---|
569 | # Check whether --with-memman or --without-memman was given. |
---|
570 | if test "${with_memman+set}" = set; then |
---|
571 | withval="$with_memman" |
---|
572 | : |
---|
573 | else |
---|
574 | if test "x$with_Singular" = xyes; then |
---|
575 | with_memman=no |
---|
576 | else |
---|
577 | with_memman=old |
---|
578 | fi |
---|
579 | fi |
---|
580 | |
---|
581 | |
---|
582 | # font-lock-trick: ' |
---|
583 | |
---|
584 | # Check whether --with-gmp or --without-gmp was given. |
---|
585 | if test "${with_gmp+set}" = set; then |
---|
586 | withval="$with_gmp" |
---|
587 | : |
---|
588 | fi |
---|
589 | |
---|
590 | |
---|
591 | # Check whether --with-Singular or --without-Singular was given. |
---|
592 | if test "${with_Singular+set}" = set; then |
---|
593 | withval="$with_Singular" |
---|
594 | : |
---|
595 | else |
---|
596 | with_Singular=no |
---|
597 | fi |
---|
598 | |
---|
599 | |
---|
600 | # Check whether --enable-streamio or --disable-streamio was given. |
---|
601 | if test "${enable_streamio+set}" = set; then |
---|
602 | enableval="$enable_streamio" |
---|
603 | : |
---|
604 | else |
---|
605 | if test "x$with_Singular" = xyes; then |
---|
606 | enable_streamio=no |
---|
607 | else |
---|
608 | enable_streamio=yes |
---|
609 | fi |
---|
610 | fi |
---|
611 | |
---|
612 | |
---|
613 | # Check whether --enable-memdebug or --disable-memdebug was given. |
---|
614 | if test "${enable_memdebug+set}" = set; then |
---|
615 | enableval="$enable_memdebug" |
---|
616 | : |
---|
617 | else |
---|
618 | enable_memdebug=no |
---|
619 | fi |
---|
620 | |
---|
621 | |
---|
622 | # Check whether --enable-assertions or --disable-assertions was given. |
---|
623 | if test "${enable_assertions+set}" = set; then |
---|
624 | enableval="$enable_assertions" |
---|
625 | : |
---|
626 | else |
---|
627 | enable_assertions=no |
---|
628 | fi |
---|
629 | |
---|
630 | |
---|
631 | # Check whether --enable-timing or --disable-timing was given. |
---|
632 | if test "${enable_timing+set}" = set; then |
---|
633 | enableval="$enable_timing" |
---|
634 | : |
---|
635 | else |
---|
636 | enable_timing=no |
---|
637 | fi |
---|
638 | |
---|
639 | |
---|
640 | # Check whether --enable-debugoutput or --disable-debugoutput was given. |
---|
641 | if test "${enable_debugoutput+set}" = set; then |
---|
642 | enableval="$enable_debugoutput" |
---|
643 | : |
---|
644 | else |
---|
645 | enable_debugoutput=no |
---|
646 | fi |
---|
647 | |
---|
648 | |
---|
649 | # an ugly tribute to Singular |
---|
650 | # Check whether --enable-gmp or --disable-gmp was given. |
---|
651 | if test "${enable_gmp+set}" = set; then |
---|
652 | enableval="$enable_gmp" |
---|
653 | if test "x$with_Singular" = xyes && test "x$enable_gmp" != xno; then |
---|
654 | with_gmp='$(includedir)' |
---|
655 | fi |
---|
656 | fi |
---|
657 | |
---|
658 | |
---|
659 | # |
---|
660 | # - check the results of --with-gmp. |
---|
661 | # |
---|
662 | case "$with_gmp" in |
---|
663 | yes|no|"") |
---|
664 | gmp_in_installation=no ;; |
---|
665 | '$(includedir)'|'${includedir}') |
---|
666 | gmp_in_installation=yes ;; |
---|
667 | *,*) |
---|
668 | saveIFS="$IFS"; IFS="${IFS}," |
---|
669 | set dummy $with_gmp |
---|
670 | IFS="$saveIFS" |
---|
671 | CPPFLAGS="-I$2 $CPPFLAGS" |
---|
672 | LDFLAGS="-L$3 $LDFLAGS" |
---|
673 | gmp_in_installation=no ;; |
---|
674 | *) |
---|
675 | CPPFLAGS="-I$with_gmp $CPPFLAGS" |
---|
676 | LDFLAGS="-L$with_gmp/../lib $LDFLAGS" |
---|
677 | gmp_in_installation=no ;; |
---|
678 | esac |
---|
679 | |
---|
680 | # |
---|
681 | # - check for CC and CXX but be careful about CFLAGS. |
---|
682 | # |
---|
683 | test "${CFLAGS+set}" = set || cflags_expl_set=no |
---|
684 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
685 | set dummy gcc; ac_word=$2 |
---|
686 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
687 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
688 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
689 | else |
---|
690 | if test -n "$CC"; then |
---|
691 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
692 | else |
---|
693 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
694 | for ac_dir in $PATH; do |
---|
695 | test -z "$ac_dir" && ac_dir=. |
---|
696 | if test -f $ac_dir/$ac_word; then |
---|
697 | ac_cv_prog_CC="gcc" |
---|
698 | break |
---|
699 | fi |
---|
700 | done |
---|
701 | IFS="$ac_save_ifs" |
---|
702 | fi |
---|
703 | fi |
---|
704 | CC="$ac_cv_prog_CC" |
---|
705 | if test -n "$CC"; then |
---|
706 | echo "$ac_t""$CC" 1>&6 |
---|
707 | else |
---|
708 | echo "$ac_t""no" 1>&6 |
---|
709 | fi |
---|
710 | |
---|
711 | if test -z "$CC"; then |
---|
712 | # Extract the first word of "cc", so it can be a program name with args. |
---|
713 | set dummy cc; ac_word=$2 |
---|
714 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
715 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
716 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
717 | else |
---|
718 | if test -n "$CC"; then |
---|
719 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
720 | else |
---|
721 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
722 | ac_prog_rejected=no |
---|
723 | for ac_dir in $PATH; do |
---|
724 | test -z "$ac_dir" && ac_dir=. |
---|
725 | if test -f $ac_dir/$ac_word; then |
---|
726 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
727 | ac_prog_rejected=yes |
---|
728 | continue |
---|
729 | fi |
---|
730 | ac_cv_prog_CC="cc" |
---|
731 | break |
---|
732 | fi |
---|
733 | done |
---|
734 | IFS="$ac_save_ifs" |
---|
735 | if test $ac_prog_rejected = yes; then |
---|
736 | # We found a bogon in the path, so make sure we never use it. |
---|
737 | set dummy $ac_cv_prog_CC |
---|
738 | shift |
---|
739 | if test $# -gt 0; then |
---|
740 | # We chose a different compiler from the bogus one. |
---|
741 | # However, it has the same basename, so the bogon will be chosen |
---|
742 | # first if we set CC to just the basename; use the full file name. |
---|
743 | shift |
---|
744 | set dummy "$ac_dir/$ac_word" "$@" |
---|
745 | shift |
---|
746 | ac_cv_prog_CC="$@" |
---|
747 | fi |
---|
748 | fi |
---|
749 | fi |
---|
750 | fi |
---|
751 | CC="$ac_cv_prog_CC" |
---|
752 | if test -n "$CC"; then |
---|
753 | echo "$ac_t""$CC" 1>&6 |
---|
754 | else |
---|
755 | echo "$ac_t""no" 1>&6 |
---|
756 | fi |
---|
757 | |
---|
758 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
759 | fi |
---|
760 | |
---|
761 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
762 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
763 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
764 | else |
---|
765 | cat > conftest.c <<EOF |
---|
766 | #ifdef __GNUC__ |
---|
767 | yes; |
---|
768 | #endif |
---|
769 | EOF |
---|
770 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
771 | ac_cv_prog_gcc=yes |
---|
772 | else |
---|
773 | ac_cv_prog_gcc=no |
---|
774 | fi |
---|
775 | fi |
---|
776 | |
---|
777 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
778 | if test $ac_cv_prog_gcc = yes; then |
---|
779 | GCC=yes |
---|
780 | if test "${CFLAGS+set}" != set; then |
---|
781 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
782 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then |
---|
783 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
784 | else |
---|
785 | echo 'void f(){}' > conftest.c |
---|
786 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
787 | ac_cv_prog_gcc_g=yes |
---|
788 | else |
---|
789 | ac_cv_prog_gcc_g=no |
---|
790 | fi |
---|
791 | rm -f conftest* |
---|
792 | |
---|
793 | fi |
---|
794 | |
---|
795 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 |
---|
796 | if test $ac_cv_prog_gcc_g = yes; then |
---|
797 | CFLAGS="-g -O" |
---|
798 | else |
---|
799 | CFLAGS="-O" |
---|
800 | fi |
---|
801 | fi |
---|
802 | else |
---|
803 | GCC= |
---|
804 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
805 | fi |
---|
806 | |
---|
807 | test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no |
---|
808 | for ac_prog in $CCC c++ g++ gcc CC cxx |
---|
809 | do |
---|
810 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
811 | set dummy $ac_prog; ac_word=$2 |
---|
812 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
813 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
---|
814 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
815 | else |
---|
816 | if test -n "$CXX"; then |
---|
817 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
818 | else |
---|
819 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
820 | for ac_dir in $PATH; do |
---|
821 | test -z "$ac_dir" && ac_dir=. |
---|
822 | if test -f $ac_dir/$ac_word; then |
---|
823 | ac_cv_prog_CXX="$ac_prog" |
---|
824 | break |
---|
825 | fi |
---|
826 | done |
---|
827 | IFS="$ac_save_ifs" |
---|
828 | fi |
---|
829 | fi |
---|
830 | CXX="$ac_cv_prog_CXX" |
---|
831 | if test -n "$CXX"; then |
---|
832 | echo "$ac_t""$CXX" 1>&6 |
---|
833 | else |
---|
834 | echo "$ac_t""no" 1>&6 |
---|
835 | fi |
---|
836 | |
---|
837 | test -n "$CXX" && break |
---|
838 | done |
---|
839 | test -n "$CXX" || CXX="gcc" |
---|
840 | |
---|
841 | |
---|
842 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
843 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
844 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
845 | else |
---|
846 | cat > conftest.C <<EOF |
---|
847 | #ifdef __GNUC__ |
---|
848 | yes; |
---|
849 | #endif |
---|
850 | EOF |
---|
851 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
852 | ac_cv_prog_gxx=yes |
---|
853 | else |
---|
854 | ac_cv_prog_gxx=no |
---|
855 | fi |
---|
856 | fi |
---|
857 | |
---|
858 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
859 | if test $ac_cv_prog_gxx = yes; then |
---|
860 | GXX=yes |
---|
861 | if test "${CXXFLAGS+set}" != set; then |
---|
862 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
863 | if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then |
---|
864 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
865 | else |
---|
866 | echo 'void f(){}' > conftest.cc |
---|
867 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
868 | ac_cv_prog_gxx_g=yes |
---|
869 | else |
---|
870 | ac_cv_prog_gxx_g=no |
---|
871 | fi |
---|
872 | rm -f conftest* |
---|
873 | |
---|
874 | fi |
---|
875 | |
---|
876 | echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6 |
---|
877 | if test $ac_cv_prog_gxx_g = yes; then |
---|
878 | CXXFLAGS="-g -O" |
---|
879 | else |
---|
880 | CXXFLAGS="-O" |
---|
881 | fi |
---|
882 | fi |
---|
883 | else |
---|
884 | GXX= |
---|
885 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" |
---|
886 | fi |
---|
887 | |
---|
888 | if test "x$GCC" != xyes && test "x$GXX" != xyes; then |
---|
889 | echo "configure: warning: you better use gcc to compile Factory" 1>&2 |
---|
890 | else |
---|
891 | if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then |
---|
892 | echo "configure: warning: we will use \`-O2 -fomit-frame-pointer' as default for \`CXXFLAGS' |
---|
893 | (instead of the configure default \`-g -O')" 1>&2 |
---|
894 | fi |
---|
895 | if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then |
---|
896 | echo "configure: warning: we will use \`-O2 -fomit-frame-pointer' as default for \`CFLAGS' |
---|
897 | (instead of the configure default \`-g -O')" 1>&2 |
---|
898 | fi |
---|
899 | fi |
---|
900 | |
---|
901 | # |
---|
902 | # - check for some other programs. |
---|
903 | # |
---|
904 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
905 | # On Suns, sometimes $CPP names a directory. |
---|
906 | if test -n "$CPP" && test -d "$CPP"; then |
---|
907 | CPP= |
---|
908 | fi |
---|
909 | if test -z "$CPP"; then |
---|
910 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
911 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
912 | else |
---|
913 | # This must be in double quotes, not single quotes, because CPP may get |
---|
914 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
915 | CPP="${CC-cc} -E" |
---|
916 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
917 | # not just through cpp. |
---|
918 | cat > conftest.$ac_ext <<EOF |
---|
919 | #line 920 "configure" |
---|
920 | #include "confdefs.h" |
---|
921 | #include <assert.h> |
---|
922 | Syntax Error |
---|
923 | EOF |
---|
924 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
925 | { (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
926 | ac_err=`grep -v '^ *+' conftest.out` |
---|
927 | if test -z "$ac_err"; then |
---|
928 | : |
---|
929 | else |
---|
930 | echo "$ac_err" >&5 |
---|
931 | rm -rf conftest* |
---|
932 | CPP="${CC-cc} -E -traditional-cpp" |
---|
933 | cat > conftest.$ac_ext <<EOF |
---|
934 | #line 935 "configure" |
---|
935 | #include "confdefs.h" |
---|
936 | #include <assert.h> |
---|
937 | Syntax Error |
---|
938 | EOF |
---|
939 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
940 | { (eval echo configure:941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
941 | ac_err=`grep -v '^ *+' conftest.out` |
---|
942 | if test -z "$ac_err"; then |
---|
943 | : |
---|
944 | else |
---|
945 | echo "$ac_err" >&5 |
---|
946 | rm -rf conftest* |
---|
947 | CPP=/lib/cpp |
---|
948 | fi |
---|
949 | rm -f conftest* |
---|
950 | fi |
---|
951 | rm -f conftest* |
---|
952 | ac_cv_prog_CPP="$CPP" |
---|
953 | fi |
---|
954 | CPP="$ac_cv_prog_CPP" |
---|
955 | else |
---|
956 | ac_cv_prog_CPP="$CPP" |
---|
957 | fi |
---|
958 | echo "$ac_t""$CPP" 1>&6 |
---|
959 | |
---|
960 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
---|
961 | if test -z "$CXXCPP"; then |
---|
962 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
---|
963 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
964 | else |
---|
965 | ac_ext=C |
---|
966 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
967 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
968 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
969 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
970 | CXXCPP="${CXX-g++} -E" |
---|
971 | cat > conftest.$ac_ext <<EOF |
---|
972 | #line 973 "configure" |
---|
973 | #include "confdefs.h" |
---|
974 | #include <stdlib.h> |
---|
975 | EOF |
---|
976 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
977 | { (eval echo configure:978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
978 | ac_err=`grep -v '^ *+' conftest.out` |
---|
979 | if test -z "$ac_err"; then |
---|
980 | : |
---|
981 | else |
---|
982 | echo "$ac_err" >&5 |
---|
983 | rm -rf conftest* |
---|
984 | CXXCPP=/lib/cpp |
---|
985 | fi |
---|
986 | rm -f conftest* |
---|
987 | ac_cv_prog_CXXCPP="$CXXCPP" |
---|
988 | ac_ext=c |
---|
989 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
990 | ac_cpp='$CPP $CPPFLAGS' |
---|
991 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
992 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
993 | fi |
---|
994 | fi |
---|
995 | CXXCPP="$ac_cv_prog_CXXCPP" |
---|
996 | echo "$ac_t""$CXXCPP" 1>&6 |
---|
997 | |
---|
998 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
999 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
1000 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1001 | else |
---|
1002 | rm -f conftestdata |
---|
1003 | if ln -s X conftestdata 2>/dev/null |
---|
1004 | then |
---|
1005 | rm -f conftestdata |
---|
1006 | ac_cv_prog_LN_S="ln -s" |
---|
1007 | else |
---|
1008 | ac_cv_prog_LN_S=ln |
---|
1009 | fi |
---|
1010 | fi |
---|
1011 | LN_S="$ac_cv_prog_LN_S" |
---|
1012 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
1013 | echo "$ac_t""yes" 1>&6 |
---|
1014 | else |
---|
1015 | echo "$ac_t""no" 1>&6 |
---|
1016 | fi |
---|
1017 | |
---|
1018 | # Find a good install program. We prefer a C program (faster), |
---|
1019 | # so one script is as good as another. But avoid the broken or |
---|
1020 | # incompatible versions: |
---|
1021 | # SysV /etc/install, /usr/sbin/install |
---|
1022 | # SunOS /usr/etc/install |
---|
1023 | # IRIX /sbin/install |
---|
1024 | # AIX /bin/install |
---|
1025 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1026 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1027 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1028 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
1029 | if test -z "$INSTALL"; then |
---|
1030 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
1031 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1032 | else |
---|
1033 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
1034 | for ac_dir in $PATH; do |
---|
1035 | # Account for people who put trailing slashes in PATH elements. |
---|
1036 | case "$ac_dir/" in |
---|
1037 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
1038 | *) |
---|
1039 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1040 | for ac_prog in ginstall installbsd scoinst install; do |
---|
1041 | if test -f $ac_dir/$ac_prog; then |
---|
1042 | if test $ac_prog = install && |
---|
1043 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
1044 | # AIX install. It has an incompatible calling convention. |
---|
1045 | # OSF/1 installbsd also uses dspmsg, but is usable. |
---|
1046 | : |
---|
1047 | else |
---|
1048 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
1049 | break 2 |
---|
1050 | fi |
---|
1051 | fi |
---|
1052 | done |
---|
1053 | ;; |
---|
1054 | esac |
---|
1055 | done |
---|
1056 | IFS="$ac_save_ifs" |
---|
1057 | |
---|
1058 | fi |
---|
1059 | if test "${ac_cv_path_install+set}" = set; then |
---|
1060 | INSTALL="$ac_cv_path_install" |
---|
1061 | else |
---|
1062 | # As a last resort, use the slow shell script. We don't cache a |
---|
1063 | # path for INSTALL within a source directory, because that will |
---|
1064 | # break other packages using the cache if that directory is |
---|
1065 | # removed, or if the path is relative. |
---|
1066 | INSTALL="$ac_install_sh" |
---|
1067 | fi |
---|
1068 | fi |
---|
1069 | echo "$ac_t""$INSTALL" 1>&6 |
---|
1070 | |
---|
1071 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1072 | # It thinks the first close brace ends the variable substitution. |
---|
1073 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1074 | |
---|
1075 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1076 | |
---|
1077 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
1078 | set dummy ranlib; ac_word=$2 |
---|
1079 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1080 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
1081 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1082 | else |
---|
1083 | if test -n "$RANLIB"; then |
---|
1084 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
1085 | else |
---|
1086 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
1087 | for ac_dir in $PATH; do |
---|
1088 | test -z "$ac_dir" && ac_dir=. |
---|
1089 | if test -f $ac_dir/$ac_word; then |
---|
1090 | ac_cv_prog_RANLIB="ranlib" |
---|
1091 | break |
---|
1092 | fi |
---|
1093 | done |
---|
1094 | IFS="$ac_save_ifs" |
---|
1095 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
1096 | fi |
---|
1097 | fi |
---|
1098 | RANLIB="$ac_cv_prog_RANLIB" |
---|
1099 | if test -n "$RANLIB"; then |
---|
1100 | echo "$ac_t""$RANLIB" 1>&6 |
---|
1101 | else |
---|
1102 | echo "$ac_t""no" 1>&6 |
---|
1103 | fi |
---|
1104 | |
---|
1105 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
1106 | set dummy ${MAKE-make}; ac_make=$2 |
---|
1107 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
1108 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1109 | else |
---|
1110 | cat > conftestmake <<\EOF |
---|
1111 | all: |
---|
1112 | @echo 'ac_maketemp="${MAKE}"' |
---|
1113 | EOF |
---|
1114 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1115 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
1116 | if test -n "$ac_maketemp"; then |
---|
1117 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1118 | else |
---|
1119 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1120 | fi |
---|
1121 | rm -f conftestmake |
---|
1122 | fi |
---|
1123 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1124 | echo "$ac_t""yes" 1>&6 |
---|
1125 | SET_MAKE= |
---|
1126 | else |
---|
1127 | echo "$ac_t""no" 1>&6 |
---|
1128 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1129 | fi |
---|
1130 | |
---|
1131 | # Extract the first word of "ar", so it can be a program name with args. |
---|
1132 | set dummy ar; ac_word=$2 |
---|
1133 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1134 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
---|
1135 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1136 | else |
---|
1137 | if test -n "$AR"; then |
---|
1138 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
1139 | else |
---|
1140 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
1141 | for ac_dir in $PATH; do |
---|
1142 | test -z "$ac_dir" && ac_dir=. |
---|
1143 | if test -f $ac_dir/$ac_word; then |
---|
1144 | ac_cv_prog_AR="ar" |
---|
1145 | break |
---|
1146 | fi |
---|
1147 | done |
---|
1148 | IFS="$ac_save_ifs" |
---|
1149 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="where-is-your-ar" |
---|
1150 | fi |
---|
1151 | fi |
---|
1152 | AR="$ac_cv_prog_AR" |
---|
1153 | if test -n "$AR"; then |
---|
1154 | echo "$ac_t""$AR" 1>&6 |
---|
1155 | else |
---|
1156 | echo "$ac_t""no" 1>&6 |
---|
1157 | fi |
---|
1158 | |
---|
1159 | # Extract the first word of "m4", so it can be a program name with args. |
---|
1160 | set dummy m4; ac_word=$2 |
---|
1161 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1162 | if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then |
---|
1163 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1164 | else |
---|
1165 | if test -n "$M4"; then |
---|
1166 | ac_cv_prog_M4="$M4" # Let the user override the test. |
---|
1167 | else |
---|
1168 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
1169 | for ac_dir in $PATH; do |
---|
1170 | test -z "$ac_dir" && ac_dir=. |
---|
1171 | if test -f $ac_dir/$ac_word; then |
---|
1172 | ac_cv_prog_M4="m4" |
---|
1173 | break |
---|
1174 | fi |
---|
1175 | done |
---|
1176 | IFS="$ac_save_ifs" |
---|
1177 | test -z "$ac_cv_prog_M4" && ac_cv_prog_M4="where-is-your-m4" |
---|
1178 | fi |
---|
1179 | fi |
---|
1180 | M4="$ac_cv_prog_M4" |
---|
1181 | if test -n "$M4"; then |
---|
1182 | echo "$ac_t""$M4" 1>&6 |
---|
1183 | else |
---|
1184 | echo "$ac_t""no" 1>&6 |
---|
1185 | fi |
---|
1186 | |
---|
1187 | # Extract the first word of "bison", so it can be a program name with args. |
---|
1188 | set dummy bison; ac_word=$2 |
---|
1189 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1190 | if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then |
---|
1191 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1192 | else |
---|
1193 | if test -n "$BISON"; then |
---|
1194 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
---|
1195 | else |
---|
1196 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
1197 | for ac_dir in $PATH; do |
---|
1198 | test -z "$ac_dir" && ac_dir=. |
---|
1199 | if test -f $ac_dir/$ac_word; then |
---|
1200 | ac_cv_prog_BISON="bison" |
---|
1201 | break |
---|
1202 | fi |
---|
1203 | done |
---|
1204 | IFS="$ac_save_ifs" |
---|
1205 | test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="where-is-your-bison" |
---|
1206 | fi |
---|
1207 | fi |
---|
1208 | BISON="$ac_cv_prog_BISON" |
---|
1209 | if test -n "$BISON"; then |
---|
1210 | echo "$ac_t""$BISON" 1>&6 |
---|
1211 | else |
---|
1212 | echo "$ac_t""no" 1>&6 |
---|
1213 | fi |
---|
1214 | |
---|
1215 | |
---|
1216 | # do not use `MKINSTALLDIRS' and `MAKEHEADER' since there may be |
---|
1217 | # name clashes with other peoples configure scripts via |
---|
1218 | # `config.cache'. Furthermore, we do not use cache at all to |
---|
1219 | # avoid some nasty problems with our own development environment. |
---|
1220 | unset ac_cv_path_FACTORY_MKINSTALLDIRS |
---|
1221 | unset ac_cv_path_FACTORY_MAKEHEADER |
---|
1222 | # Extract the first word of "mkinstalldirs", so it can be a program name with args. |
---|
1223 | set dummy mkinstalldirs; ac_word=$2 |
---|
1224 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1225 | if eval "test \"`echo '$''{'ac_cv_path_FACTORY_MKINSTALLDIRS'+set}'`\" = set"; then |
---|
1226 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1227 | else |
---|
1228 | case "$FACTORY_MKINSTALLDIRS" in |
---|
1229 | /*) |
---|
1230 | ac_cv_path_FACTORY_MKINSTALLDIRS="$FACTORY_MKINSTALLDIRS" # Let the user override the test with a path. |
---|
1231 | ;; |
---|
1232 | *) |
---|
1233 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
1234 | for ac_dir in $PATH:$srcdir/bin; do |
---|
1235 | test -z "$ac_dir" && ac_dir=. |
---|
1236 | if test -f $ac_dir/$ac_word; then |
---|
1237 | ac_cv_path_FACTORY_MKINSTALLDIRS="$ac_dir/$ac_word" |
---|
1238 | break |
---|
1239 | fi |
---|
1240 | done |
---|
1241 | IFS="$ac_save_ifs" |
---|
1242 | test -z "$ac_cv_path_FACTORY_MKINSTALLDIRS" && ac_cv_path_FACTORY_MKINSTALLDIRS="-mkdir" |
---|
1243 | ;; |
---|
1244 | esac |
---|
1245 | fi |
---|
1246 | FACTORY_MKINSTALLDIRS="$ac_cv_path_FACTORY_MKINSTALLDIRS" |
---|
1247 | if test -n "$FACTORY_MKINSTALLDIRS"; then |
---|
1248 | echo "$ac_t""$FACTORY_MKINSTALLDIRS" 1>&6 |
---|
1249 | else |
---|
1250 | echo "$ac_t""no" 1>&6 |
---|
1251 | fi |
---|
1252 | |
---|
1253 | # Extract the first word of "makeheader", so it can be a program name with args. |
---|
1254 | set dummy makeheader; ac_word=$2 |
---|
1255 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1256 | if eval "test \"`echo '$''{'ac_cv_path_FACTORY_MAKEHEADER'+set}'`\" = set"; then |
---|
1257 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1258 | else |
---|
1259 | case "$FACTORY_MAKEHEADER" in |
---|
1260 | /*) |
---|
1261 | ac_cv_path_FACTORY_MAKEHEADER="$FACTORY_MAKEHEADER" # Let the user override the test with a path. |
---|
1262 | ;; |
---|
1263 | *) |
---|
1264 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
1265 | for ac_dir in $srcdir/bin:$PATH; do |
---|
1266 | test -z "$ac_dir" && ac_dir=. |
---|
1267 | if test -f $ac_dir/$ac_word; then |
---|
1268 | ac_cv_path_FACTORY_MAKEHEADER="$ac_dir/$ac_word" |
---|
1269 | break |
---|
1270 | fi |
---|
1271 | done |
---|
1272 | IFS="$ac_save_ifs" |
---|
1273 | ;; |
---|
1274 | esac |
---|
1275 | fi |
---|
1276 | FACTORY_MAKEHEADER="$ac_cv_path_FACTORY_MAKEHEADER" |
---|
1277 | if test -n "$FACTORY_MAKEHEADER"; then |
---|
1278 | echo "$ac_t""$FACTORY_MAKEHEADER" 1>&6 |
---|
1279 | else |
---|
1280 | echo "$ac_t""no" 1>&6 |
---|
1281 | fi |
---|
1282 | |
---|
1283 | |
---|
1284 | # |
---|
1285 | # - check for libraries. |
---|
1286 | # |
---|
1287 | echo $ac_n "checking for -lm""... $ac_c" 1>&6 |
---|
1288 | ac_lib_var=`echo m'_'atof | tr './+\055' '__p_'` |
---|
1289 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1290 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1291 | else |
---|
1292 | ac_save_LIBS="$LIBS" |
---|
1293 | LIBS="-lm $LIBS" |
---|
1294 | cat > conftest.$ac_ext <<EOF |
---|
1295 | #line 1296 "configure" |
---|
1296 | #include "confdefs.h" |
---|
1297 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1298 | /* We use char because int might match the return type of a gcc2 |
---|
1299 | builtin and then its argument prototype would still apply. */ |
---|
1300 | char atof(); |
---|
1301 | |
---|
1302 | int main() { return 0; } |
---|
1303 | int t() { |
---|
1304 | atof() |
---|
1305 | ; return 0; } |
---|
1306 | EOF |
---|
1307 | if { (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1308 | rm -rf conftest* |
---|
1309 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1310 | else |
---|
1311 | rm -rf conftest* |
---|
1312 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1313 | fi |
---|
1314 | rm -f conftest* |
---|
1315 | LIBS="$ac_save_LIBS" |
---|
1316 | |
---|
1317 | fi |
---|
1318 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1319 | echo "$ac_t""yes" 1>&6 |
---|
1320 | ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1321 | cat >> confdefs.h <<EOF |
---|
1322 | #define $ac_tr_lib 1 |
---|
1323 | EOF |
---|
1324 | |
---|
1325 | LIBS="-lm $LIBS" |
---|
1326 | |
---|
1327 | else |
---|
1328 | echo "$ac_t""no" 1>&6 |
---|
1329 | { echo "configure: error: libm.a not found" 1>&2; exit 1; } |
---|
1330 | fi |
---|
1331 | |
---|
1332 | |
---|
1333 | if test "x$gmp_in_installation" != xyes; then |
---|
1334 | echo $ac_n "checking for -lgmp""... $ac_c" 1>&6 |
---|
1335 | ac_lib_var=`echo gmp'_'mpz_init | tr './+\055' '__p_'` |
---|
1336 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1337 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1338 | else |
---|
1339 | ac_save_LIBS="$LIBS" |
---|
1340 | LIBS="-lgmp $LIBS" |
---|
1341 | cat > conftest.$ac_ext <<EOF |
---|
1342 | #line 1343 "configure" |
---|
1343 | #include "confdefs.h" |
---|
1344 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1345 | /* We use char because int might match the return type of a gcc2 |
---|
1346 | builtin and then its argument prototype would still apply. */ |
---|
1347 | char mpz_init(); |
---|
1348 | |
---|
1349 | int main() { return 0; } |
---|
1350 | int t() { |
---|
1351 | mpz_init() |
---|
1352 | ; return 0; } |
---|
1353 | EOF |
---|
1354 | if { (eval echo configure:1355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1355 | rm -rf conftest* |
---|
1356 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1357 | else |
---|
1358 | rm -rf conftest* |
---|
1359 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1360 | fi |
---|
1361 | rm -f conftest* |
---|
1362 | LIBS="$ac_save_LIBS" |
---|
1363 | |
---|
1364 | fi |
---|
1365 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1366 | echo "$ac_t""yes" 1>&6 |
---|
1367 | ac_tr_lib=HAVE_LIB`echo gmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1368 | cat >> confdefs.h <<EOF |
---|
1369 | #define $ac_tr_lib 1 |
---|
1370 | EOF |
---|
1371 | |
---|
1372 | LIBS="-lgmp $LIBS" |
---|
1373 | |
---|
1374 | else |
---|
1375 | echo "$ac_t""no" 1>&6 |
---|
1376 | { echo "configure: error: libgmp.a not found. Use option --with-gmp to specify path" 1>&2; exit 1; } |
---|
1377 | fi |
---|
1378 | |
---|
1379 | fi |
---|
1380 | |
---|
1381 | # |
---|
1382 | # - check for header files. |
---|
1383 | # |
---|
1384 | ac_ext=C |
---|
1385 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1386 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1387 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1388 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1389 | |
---|
1390 | |
---|
1391 | if test "x$gmp_in_installation" != xyes; then |
---|
1392 | for ac_hdr in gmp.h |
---|
1393 | do |
---|
1394 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
1395 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1396 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1397 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1398 | else |
---|
1399 | cat > conftest.$ac_ext <<EOF |
---|
1400 | #line 1401 "configure" |
---|
1401 | #include "confdefs.h" |
---|
1402 | #include <$ac_hdr> |
---|
1403 | EOF |
---|
1404 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1405 | { (eval echo configure:1406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1406 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1407 | if test -z "$ac_err"; then |
---|
1408 | rm -rf conftest* |
---|
1409 | eval "ac_cv_header_$ac_safe=yes" |
---|
1410 | else |
---|
1411 | echo "$ac_err" >&5 |
---|
1412 | rm -rf conftest* |
---|
1413 | eval "ac_cv_header_$ac_safe=no" |
---|
1414 | fi |
---|
1415 | rm -f conftest* |
---|
1416 | fi |
---|
1417 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1418 | echo "$ac_t""yes" 1>&6 |
---|
1419 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
---|
1420 | cat >> confdefs.h <<EOF |
---|
1421 | #define $ac_tr_hdr 1 |
---|
1422 | EOF |
---|
1423 | |
---|
1424 | else |
---|
1425 | echo "$ac_t""no" 1>&6 |
---|
1426 | { echo "configure: error: gmp.h not found. Use option --with-gmp to specify path" 1>&2; exit 1; } |
---|
1427 | fi |
---|
1428 | done |
---|
1429 | |
---|
1430 | fi |
---|
1431 | |
---|
1432 | for ac_hdr in stdio.h stdlib.h string.h time.h math.h |
---|
1433 | do |
---|
1434 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
1435 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1436 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1437 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1438 | else |
---|
1439 | cat > conftest.$ac_ext <<EOF |
---|
1440 | #line 1441 "configure" |
---|
1441 | #include "confdefs.h" |
---|
1442 | #include <$ac_hdr> |
---|
1443 | EOF |
---|
1444 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1445 | { (eval echo configure:1446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1446 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1447 | if test -z "$ac_err"; then |
---|
1448 | rm -rf conftest* |
---|
1449 | eval "ac_cv_header_$ac_safe=yes" |
---|
1450 | else |
---|
1451 | echo "$ac_err" >&5 |
---|
1452 | rm -rf conftest* |
---|
1453 | eval "ac_cv_header_$ac_safe=no" |
---|
1454 | fi |
---|
1455 | rm -f conftest* |
---|
1456 | fi |
---|
1457 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1458 | echo "$ac_t""yes" 1>&6 |
---|
1459 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
---|
1460 | cat >> confdefs.h <<EOF |
---|
1461 | #define $ac_tr_hdr 1 |
---|
1462 | EOF |
---|
1463 | |
---|
1464 | else |
---|
1465 | echo "$ac_t""no" 1>&6 |
---|
1466 | { echo "configure: error: C header files not found" 1>&2; exit 1; } |
---|
1467 | fi |
---|
1468 | done |
---|
1469 | |
---|
1470 | |
---|
1471 | if test "x$enable_streamio" != xno; then |
---|
1472 | for ac_hdr in iostream.h strstream.h fstream.h |
---|
1473 | do |
---|
1474 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
1475 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1476 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1477 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1478 | else |
---|
1479 | cat > conftest.$ac_ext <<EOF |
---|
1480 | #line 1481 "configure" |
---|
1481 | #include "confdefs.h" |
---|
1482 | #include <$ac_hdr> |
---|
1483 | EOF |
---|
1484 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1485 | { (eval echo configure:1486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1486 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1487 | if test -z "$ac_err"; then |
---|
1488 | rm -rf conftest* |
---|
1489 | eval "ac_cv_header_$ac_safe=yes" |
---|
1490 | else |
---|
1491 | echo "$ac_err" >&5 |
---|
1492 | rm -rf conftest* |
---|
1493 | eval "ac_cv_header_$ac_safe=no" |
---|
1494 | fi |
---|
1495 | rm -f conftest* |
---|
1496 | fi |
---|
1497 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1498 | echo "$ac_t""yes" 1>&6 |
---|
1499 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
---|
1500 | cat >> confdefs.h <<EOF |
---|
1501 | #define $ac_tr_hdr 1 |
---|
1502 | EOF |
---|
1503 | |
---|
1504 | else |
---|
1505 | echo "$ac_t""no" 1>&6 |
---|
1506 | { echo "configure: error: C++ header files not found" 1>&2; exit 1; } |
---|
1507 | fi |
---|
1508 | done |
---|
1509 | |
---|
1510 | for ac_hdr in ctype.h |
---|
1511 | do |
---|
1512 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
1513 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1514 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1515 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1516 | else |
---|
1517 | cat > conftest.$ac_ext <<EOF |
---|
1518 | #line 1519 "configure" |
---|
1519 | #include "confdefs.h" |
---|
1520 | #include <$ac_hdr> |
---|
1521 | EOF |
---|
1522 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1523 | { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1524 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1525 | if test -z "$ac_err"; then |
---|
1526 | rm -rf conftest* |
---|
1527 | eval "ac_cv_header_$ac_safe=yes" |
---|
1528 | else |
---|
1529 | echo "$ac_err" >&5 |
---|
1530 | rm -rf conftest* |
---|
1531 | eval "ac_cv_header_$ac_safe=no" |
---|
1532 | fi |
---|
1533 | rm -f conftest* |
---|
1534 | fi |
---|
1535 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1536 | echo "$ac_t""yes" 1>&6 |
---|
1537 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
---|
1538 | cat >> confdefs.h <<EOF |
---|
1539 | #define $ac_tr_hdr 1 |
---|
1540 | EOF |
---|
1541 | |
---|
1542 | else |
---|
1543 | echo "$ac_t""no" 1>&6 |
---|
1544 | { echo "configure: error: standard C header files not found" 1>&2; exit 1; } |
---|
1545 | fi |
---|
1546 | done |
---|
1547 | |
---|
1548 | |
---|
1549 | # since the FTE will compile only with stream IO enabled we will not |
---|
1550 | # check for the necessary header files if stream IO is disabled |
---|
1551 | for ac_hdr in stdarg.h signal.h errno.h unistd.h |
---|
1552 | do |
---|
1553 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
1554 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1555 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1556 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1557 | else |
---|
1558 | cat > conftest.$ac_ext <<EOF |
---|
1559 | #line 1560 "configure" |
---|
1560 | #include "confdefs.h" |
---|
1561 | #include <$ac_hdr> |
---|
1562 | EOF |
---|
1563 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1564 | { (eval echo configure:1565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1565 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1566 | if test -z "$ac_err"; then |
---|
1567 | rm -rf conftest* |
---|
1568 | eval "ac_cv_header_$ac_safe=yes" |
---|
1569 | else |
---|
1570 | echo "$ac_err" >&5 |
---|
1571 | rm -rf conftest* |
---|
1572 | eval "ac_cv_header_$ac_safe=no" |
---|
1573 | fi |
---|
1574 | rm -f conftest* |
---|
1575 | fi |
---|
1576 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1577 | echo "$ac_t""yes" 1>&6 |
---|
1578 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
---|
1579 | cat >> confdefs.h <<EOF |
---|
1580 | #define $ac_tr_hdr 1 |
---|
1581 | EOF |
---|
1582 | |
---|
1583 | else |
---|
1584 | echo "$ac_t""no" 1>&6 |
---|
1585 | echo "configure: warning: C/C++ header files not found. |
---|
1586 | You will not be able to build the Factory Test Environment |
---|
1587 | (though Factory itself should compile)" 1>&2 |
---|
1588 | fi |
---|
1589 | done |
---|
1590 | |
---|
1591 | fi |
---|
1592 | |
---|
1593 | if test "x$enable_timing" != xno; then |
---|
1594 | for ac_hdr in sys/param.h sys/times.h |
---|
1595 | do |
---|
1596 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
1597 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1598 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1599 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1600 | else |
---|
1601 | cat > conftest.$ac_ext <<EOF |
---|
1602 | #line 1603 "configure" |
---|
1603 | #include "confdefs.h" |
---|
1604 | #include <$ac_hdr> |
---|
1605 | EOF |
---|
1606 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1607 | { (eval echo configure:1608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1608 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1609 | if test -z "$ac_err"; then |
---|
1610 | rm -rf conftest* |
---|
1611 | eval "ac_cv_header_$ac_safe=yes" |
---|
1612 | else |
---|
1613 | echo "$ac_err" >&5 |
---|
1614 | rm -rf conftest* |
---|
1615 | eval "ac_cv_header_$ac_safe=no" |
---|
1616 | fi |
---|
1617 | rm -f conftest* |
---|
1618 | fi |
---|
1619 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1620 | echo "$ac_t""yes" 1>&6 |
---|
1621 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
---|
1622 | cat >> confdefs.h <<EOF |
---|
1623 | #define $ac_tr_hdr 1 |
---|
1624 | EOF |
---|
1625 | |
---|
1626 | else |
---|
1627 | echo "$ac_t""no" 1>&6 |
---|
1628 | { echo "configure: error: \`sys/times.h' or \`sys/param.h' not found. Try |
---|
1629 | \`configure --disable-timing'" 1>&2; exit 1; } |
---|
1630 | fi |
---|
1631 | done |
---|
1632 | |
---|
1633 | fi |
---|
1634 | |
---|
1635 | # font-lock-trick: ' |
---|
1636 | |
---|
1637 | # |
---|
1638 | # - check for compiler characteristics. |
---|
1639 | # |
---|
1640 | |
---|
1641 | # use C to check compiler characteristics instead of C++. On |
---|
1642 | # nextstep, checking with C++ may fail. |
---|
1643 | ac_ext=c |
---|
1644 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1645 | ac_cpp='$CPP $CPPFLAGS' |
---|
1646 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1647 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1648 | |
---|
1649 | |
---|
1650 | # cross-compiling ?! |
---|
1651 | # If we cannot run a trivial program, we must be cross compiling. |
---|
1652 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 |
---|
1653 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then |
---|
1654 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1655 | else |
---|
1656 | if test "$cross_compiling" = yes; then |
---|
1657 | ac_cv_c_cross=yes |
---|
1658 | else |
---|
1659 | cat > conftest.$ac_ext <<EOF |
---|
1660 | #line 1661 "configure" |
---|
1661 | #include "confdefs.h" |
---|
1662 | main(){return(0);} |
---|
1663 | EOF |
---|
1664 | { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
---|
1665 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
1666 | ac_cv_c_cross=no |
---|
1667 | else |
---|
1668 | ac_cv_c_cross=yes |
---|
1669 | fi |
---|
1670 | fi |
---|
1671 | rm -fr conftest* |
---|
1672 | fi |
---|
1673 | |
---|
1674 | echo "$ac_t""$ac_cv_c_cross" 1>&6 |
---|
1675 | cross_compiling=$ac_cv_c_cross |
---|
1676 | |
---|
1677 | if test "x$cross_compiling" = xyes; then |
---|
1678 | echo "configure: warning: you better specify a cache file to get the values for |
---|
1679 | cross-compiling right (e.g., call \`configure |
---|
1680 | --cache-file=yourTarget.cache'). In particular, you |
---|
1681 | should make sure that your target machine supports |
---|
1682 | arithmetic shift." 1>&2 |
---|
1683 | fi |
---|
1684 | |
---|
1685 | # font-lock-trick: ' |
---|
1686 | |
---|
1687 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
1688 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
1689 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1690 | else |
---|
1691 | cat > conftest.$ac_ext <<EOF |
---|
1692 | #line 1693 "configure" |
---|
1693 | #include "confdefs.h" |
---|
1694 | |
---|
1695 | int main() { return 0; } |
---|
1696 | int t() { |
---|
1697 | |
---|
1698 | /* Ultrix mips cc rejects this. */ |
---|
1699 | typedef int charset[2]; const charset x; |
---|
1700 | /* SunOS 4.1.1 cc rejects this. */ |
---|
1701 | char const *const *ccp; |
---|
1702 | char **p; |
---|
1703 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
1704 | struct point {int x, y;}; |
---|
1705 | static struct point const zero = {0,0}; |
---|
1706 | /* AIX XL C 1.02.0.0 rejects this. |
---|
1707 | It does not let you subtract one const X* pointer from another in an arm |
---|
1708 | of an if-expression whose if-part is not a constant expression */ |
---|
1709 | const char *g = "string"; |
---|
1710 | ccp = &g + (g ? g-g : 0); |
---|
1711 | /* HPUX 7.0 cc rejects these. */ |
---|
1712 | ++ccp; |
---|
1713 | p = (char**) ccp; |
---|
1714 | ccp = (char const *const *) p; |
---|
1715 | { /* SCO 3.2v4 cc rejects this. */ |
---|
1716 | char *t; |
---|
1717 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
1718 | |
---|
1719 | *t++ = 0; |
---|
1720 | } |
---|
1721 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
1722 | int x[] = {25, 17}; |
---|
1723 | const int *foo = &x[0]; |
---|
1724 | ++foo; |
---|
1725 | } |
---|
1726 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
1727 | typedef const int *iptr; |
---|
1728 | iptr p = 0; |
---|
1729 | ++p; |
---|
1730 | } |
---|
1731 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
1732 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
1733 | struct s { int j; const int *ap[3]; }; |
---|
1734 | struct s *b; b->j = 5; |
---|
1735 | } |
---|
1736 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
1737 | const int foo = 10; |
---|
1738 | } |
---|
1739 | |
---|
1740 | ; return 0; } |
---|
1741 | EOF |
---|
1742 | if { (eval echo configure:1743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1743 | rm -rf conftest* |
---|
1744 | ac_cv_c_const=yes |
---|
1745 | else |
---|
1746 | rm -rf conftest* |
---|
1747 | ac_cv_c_const=no |
---|
1748 | fi |
---|
1749 | rm -f conftest* |
---|
1750 | |
---|
1751 | fi |
---|
1752 | |
---|
1753 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
1754 | if test $ac_cv_c_const = no; then |
---|
1755 | cat >> confdefs.h <<\EOF |
---|
1756 | #define const |
---|
1757 | EOF |
---|
1758 | |
---|
1759 | fi |
---|
1760 | |
---|
1761 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
---|
1762 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
---|
1763 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1764 | else |
---|
1765 | ac_cv_c_inline=no |
---|
1766 | for ac_kw in inline __inline__ __inline; do |
---|
1767 | cat > conftest.$ac_ext <<EOF |
---|
1768 | #line 1769 "configure" |
---|
1769 | #include "confdefs.h" |
---|
1770 | |
---|
1771 | int main() { return 0; } |
---|
1772 | int t() { |
---|
1773 | } $ac_kw foo() { |
---|
1774 | ; return 0; } |
---|
1775 | EOF |
---|
1776 | if { (eval echo configure:1777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1777 | rm -rf conftest* |
---|
1778 | ac_cv_c_inline=$ac_kw; break |
---|
1779 | fi |
---|
1780 | rm -f conftest* |
---|
1781 | |
---|
1782 | done |
---|
1783 | |
---|
1784 | fi |
---|
1785 | |
---|
1786 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
---|
1787 | case "$ac_cv_c_inline" in |
---|
1788 | inline | yes) ;; |
---|
1789 | no) cat >> confdefs.h <<\EOF |
---|
1790 | #define inline |
---|
1791 | EOF |
---|
1792 | ;; |
---|
1793 | *) cat >> confdefs.h <<EOF |
---|
1794 | #define inline $ac_cv_c_inline |
---|
1795 | EOF |
---|
1796 | ;; |
---|
1797 | esac |
---|
1798 | |
---|
1799 | |
---|
1800 | # arithmetic shift |
---|
1801 | echo $ac_n "checking whether your compiler does arithmetic shifts""... $ac_c" 1>&6 |
---|
1802 | if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then |
---|
1803 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1804 | else |
---|
1805 | if test "$cross_compiling" = yes; then |
---|
1806 | ac_cv_shift=yes |
---|
1807 | else |
---|
1808 | cat > conftest.$ac_ext <<EOF |
---|
1809 | #line 1810 "configure" |
---|
1810 | #include "confdefs.h" |
---|
1811 | int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } |
---|
1812 | EOF |
---|
1813 | { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
---|
1814 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
1815 | ac_cv_shift=yes |
---|
1816 | else |
---|
1817 | ac_cv_shift=no |
---|
1818 | fi |
---|
1819 | fi |
---|
1820 | rm -fr conftest* |
---|
1821 | fi |
---|
1822 | |
---|
1823 | if test "x$ac_cv_shift" = xyes; then |
---|
1824 | echo "$ac_t""yes" 1>&6 |
---|
1825 | else |
---|
1826 | echo "$ac_t""no" 1>&6 |
---|
1827 | fi |
---|
1828 | |
---|
1829 | # |
---|
1830 | # - paths. |
---|
1831 | # |
---|
1832 | |
---|
1833 | # we have to get datadir explicitely for config.h |
---|
1834 | save_prefix="$prefix" |
---|
1835 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
---|
1836 | expl_datadir=`eval echo "$datadir"` |
---|
1837 | prefix="$save_prefix" |
---|
1838 | # get absolute path of expl_datadir |
---|
1839 | if echo "$expl_datadir" | grep -v '^/' > /dev/null 2> /dev/null; then |
---|
1840 | expl_datadir="`pwd`/$expl_datadir" |
---|
1841 | fi |
---|
1842 | |
---|
1843 | if test "x$with_Singular" = xyes; then |
---|
1844 | gftabledir='${datadir}/Singular/gftables' |
---|
1845 | expl_gftabledir="$expl_datadir/Singular/gftables" |
---|
1846 | templatedir='${includedir}/templates' |
---|
1847 | else |
---|
1848 | gftabledir='${datadir}/factory/gftables' |
---|
1849 | expl_gftabledir="$expl_datadir/factory/gftables" |
---|
1850 | templatedir='${includedir}/templates' |
---|
1851 | fi |
---|
1852 | |
---|
1853 | # |
---|
1854 | # - the name of the game and the targets to create. |
---|
1855 | # |
---|
1856 | if test "x$with_Singular" = xyes; then |
---|
1857 | libfactory=libsingcf.a |
---|
1858 | |
---|
1859 | factorysrc='$(basefactorysrc) $(singfactorysrc)' |
---|
1860 | factoryincl='$(basefactoryincl) $(singfactoryincl)' |
---|
1861 | memmansrc= |
---|
1862 | memmanincl= |
---|
1863 | |
---|
1864 | alltargets=cf |
---|
1865 | installtargets=installcf |
---|
1866 | uninstalltargets=uninstallcf |
---|
1867 | else |
---|
1868 | libfactory=libcf.a |
---|
1869 | |
---|
1870 | factorysrc='$(basefactorysrc)' |
---|
1871 | factoryincl='$(basefactoryincl)' |
---|
1872 | memmansrc='$(basememmansrc)' |
---|
1873 | memmanincl= |
---|
1874 | |
---|
1875 | alltargets=cf |
---|
1876 | installtargets=installcf |
---|
1877 | uninstalltargets=uninstallcf |
---|
1878 | fi |
---|
1879 | |
---|
1880 | # |
---|
1881 | # - set defines and variables according to our tests. |
---|
1882 | # |
---|
1883 | |
---|
1884 | # CFLAGS |
---|
1885 | if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then |
---|
1886 | CFLAGS="-O2 -fomit-frame-pointer" |
---|
1887 | fi |
---|
1888 | |
---|
1889 | # CXXFLAGS |
---|
1890 | if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then |
---|
1891 | CXXFLAGS="-O2 -fomit-frame-pointer" |
---|
1892 | fi |
---|
1893 | |
---|
1894 | # ARFLAGS |
---|
1895 | test "${ARFLAGS+set}" = set || ARFLAGS=cr |
---|
1896 | |
---|
1897 | # M4FLAGS |
---|
1898 | test "${M4FLAGS+set}" = set || M4FLAGS= |
---|
1899 | |
---|
1900 | # Singular |
---|
1901 | if test "x$with_Singular" = xyes; then |
---|
1902 | cat >> confdefs.h <<\EOF |
---|
1903 | #define SINGULAR 1 |
---|
1904 | EOF |
---|
1905 | |
---|
1906 | fi |
---|
1907 | |
---|
1908 | # arithmetic shift |
---|
1909 | if test "x$ac_cv_shift" = xyes; then |
---|
1910 | cat >> confdefs.h <<\EOF |
---|
1911 | #define HAS_ARITHMETIC_SHIFT 1 |
---|
1912 | EOF |
---|
1913 | |
---|
1914 | fi |
---|
1915 | |
---|
1916 | # gmp-stuff. we must not set these flags before the tests |
---|
1917 | # are finished! |
---|
1918 | if test "x$gmp_in_installation" = xyes; then |
---|
1919 | CPPFLAGS="-I\$(includedir) $CPPFLAGS" |
---|
1920 | LDFLAGS="-L\$(libdir) -lgmp $LDFLAGS" |
---|
1921 | fi |
---|
1922 | |
---|
1923 | # memory manager |
---|
1924 | if test "x$with_memman" != xno; then |
---|
1925 | alltargets="$alltargets mem" |
---|
1926 | installtargets="$installtargets installmem" |
---|
1927 | uninstalltargets="$uninstalltargets uninstallmem" |
---|
1928 | cat >> confdefs.h <<\EOF |
---|
1929 | #define USE_MEMUTIL 1 |
---|
1930 | EOF |
---|
1931 | |
---|
1932 | |
---|
1933 | if test "x$with_memman" != xnew; then |
---|
1934 | memmansrc="$memmansrc \$(oldmemmansrc)" |
---|
1935 | memmanincl='$(oldmemmanincl)' |
---|
1936 | cat >> confdefs.h <<\EOF |
---|
1937 | #define USE_OLD_MEMMAN 1 |
---|
1938 | EOF |
---|
1939 | |
---|
1940 | else |
---|
1941 | memmansrc="$memmansrc \$(newmemmansrc)" |
---|
1942 | memmanincl='$(newmemmanincl)' |
---|
1943 | |
---|
1944 | if test "x$enable_memdebug" = xfull; then |
---|
1945 | cat >> confdefs.h <<\EOF |
---|
1946 | #define MDEBUG 1 |
---|
1947 | EOF |
---|
1948 | |
---|
1949 | elif test "x$enable_memdebug" != xno; then |
---|
1950 | cat >> confdefs.h <<\EOF |
---|
1951 | #define MDEBUG 0 |
---|
1952 | EOF |
---|
1953 | |
---|
1954 | fi |
---|
1955 | fi |
---|
1956 | fi |
---|
1957 | |
---|
1958 | # iostream |
---|
1959 | if test "x$enable_streamio" = xno; then |
---|
1960 | cat >> confdefs.h <<\EOF |
---|
1961 | #define NOSTREAMIO 1 |
---|
1962 | EOF |
---|
1963 | |
---|
1964 | else |
---|
1965 | factorysrc="$factorysrc \$(useiofactorysrc)" |
---|
1966 | factoryincl="$factoryincl \$(useiofactoryincl)" |
---|
1967 | fi |
---|
1968 | |
---|
1969 | # assertions |
---|
1970 | if test "x$enable_assertions" = xno; then |
---|
1971 | cat >> confdefs.h <<\EOF |
---|
1972 | #define NOASSERT 1 |
---|
1973 | EOF |
---|
1974 | |
---|
1975 | fi |
---|
1976 | |
---|
1977 | # timing |
---|
1978 | if test "x$enable_timing" != xno; then |
---|
1979 | cat >> confdefs.h <<\EOF |
---|
1980 | #define TIMING 1 |
---|
1981 | EOF |
---|
1982 | |
---|
1983 | fi |
---|
1984 | |
---|
1985 | # debugoutput |
---|
1986 | if test "x$enable_debugoutput" != xno; then |
---|
1987 | cat >> confdefs.h <<\EOF |
---|
1988 | #define DEBUGOUTPUT 1 |
---|
1989 | EOF |
---|
1990 | |
---|
1991 | fi |
---|
1992 | |
---|
1993 | # |
---|
1994 | # - complete and substitute variables, defines. |
---|
1995 | # |
---|
1996 | |
---|
1997 | |
---|
1998 | |
---|
1999 | |
---|
2000 | |
---|
2001 | |
---|
2002 | |
---|
2003 | |
---|
2004 | |
---|
2005 | |
---|
2006 | |
---|
2007 | |
---|
2008 | |
---|
2009 | |
---|
2010 | |
---|
2011 | |
---|
2012 | |
---|
2013 | |
---|
2014 | |
---|
2015 | |
---|
2016 | cat >> confdefs.h <<EOF |
---|
2017 | #define FACTORYVERSION "$factory_version" |
---|
2018 | EOF |
---|
2019 | |
---|
2020 | cat >> confdefs.h <<EOF |
---|
2021 | #define FACTORYCONFIGURATION "$factory_configuration" |
---|
2022 | EOF |
---|
2023 | |
---|
2024 | cat >> confdefs.h <<EOF |
---|
2025 | #define GFTABLEDIR "$expl_gftabledir" |
---|
2026 | EOF |
---|
2027 | |
---|
2028 | |
---|
2029 | trap '' 1 2 15 |
---|
2030 | cat > confcache <<\EOF |
---|
2031 | # This file is a shell script that caches the results of configure |
---|
2032 | # tests run on this system so they can be shared between configure |
---|
2033 | # scripts and configure runs. It is not useful on other systems. |
---|
2034 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
2035 | # |
---|
2036 | # By default, configure uses ./config.cache as the cache file, |
---|
2037 | # creating it if it does not exist already. You can give configure |
---|
2038 | # the --cache-file=FILE option to use a different cache file; that is |
---|
2039 | # what configure does when it calls configure scripts in |
---|
2040 | # subdirectories, so they share the cache. |
---|
2041 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
2042 | # config.status only pays attention to the cache file if you give it the |
---|
2043 | # --recheck option to rerun configure. |
---|
2044 | # |
---|
2045 | EOF |
---|
2046 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
2047 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
2048 | (set) 2>&1 | |
---|
2049 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ |
---|
2050 | >> confcache |
---|
2051 | if cmp -s $cache_file confcache; then |
---|
2052 | : |
---|
2053 | else |
---|
2054 | if test -w $cache_file; then |
---|
2055 | echo "updating cache $cache_file" |
---|
2056 | cat confcache > $cache_file |
---|
2057 | else |
---|
2058 | echo "not updating unwritable cache $cache_file" |
---|
2059 | fi |
---|
2060 | fi |
---|
2061 | rm -f confcache |
---|
2062 | |
---|
2063 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
2064 | |
---|
2065 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
2066 | # Let make expand exec_prefix. |
---|
2067 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
2068 | |
---|
2069 | # Any assignment to VPATH causes Sun make to only execute |
---|
2070 | # the first set of double-colon rules, so remove it if not needed. |
---|
2071 | # If there is a colon in the path, we need to keep it. |
---|
2072 | if test "x$srcdir" = x.; then |
---|
2073 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
2074 | fi |
---|
2075 | |
---|
2076 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
2077 | |
---|
2078 | DEFS=-DHAVE_CONFIG_H |
---|
2079 | |
---|
2080 | # Without the "./", some shells look in PATH for config.status. |
---|
2081 | : ${CONFIG_STATUS=./config.status} |
---|
2082 | |
---|
2083 | echo creating $CONFIG_STATUS |
---|
2084 | rm -f $CONFIG_STATUS |
---|
2085 | cat > $CONFIG_STATUS <<EOF |
---|
2086 | #! /bin/sh |
---|
2087 | # Generated automatically by configure. |
---|
2088 | # Run this file to recreate the current configuration. |
---|
2089 | # This directory was configured as follows, |
---|
2090 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
2091 | # |
---|
2092 | # $0 $ac_configure_args |
---|
2093 | # |
---|
2094 | # Compiler output produced by configure, useful for debugging |
---|
2095 | # configure, is in ./config.log if it exists. |
---|
2096 | |
---|
2097 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
2098 | for ac_option |
---|
2099 | do |
---|
2100 | case "\$ac_option" in |
---|
2101 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
2102 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
2103 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
2104 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
2105 | echo "$CONFIG_STATUS generated by autoconf version 2.10" |
---|
2106 | exit 0 ;; |
---|
2107 | -help | --help | --hel | --he | --h) |
---|
2108 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
2109 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
2110 | esac |
---|
2111 | done |
---|
2112 | |
---|
2113 | ac_given_srcdir=$srcdir |
---|
2114 | ac_given_INSTALL="$INSTALL" |
---|
2115 | |
---|
2116 | trap 'rm -fr `echo "GNUmakefile ftest/GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
2117 | EOF |
---|
2118 | cat >> $CONFIG_STATUS <<EOF |
---|
2119 | |
---|
2120 | # Protect against being on the right side of a sed subst in config.status. |
---|
2121 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
2122 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
2123 | $ac_vpsub |
---|
2124 | $extrasub |
---|
2125 | s%@CFLAGS@%$CFLAGS%g |
---|
2126 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
2127 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
2128 | s%@DEFS@%$DEFS%g |
---|
2129 | s%@LDFLAGS@%$LDFLAGS%g |
---|
2130 | s%@LIBS@%$LIBS%g |
---|
2131 | s%@exec_prefix@%$exec_prefix%g |
---|
2132 | s%@prefix@%$prefix%g |
---|
2133 | s%@program_transform_name@%$program_transform_name%g |
---|
2134 | s%@bindir@%$bindir%g |
---|
2135 | s%@sbindir@%$sbindir%g |
---|
2136 | s%@libexecdir@%$libexecdir%g |
---|
2137 | s%@datadir@%$datadir%g |
---|
2138 | s%@sysconfdir@%$sysconfdir%g |
---|
2139 | s%@sharedstatedir@%$sharedstatedir%g |
---|
2140 | s%@localstatedir@%$localstatedir%g |
---|
2141 | s%@libdir@%$libdir%g |
---|
2142 | s%@includedir@%$includedir%g |
---|
2143 | s%@oldincludedir@%$oldincludedir%g |
---|
2144 | s%@infodir@%$infodir%g |
---|
2145 | s%@mandir@%$mandir%g |
---|
2146 | s%@CC@%$CC%g |
---|
2147 | s%@CXX@%$CXX%g |
---|
2148 | s%@CPP@%$CPP%g |
---|
2149 | s%@CXXCPP@%$CXXCPP%g |
---|
2150 | s%@LN_S@%$LN_S%g |
---|
2151 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
2152 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
2153 | s%@RANLIB@%$RANLIB%g |
---|
2154 | s%@SET_MAKE@%$SET_MAKE%g |
---|
2155 | s%@AR@%$AR%g |
---|
2156 | s%@M4@%$M4%g |
---|
2157 | s%@BISON@%$BISON%g |
---|
2158 | s%@FACTORY_MKINSTALLDIRS@%$FACTORY_MKINSTALLDIRS%g |
---|
2159 | s%@FACTORY_MAKEHEADER@%$FACTORY_MAKEHEADER%g |
---|
2160 | s%@gftabledir@%$gftabledir%g |
---|
2161 | s%@templatedir@%$templatedir%g |
---|
2162 | s%@factory_version@%$factory_version%g |
---|
2163 | s%@libfactory@%$libfactory%g |
---|
2164 | s%@ARFLAGS@%$ARFLAGS%g |
---|
2165 | s%@M4FLAGS@%$M4FLAGS%g |
---|
2166 | s%@MAKEHEADERFLAGS@%$MAKEHEADERFLAGS%g |
---|
2167 | s%@factorysrc@%$factorysrc%g |
---|
2168 | s%@factoryincl@%$factoryincl%g |
---|
2169 | s%@memmansrc@%$memmansrc%g |
---|
2170 | s%@memmanincl@%$memmanincl%g |
---|
2171 | s%@alltargets@%$alltargets%g |
---|
2172 | s%@installtargets@%$installtargets%g |
---|
2173 | s%@uninstalltargets@%$uninstalltargets%g |
---|
2174 | |
---|
2175 | CEOF |
---|
2176 | EOF |
---|
2177 | cat >> $CONFIG_STATUS <<EOF |
---|
2178 | |
---|
2179 | CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile ftest/GNUmakefile"} |
---|
2180 | EOF |
---|
2181 | cat >> $CONFIG_STATUS <<\EOF |
---|
2182 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
2183 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
---|
2184 | case "$ac_file" in |
---|
2185 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
---|
2186 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
2187 | *) ac_file_in="${ac_file}.in" ;; |
---|
2188 | esac |
---|
2189 | |
---|
2190 | # Adjust relative srcdir, etc. for subdirectories. |
---|
2191 | |
---|
2192 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
2193 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
2194 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
2195 | # The file is in a subdirectory. |
---|
2196 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
2197 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
2198 | # A "../" for each directory in $ac_dir_suffix. |
---|
2199 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
2200 | else |
---|
2201 | ac_dir_suffix= ac_dots= |
---|
2202 | fi |
---|
2203 | |
---|
2204 | case "$ac_given_srcdir" in |
---|
2205 | .) srcdir=. |
---|
2206 | if test -z "$ac_dots"; then top_srcdir=. |
---|
2207 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
2208 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
2209 | *) # Relative path. |
---|
2210 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
2211 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
2212 | esac |
---|
2213 | |
---|
2214 | case "$ac_given_INSTALL" in |
---|
2215 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
2216 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
2217 | esac |
---|
2218 | echo creating "$ac_file" |
---|
2219 | rm -f "$ac_file" |
---|
2220 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
2221 | case "$ac_file" in |
---|
2222 | *Makefile*) ac_comsub="1i\\ |
---|
2223 | # $configure_input" ;; |
---|
2224 | *) ac_comsub= ;; |
---|
2225 | esac |
---|
2226 | sed -e "$ac_comsub |
---|
2227 | s%@configure_input@%$configure_input%g |
---|
2228 | s%@srcdir@%$srcdir%g |
---|
2229 | s%@top_srcdir@%$top_srcdir%g |
---|
2230 | s%@INSTALL@%$INSTALL%g |
---|
2231 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file |
---|
2232 | fi; done |
---|
2233 | rm -f conftest.subs |
---|
2234 | |
---|
2235 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
2236 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
2237 | # |
---|
2238 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
2239 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
2240 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
2241 | ac_dC='\3' |
---|
2242 | ac_dD='%g' |
---|
2243 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
2244 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
2245 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
2246 | ac_uC=' ' |
---|
2247 | ac_uD='\4%g' |
---|
2248 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
2249 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
2250 | ac_eB='$%\1#\2define\3' |
---|
2251 | ac_eC=' ' |
---|
2252 | ac_eD='%g' |
---|
2253 | |
---|
2254 | CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"} |
---|
2255 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
2256 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
---|
2257 | case "$ac_file" in |
---|
2258 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
---|
2259 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
2260 | *) ac_file_in="${ac_file}.in" ;; |
---|
2261 | esac |
---|
2262 | |
---|
2263 | echo creating $ac_file |
---|
2264 | |
---|
2265 | rm -f conftest.frag conftest.in conftest.out |
---|
2266 | cp $ac_given_srcdir/$ac_file_in conftest.in |
---|
2267 | |
---|
2268 | EOF |
---|
2269 | |
---|
2270 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
2271 | # the proper values into config.h.in to produce config.h. And first: |
---|
2272 | # Protect against being on the right side of a sed subst in config.status. |
---|
2273 | # Protect against being in an unquoted here document in config.status. |
---|
2274 | rm -f conftest.vals |
---|
2275 | cat > conftest.hdr <<\EOF |
---|
2276 | s/[\\&%]/\\&/g |
---|
2277 | s%[\\$`]%\\&%g |
---|
2278 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
2279 | s%ac_d%ac_u%gp |
---|
2280 | s%ac_u%ac_e%gp |
---|
2281 | EOF |
---|
2282 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
2283 | rm -f conftest.hdr |
---|
2284 | |
---|
2285 | # This sed command replaces #undef with comments. This is necessary, for |
---|
2286 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
2287 | # on some systems where configure will not decide to define it. |
---|
2288 | cat >> conftest.vals <<\EOF |
---|
2289 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
2290 | EOF |
---|
2291 | |
---|
2292 | # Break up conftest.vals because some shells have a limit on |
---|
2293 | # the size of here documents, and old seds have small limits too. |
---|
2294 | # Maximum number of lines to put in a single here document. |
---|
2295 | ac_max_here_lines=12 |
---|
2296 | |
---|
2297 | rm -f conftest.tail |
---|
2298 | while : |
---|
2299 | do |
---|
2300 | ac_lines=`grep -c . conftest.vals` |
---|
2301 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
2302 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
2303 | # Write a limited-size here document to conftest.frag. |
---|
2304 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
2305 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
2306 | echo 'CEOF |
---|
2307 | sed -f conftest.frag conftest.in > conftest.out |
---|
2308 | rm -f conftest.in |
---|
2309 | mv conftest.out conftest.in |
---|
2310 | ' >> $CONFIG_STATUS |
---|
2311 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
2312 | rm -f conftest.vals |
---|
2313 | mv conftest.tail conftest.vals |
---|
2314 | done |
---|
2315 | rm -f conftest.vals |
---|
2316 | |
---|
2317 | cat >> $CONFIG_STATUS <<\EOF |
---|
2318 | rm -f conftest.frag conftest.h |
---|
2319 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
2320 | cat conftest.in >> conftest.h |
---|
2321 | rm -f conftest.in |
---|
2322 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
2323 | echo "$ac_file is unchanged" |
---|
2324 | rm -f conftest.h |
---|
2325 | else |
---|
2326 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
2327 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
2328 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
2329 | # The file is in a subdirectory. |
---|
2330 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
2331 | fi |
---|
2332 | rm -f $ac_file |
---|
2333 | mv conftest.h $ac_file |
---|
2334 | fi |
---|
2335 | fi; done |
---|
2336 | |
---|
2337 | |
---|
2338 | |
---|
2339 | exit 0 |
---|
2340 | EOF |
---|
2341 | chmod +x $CONFIG_STATUS |
---|
2342 | rm -fr confdefs* $ac_clean_files |
---|
2343 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
2344 | |
---|