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