1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.9 |
---|
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 | --without-readline do not use readline for fancy display" |
---|
17 | ac_help="$ac_help |
---|
18 | --without-MP do not use MP (disables MP links)" |
---|
19 | ac_help="$ac_help |
---|
20 | --without-dbm do not use dbm (disables DBM links)" |
---|
21 | ac_help="$ac_help |
---|
22 | --without-info do not use info for help (use buildin help, instead)" |
---|
23 | ac_help="$ac_help |
---|
24 | --without-dld do not use dld (disables dynamic linking)" |
---|
25 | ac_help="$ac_help |
---|
26 | --without-factory do not use factory (disables poly factorization)" |
---|
27 | ac_help="$ac_help |
---|
28 | --without-libfac do not use libfac (disables primary decompositions)" |
---|
29 | ac_help="$ac_help |
---|
30 | \ |
---|
31 | --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic |
---|
32 | where PACKAGE can be gmp, smallgmp, or buildin" |
---|
33 | |
---|
34 | # Initialize some variables set by options. |
---|
35 | # The variables have the same names as the options, with |
---|
36 | # dashes changed to underlines. |
---|
37 | build=NONE |
---|
38 | cache_file=./config.cache |
---|
39 | exec_prefix=NONE |
---|
40 | host=NONE |
---|
41 | no_create= |
---|
42 | nonopt=NONE |
---|
43 | no_recursion= |
---|
44 | prefix=NONE |
---|
45 | program_prefix=NONE |
---|
46 | program_suffix=NONE |
---|
47 | program_transform_name=s,x,x, |
---|
48 | silent= |
---|
49 | site= |
---|
50 | srcdir= |
---|
51 | target=NONE |
---|
52 | verbose= |
---|
53 | x_includes=NONE |
---|
54 | x_libraries=NONE |
---|
55 | bindir='${exec_prefix}/bin' |
---|
56 | sbindir='${exec_prefix}/sbin' |
---|
57 | libexecdir='${exec_prefix}/libexec' |
---|
58 | datadir='${prefix}/share' |
---|
59 | sysconfdir='${prefix}/etc' |
---|
60 | sharedstatedir='${prefix}/com' |
---|
61 | localstatedir='${prefix}/var' |
---|
62 | libdir='${exec_prefix}/lib' |
---|
63 | includedir='${prefix}/include' |
---|
64 | oldincludedir='/usr/include' |
---|
65 | infodir='${prefix}/info' |
---|
66 | mandir='${prefix}/man' |
---|
67 | |
---|
68 | # Initialize some other variables. |
---|
69 | subdirs= |
---|
70 | MFLAGS= MAKEFLAGS= |
---|
71 | |
---|
72 | ac_prev= |
---|
73 | for ac_option |
---|
74 | do |
---|
75 | |
---|
76 | # If the previous option needs an argument, assign it. |
---|
77 | if test -n "$ac_prev"; then |
---|
78 | eval "$ac_prev=\$ac_option" |
---|
79 | ac_prev= |
---|
80 | continue |
---|
81 | fi |
---|
82 | |
---|
83 | case "$ac_option" in |
---|
84 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
85 | *) ac_optarg= ;; |
---|
86 | esac |
---|
87 | |
---|
88 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
89 | |
---|
90 | case "$ac_option" in |
---|
91 | |
---|
92 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
93 | ac_prev=bindir ;; |
---|
94 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
95 | bindir="$ac_optarg" ;; |
---|
96 | |
---|
97 | -build | --build | --buil | --bui | --bu) |
---|
98 | ac_prev=build ;; |
---|
99 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
100 | build="$ac_optarg" ;; |
---|
101 | |
---|
102 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
103 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
104 | ac_prev=cache_file ;; |
---|
105 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
106 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
107 | cache_file="$ac_optarg" ;; |
---|
108 | |
---|
109 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
110 | ac_prev=datadir ;; |
---|
111 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
112 | | --da=*) |
---|
113 | datadir="$ac_optarg" ;; |
---|
114 | |
---|
115 | -disable-* | --disable-*) |
---|
116 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
117 | # Reject names that are not valid shell variable names. |
---|
118 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
119 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
120 | fi |
---|
121 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
122 | eval "enable_${ac_feature}=no" ;; |
---|
123 | |
---|
124 | -enable-* | --enable-*) |
---|
125 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
126 | # Reject names that are not valid shell variable names. |
---|
127 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
128 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
129 | fi |
---|
130 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
131 | case "$ac_option" in |
---|
132 | *=*) ;; |
---|
133 | *) ac_optarg=yes ;; |
---|
134 | esac |
---|
135 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
136 | |
---|
137 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
138 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
139 | | --exec | --exe | --ex) |
---|
140 | ac_prev=exec_prefix ;; |
---|
141 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
142 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
143 | | --exec=* | --exe=* | --ex=*) |
---|
144 | exec_prefix="$ac_optarg" ;; |
---|
145 | |
---|
146 | -gas | --gas | --ga | --g) |
---|
147 | # Obsolete; use --with-gas. |
---|
148 | with_gas=yes ;; |
---|
149 | |
---|
150 | -help | --help | --hel | --he) |
---|
151 | # Omit some internal or obsolete options to make the list less imposing. |
---|
152 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
153 | cat << EOF |
---|
154 | Usage: configure [options] [host] |
---|
155 | Options: [defaults in brackets after descriptions] |
---|
156 | Configuration: |
---|
157 | --cache-file=FILE cache test results in FILE |
---|
158 | --help print this message |
---|
159 | --no-create do not create output files |
---|
160 | --quiet, --silent do not print \`checking...' messages |
---|
161 | --version print the version of autoconf that created configure |
---|
162 | Directory and file names: |
---|
163 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
164 | [$ac_default_prefix] |
---|
165 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
166 | [same as prefix] |
---|
167 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
168 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
169 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
170 | --datadir=DIR read-only architecture-independent data in DIR |
---|
171 | [PREFIX/share] |
---|
172 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
173 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
174 | [PREFIX/com] |
---|
175 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
176 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
177 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
178 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
179 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
180 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
181 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
182 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
183 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
184 | --program-transform-name=PROGRAM |
---|
185 | run sed PROGRAM on installed program names |
---|
186 | EOF |
---|
187 | cat << EOF |
---|
188 | Host type: |
---|
189 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
190 | --host=HOST configure for HOST [guessed] |
---|
191 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
192 | Features and packages: |
---|
193 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
194 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
195 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
196 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
197 | --x-includes=DIR X include files are in DIR |
---|
198 | --x-libraries=DIR X library files are in DIR |
---|
199 | EOF |
---|
200 | if test -n "$ac_help"; then |
---|
201 | echo "--enable and --with options recognized:$ac_help" |
---|
202 | fi |
---|
203 | exit 0 ;; |
---|
204 | |
---|
205 | -host | --host | --hos | --ho) |
---|
206 | ac_prev=host ;; |
---|
207 | -host=* | --host=* | --hos=* | --ho=*) |
---|
208 | host="$ac_optarg" ;; |
---|
209 | |
---|
210 | -includedir | --includedir | --includedi | --included | --include \ |
---|
211 | | --includ | --inclu | --incl | --inc) |
---|
212 | ac_prev=includedir ;; |
---|
213 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
214 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
215 | includedir="$ac_optarg" ;; |
---|
216 | |
---|
217 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
218 | ac_prev=infodir ;; |
---|
219 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
220 | infodir="$ac_optarg" ;; |
---|
221 | |
---|
222 | -libdir | --libdir | --libdi | --libd) |
---|
223 | ac_prev=libdir ;; |
---|
224 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
225 | libdir="$ac_optarg" ;; |
---|
226 | |
---|
227 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
228 | | --libexe | --libex | --libe) |
---|
229 | ac_prev=libexecdir ;; |
---|
230 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
231 | | --libexe=* | --libex=* | --libe=*) |
---|
232 | libexecdir="$ac_optarg" ;; |
---|
233 | |
---|
234 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
235 | | --localstate | --localstat | --localsta | --localst \ |
---|
236 | | --locals | --local | --loca | --loc | --lo) |
---|
237 | ac_prev=localstatedir ;; |
---|
238 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
239 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
240 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
241 | localstatedir="$ac_optarg" ;; |
---|
242 | |
---|
243 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
244 | ac_prev=mandir ;; |
---|
245 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
246 | mandir="$ac_optarg" ;; |
---|
247 | |
---|
248 | -nfp | --nfp | --nf) |
---|
249 | # Obsolete; use --without-fp. |
---|
250 | with_fp=no ;; |
---|
251 | |
---|
252 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
253 | | --no-cr | --no-c) |
---|
254 | no_create=yes ;; |
---|
255 | |
---|
256 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
257 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
258 | no_recursion=yes ;; |
---|
259 | |
---|
260 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
261 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
262 | | --oldin | --oldi | --old | --ol | --o) |
---|
263 | ac_prev=oldincludedir ;; |
---|
264 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
265 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
266 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
267 | oldincludedir="$ac_optarg" ;; |
---|
268 | |
---|
269 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
270 | ac_prev=prefix ;; |
---|
271 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
272 | prefix="$ac_optarg" ;; |
---|
273 | |
---|
274 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
275 | | --program-pre | --program-pr | --program-p) |
---|
276 | ac_prev=program_prefix ;; |
---|
277 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
278 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
279 | program_prefix="$ac_optarg" ;; |
---|
280 | |
---|
281 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
282 | | --program-suf | --program-su | --program-s) |
---|
283 | ac_prev=program_suffix ;; |
---|
284 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
285 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
286 | program_suffix="$ac_optarg" ;; |
---|
287 | |
---|
288 | -program-transform-name | --program-transform-name \ |
---|
289 | | --program-transform-nam | --program-transform-na \ |
---|
290 | | --program-transform-n | --program-transform- \ |
---|
291 | | --program-transform | --program-transfor \ |
---|
292 | | --program-transfo | --program-transf \ |
---|
293 | | --program-trans | --program-tran \ |
---|
294 | | --progr-tra | --program-tr | --program-t) |
---|
295 | ac_prev=program_transform_name ;; |
---|
296 | -program-transform-name=* | --program-transform-name=* \ |
---|
297 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
298 | | --program-transform-n=* | --program-transform-=* \ |
---|
299 | | --program-transform=* | --program-transfor=* \ |
---|
300 | | --program-transfo=* | --program-transf=* \ |
---|
301 | | --program-trans=* | --program-tran=* \ |
---|
302 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
303 | program_transform_name="$ac_optarg" ;; |
---|
304 | |
---|
305 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
306 | | -silent | --silent | --silen | --sile | --sil) |
---|
307 | silent=yes ;; |
---|
308 | |
---|
309 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
310 | ac_prev=sbindir ;; |
---|
311 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
312 | | --sbi=* | --sb=*) |
---|
313 | sbindir="$ac_optarg" ;; |
---|
314 | |
---|
315 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
316 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
317 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
318 | | --sha | --sh) |
---|
319 | ac_prev=sharedstatedir ;; |
---|
320 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
321 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
322 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
323 | | --sha=* | --sh=*) |
---|
324 | sharedstatedir="$ac_optarg" ;; |
---|
325 | |
---|
326 | -site | --site | --sit) |
---|
327 | ac_prev=site ;; |
---|
328 | -site=* | --site=* | --sit=*) |
---|
329 | site="$ac_optarg" ;; |
---|
330 | |
---|
331 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
332 | ac_prev=srcdir ;; |
---|
333 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
334 | srcdir="$ac_optarg" ;; |
---|
335 | |
---|
336 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
337 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
338 | ac_prev=sysconfdir ;; |
---|
339 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
340 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
341 | sysconfdir="$ac_optarg" ;; |
---|
342 | |
---|
343 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
344 | ac_prev=target ;; |
---|
345 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
346 | target="$ac_optarg" ;; |
---|
347 | |
---|
348 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
349 | verbose=yes ;; |
---|
350 | |
---|
351 | -version | --version | --versio | --versi | --vers) |
---|
352 | echo "configure generated by autoconf version 2.9" |
---|
353 | exit 0 ;; |
---|
354 | |
---|
355 | -with-* | --with-*) |
---|
356 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
357 | # Reject names that are not valid shell variable names. |
---|
358 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
359 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
360 | fi |
---|
361 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
362 | case "$ac_option" in |
---|
363 | *=*) ;; |
---|
364 | *) ac_optarg=yes ;; |
---|
365 | esac |
---|
366 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
367 | |
---|
368 | -without-* | --without-*) |
---|
369 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
370 | # Reject names that are not valid shell variable names. |
---|
371 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
372 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
373 | fi |
---|
374 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
375 | eval "with_${ac_package}=no" ;; |
---|
376 | |
---|
377 | --x) |
---|
378 | # Obsolete; use --with-x. |
---|
379 | with_x=yes ;; |
---|
380 | |
---|
381 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
382 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
383 | ac_prev=x_includes ;; |
---|
384 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
385 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
386 | x_includes="$ac_optarg" ;; |
---|
387 | |
---|
388 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
389 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
390 | ac_prev=x_libraries ;; |
---|
391 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
392 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
393 | x_libraries="$ac_optarg" ;; |
---|
394 | |
---|
395 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
396 | ;; |
---|
397 | |
---|
398 | *) |
---|
399 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
400 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
401 | fi |
---|
402 | if test "x$nonopt" != xNONE; then |
---|
403 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
404 | fi |
---|
405 | nonopt="$ac_option" |
---|
406 | ;; |
---|
407 | |
---|
408 | esac |
---|
409 | done |
---|
410 | |
---|
411 | if test -n "$ac_prev"; then |
---|
412 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
413 | fi |
---|
414 | |
---|
415 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
416 | |
---|
417 | # File descriptor usage: |
---|
418 | # 0 standard input |
---|
419 | # 1 file creation |
---|
420 | # 2 errors and warnings |
---|
421 | # 3 some systems may open it to /dev/tty |
---|
422 | # 4 used on the Kubota Titan |
---|
423 | # 6 checking for... messages and results |
---|
424 | # 5 compiler messages saved in config.log |
---|
425 | if test "$silent" = yes; then |
---|
426 | exec 6>/dev/null |
---|
427 | else |
---|
428 | exec 6>&1 |
---|
429 | fi |
---|
430 | exec 5>./config.log |
---|
431 | |
---|
432 | echo "\ |
---|
433 | This file contains any messages produced by compilers while |
---|
434 | running configure, to aid debugging if configure makes a mistake. |
---|
435 | " 1>&5 |
---|
436 | |
---|
437 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
438 | # Also quote any args containing shell metacharacters. |
---|
439 | ac_configure_args= |
---|
440 | for ac_arg |
---|
441 | do |
---|
442 | case "$ac_arg" in |
---|
443 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
444 | | --no-cr | --no-c) ;; |
---|
445 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
446 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
447 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
448 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
449 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
450 | esac |
---|
451 | done |
---|
452 | |
---|
453 | # NLS nuisances. |
---|
454 | # Only set LANG and LC_ALL to C if already set. |
---|
455 | # These must not be set unconditionally because not all systems understand |
---|
456 | # e.g. LANG=C (notably SCO). |
---|
457 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
458 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
459 | |
---|
460 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
461 | rm -rf conftest* confdefs.h |
---|
462 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
463 | echo > confdefs.h |
---|
464 | |
---|
465 | # A filename unique to this package, relative to the directory that |
---|
466 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
467 | ac_unique_file=matpol.h |
---|
468 | |
---|
469 | # Find the source files, if location was not specified. |
---|
470 | if test -z "$srcdir"; then |
---|
471 | ac_srcdir_defaulted=yes |
---|
472 | # Try the directory containing this script, then its parent. |
---|
473 | ac_prog=$0 |
---|
474 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
475 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
476 | srcdir=$ac_confdir |
---|
477 | if test ! -r $srcdir/$ac_unique_file; then |
---|
478 | srcdir=.. |
---|
479 | fi |
---|
480 | else |
---|
481 | ac_srcdir_defaulted=no |
---|
482 | fi |
---|
483 | if test ! -r $srcdir/$ac_unique_file; then |
---|
484 | if test "$ac_srcdir_defaulted" = yes; then |
---|
485 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
486 | else |
---|
487 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
488 | fi |
---|
489 | fi |
---|
490 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
491 | |
---|
492 | # Prefer explicitly selected file to automatically selected ones. |
---|
493 | if test -z "$CONFIG_SITE"; then |
---|
494 | if test "x$prefix" != xNONE; then |
---|
495 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
496 | else |
---|
497 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
498 | fi |
---|
499 | fi |
---|
500 | for ac_site_file in $CONFIG_SITE; do |
---|
501 | if test -r "$ac_site_file"; then |
---|
502 | echo "loading site script $ac_site_file" |
---|
503 | . "$ac_site_file" |
---|
504 | fi |
---|
505 | done |
---|
506 | |
---|
507 | if test -r "$cache_file"; then |
---|
508 | echo "loading cache $cache_file" |
---|
509 | . $cache_file |
---|
510 | else |
---|
511 | echo "creating cache $cache_file" |
---|
512 | > $cache_file |
---|
513 | fi |
---|
514 | |
---|
515 | ac_ext=c |
---|
516 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
517 | ac_cpp='$CPP $CPPFLAGS' |
---|
518 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
519 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
520 | |
---|
521 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
522 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
523 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
524 | ac_n= ac_c=' |
---|
525 | ' ac_t=' ' |
---|
526 | else |
---|
527 | ac_n=-n ac_c= ac_t= |
---|
528 | fi |
---|
529 | else |
---|
530 | ac_n= ac_c='\c' ac_t= |
---|
531 | fi |
---|
532 | |
---|
533 | |
---|
534 | |
---|
535 | |
---|
536 | SINGULAR_MAJOR_VERSION=1 |
---|
537 | SINGULAR_MINOR_VERSION=1 |
---|
538 | SINGULAR_SUB_VERSION=0 |
---|
539 | VERSION_DATE="June 1997" |
---|
540 | |
---|
541 | |
---|
542 | |
---|
543 | cat >> confdefs.h <<EOF |
---|
544 | #define SINGULAR_MAJOR_VERSION ${SINGULAR_MAJOR_VERSION} |
---|
545 | EOF |
---|
546 | |
---|
547 | cat >> confdefs.h <<EOF |
---|
548 | #define SINGULAR_MINOR_VERSION ${SINGULAR_MINOR_VERSION} |
---|
549 | EOF |
---|
550 | |
---|
551 | cat >> confdefs.h <<EOF |
---|
552 | #define S_VERSION1 "version: ${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}" |
---|
553 | EOF |
---|
554 | |
---|
555 | cat >> confdefs.h <<EOF |
---|
556 | #define S_VERSION2 "${VERSION_DATE}" |
---|
557 | EOF |
---|
558 | |
---|
559 | |
---|
560 | |
---|
561 | |
---|
562 | if test "x$datadir" = 'x${prefix}/share'; then |
---|
563 | if test "x${prefix}" = xNONE; then |
---|
564 | singulardatadir=${ac_default_prefix}/share/Singular; |
---|
565 | else |
---|
566 | singulardatadir=${prefix}/share/Singular; |
---|
567 | fi |
---|
568 | else |
---|
569 | singulardatadir=${datadir}/Singular; |
---|
570 | fi |
---|
571 | |
---|
572 | if test "x$infodir" = 'x${prefix}/info'; then |
---|
573 | if test "x${prefix}" = xNONE; then |
---|
574 | singularinfodir=${ac_default_prefix}/info; |
---|
575 | else |
---|
576 | singularinfodir=${prefix}/info; |
---|
577 | fi |
---|
578 | else |
---|
579 | singularinfodir=$infodir; |
---|
580 | fi |
---|
581 | cat >> confdefs.h <<EOF |
---|
582 | #define SINGULAR_DATADIR "${singulardatadir}" |
---|
583 | EOF |
---|
584 | |
---|
585 | cat >> confdefs.h <<EOF |
---|
586 | #define SINGULAR_INFODIR "${singularinfodir}" |
---|
587 | EOF |
---|
588 | |
---|
589 | |
---|
590 | |
---|
591 | |
---|
592 | |
---|
593 | if test "${CXXFLAGS+set}" != set; then |
---|
594 | ac_cxxflags_set=no |
---|
595 | CXXFLAGS="-O" |
---|
596 | fi |
---|
597 | if test "${CFLAGS+set}" != set; then |
---|
598 | CFLAGS="-O" |
---|
599 | ac_cflags_set=no |
---|
600 | fi |
---|
601 | |
---|
602 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
603 | set dummy gcc; ac_word=$2 |
---|
604 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
605 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
606 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
607 | else |
---|
608 | if test -n "$CC"; then |
---|
609 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
610 | else |
---|
611 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
612 | for ac_dir in $PATH; do |
---|
613 | test -z "$ac_dir" && ac_dir=. |
---|
614 | if test -f $ac_dir/$ac_word; then |
---|
615 | ac_cv_prog_CC="gcc" |
---|
616 | break |
---|
617 | fi |
---|
618 | done |
---|
619 | IFS="$ac_save_ifs" |
---|
620 | fi |
---|
621 | fi |
---|
622 | CC="$ac_cv_prog_CC" |
---|
623 | if test -n "$CC"; then |
---|
624 | echo "$ac_t""$CC" 1>&6 |
---|
625 | else |
---|
626 | echo "$ac_t""no" 1>&6 |
---|
627 | fi |
---|
628 | |
---|
629 | if test -z "$CC"; then |
---|
630 | # Extract the first word of "cc", so it can be a program name with args. |
---|
631 | set dummy cc; ac_word=$2 |
---|
632 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
633 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
634 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
635 | else |
---|
636 | if test -n "$CC"; then |
---|
637 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
638 | else |
---|
639 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
640 | ac_prog_rejected=no |
---|
641 | for ac_dir in $PATH; do |
---|
642 | test -z "$ac_dir" && ac_dir=. |
---|
643 | if test -f $ac_dir/$ac_word; then |
---|
644 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
645 | ac_prog_rejected=yes |
---|
646 | continue |
---|
647 | fi |
---|
648 | ac_cv_prog_CC="cc" |
---|
649 | break |
---|
650 | fi |
---|
651 | done |
---|
652 | IFS="$ac_save_ifs" |
---|
653 | if test $ac_prog_rejected = yes; then |
---|
654 | # We found a bogon in the path, so make sure we never use it. |
---|
655 | set dummy $ac_cv_prog_CC |
---|
656 | shift |
---|
657 | if test $# -gt 0; then |
---|
658 | # We chose a different compiler from the bogus one. |
---|
659 | # However, it has the same basename, so the bogon will be chosen |
---|
660 | # first if we set CC to just the basename; use the full file name. |
---|
661 | shift |
---|
662 | set dummy "$ac_dir/$ac_word" "$@" |
---|
663 | shift |
---|
664 | ac_cv_prog_CC="$@" |
---|
665 | fi |
---|
666 | fi |
---|
667 | fi |
---|
668 | fi |
---|
669 | CC="$ac_cv_prog_CC" |
---|
670 | if test -n "$CC"; then |
---|
671 | echo "$ac_t""$CC" 1>&6 |
---|
672 | else |
---|
673 | echo "$ac_t""no" 1>&6 |
---|
674 | fi |
---|
675 | |
---|
676 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
677 | fi |
---|
678 | |
---|
679 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
680 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
681 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
682 | else |
---|
683 | cat > conftest.c <<EOF |
---|
684 | #ifdef __GNUC__ |
---|
685 | yes; |
---|
686 | #endif |
---|
687 | EOF |
---|
688 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
689 | ac_cv_prog_gcc=yes |
---|
690 | else |
---|
691 | ac_cv_prog_gcc=no |
---|
692 | fi |
---|
693 | fi |
---|
694 | |
---|
695 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
696 | if test $ac_cv_prog_gcc = yes; then |
---|
697 | GCC=yes |
---|
698 | if test "${CFLAGS+set}" != set; then |
---|
699 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
700 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then |
---|
701 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
702 | else |
---|
703 | echo 'void f(){}' > conftest.c |
---|
704 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
705 | ac_cv_prog_gcc_g=yes |
---|
706 | else |
---|
707 | ac_cv_prog_gcc_g=no |
---|
708 | fi |
---|
709 | rm -f conftest* |
---|
710 | |
---|
711 | fi |
---|
712 | |
---|
713 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 |
---|
714 | if test $ac_cv_prog_gcc_g = yes; then |
---|
715 | CFLAGS="-g -O" |
---|
716 | else |
---|
717 | CFLAGS="-O" |
---|
718 | fi |
---|
719 | fi |
---|
720 | else |
---|
721 | GCC= |
---|
722 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
723 | fi |
---|
724 | |
---|
725 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
726 | # On Suns, sometimes $CPP names a directory. |
---|
727 | if test -n "$CPP" && test -d "$CPP"; then |
---|
728 | CPP= |
---|
729 | fi |
---|
730 | if test -z "$CPP"; then |
---|
731 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
732 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
733 | else |
---|
734 | # This must be in double quotes, not single quotes, because CPP may get |
---|
735 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
736 | CPP="${CC-cc} -E" |
---|
737 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
738 | # not just through cpp. |
---|
739 | cat > conftest.$ac_ext <<EOF |
---|
740 | #line 741 "configure" |
---|
741 | #include "confdefs.h" |
---|
742 | #include <assert.h> |
---|
743 | Syntax Error |
---|
744 | EOF |
---|
745 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
746 | { (eval echo configure:747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
747 | ac_err=`grep -v '^ *+' conftest.out` |
---|
748 | if test -z "$ac_err"; then |
---|
749 | : |
---|
750 | else |
---|
751 | echo "$ac_err" >&5 |
---|
752 | rm -rf conftest* |
---|
753 | CPP="${CC-cc} -E -traditional-cpp" |
---|
754 | cat > conftest.$ac_ext <<EOF |
---|
755 | #line 756 "configure" |
---|
756 | #include "confdefs.h" |
---|
757 | #include <assert.h> |
---|
758 | Syntax Error |
---|
759 | EOF |
---|
760 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
761 | { (eval echo configure:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
762 | ac_err=`grep -v '^ *+' conftest.out` |
---|
763 | if test -z "$ac_err"; then |
---|
764 | : |
---|
765 | else |
---|
766 | echo "$ac_err" >&5 |
---|
767 | rm -rf conftest* |
---|
768 | CPP=/lib/cpp |
---|
769 | fi |
---|
770 | rm -f conftest* |
---|
771 | fi |
---|
772 | rm -f conftest* |
---|
773 | ac_cv_prog_CPP="$CPP" |
---|
774 | fi |
---|
775 | CPP="$ac_cv_prog_CPP" |
---|
776 | else |
---|
777 | ac_cv_prog_CPP="$CPP" |
---|
778 | fi |
---|
779 | echo "$ac_t""$CPP" 1>&6 |
---|
780 | |
---|
781 | for ac_prog in $CCC c++ g++ gcc CC cxx |
---|
782 | do |
---|
783 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
784 | set dummy $ac_prog; ac_word=$2 |
---|
785 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
786 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
---|
787 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
788 | else |
---|
789 | if test -n "$CXX"; then |
---|
790 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
791 | else |
---|
792 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
793 | for ac_dir in $PATH; do |
---|
794 | test -z "$ac_dir" && ac_dir=. |
---|
795 | if test -f $ac_dir/$ac_word; then |
---|
796 | ac_cv_prog_CXX="$ac_prog" |
---|
797 | break |
---|
798 | fi |
---|
799 | done |
---|
800 | IFS="$ac_save_ifs" |
---|
801 | fi |
---|
802 | fi |
---|
803 | CXX="$ac_cv_prog_CXX" |
---|
804 | if test -n "$CXX"; then |
---|
805 | echo "$ac_t""$CXX" 1>&6 |
---|
806 | else |
---|
807 | echo "$ac_t""no" 1>&6 |
---|
808 | fi |
---|
809 | |
---|
810 | test -n "$CXX" && break |
---|
811 | done |
---|
812 | test -n "$CXX" || CXX="gcc" |
---|
813 | |
---|
814 | |
---|
815 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
816 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
817 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
818 | else |
---|
819 | cat > conftest.C <<EOF |
---|
820 | #ifdef __GNUC__ |
---|
821 | yes; |
---|
822 | #endif |
---|
823 | EOF |
---|
824 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
825 | ac_cv_prog_gxx=yes |
---|
826 | else |
---|
827 | ac_cv_prog_gxx=no |
---|
828 | fi |
---|
829 | fi |
---|
830 | |
---|
831 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
832 | if test $ac_cv_prog_gxx = yes; then |
---|
833 | GXX=yes |
---|
834 | if test "${CXXFLAGS+set}" != set; then |
---|
835 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
836 | if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then |
---|
837 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
838 | else |
---|
839 | echo 'void f(){}' > conftest.cc |
---|
840 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
841 | ac_cv_prog_gxx_g=yes |
---|
842 | else |
---|
843 | ac_cv_prog_gxx_g=no |
---|
844 | fi |
---|
845 | rm -f conftest* |
---|
846 | |
---|
847 | fi |
---|
848 | |
---|
849 | echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6 |
---|
850 | if test $ac_cv_prog_gxx_g = yes; then |
---|
851 | CXXFLAGS="-g -O" |
---|
852 | else |
---|
853 | CXXFLAGS="-O" |
---|
854 | fi |
---|
855 | fi |
---|
856 | else |
---|
857 | GXX= |
---|
858 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" |
---|
859 | fi |
---|
860 | |
---|
861 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
862 | set dummy ${MAKE-make}; ac_make=$2 |
---|
863 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
864 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
865 | else |
---|
866 | cat > conftestmake <<\EOF |
---|
867 | all: |
---|
868 | @echo 'ac_maketemp="${MAKE}"' |
---|
869 | EOF |
---|
870 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
871 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
872 | if test -n "$ac_maketemp"; then |
---|
873 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
874 | else |
---|
875 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
876 | fi |
---|
877 | rm -f conftestmake |
---|
878 | fi |
---|
879 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
880 | echo "$ac_t""yes" 1>&6 |
---|
881 | SET_MAKE= |
---|
882 | else |
---|
883 | echo "$ac_t""no" 1>&6 |
---|
884 | SET_MAKE="MAKE=${MAKE-make}" |
---|
885 | fi |
---|
886 | |
---|
887 | |
---|
888 | if test ${GXX} = yes; then |
---|
889 | CXX=gcc |
---|
890 | fi |
---|
891 | |
---|
892 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
893 | if test "x$exec_prefix" = xNONE; then |
---|
894 | if test "x$prefix" = xNONE; then |
---|
895 | LDFLAGS="-L${ac_default_prefix}/lib ${LDFLAGS}" |
---|
896 | else |
---|
897 | LDFLAGS="-L${prefix}/lib ${LDFLAGS}" |
---|
898 | fi |
---|
899 | else |
---|
900 | LDFLAGS="-L${exec_prefix}/lib ${LDFLAGS}" |
---|
901 | fi |
---|
902 | else |
---|
903 | LDFLAGS="-L${libdir} ${LDFLAGS}" |
---|
904 | fi |
---|
905 | |
---|
906 | if test "$includedir" = '${prefix}/include'; then |
---|
907 | if test "x$prefix" = xNONE; then |
---|
908 | CPPFLAGS="-I${ac_default_prefix}/include ${CPPFLAGS}" |
---|
909 | else |
---|
910 | CPPFLAGS="-I${prefix}/include ${CPPFLAGS}" |
---|
911 | fi |
---|
912 | else |
---|
913 | CPPFLAGS="-I${includedir} ${CPPFLAGS}" |
---|
914 | fi |
---|
915 | |
---|
916 | if test "$with_info" != no; then |
---|
917 | # Extract the first word of "info", so it can be a program name with args. |
---|
918 | set dummy info; ac_word=$2 |
---|
919 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
920 | if eval "test \"`echo '$''{'ac_cv_prog_INFO'+set}'`\" = set"; then |
---|
921 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
922 | else |
---|
923 | if test -n "$INFO"; then |
---|
924 | ac_cv_prog_INFO="$INFO" # Let the user override the test. |
---|
925 | else |
---|
926 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
927 | for ac_dir in $PATH; do |
---|
928 | test -z "$ac_dir" && ac_dir=. |
---|
929 | if test -f $ac_dir/$ac_word; then |
---|
930 | ac_cv_prog_INFO="info" |
---|
931 | break |
---|
932 | fi |
---|
933 | done |
---|
934 | IFS="$ac_save_ifs" |
---|
935 | fi |
---|
936 | fi |
---|
937 | INFO="$ac_cv_prog_INFO" |
---|
938 | if test -n "$INFO"; then |
---|
939 | echo "$ac_t""$INFO" 1>&6 |
---|
940 | else |
---|
941 | echo "$ac_t""no" 1>&6 |
---|
942 | fi |
---|
943 | |
---|
944 | if test -n "$INFO"; then |
---|
945 | cat >> confdefs.h <<\EOF |
---|
946 | #define HAVE_INFO 1 |
---|
947 | EOF |
---|
948 | |
---|
949 | fi |
---|
950 | fi |
---|
951 | |
---|
952 | |
---|
953 | # Check whether --with-readline or --without-readline was given. |
---|
954 | if test "${with_readline+set}" = set; then |
---|
955 | withval="$with_readline" |
---|
956 | : |
---|
957 | fi |
---|
958 | |
---|
959 | |
---|
960 | # Check whether --with-MP or --without-MP was given. |
---|
961 | if test "${with_MP+set}" = set; then |
---|
962 | withval="$with_MP" |
---|
963 | : |
---|
964 | fi |
---|
965 | |
---|
966 | |
---|
967 | # Check whether --with-dbm or --without-dbm was given. |
---|
968 | if test "${with_dbm+set}" = set; then |
---|
969 | withval="$with_dbm" |
---|
970 | : |
---|
971 | fi |
---|
972 | |
---|
973 | # Check whether --with-info or --without-info was given. |
---|
974 | if test "${with_info+set}" = set; then |
---|
975 | withval="$with_info" |
---|
976 | : |
---|
977 | fi |
---|
978 | |
---|
979 | # Check whether --with-dld or --without-dld was given. |
---|
980 | if test "${with_dld+set}" = set; then |
---|
981 | withval="$with_dld" |
---|
982 | : |
---|
983 | fi |
---|
984 | |
---|
985 | |
---|
986 | # Check whether --with-factory or --without-factory was given. |
---|
987 | if test "${with_factory+set}" = set; then |
---|
988 | withval="$with_factory" |
---|
989 | : |
---|
990 | fi |
---|
991 | |
---|
992 | |
---|
993 | # Check whether --with-libfac or --without-libfac was given. |
---|
994 | if test "${with_libfac+set}" = set; then |
---|
995 | withval="$with_libfac" |
---|
996 | : |
---|
997 | fi |
---|
998 | |
---|
999 | # Check whether --with-gmp or --without-gmp was given. |
---|
1000 | if test "${with_gmp+set}" = set; then |
---|
1001 | withval="$with_gmp" |
---|
1002 | : |
---|
1003 | fi |
---|
1004 | |
---|
1005 | |
---|
1006 | |
---|
1007 | echo $ac_n "checking for -lm""... $ac_c" 1>&6 |
---|
1008 | ac_lib_var=`echo m_atof | tr '.-/+' '___p'` |
---|
1009 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1010 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1011 | else |
---|
1012 | ac_save_LIBS="$LIBS" |
---|
1013 | LIBS="-lm $LIBS" |
---|
1014 | cat > conftest.$ac_ext <<EOF |
---|
1015 | #line 1016 "configure" |
---|
1016 | #include "confdefs.h" |
---|
1017 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1018 | char atof(); |
---|
1019 | |
---|
1020 | int main() { return 0; } |
---|
1021 | int t() { |
---|
1022 | atof() |
---|
1023 | ; return 0; } |
---|
1024 | EOF |
---|
1025 | if { (eval echo configure:1026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1026 | rm -rf conftest* |
---|
1027 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1028 | else |
---|
1029 | rm -rf conftest* |
---|
1030 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1031 | fi |
---|
1032 | rm -f conftest* |
---|
1033 | LIBS="$ac_save_LIBS" |
---|
1034 | |
---|
1035 | fi |
---|
1036 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1037 | echo "$ac_t""yes" 1>&6 |
---|
1038 | ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1039 | cat >> confdefs.h <<EOF |
---|
1040 | #define $ac_tr_lib 1 |
---|
1041 | EOF |
---|
1042 | |
---|
1043 | LIBS="-lm $LIBS" |
---|
1044 | |
---|
1045 | else |
---|
1046 | echo "$ac_t""no" 1>&6 |
---|
1047 | fi |
---|
1048 | |
---|
1049 | echo $ac_n "checking for -lbsd""... $ac_c" 1>&6 |
---|
1050 | ac_lib_var=`echo bsd_socket | tr '.-/+' '___p'` |
---|
1051 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1052 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1053 | else |
---|
1054 | ac_save_LIBS="$LIBS" |
---|
1055 | LIBS="-lbsd $LIBS" |
---|
1056 | cat > conftest.$ac_ext <<EOF |
---|
1057 | #line 1058 "configure" |
---|
1058 | #include "confdefs.h" |
---|
1059 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1060 | char socket(); |
---|
1061 | |
---|
1062 | int main() { return 0; } |
---|
1063 | int t() { |
---|
1064 | socket() |
---|
1065 | ; return 0; } |
---|
1066 | EOF |
---|
1067 | if { (eval echo configure:1068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1068 | rm -rf conftest* |
---|
1069 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1070 | else |
---|
1071 | rm -rf conftest* |
---|
1072 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1073 | fi |
---|
1074 | rm -f conftest* |
---|
1075 | LIBS="$ac_save_LIBS" |
---|
1076 | |
---|
1077 | fi |
---|
1078 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1079 | echo "$ac_t""yes" 1>&6 |
---|
1080 | ac_tr_lib=HAVE_LIB`echo bsd | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1081 | cat >> confdefs.h <<EOF |
---|
1082 | #define $ac_tr_lib 1 |
---|
1083 | EOF |
---|
1084 | |
---|
1085 | LIBS="-lbsd $LIBS" |
---|
1086 | |
---|
1087 | else |
---|
1088 | echo "$ac_t""no" 1>&6 |
---|
1089 | fi |
---|
1090 | |
---|
1091 | echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 |
---|
1092 | ac_lib_var=`echo socket_listen | tr '.-/+' '___p'` |
---|
1093 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1094 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1095 | else |
---|
1096 | ac_save_LIBS="$LIBS" |
---|
1097 | LIBS="-lsocket $LIBS" |
---|
1098 | cat > conftest.$ac_ext <<EOF |
---|
1099 | #line 1100 "configure" |
---|
1100 | #include "confdefs.h" |
---|
1101 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1102 | char listen(); |
---|
1103 | |
---|
1104 | int main() { return 0; } |
---|
1105 | int t() { |
---|
1106 | listen() |
---|
1107 | ; return 0; } |
---|
1108 | EOF |
---|
1109 | if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1110 | rm -rf conftest* |
---|
1111 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1112 | else |
---|
1113 | rm -rf conftest* |
---|
1114 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1115 | fi |
---|
1116 | rm -f conftest* |
---|
1117 | LIBS="$ac_save_LIBS" |
---|
1118 | |
---|
1119 | fi |
---|
1120 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1121 | echo "$ac_t""yes" 1>&6 |
---|
1122 | ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1123 | cat >> confdefs.h <<EOF |
---|
1124 | #define $ac_tr_lib 1 |
---|
1125 | EOF |
---|
1126 | |
---|
1127 | LIBS="-lsocket $LIBS" |
---|
1128 | |
---|
1129 | else |
---|
1130 | echo "$ac_t""no" 1>&6 |
---|
1131 | fi |
---|
1132 | |
---|
1133 | echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 |
---|
1134 | ac_lib_var=`echo nsl_gethostbyname | tr '.-/+' '___p'` |
---|
1135 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1136 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1137 | else |
---|
1138 | ac_save_LIBS="$LIBS" |
---|
1139 | LIBS="-lnsl $LIBS" |
---|
1140 | cat > conftest.$ac_ext <<EOF |
---|
1141 | #line 1142 "configure" |
---|
1142 | #include "confdefs.h" |
---|
1143 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1144 | char gethostbyname(); |
---|
1145 | |
---|
1146 | int main() { return 0; } |
---|
1147 | int t() { |
---|
1148 | gethostbyname() |
---|
1149 | ; return 0; } |
---|
1150 | EOF |
---|
1151 | if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1152 | rm -rf conftest* |
---|
1153 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1154 | else |
---|
1155 | rm -rf conftest* |
---|
1156 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1157 | fi |
---|
1158 | rm -f conftest* |
---|
1159 | LIBS="$ac_save_LIBS" |
---|
1160 | |
---|
1161 | fi |
---|
1162 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1163 | echo "$ac_t""yes" 1>&6 |
---|
1164 | ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1165 | cat >> confdefs.h <<EOF |
---|
1166 | #define $ac_tr_lib 1 |
---|
1167 | EOF |
---|
1168 | |
---|
1169 | LIBS="-lnsl $LIBS" |
---|
1170 | |
---|
1171 | else |
---|
1172 | echo "$ac_t""no" 1>&6 |
---|
1173 | fi |
---|
1174 | |
---|
1175 | |
---|
1176 | if test "$with_readline" != no; then |
---|
1177 | echo $ac_n "checking for -lncurses""... $ac_c" 1>&6 |
---|
1178 | ac_lib_var=`echo ncurses_tgetent | tr '.-/+' '___p'` |
---|
1179 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1180 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1181 | else |
---|
1182 | ac_save_LIBS="$LIBS" |
---|
1183 | LIBS="-lncurses $LIBS" |
---|
1184 | cat > conftest.$ac_ext <<EOF |
---|
1185 | #line 1186 "configure" |
---|
1186 | #include "confdefs.h" |
---|
1187 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1188 | char tgetent(); |
---|
1189 | |
---|
1190 | int main() { return 0; } |
---|
1191 | int t() { |
---|
1192 | tgetent() |
---|
1193 | ; return 0; } |
---|
1194 | EOF |
---|
1195 | if { (eval echo configure:1196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1196 | rm -rf conftest* |
---|
1197 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1198 | else |
---|
1199 | rm -rf conftest* |
---|
1200 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1201 | fi |
---|
1202 | rm -f conftest* |
---|
1203 | LIBS="$ac_save_LIBS" |
---|
1204 | |
---|
1205 | fi |
---|
1206 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1207 | echo "$ac_t""yes" 1>&6 |
---|
1208 | ac_tr_lib=HAVE_LIB`echo ncurses | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1209 | cat >> confdefs.h <<EOF |
---|
1210 | #define $ac_tr_lib 1 |
---|
1211 | EOF |
---|
1212 | |
---|
1213 | LIBS="-lncurses $LIBS" |
---|
1214 | |
---|
1215 | else |
---|
1216 | echo "$ac_t""no" 1>&6 |
---|
1217 | \ |
---|
1218 | echo $ac_n "checking for -lcurses""... $ac_c" 1>&6 |
---|
1219 | ac_lib_var=`echo curses_tgetent | tr '.-/+' '___p'` |
---|
1220 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1221 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1222 | else |
---|
1223 | ac_save_LIBS="$LIBS" |
---|
1224 | LIBS="-lcurses $LIBS" |
---|
1225 | cat > conftest.$ac_ext <<EOF |
---|
1226 | #line 1227 "configure" |
---|
1227 | #include "confdefs.h" |
---|
1228 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1229 | char tgetent(); |
---|
1230 | |
---|
1231 | int main() { return 0; } |
---|
1232 | int t() { |
---|
1233 | tgetent() |
---|
1234 | ; return 0; } |
---|
1235 | EOF |
---|
1236 | if { (eval echo configure:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1237 | rm -rf conftest* |
---|
1238 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1239 | else |
---|
1240 | rm -rf conftest* |
---|
1241 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1242 | fi |
---|
1243 | rm -f conftest* |
---|
1244 | LIBS="$ac_save_LIBS" |
---|
1245 | |
---|
1246 | fi |
---|
1247 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1248 | echo "$ac_t""yes" 1>&6 |
---|
1249 | ac_tr_lib=HAVE_LIB`echo curses | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1250 | cat >> confdefs.h <<EOF |
---|
1251 | #define $ac_tr_lib 1 |
---|
1252 | EOF |
---|
1253 | |
---|
1254 | LIBS="-lcurses $LIBS" |
---|
1255 | |
---|
1256 | else |
---|
1257 | echo "$ac_t""no" 1>&6 |
---|
1258 | \ |
---|
1259 | echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6 |
---|
1260 | ac_lib_var=`echo termcap_tgetent | tr '.-/+' '___p'` |
---|
1261 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1262 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1263 | else |
---|
1264 | ac_save_LIBS="$LIBS" |
---|
1265 | LIBS="-ltermcap $LIBS" |
---|
1266 | cat > conftest.$ac_ext <<EOF |
---|
1267 | #line 1268 "configure" |
---|
1268 | #include "confdefs.h" |
---|
1269 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1270 | char tgetent(); |
---|
1271 | |
---|
1272 | int main() { return 0; } |
---|
1273 | int t() { |
---|
1274 | tgetent() |
---|
1275 | ; return 0; } |
---|
1276 | EOF |
---|
1277 | if { (eval echo configure:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1278 | rm -rf conftest* |
---|
1279 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1280 | else |
---|
1281 | rm -rf conftest* |
---|
1282 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1283 | fi |
---|
1284 | rm -f conftest* |
---|
1285 | LIBS="$ac_save_LIBS" |
---|
1286 | |
---|
1287 | fi |
---|
1288 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1289 | echo "$ac_t""yes" 1>&6 |
---|
1290 | ac_tr_lib=HAVE_LIB`echo termcap | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1291 | cat >> confdefs.h <<EOF |
---|
1292 | #define $ac_tr_lib 1 |
---|
1293 | EOF |
---|
1294 | |
---|
1295 | LIBS="-ltermcap $LIBS" |
---|
1296 | |
---|
1297 | else |
---|
1298 | echo "$ac_t""no" 1>&6 |
---|
1299 | fi |
---|
1300 | |
---|
1301 | fi |
---|
1302 | |
---|
1303 | fi |
---|
1304 | |
---|
1305 | echo $ac_n "checking for -lreadline""... $ac_c" 1>&6 |
---|
1306 | ac_lib_var=`echo readline_rl_abort | tr '.-/+' '___p'` |
---|
1307 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1308 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1309 | else |
---|
1310 | ac_save_LIBS="$LIBS" |
---|
1311 | LIBS="-lreadline $LIBS" |
---|
1312 | cat > conftest.$ac_ext <<EOF |
---|
1313 | #line 1314 "configure" |
---|
1314 | #include "confdefs.h" |
---|
1315 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1316 | char rl_abort(); |
---|
1317 | |
---|
1318 | int main() { return 0; } |
---|
1319 | int t() { |
---|
1320 | rl_abort() |
---|
1321 | ; return 0; } |
---|
1322 | EOF |
---|
1323 | if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1324 | rm -rf conftest* |
---|
1325 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1326 | else |
---|
1327 | rm -rf conftest* |
---|
1328 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1329 | fi |
---|
1330 | rm -f conftest* |
---|
1331 | LIBS="$ac_save_LIBS" |
---|
1332 | |
---|
1333 | fi |
---|
1334 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1335 | echo "$ac_t""yes" 1>&6 |
---|
1336 | ac_tr_lib=HAVE_LIB`echo readline | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1337 | cat >> confdefs.h <<EOF |
---|
1338 | #define $ac_tr_lib 1 |
---|
1339 | EOF |
---|
1340 | |
---|
1341 | LIBS="-lreadline $LIBS" |
---|
1342 | |
---|
1343 | else |
---|
1344 | echo "$ac_t""no" 1>&6 |
---|
1345 | fi |
---|
1346 | |
---|
1347 | if test "$ac_cv_lib_readline_rl_abort" = yes; then |
---|
1348 | for ac_hdr in readline/readline.h readline/history.h sys/file.h |
---|
1349 | do |
---|
1350 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
1351 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1352 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1353 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1354 | else |
---|
1355 | cat > conftest.$ac_ext <<EOF |
---|
1356 | #line 1357 "configure" |
---|
1357 | #include "confdefs.h" |
---|
1358 | #include <$ac_hdr> |
---|
1359 | EOF |
---|
1360 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1361 | { (eval echo configure:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1362 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1363 | if test -z "$ac_err"; then |
---|
1364 | rm -rf conftest* |
---|
1365 | eval "ac_cv_header_$ac_safe=yes" |
---|
1366 | else |
---|
1367 | echo "$ac_err" >&5 |
---|
1368 | rm -rf conftest* |
---|
1369 | eval "ac_cv_header_$ac_safe=no" |
---|
1370 | fi |
---|
1371 | rm -f conftest* |
---|
1372 | fi |
---|
1373 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1374 | echo "$ac_t""yes" 1>&6 |
---|
1375 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
---|
1376 | cat >> confdefs.h <<EOF |
---|
1377 | #define $ac_tr_hdr 1 |
---|
1378 | EOF |
---|
1379 | ac_readline_ok=yes |
---|
1380 | else |
---|
1381 | echo "$ac_t""no" 1>&6 |
---|
1382 | ac_readline_ok=no; break |
---|
1383 | fi |
---|
1384 | done |
---|
1385 | |
---|
1386 | fi |
---|
1387 | if test "$ac_readline_ok" = yes; then |
---|
1388 | cat >> confdefs.h <<\EOF |
---|
1389 | #define HAVE_READLINE 1 |
---|
1390 | EOF |
---|
1391 | |
---|
1392 | else |
---|
1393 | echo "configure: warning: building without readline: disabling fancy display" 1>&2; |
---|
1394 | cat >> confdefs.h <<\EOF |
---|
1395 | #define HAVE_FEREAD 1 |
---|
1396 | EOF |
---|
1397 | |
---|
1398 | fi |
---|
1399 | else |
---|
1400 | cat >> confdefs.h <<\EOF |
---|
1401 | #define HAVE_FEREAD 1 |
---|
1402 | EOF |
---|
1403 | |
---|
1404 | fi |
---|
1405 | |
---|
1406 | if test "$with_dbm" != no; then |
---|
1407 | echo $ac_n "checking for -ldbm""... $ac_c" 1>&6 |
---|
1408 | ac_lib_var=`echo dbm_dbminit | tr '.-/+' '___p'` |
---|
1409 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1410 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1411 | else |
---|
1412 | ac_save_LIBS="$LIBS" |
---|
1413 | LIBS="-ldbm $LIBS" |
---|
1414 | cat > conftest.$ac_ext <<EOF |
---|
1415 | #line 1416 "configure" |
---|
1416 | #include "confdefs.h" |
---|
1417 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1418 | char dbminit(); |
---|
1419 | |
---|
1420 | int main() { return 0; } |
---|
1421 | int t() { |
---|
1422 | dbminit() |
---|
1423 | ; return 0; } |
---|
1424 | EOF |
---|
1425 | if { (eval echo configure:1426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1426 | rm -rf conftest* |
---|
1427 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1428 | else |
---|
1429 | rm -rf conftest* |
---|
1430 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1431 | fi |
---|
1432 | rm -f conftest* |
---|
1433 | LIBS="$ac_save_LIBS" |
---|
1434 | |
---|
1435 | fi |
---|
1436 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1437 | echo "$ac_t""yes" 1>&6 |
---|
1438 | cat >> confdefs.h <<\EOF |
---|
1439 | #define HAVE_DBM 1 |
---|
1440 | EOF |
---|
1441 | LIBS="-ldbm $LIBS" |
---|
1442 | else |
---|
1443 | echo "$ac_t""no" 1>&6 |
---|
1444 | echo $ac_n "checking for -lgdbm""... $ac_c" 1>&6 |
---|
1445 | ac_lib_var=`echo gdbm_dbminit | tr '.-/+' '___p'` |
---|
1446 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1447 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1448 | else |
---|
1449 | ac_save_LIBS="$LIBS" |
---|
1450 | LIBS="-lgdbm $LIBS" |
---|
1451 | cat > conftest.$ac_ext <<EOF |
---|
1452 | #line 1453 "configure" |
---|
1453 | #include "confdefs.h" |
---|
1454 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1455 | char dbminit(); |
---|
1456 | |
---|
1457 | int main() { return 0; } |
---|
1458 | int t() { |
---|
1459 | dbminit() |
---|
1460 | ; return 0; } |
---|
1461 | EOF |
---|
1462 | if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1463 | rm -rf conftest* |
---|
1464 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1465 | else |
---|
1466 | rm -rf conftest* |
---|
1467 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1468 | fi |
---|
1469 | rm -f conftest* |
---|
1470 | LIBS="$ac_save_LIBS" |
---|
1471 | |
---|
1472 | fi |
---|
1473 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1474 | echo "$ac_t""yes" 1>&6 |
---|
1475 | cat >> confdefs.h <<\EOF |
---|
1476 | #define HAVE_DBM 1 |
---|
1477 | EOF |
---|
1478 | LIBS="-lgdbm $LIBS" |
---|
1479 | else |
---|
1480 | echo "$ac_t""no" 1>&6 |
---|
1481 | echo "configure: warning: building without dbm: disabling DBM links" 1>&2 |
---|
1482 | fi |
---|
1483 | |
---|
1484 | fi |
---|
1485 | |
---|
1486 | fi |
---|
1487 | |
---|
1488 | if test "$with_dld" = yes; then |
---|
1489 | echo $ac_n "checking for -ldld""... $ac_c" 1>&6 |
---|
1490 | ac_lib_var=`echo dld_dld_init | tr '.-/+' '___p'` |
---|
1491 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1492 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1493 | else |
---|
1494 | ac_save_LIBS="$LIBS" |
---|
1495 | LIBS="-ldld $LIBS" |
---|
1496 | cat > conftest.$ac_ext <<EOF |
---|
1497 | #line 1498 "configure" |
---|
1498 | #include "confdefs.h" |
---|
1499 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1500 | char dld_init(); |
---|
1501 | |
---|
1502 | int main() { return 0; } |
---|
1503 | int t() { |
---|
1504 | dld_init() |
---|
1505 | ; return 0; } |
---|
1506 | EOF |
---|
1507 | if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1508 | rm -rf conftest* |
---|
1509 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1510 | else |
---|
1511 | rm -rf conftest* |
---|
1512 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1513 | fi |
---|
1514 | rm -f conftest* |
---|
1515 | LIBS="$ac_save_LIBS" |
---|
1516 | |
---|
1517 | fi |
---|
1518 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1519 | echo "$ac_t""yes" 1>&6 |
---|
1520 | \ |
---|
1521 | echo "configure: warning: building without dld: disabling dynamic linking" 1>&2 |
---|
1522 | else |
---|
1523 | echo "$ac_t""no" 1>&6 |
---|
1524 | fi |
---|
1525 | |
---|
1526 | fi |
---|
1527 | |
---|
1528 | NEED_LIBS=$LIBS |
---|
1529 | |
---|
1530 | echo $ac_n "checking for -lgmp""... $ac_c" 1>&6 |
---|
1531 | ac_lib_var=`echo gmp_mpq_init | tr '.-/+' '___p'` |
---|
1532 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1533 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1534 | else |
---|
1535 | ac_save_LIBS="$LIBS" |
---|
1536 | LIBS="-lgmp $LIBS" |
---|
1537 | cat > conftest.$ac_ext <<EOF |
---|
1538 | #line 1539 "configure" |
---|
1539 | #include "confdefs.h" |
---|
1540 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1541 | char mpq_init(); |
---|
1542 | |
---|
1543 | int main() { return 0; } |
---|
1544 | int t() { |
---|
1545 | mpq_init() |
---|
1546 | ; return 0; } |
---|
1547 | EOF |
---|
1548 | if { (eval echo configure:1549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1549 | rm -rf conftest* |
---|
1550 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1551 | else |
---|
1552 | rm -rf conftest* |
---|
1553 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1554 | fi |
---|
1555 | rm -f conftest* |
---|
1556 | LIBS="$ac_save_LIBS" |
---|
1557 | |
---|
1558 | fi |
---|
1559 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1560 | echo "$ac_t""yes" 1>&6 |
---|
1561 | ac_tr_lib=HAVE_LIB`echo gmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1562 | cat >> confdefs.h <<EOF |
---|
1563 | #define $ac_tr_lib 1 |
---|
1564 | EOF |
---|
1565 | |
---|
1566 | LIBS="-lgmp $LIBS" |
---|
1567 | |
---|
1568 | else |
---|
1569 | echo "$ac_t""no" 1>&6 |
---|
1570 | fi |
---|
1571 | |
---|
1572 | echo $ac_n "checking for -lsmallgmp""... $ac_c" 1>&6 |
---|
1573 | ac_lib_var=`echo smallgmp_mpz_init | tr '.-/+' '___p'` |
---|
1574 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1575 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1576 | else |
---|
1577 | ac_save_LIBS="$LIBS" |
---|
1578 | LIBS="-lsmallgmp $LIBS" |
---|
1579 | cat > conftest.$ac_ext <<EOF |
---|
1580 | #line 1581 "configure" |
---|
1581 | #include "confdefs.h" |
---|
1582 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1583 | char mpz_init(); |
---|
1584 | |
---|
1585 | int main() { return 0; } |
---|
1586 | int t() { |
---|
1587 | mpz_init() |
---|
1588 | ; return 0; } |
---|
1589 | EOF |
---|
1590 | if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1591 | rm -rf conftest* |
---|
1592 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1593 | else |
---|
1594 | rm -rf conftest* |
---|
1595 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1596 | fi |
---|
1597 | rm -f conftest* |
---|
1598 | LIBS="$ac_save_LIBS" |
---|
1599 | |
---|
1600 | fi |
---|
1601 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1602 | echo "$ac_t""yes" 1>&6 |
---|
1603 | ac_tr_lib=HAVE_LIB`echo smallgmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1604 | cat >> confdefs.h <<EOF |
---|
1605 | #define $ac_tr_lib 1 |
---|
1606 | EOF |
---|
1607 | |
---|
1608 | LIBS="-lsmallgmp $LIBS" |
---|
1609 | |
---|
1610 | else |
---|
1611 | echo "$ac_t""no" 1>&6 |
---|
1612 | fi |
---|
1613 | |
---|
1614 | echo $ac_n "checking for -lMP""... $ac_c" 1>&6 |
---|
1615 | ac_lib_var=`echo MP_IMP_PutGmpInt | tr '.-/+' '___p'` |
---|
1616 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1617 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1618 | else |
---|
1619 | ac_save_LIBS="$LIBS" |
---|
1620 | LIBS="-lMP $LIBS" |
---|
1621 | cat > conftest.$ac_ext <<EOF |
---|
1622 | #line 1623 "configure" |
---|
1623 | #include "confdefs.h" |
---|
1624 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1625 | char IMP_PutGmpInt(); |
---|
1626 | |
---|
1627 | int main() { return 0; } |
---|
1628 | int t() { |
---|
1629 | IMP_PutGmpInt() |
---|
1630 | ; return 0; } |
---|
1631 | EOF |
---|
1632 | if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1633 | rm -rf conftest* |
---|
1634 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1635 | else |
---|
1636 | rm -rf conftest* |
---|
1637 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1638 | fi |
---|
1639 | rm -f conftest* |
---|
1640 | LIBS="$ac_save_LIBS" |
---|
1641 | |
---|
1642 | fi |
---|
1643 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1644 | echo "$ac_t""yes" 1>&6 |
---|
1645 | ac_tr_lib=HAVE_LIB`echo MP | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1646 | cat >> confdefs.h <<EOF |
---|
1647 | #define $ac_tr_lib 1 |
---|
1648 | EOF |
---|
1649 | |
---|
1650 | LIBS="-lMP $LIBS" |
---|
1651 | |
---|
1652 | else |
---|
1653 | echo "$ac_t""no" 1>&6 |
---|
1654 | fi |
---|
1655 | |
---|
1656 | echo $ac_n "checking for -lMPT""... $ac_c" 1>&6 |
---|
1657 | ac_lib_var=`echo MPT_MPT_GetTree | tr '.-/+' '___p'` |
---|
1658 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1659 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1660 | else |
---|
1661 | ac_save_LIBS="$LIBS" |
---|
1662 | LIBS="-lMPT $LIBS" |
---|
1663 | cat > conftest.$ac_ext <<EOF |
---|
1664 | #line 1665 "configure" |
---|
1665 | #include "confdefs.h" |
---|
1666 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1667 | char MPT_GetTree(); |
---|
1668 | |
---|
1669 | int main() { return 0; } |
---|
1670 | int t() { |
---|
1671 | MPT_GetTree() |
---|
1672 | ; return 0; } |
---|
1673 | EOF |
---|
1674 | if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1675 | rm -rf conftest* |
---|
1676 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1677 | else |
---|
1678 | rm -rf conftest* |
---|
1679 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1680 | fi |
---|
1681 | rm -f conftest* |
---|
1682 | LIBS="$ac_save_LIBS" |
---|
1683 | |
---|
1684 | fi |
---|
1685 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1686 | echo "$ac_t""yes" 1>&6 |
---|
1687 | ac_tr_lib=HAVE_LIB`echo MPT | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1688 | cat >> confdefs.h <<EOF |
---|
1689 | #define $ac_tr_lib 1 |
---|
1690 | EOF |
---|
1691 | |
---|
1692 | LIBS="-lMPT $LIBS" |
---|
1693 | |
---|
1694 | else |
---|
1695 | echo "$ac_t""no" 1>&6 |
---|
1696 | fi |
---|
1697 | |
---|
1698 | echo $ac_n "checking for -lsingcf""... $ac_c" 1>&6 |
---|
1699 | ac_lib_var=`echo singcf_atof | tr '.-/+' '___p'` |
---|
1700 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1701 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1702 | else |
---|
1703 | ac_save_LIBS="$LIBS" |
---|
1704 | LIBS="-lsingcf $LIBS" |
---|
1705 | cat > conftest.$ac_ext <<EOF |
---|
1706 | #line 1707 "configure" |
---|
1707 | #include "confdefs.h" |
---|
1708 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1709 | char atof(); |
---|
1710 | |
---|
1711 | int main() { return 0; } |
---|
1712 | int t() { |
---|
1713 | atof() |
---|
1714 | ; return 0; } |
---|
1715 | EOF |
---|
1716 | if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1717 | rm -rf conftest* |
---|
1718 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1719 | else |
---|
1720 | rm -rf conftest* |
---|
1721 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1722 | fi |
---|
1723 | rm -f conftest* |
---|
1724 | LIBS="$ac_save_LIBS" |
---|
1725 | |
---|
1726 | fi |
---|
1727 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1728 | echo "$ac_t""yes" 1>&6 |
---|
1729 | ac_tr_lib=HAVE_LIB`echo singcf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1730 | cat >> confdefs.h <<EOF |
---|
1731 | #define $ac_tr_lib 1 |
---|
1732 | EOF |
---|
1733 | |
---|
1734 | LIBS="-lsingcf $LIBS" |
---|
1735 | |
---|
1736 | else |
---|
1737 | echo "$ac_t""no" 1>&6 |
---|
1738 | fi |
---|
1739 | |
---|
1740 | echo $ac_n "checking for -lsingfac""... $ac_c" 1>&6 |
---|
1741 | ac_lib_var=`echo singfac_atof | tr '.-/+' '___p'` |
---|
1742 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1743 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1744 | else |
---|
1745 | ac_save_LIBS="$LIBS" |
---|
1746 | LIBS="-lsingfac $LIBS" |
---|
1747 | cat > conftest.$ac_ext <<EOF |
---|
1748 | #line 1749 "configure" |
---|
1749 | #include "confdefs.h" |
---|
1750 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1751 | char atof(); |
---|
1752 | |
---|
1753 | int main() { return 0; } |
---|
1754 | int t() { |
---|
1755 | atof() |
---|
1756 | ; return 0; } |
---|
1757 | EOF |
---|
1758 | if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1759 | rm -rf conftest* |
---|
1760 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1761 | else |
---|
1762 | rm -rf conftest* |
---|
1763 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1764 | fi |
---|
1765 | rm -f conftest* |
---|
1766 | LIBS="$ac_save_LIBS" |
---|
1767 | |
---|
1768 | fi |
---|
1769 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1770 | echo "$ac_t""yes" 1>&6 |
---|
1771 | ac_tr_lib=HAVE_LIB`echo singfac | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1772 | cat >> confdefs.h <<EOF |
---|
1773 | #define $ac_tr_lib 1 |
---|
1774 | EOF |
---|
1775 | |
---|
1776 | LIBS="-lsingfac $LIBS" |
---|
1777 | |
---|
1778 | else |
---|
1779 | echo "$ac_t""no" 1>&6 |
---|
1780 | fi |
---|
1781 | |
---|
1782 | |
---|
1783 | for ac_hdr in gmp.h smallgmp.h MP.h MPT.h factory.h factor.h |
---|
1784 | do |
---|
1785 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
1786 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1787 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1788 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1789 | else |
---|
1790 | cat > conftest.$ac_ext <<EOF |
---|
1791 | #line 1792 "configure" |
---|
1792 | #include "confdefs.h" |
---|
1793 | #include <$ac_hdr> |
---|
1794 | EOF |
---|
1795 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1796 | { (eval echo configure:1797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1797 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1798 | if test -z "$ac_err"; then |
---|
1799 | rm -rf conftest* |
---|
1800 | eval "ac_cv_header_$ac_safe=yes" |
---|
1801 | else |
---|
1802 | echo "$ac_err" >&5 |
---|
1803 | rm -rf conftest* |
---|
1804 | eval "ac_cv_header_$ac_safe=no" |
---|
1805 | fi |
---|
1806 | rm -f conftest* |
---|
1807 | fi |
---|
1808 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1809 | echo "$ac_t""yes" 1>&6 |
---|
1810 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
---|
1811 | cat >> confdefs.h <<EOF |
---|
1812 | #define $ac_tr_hdr 1 |
---|
1813 | EOF |
---|
1814 | |
---|
1815 | else |
---|
1816 | echo "$ac_t""no" 1>&6 |
---|
1817 | fi |
---|
1818 | done |
---|
1819 | |
---|
1820 | |
---|
1821 | if test "$ac_cv_lib_gmp_mpq_init" = yes && \ |
---|
1822 | test "$ac_cv_header_gmp_h" = yes; then |
---|
1823 | ac_gmp_ok=yes |
---|
1824 | fi |
---|
1825 | |
---|
1826 | if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \ |
---|
1827 | test "$ac_cv_header_smallgmp_h" = yes && \ |
---|
1828 | test "$ac_cv_header_gmp_h" = yes; then |
---|
1829 | ac_smallgmp_ok=yes |
---|
1830 | fi |
---|
1831 | |
---|
1832 | if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \ |
---|
1833 | test "$ac_cv_lib_MPT_MPT_GetTree" && \ |
---|
1834 | test "$ac_cv_header_MP_h" = yes && \ |
---|
1835 | test "$ac_cv_header_MPT_h" = yes; then |
---|
1836 | ac_MP_ok=yes |
---|
1837 | fi |
---|
1838 | |
---|
1839 | if test "$ac_cv_lib_singcf_atof" = yes && \ |
---|
1840 | test "$ac_cv_header_factory_h" = yes; then |
---|
1841 | ac_factory_ok=yes |
---|
1842 | fi |
---|
1843 | |
---|
1844 | if test "$ac_cv_lib_singfac_atof" = yes && \ |
---|
1845 | test "$ac_cv_header_factor_h" = yes; then |
---|
1846 | ac_libfac_ok=yes |
---|
1847 | fi |
---|
1848 | |
---|
1849 | if test "$with_apint" != buildin; then |
---|
1850 | if test "$with_apint" = gmp; then |
---|
1851 | if test "$ac_gmp_ok" = yes; then |
---|
1852 | ac_will_have_gmp=yes |
---|
1853 | elif test "$eanble_gmp" = yes; then |
---|
1854 | ac_will_have_gmp=yes |
---|
1855 | echo "configure: warning: install gmp before making Singular" 1>&2 |
---|
1856 | else |
---|
1857 | { echo "configure: error: Can not use with gmp: lib/header not found" 1>&2; exit 1; } |
---|
1858 | fi |
---|
1859 | elif test "$with_apint" = smallgmp; then |
---|
1860 | if test "$ac_smallgmp_ok" = yes; then |
---|
1861 | ac_will_have_gmp=yes |
---|
1862 | ac_will have_smallgmp=yes |
---|
1863 | elif test "$enable_gmp" = yes; then |
---|
1864 | ac_will_have_gmp=yes |
---|
1865 | ac_will_have_smallgmp=yes |
---|
1866 | echo "configure: warning: install smallgmp before making Singular" 1>&2 |
---|
1867 | else |
---|
1868 | { echo "configure: error: Can not use with smallgmp: lib/header not found" 1>&2; exit 1; } |
---|
1869 | fi |
---|
1870 | elif test "$ac_gmp_ok" = yes; then |
---|
1871 | ac_will_have_gmp=yes |
---|
1872 | elif test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then |
---|
1873 | ac_will_have_gmp=yes |
---|
1874 | ac_will_have_smallgmp=yes |
---|
1875 | elif test "$enable_gmp" = yes; then |
---|
1876 | ac_will_have_gmp=yes |
---|
1877 | fi |
---|
1878 | fi |
---|
1879 | echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 |
---|
1880 | if test "$ac_will_have_gmp" = yes; then |
---|
1881 | cat >> confdefs.h <<\EOF |
---|
1882 | #define HAVE_GMP 1 |
---|
1883 | EOF |
---|
1884 | |
---|
1885 | if test "$ac_will_have_smallgmp" = yes; then |
---|
1886 | NEED_LIBS="-lsmallgmp ${NEED_LIBS}" |
---|
1887 | echo "$ac_t""smallgmp" 1>&6 |
---|
1888 | cat >> confdefs.h <<\EOF |
---|
1889 | #define HAVE_SMALLGMP 1 |
---|
1890 | EOF |
---|
1891 | |
---|
1892 | else |
---|
1893 | NEED_LIBS="-lgmp ${NEED_LIBS}" |
---|
1894 | echo "$ac_t""gmp" 1>&6 |
---|
1895 | fi |
---|
1896 | else |
---|
1897 | echo "$ac_t""buildin" 1>&6 |
---|
1898 | fi |
---|
1899 | |
---|
1900 | WITH_MP=no |
---|
1901 | if test "$with_MP" != no; then |
---|
1902 | if test "$ac_will_have_gmp" != yes; then |
---|
1903 | echo "configure: warning: Need gmp to build with MP" 1>&2 |
---|
1904 | else |
---|
1905 | if test "$ac_MP_ok" = yes; then |
---|
1906 | WITH_MP=yes |
---|
1907 | elif test "$enable_MP" = yes; then |
---|
1908 | WITH_MP=yes |
---|
1909 | echo "configure: warning: Install MP before making Singular" 1>&2 |
---|
1910 | else |
---|
1911 | echo "configure: warning: Need MP library to build with MP" 1>&2 |
---|
1912 | fi |
---|
1913 | fi |
---|
1914 | fi |
---|
1915 | echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6 |
---|
1916 | |
---|
1917 | if test "$WITH_MP" = yes; then |
---|
1918 | cat >> confdefs.h <<\EOF |
---|
1919 | #define HAVE_MPSR 1 |
---|
1920 | EOF |
---|
1921 | |
---|
1922 | NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" |
---|
1923 | echo "$ac_t""yes" 1>&6 |
---|
1924 | else |
---|
1925 | echo "$ac_t""no" 1>&6 |
---|
1926 | fi |
---|
1927 | |
---|
1928 | WITH_FACTORY=no |
---|
1929 | if test "$with_factory" != no; then |
---|
1930 | if test "$ac_will_have_gmp" != yes; then |
---|
1931 | echo "configure: warning: Need gmp to build with factory" 1>&2 |
---|
1932 | else |
---|
1933 | if test "$ac_factory_ok" = yes; then |
---|
1934 | WITH_FACTORY=yes |
---|
1935 | elif test "$enable_factory" = yes; then |
---|
1936 | WITH_FACTORY=yes |
---|
1937 | echo "configure: warning: Install factory before making Singular" 1>&2 |
---|
1938 | else |
---|
1939 | echo "configure: warning: Need factory library to build with factory" 1>&2 |
---|
1940 | fi |
---|
1941 | fi |
---|
1942 | fi |
---|
1943 | echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6 |
---|
1944 | |
---|
1945 | if test "$WITH_FACTORY" = yes; then |
---|
1946 | cat >> confdefs.h <<\EOF |
---|
1947 | #define HAVE_FACTORY 1 |
---|
1948 | EOF |
---|
1949 | |
---|
1950 | NEED_LIBS="-lsingcf ${NEED_LIBS}" |
---|
1951 | echo "$ac_t""yes" 1>&6 |
---|
1952 | else |
---|
1953 | echo "$ac_t""no" 1>&6 |
---|
1954 | fi |
---|
1955 | |
---|
1956 | WITH_LIBFAC=no |
---|
1957 | if test "$with_libfac" != no; then |
---|
1958 | if test "$WITH_FACTORY" != yes; then |
---|
1959 | echo "configure: warning: Need factory to build with libfac" 1>&2 |
---|
1960 | else |
---|
1961 | if test "$ac_libfac_ok" = yes; then |
---|
1962 | WITH_LIBFAC=yes |
---|
1963 | elif test "$enable_libfac" = yes; then |
---|
1964 | WITH_LIBFAC=yes |
---|
1965 | echo "configure: warning: Install libfac before making Singular" 1>&2 |
---|
1966 | else |
---|
1967 | echo "configure: warning: Need libfac library to build with libfac" 1>&2 |
---|
1968 | fi |
---|
1969 | fi |
---|
1970 | fi |
---|
1971 | echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6 |
---|
1972 | |
---|
1973 | if test "$WITH_LIBFAC" = yes; then |
---|
1974 | cat >> confdefs.h <<\EOF |
---|
1975 | #define HAVE_LIBFAC_P 1 |
---|
1976 | EOF |
---|
1977 | |
---|
1978 | NEED_LIBS="-lsingfac ${NEED_LIBS}" |
---|
1979 | echo "$ac_t""yes" 1>&6 |
---|
1980 | else |
---|
1981 | echo "$ac_t""no" 1>&6 |
---|
1982 | fi |
---|
1983 | |
---|
1984 | |
---|
1985 | |
---|
1986 | # If we cannot run a trivial program, we must be cross compiling. |
---|
1987 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 |
---|
1988 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then |
---|
1989 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1990 | else |
---|
1991 | if test "$cross_compiling" = yes; then |
---|
1992 | ac_cv_c_cross=yes |
---|
1993 | else |
---|
1994 | cat > conftest.$ac_ext <<EOF |
---|
1995 | #line 1996 "configure" |
---|
1996 | #include "confdefs.h" |
---|
1997 | main(){return(0);} |
---|
1998 | EOF |
---|
1999 | { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
---|
2000 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
2001 | ac_cv_c_cross=no |
---|
2002 | else |
---|
2003 | ac_cv_c_cross=yes |
---|
2004 | fi |
---|
2005 | fi |
---|
2006 | rm -fr conftest* |
---|
2007 | fi |
---|
2008 | |
---|
2009 | echo "$ac_t""$ac_cv_c_cross" 1>&6 |
---|
2010 | cross_compiling=$ac_cv_c_cross |
---|
2011 | |
---|
2012 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
2013 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
2014 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2015 | else |
---|
2016 | cat > conftest.$ac_ext <<EOF |
---|
2017 | #line 2018 "configure" |
---|
2018 | #include "confdefs.h" |
---|
2019 | #include <stdlib.h> |
---|
2020 | #include <stdarg.h> |
---|
2021 | #include <string.h> |
---|
2022 | #include <float.h> |
---|
2023 | EOF |
---|
2024 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2025 | { (eval echo configure:2026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2026 | ac_err=`grep -v '^ *+' conftest.out` |
---|
2027 | if test -z "$ac_err"; then |
---|
2028 | rm -rf conftest* |
---|
2029 | ac_cv_header_stdc=yes |
---|
2030 | else |
---|
2031 | echo "$ac_err" >&5 |
---|
2032 | rm -rf conftest* |
---|
2033 | ac_cv_header_stdc=no |
---|
2034 | fi |
---|
2035 | rm -f conftest* |
---|
2036 | |
---|
2037 | if test $ac_cv_header_stdc = yes; then |
---|
2038 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
2039 | cat > conftest.$ac_ext <<EOF |
---|
2040 | #line 2041 "configure" |
---|
2041 | #include "confdefs.h" |
---|
2042 | #include <string.h> |
---|
2043 | EOF |
---|
2044 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2045 | egrep "memchr" >/dev/null 2>&1; then |
---|
2046 | : |
---|
2047 | else |
---|
2048 | rm -rf conftest* |
---|
2049 | ac_cv_header_stdc=no |
---|
2050 | fi |
---|
2051 | rm -f conftest* |
---|
2052 | |
---|
2053 | fi |
---|
2054 | |
---|
2055 | if test $ac_cv_header_stdc = yes; then |
---|
2056 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
2057 | cat > conftest.$ac_ext <<EOF |
---|
2058 | #line 2059 "configure" |
---|
2059 | #include "confdefs.h" |
---|
2060 | #include <stdlib.h> |
---|
2061 | EOF |
---|
2062 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2063 | egrep "free" >/dev/null 2>&1; then |
---|
2064 | : |
---|
2065 | else |
---|
2066 | rm -rf conftest* |
---|
2067 | ac_cv_header_stdc=no |
---|
2068 | fi |
---|
2069 | rm -f conftest* |
---|
2070 | |
---|
2071 | fi |
---|
2072 | |
---|
2073 | if test $ac_cv_header_stdc = yes; then |
---|
2074 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
2075 | if test "$cross_compiling" = yes; then |
---|
2076 | : |
---|
2077 | else |
---|
2078 | cat > conftest.$ac_ext <<EOF |
---|
2079 | #line 2080 "configure" |
---|
2080 | #include "confdefs.h" |
---|
2081 | #include <ctype.h> |
---|
2082 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
2083 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
2084 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
2085 | int main () { int i; for (i = 0; i < 256; i++) |
---|
2086 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
2087 | exit (0); } |
---|
2088 | |
---|
2089 | EOF |
---|
2090 | { (eval echo configure:2091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
---|
2091 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
2092 | : |
---|
2093 | else |
---|
2094 | ac_cv_header_stdc=no |
---|
2095 | fi |
---|
2096 | fi |
---|
2097 | rm -fr conftest* |
---|
2098 | fi |
---|
2099 | fi |
---|
2100 | |
---|
2101 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
2102 | if test $ac_cv_header_stdc = yes; then |
---|
2103 | cat >> confdefs.h <<\EOF |
---|
2104 | #define STDC_HEADERS 1 |
---|
2105 | EOF |
---|
2106 | |
---|
2107 | fi |
---|
2108 | |
---|
2109 | |
---|
2110 | for ac_hdr in limits.h unistd.h |
---|
2111 | do |
---|
2112 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
2113 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2114 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2115 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2116 | else |
---|
2117 | cat > conftest.$ac_ext <<EOF |
---|
2118 | #line 2119 "configure" |
---|
2119 | #include "confdefs.h" |
---|
2120 | #include <$ac_hdr> |
---|
2121 | EOF |
---|
2122 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2123 | { (eval echo configure:2124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2124 | ac_err=`grep -v '^ *+' conftest.out` |
---|
2125 | if test -z "$ac_err"; then |
---|
2126 | rm -rf conftest* |
---|
2127 | eval "ac_cv_header_$ac_safe=yes" |
---|
2128 | else |
---|
2129 | echo "$ac_err" >&5 |
---|
2130 | rm -rf conftest* |
---|
2131 | eval "ac_cv_header_$ac_safe=no" |
---|
2132 | fi |
---|
2133 | rm -f conftest* |
---|
2134 | fi |
---|
2135 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2136 | echo "$ac_t""yes" 1>&6 |
---|
2137 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
---|
2138 | cat >> confdefs.h <<EOF |
---|
2139 | #define $ac_tr_hdr 1 |
---|
2140 | EOF |
---|
2141 | |
---|
2142 | else |
---|
2143 | echo "$ac_t""no" 1>&6 |
---|
2144 | { echo "configure: error: Can not compile without limits.h unistd.h" 1>&2; exit 1; } |
---|
2145 | fi |
---|
2146 | done |
---|
2147 | |
---|
2148 | |
---|
2149 | for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h |
---|
2150 | do |
---|
2151 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
2152 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2153 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2154 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2155 | else |
---|
2156 | cat > conftest.$ac_ext <<EOF |
---|
2157 | #line 2158 "configure" |
---|
2158 | #include "confdefs.h" |
---|
2159 | #include <$ac_hdr> |
---|
2160 | EOF |
---|
2161 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2162 | { (eval echo configure:2163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2163 | ac_err=`grep -v '^ *+' conftest.out` |
---|
2164 | if test -z "$ac_err"; then |
---|
2165 | rm -rf conftest* |
---|
2166 | eval "ac_cv_header_$ac_safe=yes" |
---|
2167 | else |
---|
2168 | echo "$ac_err" >&5 |
---|
2169 | rm -rf conftest* |
---|
2170 | eval "ac_cv_header_$ac_safe=no" |
---|
2171 | fi |
---|
2172 | rm -f conftest* |
---|
2173 | fi |
---|
2174 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2175 | echo "$ac_t""yes" 1>&6 |
---|
2176 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
---|
2177 | cat >> confdefs.h <<EOF |
---|
2178 | #define $ac_tr_hdr 1 |
---|
2179 | EOF |
---|
2180 | |
---|
2181 | else |
---|
2182 | echo "$ac_t""no" 1>&6 |
---|
2183 | fi |
---|
2184 | done |
---|
2185 | |
---|
2186 | |
---|
2187 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
2188 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
2189 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2190 | else |
---|
2191 | cat > conftest.$ac_ext <<EOF |
---|
2192 | #line 2193 "configure" |
---|
2193 | #include "confdefs.h" |
---|
2194 | |
---|
2195 | int main() { return 0; } |
---|
2196 | int t() { |
---|
2197 | |
---|
2198 | /* Ultrix mips cc rejects this. */ |
---|
2199 | typedef int charset[2]; const charset x; |
---|
2200 | /* SunOS 4.1.1 cc rejects this. */ |
---|
2201 | char const *const *ccp; |
---|
2202 | char **p; |
---|
2203 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
2204 | struct point {int x, y;}; |
---|
2205 | static struct point const zero = {0,0}; |
---|
2206 | /* AIX XL C 1.02.0.0 rejects this. |
---|
2207 | It does not let you subtract one const X* pointer from another in an arm |
---|
2208 | of an if-expression whose if-part is not a constant expression */ |
---|
2209 | const char *g = "string"; |
---|
2210 | ccp = &g + (g ? g-g : 0); |
---|
2211 | /* HPUX 7.0 cc rejects these. */ |
---|
2212 | ++ccp; |
---|
2213 | p = (char**) ccp; |
---|
2214 | ccp = (char const *const *) p; |
---|
2215 | { /* SCO 3.2v4 cc rejects this. */ |
---|
2216 | char *t; |
---|
2217 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
2218 | |
---|
2219 | *t++ = 0; |
---|
2220 | } |
---|
2221 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
2222 | int x[] = {25, 17}; |
---|
2223 | const int *foo = &x[0]; |
---|
2224 | ++foo; |
---|
2225 | } |
---|
2226 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
2227 | typedef const int *iptr; |
---|
2228 | iptr p = 0; |
---|
2229 | ++p; |
---|
2230 | } |
---|
2231 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
2232 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
2233 | struct s { int j; const int *ap[3]; }; |
---|
2234 | struct s *b; b->j = 5; |
---|
2235 | } |
---|
2236 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
2237 | const int foo = 10; |
---|
2238 | } |
---|
2239 | |
---|
2240 | ; return 0; } |
---|
2241 | EOF |
---|
2242 | if { (eval echo configure:2243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2243 | rm -rf conftest* |
---|
2244 | ac_cv_c_const=yes |
---|
2245 | else |
---|
2246 | rm -rf conftest* |
---|
2247 | ac_cv_c_const=no |
---|
2248 | fi |
---|
2249 | rm -f conftest* |
---|
2250 | |
---|
2251 | fi |
---|
2252 | |
---|
2253 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
2254 | if test $ac_cv_c_const = no; then |
---|
2255 | cat >> confdefs.h <<\EOF |
---|
2256 | #define const |
---|
2257 | EOF |
---|
2258 | |
---|
2259 | fi |
---|
2260 | |
---|
2261 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
---|
2262 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
---|
2263 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2264 | else |
---|
2265 | ac_cv_c_inline=no |
---|
2266 | for ac_kw in inline __inline__ __inline; do |
---|
2267 | cat > conftest.$ac_ext <<EOF |
---|
2268 | #line 2269 "configure" |
---|
2269 | #include "confdefs.h" |
---|
2270 | |
---|
2271 | int main() { return 0; } |
---|
2272 | int t() { |
---|
2273 | } $ac_kw foo() { |
---|
2274 | ; return 0; } |
---|
2275 | EOF |
---|
2276 | if { (eval echo configure:2277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2277 | rm -rf conftest* |
---|
2278 | ac_cv_c_inline=$ac_kw; break |
---|
2279 | fi |
---|
2280 | rm -f conftest* |
---|
2281 | |
---|
2282 | done |
---|
2283 | |
---|
2284 | fi |
---|
2285 | |
---|
2286 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
---|
2287 | case "$ac_cv_c_inline" in |
---|
2288 | inline | yes) ;; |
---|
2289 | no) cat >> confdefs.h <<\EOF |
---|
2290 | #define inline |
---|
2291 | EOF |
---|
2292 | ;; |
---|
2293 | *) cat >> confdefs.h <<EOF |
---|
2294 | #define inline $ac_cv_c_inline |
---|
2295 | EOF |
---|
2296 | ;; |
---|
2297 | esac |
---|
2298 | |
---|
2299 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
---|
2300 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
---|
2301 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2302 | else |
---|
2303 | cat > conftest.$ac_ext <<EOF |
---|
2304 | #line 2305 "configure" |
---|
2305 | #include "confdefs.h" |
---|
2306 | #include <sys/types.h> |
---|
2307 | #if STDC_HEADERS |
---|
2308 | #include <stdlib.h> |
---|
2309 | #endif |
---|
2310 | EOF |
---|
2311 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2312 | egrep "size_t" >/dev/null 2>&1; then |
---|
2313 | rm -rf conftest* |
---|
2314 | ac_cv_type_size_t=yes |
---|
2315 | else |
---|
2316 | rm -rf conftest* |
---|
2317 | ac_cv_type_size_t=no |
---|
2318 | fi |
---|
2319 | rm -f conftest* |
---|
2320 | |
---|
2321 | fi |
---|
2322 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
---|
2323 | if test $ac_cv_type_size_t = no; then |
---|
2324 | cat >> confdefs.h <<\EOF |
---|
2325 | #define size_t unsigned |
---|
2326 | EOF |
---|
2327 | |
---|
2328 | fi |
---|
2329 | |
---|
2330 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
---|
2331 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
---|
2332 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2333 | else |
---|
2334 | cat > conftest.$ac_ext <<EOF |
---|
2335 | #line 2336 "configure" |
---|
2336 | #include "confdefs.h" |
---|
2337 | #include <sys/types.h> |
---|
2338 | #include <sys/time.h> |
---|
2339 | #include <time.h> |
---|
2340 | int main() { return 0; } |
---|
2341 | int t() { |
---|
2342 | struct tm *tp; |
---|
2343 | ; return 0; } |
---|
2344 | EOF |
---|
2345 | if { (eval echo configure:2346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2346 | rm -rf conftest* |
---|
2347 | ac_cv_header_time=yes |
---|
2348 | else |
---|
2349 | rm -rf conftest* |
---|
2350 | ac_cv_header_time=no |
---|
2351 | fi |
---|
2352 | rm -f conftest* |
---|
2353 | |
---|
2354 | fi |
---|
2355 | |
---|
2356 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
---|
2357 | if test $ac_cv_header_time = yes; then |
---|
2358 | cat >> confdefs.h <<\EOF |
---|
2359 | #define TIME_WITH_SYS_TIME 1 |
---|
2360 | EOF |
---|
2361 | |
---|
2362 | fi |
---|
2363 | |
---|
2364 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
---|
2365 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
---|
2366 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2367 | else |
---|
2368 | cat > conftest.$ac_ext <<EOF |
---|
2369 | #line 2370 "configure" |
---|
2370 | #include "confdefs.h" |
---|
2371 | #include <sys/types.h> |
---|
2372 | #include <time.h> |
---|
2373 | int main() { return 0; } |
---|
2374 | int t() { |
---|
2375 | struct tm *tp; tp->tm_sec; |
---|
2376 | ; return 0; } |
---|
2377 | EOF |
---|
2378 | if { (eval echo configure:2379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2379 | rm -rf conftest* |
---|
2380 | ac_cv_struct_tm=time.h |
---|
2381 | else |
---|
2382 | rm -rf conftest* |
---|
2383 | ac_cv_struct_tm=sys/time.h |
---|
2384 | fi |
---|
2385 | rm -f conftest* |
---|
2386 | |
---|
2387 | fi |
---|
2388 | |
---|
2389 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
---|
2390 | if test $ac_cv_struct_tm = sys/time.h; then |
---|
2391 | cat >> confdefs.h <<\EOF |
---|
2392 | #define TM_IN_SYS_TIME 1 |
---|
2393 | EOF |
---|
2394 | |
---|
2395 | fi |
---|
2396 | |
---|
2397 | |
---|
2398 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
2399 | # for constant arguments. Useless! |
---|
2400 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
---|
2401 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
---|
2402 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2403 | else |
---|
2404 | cat > conftest.$ac_ext <<EOF |
---|
2405 | #line 2406 "configure" |
---|
2406 | #include "confdefs.h" |
---|
2407 | #include <alloca.h> |
---|
2408 | int main() { return 0; } |
---|
2409 | int t() { |
---|
2410 | char *p = alloca(2 * sizeof(int)); |
---|
2411 | ; return 0; } |
---|
2412 | EOF |
---|
2413 | if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
2414 | rm -rf conftest* |
---|
2415 | ac_cv_header_alloca_h=yes |
---|
2416 | else |
---|
2417 | rm -rf conftest* |
---|
2418 | ac_cv_header_alloca_h=no |
---|
2419 | fi |
---|
2420 | rm -f conftest* |
---|
2421 | |
---|
2422 | fi |
---|
2423 | |
---|
2424 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
---|
2425 | if test $ac_cv_header_alloca_h = yes; then |
---|
2426 | cat >> confdefs.h <<\EOF |
---|
2427 | #define HAVE_ALLOCA_H 1 |
---|
2428 | EOF |
---|
2429 | |
---|
2430 | fi |
---|
2431 | |
---|
2432 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
---|
2433 | if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then |
---|
2434 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2435 | else |
---|
2436 | cat > conftest.$ac_ext <<EOF |
---|
2437 | #line 2438 "configure" |
---|
2438 | #include "confdefs.h" |
---|
2439 | |
---|
2440 | #ifdef __GNUC__ |
---|
2441 | # define alloca __builtin_alloca |
---|
2442 | #else |
---|
2443 | # if HAVE_ALLOCA_H |
---|
2444 | # include <alloca.h> |
---|
2445 | # else |
---|
2446 | # ifdef _AIX |
---|
2447 | #pragma alloca |
---|
2448 | # else |
---|
2449 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
2450 | char *alloca (); |
---|
2451 | # endif |
---|
2452 | # endif |
---|
2453 | # endif |
---|
2454 | #endif |
---|
2455 | |
---|
2456 | int main() { return 0; } |
---|
2457 | int t() { |
---|
2458 | char *p = (char *) alloca(1); |
---|
2459 | ; return 0; } |
---|
2460 | EOF |
---|
2461 | if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
2462 | rm -rf conftest* |
---|
2463 | ac_cv_func_alloca=yes |
---|
2464 | else |
---|
2465 | rm -rf conftest* |
---|
2466 | ac_cv_func_alloca=no |
---|
2467 | fi |
---|
2468 | rm -f conftest* |
---|
2469 | |
---|
2470 | fi |
---|
2471 | |
---|
2472 | echo "$ac_t""$ac_cv_func_alloca" 1>&6 |
---|
2473 | if test $ac_cv_func_alloca = yes; then |
---|
2474 | cat >> confdefs.h <<\EOF |
---|
2475 | #define HAVE_ALLOCA 1 |
---|
2476 | EOF |
---|
2477 | |
---|
2478 | fi |
---|
2479 | |
---|
2480 | if test $ac_cv_func_alloca = no; then |
---|
2481 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
2482 | # that cause trouble. Some versions do not even contain alloca or |
---|
2483 | # contain a buggy version. If you still want to use their alloca, |
---|
2484 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
2485 | ALLOCA=alloca.o |
---|
2486 | cat >> confdefs.h <<\EOF |
---|
2487 | #define C_ALLOCA 1 |
---|
2488 | EOF |
---|
2489 | |
---|
2490 | |
---|
2491 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
---|
2492 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
---|
2493 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2494 | else |
---|
2495 | cat > conftest.$ac_ext <<EOF |
---|
2496 | #line 2497 "configure" |
---|
2497 | #include "confdefs.h" |
---|
2498 | #if defined(CRAY) && ! defined(CRAY2) |
---|
2499 | webecray |
---|
2500 | #else |
---|
2501 | wenotbecray |
---|
2502 | #endif |
---|
2503 | |
---|
2504 | EOF |
---|
2505 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2506 | egrep "webecray" >/dev/null 2>&1; then |
---|
2507 | rm -rf conftest* |
---|
2508 | ac_cv_os_cray=yes |
---|
2509 | else |
---|
2510 | rm -rf conftest* |
---|
2511 | ac_cv_os_cray=no |
---|
2512 | fi |
---|
2513 | rm -f conftest* |
---|
2514 | |
---|
2515 | fi |
---|
2516 | |
---|
2517 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
---|
2518 | if test $ac_cv_os_cray = yes; then |
---|
2519 | for ac_func in _getb67 GETB67 getb67; do |
---|
2520 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
2521 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
2522 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2523 | else |
---|
2524 | cat > conftest.$ac_ext <<EOF |
---|
2525 | #line 2526 "configure" |
---|
2526 | #include "confdefs.h" |
---|
2527 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2528 | which can conflict with char $ac_func(); below. */ |
---|
2529 | #include <assert.h> |
---|
2530 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2531 | char $ac_func(); |
---|
2532 | |
---|
2533 | int main() { return 0; } |
---|
2534 | int t() { |
---|
2535 | |
---|
2536 | /* The GNU C library defines this for functions which it implements |
---|
2537 | to always fail with ENOSYS. Some functions are actually named |
---|
2538 | something starting with __ and the normal name is an alias. */ |
---|
2539 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
2540 | choke me |
---|
2541 | #else |
---|
2542 | $ac_func(); |
---|
2543 | #endif |
---|
2544 | |
---|
2545 | ; return 0; } |
---|
2546 | EOF |
---|
2547 | if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
2548 | rm -rf conftest* |
---|
2549 | eval "ac_cv_func_$ac_func=yes" |
---|
2550 | else |
---|
2551 | rm -rf conftest* |
---|
2552 | eval "ac_cv_func_$ac_func=no" |
---|
2553 | fi |
---|
2554 | rm -f conftest* |
---|
2555 | |
---|
2556 | fi |
---|
2557 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
2558 | echo "$ac_t""yes" 1>&6 |
---|
2559 | cat >> confdefs.h <<EOF |
---|
2560 | #define CRAY_STACKSEG_END $ac_func |
---|
2561 | EOF |
---|
2562 | |
---|
2563 | break |
---|
2564 | else |
---|
2565 | echo "$ac_t""no" 1>&6 |
---|
2566 | fi |
---|
2567 | |
---|
2568 | done |
---|
2569 | fi |
---|
2570 | |
---|
2571 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
---|
2572 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
---|
2573 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2574 | else |
---|
2575 | if test "$cross_compiling" = yes; then |
---|
2576 | ac_cv_c_stack_direction=0 |
---|
2577 | else |
---|
2578 | cat > conftest.$ac_ext <<EOF |
---|
2579 | #line 2580 "configure" |
---|
2580 | #include "confdefs.h" |
---|
2581 | find_stack_direction () |
---|
2582 | { |
---|
2583 | static char *addr = 0; |
---|
2584 | auto char dummy; |
---|
2585 | if (addr == 0) |
---|
2586 | { |
---|
2587 | addr = &dummy; |
---|
2588 | return find_stack_direction (); |
---|
2589 | } |
---|
2590 | else |
---|
2591 | return (&dummy > addr) ? 1 : -1; |
---|
2592 | } |
---|
2593 | main () |
---|
2594 | { |
---|
2595 | exit (find_stack_direction() < 0); |
---|
2596 | } |
---|
2597 | EOF |
---|
2598 | { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
---|
2599 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
2600 | ac_cv_c_stack_direction=1 |
---|
2601 | else |
---|
2602 | ac_cv_c_stack_direction=-1 |
---|
2603 | fi |
---|
2604 | fi |
---|
2605 | rm -fr conftest* |
---|
2606 | fi |
---|
2607 | |
---|
2608 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
---|
2609 | cat >> confdefs.h <<EOF |
---|
2610 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
2611 | EOF |
---|
2612 | |
---|
2613 | fi |
---|
2614 | |
---|
2615 | if test $ac_cv_prog_gcc = yes; then |
---|
2616 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
---|
2617 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
---|
2618 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2619 | else |
---|
2620 | ac_pattern="Autoconf.*'x'" |
---|
2621 | cat > conftest.$ac_ext <<EOF |
---|
2622 | #line 2623 "configure" |
---|
2623 | #include "confdefs.h" |
---|
2624 | #include <sgtty.h> |
---|
2625 | Autoconf TIOCGETP |
---|
2626 | EOF |
---|
2627 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2628 | egrep "$ac_pattern" >/dev/null 2>&1; then |
---|
2629 | rm -rf conftest* |
---|
2630 | ac_cv_prog_gcc_traditional=yes |
---|
2631 | else |
---|
2632 | rm -rf conftest* |
---|
2633 | ac_cv_prog_gcc_traditional=no |
---|
2634 | fi |
---|
2635 | rm -f conftest* |
---|
2636 | |
---|
2637 | |
---|
2638 | if test $ac_cv_prog_gcc_traditional = no; then |
---|
2639 | cat > conftest.$ac_ext <<EOF |
---|
2640 | #line 2641 "configure" |
---|
2641 | #include "confdefs.h" |
---|
2642 | #include <termio.h> |
---|
2643 | Autoconf TCGETA |
---|
2644 | EOF |
---|
2645 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2646 | egrep "$ac_pattern" >/dev/null 2>&1; then |
---|
2647 | rm -rf conftest* |
---|
2648 | ac_cv_prog_gcc_traditional=yes |
---|
2649 | fi |
---|
2650 | rm -f conftest* |
---|
2651 | |
---|
2652 | fi |
---|
2653 | fi |
---|
2654 | |
---|
2655 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 |
---|
2656 | if test $ac_cv_prog_gcc_traditional = yes; then |
---|
2657 | CC="$CC -traditional" |
---|
2658 | fi |
---|
2659 | fi |
---|
2660 | |
---|
2661 | for ac_func in valloc getpagesize |
---|
2662 | do |
---|
2663 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
2664 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
2665 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2666 | else |
---|
2667 | cat > conftest.$ac_ext <<EOF |
---|
2668 | #line 2669 "configure" |
---|
2669 | #include "confdefs.h" |
---|
2670 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2671 | which can conflict with char $ac_func(); below. */ |
---|
2672 | #include <assert.h> |
---|
2673 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2674 | char $ac_func(); |
---|
2675 | |
---|
2676 | int main() { return 0; } |
---|
2677 | int t() { |
---|
2678 | |
---|
2679 | /* The GNU C library defines this for functions which it implements |
---|
2680 | to always fail with ENOSYS. Some functions are actually named |
---|
2681 | something starting with __ and the normal name is an alias. */ |
---|
2682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
2683 | choke me |
---|
2684 | #else |
---|
2685 | $ac_func(); |
---|
2686 | #endif |
---|
2687 | |
---|
2688 | ; return 0; } |
---|
2689 | EOF |
---|
2690 | if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
2691 | rm -rf conftest* |
---|
2692 | eval "ac_cv_func_$ac_func=yes" |
---|
2693 | else |
---|
2694 | rm -rf conftest* |
---|
2695 | eval "ac_cv_func_$ac_func=no" |
---|
2696 | fi |
---|
2697 | rm -f conftest* |
---|
2698 | |
---|
2699 | fi |
---|
2700 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
2701 | echo "$ac_t""yes" 1>&6 |
---|
2702 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
2703 | cat >> confdefs.h <<EOF |
---|
2704 | #define $ac_tr_func 1 |
---|
2705 | EOF |
---|
2706 | |
---|
2707 | else |
---|
2708 | echo "$ac_t""no" 1>&6 |
---|
2709 | fi |
---|
2710 | done |
---|
2711 | |
---|
2712 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
---|
2713 | if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then |
---|
2714 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2715 | else |
---|
2716 | if test "$cross_compiling" = yes; then |
---|
2717 | ac_cv_func_mmap=no |
---|
2718 | else |
---|
2719 | cat > conftest.$ac_ext <<EOF |
---|
2720 | #line 2721 "configure" |
---|
2721 | #include "confdefs.h" |
---|
2722 | |
---|
2723 | /* Thanks to Mike Haertel and Jim Avera for this test. */ |
---|
2724 | #include <sys/types.h> |
---|
2725 | #include <fcntl.h> |
---|
2726 | #include <sys/mman.h> |
---|
2727 | |
---|
2728 | #ifndef HAVE_GETPAGESIZE |
---|
2729 | # include <sys/param.h> |
---|
2730 | # ifdef EXEC_PAGESIZE |
---|
2731 | # define getpagesize() EXEC_PAGESIZE |
---|
2732 | # else |
---|
2733 | # ifdef NBPG |
---|
2734 | # define getpagesize() NBPG * CLSIZE |
---|
2735 | # ifndef CLSIZE |
---|
2736 | # define CLSIZE 1 |
---|
2737 | # endif |
---|
2738 | # else |
---|
2739 | # ifdef NBPC |
---|
2740 | # define getpagesize() NBPC |
---|
2741 | # else |
---|
2742 | # define getpagesize() PAGESIZE /* SVR4 */ |
---|
2743 | # endif |
---|
2744 | # endif |
---|
2745 | # endif |
---|
2746 | #endif |
---|
2747 | |
---|
2748 | #ifndef HAVE_VALLOC |
---|
2749 | # define valloc malloc |
---|
2750 | #endif |
---|
2751 | |
---|
2752 | #ifdef __cplusplus |
---|
2753 | extern "C" { void *valloc(unsigned), *malloc(unsigned); } |
---|
2754 | #else |
---|
2755 | char *valloc(), *malloc(); |
---|
2756 | #endif |
---|
2757 | |
---|
2758 | int |
---|
2759 | main() |
---|
2760 | { |
---|
2761 | char *buf1, *buf2, *buf3; |
---|
2762 | int i = getpagesize(), j; |
---|
2763 | int i2 = i * 2; |
---|
2764 | int fd; |
---|
2765 | |
---|
2766 | buf1 = (char *)valloc(i2); |
---|
2767 | buf2 = (char *)valloc(i); |
---|
2768 | buf3 = (char *)malloc(i2); |
---|
2769 | for (j = 0; j < i2; ++j) |
---|
2770 | *(buf1 + j) = rand(); |
---|
2771 | fd = open("conftestmmap", O_CREAT | O_RDWR, 0666); |
---|
2772 | write(fd, buf1, i2); |
---|
2773 | mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0); |
---|
2774 | for (j = 0; j < i; ++j) |
---|
2775 | if (*(buf1 + j) != *(buf2 + j)) |
---|
2776 | exit(1); |
---|
2777 | lseek(fd, (long)i, 0); |
---|
2778 | read(fd, buf2, i); /* read into mapped memory -- file should not change */ |
---|
2779 | /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */ |
---|
2780 | lseek(fd, (long)0, 0); |
---|
2781 | read(fd, buf3, i2); |
---|
2782 | for (j = 0; j < i2; ++j) |
---|
2783 | if (*(buf1 + j) != *(buf3 + j)) |
---|
2784 | exit(1); |
---|
2785 | exit(0); |
---|
2786 | } |
---|
2787 | |
---|
2788 | EOF |
---|
2789 | { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
---|
2790 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
2791 | ac_cv_func_mmap=yes |
---|
2792 | else |
---|
2793 | ac_cv_func_mmap=no |
---|
2794 | fi |
---|
2795 | fi |
---|
2796 | rm -fr conftest* |
---|
2797 | fi |
---|
2798 | |
---|
2799 | echo "$ac_t""$ac_cv_func_mmap" 1>&6 |
---|
2800 | if test $ac_cv_func_mmap = yes; then |
---|
2801 | cat >> confdefs.h <<\EOF |
---|
2802 | #define HAVE_MMAP 1 |
---|
2803 | EOF |
---|
2804 | |
---|
2805 | fi |
---|
2806 | |
---|
2807 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
---|
2808 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
---|
2809 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2810 | else |
---|
2811 | cat > conftest.$ac_ext <<EOF |
---|
2812 | #line 2813 "configure" |
---|
2813 | #include "confdefs.h" |
---|
2814 | #include <sys/types.h> |
---|
2815 | #include <signal.h> |
---|
2816 | #ifdef signal |
---|
2817 | #undef signal |
---|
2818 | #endif |
---|
2819 | #ifdef __cplusplus |
---|
2820 | extern "C" void (*signal (int, void (*)(int)))(int); |
---|
2821 | #else |
---|
2822 | void (*signal ()) (); |
---|
2823 | #endif |
---|
2824 | |
---|
2825 | int main() { return 0; } |
---|
2826 | int t() { |
---|
2827 | int i; |
---|
2828 | ; return 0; } |
---|
2829 | EOF |
---|
2830 | if { (eval echo configure:2831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2831 | rm -rf conftest* |
---|
2832 | ac_cv_type_signal=void |
---|
2833 | else |
---|
2834 | rm -rf conftest* |
---|
2835 | ac_cv_type_signal=int |
---|
2836 | fi |
---|
2837 | rm -f conftest* |
---|
2838 | |
---|
2839 | fi |
---|
2840 | |
---|
2841 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
---|
2842 | cat >> confdefs.h <<EOF |
---|
2843 | #define RETSIGTYPE $ac_cv_type_signal |
---|
2844 | EOF |
---|
2845 | |
---|
2846 | |
---|
2847 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
---|
2848 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
---|
2849 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2850 | else |
---|
2851 | cat > conftest.$ac_ext <<EOF |
---|
2852 | #line 2853 "configure" |
---|
2853 | #include "confdefs.h" |
---|
2854 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2855 | which can conflict with char vprintf(); below. */ |
---|
2856 | #include <assert.h> |
---|
2857 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2858 | char vprintf(); |
---|
2859 | |
---|
2860 | int main() { return 0; } |
---|
2861 | int t() { |
---|
2862 | |
---|
2863 | /* The GNU C library defines this for functions which it implements |
---|
2864 | to always fail with ENOSYS. Some functions are actually named |
---|
2865 | something starting with __ and the normal name is an alias. */ |
---|
2866 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
---|
2867 | choke me |
---|
2868 | #else |
---|
2869 | vprintf(); |
---|
2870 | #endif |
---|
2871 | |
---|
2872 | ; return 0; } |
---|
2873 | EOF |
---|
2874 | if { (eval echo configure:2875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
2875 | rm -rf conftest* |
---|
2876 | eval "ac_cv_func_vprintf=yes" |
---|
2877 | else |
---|
2878 | rm -rf conftest* |
---|
2879 | eval "ac_cv_func_vprintf=no" |
---|
2880 | fi |
---|
2881 | rm -f conftest* |
---|
2882 | |
---|
2883 | fi |
---|
2884 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
---|
2885 | echo "$ac_t""yes" 1>&6 |
---|
2886 | cat >> confdefs.h <<\EOF |
---|
2887 | #define HAVE_VPRINTF 1 |
---|
2888 | EOF |
---|
2889 | |
---|
2890 | else |
---|
2891 | echo "$ac_t""no" 1>&6 |
---|
2892 | fi |
---|
2893 | |
---|
2894 | if test "$ac_cv_func_vprintf" != yes; then |
---|
2895 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
---|
2896 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
---|
2897 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2898 | else |
---|
2899 | cat > conftest.$ac_ext <<EOF |
---|
2900 | #line 2901 "configure" |
---|
2901 | #include "confdefs.h" |
---|
2902 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2903 | which can conflict with char _doprnt(); below. */ |
---|
2904 | #include <assert.h> |
---|
2905 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2906 | char _doprnt(); |
---|
2907 | |
---|
2908 | int main() { return 0; } |
---|
2909 | int t() { |
---|
2910 | |
---|
2911 | /* The GNU C library defines this for functions which it implements |
---|
2912 | to always fail with ENOSYS. Some functions are actually named |
---|
2913 | something starting with __ and the normal name is an alias. */ |
---|
2914 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
---|
2915 | choke me |
---|
2916 | #else |
---|
2917 | _doprnt(); |
---|
2918 | #endif |
---|
2919 | |
---|
2920 | ; return 0; } |
---|
2921 | EOF |
---|
2922 | if { (eval echo configure:2923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
2923 | rm -rf conftest* |
---|
2924 | eval "ac_cv_func__doprnt=yes" |
---|
2925 | else |
---|
2926 | rm -rf conftest* |
---|
2927 | eval "ac_cv_func__doprnt=no" |
---|
2928 | fi |
---|
2929 | rm -f conftest* |
---|
2930 | |
---|
2931 | fi |
---|
2932 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
---|
2933 | echo "$ac_t""yes" 1>&6 |
---|
2934 | cat >> confdefs.h <<\EOF |
---|
2935 | #define HAVE_DOPRNT 1 |
---|
2936 | EOF |
---|
2937 | |
---|
2938 | else |
---|
2939 | echo "$ac_t""no" 1>&6 |
---|
2940 | fi |
---|
2941 | |
---|
2942 | fi |
---|
2943 | |
---|
2944 | for ac_func in gettimeofday strstr strtod strtol atexit |
---|
2945 | do |
---|
2946 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
2947 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
2948 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2949 | else |
---|
2950 | cat > conftest.$ac_ext <<EOF |
---|
2951 | #line 2952 "configure" |
---|
2952 | #include "confdefs.h" |
---|
2953 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2954 | which can conflict with char $ac_func(); below. */ |
---|
2955 | #include <assert.h> |
---|
2956 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2957 | char $ac_func(); |
---|
2958 | |
---|
2959 | int main() { return 0; } |
---|
2960 | int t() { |
---|
2961 | |
---|
2962 | /* The GNU C library defines this for functions which it implements |
---|
2963 | to always fail with ENOSYS. Some functions are actually named |
---|
2964 | something starting with __ and the normal name is an alias. */ |
---|
2965 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
2966 | choke me |
---|
2967 | #else |
---|
2968 | $ac_func(); |
---|
2969 | #endif |
---|
2970 | |
---|
2971 | ; return 0; } |
---|
2972 | EOF |
---|
2973 | if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
2974 | rm -rf conftest* |
---|
2975 | eval "ac_cv_func_$ac_func=yes" |
---|
2976 | else |
---|
2977 | rm -rf conftest* |
---|
2978 | eval "ac_cv_func_$ac_func=no" |
---|
2979 | fi |
---|
2980 | rm -f conftest* |
---|
2981 | |
---|
2982 | fi |
---|
2983 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
2984 | echo "$ac_t""yes" 1>&6 |
---|
2985 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
2986 | cat >> confdefs.h <<EOF |
---|
2987 | #define $ac_tr_func 1 |
---|
2988 | EOF |
---|
2989 | |
---|
2990 | else |
---|
2991 | echo "$ac_t""no" 1>&6 |
---|
2992 | fi |
---|
2993 | done |
---|
2994 | |
---|
2995 | |
---|
2996 | |
---|
2997 | echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6 |
---|
2998 | if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then |
---|
2999 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3000 | else |
---|
3001 | if test "$cross_compiling" = yes; then |
---|
3002 | 1 |
---|
3003 | else |
---|
3004 | cat > conftest.$ac_ext <<EOF |
---|
3005 | #line 3006 "configure" |
---|
3006 | #include "confdefs.h" |
---|
3007 | int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } |
---|
3008 | EOF |
---|
3009 | { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
---|
3010 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
3011 | ac_cv_shift=yes |
---|
3012 | else |
---|
3013 | ac_cv_shift=no |
---|
3014 | fi |
---|
3015 | fi |
---|
3016 | rm -fr conftest* |
---|
3017 | fi |
---|
3018 | |
---|
3019 | if test "$ac_cv_shift" = yes; then |
---|
3020 | echo "$ac_t""yes" 1>&6 |
---|
3021 | else |
---|
3022 | echo "$ac_t""no" 1>&6 |
---|
3023 | { echo "configure: error: need -2 >> 1 == -1" 1>&2; exit 1; } |
---|
3024 | fi |
---|
3025 | |
---|
3026 | |
---|
3027 | echo $ac_n "checking whether sizeof int is four bytes""... $ac_c" 1>&6 |
---|
3028 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_equals_four'+set}'`\" = set"; then |
---|
3029 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3030 | else |
---|
3031 | if test "$cross_compiling" = yes; then |
---|
3032 | 1 |
---|
3033 | else |
---|
3034 | cat > conftest.$ac_ext <<EOF |
---|
3035 | #line 3036 "configure" |
---|
3036 | #include "confdefs.h" |
---|
3037 | int main() {if (sizeof(int) == 4) exit(0); else exit(1); } |
---|
3038 | EOF |
---|
3039 | { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
---|
3040 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
3041 | ac_cv_sizeof_int_equals_four=yes |
---|
3042 | else |
---|
3043 | ac_cv_sizeof_int_equals_four=no |
---|
3044 | fi |
---|
3045 | fi |
---|
3046 | rm -fr conftest* |
---|
3047 | fi |
---|
3048 | |
---|
3049 | |
---|
3050 | if test "$ac_cv_sizeof_int_equals_four" = yes; then |
---|
3051 | echo "$ac_t""yes" 1>&6 |
---|
3052 | else |
---|
3053 | echo "$ac_t""no" 1>&6 |
---|
3054 | { echo "configure: error: need int to be four bytes long" 1>&2; exit 1; } |
---|
3055 | fi |
---|
3056 | |
---|
3057 | echo $ac_n "checking whether sizeof long equals sizeof void*""... $ac_c" 1>&6 |
---|
3058 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_equals_voidp'+set}'`\" = set"; then |
---|
3059 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3060 | else |
---|
3061 | if test "$cross_compiling" = yes; then |
---|
3062 | 1 |
---|
3063 | else |
---|
3064 | cat > conftest.$ac_ext <<EOF |
---|
3065 | #line 3066 "configure" |
---|
3066 | #include "confdefs.h" |
---|
3067 | int main() {if (sizeof(long) == sizeof(void*)) exit(0); else exit(1); } |
---|
3068 | EOF |
---|
3069 | { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
---|
3070 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
3071 | ac_cv_sizeof_long_equals_voidp=yes |
---|
3072 | else |
---|
3073 | ac_cv_sizeof_long_equals_voidp=no |
---|
3074 | fi |
---|
3075 | fi |
---|
3076 | rm -fr conftest* |
---|
3077 | fi |
---|
3078 | |
---|
3079 | if test "$ac_cv_sizeof_long_equals_voidp" = yes; then |
---|
3080 | echo "$ac_t""yes" 1>&6 |
---|
3081 | else |
---|
3082 | echo "$ac_t""no" 1>&6 |
---|
3083 | { echo "configure: error: need equal sizes for long and void*" 1>&2; exit 1; } |
---|
3084 | fi |
---|
3085 | |
---|
3086 | echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6 |
---|
3087 | if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then |
---|
3088 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3089 | else |
---|
3090 | if test "$cross_compiling" = yes; then |
---|
3091 | 1 |
---|
3092 | else |
---|
3093 | cat > conftest.$ac_ext <<EOF |
---|
3094 | #line 3095 "configure" |
---|
3095 | #include "confdefs.h" |
---|
3096 | #include <stdio.h> |
---|
3097 | main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } |
---|
3098 | EOF |
---|
3099 | { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
---|
3100 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
3101 | ac_cv_returns_n_of_chars=yes |
---|
3102 | else |
---|
3103 | ac_cv_returns_n_of_chars=no |
---|
3104 | fi |
---|
3105 | fi |
---|
3106 | rm -fr conftest* |
---|
3107 | fi |
---|
3108 | |
---|
3109 | if test "$ac_cv_returns_n_of_chars" = yes; then |
---|
3110 | echo "$ac_t""yes" 1>&6 |
---|
3111 | else |
---|
3112 | echo "$ac_t""no" 1>&6 |
---|
3113 | cat >> confdefs.h <<\EOF |
---|
3114 | #define BSD_SPRINTF 1 |
---|
3115 | EOF |
---|
3116 | |
---|
3117 | fi |
---|
3118 | |
---|
3119 | echo $ac_n "checking size of void*""... $ac_c" 1>&6 |
---|
3120 | if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then |
---|
3121 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3122 | else |
---|
3123 | if test "$cross_compiling" = yes; then |
---|
3124 | ac_cv_sizeof_voidp=4 |
---|
3125 | else |
---|
3126 | cat > conftest.$ac_ext <<EOF |
---|
3127 | #line 3128 "configure" |
---|
3128 | #include "confdefs.h" |
---|
3129 | #include <stdio.h> |
---|
3130 | main() |
---|
3131 | { |
---|
3132 | FILE *f=fopen("conftestval", "w"); |
---|
3133 | if (!f) exit(1); |
---|
3134 | fprintf(f, "%d\n", sizeof(void*)); |
---|
3135 | exit(0); |
---|
3136 | } |
---|
3137 | EOF |
---|
3138 | { (eval echo configure:3139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
---|
3139 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
---|
3140 | ac_cv_sizeof_voidp=`cat conftestval` |
---|
3141 | else |
---|
3142 | ac_cv_sizeof_voidp=0 |
---|
3143 | fi |
---|
3144 | fi |
---|
3145 | rm -fr conftest* |
---|
3146 | fi |
---|
3147 | echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6 |
---|
3148 | cat >> confdefs.h <<EOF |
---|
3149 | #define SIZEOF_VOIDP $ac_cv_sizeof_voidp |
---|
3150 | EOF |
---|
3151 | |
---|
3152 | |
---|
3153 | |
---|
3154 | |
---|
3155 | echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 |
---|
3156 | if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then |
---|
3157 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3158 | else |
---|
3159 | cat > conftest.$ac_ext <<EOF |
---|
3160 | #line 3161 "configure" |
---|
3161 | #include "confdefs.h" |
---|
3162 | #ifdef _AIX |
---|
3163 | yes |
---|
3164 | #endif |
---|
3165 | |
---|
3166 | EOF |
---|
3167 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3168 | egrep "yes" >/dev/null 2>&1; then |
---|
3169 | rm -rf conftest* |
---|
3170 | ac_cv_is_aix=yes |
---|
3171 | else |
---|
3172 | rm -rf conftest* |
---|
3173 | ac_cv_is_aix=no |
---|
3174 | fi |
---|
3175 | rm -f conftest* |
---|
3176 | |
---|
3177 | fi |
---|
3178 | |
---|
3179 | if test "$ac_cv_is_aix" = yes; then |
---|
3180 | echo "$ac_t""yes" 1>&6 |
---|
3181 | else |
---|
3182 | echo "$ac_t""no" 1>&6 |
---|
3183 | fi |
---|
3184 | |
---|
3185 | |
---|
3186 | if test ${GXX} = yes; then |
---|
3187 | if test "$ac_cxxflags_set" = no; then |
---|
3188 | CXXFLAGS="-O3 -w -fomit-frame-pointer" |
---|
3189 | fi |
---|
3190 | CXXTEMPLFLAGS="-fno-implicit-templates" |
---|
3191 | if test "$ac_cv_is_aix" = yes; then |
---|
3192 | CXXNOOPTFLAGS="-w" |
---|
3193 | else |
---|
3194 | CXXNOOPTFLAGS=$CXXFLAGS |
---|
3195 | fi |
---|
3196 | else |
---|
3197 | CXXTEMPFLAGS="" |
---|
3198 | CXXNOOPTFLAGS=$CXXFLAGS |
---|
3199 | fi |
---|
3200 | |
---|
3201 | |
---|
3202 | |
---|
3203 | if test ${GCC} = yes && test "$ac_cflags_set" = no ; then |
---|
3204 | CFLAGS="-O3 -w -fomit-frame-pointer" |
---|
3205 | fi |
---|
3206 | |
---|
3207 | trap '' 1 2 15 |
---|
3208 | cat > confcache <<\EOF |
---|
3209 | # This file is a shell script that caches the results of configure |
---|
3210 | # tests run on this system so they can be shared between configure |
---|
3211 | # scripts and configure runs. It is not useful on other systems. |
---|
3212 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
3213 | # |
---|
3214 | # By default, configure uses ./config.cache as the cache file, |
---|
3215 | # creating it if it does not exist already. You can give configure |
---|
3216 | # the --cache-file=FILE option to use a different cache file; that is |
---|
3217 | # what configure does when it calls configure scripts in |
---|
3218 | # subdirectories, so they share the cache. |
---|
3219 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
3220 | # config.status only pays attention to the cache file if you give it the |
---|
3221 | # --recheck option to rerun configure. |
---|
3222 | # |
---|
3223 | EOF |
---|
3224 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
3225 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
3226 | (set) 2>&1 | |
---|
3227 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ |
---|
3228 | >> confcache |
---|
3229 | if cmp -s $cache_file confcache; then |
---|
3230 | : |
---|
3231 | else |
---|
3232 | if test -w $cache_file; then |
---|
3233 | echo "updating cache $cache_file" |
---|
3234 | cat confcache > $cache_file |
---|
3235 | else |
---|
3236 | echo "not updating unwritable cache $cache_file" |
---|
3237 | fi |
---|
3238 | fi |
---|
3239 | rm -f confcache |
---|
3240 | |
---|
3241 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
3242 | |
---|
3243 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
3244 | # Let make expand exec_prefix. |
---|
3245 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
3246 | |
---|
3247 | # Any assignment to VPATH causes Sun make to only execute |
---|
3248 | # the first set of double-colon rules, so remove it if not needed. |
---|
3249 | # If there is a colon in the path, we need to keep it. |
---|
3250 | if test "x$srcdir" = x.; then |
---|
3251 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
3252 | fi |
---|
3253 | |
---|
3254 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
3255 | |
---|
3256 | DEFS=-DHAVE_CONFIG_H |
---|
3257 | |
---|
3258 | # Without the "./", some shells look in PATH for config.status. |
---|
3259 | : ${CONFIG_STATUS=./config.status} |
---|
3260 | |
---|
3261 | echo creating $CONFIG_STATUS |
---|
3262 | rm -f $CONFIG_STATUS |
---|
3263 | cat > $CONFIG_STATUS <<EOF |
---|
3264 | #! /bin/sh |
---|
3265 | # Generated automatically by configure. |
---|
3266 | # Run this file to recreate the current configuration. |
---|
3267 | # This directory was configured as follows, |
---|
3268 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
3269 | # |
---|
3270 | # $0 $ac_configure_args |
---|
3271 | # |
---|
3272 | # Compiler output produced by configure, useful for debugging |
---|
3273 | # configure, is in ./config.log if it exists. |
---|
3274 | |
---|
3275 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
3276 | for ac_option |
---|
3277 | do |
---|
3278 | case "\$ac_option" in |
---|
3279 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
3280 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
3281 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
3282 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
3283 | echo "$CONFIG_STATUS generated by autoconf version 2.9" |
---|
3284 | exit 0 ;; |
---|
3285 | -help | --help | --hel | --he | --h) |
---|
3286 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
3287 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
3288 | esac |
---|
3289 | done |
---|
3290 | |
---|
3291 | ac_given_srcdir=$srcdir |
---|
3292 | |
---|
3293 | trap 'rm -fr `echo "Makefile doc/Makefile mod2.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
3294 | EOF |
---|
3295 | cat >> $CONFIG_STATUS <<EOF |
---|
3296 | |
---|
3297 | # Protect against being on the right side of a sed subst in config.status. |
---|
3298 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
3299 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
3300 | $ac_vpsub |
---|
3301 | $extrasub |
---|
3302 | s%@CFLAGS@%$CFLAGS%g |
---|
3303 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
3304 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
3305 | s%@DEFS@%$DEFS%g |
---|
3306 | s%@LDFLAGS@%$LDFLAGS%g |
---|
3307 | s%@LIBS@%$LIBS%g |
---|
3308 | s%@exec_prefix@%$exec_prefix%g |
---|
3309 | s%@prefix@%$prefix%g |
---|
3310 | s%@program_transform_name@%$program_transform_name%g |
---|
3311 | s%@bindir@%$bindir%g |
---|
3312 | s%@sbindir@%$sbindir%g |
---|
3313 | s%@libexecdir@%$libexecdir%g |
---|
3314 | s%@datadir@%$datadir%g |
---|
3315 | s%@sysconfdir@%$sysconfdir%g |
---|
3316 | s%@sharedstatedir@%$sharedstatedir%g |
---|
3317 | s%@localstatedir@%$localstatedir%g |
---|
3318 | s%@libdir@%$libdir%g |
---|
3319 | s%@includedir@%$includedir%g |
---|
3320 | s%@oldincludedir@%$oldincludedir%g |
---|
3321 | s%@infodir@%$infodir%g |
---|
3322 | s%@mandir@%$mandir%g |
---|
3323 | s%@SINGULAR_MAJOR_VERSION@%$SINGULAR_MAJOR_VERSION%g |
---|
3324 | s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g |
---|
3325 | s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g |
---|
3326 | s%@singulardatadir@%$singulardatadir%g |
---|
3327 | s%@CC@%$CC%g |
---|
3328 | s%@CPP@%$CPP%g |
---|
3329 | s%@CXX@%$CXX%g |
---|
3330 | s%@SET_MAKE@%$SET_MAKE%g |
---|
3331 | s%@INFO@%$INFO%g |
---|
3332 | s%@WITH_MP@%$WITH_MP%g |
---|
3333 | s%@WITH_FACTORY@%$WITH_FACTORY%g |
---|
3334 | s%@WITH_LIBFAC@%$WITH_LIBFAC%g |
---|
3335 | s%@NEED_LIBS@%$NEED_LIBS%g |
---|
3336 | s%@ALLOCA@%$ALLOCA%g |
---|
3337 | s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g |
---|
3338 | s%@CXXNOOPTFLAGS@%$CXXNOOPTFLAGS%g |
---|
3339 | |
---|
3340 | CEOF |
---|
3341 | EOF |
---|
3342 | cat >> $CONFIG_STATUS <<EOF |
---|
3343 | |
---|
3344 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile"} |
---|
3345 | EOF |
---|
3346 | cat >> $CONFIG_STATUS <<\EOF |
---|
3347 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
3348 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
---|
3349 | case "$ac_file" in |
---|
3350 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
---|
3351 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
3352 | *) ac_file_in="${ac_file}.in" ;; |
---|
3353 | esac |
---|
3354 | |
---|
3355 | # Adjust relative srcdir, etc. for subdirectories. |
---|
3356 | |
---|
3357 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
3358 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
3359 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
3360 | # The file is in a subdirectory. |
---|
3361 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
3362 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
3363 | # A "../" for each directory in $ac_dir_suffix. |
---|
3364 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
3365 | else |
---|
3366 | ac_dir_suffix= ac_dots= |
---|
3367 | fi |
---|
3368 | |
---|
3369 | case "$ac_given_srcdir" in |
---|
3370 | .) srcdir=. |
---|
3371 | if test -z "$ac_dots"; then top_srcdir=. |
---|
3372 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
3373 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
3374 | *) # Relative path. |
---|
3375 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
3376 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
3377 | esac |
---|
3378 | |
---|
3379 | echo creating "$ac_file" |
---|
3380 | rm -f "$ac_file" |
---|
3381 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
3382 | case "$ac_file" in |
---|
3383 | *Makefile*) ac_comsub="1i\\ |
---|
3384 | # $configure_input" ;; |
---|
3385 | *) ac_comsub= ;; |
---|
3386 | esac |
---|
3387 | sed -e "$ac_comsub |
---|
3388 | s%@configure_input@%$configure_input%g |
---|
3389 | s%@srcdir@%$srcdir%g |
---|
3390 | s%@top_srcdir@%$top_srcdir%g |
---|
3391 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file |
---|
3392 | fi; done |
---|
3393 | rm -f conftest.subs |
---|
3394 | |
---|
3395 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
3396 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
3397 | # |
---|
3398 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
3399 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
3400 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
3401 | ac_dC='\3' |
---|
3402 | ac_dD='%g' |
---|
3403 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
3404 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
3405 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
3406 | ac_uC=' ' |
---|
3407 | ac_uD='\4%g' |
---|
3408 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
3409 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
3410 | ac_eB='$%\1#\2define\3' |
---|
3411 | ac_eC=' ' |
---|
3412 | ac_eD='%g' |
---|
3413 | |
---|
3414 | CONFIG_HEADERS=${CONFIG_HEADERS-"mod2.h"} |
---|
3415 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
3416 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
---|
3417 | case "$ac_file" in |
---|
3418 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
---|
3419 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
3420 | *) ac_file_in="${ac_file}.in" ;; |
---|
3421 | esac |
---|
3422 | |
---|
3423 | echo creating $ac_file |
---|
3424 | |
---|
3425 | rm -f conftest.frag conftest.in conftest.out |
---|
3426 | cp $ac_given_srcdir/$ac_file_in conftest.in |
---|
3427 | |
---|
3428 | EOF |
---|
3429 | |
---|
3430 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
3431 | # the proper values into config.h.in to produce config.h. And first: |
---|
3432 | # Protect against being on the right side of a sed subst in config.status. |
---|
3433 | # Protect against being in an unquoted here document in config.status. |
---|
3434 | rm -f conftest.vals |
---|
3435 | cat > conftest.hdr <<\EOF |
---|
3436 | s/[\\&%]/\\&/g |
---|
3437 | s%[\\$`]%\\&%g |
---|
3438 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
3439 | s%ac_d%ac_u%gp |
---|
3440 | s%ac_u%ac_e%gp |
---|
3441 | EOF |
---|
3442 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
3443 | rm -f conftest.hdr |
---|
3444 | |
---|
3445 | # This sed command replaces #undef with comments. This is necessary, for |
---|
3446 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
3447 | # on some systems where configure will not decide to define it. |
---|
3448 | cat >> conftest.vals <<\EOF |
---|
3449 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
3450 | EOF |
---|
3451 | |
---|
3452 | # Break up conftest.vals because some shells have a limit on |
---|
3453 | # the size of here documents, and old seds have small limits too. |
---|
3454 | # Maximum number of lines to put in a single here document. |
---|
3455 | ac_max_here_lines=12 |
---|
3456 | |
---|
3457 | rm -f conftest.tail |
---|
3458 | while : |
---|
3459 | do |
---|
3460 | ac_lines=`grep -c . conftest.vals` |
---|
3461 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
3462 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
3463 | # Write a limited-size here document to conftest.frag. |
---|
3464 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
3465 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
3466 | echo 'CEOF |
---|
3467 | sed -f conftest.frag conftest.in > conftest.out |
---|
3468 | rm -f conftest.in |
---|
3469 | mv conftest.out conftest.in |
---|
3470 | ' >> $CONFIG_STATUS |
---|
3471 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
3472 | rm -f conftest.vals |
---|
3473 | mv conftest.tail conftest.vals |
---|
3474 | done |
---|
3475 | rm -f conftest.vals |
---|
3476 | |
---|
3477 | cat >> $CONFIG_STATUS <<\EOF |
---|
3478 | rm -f conftest.frag conftest.h |
---|
3479 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
3480 | cat conftest.in >> conftest.h |
---|
3481 | rm -f conftest.in |
---|
3482 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
3483 | echo "$ac_file is unchanged" |
---|
3484 | rm -f conftest.h |
---|
3485 | else |
---|
3486 | rm -f $ac_file |
---|
3487 | mv conftest.h $ac_file |
---|
3488 | fi |
---|
3489 | fi; done |
---|
3490 | |
---|
3491 | |
---|
3492 | \ |
---|
3493 | if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi |
---|
3494 | exit 0 |
---|
3495 | EOF |
---|
3496 | chmod +x $CONFIG_STATUS |
---|
3497 | rm -fr confdefs* $ac_clean_files |
---|
3498 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
3499 | |
---|