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