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