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