]>
Commit | Line | Data |
---|---|---|
705db0b5 | 1 | #! /bin/sh |
705db0b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
6fc74234 | 3 | # Generated by Autoconf 2.52c for bison 1.28c. |
1e24cc5b AD |
4 | # |
5 | # Report bugs to <bug-bison@gnu.org>. | |
705db0b5 | 6 | # |
5141b016 | 7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
18569462 | 8 | # Free Software Foundation, Inc. |
705db0b5 AD |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ||
459dd1a6 AD |
12 | # Avoid depending upon Character Ranges. |
13 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16 | as_cr_digits='0123456789' | |
17 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18 | ||
19 | # Sed expression to map a string onto a valid variable name. | |
20 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
21 | ||
22 | # Sed expression to map a string onto a valid CPP name. | |
23 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
24 | ||
6fc74234 AD |
25 | ## --------------------- ## |
26 | ## M4sh Initialization. ## | |
27 | ## --------------------- ## | |
28 | ||
18569462 AD |
29 | # Be Bourne compatible |
30 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
31 | emulate sh | |
32 | NULLCMD=: | |
33 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
34 | set -o posix | |
35 | fi | |
36 | ||
1e24cc5b AD |
37 | # Name of the executable. |
38 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
39 | ||
18569462 AD |
40 | if expr a : '\(a\)' >/dev/null 2>&1; then |
41 | as_expr=expr | |
42 | else | |
43 | as_expr=false | |
44 | fi | |
45 | ||
5141b016 AD |
46 | rm -f conf$$ conf$$.exe conf$$.file |
47 | echo >conf$$.file | |
48 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18569462 AD |
49 | # We could just check for DJGPP; but this test a) works b) is more generic |
50 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
5141b016 | 51 | if test -f conf$$.exe; then |
18569462 AD |
52 | # Don't use ln at all; we don't have any links |
53 | as_ln_s='cp -p' | |
54 | else | |
55 | as_ln_s='ln -s' | |
56 | fi | |
5141b016 | 57 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18569462 AD |
58 | as_ln_s=ln |
59 | else | |
60 | as_ln_s='cp -p' | |
61 | fi | |
5141b016 | 62 | rm -f conf$$ conf$$.exe conf$$.file |
18569462 | 63 | |
5141b016 | 64 | as_executable_p="test -f" |
18569462 AD |
65 | |
66 | # Support unset when possible. | |
67 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
68 | as_unset=unset | |
69 | else | |
70 | as_unset=false | |
71 | fi | |
72 | ||
73 | # NLS nuisances. | |
74 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
75 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
76 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
77 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
78 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
79 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
80 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
81 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
82 | ||
83 | # IFS | |
84 | # We need space, tab and new line, in precisely that order. | |
85 | as_nl=' | |
86 | ' | |
87 | IFS=" $as_nl" | |
88 | ||
89 | # CDPATH. | |
90 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
91 | ||
92 | # Name of the host. | |
93 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
94 | # so uname gets run too. | |
95 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
96 | ||
18569462 AD |
97 | exec 6>&1 |
98 | ||
99 | # | |
100 | # Initializations. | |
101 | # | |
705db0b5 | 102 | ac_default_prefix=/usr/local |
18569462 AD |
103 | cross_compiling=no |
104 | subdirs= | |
105 | MFLAGS= MAKEFLAGS= | |
106 | SHELL=${CONFIG_SHELL-/bin/sh} | |
107 | ||
108 | # Maximum number of lines to put in a shell here document. | |
109 | # This variable seems obsolete. It should probably be removed, and | |
110 | # only ac_max_sed_lines should be used. | |
111 | : ${ac_max_here_lines=38} | |
112 | ||
18569462 AD |
113 | # Factoring default headers for most tests. |
114 | ac_includes_default="\ | |
115 | #include <stdio.h> | |
459dd1a6 AD |
116 | #if HAVE_SYS_TYPES_H |
117 | # include <sys/types.h> | |
118 | #endif | |
119 | #if HAVE_SYS_STAT_H | |
120 | # include <sys/stat.h> | |
121 | #endif | |
18569462 AD |
122 | #if STDC_HEADERS |
123 | # include <stdlib.h> | |
124 | # include <stddef.h> | |
125 | #else | |
126 | # if HAVE_STDLIB_H | |
127 | # include <stdlib.h> | |
128 | # endif | |
129 | #endif | |
130 | #if HAVE_STRING_H | |
131 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
132 | # include <memory.h> | |
133 | # endif | |
134 | # include <string.h> | |
459dd1a6 AD |
135 | #endif |
136 | #if HAVE_STRINGS_H | |
137 | # include <strings.h> | |
18569462 AD |
138 | #endif |
139 | #if HAVE_INTTYPES_H | |
140 | # include <inttypes.h> | |
459dd1a6 AD |
141 | #else |
142 | # if HAVE_STDINT_H | |
143 | # include <stdint.h> | |
144 | # endif | |
18569462 AD |
145 | #endif |
146 | #if HAVE_UNISTD_H | |
147 | # include <unistd.h> | |
148 | #endif" | |
705db0b5 AD |
149 | |
150 | # Initialize some variables set by options. | |
18569462 AD |
151 | ac_init_help= |
152 | ac_init_version=false | |
705db0b5 AD |
153 | # The variables have the same names as the options, with |
154 | # dashes changed to underlines. | |
18569462 | 155 | cache_file=/dev/null |
705db0b5 | 156 | exec_prefix=NONE |
705db0b5 | 157 | no_create= |
705db0b5 AD |
158 | no_recursion= |
159 | prefix=NONE | |
160 | program_prefix=NONE | |
161 | program_suffix=NONE | |
162 | program_transform_name=s,x,x, | |
163 | silent= | |
164 | site= | |
165 | srcdir= | |
705db0b5 AD |
166 | verbose= |
167 | x_includes=NONE | |
168 | x_libraries=NONE | |
18569462 AD |
169 | |
170 | # Installation directory options. | |
171 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
172 | # and all the variables that are supposed to be based on exec_prefix | |
173 | # by default will actually change. | |
174 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
705db0b5 AD |
175 | bindir='${exec_prefix}/bin' |
176 | sbindir='${exec_prefix}/sbin' | |
177 | libexecdir='${exec_prefix}/libexec' | |
178 | datadir='${prefix}/share' | |
179 | sysconfdir='${prefix}/etc' | |
180 | sharedstatedir='${prefix}/com' | |
181 | localstatedir='${prefix}/var' | |
182 | libdir='${exec_prefix}/lib' | |
183 | includedir='${prefix}/include' | |
184 | oldincludedir='/usr/include' | |
185 | infodir='${prefix}/info' | |
186 | mandir='${prefix}/man' | |
187 | ||
18569462 | 188 | # Identity of this package. |
1e24cc5b AD |
189 | PACKAGE_NAME='bison' |
190 | PACKAGE_TARNAME='bison' | |
84163231 AD |
191 | PACKAGE_VERSION='1.28c' |
192 | PACKAGE_STRING='bison 1.28c' | |
1e24cc5b | 193 | PACKAGE_BUGREPORT='bug-bison@gnu.org' |
705db0b5 AD |
194 | |
195 | ac_prev= | |
196 | for ac_option | |
197 | do | |
705db0b5 AD |
198 | # If the previous option needs an argument, assign it. |
199 | if test -n "$ac_prev"; then | |
200 | eval "$ac_prev=\$ac_option" | |
201 | ac_prev= | |
202 | continue | |
203 | fi | |
204 | ||
18569462 | 205 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
705db0b5 AD |
206 | |
207 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
208 | ||
18569462 | 209 | case $ac_option in |
705db0b5 AD |
210 | |
211 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
212 | ac_prev=bindir ;; | |
213 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
18569462 | 214 | bindir=$ac_optarg ;; |
705db0b5 AD |
215 | |
216 | -build | --build | --buil | --bui | --bu) | |
18569462 | 217 | ac_prev=build_alias ;; |
705db0b5 | 218 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
18569462 | 219 | build_alias=$ac_optarg ;; |
705db0b5 AD |
220 | |
221 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
222 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
223 | ac_prev=cache_file ;; | |
224 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
225 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
18569462 AD |
226 | cache_file=$ac_optarg ;; |
227 | ||
228 | --config-cache | -C) | |
229 | cache_file=config.cache ;; | |
705db0b5 AD |
230 | |
231 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
232 | ac_prev=datadir ;; | |
233 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
234 | | --da=*) | |
18569462 | 235 | datadir=$ac_optarg ;; |
705db0b5 AD |
236 | |
237 | -disable-* | --disable-*) | |
18569462 | 238 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
705db0b5 | 239 | # Reject names that are not valid shell variable names. |
459dd1a6 | 240 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1e24cc5b | 241 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
18569462 AD |
242 | { (exit 1); exit 1; }; } |
243 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
244 | eval "enable_$ac_feature=no" ;; | |
705db0b5 AD |
245 | |
246 | -enable-* | --enable-*) | |
18569462 | 247 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
705db0b5 | 248 | # Reject names that are not valid shell variable names. |
459dd1a6 | 249 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1e24cc5b | 250 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
18569462 AD |
251 | { (exit 1); exit 1; }; } |
252 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
253 | case $ac_option in | |
254 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
705db0b5 AD |
255 | *) ac_optarg=yes ;; |
256 | esac | |
18569462 | 257 | eval "enable_$ac_feature='$ac_optarg'" ;; |
705db0b5 AD |
258 | |
259 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
260 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
261 | | --exec | --exe | --ex) | |
262 | ac_prev=exec_prefix ;; | |
263 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
264 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
265 | | --exec=* | --exe=* | --ex=*) | |
18569462 | 266 | exec_prefix=$ac_optarg ;; |
705db0b5 AD |
267 | |
268 | -gas | --gas | --ga | --g) | |
269 | # Obsolete; use --with-gas. | |
270 | with_gas=yes ;; | |
271 | ||
18569462 AD |
272 | -help | --help | --hel | --he | -h) |
273 | ac_init_help=long ;; | |
274 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
275 | ac_init_help=recursive ;; | |
276 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
277 | ac_init_help=short ;; | |
705db0b5 AD |
278 | |
279 | -host | --host | --hos | --ho) | |
18569462 | 280 | ac_prev=host_alias ;; |
705db0b5 | 281 | -host=* | --host=* | --hos=* | --ho=*) |
18569462 | 282 | host_alias=$ac_optarg ;; |
705db0b5 AD |
283 | |
284 | -includedir | --includedir | --includedi | --included | --include \ | |
285 | | --includ | --inclu | --incl | --inc) | |
286 | ac_prev=includedir ;; | |
287 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
288 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
18569462 | 289 | includedir=$ac_optarg ;; |
705db0b5 AD |
290 | |
291 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
292 | ac_prev=infodir ;; | |
293 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
18569462 | 294 | infodir=$ac_optarg ;; |
705db0b5 AD |
295 | |
296 | -libdir | --libdir | --libdi | --libd) | |
297 | ac_prev=libdir ;; | |
298 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
18569462 | 299 | libdir=$ac_optarg ;; |
705db0b5 AD |
300 | |
301 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
302 | | --libexe | --libex | --libe) | |
303 | ac_prev=libexecdir ;; | |
304 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
305 | | --libexe=* | --libex=* | --libe=*) | |
18569462 | 306 | libexecdir=$ac_optarg ;; |
705db0b5 AD |
307 | |
308 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
309 | | --localstate | --localstat | --localsta | --localst \ | |
310 | | --locals | --local | --loca | --loc | --lo) | |
311 | ac_prev=localstatedir ;; | |
312 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
313 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
314 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
18569462 | 315 | localstatedir=$ac_optarg ;; |
705db0b5 AD |
316 | |
317 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
318 | ac_prev=mandir ;; | |
319 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
18569462 | 320 | mandir=$ac_optarg ;; |
705db0b5 AD |
321 | |
322 | -nfp | --nfp | --nf) | |
323 | # Obsolete; use --without-fp. | |
324 | with_fp=no ;; | |
325 | ||
326 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
327 | | --no-cr | --no-c) | |
328 | no_create=yes ;; | |
329 | ||
330 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
331 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
332 | no_recursion=yes ;; | |
333 | ||
334 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
335 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
336 | | --oldin | --oldi | --old | --ol | --o) | |
337 | ac_prev=oldincludedir ;; | |
338 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
339 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
340 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
18569462 | 341 | oldincludedir=$ac_optarg ;; |
705db0b5 AD |
342 | |
343 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
344 | ac_prev=prefix ;; | |
345 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
18569462 | 346 | prefix=$ac_optarg ;; |
705db0b5 AD |
347 | |
348 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
349 | | --program-pre | --program-pr | --program-p) | |
350 | ac_prev=program_prefix ;; | |
351 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
352 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
18569462 | 353 | program_prefix=$ac_optarg ;; |
705db0b5 AD |
354 | |
355 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
356 | | --program-suf | --program-su | --program-s) | |
357 | ac_prev=program_suffix ;; | |
358 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
359 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
18569462 | 360 | program_suffix=$ac_optarg ;; |
705db0b5 AD |
361 | |
362 | -program-transform-name | --program-transform-name \ | |
363 | | --program-transform-nam | --program-transform-na \ | |
364 | | --program-transform-n | --program-transform- \ | |
365 | | --program-transform | --program-transfor \ | |
366 | | --program-transfo | --program-transf \ | |
367 | | --program-trans | --program-tran \ | |
368 | | --progr-tra | --program-tr | --program-t) | |
369 | ac_prev=program_transform_name ;; | |
370 | -program-transform-name=* | --program-transform-name=* \ | |
371 | | --program-transform-nam=* | --program-transform-na=* \ | |
372 | | --program-transform-n=* | --program-transform-=* \ | |
373 | | --program-transform=* | --program-transfor=* \ | |
374 | | --program-transfo=* | --program-transf=* \ | |
375 | | --program-trans=* | --program-tran=* \ | |
376 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
18569462 | 377 | program_transform_name=$ac_optarg ;; |
705db0b5 AD |
378 | |
379 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
380 | | -silent | --silent | --silen | --sile | --sil) | |
381 | silent=yes ;; | |
382 | ||
383 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
384 | ac_prev=sbindir ;; | |
385 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
386 | | --sbi=* | --sb=*) | |
18569462 | 387 | sbindir=$ac_optarg ;; |
705db0b5 AD |
388 | |
389 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
390 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
391 | | --sharedst | --shareds | --shared | --share | --shar \ | |
392 | | --sha | --sh) | |
393 | ac_prev=sharedstatedir ;; | |
394 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
395 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
396 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
397 | | --sha=* | --sh=*) | |
18569462 | 398 | sharedstatedir=$ac_optarg ;; |
705db0b5 AD |
399 | |
400 | -site | --site | --sit) | |
401 | ac_prev=site ;; | |
402 | -site=* | --site=* | --sit=*) | |
18569462 | 403 | site=$ac_optarg ;; |
705db0b5 AD |
404 | |
405 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
406 | ac_prev=srcdir ;; | |
407 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18569462 | 408 | srcdir=$ac_optarg ;; |
705db0b5 AD |
409 | |
410 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
411 | | --syscon | --sysco | --sysc | --sys | --sy) | |
412 | ac_prev=sysconfdir ;; | |
413 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
414 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
18569462 | 415 | sysconfdir=$ac_optarg ;; |
705db0b5 AD |
416 | |
417 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
18569462 | 418 | ac_prev=target_alias ;; |
705db0b5 | 419 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
18569462 | 420 | target_alias=$ac_optarg ;; |
705db0b5 AD |
421 | |
422 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
423 | verbose=yes ;; | |
424 | ||
18569462 AD |
425 | -version | --version | --versio | --versi | --vers | -V) |
426 | ac_init_version=: ;; | |
705db0b5 AD |
427 | |
428 | -with-* | --with-*) | |
18569462 | 429 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
705db0b5 | 430 | # Reject names that are not valid shell variable names. |
459dd1a6 | 431 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1e24cc5b | 432 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
18569462 | 433 | { (exit 1); exit 1; }; } |
705db0b5 | 434 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
18569462 AD |
435 | case $ac_option in |
436 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
705db0b5 AD |
437 | *) ac_optarg=yes ;; |
438 | esac | |
18569462 | 439 | eval "with_$ac_package='$ac_optarg'" ;; |
705db0b5 AD |
440 | |
441 | -without-* | --without-*) | |
18569462 | 442 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
705db0b5 | 443 | # Reject names that are not valid shell variable names. |
459dd1a6 | 444 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1e24cc5b | 445 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
18569462 AD |
446 | { (exit 1); exit 1; }; } |
447 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
448 | eval "with_$ac_package=no" ;; | |
705db0b5 AD |
449 | |
450 | --x) | |
451 | # Obsolete; use --with-x. | |
452 | with_x=yes ;; | |
453 | ||
454 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
455 | | --x-incl | --x-inc | --x-in | --x-i) | |
456 | ac_prev=x_includes ;; | |
457 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
458 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
18569462 | 459 | x_includes=$ac_optarg ;; |
705db0b5 AD |
460 | |
461 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
462 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
463 | ac_prev=x_libraries ;; | |
464 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
465 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
18569462 | 466 | x_libraries=$ac_optarg ;; |
705db0b5 | 467 | |
1e24cc5b AD |
468 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
469 | Try \`$0 --help' for more information." >&2 | |
18569462 | 470 | { (exit 1); exit 1; }; } |
705db0b5 AD |
471 | ;; |
472 | ||
18569462 AD |
473 | *=*) |
474 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
475 | # Reject names that are not valid shell variable names. | |
459dd1a6 | 476 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1e24cc5b | 477 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
18569462 AD |
478 | { (exit 1); exit 1; }; } |
479 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
480 | eval "$ac_envvar='$ac_optarg'" | |
481 | export $ac_envvar ;; | |
482 | ||
705db0b5 | 483 | *) |
18569462 | 484 | # FIXME: should be removed in autoconf 3.0. |
1e24cc5b | 485 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
459dd1a6 | 486 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1e24cc5b | 487 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
18569462 | 488 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
705db0b5 AD |
489 | ;; |
490 | ||
491 | esac | |
492 | done | |
493 | ||
494 | if test -n "$ac_prev"; then | |
18569462 | 495 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1e24cc5b | 496 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
18569462 | 497 | { (exit 1); exit 1; }; } |
705db0b5 | 498 | fi |
705db0b5 | 499 | |
459dd1a6 AD |
500 | # Be sure to have absolute paths. |
501 | for ac_var in exec_prefix prefix | |
502 | do | |
503 | eval ac_val=$`echo $ac_var` | |
504 | case $ac_val in | |
505 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
506 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
507 | { (exit 1); exit 1; }; };; | |
508 | esac | |
509 | done | |
510 | ||
18569462 AD |
511 | # Be sure to have absolute paths. |
512 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
459dd1a6 | 513 | localstatedir libdir includedir oldincludedir infodir mandir |
705db0b5 | 514 | do |
18569462 AD |
515 | eval ac_val=$`echo $ac_var` |
516 | case $ac_val in | |
517 | [\\/$]* | ?:[\\/]* ) ;; | |
1e24cc5b | 518 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
18569462 | 519 | { (exit 1); exit 1; }; };; |
705db0b5 AD |
520 | esac |
521 | done | |
522 | ||
18569462 AD |
523 | # There might be people who depend on the old broken behavior: `$host' |
524 | # used to hold the argument of --host etc. | |
525 | build=$build_alias | |
526 | host=$host_alias | |
527 | target=$target_alias | |
528 | ||
529 | # FIXME: should be removed in autoconf 3.0. | |
530 | if test "x$host_alias" != x; then | |
531 | if test "x$build_alias" = x; then | |
532 | cross_compiling=maybe | |
1e24cc5b AD |
533 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
534 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
18569462 AD |
535 | elif test "x$build_alias" != "x$host_alias"; then |
536 | cross_compiling=yes | |
537 | fi | |
538 | fi | |
705db0b5 | 539 | |
18569462 AD |
540 | ac_tool_prefix= |
541 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705db0b5 | 542 | |
18569462 | 543 | test "$silent" = yes && exec 6>/dev/null |
705db0b5 AD |
544 | |
545 | # Find the source files, if location was not specified. | |
546 | if test -z "$srcdir"; then | |
547 | ac_srcdir_defaulted=yes | |
548 | # Try the directory containing this script, then its parent. | |
549 | ac_prog=$0 | |
1e24cc5b | 550 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
705db0b5 AD |
551 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
552 | srcdir=$ac_confdir | |
553 | if test ! -r $srcdir/$ac_unique_file; then | |
554 | srcdir=.. | |
555 | fi | |
556 | else | |
557 | ac_srcdir_defaulted=no | |
558 | fi | |
559 | if test ! -r $srcdir/$ac_unique_file; then | |
560 | if test "$ac_srcdir_defaulted" = yes; then | |
6fc74234 | 561 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
18569462 | 562 | { (exit 1); exit 1; }; } |
705db0b5 | 563 | else |
6fc74234 | 564 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
18569462 | 565 | { (exit 1); exit 1; }; } |
705db0b5 AD |
566 | fi |
567 | fi | |
1e24cc5b | 568 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
18569462 AD |
569 | ac_env_build_alias_set=${build_alias+set} |
570 | ac_env_build_alias_value=$build_alias | |
571 | ac_cv_env_build_alias_set=${build_alias+set} | |
572 | ac_cv_env_build_alias_value=$build_alias | |
573 | ac_env_host_alias_set=${host_alias+set} | |
574 | ac_env_host_alias_value=$host_alias | |
575 | ac_cv_env_host_alias_set=${host_alias+set} | |
576 | ac_cv_env_host_alias_value=$host_alias | |
577 | ac_env_target_alias_set=${target_alias+set} | |
578 | ac_env_target_alias_value=$target_alias | |
579 | ac_cv_env_target_alias_set=${target_alias+set} | |
580 | ac_cv_env_target_alias_value=$target_alias | |
581 | ac_env_CC_set=${CC+set} | |
582 | ac_env_CC_value=$CC | |
583 | ac_cv_env_CC_set=${CC+set} | |
584 | ac_cv_env_CC_value=$CC | |
585 | ac_env_CFLAGS_set=${CFLAGS+set} | |
586 | ac_env_CFLAGS_value=$CFLAGS | |
587 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
588 | ac_cv_env_CFLAGS_value=$CFLAGS | |
589 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
590 | ac_env_LDFLAGS_value=$LDFLAGS | |
591 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
592 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
18569462 AD |
593 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
594 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
595 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
596 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
1e24cc5b AD |
597 | ac_env_CPP_set=${CPP+set} |
598 | ac_env_CPP_value=$CPP | |
599 | ac_cv_env_CPP_set=${CPP+set} | |
600 | ac_cv_env_CPP_value=$CPP | |
18569462 AD |
601 | |
602 | # | |
603 | # Report the --help message. | |
604 | # | |
605 | if test "$ac_init_help" = "long"; then | |
606 | # Omit some internal or obsolete options to make the list less imposing. | |
607 | # This message is too long to be a string in the A/UX 3.1 sh. | |
6fc74234 | 608 | cat <<_ACEOF |
84163231 | 609 | \`configure' configures bison 1.28c to adapt to many kinds of systems. |
18569462 AD |
610 | |
611 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
612 | ||
613 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
614 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
615 | ||
616 | Defaults for the options are specified in brackets. | |
617 | ||
618 | Configuration: | |
619 | -h, --help display this help and exit | |
620 | --help=short display options specific to this package | |
621 | --help=recursive display the short help of all the included packages | |
622 | -V, --version display version information and exit | |
623 | -q, --quiet, --silent do not print \`checking...' messages | |
624 | --cache-file=FILE cache test results in FILE [disabled] | |
625 | -C, --config-cache alias for \`--cache-file=config.cache' | |
626 | -n, --no-create do not create output files | |
627 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
628 | ||
6fc74234 | 629 | _ACEOF |
18569462 | 630 | |
6fc74234 | 631 | cat <<_ACEOF |
18569462 AD |
632 | Installation directories: |
633 | --prefix=PREFIX install architecture-independent files in PREFIX | |
634 | [$ac_default_prefix] | |
635 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
636 | [PREFIX] | |
637 | ||
638 | By default, \`make install' will install all the files in | |
639 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
640 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
641 | for instance \`--prefix=\$HOME'. | |
642 | ||
643 | For better control, use the options below. | |
644 | ||
645 | Fine tuning of the installation directories: | |
646 | --bindir=DIR user executables [EPREFIX/bin] | |
647 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
648 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
649 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
650 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
651 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
652 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
653 | --libdir=DIR object code libraries [EPREFIX/lib] | |
654 | --includedir=DIR C header files [PREFIX/include] | |
655 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
656 | --infodir=DIR info documentation [PREFIX/info] | |
657 | --mandir=DIR man documentation [PREFIX/man] | |
6fc74234 | 658 | _ACEOF |
18569462 | 659 | |
6fc74234 | 660 | cat <<\_ACEOF |
18569462 AD |
661 | |
662 | Program names: | |
663 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
664 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
665 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1e24cc5b AD |
666 | |
667 | System types: | |
668 | --build=BUILD configure for building on BUILD [guessed] | |
669 | --host=HOST build programs to run on HOST [BUILD] | |
6fc74234 | 670 | _ACEOF |
18569462 AD |
671 | fi |
672 | ||
673 | if test -n "$ac_init_help"; then | |
1e24cc5b | 674 | case $ac_init_help in |
84163231 | 675 | short | recursive ) echo "Configuration of bison 1.28c:";; |
1e24cc5b | 676 | esac |
6fc74234 | 677 | cat <<\_ACEOF |
18569462 AD |
678 | |
679 | Optional Features: | |
680 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
681 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6fc74234 AD |
682 | --disable-dependency-tracking Speeds up one-time builds |
683 | --enable-dependency-tracking Do not reject slow dependency extractors | |
18569462 AD |
684 | --enable-gcc-warnings turn on lots of GCC warnings (not recommended) |
685 | --disable-nls do not use Native Language Support | |
686 | ||
687 | Optional Packages: | |
688 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
689 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1e24cc5b | 690 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib |
18569462 | 691 | --with-included-gettext use the GNU gettext library included here |
18569462 AD |
692 | |
693 | Some influential environment variables: | |
694 | CC C compiler command | |
695 | CFLAGS C compiler flags | |
696 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
697 | nonstandard directory <lib dir> | |
18569462 AD |
698 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
699 | headers in a nonstandard directory <include dir> | |
1e24cc5b | 700 | CPP C preprocessor |
18569462 AD |
701 | |
702 | Use these variables to override the choices made by `configure' or to help | |
703 | it to find libraries and programs with nonstandard names/locations. | |
704 | ||
1e24cc5b | 705 | Report bugs to <bug-bison@gnu.org>. |
6fc74234 | 706 | _ACEOF |
18569462 AD |
707 | fi |
708 | ||
709 | if test "$ac_init_help" = "recursive"; then | |
710 | # If there are subdirs, report their specific --help. | |
711 | ac_popdir=`pwd` | |
6fc74234 AD |
712 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
713 | cd $ac_dir | |
714 | if test "$ac_dir" != .; then | |
715 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'` | |
716 | # A "../" for each directory in $ac_dir_suffix. | |
717 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | |
718 | else | |
719 | ac_dir_suffix= ac_top_builddir= | |
720 | fi | |
721 | ||
722 | case $srcdir in | |
723 | .) # No --srcdir option. We are building in place. | |
724 | ac_srcdir=. | |
725 | if test -z "$ac_top_builddir"; then | |
726 | ac_top_srcdir=. | |
727 | else | |
728 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
729 | fi ;; | |
730 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
731 | ac_srcdir=$srcdir$ac_dir_suffix; | |
732 | ac_top_srcdir=$srcdir ;; | |
733 | *) # Relative path. | |
734 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
735 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
736 | esac | |
18569462 AD |
737 | |
738 | # Check for guested configure; otherwise get Cygnus style configure. | |
6fc74234 | 739 | if test -f $ac_srcdir/configure.gnu; then |
18569462 | 740 | echo |
6fc74234 AD |
741 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
742 | elif test -f $ac_srcdir/configure; then | |
18569462 | 743 | echo |
6fc74234 AD |
744 | $SHELL $ac_srcdir/configure --help=recursive |
745 | elif test -f $ac_srcdir/configure.ac || | |
746 | test -f $ac_srcdir/configure.in; then | |
18569462 AD |
747 | echo |
748 | $ac_configure --help | |
749 | else | |
6fc74234 | 750 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
18569462 AD |
751 | fi |
752 | cd $ac_popdir | |
753 | done | |
754 | fi | |
755 | ||
756 | test -n "$ac_init_help" && exit 0 | |
757 | if $ac_init_version; then | |
6fc74234 | 758 | cat <<\_ACEOF |
84163231 | 759 | bison configure 1.28c |
6fc74234 | 760 | generated by GNU Autoconf 2.52c |
18569462 | 761 | |
5141b016 | 762 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
18569462 AD |
763 | Free Software Foundation, Inc. |
764 | This configure script is free software; the Free Software Foundation | |
765 | gives unlimited permission to copy, distribute and modify it. | |
6fc74234 | 766 | _ACEOF |
18569462 AD |
767 | exit 0 |
768 | fi | |
1e24cc5b | 769 | exec 5>config.log |
6fc74234 | 770 | cat >&5 <<_ACEOF |
1e24cc5b AD |
771 | This file contains any messages produced by compilers while |
772 | running configure, to aid debugging if configure makes a mistake. | |
773 | ||
84163231 | 774 | It was created by bison $as_me 1.28c, which was |
6fc74234 | 775 | generated by GNU Autoconf 2.52c. Invocation command line was |
1e24cc5b AD |
776 | |
777 | $ $0 $@ | |
778 | ||
6fc74234 | 779 | _ACEOF |
1e24cc5b AD |
780 | { |
781 | cat <<_ASUNAME | |
6fc74234 AD |
782 | ## --------- ## |
783 | ## Platform. ## | |
784 | ## --------- ## | |
1e24cc5b AD |
785 | |
786 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
787 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
788 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
789 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
790 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
791 | ||
792 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
793 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
794 | ||
795 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
796 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
797 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
798 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
799 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
800 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
801 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
802 | ||
803 | PATH = $PATH | |
804 | ||
805 | _ASUNAME | |
806 | } >&5 | |
807 | ||
6fc74234 AD |
808 | cat >&5 <<_ACEOF |
809 | ## ----------- ## | |
810 | ## Core tests. ## | |
811 | ## ----------- ## | |
1e24cc5b | 812 | |
6fc74234 | 813 | _ACEOF |
18569462 AD |
814 | |
815 | # Keep a trace of the command line. | |
816 | # Strip out --no-create and --no-recursion so they do not pile up. | |
817 | # Also quote any args containing shell meta-characters. | |
818 | ac_configure_args= | |
819 | ac_sep= | |
820 | for ac_arg | |
821 | do | |
822 | case $ac_arg in | |
823 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
824 | | --no-cr | --no-c) ;; | |
825 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
826 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
827 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
828 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
829 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
830 | ac_sep=" " ;; | |
831 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
832 | ac_sep=" " ;; | |
833 | esac | |
834 | # Get rid of the leading space. | |
835 | done | |
836 | ||
837 | # When interrupted or exit'd, cleanup temporary files, and complete | |
838 | # config.log. We remove comments because anyway the quotes in there | |
839 | # would cause problems or look ugly. | |
840 | trap 'exit_status=$? | |
841 | # Save into config.log some information that might help in debugging. | |
6fc74234 AD |
842 | { |
843 | echo | |
844 | cat <<\_ASBOX | |
845 | ## ---------------- ## | |
846 | ## Cache variables. ## | |
847 | ## ---------------- ## | |
848 | _ASBOX | |
849 | echo | |
850 | # The following way of writing the cache mishandles newlines in values, | |
18569462 AD |
851 | { |
852 | (set) 2>&1 | | |
853 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
854 | *ac_space=\ *) | |
855 | sed -n \ | |
856 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
459dd1a6 | 857 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
18569462 AD |
858 | ;; |
859 | *) | |
860 | sed -n \ | |
459dd1a6 | 861 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
18569462 AD |
862 | ;; |
863 | esac; | |
6fc74234 AD |
864 | } |
865 | echo | |
866 | if test -s confdefs.h; then | |
867 | cat <<\_ASBOX | |
868 | ## ----------- ## | |
869 | ## confdefs.h. ## | |
870 | ## ----------- ## | |
871 | _ASBOX | |
872 | echo | |
873 | sed '/^$/d' confdefs.h | |
874 | echo | |
875 | fi | |
876 | test "$ac_signal" != 0 && | |
877 | echo "$as_me: caught signal $ac_signal" | |
878 | echo "$as_me: exit $exit_status" | |
879 | } >&5 | |
5141b016 | 880 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && |
18569462 AD |
881 | exit $exit_status |
882 | ' 0 | |
883 | for ac_signal in 1 2 13 15; do | |
459dd1a6 | 884 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
18569462 AD |
885 | done |
886 | ac_signal=0 | |
887 | ||
888 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
889 | rm -rf conftest* confdefs.h | |
890 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
891 | echo >confdefs.h | |
705db0b5 | 892 | |
18569462 | 893 | # Let the site file select an alternate cache file if it wants to. |
705db0b5 AD |
894 | # Prefer explicitly selected file to automatically selected ones. |
895 | if test -z "$CONFIG_SITE"; then | |
896 | if test "x$prefix" != xNONE; then | |
897 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
898 | else | |
899 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
900 | fi | |
901 | fi | |
902 | for ac_site_file in $CONFIG_SITE; do | |
903 | if test -r "$ac_site_file"; then | |
6fc74234 | 904 | { echo "$as_me:904: loading site script $ac_site_file" >&5 |
18569462 | 905 | echo "$as_me: loading site script $ac_site_file" >&6;} |
6fc74234 | 906 | sed 's/^/| /' "$ac_site_file" >&5 |
705db0b5 AD |
907 | . "$ac_site_file" |
908 | fi | |
909 | done | |
910 | ||
911 | if test -r "$cache_file"; then | |
18569462 AD |
912 | # Some versions of bash will fail to source /dev/null (special |
913 | # files actually), so we avoid doing that. | |
914 | if test -f "$cache_file"; then | |
6fc74234 | 915 | { echo "$as_me:915: loading cache $cache_file" >&5 |
18569462 AD |
916 | echo "$as_me: loading cache $cache_file" >&6;} |
917 | case $cache_file in | |
918 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
919 | *) . ./$cache_file;; | |
920 | esac | |
921 | fi | |
705db0b5 | 922 | else |
6fc74234 | 923 | { echo "$as_me:923: creating cache $cache_file" >&5 |
18569462 AD |
924 | echo "$as_me: creating cache $cache_file" >&6;} |
925 | >$cache_file | |
926 | fi | |
927 | ||
928 | # Check that the precious variables saved in the cache have kept the same | |
929 | # value. | |
459dd1a6 | 930 | ac_cache_corrupted=false |
18569462 AD |
931 | for ac_var in `(set) 2>&1 | |
932 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
933 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
934 | eval ac_new_set=\$ac_env_${ac_var}_set | |
935 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
936 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
937 | case $ac_old_set,$ac_new_set in | |
938 | set,) | |
6fc74234 | 939 | { echo "$as_me:939: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
459dd1a6 AD |
940 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
941 | ac_cache_corrupted=: ;; | |
18569462 | 942 | ,set) |
6fc74234 | 943 | { echo "$as_me:943: error: \`$ac_var' was not set in the previous run" >&5 |
459dd1a6 AD |
944 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
945 | ac_cache_corrupted=: ;; | |
18569462 AD |
946 | ,);; |
947 | *) | |
948 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
6fc74234 | 949 | { echo "$as_me:949: error: \`$ac_var' has changed since the previous run:" >&5 |
459dd1a6 | 950 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
6fc74234 | 951 | { echo "$as_me:951: former value: $ac_old_val" >&5 |
459dd1a6 | 952 | echo "$as_me: former value: $ac_old_val" >&2;} |
6fc74234 | 953 | { echo "$as_me:953: current value: $ac_new_val" >&5 |
459dd1a6 AD |
954 | echo "$as_me: current value: $ac_new_val" >&2;} |
955 | ac_cache_corrupted=: | |
18569462 AD |
956 | fi;; |
957 | esac | |
459dd1a6 AD |
958 | # Pass precious variables to config.status. It doesn't matter if |
959 | # we pass some twice (in addition to the command line arguments). | |
960 | if test "$ac_new_set" = set; then | |
961 | case $ac_new_val in | |
962 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
963 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | |
964 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
965 | ;; | |
966 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | |
967 | ;; | |
968 | esac | |
969 | fi | |
18569462 | 970 | done |
459dd1a6 | 971 | if $ac_cache_corrupted; then |
6fc74234 | 972 | { echo "$as_me:972: error: changes in the environment can compromise the build" >&5 |
459dd1a6 | 973 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
6fc74234 | 974 | { { echo "$as_me:974: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
459dd1a6 AD |
975 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
976 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
977 | fi |
978 | ||
979 | ac_ext=c | |
705db0b5 | 980 | ac_cpp='$CPP $CPPFLAGS' |
18569462 AD |
981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
984 | ||
985 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
986 | *c*,-n*) ECHO_N= ECHO_C=' | |
987 | ' ECHO_T=' ' ;; | |
988 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
989 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
990 | esac | |
5141b016 AD |
991 | echo "#! $SHELL" >conftest.sh |
992 | echo "exit 0" >>conftest.sh | |
993 | chmod +x conftest.sh | |
6fc74234 | 994 | if { (echo "$as_me:994: PATH=\".;.\"; conftest.sh") >&5 |
5141b016 AD |
995 | (PATH=".;."; conftest.sh) 2>&5 |
996 | ac_status=$? | |
6fc74234 | 997 | echo "$as_me:997: \$? = $ac_status" >&5 |
5141b016 AD |
998 | (exit $ac_status); }; then |
999 | ac_path_separator=';' | |
1000 | else | |
1001 | ac_path_separator=: | |
1002 | fi | |
1003 | PATH_SEPARATOR="$ac_path_separator" | |
1004 | rm -f conftest.sh | |
705db0b5 AD |
1005 | |
1006 | ac_aux_dir= | |
1e24cc5b | 1007 | for ac_dir in config $srcdir/config; do |
705db0b5 AD |
1008 | if test -f $ac_dir/install-sh; then |
1009 | ac_aux_dir=$ac_dir | |
1010 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1011 | break | |
1012 | elif test -f $ac_dir/install.sh; then | |
1013 | ac_aux_dir=$ac_dir | |
1014 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1015 | break | |
18569462 AD |
1016 | elif test -f $ac_dir/shtool; then |
1017 | ac_aux_dir=$ac_dir | |
1018 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1019 | break | |
705db0b5 AD |
1020 | fi |
1021 | done | |
1022 | if test -z "$ac_aux_dir"; then | |
6fc74234 | 1023 | { { echo "$as_me:1023: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 |
1e24cc5b | 1024 | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} |
18569462 | 1025 | { (exit 1); exit 1; }; } |
705db0b5 | 1026 | fi |
18569462 AD |
1027 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1028 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1029 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
705db0b5 AD |
1030 | |
1031 | # Find a good install program. We prefer a C program (faster), | |
1032 | # so one script is as good as another. But avoid the broken or | |
1033 | # incompatible versions: | |
1034 | # SysV /etc/install, /usr/sbin/install | |
1035 | # SunOS /usr/etc/install | |
1036 | # IRIX /sbin/install | |
1037 | # AIX /bin/install | |
18569462 | 1038 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
705db0b5 AD |
1039 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1040 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1041 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1042 | # ./install, which can be erroneously created by make from ./install.sh. | |
6fc74234 | 1043 | echo "$as_me:1043: checking for a BSD compatible install" >&5 |
18569462 | 1044 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
705db0b5 | 1045 | if test -z "$INSTALL"; then |
18569462 AD |
1046 | if test "${ac_cv_path_install+set}" = set; then |
1047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 1048 | else |
5141b016 | 1049 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
705db0b5 | 1050 | for ac_dir in $PATH; do |
5141b016 | 1051 | IFS=$ac_save_IFS |
705db0b5 | 1052 | # Account for people who put trailing slashes in PATH elements. |
18569462 AD |
1053 | case $ac_dir/ in |
1054 | / | ./ | .// | /cC/* \ | |
1055 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
1056 | | /usr/ucb/* ) ;; | |
705db0b5 AD |
1057 | *) |
1058 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1059 | # Don't use installbsd from OSF since it installs stuff as root | |
1060 | # by default. | |
1061 | for ac_prog in ginstall scoinst install; do | |
5141b016 | 1062 | if $as_executable_p "$ac_dir/$ac_prog"; then |
705db0b5 | 1063 | if test $ac_prog = install && |
18569462 | 1064 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
705db0b5 AD |
1065 | # AIX install. It has an incompatible calling convention. |
1066 | : | |
18569462 AD |
1067 | elif test $ac_prog = install && |
1068 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1069 | # program-specific install script used by HP pwplus--don't use. | |
1070 | : | |
705db0b5 AD |
1071 | else |
1072 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1073 | break 2 | |
1074 | fi | |
1075 | fi | |
1076 | done | |
1077 | ;; | |
1078 | esac | |
1079 | done | |
705db0b5 AD |
1080 | |
1081 | fi | |
1082 | if test "${ac_cv_path_install+set}" = set; then | |
18569462 | 1083 | INSTALL=$ac_cv_path_install |
705db0b5 AD |
1084 | else |
1085 | # As a last resort, use the slow shell script. We don't cache a | |
1086 | # path for INSTALL within a source directory, because that will | |
1087 | # break other packages using the cache if that directory is | |
1088 | # removed, or if the path is relative. | |
18569462 | 1089 | INSTALL=$ac_install_sh |
705db0b5 AD |
1090 | fi |
1091 | fi | |
6fc74234 | 1092 | echo "$as_me:1092: result: $INSTALL" >&5 |
18569462 | 1093 | echo "${ECHO_T}$INSTALL" >&6 |
705db0b5 AD |
1094 | |
1095 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1096 | # It thinks the first close brace ends the variable substitution. | |
1097 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1098 | ||
18569462 | 1099 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
705db0b5 AD |
1100 | |
1101 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1102 | ||
6fc74234 | 1103 | echo "$as_me:1103: checking whether build environment is sane" >&5 |
18569462 | 1104 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
705db0b5 AD |
1105 | # Just in case |
1106 | sleep 1 | |
6fc74234 | 1107 | echo timestamp > conftest.file |
705db0b5 AD |
1108 | # Do `set' in a subshell so we don't clobber the current shell's |
1109 | # arguments. Must try -L first in case configure is actually a | |
1110 | # symlink; some systems play weird games with the mod time of symlinks | |
1111 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1112 | # directory). | |
1113 | if ( | |
6fc74234 | 1114 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
705db0b5 AD |
1115 | if test "$*" = "X"; then |
1116 | # -L didn't work. | |
6fc74234 | 1117 | set X `ls -t $srcdir/configure conftest.file` |
705db0b5 | 1118 | fi |
6fc74234 AD |
1119 | rm -f conftest.file |
1120 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1121 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
705db0b5 AD |
1122 | |
1123 | # If neither matched, then we have a broken ls. This can happen | |
1124 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1125 | # broken ls alias from the environment. This has actually | |
1126 | # happened. Such a system could not be considered "sane". | |
6fc74234 | 1127 | { { echo "$as_me:1127: error: ls -t appears to fail. Make sure there is not a broken |
18569462 AD |
1128 | alias in your environment" >&5 |
1129 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1130 | alias in your environment" >&2;} | |
1131 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
1132 | fi |
1133 | ||
6fc74234 | 1134 | test "$2" = conftest.file |
705db0b5 AD |
1135 | ) |
1136 | then | |
1137 | # Ok. | |
1138 | : | |
1139 | else | |
6fc74234 | 1140 | { { echo "$as_me:1140: error: newly created file is older than distributed files! |
18569462 AD |
1141 | Check your system clock" >&5 |
1142 | echo "$as_me: error: newly created file is older than distributed files! | |
1143 | Check your system clock" >&2;} | |
1144 | { (exit 1); exit 1; }; } | |
705db0b5 | 1145 | fi |
6fc74234 | 1146 | echo "$as_me:1146: result: yes" >&5 |
18569462 | 1147 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 1148 | test "$program_prefix" != NONE && |
459dd1a6 | 1149 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
705db0b5 AD |
1150 | # Use a double $ so make ignores it. |
1151 | test "$program_suffix" != NONE && | |
459dd1a6 AD |
1152 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1153 | # Double any \ or $. echo might interpret backslashes. | |
1154 | # By default was `s,x,x', remove it if useless. | |
1155 | cat <<\_ACEOF >conftest.sed | |
1156 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1157 | _ACEOF | |
1158 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1159 | rm conftest.sed | |
705db0b5 | 1160 | |
6fc74234 AD |
1161 | # expand $ac_aux_dir to an absolute path |
1162 | am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` | |
1163 | ||
1164 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1165 | # Use eval to expand $SHELL | |
1166 | if eval "$MISSING --run true"; then | |
1167 | am_missing_run="$MISSING --run " | |
1168 | else | |
1169 | am_missing_run= | |
1170 | am_backtick='`' | |
1171 | { echo "$as_me:1171: WARNING: ${am_backtick}missing' script is too old or missing" >&5 | |
1172 | echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} | |
1173 | fi | |
1174 | ||
1175 | for ac_prog in mawk gawk nawk awk | |
1176 | do | |
1177 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1178 | set dummy $ac_prog; ac_word=$2 | |
1179 | echo "$as_me:1179: checking for $ac_word" >&5 | |
1180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1181 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1183 | else | |
1184 | if test -n "$AWK"; then | |
1185 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1186 | else | |
1187 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1188 | ac_dummy="$PATH" | |
1189 | for ac_dir in $ac_dummy; do | |
1190 | IFS=$ac_save_IFS | |
1191 | test -z "$ac_dir" && ac_dir=. | |
1192 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1193 | ac_cv_prog_AWK="$ac_prog" | |
1194 | echo "$as_me:1194: found $ac_dir/$ac_word" >&5 | |
1195 | break | |
1196 | done | |
1197 | ||
1198 | fi | |
1199 | fi | |
1200 | AWK=$ac_cv_prog_AWK | |
1201 | if test -n "$AWK"; then | |
1202 | echo "$as_me:1202: result: $AWK" >&5 | |
1203 | echo "${ECHO_T}$AWK" >&6 | |
1204 | else | |
1205 | echo "$as_me:1205: result: no" >&5 | |
1206 | echo "${ECHO_T}no" >&6 | |
1207 | fi | |
1208 | ||
1209 | test -n "$AWK" && break | |
1210 | done | |
1211 | ||
1212 | echo "$as_me:1212: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
18569462 AD |
1213 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
1214 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1215 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 1217 | else |
6fc74234 | 1218 | cat >conftest.make <<\_ACEOF |
705db0b5 AD |
1219 | all: |
1220 | @echo 'ac_maketemp="${MAKE}"' | |
6fc74234 | 1221 | _ACEOF |
705db0b5 | 1222 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
18569462 | 1223 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
705db0b5 AD |
1224 | if test -n "$ac_maketemp"; then |
1225 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1226 | else | |
1227 | eval ac_cv_prog_make_${ac_make}_set=no | |
1228 | fi | |
18569462 | 1229 | rm -f conftest.make |
705db0b5 AD |
1230 | fi |
1231 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
6fc74234 | 1232 | echo "$as_me:1232: result: yes" >&5 |
18569462 | 1233 | echo "${ECHO_T}yes" >&6 |
705db0b5 AD |
1234 | SET_MAKE= |
1235 | else | |
6fc74234 | 1236 | echo "$as_me:1236: result: no" >&5 |
18569462 | 1237 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
1238 | SET_MAKE="MAKE=${MAKE-make}" |
1239 | fi | |
1240 | ||
6fc74234 AD |
1241 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
1242 | if test "${enable_dependency_tracking+set}" = set; then | |
1243 | enableval="$enable_dependency_tracking" | |
705db0b5 | 1244 | |
6fc74234 AD |
1245 | fi; |
1246 | if test "x$enable_dependency_tracking" != xno; then | |
1247 | am_depcomp="$ac_aux_dir/depcomp" | |
1248 | AMDEPBACKSLASH='\' | |
1249 | fi | |
1250 | ||
1251 | if test "x$enable_dependency_tracking" != xno; then | |
1252 | AMDEP_TRUE= | |
1253 | AMDEP_FALSE='#' | |
1254 | else | |
1255 | AMDEP_TRUE='#' | |
1256 | AMDEP_FALSE= | |
1257 | fi | |
1258 | ||
1259 | rm -f .deps 2>/dev/null | |
1260 | mkdir .deps 2>/dev/null | |
1261 | if test -d .deps; then | |
1262 | DEPDIR=.deps | |
1263 | else | |
1264 | # MS-DOS does not allow filenames that begin with a dot. | |
1265 | DEPDIR=_deps | |
1266 | fi | |
1267 | rmdir .deps 2>/dev/null | |
705db0b5 | 1268 | |
6fc74234 AD |
1269 | # test to see if srcdir already configured |
1270 | if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && | |
1271 | test -f $srcdir/config.status; then | |
1272 | { { echo "$as_me:1272: error: source directory already configured; run \"make distclean\" there first" >&5 | |
18569462 AD |
1273 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1274 | { (exit 1); exit 1; }; } | |
705db0b5 | 1275 | fi |
18569462 | 1276 | |
6fc74234 AD |
1277 | # Define the identity of the package. |
1278 | PACKAGE=bison | |
1279 | VERSION=1.28c | |
1280 | ||
1281 | cat >>confdefs.h <<_ACEOF | |
705db0b5 | 1282 | #define PACKAGE "$PACKAGE" |
6fc74234 | 1283 | _ACEOF |
705db0b5 | 1284 | |
6fc74234 | 1285 | cat >>confdefs.h <<_ACEOF |
705db0b5 | 1286 | #define VERSION "$VERSION" |
6fc74234 | 1287 | _ACEOF |
705db0b5 | 1288 | |
6fc74234 AD |
1289 | # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
1290 | # the ones we care about. | |
1291 | ||
1292 | # Autoconf 2.50 always computes EXEEXT. However we need to be | |
1293 | # compatible with 2.13, for now. So we always define EXEEXT, but we | |
1294 | # don't compute it. | |
1295 | ||
1296 | # Similar for OBJEXT -- only we only use OBJEXT if the user actually | |
1297 | # requests that it be used. This is a bit dumb. | |
1298 | : ${OBJEXT=o} | |
1299 | ||
1300 | # Some tools Automake needs. | |
1301 | ||
1302 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} | |
1303 | ||
1304 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1305 | ||
1306 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} | |
1307 | ||
1308 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1309 | ||
1310 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1311 | ||
1312 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1313 | ||
1314 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1315 | ||
1316 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1317 | ||
1318 | # We need awk for the "check" target. The system "awk" is bad on | |
1319 | # some platforms. | |
1320 | ||
1321 | ac_config_headers="$ac_config_headers config.h:config.hin" | |
705db0b5 AD |
1322 | |
1323 | # Initialize the test suite. | |
1324 | AT_TESTPATH=../src | |
1325 | ||
1326 | # Try to be compatible with both Autoconf 2.13 and 2.50. | |
1327 | if test -z "$ECHO_C$ECHO_N$ECHO_T"; then | |
1328 | ECHO_C="$ac_c" | |
1329 | ECHO_N="$ac_n" | |
1330 | ECHO_T="$ac_t" | |
705db0b5 | 1331 | |
18569462 | 1332 | fi |
705db0b5 AD |
1333 | |
1334 | # Checks for programs. | |
18569462 AD |
1335 | ac_ext=c |
1336 | ac_cpp='$CPP $CPPFLAGS' | |
1337 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1338 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1339 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1340 | if test -n "$ac_tool_prefix"; then | |
1341 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1342 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
6fc74234 | 1343 | echo "$as_me:1343: checking for $ac_word" >&5 |
18569462 AD |
1344 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1345 | if test "${ac_cv_prog_CC+set}" = set; then | |
1346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
1347 | else |
1348 | if test -n "$CC"; then | |
1349 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1350 | else | |
5141b016 | 1351 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1352 | ac_dummy="$PATH" |
1353 | for ac_dir in $ac_dummy; do | |
1354 | IFS=$ac_save_IFS | |
1355 | test -z "$ac_dir" && ac_dir=. | |
1356 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1357 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
6fc74234 | 1358 | echo "$as_me:1358: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1359 | break |
1360 | done | |
1361 | ||
705db0b5 AD |
1362 | fi |
1363 | fi | |
18569462 | 1364 | CC=$ac_cv_prog_CC |
705db0b5 | 1365 | if test -n "$CC"; then |
6fc74234 | 1366 | echo "$as_me:1366: result: $CC" >&5 |
18569462 | 1367 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1368 | else |
6fc74234 | 1369 | echo "$as_me:1369: result: no" >&5 |
18569462 | 1370 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
1371 | fi |
1372 | ||
18569462 AD |
1373 | fi |
1374 | if test -z "$ac_cv_prog_CC"; then | |
1375 | ac_ct_CC=$CC | |
1376 | # Extract the first word of "gcc", so it can be a program name with args. | |
1377 | set dummy gcc; ac_word=$2 | |
6fc74234 | 1378 | echo "$as_me:1378: checking for $ac_word" >&5 |
18569462 AD |
1379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1380 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1382 | else | |
1383 | if test -n "$ac_ct_CC"; then | |
1384 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1385 | else | |
5141b016 | 1386 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1387 | ac_dummy="$PATH" |
1388 | for ac_dir in $ac_dummy; do | |
1389 | IFS=$ac_save_IFS | |
1390 | test -z "$ac_dir" && ac_dir=. | |
1391 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1392 | ac_cv_prog_ac_ct_CC="gcc" | |
6fc74234 | 1393 | echo "$as_me:1393: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1394 | break |
1395 | done | |
1396 | ||
705db0b5 AD |
1397 | fi |
1398 | fi | |
18569462 AD |
1399 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1400 | if test -n "$ac_ct_CC"; then | |
6fc74234 | 1401 | echo "$as_me:1401: result: $ac_ct_CC" >&5 |
18569462 AD |
1402 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1403 | else | |
6fc74234 | 1404 | echo "$as_me:1404: result: no" >&5 |
18569462 | 1405 | echo "${ECHO_T}no" >&6 |
705db0b5 | 1406 | fi |
18569462 AD |
1407 | |
1408 | CC=$ac_ct_CC | |
705db0b5 | 1409 | else |
18569462 | 1410 | CC="$ac_cv_prog_CC" |
705db0b5 AD |
1411 | fi |
1412 | ||
18569462 AD |
1413 | if test -z "$CC"; then |
1414 | if test -n "$ac_tool_prefix"; then | |
1415 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1416 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
6fc74234 | 1417 | echo "$as_me:1417: checking for $ac_word" >&5 |
18569462 AD |
1418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1419 | if test "${ac_cv_prog_CC+set}" = set; then | |
1420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
1421 | else |
1422 | if test -n "$CC"; then | |
1423 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1424 | else | |
5141b016 | 1425 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1426 | ac_dummy="$PATH" |
1427 | for ac_dir in $ac_dummy; do | |
1428 | IFS=$ac_save_IFS | |
1429 | test -z "$ac_dir" && ac_dir=. | |
1430 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1431 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
6fc74234 | 1432 | echo "$as_me:1432: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1433 | break |
1434 | done | |
1435 | ||
705db0b5 AD |
1436 | fi |
1437 | fi | |
18569462 | 1438 | CC=$ac_cv_prog_CC |
705db0b5 | 1439 | if test -n "$CC"; then |
6fc74234 | 1440 | echo "$as_me:1440: result: $CC" >&5 |
18569462 | 1441 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1442 | else |
6fc74234 | 1443 | echo "$as_me:1443: result: no" >&5 |
18569462 | 1444 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
1445 | fi |
1446 | ||
18569462 AD |
1447 | fi |
1448 | if test -z "$ac_cv_prog_CC"; then | |
1449 | ac_ct_CC=$CC | |
1450 | # Extract the first word of "cc", so it can be a program name with args. | |
1451 | set dummy cc; ac_word=$2 | |
6fc74234 | 1452 | echo "$as_me:1452: checking for $ac_word" >&5 |
18569462 AD |
1453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1454 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1456 | else | |
1457 | if test -n "$ac_ct_CC"; then | |
1458 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1459 | else | |
5141b016 | 1460 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1461 | ac_dummy="$PATH" |
1462 | for ac_dir in $ac_dummy; do | |
1463 | IFS=$ac_save_IFS | |
1464 | test -z "$ac_dir" && ac_dir=. | |
1465 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1466 | ac_cv_prog_ac_ct_CC="cc" | |
6fc74234 | 1467 | echo "$as_me:1467: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1468 | break |
1469 | done | |
705db0b5 | 1470 | |
18569462 AD |
1471 | fi |
1472 | fi | |
1473 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1474 | if test -n "$ac_ct_CC"; then | |
6fc74234 | 1475 | echo "$as_me:1475: result: $ac_ct_CC" >&5 |
18569462 AD |
1476 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1477 | else | |
6fc74234 | 1478 | echo "$as_me:1478: result: no" >&5 |
18569462 AD |
1479 | echo "${ECHO_T}no" >&6 |
1480 | fi | |
705db0b5 | 1481 | |
18569462 AD |
1482 | CC=$ac_ct_CC |
1483 | else | |
1484 | CC="$ac_cv_prog_CC" | |
1485 | fi | |
705db0b5 | 1486 | |
18569462 AD |
1487 | fi |
1488 | if test -z "$CC"; then | |
1489 | # Extract the first word of "cc", so it can be a program name with args. | |
1490 | set dummy cc; ac_word=$2 | |
6fc74234 | 1491 | echo "$as_me:1491: checking for $ac_word" >&5 |
18569462 AD |
1492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1493 | if test "${ac_cv_prog_CC+set}" = set; then | |
1494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1495 | else | |
1496 | if test -n "$CC"; then | |
1497 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1498 | else | |
1499 | ac_prog_rejected=no | |
5141b016 | 1500 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1501 | ac_dummy="$PATH" |
1502 | for ac_dir in $ac_dummy; do | |
1503 | IFS=$ac_save_IFS | |
1504 | test -z "$ac_dir" && ac_dir=. | |
1505 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1506 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1507 | ac_prog_rejected=yes | |
1508 | continue | |
1509 | fi | |
1510 | ac_cv_prog_CC="cc" | |
6fc74234 | 1511 | echo "$as_me:1511: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1512 | break |
1513 | done | |
705db0b5 | 1514 | |
18569462 AD |
1515 | if test $ac_prog_rejected = yes; then |
1516 | # We found a bogon in the path, so make sure we never use it. | |
1517 | set dummy $ac_cv_prog_CC | |
1518 | shift | |
1519 | if test $# != 0; then | |
1520 | # We chose a different compiler from the bogus one. | |
1521 | # However, it has the same basename, so the bogon will be chosen | |
1522 | # first if we set CC to just the basename; use the full file name. | |
1523 | shift | |
1524 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | |
1525 | shift | |
1526 | ac_cv_prog_CC="$@" | |
705db0b5 | 1527 | fi |
18569462 AD |
1528 | fi |
1529 | fi | |
1530 | fi | |
1531 | CC=$ac_cv_prog_CC | |
1532 | if test -n "$CC"; then | |
6fc74234 | 1533 | echo "$as_me:1533: result: $CC" >&5 |
18569462 | 1534 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1535 | else |
6fc74234 | 1536 | echo "$as_me:1536: result: no" >&5 |
18569462 | 1537 | echo "${ECHO_T}no" >&6 |
705db0b5 | 1538 | fi |
705db0b5 | 1539 | |
705db0b5 | 1540 | fi |
18569462 AD |
1541 | if test -z "$CC"; then |
1542 | if test -n "$ac_tool_prefix"; then | |
1543 | for ac_prog in cl | |
1544 | do | |
1545 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1546 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6fc74234 | 1547 | echo "$as_me:1547: checking for $ac_word" >&5 |
18569462 AD |
1548 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1549 | if test "${ac_cv_prog_CC+set}" = set; then | |
1550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1551 | else | |
1552 | if test -n "$CC"; then | |
1553 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1554 | else | |
5141b016 | 1555 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1556 | ac_dummy="$PATH" |
1557 | for ac_dir in $ac_dummy; do | |
1558 | IFS=$ac_save_IFS | |
1559 | test -z "$ac_dir" && ac_dir=. | |
1560 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1561 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
6fc74234 | 1562 | echo "$as_me:1562: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1563 | break |
1564 | done | |
705db0b5 | 1565 | |
18569462 AD |
1566 | fi |
1567 | fi | |
1568 | CC=$ac_cv_prog_CC | |
1569 | if test -n "$CC"; then | |
6fc74234 | 1570 | echo "$as_me:1570: result: $CC" >&5 |
18569462 | 1571 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1572 | else |
6fc74234 | 1573 | echo "$as_me:1573: result: no" >&5 |
18569462 AD |
1574 | echo "${ECHO_T}no" >&6 |
1575 | fi | |
1576 | ||
1577 | test -n "$CC" && break | |
1578 | done | |
1579 | fi | |
1580 | if test -z "$CC"; then | |
1581 | ac_ct_CC=$CC | |
1582 | for ac_prog in cl | |
1583 | do | |
1584 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1585 | set dummy $ac_prog; ac_word=$2 | |
6fc74234 | 1586 | echo "$as_me:1586: checking for $ac_word" >&5 |
18569462 AD |
1587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1588 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1590 | else | |
1591 | if test -n "$ac_ct_CC"; then | |
1592 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1593 | else | |
5141b016 | 1594 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1595 | ac_dummy="$PATH" |
1596 | for ac_dir in $ac_dummy; do | |
1597 | IFS=$ac_save_IFS | |
1598 | test -z "$ac_dir" && ac_dir=. | |
1599 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1600 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
6fc74234 | 1601 | echo "$as_me:1601: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1602 | break |
1603 | done | |
1604 | ||
1605 | fi | |
1606 | fi | |
1607 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1608 | if test -n "$ac_ct_CC"; then | |
6fc74234 | 1609 | echo "$as_me:1609: result: $ac_ct_CC" >&5 |
18569462 | 1610 | echo "${ECHO_T}$ac_ct_CC" >&6 |
705db0b5 | 1611 | else |
6fc74234 | 1612 | echo "$as_me:1612: result: no" >&5 |
18569462 AD |
1613 | echo "${ECHO_T}no" >&6 |
1614 | fi | |
1615 | ||
1616 | test -n "$ac_ct_CC" && break | |
1617 | done | |
1618 | ||
1619 | CC=$ac_ct_CC | |
705db0b5 | 1620 | fi |
18569462 | 1621 | |
705db0b5 AD |
1622 | fi |
1623 | ||
6fc74234 | 1624 | test -z "$CC" && { { echo "$as_me:1624: error: no acceptable cc found in \$PATH" >&5 |
18569462 AD |
1625 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
1626 | { (exit 1); exit 1; }; } | |
1627 | ||
459dd1a6 | 1628 | # Provide some information about the compiler. |
6fc74234 | 1629 | echo "$as_me:1629:" \ |
459dd1a6 AD |
1630 | "checking for C compiler version" >&5 |
1631 | ac_compiler=`set X $ac_compile; echo $2` | |
6fc74234 | 1632 | { (eval echo "$as_me:1632: \"$ac_compiler --version </dev/null >&5\"") >&5 |
459dd1a6 AD |
1633 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
1634 | ac_status=$? | |
6fc74234 | 1635 | echo "$as_me:1635: \$? = $ac_status" >&5 |
459dd1a6 | 1636 | (exit $ac_status); } |
6fc74234 | 1637 | { (eval echo "$as_me:1637: \"$ac_compiler -v </dev/null >&5\"") >&5 |
459dd1a6 AD |
1638 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
1639 | ac_status=$? | |
6fc74234 | 1640 | echo "$as_me:1640: \$? = $ac_status" >&5 |
459dd1a6 | 1641 | (exit $ac_status); } |
6fc74234 | 1642 | { (eval echo "$as_me:1642: \"$ac_compiler -V </dev/null >&5\"") >&5 |
459dd1a6 AD |
1643 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
1644 | ac_status=$? | |
6fc74234 | 1645 | echo "$as_me:1645: \$? = $ac_status" >&5 |
459dd1a6 AD |
1646 | (exit $ac_status); } |
1647 | ||
5141b016 | 1648 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 1649 | #line 1649 "configure" |
18569462 AD |
1650 | #include "confdefs.h" |
1651 | ||
6fc74234 AD |
1652 | #ifdef F77_DUMMY_MAIN |
1653 | # ifdef __cplusplus | |
1654 | extern "C" | |
1655 | # endif | |
1656 | int F77_DUMMY_MAIN() { return 1; } | |
1657 | #endif | |
18569462 AD |
1658 | int |
1659 | main () | |
1660 | { | |
1661 | ||
1662 | ; | |
1663 | return 0; | |
1664 | } | |
1665 | _ACEOF | |
5141b016 AD |
1666 | ac_clean_files_save=$ac_clean_files |
1667 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1668 | # Try to create an executable without -o first, disregard a.out. | |
459dd1a6 | 1669 | # It will help us diagnose broken compilers, and finding out an intuition |
5141b016 | 1670 | # of exeext. |
6fc74234 | 1671 | echo "$as_me:1671: checking for C compiler default output" >&5 |
5141b016 | 1672 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
18569462 | 1673 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
6fc74234 | 1674 | if { (eval echo "$as_me:1674: \"$ac_link_default\"") >&5 |
18569462 AD |
1675 | (eval $ac_link_default) 2>&5 |
1676 | ac_status=$? | |
6fc74234 | 1677 | echo "$as_me:1677: \$? = $ac_status" >&5 |
18569462 | 1678 | (exit $ac_status); }; then |
459dd1a6 AD |
1679 | # Find the output, starting from the most likely. This scheme is |
1680 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1681 | # resort. | |
1682 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; | |
1683 | ls a.out conftest 2>/dev/null; | |
1684 | ls a.* conftest.* 2>/dev/null`; do | |
18569462 | 1685 | case $ac_file in |
6fc74234 | 1686 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
5141b016 AD |
1687 | a.out ) # We found the default executable, but exeext='' is most |
1688 | # certainly right. | |
1689 | break;; | |
18569462 | 1690 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
459dd1a6 | 1691 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
18569462 AD |
1692 | export ac_cv_exeext |
1693 | break;; | |
1694 | * ) break;; | |
1695 | esac | |
1696 | done | |
1697 | else | |
1698 | echo "$as_me: failed program was:" >&5 | |
1699 | cat conftest.$ac_ext >&5 | |
6fc74234 | 1700 | { { echo "$as_me:1700: error: C compiler cannot create executables" >&5 |
5141b016 AD |
1701 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
1702 | { (exit 77); exit 77; }; } | |
1703 | fi | |
1704 | ||
1705 | ac_exeext=$ac_cv_exeext | |
6fc74234 | 1706 | echo "$as_me:1706: result: $ac_file" >&5 |
5141b016 AD |
1707 | echo "${ECHO_T}$ac_file" >&6 |
1708 | ||
1709 | # Check the compiler produces executables we can run. If not, either | |
1710 | # the compiler is broken, or we cross compile. | |
6fc74234 | 1711 | echo "$as_me:1711: checking whether the C compiler works" >&5 |
5141b016 AD |
1712 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1713 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1714 | # If not cross compiling, check that we can run a simple program. | |
1715 | if test "$cross_compiling" != yes; then | |
1716 | if { ac_try='./$ac_file' | |
6fc74234 | 1717 | { (eval echo "$as_me:1717: \"$ac_try\"") >&5 |
5141b016 AD |
1718 | (eval $ac_try) 2>&5 |
1719 | ac_status=$? | |
6fc74234 | 1720 | echo "$as_me:1720: \$? = $ac_status" >&5 |
5141b016 AD |
1721 | (exit $ac_status); }; }; then |
1722 | cross_compiling=no | |
1723 | else | |
1724 | if test "$cross_compiling" = maybe; then | |
1725 | cross_compiling=yes | |
1726 | else | |
6fc74234 | 1727 | { { echo "$as_me:1727: error: cannot run C compiled programs. |
5141b016 AD |
1728 | If you meant to cross compile, use \`--host'." >&5 |
1729 | echo "$as_me: error: cannot run C compiled programs. | |
1730 | If you meant to cross compile, use \`--host'." >&2;} | |
1731 | { (exit 1); exit 1; }; } | |
1732 | fi | |
1733 | fi | |
18569462 | 1734 | fi |
6fc74234 | 1735 | echo "$as_me:1735: result: yes" >&5 |
5141b016 | 1736 | echo "${ECHO_T}yes" >&6 |
18569462 AD |
1737 | |
1738 | rm -f a.out a.exe conftest$ac_cv_exeext | |
5141b016 AD |
1739 | ac_clean_files=$ac_clean_files_save |
1740 | # Check the compiler produces executables we can run. If not, either | |
1741 | # the compiler is broken, or we cross compile. | |
6fc74234 | 1742 | echo "$as_me:1742: checking whether we are cross compiling" >&5 |
5141b016 | 1743 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
6fc74234 | 1744 | echo "$as_me:1744: result: $cross_compiling" >&5 |
5141b016 | 1745 | echo "${ECHO_T}$cross_compiling" >&6 |
18569462 | 1746 | |
6fc74234 | 1747 | echo "$as_me:1747: checking for executable suffix" >&5 |
5141b016 | 1748 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
6fc74234 | 1749 | if { (eval echo "$as_me:1749: \"$ac_link\"") >&5 |
18569462 AD |
1750 | (eval $ac_link) 2>&5 |
1751 | ac_status=$? | |
6fc74234 | 1752 | echo "$as_me:1752: \$? = $ac_status" >&5 |
18569462 AD |
1753 | (exit $ac_status); }; then |
1754 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1755 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1756 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1757 | # `rm'. | |
1758 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1759 | case $ac_file in | |
1760 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1761 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1762 | export ac_cv_exeext | |
1763 | break;; | |
1764 | * ) break;; | |
1765 | esac | |
1766 | done | |
705db0b5 | 1767 | else |
6fc74234 | 1768 | { { echo "$as_me:1768: error: cannot compute EXEEXT: cannot compile and link" >&5 |
18569462 AD |
1769 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
1770 | { (exit 1); exit 1; }; } | |
705db0b5 | 1771 | fi |
705db0b5 | 1772 | |
5141b016 | 1773 | rm -f conftest$ac_cv_exeext |
6fc74234 | 1774 | echo "$as_me:1774: result: $ac_cv_exeext" >&5 |
18569462 | 1775 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
5141b016 AD |
1776 | |
1777 | rm -f conftest.$ac_ext | |
18569462 AD |
1778 | EXEEXT=$ac_cv_exeext |
1779 | ac_exeext=$EXEEXT | |
6fc74234 | 1780 | echo "$as_me:1780: checking for object suffix" >&5 |
5141b016 AD |
1781 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
1782 | if test "${ac_cv_objext+set}" = set; then | |
1783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1784 | else | |
1785 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 1786 | #line 1786 "configure" |
18569462 AD |
1787 | #include "confdefs.h" |
1788 | ||
6fc74234 AD |
1789 | #ifdef F77_DUMMY_MAIN |
1790 | # ifdef __cplusplus | |
1791 | extern "C" | |
1792 | # endif | |
1793 | int F77_DUMMY_MAIN() { return 1; } | |
1794 | #endif | |
18569462 AD |
1795 | int |
1796 | main () | |
1797 | { | |
1798 | ||
1799 | ; | |
1800 | return 0; | |
1801 | } | |
1802 | _ACEOF | |
5141b016 | 1803 | rm -f conftest.o conftest.obj |
6fc74234 | 1804 | if { (eval echo "$as_me:1804: \"$ac_compile\"") >&5 |
5141b016 | 1805 | (eval $ac_compile) 2>&5 |
18569462 | 1806 | ac_status=$? |
6fc74234 | 1807 | echo "$as_me:1807: \$? = $ac_status" >&5 |
5141b016 AD |
1808 | (exit $ac_status); }; then |
1809 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1810 | case $ac_file in | |
1811 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1812 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1813 | break;; | |
1814 | esac | |
1815 | done | |
18569462 AD |
1816 | else |
1817 | echo "$as_me: failed program was:" >&5 | |
1818 | cat conftest.$ac_ext >&5 | |
6fc74234 | 1819 | { { echo "$as_me:1819: error: cannot compute OBJEXT: cannot compile" >&5 |
5141b016 AD |
1820 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
1821 | { (exit 1); exit 1; }; } | |
18569462 | 1822 | fi |
18569462 | 1823 | |
5141b016 AD |
1824 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1825 | fi | |
6fc74234 | 1826 | echo "$as_me:1826: result: $ac_cv_objext" >&5 |
5141b016 AD |
1827 | echo "${ECHO_T}$ac_cv_objext" >&6 |
1828 | OBJEXT=$ac_cv_objext | |
1829 | ac_objext=$OBJEXT | |
6fc74234 | 1830 | echo "$as_me:1830: checking whether we are using the GNU C compiler" >&5 |
18569462 AD |
1831 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1832 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1834 | else | |
1835 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 1836 | #line 1836 "configure" |
18569462 | 1837 | #include "confdefs.h" |
705db0b5 | 1838 | |
6fc74234 AD |
1839 | #ifdef F77_DUMMY_MAIN |
1840 | # ifdef __cplusplus | |
1841 | extern "C" | |
1842 | # endif | |
1843 | int F77_DUMMY_MAIN() { return 1; } | |
1844 | #endif | |
18569462 AD |
1845 | int |
1846 | main () | |
1847 | { | |
1848 | #ifndef __GNUC__ | |
1849 | choke me | |
1850 | #endif | |
1851 | ||
1852 | ; | |
1853 | return 0; | |
1854 | } | |
1855 | _ACEOF | |
1856 | rm -f conftest.$ac_objext | |
6fc74234 | 1857 | if { (eval echo "$as_me:1857: \"$ac_compile\"") >&5 |
18569462 AD |
1858 | (eval $ac_compile) 2>&5 |
1859 | ac_status=$? | |
6fc74234 | 1860 | echo "$as_me:1860: \$? = $ac_status" >&5 |
18569462 | 1861 | (exit $ac_status); } && |
5141b016 | 1862 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 1863 | { (eval echo "$as_me:1863: \"$ac_try\"") >&5 |
18569462 AD |
1864 | (eval $ac_try) 2>&5 |
1865 | ac_status=$? | |
6fc74234 | 1866 | echo "$as_me:1866: \$? = $ac_status" >&5 |
18569462 AD |
1867 | (exit $ac_status); }; }; then |
1868 | ac_compiler_gnu=yes | |
1869 | else | |
1870 | echo "$as_me: failed program was:" >&5 | |
1871 | cat conftest.$ac_ext >&5 | |
1872 | ac_compiler_gnu=no | |
1873 | fi | |
1874 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1875 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1876 | ||
1877 | fi | |
6fc74234 | 1878 | echo "$as_me:1878: result: $ac_cv_c_compiler_gnu" >&5 |
18569462 AD |
1879 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
1880 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1881 | ac_test_CFLAGS=${CFLAGS+set} | |
1882 | ac_save_CFLAGS=$CFLAGS | |
1883 | CFLAGS="-g" | |
6fc74234 | 1884 | echo "$as_me:1884: checking whether $CC accepts -g" >&5 |
18569462 AD |
1885 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
1886 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1888 | else | |
1889 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 1890 | #line 1890 "configure" |
18569462 AD |
1891 | #include "confdefs.h" |
1892 | ||
6fc74234 AD |
1893 | #ifdef F77_DUMMY_MAIN |
1894 | # ifdef __cplusplus | |
1895 | extern "C" | |
1896 | # endif | |
1897 | int F77_DUMMY_MAIN() { return 1; } | |
1898 | #endif | |
18569462 AD |
1899 | int |
1900 | main () | |
1901 | { | |
1902 | ||
1903 | ; | |
1904 | return 0; | |
1905 | } | |
1906 | _ACEOF | |
1907 | rm -f conftest.$ac_objext | |
6fc74234 | 1908 | if { (eval echo "$as_me:1908: \"$ac_compile\"") >&5 |
18569462 AD |
1909 | (eval $ac_compile) 2>&5 |
1910 | ac_status=$? | |
6fc74234 | 1911 | echo "$as_me:1911: \$? = $ac_status" >&5 |
18569462 | 1912 | (exit $ac_status); } && |
5141b016 | 1913 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 1914 | { (eval echo "$as_me:1914: \"$ac_try\"") >&5 |
18569462 AD |
1915 | (eval $ac_try) 2>&5 |
1916 | ac_status=$? | |
6fc74234 | 1917 | echo "$as_me:1917: \$? = $ac_status" >&5 |
18569462 AD |
1918 | (exit $ac_status); }; }; then |
1919 | ac_cv_prog_cc_g=yes | |
1920 | else | |
1921 | echo "$as_me: failed program was:" >&5 | |
1922 | cat conftest.$ac_ext >&5 | |
1923 | ac_cv_prog_cc_g=no | |
1924 | fi | |
1925 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1926 | fi | |
6fc74234 | 1927 | echo "$as_me:1927: result: $ac_cv_prog_cc_g" >&5 |
18569462 | 1928 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
705db0b5 | 1929 | if test "$ac_test_CFLAGS" = set; then |
18569462 | 1930 | CFLAGS=$ac_save_CFLAGS |
705db0b5 AD |
1931 | elif test $ac_cv_prog_cc_g = yes; then |
1932 | if test "$GCC" = yes; then | |
1933 | CFLAGS="-g -O2" | |
1934 | else | |
1935 | CFLAGS="-g" | |
1936 | fi | |
1937 | else | |
1938 | if test "$GCC" = yes; then | |
1939 | CFLAGS="-O2" | |
1940 | else | |
1941 | CFLAGS= | |
1942 | fi | |
1943 | fi | |
18569462 AD |
1944 | # Some people use a C++ compiler to compile C. Since we use `exit', |
1945 | # in C++ we need to declare it. In case someone uses the same compiler | |
1946 | # for both compiling C and C++ we need to have the C++ compiler decide | |
1947 | # the declaration of exit, since it's the most demanding environment. | |
1948 | cat >conftest.$ac_ext <<_ACEOF | |
1949 | #ifndef __cplusplus | |
1950 | choke me | |
1951 | #endif | |
1952 | _ACEOF | |
1953 | rm -f conftest.$ac_objext | |
6fc74234 | 1954 | if { (eval echo "$as_me:1954: \"$ac_compile\"") >&5 |
18569462 AD |
1955 | (eval $ac_compile) 2>&5 |
1956 | ac_status=$? | |
6fc74234 | 1957 | echo "$as_me:1957: \$? = $ac_status" >&5 |
18569462 | 1958 | (exit $ac_status); } && |
5141b016 | 1959 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 1960 | { (eval echo "$as_me:1960: \"$ac_try\"") >&5 |
18569462 AD |
1961 | (eval $ac_try) 2>&5 |
1962 | ac_status=$? | |
6fc74234 | 1963 | echo "$as_me:1963: \$? = $ac_status" >&5 |
18569462 AD |
1964 | (exit $ac_status); }; }; then |
1965 | for ac_declaration in \ | |
1966 | ''\ | |
1967 | '#include <stdlib.h>' \ | |
1968 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
1969 | 'extern "C" void std::exit (int); using std::exit;' \ | |
1970 | 'extern "C" void exit (int) throw ();' \ | |
1971 | 'extern "C" void exit (int);' \ | |
1972 | 'void exit (int);' | |
1973 | do | |
1974 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 1975 | #line 1975 "configure" |
18569462 AD |
1976 | #include "confdefs.h" |
1977 | #include <stdlib.h> | |
1978 | $ac_declaration | |
6fc74234 AD |
1979 | #ifdef F77_DUMMY_MAIN |
1980 | # ifdef __cplusplus | |
1981 | extern "C" | |
1982 | # endif | |
1983 | int F77_DUMMY_MAIN() { return 1; } | |
1984 | #endif | |
18569462 AD |
1985 | int |
1986 | main () | |
1987 | { | |
1988 | exit (42); | |
1989 | ; | |
1990 | return 0; | |
1991 | } | |
1992 | _ACEOF | |
1993 | rm -f conftest.$ac_objext | |
6fc74234 | 1994 | if { (eval echo "$as_me:1994: \"$ac_compile\"") >&5 |
18569462 AD |
1995 | (eval $ac_compile) 2>&5 |
1996 | ac_status=$? | |
6fc74234 | 1997 | echo "$as_me:1997: \$? = $ac_status" >&5 |
18569462 | 1998 | (exit $ac_status); } && |
5141b016 | 1999 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 2000 | { (eval echo "$as_me:2000: \"$ac_try\"") >&5 |
18569462 AD |
2001 | (eval $ac_try) 2>&5 |
2002 | ac_status=$? | |
6fc74234 | 2003 | echo "$as_me:2003: \$? = $ac_status" >&5 |
18569462 AD |
2004 | (exit $ac_status); }; }; then |
2005 | : | |
2006 | else | |
2007 | echo "$as_me: failed program was:" >&5 | |
2008 | cat conftest.$ac_ext >&5 | |
2009 | continue | |
2010 | fi | |
2011 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2012 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 2013 | #line 2013 "configure" |
18569462 AD |
2014 | #include "confdefs.h" |
2015 | $ac_declaration | |
6fc74234 AD |
2016 | #ifdef F77_DUMMY_MAIN |
2017 | # ifdef __cplusplus | |
2018 | extern "C" | |
2019 | # endif | |
2020 | int F77_DUMMY_MAIN() { return 1; } | |
2021 | #endif | |
18569462 AD |
2022 | int |
2023 | main () | |
2024 | { | |
2025 | exit (42); | |
2026 | ; | |
2027 | return 0; | |
2028 | } | |
2029 | _ACEOF | |
2030 | rm -f conftest.$ac_objext | |
6fc74234 | 2031 | if { (eval echo "$as_me:2031: \"$ac_compile\"") >&5 |
18569462 AD |
2032 | (eval $ac_compile) 2>&5 |
2033 | ac_status=$? | |
6fc74234 | 2034 | echo "$as_me:2034: \$? = $ac_status" >&5 |
18569462 | 2035 | (exit $ac_status); } && |
5141b016 | 2036 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 2037 | { (eval echo "$as_me:2037: \"$ac_try\"") >&5 |
18569462 AD |
2038 | (eval $ac_try) 2>&5 |
2039 | ac_status=$? | |
6fc74234 | 2040 | echo "$as_me:2040: \$? = $ac_status" >&5 |
18569462 AD |
2041 | (exit $ac_status); }; }; then |
2042 | break | |
2043 | else | |
2044 | echo "$as_me: failed program was:" >&5 | |
2045 | cat conftest.$ac_ext >&5 | |
2046 | fi | |
2047 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2048 | done | |
459dd1a6 AD |
2049 | rm -f conftest* |
2050 | if test -n "$ac_declaration"; then | |
2051 | echo '#ifdef __cplusplus' >>confdefs.h | |
2052 | echo $ac_declaration >>confdefs.h | |
2053 | echo '#endif' >>confdefs.h | |
2054 | fi | |
18569462 AD |
2055 | |
2056 | else | |
2057 | echo "$as_me: failed program was:" >&5 | |
2058 | cat conftest.$ac_ext >&5 | |
2059 | fi | |
2060 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2061 | ac_ext=c | |
2062 | ac_cpp='$CPP $CPPFLAGS' | |
2063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
705db0b5 | 2066 | |
6fc74234 AD |
2067 | ac_config_commands="$ac_config_commands default-1" |
2068 | ||
2069 | am_make=${MAKE-make} | |
2070 | cat > confinc << 'END' | |
2071 | doit: | |
2072 | @echo done | |
2073 | END | |
2074 | # If we don't find an include directive, just comment out the code. | |
2075 | echo "$as_me:2075: checking for style of include used by $am_make" >&5 | |
2076 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2077 | am__include='#' | |
2078 | am__quote= | |
2079 | _am_result=none | |
2080 | # First try GNU make style include. | |
2081 | echo "include confinc" > confmf | |
2082 | # We grep out `Entering directory' and `Leaving directory' | |
2083 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2084 | # In particular we don't look at `^make:' because GNU make might | |
2085 | # be invoked under some other name (usually "gmake"), in which | |
2086 | # case it prints its new name instead of `make'. | |
2087 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then | |
2088 | am__include=include | |
2089 | am__quote= | |
2090 | _am_result=GNU | |
2091 | fi | |
2092 | # Now try BSD make style include. | |
2093 | if test "$am__include" = "#"; then | |
2094 | echo '.include "confinc"' > confmf | |
2095 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2096 | am__include=.include | |
2097 | am__quote='"' | |
2098 | _am_result=BSD | |
2099 | fi | |
2100 | fi | |
2101 | ||
2102 | echo "$as_me:2102: result: $_am_result" >&5 | |
2103 | echo "${ECHO_T}$_am_result" >&6 | |
2104 | rm -f confinc confmf | |
2105 | ||
2106 | depcc="$CC" am_compiler_list= | |
2107 | ||
2108 | echo "$as_me:2108: checking dependency style of $depcc" >&5 | |
2109 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2110 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2112 | else | |
2113 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2114 | # We make a subdir and do the tests there. Otherwise we can end up | |
2115 | # making bogus files that we don't know about and never remove. For | |
2116 | # instance it was reported that on HP-UX the gcc test will end up | |
2117 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2118 | # in D'. | |
2119 | mkdir conftest.dir | |
2120 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2121 | # using a relative directory. | |
2122 | cp "$am_depcomp" conftest.dir | |
2123 | cd conftest.dir | |
2124 | ||
2125 | am_cv_CC_dependencies_compiler_type=none | |
2126 | if test "$am_compiler_list" = ""; then | |
2127 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2128 | fi | |
2129 | for depmode in $am_compiler_list; do | |
2130 | # We need to recreate these files for each test, as the compiler may | |
2131 | # overwrite some of them when testing with obscure command lines. | |
2132 | # This happens at least with the AIX C compiler. | |
2133 | echo '#include "conftest.h"' > conftest.c | |
2134 | echo 'int i;' > conftest.h | |
2135 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
2136 | ||
2137 | case $depmode in | |
2138 | nosideeffect) | |
2139 | # after this tag, mechanisms are not by side-effect, so they'll | |
2140 | # only be used when explicitly requested | |
2141 | if test "x$enable_dependency_tracking" = xyes; then | |
2142 | continue | |
2143 | else | |
2144 | break | |
2145 | fi | |
2146 | ;; | |
2147 | none) break ;; | |
2148 | esac | |
2149 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2150 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2151 | # handle `-M -o', and we need to detect this. | |
2152 | if depmode=$depmode \ | |
2153 | source=conftest.c object=conftest.o \ | |
2154 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
2155 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
2156 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
2157 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2158 | am_cv_CC_dependencies_compiler_type=$depmode | |
2159 | break | |
2160 | fi | |
2161 | done | |
2162 | ||
2163 | cd .. | |
2164 | rm -rf conftest.dir | |
2165 | else | |
2166 | am_cv_CC_dependencies_compiler_type=none | |
2167 | fi | |
2168 | ||
2169 | fi | |
2170 | echo "$as_me:2170: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
2171 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
2172 | CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" | |
2173 | ||
18569462 AD |
2174 | ac_ext=c |
2175 | ac_cpp='$CPP $CPPFLAGS' | |
2176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6fc74234 | 2179 | echo "$as_me:2179: checking how to run the C preprocessor" >&5 |
18569462 | 2180 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
705db0b5 AD |
2181 | # On Suns, sometimes $CPP names a directory. |
2182 | if test -n "$CPP" && test -d "$CPP"; then | |
2183 | CPP= | |
2184 | fi | |
2185 | if test -z "$CPP"; then | |
18569462 AD |
2186 | if test "${ac_cv_prog_CPP+set}" = set; then |
2187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2188 | else | |
2189 | # Double quotes because CPP needs to be expanded | |
2190 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2191 | do | |
1e24cc5b AD |
2192 | ac_preproc_ok=false |
2193 | for ac_c_preproc_warn_flag in '' yes | |
2194 | do | |
2195 | # Use a header file that comes with gcc, so configuring glibc | |
2196 | # with a fresh cross-compiler works. | |
2197 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2198 | # not just through cpp. "Syntax error" is here to catch this case. | |
2199 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 2200 | #line 2200 "configure" |
705db0b5 AD |
2201 | #include "confdefs.h" |
2202 | #include <assert.h> | |
1e24cc5b | 2203 | Syntax error |
18569462 | 2204 | _ACEOF |
6fc74234 | 2205 | if { (eval echo "$as_me:2205: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 2206 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
2207 | ac_status=$? |
2208 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2209 | rm -f conftest.er1 | |
2210 | cat conftest.err >&5 | |
6fc74234 | 2211 | echo "$as_me:2211: \$? = $ac_status" >&5 |
1e24cc5b | 2212 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
2213 | if test -s conftest.err; then |
2214 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2215 | else | |
2216 | ac_cpp_err= | |
2217 | fi | |
705db0b5 | 2218 | else |
18569462 AD |
2219 | ac_cpp_err=yes |
2220 | fi | |
2221 | if test -z "$ac_cpp_err"; then | |
1e24cc5b AD |
2222 | : |
2223 | else | |
2224 | echo "$as_me: failed program was:" >&5 | |
2225 | cat conftest.$ac_ext >&5 | |
2226 | # Broken: fails on valid input. | |
2227 | continue | |
2228 | fi | |
2229 | rm -f conftest.err conftest.$ac_ext | |
2230 | ||
2231 | # OK, works on sane cases. Now check whether non-existent headers | |
2232 | # can be detected and how. | |
18569462 | 2233 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 2234 | #line 2234 "configure" |
705db0b5 | 2235 | #include "confdefs.h" |
18569462 AD |
2236 | #include <ac_nonexistent.h> |
2237 | _ACEOF | |
6fc74234 | 2238 | if { (eval echo "$as_me:2238: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 2239 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
2240 | ac_status=$? |
2241 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2242 | rm -f conftest.er1 | |
2243 | cat conftest.err >&5 | |
6fc74234 | 2244 | echo "$as_me:2244: \$? = $ac_status" >&5 |
1e24cc5b | 2245 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
2246 | if test -s conftest.err; then |
2247 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2248 | else | |
2249 | ac_cpp_err= | |
2250 | fi | |
2251 | else | |
2252 | ac_cpp_err=yes | |
2253 | fi | |
2254 | if test -z "$ac_cpp_err"; then | |
1e24cc5b AD |
2255 | # Broken: success on invalid input. |
2256 | continue | |
18569462 AD |
2257 | else |
2258 | echo "$as_me: failed program was:" >&5 | |
2259 | cat conftest.$ac_ext >&5 | |
1e24cc5b AD |
2260 | # Passes both tests. |
2261 | ac_preproc_ok=: | |
2262 | break | |
18569462 AD |
2263 | fi |
2264 | rm -f conftest.err conftest.$ac_ext | |
18569462 | 2265 | |
1e24cc5b AD |
2266 | done |
2267 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18569462 | 2268 | rm -f conftest.err conftest.$ac_ext |
1e24cc5b | 2269 | if $ac_preproc_ok; then |
459dd1a6 | 2270 | break |
1e24cc5b AD |
2271 | fi |
2272 | ||
18569462 AD |
2273 | done |
2274 | ac_cv_prog_CPP=$CPP | |
2275 | ||
2276 | fi | |
2277 | CPP=$ac_cv_prog_CPP | |
2278 | else | |
1e24cc5b AD |
2279 | ac_cv_prog_CPP=$CPP |
2280 | fi | |
6fc74234 | 2281 | echo "$as_me:2281: result: $CPP" >&5 |
1e24cc5b AD |
2282 | echo "${ECHO_T}$CPP" >&6 |
2283 | ac_preproc_ok=false | |
2284 | for ac_c_preproc_warn_flag in '' yes | |
2285 | do | |
18569462 | 2286 | # Use a header file that comes with gcc, so configuring glibc |
1e24cc5b AD |
2287 | # with a fresh cross-compiler works. |
2288 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2289 | # not just through cpp. "Syntax error" is here to catch this case. | |
2290 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 2291 | #line 2291 "configure" |
705db0b5 AD |
2292 | #include "confdefs.h" |
2293 | #include <assert.h> | |
1e24cc5b | 2294 | Syntax error |
18569462 | 2295 | _ACEOF |
6fc74234 | 2296 | if { (eval echo "$as_me:2296: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 2297 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
2298 | ac_status=$? |
2299 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2300 | rm -f conftest.er1 | |
2301 | cat conftest.err >&5 | |
6fc74234 | 2302 | echo "$as_me:2302: \$? = $ac_status" >&5 |
1e24cc5b | 2303 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
2304 | if test -s conftest.err; then |
2305 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2306 | else | |
2307 | ac_cpp_err= | |
2308 | fi | |
705db0b5 | 2309 | else |
18569462 | 2310 | ac_cpp_err=yes |
705db0b5 | 2311 | fi |
18569462 | 2312 | if test -z "$ac_cpp_err"; then |
1e24cc5b AD |
2313 | : |
2314 | else | |
2315 | echo "$as_me: failed program was:" >&5 | |
2316 | cat conftest.$ac_ext >&5 | |
2317 | # Broken: fails on valid input. | |
2318 | continue | |
2319 | fi | |
2320 | rm -f conftest.err conftest.$ac_ext | |
2321 | ||
2322 | # OK, works on sane cases. Now check whether non-existent headers | |
2323 | # can be detected and how. | |
18569462 | 2324 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 2325 | #line 2325 "configure" |
18569462 AD |
2326 | #include "confdefs.h" |
2327 | #include <ac_nonexistent.h> | |
2328 | _ACEOF | |
6fc74234 | 2329 | if { (eval echo "$as_me:2329: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 2330 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
2331 | ac_status=$? |
2332 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2333 | rm -f conftest.er1 | |
2334 | cat conftest.err >&5 | |
6fc74234 | 2335 | echo "$as_me:2335: \$? = $ac_status" >&5 |
1e24cc5b | 2336 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
2337 | if test -s conftest.err; then |
2338 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2339 | else | |
2340 | ac_cpp_err= | |
2341 | fi | |
2342 | else | |
2343 | ac_cpp_err=yes | |
705db0b5 | 2344 | fi |
18569462 | 2345 | if test -z "$ac_cpp_err"; then |
1e24cc5b AD |
2346 | # Broken: success on invalid input. |
2347 | continue | |
18569462 AD |
2348 | else |
2349 | echo "$as_me: failed program was:" >&5 | |
2350 | cat conftest.$ac_ext >&5 | |
1e24cc5b AD |
2351 | # Passes both tests. |
2352 | ac_preproc_ok=: | |
2353 | break | |
705db0b5 | 2354 | fi |
18569462 | 2355 | rm -f conftest.err conftest.$ac_ext |
18569462 | 2356 | |
1e24cc5b AD |
2357 | done |
2358 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18569462 | 2359 | rm -f conftest.err conftest.$ac_ext |
1e24cc5b AD |
2360 | if $ac_preproc_ok; then |
2361 | : | |
2362 | else | |
6fc74234 | 2363 | { { echo "$as_me:2363: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
18569462 AD |
2364 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
2365 | { (exit 1); exit 1; }; } | |
2366 | fi | |
1e24cc5b | 2367 | |
18569462 AD |
2368 | ac_ext=c |
2369 | ac_cpp='$CPP $CPPFLAGS' | |
2370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
705db0b5 | 2373 | |
6fc74234 AD |
2374 | echo "$as_me:2374: checking for ANSI C header files" >&5 |
2375 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2376 | if test "${ac_cv_header_stdc+set}" = set; then | |
18569462 | 2377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 | 2378 | else |
18569462 | 2379 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 2380 | #line 2380 "configure" |
705db0b5 | 2381 | #include "confdefs.h" |
6fc74234 AD |
2382 | #include <stdlib.h> |
2383 | #include <stdarg.h> | |
2384 | #include <string.h> | |
2385 | #include <float.h> | |
2386 | ||
18569462 | 2387 | _ACEOF |
6fc74234 | 2388 | if { (eval echo "$as_me:2388: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 2389 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
2390 | ac_status=$? |
2391 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2392 | rm -f conftest.er1 | |
2393 | cat conftest.err >&5 | |
6fc74234 | 2394 | echo "$as_me:2394: \$? = $ac_status" >&5 |
1e24cc5b | 2395 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
2396 | if test -s conftest.err; then |
2397 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2398 | else | |
2399 | ac_cpp_err= | |
2400 | fi | |
2401 | else | |
2402 | ac_cpp_err=yes | |
2403 | fi | |
2404 | if test -z "$ac_cpp_err"; then | |
6fc74234 | 2405 | ac_cv_header_stdc=yes |
18569462 AD |
2406 | else |
2407 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 2408 | cat conftest.$ac_ext >&5 |
6fc74234 | 2409 | ac_cv_header_stdc=no |
705db0b5 | 2410 | fi |
18569462 | 2411 | rm -f conftest.err conftest.$ac_ext |
6fc74234 AD |
2412 | |
2413 | if test $ac_cv_header_stdc = yes; then | |
2414 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2415 | cat >conftest.$ac_ext <<_ACEOF | |
2416 | #line 2416 "configure" | |
2417 | #include "confdefs.h" | |
2418 | #include <string.h> | |
2419 | ||
2420 | _ACEOF | |
2421 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2422 | egrep "memchr" >/dev/null 2>&1; then | |
2423 | : | |
705db0b5 | 2424 | else |
6fc74234 | 2425 | ac_cv_header_stdc=no |
705db0b5 | 2426 | fi |
6fc74234 | 2427 | rm -f conftest* |
705db0b5 | 2428 | |
6fc74234 | 2429 | fi |
705db0b5 | 2430 | |
6fc74234 AD |
2431 | if test $ac_cv_header_stdc = yes; then |
2432 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2433 | cat >conftest.$ac_ext <<_ACEOF | |
2434 | #line 2434 "configure" | |
2435 | #include "confdefs.h" | |
2436 | #include <stdlib.h> | |
705db0b5 | 2437 | |
6fc74234 AD |
2438 | _ACEOF |
2439 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2440 | egrep "free" >/dev/null 2>&1; then | |
2441 | : | |
2442 | else | |
2443 | ac_cv_header_stdc=no | |
2444 | fi | |
2445 | rm -f conftest* | |
705db0b5 AD |
2446 | |
2447 | fi | |
2448 | ||
6fc74234 AD |
2449 | if test $ac_cv_header_stdc = yes; then |
2450 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2451 | if test "$cross_compiling" = yes; then | |
2452 | : | |
1e24cc5b | 2453 | else |
6fc74234 AD |
2454 | cat >conftest.$ac_ext <<_ACEOF |
2455 | #line 2455 "configure" | |
1e24cc5b | 2456 | #include "confdefs.h" |
6fc74234 AD |
2457 | #include <ctype.h> |
2458 | #if ((' ' & 0x0FF) == 0x020) | |
2459 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2460 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2461 | #else | |
2462 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
2463 | || ('j' <= (c) && (c) <= 'r') \ | |
2464 | || ('s' <= (c) && (c) <= 'z')) | |
2465 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
1e24cc5b | 2466 | #endif |
6fc74234 AD |
2467 | |
2468 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1e24cc5b AD |
2469 | int |
2470 | main () | |
2471 | { | |
6fc74234 AD |
2472 | int i; |
2473 | for (i = 0; i < 256; i++) | |
2474 | if (XOR (islower (i), ISLOWER (i)) | |
2475 | || toupper (i) != TOUPPER (i)) | |
2476 | exit(2); | |
2477 | exit (0); | |
1e24cc5b AD |
2478 | } |
2479 | _ACEOF | |
6fc74234 AD |
2480 | rm -f conftest$ac_exeext |
2481 | if { (eval echo "$as_me:2481: \"$ac_link\"") >&5 | |
1e24cc5b AD |
2482 | (eval $ac_link) 2>&5 |
2483 | ac_status=$? | |
6fc74234 AD |
2484 | echo "$as_me:2484: \$? = $ac_status" >&5 |
2485 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2486 | { (eval echo "$as_me:2486: \"$ac_try\"") >&5 | |
1e24cc5b AD |
2487 | (eval $ac_try) 2>&5 |
2488 | ac_status=$? | |
6fc74234 | 2489 | echo "$as_me:2489: \$? = $ac_status" >&5 |
1e24cc5b | 2490 | (exit $ac_status); }; }; then |
6fc74234 | 2491 | : |
705db0b5 | 2492 | else |
6fc74234 AD |
2493 | echo "$as_me: program exited with status $ac_status" >&5 |
2494 | echo "$as_me: failed program was:" >&5 | |
1e24cc5b | 2495 | cat conftest.$ac_ext >&5 |
6fc74234 | 2496 | ac_cv_header_stdc=no |
1e24cc5b | 2497 | fi |
6fc74234 | 2498 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
1e24cc5b | 2499 | fi |
6fc74234 AD |
2500 | fi |
2501 | fi | |
2502 | echo "$as_me:2502: result: $ac_cv_header_stdc" >&5 | |
2503 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
2504 | if test $ac_cv_header_stdc = yes; then | |
2505 | ||
2506 | cat >>confdefs.h <<\_ACEOF | |
2507 | #define STDC_HEADERS 1 | |
2508 | _ACEOF | |
2509 | ||
705db0b5 AD |
2510 | fi |
2511 | ||
6fc74234 AD |
2512 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
2513 | ||
2514 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
2515 | inttypes.h stdint.h unistd.h | |
2516 | do | |
2517 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
2518 | echo "$as_me:2518: checking for $ac_header" >&5 | |
2519 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2520 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18569462 | 2521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 | 2522 | else |
18569462 | 2523 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 2524 | #line 2524 "configure" |
705db0b5 | 2525 | #include "confdefs.h" |
6fc74234 AD |
2526 | $ac_includes_default |
2527 | ||
2528 | #include <$ac_header> | |
2529 | _ACEOF | |
2530 | rm -f conftest.$ac_objext | |
2531 | if { (eval echo "$as_me:2531: \"$ac_compile\"") >&5 | |
2532 | (eval $ac_compile) 2>&5 | |
2533 | ac_status=$? | |
2534 | echo "$as_me:2534: \$? = $ac_status" >&5 | |
2535 | (exit $ac_status); } && | |
2536 | { ac_try='test -s conftest.$ac_objext' | |
2537 | { (eval echo "$as_me:2537: \"$ac_try\"") >&5 | |
2538 | (eval $ac_try) 2>&5 | |
2539 | ac_status=$? | |
2540 | echo "$as_me:2540: \$? = $ac_status" >&5 | |
2541 | (exit $ac_status); }; }; then | |
2542 | eval "$as_ac_Header=yes" | |
2543 | else | |
2544 | echo "$as_me: failed program was:" >&5 | |
2545 | cat conftest.$ac_ext >&5 | |
2546 | eval "$as_ac_Header=no" | |
2547 | fi | |
2548 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2549 | fi | |
2550 | echo "$as_me:2550: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2551 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2552 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2553 | cat >>confdefs.h <<_ACEOF | |
2554 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2555 | _ACEOF | |
2556 | ||
2557 | fi | |
2558 | ||
2559 | done | |
2560 | ||
2561 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
2562 | echo "$as_me:2562: checking for minix/config.h" >&5 | |
2563 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
2564 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
2565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2566 | fi | |
2567 | echo "$as_me:2567: result: $ac_cv_header_minix_config_h" >&5 | |
2568 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
2569 | else | |
2570 | # Is the header compilable? | |
2571 | echo "$as_me:2571: checking minix/config.h usability" >&5 | |
2572 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 | |
2573 | cat >conftest.$ac_ext <<_ACEOF | |
2574 | #line 2574 "configure" | |
2575 | #include "confdefs.h" | |
2576 | $ac_includes_default | |
2577 | #include <minix/config.h> | |
2578 | _ACEOF | |
2579 | rm -f conftest.$ac_objext | |
2580 | if { (eval echo "$as_me:2580: \"$ac_compile\"") >&5 | |
2581 | (eval $ac_compile) 2>&5 | |
2582 | ac_status=$? | |
2583 | echo "$as_me:2583: \$? = $ac_status" >&5 | |
2584 | (exit $ac_status); } && | |
2585 | { ac_try='test -s conftest.$ac_objext' | |
2586 | { (eval echo "$as_me:2586: \"$ac_try\"") >&5 | |
2587 | (eval $ac_try) 2>&5 | |
2588 | ac_status=$? | |
2589 | echo "$as_me:2589: \$? = $ac_status" >&5 | |
2590 | (exit $ac_status); }; }; then | |
2591 | ac_header_compiler=yes | |
2592 | else | |
2593 | echo "$as_me: failed program was:" >&5 | |
2594 | cat conftest.$ac_ext >&5 | |
2595 | ac_header_compiler=no | |
2596 | fi | |
2597 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2598 | echo "$as_me:2598: result: $ac_header_compiler" >&5 | |
2599 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
2600 | ||
2601 | # Is the header present? | |
2602 | echo "$as_me:2602: checking minix/config.h presence" >&5 | |
2603 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 | |
2604 | cat >conftest.$ac_ext <<_ACEOF | |
2605 | #line 2605 "configure" | |
2606 | #include "confdefs.h" | |
2607 | #include <minix/config.h> | |
2608 | _ACEOF | |
2609 | if { (eval echo "$as_me:2609: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2610 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2611 | ac_status=$? | |
2612 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2613 | rm -f conftest.er1 | |
2614 | cat conftest.err >&5 | |
2615 | echo "$as_me:2615: \$? = $ac_status" >&5 | |
2616 | (exit $ac_status); } >/dev/null; then | |
2617 | if test -s conftest.err; then | |
2618 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2619 | else | |
2620 | ac_cpp_err= | |
2621 | fi | |
2622 | else | |
2623 | ac_cpp_err=yes | |
2624 | fi | |
2625 | if test -z "$ac_cpp_err"; then | |
2626 | ac_header_preproc=yes | |
2627 | else | |
2628 | echo "$as_me: failed program was:" >&5 | |
2629 | cat conftest.$ac_ext >&5 | |
2630 | ac_header_preproc=no | |
2631 | fi | |
2632 | rm -f conftest.err conftest.$ac_ext | |
2633 | echo "$as_me:2633: result: $ac_header_preproc" >&5 | |
2634 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
2635 | ||
2636 | # So? What about this header? | |
2637 | case $ac_header_compiler:$ac_header_preproc in | |
2638 | yes:no ) | |
2639 | { echo "$as_me:2639: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2640 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2641 | { echo "$as_me:2641: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
2642 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; | |
2643 | no:yes ) | |
2644 | { echo "$as_me:2644: WARNING: minix/config.h: present but cannot be compiled." >&5 | |
2645 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;} | |
2646 | { echo "$as_me:2646: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
2647 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
2648 | { echo "$as_me:2648: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
2649 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; | |
2650 | esac | |
2651 | echo "$as_me:2651: checking for minix/config.h" >&5 | |
2652 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
2653 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
2654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2655 | else | |
2656 | ac_cv_header_minix_config_h=$ac_header_preproc | |
2657 | fi | |
2658 | echo "$as_me:2658: result: $ac_cv_header_minix_config_h" >&5 | |
2659 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
2660 | ||
2661 | fi | |
2662 | if test $ac_cv_header_minix_config_h = yes; then | |
2663 | MINIX=yes | |
2664 | else | |
2665 | MINIX= | |
2666 | fi | |
2667 | ||
2668 | if test "$MINIX" = yes; then | |
2669 | ||
2670 | cat >>confdefs.h <<\_ACEOF | |
2671 | #define _POSIX_SOURCE 1 | |
2672 | _ACEOF | |
2673 | ||
2674 | cat >>confdefs.h <<\_ACEOF | |
2675 | #define _POSIX_1_SOURCE 2 | |
2676 | _ACEOF | |
2677 | ||
2678 | cat >>confdefs.h <<\_ACEOF | |
2679 | #define _MINIX 1 | |
2680 | _ACEOF | |
2681 | ||
2682 | fi | |
2683 | ||
2684 | echo "$as_me:2684: checking for strerror in -lcposix" >&5 | |
2685 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 | |
2686 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then | |
2687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2688 | else | |
2689 | ac_check_lib_save_LIBS=$LIBS | |
2690 | LIBS="-lcposix $LIBS" | |
2691 | cat >conftest.$ac_ext <<_ACEOF | |
2692 | #line 2692 "configure" | |
2693 | #include "confdefs.h" | |
2694 | ||
2695 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2696 | #ifdef __cplusplus | |
2697 | extern "C" | |
2698 | #endif | |
2699 | /* We use char because int might match the return type of a gcc2 | |
2700 | builtin and then its argument prototype would still apply. */ | |
2701 | char strerror (); | |
2702 | #ifdef F77_DUMMY_MAIN | |
2703 | # ifdef __cplusplus | |
2704 | extern "C" | |
2705 | # endif | |
2706 | int F77_DUMMY_MAIN() { return 1; } | |
2707 | #endif | |
2708 | int | |
2709 | main () | |
2710 | { | |
2711 | strerror (); | |
2712 | ; | |
2713 | return 0; | |
2714 | } | |
2715 | _ACEOF | |
2716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2717 | if { (eval echo "$as_me:2717: \"$ac_link\"") >&5 | |
2718 | (eval $ac_link) 2>&5 | |
2719 | ac_status=$? | |
2720 | echo "$as_me:2720: \$? = $ac_status" >&5 | |
2721 | (exit $ac_status); } && | |
2722 | { ac_try='test -s conftest$ac_exeext' | |
2723 | { (eval echo "$as_me:2723: \"$ac_try\"") >&5 | |
2724 | (eval $ac_try) 2>&5 | |
2725 | ac_status=$? | |
2726 | echo "$as_me:2726: \$? = $ac_status" >&5 | |
2727 | (exit $ac_status); }; }; then | |
2728 | ac_cv_lib_cposix_strerror=yes | |
2729 | else | |
2730 | echo "$as_me: failed program was:" >&5 | |
2731 | cat conftest.$ac_ext >&5 | |
2732 | ac_cv_lib_cposix_strerror=no | |
2733 | fi | |
2734 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2735 | LIBS=$ac_check_lib_save_LIBS | |
2736 | fi | |
2737 | echo "$as_me:2737: result: $ac_cv_lib_cposix_strerror" >&5 | |
2738 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 | |
2739 | if test $ac_cv_lib_cposix_strerror = yes; then | |
2740 | LIBS="$LIBS -lcposix" | |
2741 | fi | |
2742 | ||
2743 | echo "$as_me:2743: checking for ${CC-cc} option to accept ANSI C" >&5 | |
2744 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
2745 | if test "${am_cv_prog_cc_stdc+set}" = set; then | |
2746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2747 | else | |
2748 | am_cv_prog_cc_stdc=no | |
2749 | ac_save_CC="$CC" | |
2750 | # Don't try gcc -ansi; that turns off useful extensions and | |
2751 | # breaks some systems' header files. | |
2752 | # AIX -qlanglvl=ansi | |
2753 | # Ultrix and OSF/1 -std1 | |
2754 | # HP-UX 10.20 and later -Ae | |
2755 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2756 | # SVR4 -Xc -D__EXTENSIONS__ | |
2757 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2758 | do | |
2759 | CC="$ac_save_CC $ac_arg" | |
2760 | cat >conftest.$ac_ext <<_ACEOF | |
2761 | #line 2761 "configure" | |
2762 | #include "confdefs.h" | |
2763 | #include <stdarg.h> | |
2764 | #include <stdio.h> | |
2765 | #include <sys/types.h> | |
2766 | #include <sys/stat.h> | |
2767 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2768 | struct buf { int x; }; | |
2769 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2770 | static char *e (p, i) | |
705db0b5 AD |
2771 | char **p; |
2772 | int i; | |
2773 | { | |
2774 | return p[i]; | |
2775 | } | |
2776 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2777 | { | |
2778 | char *s; | |
2779 | va_list v; | |
2780 | va_start (v,p); | |
2781 | s = g (p, va_arg (v,int)); | |
2782 | va_end (v); | |
2783 | return s; | |
2784 | } | |
2785 | int test (int i, double x); | |
2786 | struct s1 {int (*f) (int a);}; | |
2787 | struct s2 {int (*f) (double a);}; | |
2788 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2789 | int argc; | |
2790 | char **argv; | |
2791 | ||
6fc74234 AD |
2792 | #ifdef F77_DUMMY_MAIN |
2793 | # ifdef __cplusplus | |
2794 | extern "C" | |
2795 | # endif | |
2796 | int F77_DUMMY_MAIN() { return 1; } | |
2797 | #endif | |
18569462 AD |
2798 | int |
2799 | main () | |
2800 | { | |
705db0b5 AD |
2801 | |
2802 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2803 | ||
18569462 AD |
2804 | ; |
2805 | return 0; | |
2806 | } | |
2807 | _ACEOF | |
2808 | rm -f conftest.$ac_objext | |
6fc74234 | 2809 | if { (eval echo "$as_me:2809: \"$ac_compile\"") >&5 |
18569462 AD |
2810 | (eval $ac_compile) 2>&5 |
2811 | ac_status=$? | |
6fc74234 | 2812 | echo "$as_me:2812: \$? = $ac_status" >&5 |
18569462 | 2813 | (exit $ac_status); } && |
5141b016 | 2814 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 2815 | { (eval echo "$as_me:2815: \"$ac_try\"") >&5 |
18569462 AD |
2816 | (eval $ac_try) 2>&5 |
2817 | ac_status=$? | |
6fc74234 | 2818 | echo "$as_me:2818: \$? = $ac_status" >&5 |
18569462 | 2819 | (exit $ac_status); }; }; then |
705db0b5 AD |
2820 | am_cv_prog_cc_stdc="$ac_arg"; break |
2821 | else | |
18569462 AD |
2822 | echo "$as_me: failed program was:" >&5 |
2823 | cat conftest.$ac_ext >&5 | |
705db0b5 | 2824 | fi |
18569462 | 2825 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
2826 | done |
2827 | CC="$ac_save_CC" | |
2828 | ||
2829 | fi | |
2830 | ||
2831 | if test -z "$am_cv_prog_cc_stdc"; then | |
6fc74234 | 2832 | echo "$as_me:2832: result: none needed" >&5 |
18569462 | 2833 | echo "${ECHO_T}none needed" >&6 |
705db0b5 | 2834 | else |
6fc74234 | 2835 | echo "$as_me:2835: result: $am_cv_prog_cc_stdc" >&5 |
18569462 | 2836 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 |
705db0b5 AD |
2837 | fi |
2838 | case "x$am_cv_prog_cc_stdc" in | |
2839 | x|xno) ;; | |
2840 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2841 | esac | |
2842 | ||
1e24cc5b AD |
2843 | if test -n "$ac_tool_prefix"; then |
2844 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2845 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6fc74234 | 2846 | echo "$as_me:2846: checking for $ac_word" >&5 |
1e24cc5b AD |
2847 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2848 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
18569462 | 2849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 AD |
2850 | else |
2851 | if test -n "$RANLIB"; then | |
2852 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2853 | else | |
5141b016 | 2854 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
2855 | ac_dummy="$PATH" |
2856 | for ac_dir in $ac_dummy; do | |
2857 | IFS=$ac_save_IFS | |
2858 | test -z "$ac_dir" && ac_dir=. | |
2859 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2860 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6fc74234 | 2861 | echo "$as_me:2861: found $ac_dir/$ac_word" >&5 |
18569462 AD |
2862 | break |
2863 | done | |
2864 | ||
705db0b5 AD |
2865 | fi |
2866 | fi | |
18569462 | 2867 | RANLIB=$ac_cv_prog_RANLIB |
705db0b5 | 2868 | if test -n "$RANLIB"; then |
6fc74234 | 2869 | echo "$as_me:2869: result: $RANLIB" >&5 |
18569462 AD |
2870 | echo "${ECHO_T}$RANLIB" >&6 |
2871 | else | |
6fc74234 | 2872 | echo "$as_me:2872: result: no" >&5 |
18569462 AD |
2873 | echo "${ECHO_T}no" >&6 |
2874 | fi | |
2875 | ||
2876 | fi | |
2877 | if test -z "$ac_cv_prog_RANLIB"; then | |
2878 | ac_ct_RANLIB=$RANLIB | |
2879 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2880 | set dummy ranlib; ac_word=$2 | |
6fc74234 | 2881 | echo "$as_me:2881: checking for $ac_word" >&5 |
18569462 AD |
2882 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2883 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2885 | else | |
2886 | if test -n "$ac_ct_RANLIB"; then | |
2887 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2888 | else | |
5141b016 | 2889 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
2890 | ac_dummy="$PATH" |
2891 | for ac_dir in $ac_dummy; do | |
2892 | IFS=$ac_save_IFS | |
2893 | test -z "$ac_dir" && ac_dir=. | |
2894 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2895 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6fc74234 | 2896 | echo "$as_me:2896: found $ac_dir/$ac_word" >&5 |
18569462 AD |
2897 | break |
2898 | done | |
2899 | ||
2900 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2901 | fi | |
2902 | fi | |
2903 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2904 | if test -n "$ac_ct_RANLIB"; then | |
6fc74234 | 2905 | echo "$as_me:2905: result: $ac_ct_RANLIB" >&5 |
18569462 AD |
2906 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
2907 | else | |
6fc74234 | 2908 | echo "$as_me:2908: result: no" >&5 |
18569462 AD |
2909 | echo "${ECHO_T}no" >&6 |
2910 | fi | |
2911 | ||
2912 | RANLIB=$ac_ct_RANLIB | |
705db0b5 | 2913 | else |
18569462 | 2914 | RANLIB="$ac_cv_prog_RANLIB" |
705db0b5 AD |
2915 | fi |
2916 | ||
2917 | # GNU M4 is needed to build the testsuite. | |
2918 | for ac_prog in gm4 gnum4 m4 | |
2919 | do | |
18569462 | 2920 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
705db0b5 | 2921 | set dummy $ac_prog; ac_word=$2 |
6fc74234 | 2922 | echo "$as_me:2922: checking for $ac_word" >&5 |
18569462 AD |
2923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2924 | if test "${ac_cv_path_M4+set}" = set; then | |
2925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 2926 | else |
18569462 AD |
2927 | case $M4 in |
2928 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
2929 | ac_cv_path_M4="$M4" # Let the user override the test with a path. |
2930 | ;; | |
705db0b5 | 2931 | *) |
5141b016 | 2932 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
2933 | ac_dummy="$PATH" |
2934 | for ac_dir in $ac_dummy; do | |
2935 | IFS=$ac_save_IFS | |
2936 | test -z "$ac_dir" && ac_dir=. | |
2937 | if $as_executable_p "$ac_dir/$ac_word"; then | |
2938 | ac_cv_path_M4="$ac_dir/$ac_word" | |
6fc74234 | 2939 | echo "$as_me:2939: found $ac_dir/$ac_word" >&5 |
18569462 AD |
2940 | break |
2941 | fi | |
2942 | done | |
2943 | ||
705db0b5 AD |
2944 | ;; |
2945 | esac | |
2946 | fi | |
18569462 AD |
2947 | M4=$ac_cv_path_M4 |
2948 | ||
705db0b5 | 2949 | if test -n "$M4"; then |
6fc74234 | 2950 | echo "$as_me:2950: result: $M4" >&5 |
18569462 | 2951 | echo "${ECHO_T}$M4" >&6 |
705db0b5 | 2952 | else |
6fc74234 | 2953 | echo "$as_me:2953: result: no" >&5 |
18569462 | 2954 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
2955 | fi |
2956 | ||
18569462 | 2957 | test -n "$M4" && break |
705db0b5 AD |
2958 | done |
2959 | test -n "$M4" || M4="m4" | |
2960 | ||
6fc74234 | 2961 | echo "$as_me:2961: checking whether m4 supports frozen files" >&5 |
18569462 AD |
2962 | echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6 |
2963 | if test "${ac_cv_prog_gnu_m4+set}" = set; then | |
2964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
2965 | else |
2966 | ac_cv_prog_gnu_m4=no | |
2967 | if test x"$M4" != x; then | |
2968 | case `$M4 --help < /dev/null 2>&1` in | |
2969 | *reload-state*) ac_cv_prog_gnu_m4=yes ;; | |
2970 | esac | |
2971 | fi | |
2972 | fi | |
6fc74234 | 2973 | echo "$as_me:2973: result: $ac_cv_prog_gnu_m4" >&5 |
18569462 | 2974 | echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6 |
1e24cc5b | 2975 | |
705db0b5 AD |
2976 | if test "$ac_cv_prog_gnu_m4" != yes; then |
2977 | missing_dir=`cd $ac_aux_dir && pwd` | |
2978 | M4="$missing_dir/missing m4" | |
2979 | fi | |
2980 | ||
2981 | # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given. | |
2982 | if test "${enable_gcc_warnings+set}" = set; then | |
2983 | enableval="$enable_gcc_warnings" | |
2984 | case "${enableval}" in | |
2985 | yes|no) ;; | |
6fc74234 | 2986 | *) { { echo "$as_me:2986: error: bad value ${enableval} for gcc-warnings option" >&5 |
18569462 AD |
2987 | echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;} |
2988 | { (exit 1); exit 1; }; } ;; | |
705db0b5 | 2989 | esac |
705db0b5 AD |
2990 | else |
2991 | enableval=no | |
18569462 | 2992 | fi; |
705db0b5 | 2993 | if test "${enableval}" = yes; then |
6fc74234 | 2994 | echo "$as_me:2994: checking whether compiler accepts -Wall" >&5 |
18569462 | 2995 | echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6 |
705db0b5 AD |
2996 | |
2997 | ac_save_CFLAGS="$CFLAGS" | |
2998 | CFLAGS="$CFLAGS -Wall" | |
18569462 | 2999 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3000 | #line 3000 "configure" |
705db0b5 AD |
3001 | #include "confdefs.h" |
3002 | ||
6fc74234 AD |
3003 | #ifdef F77_DUMMY_MAIN |
3004 | # ifdef __cplusplus | |
3005 | extern "C" | |
3006 | # endif | |
3007 | int F77_DUMMY_MAIN() { return 1; } | |
3008 | #endif | |
18569462 AD |
3009 | int |
3010 | main () | |
3011 | { | |
705db0b5 | 3012 | int x; |
18569462 AD |
3013 | ; |
3014 | return 0; | |
3015 | } | |
3016 | _ACEOF | |
3017 | rm -f conftest.$ac_objext | |
6fc74234 | 3018 | if { (eval echo "$as_me:3018: \"$ac_compile\"") >&5 |
18569462 AD |
3019 | (eval $ac_compile) 2>&5 |
3020 | ac_status=$? | |
6fc74234 | 3021 | echo "$as_me:3021: \$? = $ac_status" >&5 |
18569462 | 3022 | (exit $ac_status); } && |
5141b016 | 3023 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3024 | { (eval echo "$as_me:3024: \"$ac_try\"") >&5 |
18569462 AD |
3025 | (eval $ac_try) 2>&5 |
3026 | ac_status=$? | |
6fc74234 | 3027 | echo "$as_me:3027: \$? = $ac_status" >&5 |
18569462 | 3028 | (exit $ac_status); }; }; then |
705db0b5 | 3029 | WARNING_CFLAGS="$WARNING_CFLAGS -Wall" |
6fc74234 | 3030 | echo "$as_me:3030: result: yes" >&5 |
18569462 | 3031 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 3032 | else |
18569462 AD |
3033 | echo "$as_me: failed program was:" >&5 |
3034 | cat conftest.$ac_ext >&5 | |
6fc74234 | 3035 | echo "$as_me:3035: result: no" >&5 |
18569462 | 3036 | echo "${ECHO_T}no" >&6 |
705db0b5 | 3037 | fi |
18569462 | 3038 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3039 | CFLAGS="$ac_save_CFLAGS" |
6fc74234 | 3040 | echo "$as_me:3040: checking whether compiler accepts -W" >&5 |
18569462 | 3041 | echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6 |
705db0b5 AD |
3042 | |
3043 | ac_save_CFLAGS="$CFLAGS" | |
3044 | CFLAGS="$CFLAGS -W" | |
18569462 | 3045 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3046 | #line 3046 "configure" |
705db0b5 AD |
3047 | #include "confdefs.h" |
3048 | ||
6fc74234 AD |
3049 | #ifdef F77_DUMMY_MAIN |
3050 | # ifdef __cplusplus | |
3051 | extern "C" | |
3052 | # endif | |
3053 | int F77_DUMMY_MAIN() { return 1; } | |
3054 | #endif | |
18569462 AD |
3055 | int |
3056 | main () | |
3057 | { | |
705db0b5 | 3058 | int x; |
18569462 AD |
3059 | ; |
3060 | return 0; | |
3061 | } | |
3062 | _ACEOF | |
3063 | rm -f conftest.$ac_objext | |
6fc74234 | 3064 | if { (eval echo "$as_me:3064: \"$ac_compile\"") >&5 |
18569462 AD |
3065 | (eval $ac_compile) 2>&5 |
3066 | ac_status=$? | |
6fc74234 | 3067 | echo "$as_me:3067: \$? = $ac_status" >&5 |
18569462 | 3068 | (exit $ac_status); } && |
5141b016 | 3069 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3070 | { (eval echo "$as_me:3070: \"$ac_try\"") >&5 |
18569462 AD |
3071 | (eval $ac_try) 2>&5 |
3072 | ac_status=$? | |
6fc74234 | 3073 | echo "$as_me:3073: \$? = $ac_status" >&5 |
18569462 | 3074 | (exit $ac_status); }; }; then |
705db0b5 | 3075 | WARNING_CFLAGS="$WARNING_CFLAGS -W" |
6fc74234 | 3076 | echo "$as_me:3076: result: yes" >&5 |
18569462 | 3077 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 3078 | else |
18569462 AD |
3079 | echo "$as_me: failed program was:" >&5 |
3080 | cat conftest.$ac_ext >&5 | |
6fc74234 | 3081 | echo "$as_me:3081: result: no" >&5 |
18569462 | 3082 | echo "${ECHO_T}no" >&6 |
705db0b5 | 3083 | fi |
18569462 | 3084 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3085 | CFLAGS="$ac_save_CFLAGS" |
6fc74234 | 3086 | echo "$as_me:3086: checking whether compiler accepts -Wbad-function-cast" >&5 |
18569462 | 3087 | echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6 |
705db0b5 AD |
3088 | |
3089 | ac_save_CFLAGS="$CFLAGS" | |
3090 | CFLAGS="$CFLAGS -Wbad-function-cast" | |
18569462 | 3091 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3092 | #line 3092 "configure" |
705db0b5 AD |
3093 | #include "confdefs.h" |
3094 | ||
6fc74234 AD |
3095 | #ifdef F77_DUMMY_MAIN |
3096 | # ifdef __cplusplus | |
3097 | extern "C" | |
3098 | # endif | |
3099 | int F77_DUMMY_MAIN() { return 1; } | |
3100 | #endif | |
18569462 AD |
3101 | int |
3102 | main () | |
3103 | { | |
705db0b5 | 3104 | int x; |
18569462 AD |
3105 | ; |
3106 | return 0; | |
3107 | } | |
3108 | _ACEOF | |
3109 | rm -f conftest.$ac_objext | |
6fc74234 | 3110 | if { (eval echo "$as_me:3110: \"$ac_compile\"") >&5 |
18569462 AD |
3111 | (eval $ac_compile) 2>&5 |
3112 | ac_status=$? | |
6fc74234 | 3113 | echo "$as_me:3113: \$? = $ac_status" >&5 |
18569462 | 3114 | (exit $ac_status); } && |
5141b016 | 3115 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3116 | { (eval echo "$as_me:3116: \"$ac_try\"") >&5 |
18569462 AD |
3117 | (eval $ac_try) 2>&5 |
3118 | ac_status=$? | |
6fc74234 | 3119 | echo "$as_me:3119: \$? = $ac_status" >&5 |
18569462 | 3120 | (exit $ac_status); }; }; then |
705db0b5 | 3121 | WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast" |
6fc74234 | 3122 | echo "$as_me:3122: result: yes" >&5 |
18569462 | 3123 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 3124 | else |
18569462 AD |
3125 | echo "$as_me: failed program was:" >&5 |
3126 | cat conftest.$ac_ext >&5 | |
6fc74234 | 3127 | echo "$as_me:3127: result: no" >&5 |
18569462 | 3128 | echo "${ECHO_T}no" >&6 |
705db0b5 | 3129 | fi |
18569462 | 3130 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3131 | CFLAGS="$ac_save_CFLAGS" |
6fc74234 | 3132 | echo "$as_me:3132: checking whether compiler accepts -Wcast-align" >&5 |
18569462 | 3133 | echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6 |
705db0b5 AD |
3134 | |
3135 | ac_save_CFLAGS="$CFLAGS" | |
3136 | CFLAGS="$CFLAGS -Wcast-align" | |
18569462 | 3137 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3138 | #line 3138 "configure" |
705db0b5 AD |
3139 | #include "confdefs.h" |
3140 | ||
6fc74234 AD |
3141 | #ifdef F77_DUMMY_MAIN |
3142 | # ifdef __cplusplus | |
3143 | extern "C" | |
3144 | # endif | |
3145 | int F77_DUMMY_MAIN() { return 1; } | |
3146 | #endif | |
18569462 AD |
3147 | int |
3148 | main () | |
3149 | { | |
705db0b5 | 3150 | int x; |
18569462 AD |
3151 | ; |
3152 | return 0; | |
3153 | } | |
3154 | _ACEOF | |
3155 | rm -f conftest.$ac_objext | |
6fc74234 | 3156 | if { (eval echo "$as_me:3156: \"$ac_compile\"") >&5 |
18569462 AD |
3157 | (eval $ac_compile) 2>&5 |
3158 | ac_status=$? | |
6fc74234 | 3159 | echo "$as_me:3159: \$? = $ac_status" >&5 |
18569462 | 3160 | (exit $ac_status); } && |
5141b016 | 3161 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3162 | { (eval echo "$as_me:3162: \"$ac_try\"") >&5 |
18569462 AD |
3163 | (eval $ac_try) 2>&5 |
3164 | ac_status=$? | |
6fc74234 | 3165 | echo "$as_me:3165: \$? = $ac_status" >&5 |
18569462 | 3166 | (exit $ac_status); }; }; then |
705db0b5 | 3167 | WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align" |
6fc74234 | 3168 | echo "$as_me:3168: result: yes" >&5 |
18569462 | 3169 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 3170 | else |
18569462 AD |
3171 | echo "$as_me: failed program was:" >&5 |
3172 | cat conftest.$ac_ext >&5 | |
6fc74234 | 3173 | echo "$as_me:3173: result: no" >&5 |
18569462 | 3174 | echo "${ECHO_T}no" >&6 |
705db0b5 | 3175 | fi |
18569462 | 3176 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3177 | CFLAGS="$ac_save_CFLAGS" |
6fc74234 | 3178 | echo "$as_me:3178: checking whether compiler accepts -Wcast-qual" >&5 |
18569462 | 3179 | echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6 |
705db0b5 AD |
3180 | |
3181 | ac_save_CFLAGS="$CFLAGS" | |
3182 | CFLAGS="$CFLAGS -Wcast-qual" | |
18569462 | 3183 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3184 | #line 3184 "configure" |
705db0b5 AD |
3185 | #include "confdefs.h" |
3186 | ||
6fc74234 AD |
3187 | #ifdef F77_DUMMY_MAIN |
3188 | # ifdef __cplusplus | |
3189 | extern "C" | |
3190 | # endif | |
3191 | int F77_DUMMY_MAIN() { return 1; } | |
3192 | #endif | |
18569462 AD |
3193 | int |
3194 | main () | |
3195 | { | |
705db0b5 | 3196 | int x; |
18569462 AD |
3197 | ; |
3198 | return 0; | |
3199 | } | |
3200 | _ACEOF | |
3201 | rm -f conftest.$ac_objext | |
6fc74234 | 3202 | if { (eval echo "$as_me:3202: \"$ac_compile\"") >&5 |
18569462 AD |
3203 | (eval $ac_compile) 2>&5 |
3204 | ac_status=$? | |
6fc74234 | 3205 | echo "$as_me:3205: \$? = $ac_status" >&5 |
18569462 | 3206 | (exit $ac_status); } && |
5141b016 | 3207 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3208 | { (eval echo "$as_me:3208: \"$ac_try\"") >&5 |
18569462 AD |
3209 | (eval $ac_try) 2>&5 |
3210 | ac_status=$? | |
6fc74234 | 3211 | echo "$as_me:3211: \$? = $ac_status" >&5 |
18569462 | 3212 | (exit $ac_status); }; }; then |
705db0b5 | 3213 | WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual" |
6fc74234 | 3214 | echo "$as_me:3214: result: yes" >&5 |
18569462 | 3215 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 3216 | else |
18569462 AD |
3217 | echo "$as_me: failed program was:" >&5 |
3218 | cat conftest.$ac_ext >&5 | |
6fc74234 | 3219 | echo "$as_me:3219: result: no" >&5 |
18569462 | 3220 | echo "${ECHO_T}no" >&6 |
705db0b5 | 3221 | fi |
18569462 | 3222 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3223 | CFLAGS="$ac_save_CFLAGS" |
6fc74234 | 3224 | echo "$as_me:3224: checking whether compiler accepts -Wformat" >&5 |
2ce10144 | 3225 | echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6 |
705db0b5 AD |
3226 | |
3227 | ac_save_CFLAGS="$CFLAGS" | |
2ce10144 | 3228 | CFLAGS="$CFLAGS -Wformat" |
18569462 | 3229 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3230 | #line 3230 "configure" |
705db0b5 AD |
3231 | #include "confdefs.h" |
3232 | ||
6fc74234 AD |
3233 | #ifdef F77_DUMMY_MAIN |
3234 | # ifdef __cplusplus | |
3235 | extern "C" | |
3236 | # endif | |
3237 | int F77_DUMMY_MAIN() { return 1; } | |
3238 | #endif | |
18569462 AD |
3239 | int |
3240 | main () | |
3241 | { | |
705db0b5 | 3242 | int x; |
18569462 AD |
3243 | ; |
3244 | return 0; | |
3245 | } | |
3246 | _ACEOF | |
3247 | rm -f conftest.$ac_objext | |
6fc74234 | 3248 | if { (eval echo "$as_me:3248: \"$ac_compile\"") >&5 |
18569462 AD |
3249 | (eval $ac_compile) 2>&5 |
3250 | ac_status=$? | |
6fc74234 | 3251 | echo "$as_me:3251: \$? = $ac_status" >&5 |
18569462 | 3252 | (exit $ac_status); } && |
5141b016 | 3253 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3254 | { (eval echo "$as_me:3254: \"$ac_try\"") >&5 |
18569462 AD |
3255 | (eval $ac_try) 2>&5 |
3256 | ac_status=$? | |
6fc74234 | 3257 | echo "$as_me:3257: \$? = $ac_status" >&5 |
18569462 | 3258 | (exit $ac_status); }; }; then |
2ce10144 | 3259 | WARNING_CFLAGS="$WARNING_CFLAGS -Wformat" |
6fc74234 | 3260 | echo "$as_me:3260: result: yes" >&5 |
18569462 | 3261 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 3262 | else |
18569462 AD |
3263 | echo "$as_me: failed program was:" >&5 |
3264 | cat conftest.$ac_ext >&5 | |
6fc74234 | 3265 | echo "$as_me:3265: result: no" >&5 |
18569462 | 3266 | echo "${ECHO_T}no" >&6 |
705db0b5 | 3267 | fi |
18569462 | 3268 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3269 | CFLAGS="$ac_save_CFLAGS" |
6fc74234 | 3270 | echo "$as_me:3270: checking whether compiler accepts -Wmissing-declarations" >&5 |
2ce10144 | 3271 | echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6 |
705db0b5 AD |
3272 | |
3273 | ac_save_CFLAGS="$CFLAGS" | |
2ce10144 | 3274 | CFLAGS="$CFLAGS -Wmissing-declarations" |
18569462 | 3275 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3276 | #line 3276 "configure" |
705db0b5 AD |
3277 | #include "confdefs.h" |
3278 | ||
6fc74234 AD |
3279 | #ifdef F77_DUMMY_MAIN |
3280 | # ifdef __cplusplus | |
3281 | extern "C" | |
3282 | # endif | |
3283 | int F77_DUMMY_MAIN() { return 1; } | |
3284 | #endif | |
18569462 AD |
3285 | int |
3286 | main () | |
3287 | { | |
705db0b5 | 3288 | int x; |
18569462 AD |
3289 | ; |
3290 | return 0; | |
3291 | } | |
3292 | _ACEOF | |
3293 | rm -f conftest.$ac_objext | |
6fc74234 | 3294 | if { (eval echo "$as_me:3294: \"$ac_compile\"") >&5 |
18569462 AD |
3295 | (eval $ac_compile) 2>&5 |
3296 | ac_status=$? | |
6fc74234 | 3297 | echo "$as_me:3297: \$? = $ac_status" >&5 |
18569462 | 3298 | (exit $ac_status); } && |
5141b016 | 3299 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3300 | { (eval echo "$as_me:3300: \"$ac_try\"") >&5 |
18569462 AD |
3301 | (eval $ac_try) 2>&5 |
3302 | ac_status=$? | |
6fc74234 | 3303 | echo "$as_me:3303: \$? = $ac_status" >&5 |
18569462 | 3304 | (exit $ac_status); }; }; then |
2ce10144 | 3305 | WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations" |
6fc74234 | 3306 | echo "$as_me:3306: result: yes" >&5 |
18569462 | 3307 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 3308 | else |
18569462 AD |
3309 | echo "$as_me: failed program was:" >&5 |
3310 | cat conftest.$ac_ext >&5 | |
6fc74234 | 3311 | echo "$as_me:3311: result: no" >&5 |
18569462 | 3312 | echo "${ECHO_T}no" >&6 |
705db0b5 | 3313 | fi |
18569462 | 3314 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3315 | CFLAGS="$ac_save_CFLAGS" |
6fc74234 | 3316 | echo "$as_me:3316: checking whether compiler accepts -Wmissing-prototypes" >&5 |
2ce10144 | 3317 | echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6 |
705db0b5 AD |
3318 | |
3319 | ac_save_CFLAGS="$CFLAGS" | |
2ce10144 | 3320 | CFLAGS="$CFLAGS -Wmissing-prototypes" |
18569462 | 3321 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3322 | #line 3322 "configure" |
705db0b5 AD |
3323 | #include "confdefs.h" |
3324 | ||
6fc74234 AD |
3325 | #ifdef F77_DUMMY_MAIN |
3326 | # ifdef __cplusplus | |
3327 | extern "C" | |
3328 | # endif | |
3329 | int F77_DUMMY_MAIN() { return 1; } | |
3330 | #endif | |
18569462 AD |
3331 | int |
3332 | main () | |
3333 | { | |
705db0b5 | 3334 | int x; |
18569462 AD |
3335 | ; |
3336 | return 0; | |
3337 | } | |
3338 | _ACEOF | |
3339 | rm -f conftest.$ac_objext | |
6fc74234 | 3340 | if { (eval echo "$as_me:3340: \"$ac_compile\"") >&5 |
18569462 AD |
3341 | (eval $ac_compile) 2>&5 |
3342 | ac_status=$? | |
6fc74234 | 3343 | echo "$as_me:3343: \$? = $ac_status" >&5 |
18569462 | 3344 | (exit $ac_status); } && |
5141b016 | 3345 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3346 | { (eval echo "$as_me:3346: \"$ac_try\"") >&5 |
18569462 AD |
3347 | (eval $ac_try) 2>&5 |
3348 | ac_status=$? | |
6fc74234 | 3349 | echo "$as_me:3349: \$? = $ac_status" >&5 |
18569462 | 3350 | (exit $ac_status); }; }; then |
2ce10144 | 3351 | WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes" |
6fc74234 | 3352 | echo "$as_me:3352: result: yes" >&5 |
18569462 | 3353 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 3354 | else |
18569462 AD |
3355 | echo "$as_me: failed program was:" >&5 |
3356 | cat conftest.$ac_ext >&5 | |
6fc74234 | 3357 | echo "$as_me:3357: result: no" >&5 |
18569462 | 3358 | echo "${ECHO_T}no" >&6 |
705db0b5 | 3359 | fi |
18569462 | 3360 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3361 | CFLAGS="$ac_save_CFLAGS" |
6fc74234 | 3362 | echo "$as_me:3362: checking whether compiler accepts -Wnested-externs" >&5 |
2ce10144 | 3363 | echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6 |
705db0b5 AD |
3364 | |
3365 | ac_save_CFLAGS="$CFLAGS" | |
2ce10144 | 3366 | CFLAGS="$CFLAGS -Wnested-externs" |
18569462 | 3367 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3368 | #line 3368 "configure" |
705db0b5 AD |
3369 | #include "confdefs.h" |
3370 | ||
6fc74234 AD |
3371 | #ifdef F77_DUMMY_MAIN |
3372 | # ifdef __cplusplus | |
3373 | extern "C" | |
3374 | # endif | |
3375 | int F77_DUMMY_MAIN() { return 1; } | |
3376 | #endif | |
18569462 AD |
3377 | int |
3378 | main () | |
3379 | { | |
705db0b5 | 3380 | int x; |
18569462 AD |
3381 | ; |
3382 | return 0; | |
3383 | } | |
3384 | _ACEOF | |
3385 | rm -f conftest.$ac_objext | |
6fc74234 | 3386 | if { (eval echo "$as_me:3386: \"$ac_compile\"") >&5 |
18569462 AD |
3387 | (eval $ac_compile) 2>&5 |
3388 | ac_status=$? | |
6fc74234 | 3389 | echo "$as_me:3389: \$? = $ac_status" >&5 |
18569462 | 3390 | (exit $ac_status); } && |
5141b016 | 3391 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3392 | { (eval echo "$as_me:3392: \"$ac_try\"") >&5 |
18569462 AD |
3393 | (eval $ac_try) 2>&5 |
3394 | ac_status=$? | |
6fc74234 | 3395 | echo "$as_me:3395: \$? = $ac_status" >&5 |
18569462 | 3396 | (exit $ac_status); }; }; then |
2ce10144 | 3397 | WARNING_CFLAGS="$WARNING_CFLAGS -Wnested-externs" |
6fc74234 | 3398 | echo "$as_me:3398: result: yes" >&5 |
18569462 | 3399 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 3400 | else |
18569462 AD |
3401 | echo "$as_me: failed program was:" >&5 |
3402 | cat conftest.$ac_ext >&5 | |
6fc74234 | 3403 | echo "$as_me:3403: result: no" >&5 |
18569462 | 3404 | echo "${ECHO_T}no" >&6 |
705db0b5 | 3405 | fi |
18569462 | 3406 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3407 | CFLAGS="$ac_save_CFLAGS" |
6fc74234 | 3408 | echo "$as_me:3408: checking whether compiler accepts -Wshadow" >&5 |
2ce10144 | 3409 | echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6 |
705db0b5 AD |
3410 | |
3411 | ac_save_CFLAGS="$CFLAGS" | |
2ce10144 | 3412 | CFLAGS="$CFLAGS -Wshadow" |
18569462 | 3413 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3414 | #line 3414 "configure" |
705db0b5 AD |
3415 | #include "confdefs.h" |
3416 | ||
6fc74234 AD |
3417 | #ifdef F77_DUMMY_MAIN |
3418 | # ifdef __cplusplus | |
3419 | extern "C" | |
3420 | # endif | |
3421 | int F77_DUMMY_MAIN() { return 1; } | |
3422 | #endif | |
18569462 AD |
3423 | int |
3424 | main () | |
3425 | { | |
705db0b5 | 3426 | int x; |
18569462 AD |
3427 | ; |
3428 | return 0; | |
3429 | } | |
3430 | _ACEOF | |
3431 | rm -f conftest.$ac_objext | |
6fc74234 | 3432 | if { (eval echo "$as_me:3432: \"$ac_compile\"") >&5 |
18569462 AD |
3433 | (eval $ac_compile) 2>&5 |
3434 | ac_status=$? | |
6fc74234 | 3435 | echo "$as_me:3435: \$? = $ac_status" >&5 |
18569462 | 3436 | (exit $ac_status); } && |
5141b016 | 3437 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3438 | { (eval echo "$as_me:3438: \"$ac_try\"") >&5 |
18569462 AD |
3439 | (eval $ac_try) 2>&5 |
3440 | ac_status=$? | |
6fc74234 | 3441 | echo "$as_me:3441: \$? = $ac_status" >&5 |
18569462 | 3442 | (exit $ac_status); }; }; then |
2ce10144 | 3443 | WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow" |
6fc74234 | 3444 | echo "$as_me:3444: result: yes" >&5 |
18569462 | 3445 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 3446 | else |
18569462 AD |
3447 | echo "$as_me: failed program was:" >&5 |
3448 | cat conftest.$ac_ext >&5 | |
6fc74234 | 3449 | echo "$as_me:3449: result: no" >&5 |
18569462 | 3450 | echo "${ECHO_T}no" >&6 |
705db0b5 | 3451 | fi |
18569462 | 3452 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3453 | CFLAGS="$ac_save_CFLAGS" |
6fc74234 | 3454 | echo "$as_me:3454: checking whether compiler accepts -Wstrict-prototypes" >&5 |
2ce10144 | 3455 | echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6 |
705db0b5 AD |
3456 | |
3457 | ac_save_CFLAGS="$CFLAGS" | |
2ce10144 | 3458 | CFLAGS="$CFLAGS -Wstrict-prototypes" |
18569462 | 3459 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3460 | #line 3460 "configure" |
705db0b5 AD |
3461 | #include "confdefs.h" |
3462 | ||
6fc74234 AD |
3463 | #ifdef F77_DUMMY_MAIN |
3464 | # ifdef __cplusplus | |
3465 | extern "C" | |
3466 | # endif | |
3467 | int F77_DUMMY_MAIN() { return 1; } | |
3468 | #endif | |
18569462 AD |
3469 | int |
3470 | main () | |
3471 | { | |
705db0b5 | 3472 | int x; |
18569462 AD |
3473 | ; |
3474 | return 0; | |
3475 | } | |
3476 | _ACEOF | |
3477 | rm -f conftest.$ac_objext | |
6fc74234 | 3478 | if { (eval echo "$as_me:3478: \"$ac_compile\"") >&5 |
18569462 AD |
3479 | (eval $ac_compile) 2>&5 |
3480 | ac_status=$? | |
6fc74234 | 3481 | echo "$as_me:3481: \$? = $ac_status" >&5 |
18569462 | 3482 | (exit $ac_status); } && |
5141b016 | 3483 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3484 | { (eval echo "$as_me:3484: \"$ac_try\"") >&5 |
18569462 AD |
3485 | (eval $ac_try) 2>&5 |
3486 | ac_status=$? | |
6fc74234 | 3487 | echo "$as_me:3487: \$? = $ac_status" >&5 |
18569462 | 3488 | (exit $ac_status); }; }; then |
2ce10144 | 3489 | WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes" |
6fc74234 | 3490 | echo "$as_me:3490: result: yes" >&5 |
18569462 | 3491 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 3492 | else |
18569462 AD |
3493 | echo "$as_me: failed program was:" >&5 |
3494 | cat conftest.$ac_ext >&5 | |
6fc74234 | 3495 | echo "$as_me:3495: result: no" >&5 |
18569462 | 3496 | echo "${ECHO_T}no" >&6 |
705db0b5 | 3497 | fi |
18569462 | 3498 | rm -f conftest.$ac_objext conftest.$ac_ext |
2ce10144 | 3499 | CFLAGS="$ac_save_CFLAGS" |
6fc74234 | 3500 | echo "$as_me:3500: checking whether compiler accepts -Wwrite-strings" >&5 |
2ce10144 AD |
3501 | echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6 |
3502 | ||
3503 | ac_save_CFLAGS="$CFLAGS" | |
3504 | CFLAGS="$CFLAGS -Wwrite-strings" | |
3505 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 3506 | #line 3506 "configure" |
2ce10144 AD |
3507 | #include "confdefs.h" |
3508 | ||
6fc74234 AD |
3509 | #ifdef F77_DUMMY_MAIN |
3510 | # ifdef __cplusplus | |
3511 | extern "C" | |
3512 | # endif | |
3513 | int F77_DUMMY_MAIN() { return 1; } | |
3514 | #endif | |
2ce10144 AD |
3515 | int |
3516 | main () | |
3517 | { | |
3518 | int x; | |
3519 | ; | |
3520 | return 0; | |
3521 | } | |
3522 | _ACEOF | |
3523 | rm -f conftest.$ac_objext | |
6fc74234 | 3524 | if { (eval echo "$as_me:3524: \"$ac_compile\"") >&5 |
2ce10144 AD |
3525 | (eval $ac_compile) 2>&5 |
3526 | ac_status=$? | |
6fc74234 | 3527 | echo "$as_me:3527: \$? = $ac_status" >&5 |
2ce10144 AD |
3528 | (exit $ac_status); } && |
3529 | { ac_try='test -s conftest.$ac_objext' | |
6fc74234 | 3530 | { (eval echo "$as_me:3530: \"$ac_try\"") >&5 |
2ce10144 AD |
3531 | (eval $ac_try) 2>&5 |
3532 | ac_status=$? | |
6fc74234 | 3533 | echo "$as_me:3533: \$? = $ac_status" >&5 |
2ce10144 AD |
3534 | (exit $ac_status); }; }; then |
3535 | WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings" | |
6fc74234 | 3536 | echo "$as_me:3536: result: yes" >&5 |
2ce10144 AD |
3537 | echo "${ECHO_T}yes" >&6 |
3538 | else | |
3539 | echo "$as_me: failed program was:" >&5 | |
3540 | cat conftest.$ac_ext >&5 | |
6fc74234 | 3541 | echo "$as_me:3541: result: no" >&5 |
2ce10144 AD |
3542 | echo "${ECHO_T}no" >&6 |
3543 | fi | |
3544 | rm -f conftest.$ac_objext conftest.$ac_ext | |
705db0b5 AD |
3545 | CFLAGS="$ac_save_CFLAGS" |
3546 | CFLAGS="$CFLAGS $WARNING_CFLAGS" | |
3547 | fi | |
3548 | ||
3549 | # Checks for libraries. | |
18569462 | 3550 | |
6fc74234 | 3551 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 3552 | #define _GNU_SOURCE 1 |
6fc74234 | 3553 | _ACEOF |
705db0b5 | 3554 | |
705db0b5 | 3555 | # Checks for header files. |
6fc74234 | 3556 | echo "$as_me:3556: checking for ANSI C header files" >&5 |
18569462 AD |
3557 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
3558 | if test "${ac_cv_header_stdc+set}" = set; then | |
3559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 3560 | else |
18569462 | 3561 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3562 | #line 3562 "configure" |
705db0b5 AD |
3563 | #include "confdefs.h" |
3564 | #include <stdlib.h> | |
3565 | #include <stdarg.h> | |
3566 | #include <string.h> | |
3567 | #include <float.h> | |
18569462 AD |
3568 | |
3569 | _ACEOF | |
6fc74234 | 3570 | if { (eval echo "$as_me:3570: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 3571 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
3572 | ac_status=$? |
3573 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3574 | rm -f conftest.er1 | |
3575 | cat conftest.err >&5 | |
6fc74234 | 3576 | echo "$as_me:3576: \$? = $ac_status" >&5 |
1e24cc5b | 3577 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
3578 | if test -s conftest.err; then |
3579 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3580 | else | |
3581 | ac_cpp_err= | |
3582 | fi | |
3583 | else | |
3584 | ac_cpp_err=yes | |
3585 | fi | |
3586 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
3587 | ac_cv_header_stdc=yes |
3588 | else | |
18569462 | 3589 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 3590 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
3591 | ac_cv_header_stdc=no |
3592 | fi | |
18569462 | 3593 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
3594 | |
3595 | if test $ac_cv_header_stdc = yes; then | |
3596 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 3597 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3598 | #line 3598 "configure" |
705db0b5 AD |
3599 | #include "confdefs.h" |
3600 | #include <string.h> | |
18569462 AD |
3601 | |
3602 | _ACEOF | |
705db0b5 AD |
3603 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3604 | egrep "memchr" >/dev/null 2>&1; then | |
3605 | : | |
3606 | else | |
705db0b5 AD |
3607 | ac_cv_header_stdc=no |
3608 | fi | |
3609 | rm -f conftest* | |
3610 | ||
3611 | fi | |
3612 | ||
3613 | if test $ac_cv_header_stdc = yes; then | |
3614 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 3615 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3616 | #line 3616 "configure" |
705db0b5 AD |
3617 | #include "confdefs.h" |
3618 | #include <stdlib.h> | |
18569462 AD |
3619 | |
3620 | _ACEOF | |
705db0b5 AD |
3621 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3622 | egrep "free" >/dev/null 2>&1; then | |
3623 | : | |
3624 | else | |
705db0b5 AD |
3625 | ac_cv_header_stdc=no |
3626 | fi | |
3627 | rm -f conftest* | |
3628 | ||
3629 | fi | |
3630 | ||
3631 | if test $ac_cv_header_stdc = yes; then | |
3632 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 3633 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
3634 | : |
3635 | else | |
18569462 | 3636 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 3637 | #line 3637 "configure" |
705db0b5 AD |
3638 | #include "confdefs.h" |
3639 | #include <ctype.h> | |
18569462 AD |
3640 | #if ((' ' & 0x0FF) == 0x020) |
3641 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3642 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3643 | #else | |
3644 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
3645 | || ('j' <= (c) && (c) <= 'r') \ | |
3646 | || ('s' <= (c) && (c) <= 'z')) | |
3647 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3648 | #endif | |
705db0b5 | 3649 | |
18569462 AD |
3650 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3651 | int | |
3652 | main () | |
3653 | { | |
3654 | int i; | |
3655 | for (i = 0; i < 256; i++) | |
3656 | if (XOR (islower (i), ISLOWER (i)) | |
3657 | || toupper (i) != TOUPPER (i)) | |
3658 | exit(2); | |
3659 | exit (0); | |
3660 | } | |
3661 | _ACEOF | |
3662 | rm -f conftest$ac_exeext | |
6fc74234 | 3663 | if { (eval echo "$as_me:3663: \"$ac_link\"") >&5 |
18569462 AD |
3664 | (eval $ac_link) 2>&5 |
3665 | ac_status=$? | |
6fc74234 | 3666 | echo "$as_me:3666: \$? = $ac_status" >&5 |
5141b016 | 3667 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6fc74234 | 3668 | { (eval echo "$as_me:3668: \"$ac_try\"") >&5 |
18569462 AD |
3669 | (eval $ac_try) 2>&5 |
3670 | ac_status=$? | |
6fc74234 | 3671 | echo "$as_me:3671: \$? = $ac_status" >&5 |
18569462 | 3672 | (exit $ac_status); }; }; then |
705db0b5 AD |
3673 | : |
3674 | else | |
18569462 AD |
3675 | echo "$as_me: program exited with status $ac_status" >&5 |
3676 | echo "$as_me: failed program was:" >&5 | |
3677 | cat conftest.$ac_ext >&5 | |
3678 | ac_cv_header_stdc=no | |
705db0b5 | 3679 | fi |
459dd1a6 | 3680 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3681 | fi |
705db0b5 AD |
3682 | fi |
3683 | fi | |
6fc74234 | 3684 | echo "$as_me:3684: result: $ac_cv_header_stdc" >&5 |
18569462 | 3685 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 3686 | if test $ac_cv_header_stdc = yes; then |
18569462 | 3687 | |
6fc74234 | 3688 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 3689 | #define STDC_HEADERS 1 |
6fc74234 | 3690 | _ACEOF |
705db0b5 AD |
3691 | |
3692 | fi | |
3693 | ||
18569462 | 3694 | for ac_header in ctype.h locale.h memory.h stdlib.h string.h unistd.h |
705db0b5 | 3695 | do |
459dd1a6 | 3696 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6fc74234 AD |
3697 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3698 | echo "$as_me:3698: checking for $ac_header" >&5 | |
18569462 | 3699 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 3700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 | 3701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6fc74234 AD |
3702 | fi |
3703 | echo "$as_me:3703: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3704 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18569462 | 3705 | else |
6fc74234 AD |
3706 | # Is the header compilable? |
3707 | echo "$as_me:3707: checking $ac_header usability" >&5 | |
3708 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3709 | cat >conftest.$ac_ext <<_ACEOF | |
3710 | #line 3710 "configure" | |
3711 | #include "confdefs.h" | |
3712 | $ac_includes_default | |
3713 | #include <$ac_header> | |
3714 | _ACEOF | |
3715 | rm -f conftest.$ac_objext | |
3716 | if { (eval echo "$as_me:3716: \"$ac_compile\"") >&5 | |
3717 | (eval $ac_compile) 2>&5 | |
3718 | ac_status=$? | |
3719 | echo "$as_me:3719: \$? = $ac_status" >&5 | |
3720 | (exit $ac_status); } && | |
3721 | { ac_try='test -s conftest.$ac_objext' | |
3722 | { (eval echo "$as_me:3722: \"$ac_try\"") >&5 | |
3723 | (eval $ac_try) 2>&5 | |
3724 | ac_status=$? | |
3725 | echo "$as_me:3725: \$? = $ac_status" >&5 | |
3726 | (exit $ac_status); }; }; then | |
3727 | ac_header_compiler=yes | |
3728 | else | |
3729 | echo "$as_me: failed program was:" >&5 | |
3730 | cat conftest.$ac_ext >&5 | |
3731 | ac_header_compiler=no | |
3732 | fi | |
3733 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3734 | echo "$as_me:3734: result: $ac_header_compiler" >&5 | |
3735 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3736 | ||
3737 | # Is the header present? | |
3738 | echo "$as_me:3738: checking $ac_header presence" >&5 | |
3739 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3740 | cat >conftest.$ac_ext <<_ACEOF | |
3741 | #line 3741 "configure" | |
705db0b5 | 3742 | #include "confdefs.h" |
18569462 AD |
3743 | #include <$ac_header> |
3744 | _ACEOF | |
6fc74234 | 3745 | if { (eval echo "$as_me:3745: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 3746 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
3747 | ac_status=$? |
3748 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3749 | rm -f conftest.er1 | |
3750 | cat conftest.err >&5 | |
6fc74234 | 3751 | echo "$as_me:3751: \$? = $ac_status" >&5 |
1e24cc5b | 3752 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
3753 | if test -s conftest.err; then |
3754 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3755 | else | |
3756 | ac_cpp_err= | |
3757 | fi | |
3758 | else | |
3759 | ac_cpp_err=yes | |
3760 | fi | |
3761 | if test -z "$ac_cpp_err"; then | |
6fc74234 | 3762 | ac_header_preproc=yes |
18569462 AD |
3763 | else |
3764 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 3765 | cat conftest.$ac_ext >&5 |
6fc74234 | 3766 | ac_header_preproc=no |
705db0b5 | 3767 | fi |
18569462 | 3768 | rm -f conftest.err conftest.$ac_ext |
6fc74234 AD |
3769 | echo "$as_me:3769: result: $ac_header_preproc" >&5 |
3770 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3771 | ||
3772 | # So? What about this header? | |
3773 | case $ac_header_compiler:$ac_header_preproc in | |
3774 | yes:no ) | |
3775 | { echo "$as_me:3775: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3776 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3777 | { echo "$as_me:3777: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3778 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
3779 | no:yes ) | |
3780 | { echo "$as_me:3780: WARNING: $ac_header: present but cannot be compiled." >&5 | |
3781 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;} | |
3782 | { echo "$as_me:3782: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3783 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3784 | { echo "$as_me:3784: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3785 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
3786 | esac | |
3787 | echo "$as_me:3787: checking for $ac_header" >&5 | |
3788 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3789 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3791 | else | |
3792 | eval "$as_ac_Header=$ac_header_preproc" | |
705db0b5 | 3793 | fi |
6fc74234 | 3794 | echo "$as_me:3794: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 | 3795 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6fc74234 AD |
3796 | |
3797 | fi | |
459dd1a6 | 3798 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6fc74234 | 3799 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 3800 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6fc74234 | 3801 | _ACEOF |
18569462 | 3802 | |
705db0b5 | 3803 | fi |
6fc74234 | 3804 | |
705db0b5 AD |
3805 | done |
3806 | ||
705db0b5 AD |
3807 | # Checks for typedefs. |
3808 | ||
3809 | # Checks for structures. | |
3810 | ||
3811 | # Checks for compiler characteristics. | |
6fc74234 | 3812 | echo "$as_me:3812: checking for $CC option to accept ANSI C" >&5 |
18569462 AD |
3813 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
3814 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3816 | else | |
3817 | ac_cv_prog_cc_stdc=no | |
3818 | ac_save_CC=$CC | |
3819 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 3820 | #line 3820 "configure" |
705db0b5 | 3821 | #include "confdefs.h" |
18569462 AD |
3822 | #include <stdarg.h> |
3823 | #include <stdio.h> | |
3824 | #include <sys/types.h> | |
3825 | #include <sys/stat.h> | |
3826 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3827 | struct buf { int x; }; | |
3828 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3829 | static char *e (p, i) | |
3830 | char **p; | |
3831 | int i; | |
3832 | { | |
3833 | return p[i]; | |
705db0b5 | 3834 | } |
18569462 AD |
3835 | static char *f (char * (*g) (char **, int), char **p, ...) |
3836 | { | |
3837 | char *s; | |
3838 | va_list v; | |
3839 | va_start (v,p); | |
3840 | s = g (p, va_arg (v,int)); | |
3841 | va_end (v); | |
3842 | return s; | |
705db0b5 | 3843 | } |
18569462 AD |
3844 | int test (int i, double x); |
3845 | struct s1 {int (*f) (int a);}; | |
3846 | struct s2 {int (*f) (double a);}; | |
3847 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3848 | int argc; | |
3849 | char **argv; | |
6fc74234 AD |
3850 | #ifdef F77_DUMMY_MAIN |
3851 | # ifdef __cplusplus | |
3852 | extern "C" | |
3853 | # endif | |
3854 | int F77_DUMMY_MAIN() { return 1; } | |
3855 | #endif | |
18569462 AD |
3856 | int |
3857 | main () | |
3858 | { | |
3859 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3860 | ; | |
3861 | return 0; | |
705db0b5 | 3862 | } |
18569462 AD |
3863 | _ACEOF |
3864 | # Don't try gcc -ansi; that turns off useful extensions and | |
3865 | # breaks some systems' header files. | |
3866 | # AIX -qlanglvl=ansi | |
3867 | # Ultrix and OSF/1 -std1 | |
3868 | # HP-UX 10.20 and later -Ae | |
3869 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3870 | # SVR4 -Xc -D__EXTENSIONS__ | |
3871 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3872 | do | |
3873 | CC="$ac_save_CC $ac_arg" | |
3874 | rm -f conftest.$ac_objext | |
6fc74234 | 3875 | if { (eval echo "$as_me:3875: \"$ac_compile\"") >&5 |
18569462 AD |
3876 | (eval $ac_compile) 2>&5 |
3877 | ac_status=$? | |
6fc74234 | 3878 | echo "$as_me:3878: \$? = $ac_status" >&5 |
18569462 | 3879 | (exit $ac_status); } && |
5141b016 | 3880 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3881 | { (eval echo "$as_me:3881: \"$ac_try\"") >&5 |
18569462 AD |
3882 | (eval $ac_try) 2>&5 |
3883 | ac_status=$? | |
6fc74234 | 3884 | echo "$as_me:3884: \$? = $ac_status" >&5 |
18569462 AD |
3885 | (exit $ac_status); }; }; then |
3886 | ac_cv_prog_cc_stdc=$ac_arg | |
3887 | break | |
3888 | else | |
3889 | echo "$as_me: failed program was:" >&5 | |
3890 | cat conftest.$ac_ext >&5 | |
3891 | fi | |
3892 | rm -f conftest.$ac_objext | |
3893 | done | |
3894 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3895 | CC=$ac_save_CC | |
705db0b5 | 3896 | |
18569462 AD |
3897 | fi |
3898 | ||
3899 | case "x$ac_cv_prog_cc_stdc" in | |
3900 | x|xno) | |
6fc74234 | 3901 | echo "$as_me:3901: result: none needed" >&5 |
18569462 AD |
3902 | echo "${ECHO_T}none needed" >&6 ;; |
3903 | *) | |
6fc74234 | 3904 | echo "$as_me:3904: result: $ac_cv_prog_cc_stdc" >&5 |
18569462 AD |
3905 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
3906 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3907 | esac | |
3908 | ||
6fc74234 | 3909 | echo "$as_me:3909: checking for an ANSI C-conforming const" >&5 |
18569462 AD |
3910 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
3911 | if test "${ac_cv_c_const+set}" = set; then | |
3912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3913 | else | |
3914 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 3915 | #line 3915 "configure" |
18569462 AD |
3916 | #include "confdefs.h" |
3917 | ||
6fc74234 AD |
3918 | #ifdef F77_DUMMY_MAIN |
3919 | # ifdef __cplusplus | |
3920 | extern "C" | |
3921 | # endif | |
3922 | int F77_DUMMY_MAIN() { return 1; } | |
3923 | #endif | |
18569462 AD |
3924 | int |
3925 | main () | |
3926 | { | |
3927 | /* FIXME: Include the comments suggested by Paul. */ | |
3928 | #ifndef __cplusplus | |
3929 | /* Ultrix mips cc rejects this. */ | |
3930 | typedef int charset[2]; | |
3931 | const charset x; | |
3932 | /* SunOS 4.1.1 cc rejects this. */ | |
3933 | char const *const *ccp; | |
3934 | char **p; | |
3935 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3936 | struct point {int x, y;}; | |
3937 | static struct point const zero = {0,0}; | |
3938 | /* AIX XL C 1.02.0.0 rejects this. | |
3939 | It does not let you subtract one const X* pointer from another in | |
3940 | an arm of an if-expression whose if-part is not a constant | |
3941 | expression */ | |
3942 | const char *g = "string"; | |
3943 | ccp = &g + (g ? g-g : 0); | |
3944 | /* HPUX 7.0 cc rejects these. */ | |
3945 | ++ccp; | |
3946 | p = (char**) ccp; | |
3947 | ccp = (char const *const *) p; | |
3948 | { /* SCO 3.2v4 cc rejects this. */ | |
3949 | char *t; | |
3950 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3951 | ||
3952 | *t++ = 0; | |
3953 | } | |
3954 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3955 | int x[] = {25, 17}; | |
3956 | const int *foo = &x[0]; | |
3957 | ++foo; | |
3958 | } | |
3959 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3960 | typedef const int *iptr; | |
3961 | iptr p = 0; | |
3962 | ++p; | |
3963 | } | |
3964 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3965 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3966 | struct s { int j; const int *ap[3]; }; | |
3967 | struct s *b; b->j = 5; | |
3968 | } | |
3969 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3970 | const int foo = 10; | |
3971 | } | |
3972 | #endif | |
3973 | ||
3974 | ; | |
3975 | return 0; | |
3976 | } | |
3977 | _ACEOF | |
3978 | rm -f conftest.$ac_objext | |
6fc74234 | 3979 | if { (eval echo "$as_me:3979: \"$ac_compile\"") >&5 |
18569462 AD |
3980 | (eval $ac_compile) 2>&5 |
3981 | ac_status=$? | |
6fc74234 | 3982 | echo "$as_me:3982: \$? = $ac_status" >&5 |
18569462 | 3983 | (exit $ac_status); } && |
5141b016 | 3984 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 3985 | { (eval echo "$as_me:3985: \"$ac_try\"") >&5 |
18569462 AD |
3986 | (eval $ac_try) 2>&5 |
3987 | ac_status=$? | |
6fc74234 | 3988 | echo "$as_me:3988: \$? = $ac_status" >&5 |
18569462 | 3989 | (exit $ac_status); }; }; then |
705db0b5 AD |
3990 | ac_cv_c_const=yes |
3991 | else | |
18569462 AD |
3992 | echo "$as_me: failed program was:" >&5 |
3993 | cat conftest.$ac_ext >&5 | |
3994 | ac_cv_c_const=no | |
705db0b5 | 3995 | fi |
18569462 | 3996 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3997 | fi |
6fc74234 | 3998 | echo "$as_me:3998: result: $ac_cv_c_const" >&5 |
18569462 | 3999 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
705db0b5 | 4000 | if test $ac_cv_c_const = no; then |
18569462 | 4001 | |
6fc74234 | 4002 | cat >>confdefs.h <<\_ACEOF |
18569462 | 4003 | #define const |
6fc74234 | 4004 | _ACEOF |
705db0b5 AD |
4005 | |
4006 | fi | |
4007 | ||
6fc74234 | 4008 | echo "$as_me:4008: checking for inline" >&5 |
18569462 AD |
4009 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
4010 | if test "${ac_cv_c_inline+set}" = set; then | |
4011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
4012 | else |
4013 | ac_cv_c_inline=no | |
4014 | for ac_kw in inline __inline__ __inline; do | |
18569462 | 4015 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 4016 | #line 4016 "configure" |
705db0b5 | 4017 | #include "confdefs.h" |
18569462 | 4018 | #ifndef __cplusplus |
5141b016 | 4019 | static $ac_kw int static_foo () {return 0; } |
18569462 AD |
4020 | $ac_kw int foo () {return 0; } |
4021 | #endif | |
705db0b5 | 4022 | |
18569462 AD |
4023 | _ACEOF |
4024 | rm -f conftest.$ac_objext | |
6fc74234 | 4025 | if { (eval echo "$as_me:4025: \"$ac_compile\"") >&5 |
18569462 AD |
4026 | (eval $ac_compile) 2>&5 |
4027 | ac_status=$? | |
6fc74234 | 4028 | echo "$as_me:4028: \$? = $ac_status" >&5 |
18569462 | 4029 | (exit $ac_status); } && |
5141b016 | 4030 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 4031 | { (eval echo "$as_me:4031: \"$ac_try\"") >&5 |
18569462 AD |
4032 | (eval $ac_try) 2>&5 |
4033 | ac_status=$? | |
6fc74234 | 4034 | echo "$as_me:4034: \$? = $ac_status" >&5 |
18569462 | 4035 | (exit $ac_status); }; }; then |
705db0b5 AD |
4036 | ac_cv_c_inline=$ac_kw; break |
4037 | else | |
18569462 AD |
4038 | echo "$as_me: failed program was:" >&5 |
4039 | cat conftest.$ac_ext >&5 | |
705db0b5 | 4040 | fi |
18569462 | 4041 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
4042 | done |
4043 | ||
4044 | fi | |
6fc74234 | 4045 | echo "$as_me:4045: result: $ac_cv_c_inline" >&5 |
18569462 AD |
4046 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
4047 | case $ac_cv_c_inline in | |
705db0b5 | 4048 | inline | yes) ;; |
18569462 | 4049 | no) |
6fc74234 | 4050 | cat >>confdefs.h <<\_ACEOF |
18569462 | 4051 | #define inline |
6fc74234 | 4052 | _ACEOF |
705db0b5 | 4053 | ;; |
6fc74234 | 4054 | *) cat >>confdefs.h <<_ACEOF |
705db0b5 | 4055 | #define inline $ac_cv_c_inline |
6fc74234 | 4056 | _ACEOF |
705db0b5 AD |
4057 | ;; |
4058 | esac | |
4059 | ||
6fc74234 | 4060 | echo "$as_me:4060: checking for function prototypes" >&5 |
18569462 | 4061 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
705db0b5 | 4062 | if test "$am_cv_prog_cc_stdc" != no; then |
6fc74234 | 4063 | echo "$as_me:4063: result: yes" >&5 |
18569462 AD |
4064 | echo "${ECHO_T}yes" >&6 |
4065 | ||
6fc74234 | 4066 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 4067 | #define PROTOTYPES 1 |
6fc74234 | 4068 | _ACEOF |
705db0b5 AD |
4069 | |
4070 | U= ANSI2KNR= | |
4071 | else | |
6fc74234 | 4072 | echo "$as_me:4072: result: no" >&5 |
18569462 | 4073 | echo "${ECHO_T}no" >&6 |
705db0b5 | 4074 | U=_ ANSI2KNR=./ansi2knr |
6fc74234 AD |
4075 | fi |
4076 | # Ensure some checks needed by ansi2knr itself. | |
4077 | echo "$as_me:4077: checking for ANSI C header files" >&5 | |
18569462 AD |
4078 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4079 | if test "${ac_cv_header_stdc+set}" = set; then | |
4080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4081 | else |
18569462 | 4082 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 4083 | #line 4083 "configure" |
705db0b5 AD |
4084 | #include "confdefs.h" |
4085 | #include <stdlib.h> | |
4086 | #include <stdarg.h> | |
4087 | #include <string.h> | |
4088 | #include <float.h> | |
18569462 AD |
4089 | |
4090 | _ACEOF | |
6fc74234 | 4091 | if { (eval echo "$as_me:4091: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 4092 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
4093 | ac_status=$? |
4094 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4095 | rm -f conftest.er1 | |
4096 | cat conftest.err >&5 | |
6fc74234 | 4097 | echo "$as_me:4097: \$? = $ac_status" >&5 |
1e24cc5b | 4098 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
4099 | if test -s conftest.err; then |
4100 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4101 | else | |
4102 | ac_cpp_err= | |
4103 | fi | |
4104 | else | |
4105 | ac_cpp_err=yes | |
4106 | fi | |
4107 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
4108 | ac_cv_header_stdc=yes |
4109 | else | |
18569462 | 4110 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 4111 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
4112 | ac_cv_header_stdc=no |
4113 | fi | |
18569462 | 4114 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
4115 | |
4116 | if test $ac_cv_header_stdc = yes; then | |
4117 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 4118 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 4119 | #line 4119 "configure" |
705db0b5 AD |
4120 | #include "confdefs.h" |
4121 | #include <string.h> | |
18569462 AD |
4122 | |
4123 | _ACEOF | |
705db0b5 AD |
4124 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4125 | egrep "memchr" >/dev/null 2>&1; then | |
4126 | : | |
4127 | else | |
705db0b5 AD |
4128 | ac_cv_header_stdc=no |
4129 | fi | |
4130 | rm -f conftest* | |
4131 | ||
4132 | fi | |
4133 | ||
4134 | if test $ac_cv_header_stdc = yes; then | |
4135 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 4136 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 4137 | #line 4137 "configure" |
705db0b5 AD |
4138 | #include "confdefs.h" |
4139 | #include <stdlib.h> | |
18569462 AD |
4140 | |
4141 | _ACEOF | |
705db0b5 AD |
4142 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4143 | egrep "free" >/dev/null 2>&1; then | |
4144 | : | |
4145 | else | |
705db0b5 AD |
4146 | ac_cv_header_stdc=no |
4147 | fi | |
4148 | rm -f conftest* | |
4149 | ||
4150 | fi | |
4151 | ||
4152 | if test $ac_cv_header_stdc = yes; then | |
4153 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 4154 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
4155 | : |
4156 | else | |
18569462 | 4157 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 4158 | #line 4158 "configure" |
705db0b5 AD |
4159 | #include "confdefs.h" |
4160 | #include <ctype.h> | |
18569462 AD |
4161 | #if ((' ' & 0x0FF) == 0x020) |
4162 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4163 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4164 | #else | |
4165 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4166 | || ('j' <= (c) && (c) <= 'r') \ | |
4167 | || ('s' <= (c) && (c) <= 'z')) | |
4168 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4169 | #endif | |
705db0b5 | 4170 | |
18569462 AD |
4171 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4172 | int | |
4173 | main () | |
4174 | { | |
4175 | int i; | |
4176 | for (i = 0; i < 256; i++) | |
4177 | if (XOR (islower (i), ISLOWER (i)) | |
4178 | || toupper (i) != TOUPPER (i)) | |
4179 | exit(2); | |
4180 | exit (0); | |
4181 | } | |
4182 | _ACEOF | |
4183 | rm -f conftest$ac_exeext | |
6fc74234 | 4184 | if { (eval echo "$as_me:4184: \"$ac_link\"") >&5 |
18569462 AD |
4185 | (eval $ac_link) 2>&5 |
4186 | ac_status=$? | |
6fc74234 | 4187 | echo "$as_me:4187: \$? = $ac_status" >&5 |
5141b016 | 4188 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6fc74234 | 4189 | { (eval echo "$as_me:4189: \"$ac_try\"") >&5 |
18569462 AD |
4190 | (eval $ac_try) 2>&5 |
4191 | ac_status=$? | |
6fc74234 | 4192 | echo "$as_me:4192: \$? = $ac_status" >&5 |
18569462 | 4193 | (exit $ac_status); }; }; then |
705db0b5 AD |
4194 | : |
4195 | else | |
18569462 AD |
4196 | echo "$as_me: program exited with status $ac_status" >&5 |
4197 | echo "$as_me: failed program was:" >&5 | |
4198 | cat conftest.$ac_ext >&5 | |
4199 | ac_cv_header_stdc=no | |
705db0b5 | 4200 | fi |
459dd1a6 | 4201 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4202 | fi |
705db0b5 AD |
4203 | fi |
4204 | fi | |
6fc74234 | 4205 | echo "$as_me:4205: result: $ac_cv_header_stdc" >&5 |
18569462 | 4206 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 4207 | if test $ac_cv_header_stdc = yes; then |
18569462 | 4208 | |
6fc74234 | 4209 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 4210 | #define STDC_HEADERS 1 |
6fc74234 | 4211 | _ACEOF |
705db0b5 AD |
4212 | |
4213 | fi | |
4214 | ||
18569462 | 4215 | for ac_header in string.h |
705db0b5 | 4216 | do |
459dd1a6 | 4217 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6fc74234 AD |
4218 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4219 | echo "$as_me:4219: checking for $ac_header" >&5 | |
18569462 | 4220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 4221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 | 4222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6fc74234 AD |
4223 | fi |
4224 | echo "$as_me:4224: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4225 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4226 | else | |
4227 | # Is the header compilable? | |
4228 | echo "$as_me:4228: checking $ac_header usability" >&5 | |
4229 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4230 | cat >conftest.$ac_ext <<_ACEOF | |
4231 | #line 4231 "configure" | |
4232 | #include "confdefs.h" | |
4233 | $ac_includes_default | |
4234 | #include <$ac_header> | |
4235 | _ACEOF | |
4236 | rm -f conftest.$ac_objext | |
4237 | if { (eval echo "$as_me:4237: \"$ac_compile\"") >&5 | |
4238 | (eval $ac_compile) 2>&5 | |
4239 | ac_status=$? | |
4240 | echo "$as_me:4240: \$? = $ac_status" >&5 | |
4241 | (exit $ac_status); } && | |
4242 | { ac_try='test -s conftest.$ac_objext' | |
4243 | { (eval echo "$as_me:4243: \"$ac_try\"") >&5 | |
4244 | (eval $ac_try) 2>&5 | |
4245 | ac_status=$? | |
4246 | echo "$as_me:4246: \$? = $ac_status" >&5 | |
4247 | (exit $ac_status); }; }; then | |
4248 | ac_header_compiler=yes | |
18569462 | 4249 | else |
6fc74234 AD |
4250 | echo "$as_me: failed program was:" >&5 |
4251 | cat conftest.$ac_ext >&5 | |
4252 | ac_header_compiler=no | |
4253 | fi | |
4254 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4255 | echo "$as_me:4255: result: $ac_header_compiler" >&5 | |
4256 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4257 | ||
4258 | # Is the header present? | |
4259 | echo "$as_me:4259: checking $ac_header presence" >&5 | |
4260 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4261 | cat >conftest.$ac_ext <<_ACEOF | |
4262 | #line 4262 "configure" | |
705db0b5 | 4263 | #include "confdefs.h" |
18569462 AD |
4264 | #include <$ac_header> |
4265 | _ACEOF | |
6fc74234 | 4266 | if { (eval echo "$as_me:4266: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 4267 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
4268 | ac_status=$? |
4269 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4270 | rm -f conftest.er1 | |
4271 | cat conftest.err >&5 | |
6fc74234 | 4272 | echo "$as_me:4272: \$? = $ac_status" >&5 |
1e24cc5b | 4273 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
4274 | if test -s conftest.err; then |
4275 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4276 | else | |
4277 | ac_cpp_err= | |
4278 | fi | |
4279 | else | |
4280 | ac_cpp_err=yes | |
4281 | fi | |
4282 | if test -z "$ac_cpp_err"; then | |
6fc74234 | 4283 | ac_header_preproc=yes |
18569462 AD |
4284 | else |
4285 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 4286 | cat conftest.$ac_ext >&5 |
6fc74234 | 4287 | ac_header_preproc=no |
705db0b5 | 4288 | fi |
18569462 | 4289 | rm -f conftest.err conftest.$ac_ext |
6fc74234 AD |
4290 | echo "$as_me:4290: result: $ac_header_preproc" >&5 |
4291 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4292 | ||
4293 | # So? What about this header? | |
4294 | case $ac_header_compiler:$ac_header_preproc in | |
4295 | yes:no ) | |
4296 | { echo "$as_me:4296: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4297 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4298 | { echo "$as_me:4298: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4299 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4300 | no:yes ) | |
4301 | { echo "$as_me:4301: WARNING: $ac_header: present but cannot be compiled." >&5 | |
4302 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;} | |
4303 | { echo "$as_me:4303: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4304 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4305 | { echo "$as_me:4305: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4306 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4307 | esac | |
4308 | echo "$as_me:4308: checking for $ac_header" >&5 | |
4309 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4310 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4312 | else | |
4313 | eval "$as_ac_Header=$ac_header_preproc" | |
705db0b5 | 4314 | fi |
6fc74234 | 4315 | echo "$as_me:4315: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 | 4316 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6fc74234 AD |
4317 | |
4318 | fi | |
459dd1a6 | 4319 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6fc74234 | 4320 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 4321 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6fc74234 | 4322 | _ACEOF |
18569462 | 4323 | |
705db0b5 | 4324 | fi |
705db0b5 | 4325 | |
6fc74234 | 4326 | done |
705db0b5 | 4327 | |
705db0b5 AD |
4328 | # Checks for library functions. |
4329 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
4330 | # for constant arguments. Useless! | |
6fc74234 | 4331 | echo "$as_me:4331: checking for working alloca.h" >&5 |
18569462 AD |
4332 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
4333 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
4334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4335 | else |
18569462 | 4336 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 4337 | #line 4337 "configure" |
705db0b5 AD |
4338 | #include "confdefs.h" |
4339 | #include <alloca.h> | |
6fc74234 AD |
4340 | #ifdef F77_DUMMY_MAIN |
4341 | # ifdef __cplusplus | |
4342 | extern "C" | |
4343 | # endif | |
4344 | int F77_DUMMY_MAIN() { return 1; } | |
4345 | #endif | |
18569462 AD |
4346 | int |
4347 | main () | |
4348 | { | |
4349 | char *p = (char *) alloca (2 * sizeof (int)); | |
4350 | ; | |
4351 | return 0; | |
4352 | } | |
4353 | _ACEOF | |
4354 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 4355 | if { (eval echo "$as_me:4355: \"$ac_link\"") >&5 |
18569462 AD |
4356 | (eval $ac_link) 2>&5 |
4357 | ac_status=$? | |
6fc74234 | 4358 | echo "$as_me:4358: \$? = $ac_status" >&5 |
18569462 | 4359 | (exit $ac_status); } && |
5141b016 | 4360 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 4361 | { (eval echo "$as_me:4361: \"$ac_try\"") >&5 |
18569462 AD |
4362 | (eval $ac_try) 2>&5 |
4363 | ac_status=$? | |
6fc74234 | 4364 | echo "$as_me:4364: \$? = $ac_status" >&5 |
18569462 AD |
4365 | (exit $ac_status); }; }; then |
4366 | ac_cv_working_alloca_h=yes | |
4367 | else | |
4368 | echo "$as_me: failed program was:" >&5 | |
4369 | cat conftest.$ac_ext >&5 | |
4370 | ac_cv_working_alloca_h=no | |
4371 | fi | |
1e24cc5b | 4372 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 4373 | fi |
6fc74234 | 4374 | echo "$as_me:4374: result: $ac_cv_working_alloca_h" >&5 |
18569462 AD |
4375 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
4376 | if test $ac_cv_working_alloca_h = yes; then | |
4377 | ||
6fc74234 | 4378 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 4379 | #define HAVE_ALLOCA_H 1 |
6fc74234 | 4380 | _ACEOF |
705db0b5 AD |
4381 | |
4382 | fi | |
4383 | ||
6fc74234 | 4384 | echo "$as_me:4384: checking for alloca" >&5 |
18569462 AD |
4385 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
4386 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
4387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4388 | else |
18569462 | 4389 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 4390 | #line 4390 "configure" |
705db0b5 | 4391 | #include "confdefs.h" |
705db0b5 AD |
4392 | #ifdef __GNUC__ |
4393 | # define alloca __builtin_alloca | |
4394 | #else | |
4395 | # ifdef _MSC_VER | |
4396 | # include <malloc.h> | |
4397 | # define alloca _alloca | |
4398 | # else | |
4399 | # if HAVE_ALLOCA_H | |
4400 | # include <alloca.h> | |
4401 | # else | |
4402 | # ifdef _AIX | |
4403 | #pragma alloca | |
4404 | # else | |
4405 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
4406 | char *alloca (); | |
4407 | # endif | |
4408 | # endif | |
4409 | # endif | |
4410 | # endif | |
4411 | #endif | |
4412 | ||
6fc74234 AD |
4413 | #ifdef F77_DUMMY_MAIN |
4414 | # ifdef __cplusplus | |
4415 | extern "C" | |
4416 | # endif | |
4417 | int F77_DUMMY_MAIN() { return 1; } | |
4418 | #endif | |
18569462 AD |
4419 | int |
4420 | main () | |
4421 | { | |
4422 | char *p = (char *) alloca (1); | |
4423 | ; | |
4424 | return 0; | |
4425 | } | |
4426 | _ACEOF | |
4427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 4428 | if { (eval echo "$as_me:4428: \"$ac_link\"") >&5 |
18569462 AD |
4429 | (eval $ac_link) 2>&5 |
4430 | ac_status=$? | |
6fc74234 | 4431 | echo "$as_me:4431: \$? = $ac_status" >&5 |
18569462 | 4432 | (exit $ac_status); } && |
5141b016 | 4433 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 4434 | { (eval echo "$as_me:4434: \"$ac_try\"") >&5 |
18569462 AD |
4435 | (eval $ac_try) 2>&5 |
4436 | ac_status=$? | |
6fc74234 | 4437 | echo "$as_me:4437: \$? = $ac_status" >&5 |
18569462 | 4438 | (exit $ac_status); }; }; then |
705db0b5 AD |
4439 | ac_cv_func_alloca_works=yes |
4440 | else | |
18569462 AD |
4441 | echo "$as_me: failed program was:" >&5 |
4442 | cat conftest.$ac_ext >&5 | |
4443 | ac_cv_func_alloca_works=no | |
705db0b5 | 4444 | fi |
1e24cc5b | 4445 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 4446 | fi |
6fc74234 | 4447 | echo "$as_me:4447: result: $ac_cv_func_alloca_works" >&5 |
18569462 | 4448 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
705db0b5 | 4449 | |
705db0b5 | 4450 | if test $ac_cv_func_alloca_works = yes; then |
18569462 | 4451 | |
6fc74234 | 4452 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 4453 | #define HAVE_ALLOCA 1 |
6fc74234 | 4454 | _ACEOF |
705db0b5 | 4455 | |
18569462 AD |
4456 | else |
4457 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
4458 | # that cause trouble. Some versions do not even contain alloca or | |
4459 | # contain a buggy version. If you still want to use their alloca, | |
4460 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
4461 | ||
4462 | ALLOCA=alloca.$ac_objext | |
4463 | ||
6fc74234 | 4464 | cat >>confdefs.h <<\_ACEOF |
18569462 | 4465 | #define C_ALLOCA 1 |
6fc74234 | 4466 | _ACEOF |
18569462 | 4467 | |
6fc74234 | 4468 | echo "$as_me:4468: checking whether \`alloca.c' needs Cray hooks" >&5 |
18569462 AD |
4469 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
4470 | if test "${ac_cv_os_cray+set}" = set; then | |
4471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4472 | else | |
4473 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 4474 | #line 4474 "configure" |
18569462 AD |
4475 | #include "confdefs.h" |
4476 | #if defined(CRAY) && ! defined(CRAY2) | |
4477 | webecray | |
4478 | #else | |
4479 | wenotbecray | |
4480 | #endif | |
4481 | ||
4482 | _ACEOF | |
4483 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4484 | egrep "webecray" >/dev/null 2>&1; then | |
4485 | ac_cv_os_cray=yes | |
4486 | else | |
4487 | ac_cv_os_cray=no | |
4488 | fi | |
4489 | rm -f conftest* | |
4490 | ||
4491 | fi | |
6fc74234 | 4492 | echo "$as_me:4492: result: $ac_cv_os_cray" >&5 |
18569462 AD |
4493 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
4494 | if test $ac_cv_os_cray = yes; then | |
4495 | for ac_func in _getb67 GETB67 getb67; do | |
459dd1a6 | 4496 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6fc74234 | 4497 | echo "$as_me:4497: checking for $ac_func" >&5 |
18569462 | 4498 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 4499 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
4500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4501 | else | |
4502 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 4503 | #line 4503 "configure" |
18569462 AD |
4504 | #include "confdefs.h" |
4505 | /* System header to define __stub macros and hopefully few prototypes, | |
4506 | which can conflict with char $ac_func (); below. */ | |
4507 | #include <assert.h> | |
4508 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4509 | #ifdef __cplusplus | |
4510 | extern "C" | |
4511 | #endif | |
4512 | /* We use char because int might match the return type of a gcc2 | |
4513 | builtin and then its argument prototype would still apply. */ | |
4514 | char $ac_func (); | |
4515 | char (*f) (); | |
4516 | ||
6fc74234 AD |
4517 | #ifdef F77_DUMMY_MAIN |
4518 | # ifdef __cplusplus | |
4519 | extern "C" | |
4520 | # endif | |
4521 | int F77_DUMMY_MAIN() { return 1; } | |
4522 | #endif | |
18569462 AD |
4523 | int |
4524 | main () | |
4525 | { | |
4526 | /* The GNU C library defines this for functions which it implements | |
4527 | to always fail with ENOSYS. Some functions are actually named | |
4528 | something starting with __ and the normal name is an alias. */ | |
4529 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4530 | choke me | |
4531 | #else | |
4532 | f = $ac_func; | |
4533 | #endif | |
4534 | ||
4535 | ; | |
4536 | return 0; | |
4537 | } | |
4538 | _ACEOF | |
4539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 4540 | if { (eval echo "$as_me:4540: \"$ac_link\"") >&5 |
18569462 AD |
4541 | (eval $ac_link) 2>&5 |
4542 | ac_status=$? | |
6fc74234 | 4543 | echo "$as_me:4543: \$? = $ac_status" >&5 |
18569462 | 4544 | (exit $ac_status); } && |
5141b016 | 4545 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 4546 | { (eval echo "$as_me:4546: \"$ac_try\"") >&5 |
18569462 AD |
4547 | (eval $ac_try) 2>&5 |
4548 | ac_status=$? | |
6fc74234 | 4549 | echo "$as_me:4549: \$? = $ac_status" >&5 |
18569462 | 4550 | (exit $ac_status); }; }; then |
459dd1a6 | 4551 | eval "$as_ac_var=yes" |
18569462 AD |
4552 | else |
4553 | echo "$as_me: failed program was:" >&5 | |
4554 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 4555 | eval "$as_ac_var=no" |
18569462 | 4556 | fi |
1e24cc5b | 4557 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 4558 | fi |
6fc74234 | 4559 | echo "$as_me:4559: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
4560 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4561 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18569462 | 4562 | |
6fc74234 | 4563 | cat >>confdefs.h <<_ACEOF |
18569462 | 4564 | #define CRAY_STACKSEG_END $ac_func |
6fc74234 | 4565 | _ACEOF |
18569462 AD |
4566 | |
4567 | break | |
4568 | fi | |
4569 | ||
4570 | done | |
4571 | fi | |
4572 | ||
6fc74234 | 4573 | echo "$as_me:4573: checking stack direction for C alloca" >&5 |
18569462 AD |
4574 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
4575 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
4576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4577 | else | |
4578 | if test "$cross_compiling" = yes; then | |
4579 | ac_cv_c_stack_direction=0 | |
4580 | else | |
4581 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 4582 | #line 4582 "configure" |
18569462 AD |
4583 | #include "confdefs.h" |
4584 | int | |
4585 | find_stack_direction () | |
4586 | { | |
4587 | static char *addr = 0; | |
4588 | auto char dummy; | |
4589 | if (addr == 0) | |
4590 | { | |
4591 | addr = &dummy; | |
4592 | return find_stack_direction (); | |
4593 | } | |
4594 | else | |
4595 | return (&dummy > addr) ? 1 : -1; | |
4596 | } | |
4597 | ||
4598 | int | |
4599 | main () | |
4600 | { | |
4601 | exit (find_stack_direction () < 0); | |
4602 | } | |
4603 | _ACEOF | |
4604 | rm -f conftest$ac_exeext | |
6fc74234 | 4605 | if { (eval echo "$as_me:4605: \"$ac_link\"") >&5 |
18569462 AD |
4606 | (eval $ac_link) 2>&5 |
4607 | ac_status=$? | |
6fc74234 | 4608 | echo "$as_me:4608: \$? = $ac_status" >&5 |
5141b016 | 4609 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6fc74234 | 4610 | { (eval echo "$as_me:4610: \"$ac_try\"") >&5 |
18569462 AD |
4611 | (eval $ac_try) 2>&5 |
4612 | ac_status=$? | |
6fc74234 | 4613 | echo "$as_me:4613: \$? = $ac_status" >&5 |
18569462 AD |
4614 | (exit $ac_status); }; }; then |
4615 | ac_cv_c_stack_direction=1 | |
4616 | else | |
4617 | echo "$as_me: program exited with status $ac_status" >&5 | |
4618 | echo "$as_me: failed program was:" >&5 | |
4619 | cat conftest.$ac_ext >&5 | |
4620 | ac_cv_c_stack_direction=-1 | |
4621 | fi | |
459dd1a6 | 4622 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
18569462 AD |
4623 | fi |
4624 | fi | |
6fc74234 | 4625 | echo "$as_me:4625: result: $ac_cv_c_stack_direction" >&5 |
18569462 AD |
4626 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
4627 | ||
6fc74234 | 4628 | cat >>confdefs.h <<_ACEOF |
18569462 | 4629 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
6fc74234 | 4630 | _ACEOF |
18569462 AD |
4631 | |
4632 | fi | |
4633 | ||
4634 | for ac_func in mkstemp setlocale | |
4635 | do | |
459dd1a6 | 4636 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6fc74234 | 4637 | echo "$as_me:4637: checking for $ac_func" >&5 |
18569462 | 4638 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 4639 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
4640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4641 | else | |
4642 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 4643 | #line 4643 "configure" |
18569462 AD |
4644 | #include "confdefs.h" |
4645 | /* System header to define __stub macros and hopefully few prototypes, | |
4646 | which can conflict with char $ac_func (); below. */ | |
4647 | #include <assert.h> | |
4648 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4649 | #ifdef __cplusplus | |
4650 | extern "C" | |
4651 | #endif | |
4652 | /* We use char because int might match the return type of a gcc2 | |
4653 | builtin and then its argument prototype would still apply. */ | |
4654 | char $ac_func (); | |
4655 | char (*f) (); | |
4656 | ||
6fc74234 AD |
4657 | #ifdef F77_DUMMY_MAIN |
4658 | # ifdef __cplusplus | |
4659 | extern "C" | |
4660 | # endif | |
4661 | int F77_DUMMY_MAIN() { return 1; } | |
4662 | #endif | |
18569462 AD |
4663 | int |
4664 | main () | |
4665 | { | |
4666 | /* The GNU C library defines this for functions which it implements | |
4667 | to always fail with ENOSYS. Some functions are actually named | |
4668 | something starting with __ and the normal name is an alias. */ | |
4669 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4670 | choke me | |
4671 | #else | |
4672 | f = $ac_func; | |
4673 | #endif | |
4674 | ||
4675 | ; | |
4676 | return 0; | |
4677 | } | |
4678 | _ACEOF | |
4679 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 4680 | if { (eval echo "$as_me:4680: \"$ac_link\"") >&5 |
18569462 AD |
4681 | (eval $ac_link) 2>&5 |
4682 | ac_status=$? | |
6fc74234 | 4683 | echo "$as_me:4683: \$? = $ac_status" >&5 |
18569462 | 4684 | (exit $ac_status); } && |
5141b016 | 4685 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 4686 | { (eval echo "$as_me:4686: \"$ac_try\"") >&5 |
18569462 AD |
4687 | (eval $ac_try) 2>&5 |
4688 | ac_status=$? | |
6fc74234 | 4689 | echo "$as_me:4689: \$? = $ac_status" >&5 |
18569462 | 4690 | (exit $ac_status); }; }; then |
459dd1a6 | 4691 | eval "$as_ac_var=yes" |
18569462 AD |
4692 | else |
4693 | echo "$as_me: failed program was:" >&5 | |
4694 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 4695 | eval "$as_ac_var=no" |
18569462 | 4696 | fi |
1e24cc5b | 4697 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 4698 | fi |
6fc74234 | 4699 | echo "$as_me:4699: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
4700 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4701 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6fc74234 | 4702 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 4703 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
18569462 | 4704 | _ACEOF |
18569462 AD |
4705 | |
4706 | fi | |
4707 | done | |
4708 | ||
6fc74234 | 4709 | echo "$as_me:4709: checking whether stpcpy is declared" >&5 |
18569462 AD |
4710 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 |
4711 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
4712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4713 | else | |
4714 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 4715 | #line 4715 "configure" |
18569462 AD |
4716 | #include "confdefs.h" |
4717 | $ac_includes_default | |
6fc74234 AD |
4718 | #ifdef F77_DUMMY_MAIN |
4719 | # ifdef __cplusplus | |
4720 | extern "C" | |
4721 | # endif | |
4722 | int F77_DUMMY_MAIN() { return 1; } | |
4723 | #endif | |
18569462 AD |
4724 | int |
4725 | main () | |
4726 | { | |
4727 | #ifndef stpcpy | |
4728 | char *p = (char *) stpcpy; | |
4729 | #endif | |
4730 | ||
4731 | ; | |
4732 | return 0; | |
4733 | } | |
4734 | _ACEOF | |
4735 | rm -f conftest.$ac_objext | |
6fc74234 | 4736 | if { (eval echo "$as_me:4736: \"$ac_compile\"") >&5 |
18569462 AD |
4737 | (eval $ac_compile) 2>&5 |
4738 | ac_status=$? | |
6fc74234 | 4739 | echo "$as_me:4739: \$? = $ac_status" >&5 |
18569462 | 4740 | (exit $ac_status); } && |
5141b016 | 4741 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 4742 | { (eval echo "$as_me:4742: \"$ac_try\"") >&5 |
18569462 AD |
4743 | (eval $ac_try) 2>&5 |
4744 | ac_status=$? | |
6fc74234 | 4745 | echo "$as_me:4745: \$? = $ac_status" >&5 |
18569462 AD |
4746 | (exit $ac_status); }; }; then |
4747 | ac_cv_have_decl_stpcpy=yes | |
4748 | else | |
4749 | echo "$as_me: failed program was:" >&5 | |
4750 | cat conftest.$ac_ext >&5 | |
4751 | ac_cv_have_decl_stpcpy=no | |
4752 | fi | |
4753 | rm -f conftest.$ac_objext conftest.$ac_ext | |
705db0b5 | 4754 | fi |
6fc74234 | 4755 | echo "$as_me:4755: result: $ac_cv_have_decl_stpcpy" >&5 |
18569462 AD |
4756 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 |
4757 | if test $ac_cv_have_decl_stpcpy = yes; then | |
705db0b5 | 4758 | |
6fc74234 | 4759 | cat >>confdefs.h <<_ACEOF |
18569462 | 4760 | #define HAVE_DECL_STPCPY 1 |
6fc74234 | 4761 | _ACEOF |
705db0b5 | 4762 | |
18569462 | 4763 | else |
6fc74234 | 4764 | cat >>confdefs.h <<_ACEOF |
18569462 | 4765 | #define HAVE_DECL_STPCPY 0 |
6fc74234 | 4766 | _ACEOF |
705db0b5 | 4767 | |
18569462 | 4768 | fi |
6fc74234 | 4769 | echo "$as_me:4769: checking whether strndup is declared" >&5 |
18569462 AD |
4770 | echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6 |
4771 | if test "${ac_cv_have_decl_strndup+set}" = set; then | |
4772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4773 | else |
18569462 | 4774 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 4775 | #line 4775 "configure" |
705db0b5 | 4776 | #include "confdefs.h" |
18569462 | 4777 | $ac_includes_default |
6fc74234 AD |
4778 | #ifdef F77_DUMMY_MAIN |
4779 | # ifdef __cplusplus | |
4780 | extern "C" | |
4781 | # endif | |
4782 | int F77_DUMMY_MAIN() { return 1; } | |
4783 | #endif | |
18569462 AD |
4784 | int |
4785 | main () | |
4786 | { | |
4787 | #ifndef strndup | |
4788 | char *p = (char *) strndup; | |
705db0b5 AD |
4789 | #endif |
4790 | ||
18569462 AD |
4791 | ; |
4792 | return 0; | |
4793 | } | |
4794 | _ACEOF | |
4795 | rm -f conftest.$ac_objext | |
6fc74234 | 4796 | if { (eval echo "$as_me:4796: \"$ac_compile\"") >&5 |
18569462 AD |
4797 | (eval $ac_compile) 2>&5 |
4798 | ac_status=$? | |
6fc74234 | 4799 | echo "$as_me:4799: \$? = $ac_status" >&5 |
18569462 | 4800 | (exit $ac_status); } && |
5141b016 | 4801 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 4802 | { (eval echo "$as_me:4802: \"$ac_try\"") >&5 |
18569462 AD |
4803 | (eval $ac_try) 2>&5 |
4804 | ac_status=$? | |
6fc74234 | 4805 | echo "$as_me:4805: \$? = $ac_status" >&5 |
18569462 AD |
4806 | (exit $ac_status); }; }; then |
4807 | ac_cv_have_decl_strndup=yes | |
705db0b5 | 4808 | else |
18569462 AD |
4809 | echo "$as_me: failed program was:" >&5 |
4810 | cat conftest.$ac_ext >&5 | |
4811 | ac_cv_have_decl_strndup=no | |
705db0b5 | 4812 | fi |
18569462 | 4813 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4814 | fi |
6fc74234 | 4815 | echo "$as_me:4815: result: $ac_cv_have_decl_strndup" >&5 |
18569462 AD |
4816 | echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6 |
4817 | if test $ac_cv_have_decl_strndup = yes; then | |
705db0b5 | 4818 | |
6fc74234 | 4819 | cat >>confdefs.h <<_ACEOF |
18569462 | 4820 | #define HAVE_DECL_STRNDUP 1 |
6fc74234 | 4821 | _ACEOF |
705db0b5 | 4822 | |
18569462 | 4823 | else |
6fc74234 | 4824 | cat >>confdefs.h <<_ACEOF |
18569462 | 4825 | #define HAVE_DECL_STRNDUP 0 |
6fc74234 | 4826 | _ACEOF |
705db0b5 | 4827 | |
18569462 | 4828 | fi |
6fc74234 | 4829 | echo "$as_me:4829: checking whether strnlen is declared" >&5 |
18569462 AD |
4830 | echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6 |
4831 | if test "${ac_cv_have_decl_strnlen+set}" = set; then | |
4832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4833 | else | |
4834 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 4835 | #line 4835 "configure" |
18569462 AD |
4836 | #include "confdefs.h" |
4837 | $ac_includes_default | |
6fc74234 AD |
4838 | #ifdef F77_DUMMY_MAIN |
4839 | # ifdef __cplusplus | |
4840 | extern "C" | |
4841 | # endif | |
4842 | int F77_DUMMY_MAIN() { return 1; } | |
4843 | #endif | |
18569462 AD |
4844 | int |
4845 | main () | |
4846 | { | |
4847 | #ifndef strnlen | |
4848 | char *p = (char *) strnlen; | |
705db0b5 AD |
4849 | #endif |
4850 | ||
18569462 AD |
4851 | ; |
4852 | return 0; | |
4853 | } | |
4854 | _ACEOF | |
4855 | rm -f conftest.$ac_objext | |
6fc74234 | 4856 | if { (eval echo "$as_me:4856: \"$ac_compile\"") >&5 |
18569462 AD |
4857 | (eval $ac_compile) 2>&5 |
4858 | ac_status=$? | |
6fc74234 | 4859 | echo "$as_me:4859: \$? = $ac_status" >&5 |
18569462 | 4860 | (exit $ac_status); } && |
5141b016 | 4861 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 4862 | { (eval echo "$as_me:4862: \"$ac_try\"") >&5 |
18569462 AD |
4863 | (eval $ac_try) 2>&5 |
4864 | ac_status=$? | |
6fc74234 | 4865 | echo "$as_me:4865: \$? = $ac_status" >&5 |
18569462 AD |
4866 | (exit $ac_status); }; }; then |
4867 | ac_cv_have_decl_strnlen=yes | |
705db0b5 | 4868 | else |
18569462 AD |
4869 | echo "$as_me: failed program was:" >&5 |
4870 | cat conftest.$ac_ext >&5 | |
4871 | ac_cv_have_decl_strnlen=no | |
705db0b5 | 4872 | fi |
18569462 | 4873 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4874 | fi |
6fc74234 | 4875 | echo "$as_me:4875: result: $ac_cv_have_decl_strnlen" >&5 |
18569462 AD |
4876 | echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6 |
4877 | if test $ac_cv_have_decl_strnlen = yes; then | |
705db0b5 | 4878 | |
6fc74234 | 4879 | cat >>confdefs.h <<_ACEOF |
18569462 | 4880 | #define HAVE_DECL_STRNLEN 1 |
6fc74234 | 4881 | _ACEOF |
705db0b5 | 4882 | |
705db0b5 | 4883 | else |
6fc74234 | 4884 | cat >>confdefs.h <<_ACEOF |
18569462 | 4885 | #define HAVE_DECL_STRNLEN 0 |
6fc74234 | 4886 | _ACEOF |
705db0b5 | 4887 | |
705db0b5 | 4888 | fi |
6fc74234 | 4889 | echo "$as_me:4889: checking whether memchr is declared" >&5 |
18569462 AD |
4890 | echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6 |
4891 | if test "${ac_cv_have_decl_memchr+set}" = set; then | |
4892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4893 | else |
18569462 | 4894 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 4895 | #line 4895 "configure" |
705db0b5 | 4896 | #include "confdefs.h" |
18569462 | 4897 | $ac_includes_default |
6fc74234 AD |
4898 | #ifdef F77_DUMMY_MAIN |
4899 | # ifdef __cplusplus | |
4900 | extern "C" | |
4901 | # endif | |
4902 | int F77_DUMMY_MAIN() { return 1; } | |
4903 | #endif | |
18569462 | 4904 | int |
705db0b5 AD |
4905 | main () |
4906 | { | |
18569462 AD |
4907 | #ifndef memchr |
4908 | char *p = (char *) memchr; | |
4909 | #endif | |
4910 | ||
4911 | ; | |
4912 | return 0; | |
705db0b5 | 4913 | } |
18569462 AD |
4914 | _ACEOF |
4915 | rm -f conftest.$ac_objext | |
6fc74234 | 4916 | if { (eval echo "$as_me:4916: \"$ac_compile\"") >&5 |
18569462 AD |
4917 | (eval $ac_compile) 2>&5 |
4918 | ac_status=$? | |
6fc74234 | 4919 | echo "$as_me:4919: \$? = $ac_status" >&5 |
18569462 | 4920 | (exit $ac_status); } && |
5141b016 | 4921 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 4922 | { (eval echo "$as_me:4922: \"$ac_try\"") >&5 |
18569462 AD |
4923 | (eval $ac_try) 2>&5 |
4924 | ac_status=$? | |
6fc74234 | 4925 | echo "$as_me:4925: \$? = $ac_status" >&5 |
18569462 AD |
4926 | (exit $ac_status); }; }; then |
4927 | ac_cv_have_decl_memchr=yes | |
705db0b5 | 4928 | else |
18569462 AD |
4929 | echo "$as_me: failed program was:" >&5 |
4930 | cat conftest.$ac_ext >&5 | |
4931 | ac_cv_have_decl_memchr=no | |
705db0b5 | 4932 | fi |
18569462 | 4933 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4934 | fi |
6fc74234 | 4935 | echo "$as_me:4935: result: $ac_cv_have_decl_memchr" >&5 |
18569462 AD |
4936 | echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6 |
4937 | if test $ac_cv_have_decl_memchr = yes; then | |
705db0b5 | 4938 | |
6fc74234 | 4939 | cat >>confdefs.h <<_ACEOF |
18569462 | 4940 | #define HAVE_DECL_MEMCHR 1 |
6fc74234 | 4941 | _ACEOF |
705db0b5 | 4942 | |
18569462 | 4943 | else |
6fc74234 | 4944 | cat >>confdefs.h <<_ACEOF |
18569462 | 4945 | #define HAVE_DECL_MEMCHR 0 |
6fc74234 | 4946 | _ACEOF |
705db0b5 AD |
4947 | |
4948 | fi | |
4949 | ||
459dd1a6 | 4950 | for ac_func in stpcpy strndup strnlen strspn memchr |
705db0b5 | 4951 | do |
459dd1a6 | 4952 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6fc74234 | 4953 | echo "$as_me:4953: checking for $ac_func" >&5 |
18569462 | 4954 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 4955 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
4956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4957 | else | |
4958 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 4959 | #line 4959 "configure" |
705db0b5 AD |
4960 | #include "confdefs.h" |
4961 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 4962 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
4963 | #include <assert.h> |
4964 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
4965 | #ifdef __cplusplus |
4966 | extern "C" | |
4967 | #endif | |
705db0b5 | 4968 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
4969 | builtin and then its argument prototype would still apply. */ |
4970 | char $ac_func (); | |
4971 | char (*f) (); | |
705db0b5 | 4972 | |
6fc74234 AD |
4973 | #ifdef F77_DUMMY_MAIN |
4974 | # ifdef __cplusplus | |
4975 | extern "C" | |
4976 | # endif | |
4977 | int F77_DUMMY_MAIN() { return 1; } | |
4978 | #endif | |
18569462 AD |
4979 | int |
4980 | main () | |
4981 | { | |
705db0b5 AD |
4982 | /* The GNU C library defines this for functions which it implements |
4983 | to always fail with ENOSYS. Some functions are actually named | |
4984 | something starting with __ and the normal name is an alias. */ | |
4985 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4986 | choke me | |
4987 | #else | |
18569462 | 4988 | f = $ac_func; |
705db0b5 AD |
4989 | #endif |
4990 | ||
18569462 AD |
4991 | ; |
4992 | return 0; | |
4993 | } | |
4994 | _ACEOF | |
4995 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 4996 | if { (eval echo "$as_me:4996: \"$ac_link\"") >&5 |
18569462 AD |
4997 | (eval $ac_link) 2>&5 |
4998 | ac_status=$? | |
6fc74234 | 4999 | echo "$as_me:4999: \$? = $ac_status" >&5 |
18569462 | 5000 | (exit $ac_status); } && |
5141b016 | 5001 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 5002 | { (eval echo "$as_me:5002: \"$ac_try\"") >&5 |
18569462 AD |
5003 | (eval $ac_try) 2>&5 |
5004 | ac_status=$? | |
6fc74234 | 5005 | echo "$as_me:5005: \$? = $ac_status" >&5 |
18569462 | 5006 | (exit $ac_status); }; }; then |
459dd1a6 | 5007 | eval "$as_ac_var=yes" |
705db0b5 | 5008 | else |
18569462 AD |
5009 | echo "$as_me: failed program was:" >&5 |
5010 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 5011 | eval "$as_ac_var=no" |
705db0b5 | 5012 | fi |
1e24cc5b | 5013 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 5014 | fi |
6fc74234 | 5015 | echo "$as_me:5015: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
5016 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5017 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6fc74234 | 5018 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 5019 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6fc74234 | 5020 | _ACEOF |
18569462 | 5021 | |
705db0b5 | 5022 | else |
18569462 | 5023 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
705db0b5 AD |
5024 | fi |
5025 | done | |
5026 | ||
6fc74234 | 5027 | cat >>confdefs.h <<_ACEOF |
705db0b5 | 5028 | #define HAVE_DONE_WORKING_MALLOC_CHECK 1 |
6fc74234 | 5029 | _ACEOF |
705db0b5 | 5030 | |
6fc74234 | 5031 | echo "$as_me:5031: checking for working malloc" >&5 |
18569462 AD |
5032 | echo $ECHO_N "checking for working malloc... $ECHO_C" >&6 |
5033 | if test "${jm_cv_func_working_malloc+set}" = set; then | |
5034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
5035 | else |
5036 | if test "$cross_compiling" = yes; then | |
5037 | jm_cv_func_working_malloc=no | |
5038 | else | |
18569462 | 5039 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5040 | #line 5040 "configure" |
705db0b5 AD |
5041 | #include "confdefs.h" |
5042 | ||
5043 | char *malloc (); | |
5044 | int | |
5045 | main () | |
5046 | { | |
5047 | exit (malloc (0) ? 0 : 1); | |
5048 | } | |
18569462 AD |
5049 | |
5050 | _ACEOF | |
5051 | rm -f conftest$ac_exeext | |
6fc74234 | 5052 | if { (eval echo "$as_me:5052: \"$ac_link\"") >&5 |
18569462 AD |
5053 | (eval $ac_link) 2>&5 |
5054 | ac_status=$? | |
6fc74234 | 5055 | echo "$as_me:5055: \$? = $ac_status" >&5 |
5141b016 | 5056 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6fc74234 | 5057 | { (eval echo "$as_me:5057: \"$ac_try\"") >&5 |
18569462 AD |
5058 | (eval $ac_try) 2>&5 |
5059 | ac_status=$? | |
6fc74234 | 5060 | echo "$as_me:5060: \$? = $ac_status" >&5 |
18569462 | 5061 | (exit $ac_status); }; }; then |
705db0b5 AD |
5062 | jm_cv_func_working_malloc=yes |
5063 | else | |
18569462 AD |
5064 | echo "$as_me: program exited with status $ac_status" >&5 |
5065 | echo "$as_me: failed program was:" >&5 | |
5066 | cat conftest.$ac_ext >&5 | |
5067 | jm_cv_func_working_malloc=no | |
705db0b5 | 5068 | fi |
459dd1a6 | 5069 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
5070 | fi |
5071 | ||
705db0b5 | 5072 | fi |
6fc74234 | 5073 | echo "$as_me:5073: result: $jm_cv_func_working_malloc" >&5 |
18569462 | 5074 | echo "${ECHO_T}$jm_cv_func_working_malloc" >&6 |
705db0b5 | 5075 | if test $jm_cv_func_working_malloc = no; then |
18569462 | 5076 | |
705db0b5 | 5077 | LIBOBJS="$LIBOBJS malloc.$ac_objext" |
18569462 | 5078 | |
6fc74234 | 5079 | cat >>confdefs.h <<_ACEOF |
705db0b5 | 5080 | #define malloc rpl_malloc |
6fc74234 | 5081 | _ACEOF |
705db0b5 AD |
5082 | |
5083 | fi | |
5084 | ||
6fc74234 | 5085 | cat >>confdefs.h <<_ACEOF |
705db0b5 | 5086 | #define HAVE_DONE_WORKING_REALLOC_CHECK 1 |
6fc74234 | 5087 | _ACEOF |
705db0b5 | 5088 | |
6fc74234 | 5089 | echo "$as_me:5089: checking for working realloc" >&5 |
18569462 AD |
5090 | echo $ECHO_N "checking for working realloc... $ECHO_C" >&6 |
5091 | if test "${jm_cv_func_working_realloc+set}" = set; then | |
5092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
5093 | else |
5094 | if test "$cross_compiling" = yes; then | |
5095 | jm_cv_func_working_realloc=no | |
5096 | else | |
18569462 | 5097 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5098 | #line 5098 "configure" |
705db0b5 AD |
5099 | #include "confdefs.h" |
5100 | ||
5101 | char *realloc (); | |
5102 | int | |
5103 | main () | |
5104 | { | |
5105 | exit (realloc (0, 0) ? 0 : 1); | |
5106 | } | |
18569462 AD |
5107 | |
5108 | _ACEOF | |
5109 | rm -f conftest$ac_exeext | |
6fc74234 | 5110 | if { (eval echo "$as_me:5110: \"$ac_link\"") >&5 |
18569462 AD |
5111 | (eval $ac_link) 2>&5 |
5112 | ac_status=$? | |
6fc74234 | 5113 | echo "$as_me:5113: \$? = $ac_status" >&5 |
5141b016 | 5114 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6fc74234 | 5115 | { (eval echo "$as_me:5115: \"$ac_try\"") >&5 |
18569462 AD |
5116 | (eval $ac_try) 2>&5 |
5117 | ac_status=$? | |
6fc74234 | 5118 | echo "$as_me:5118: \$? = $ac_status" >&5 |
18569462 | 5119 | (exit $ac_status); }; }; then |
705db0b5 AD |
5120 | jm_cv_func_working_realloc=yes |
5121 | else | |
18569462 AD |
5122 | echo "$as_me: program exited with status $ac_status" >&5 |
5123 | echo "$as_me: failed program was:" >&5 | |
5124 | cat conftest.$ac_ext >&5 | |
5125 | jm_cv_func_working_realloc=no | |
705db0b5 | 5126 | fi |
459dd1a6 | 5127 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
5128 | fi |
5129 | ||
705db0b5 | 5130 | fi |
6fc74234 | 5131 | echo "$as_me:5131: result: $jm_cv_func_working_realloc" >&5 |
18569462 | 5132 | echo "${ECHO_T}$jm_cv_func_working_realloc" >&6 |
705db0b5 | 5133 | if test $jm_cv_func_working_realloc = no; then |
18569462 | 5134 | |
705db0b5 | 5135 | LIBOBJS="$LIBOBJS realloc.$ac_objext" |
18569462 | 5136 | |
6fc74234 | 5137 | cat >>confdefs.h <<_ACEOF |
705db0b5 | 5138 | #define realloc rpl_realloc |
6fc74234 | 5139 | _ACEOF |
705db0b5 AD |
5140 | |
5141 | fi | |
5142 | ||
18569462 | 5143 | for ac_func in isascii iswprint mbrtowc |
705db0b5 | 5144 | do |
459dd1a6 | 5145 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6fc74234 | 5146 | echo "$as_me:5146: checking for $ac_func" >&5 |
18569462 | 5147 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 5148 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
5149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5150 | else | |
5151 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 5152 | #line 5152 "configure" |
705db0b5 AD |
5153 | #include "confdefs.h" |
5154 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 5155 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
5156 | #include <assert.h> |
5157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
5158 | #ifdef __cplusplus |
5159 | extern "C" | |
5160 | #endif | |
705db0b5 | 5161 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
5162 | builtin and then its argument prototype would still apply. */ |
5163 | char $ac_func (); | |
5164 | char (*f) (); | |
705db0b5 | 5165 | |
6fc74234 AD |
5166 | #ifdef F77_DUMMY_MAIN |
5167 | # ifdef __cplusplus | |
5168 | extern "C" | |
5169 | # endif | |
5170 | int F77_DUMMY_MAIN() { return 1; } | |
5171 | #endif | |
18569462 AD |
5172 | int |
5173 | main () | |
5174 | { | |
705db0b5 AD |
5175 | /* The GNU C library defines this for functions which it implements |
5176 | to always fail with ENOSYS. Some functions are actually named | |
5177 | something starting with __ and the normal name is an alias. */ | |
5178 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5179 | choke me | |
5180 | #else | |
18569462 | 5181 | f = $ac_func; |
705db0b5 AD |
5182 | #endif |
5183 | ||
18569462 AD |
5184 | ; |
5185 | return 0; | |
5186 | } | |
5187 | _ACEOF | |
5188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 5189 | if { (eval echo "$as_me:5189: \"$ac_link\"") >&5 |
18569462 AD |
5190 | (eval $ac_link) 2>&5 |
5191 | ac_status=$? | |
6fc74234 | 5192 | echo "$as_me:5192: \$? = $ac_status" >&5 |
18569462 | 5193 | (exit $ac_status); } && |
5141b016 | 5194 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 5195 | { (eval echo "$as_me:5195: \"$ac_try\"") >&5 |
18569462 AD |
5196 | (eval $ac_try) 2>&5 |
5197 | ac_status=$? | |
6fc74234 | 5198 | echo "$as_me:5198: \$? = $ac_status" >&5 |
18569462 | 5199 | (exit $ac_status); }; }; then |
459dd1a6 | 5200 | eval "$as_ac_var=yes" |
18569462 AD |
5201 | else |
5202 | echo "$as_me: failed program was:" >&5 | |
5203 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 5204 | eval "$as_ac_var=no" |
18569462 | 5205 | fi |
1e24cc5b | 5206 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 5207 | fi |
6fc74234 | 5208 | echo "$as_me:5208: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
5209 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5210 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6fc74234 | 5211 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 5212 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6fc74234 | 5213 | _ACEOF |
705db0b5 | 5214 | |
705db0b5 AD |
5215 | fi |
5216 | done | |
5217 | ||
18569462 | 5218 | for ac_header in limits.h stdlib.h string.h wchar.h wctype.h |
705db0b5 | 5219 | do |
459dd1a6 | 5220 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6fc74234 AD |
5221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5222 | echo "$as_me:5222: checking for $ac_header" >&5 | |
18569462 | 5223 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 5224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 | 5225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6fc74234 AD |
5226 | fi |
5227 | echo "$as_me:5227: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5228 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18569462 | 5229 | else |
6fc74234 AD |
5230 | # Is the header compilable? |
5231 | echo "$as_me:5231: checking $ac_header usability" >&5 | |
5232 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5233 | cat >conftest.$ac_ext <<_ACEOF | |
5234 | #line 5234 "configure" | |
5235 | #include "confdefs.h" | |
5236 | $ac_includes_default | |
5237 | #include <$ac_header> | |
5238 | _ACEOF | |
5239 | rm -f conftest.$ac_objext | |
5240 | if { (eval echo "$as_me:5240: \"$ac_compile\"") >&5 | |
5241 | (eval $ac_compile) 2>&5 | |
5242 | ac_status=$? | |
5243 | echo "$as_me:5243: \$? = $ac_status" >&5 | |
5244 | (exit $ac_status); } && | |
5245 | { ac_try='test -s conftest.$ac_objext' | |
5246 | { (eval echo "$as_me:5246: \"$ac_try\"") >&5 | |
5247 | (eval $ac_try) 2>&5 | |
5248 | ac_status=$? | |
5249 | echo "$as_me:5249: \$? = $ac_status" >&5 | |
5250 | (exit $ac_status); }; }; then | |
5251 | ac_header_compiler=yes | |
5252 | else | |
5253 | echo "$as_me: failed program was:" >&5 | |
5254 | cat conftest.$ac_ext >&5 | |
5255 | ac_header_compiler=no | |
5256 | fi | |
5257 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5258 | echo "$as_me:5258: result: $ac_header_compiler" >&5 | |
5259 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5260 | ||
5261 | # Is the header present? | |
5262 | echo "$as_me:5262: checking $ac_header presence" >&5 | |
5263 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5264 | cat >conftest.$ac_ext <<_ACEOF | |
5265 | #line 5265 "configure" | |
705db0b5 | 5266 | #include "confdefs.h" |
18569462 AD |
5267 | #include <$ac_header> |
5268 | _ACEOF | |
6fc74234 | 5269 | if { (eval echo "$as_me:5269: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 5270 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
5271 | ac_status=$? |
5272 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5273 | rm -f conftest.er1 | |
5274 | cat conftest.err >&5 | |
6fc74234 | 5275 | echo "$as_me:5275: \$? = $ac_status" >&5 |
1e24cc5b | 5276 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
5277 | if test -s conftest.err; then |
5278 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5279 | else | |
5280 | ac_cpp_err= | |
5281 | fi | |
5282 | else | |
5283 | ac_cpp_err=yes | |
5284 | fi | |
5285 | if test -z "$ac_cpp_err"; then | |
6fc74234 | 5286 | ac_header_preproc=yes |
18569462 AD |
5287 | else |
5288 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 5289 | cat conftest.$ac_ext >&5 |
6fc74234 | 5290 | ac_header_preproc=no |
705db0b5 | 5291 | fi |
18569462 | 5292 | rm -f conftest.err conftest.$ac_ext |
6fc74234 AD |
5293 | echo "$as_me:5293: result: $ac_header_preproc" >&5 |
5294 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5295 | ||
5296 | # So? What about this header? | |
5297 | case $ac_header_compiler:$ac_header_preproc in | |
5298 | yes:no ) | |
5299 | { echo "$as_me:5299: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5300 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5301 | { echo "$as_me:5301: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5302 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
5303 | no:yes ) | |
5304 | { echo "$as_me:5304: WARNING: $ac_header: present but cannot be compiled." >&5 | |
5305 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;} | |
5306 | { echo "$as_me:5306: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5307 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5308 | { echo "$as_me:5308: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5309 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
5310 | esac | |
5311 | echo "$as_me:5311: checking for $ac_header" >&5 | |
5312 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5313 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5315 | else | |
5316 | eval "$as_ac_Header=$ac_header_preproc" | |
705db0b5 | 5317 | fi |
6fc74234 | 5318 | echo "$as_me:5318: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 | 5319 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6fc74234 AD |
5320 | |
5321 | fi | |
459dd1a6 | 5322 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6fc74234 | 5323 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 5324 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6fc74234 | 5325 | _ACEOF |
18569462 | 5326 | |
705db0b5 | 5327 | fi |
6fc74234 | 5328 | |
705db0b5 AD |
5329 | done |
5330 | ||
6fc74234 | 5331 | echo "$as_me:5331: checking for ANSI C header files" >&5 |
18569462 AD |
5332 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5333 | if test "${ac_cv_header_stdc+set}" = set; then | |
5334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 5335 | else |
18569462 | 5336 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5337 | #line 5337 "configure" |
705db0b5 AD |
5338 | #include "confdefs.h" |
5339 | #include <stdlib.h> | |
5340 | #include <stdarg.h> | |
5341 | #include <string.h> | |
5342 | #include <float.h> | |
18569462 AD |
5343 | |
5344 | _ACEOF | |
6fc74234 | 5345 | if { (eval echo "$as_me:5345: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 5346 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
5347 | ac_status=$? |
5348 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5349 | rm -f conftest.er1 | |
5350 | cat conftest.err >&5 | |
6fc74234 | 5351 | echo "$as_me:5351: \$? = $ac_status" >&5 |
1e24cc5b | 5352 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
5353 | if test -s conftest.err; then |
5354 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5355 | else | |
5356 | ac_cpp_err= | |
5357 | fi | |
5358 | else | |
5359 | ac_cpp_err=yes | |
5360 | fi | |
5361 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
5362 | ac_cv_header_stdc=yes |
5363 | else | |
18569462 | 5364 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 5365 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
5366 | ac_cv_header_stdc=no |
5367 | fi | |
18569462 | 5368 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
5369 | |
5370 | if test $ac_cv_header_stdc = yes; then | |
5371 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 5372 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5373 | #line 5373 "configure" |
705db0b5 AD |
5374 | #include "confdefs.h" |
5375 | #include <string.h> | |
18569462 AD |
5376 | |
5377 | _ACEOF | |
705db0b5 AD |
5378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5379 | egrep "memchr" >/dev/null 2>&1; then | |
5380 | : | |
5381 | else | |
705db0b5 AD |
5382 | ac_cv_header_stdc=no |
5383 | fi | |
5384 | rm -f conftest* | |
5385 | ||
5386 | fi | |
5387 | ||
5388 | if test $ac_cv_header_stdc = yes; then | |
5389 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 5390 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5391 | #line 5391 "configure" |
705db0b5 AD |
5392 | #include "confdefs.h" |
5393 | #include <stdlib.h> | |
18569462 AD |
5394 | |
5395 | _ACEOF | |
705db0b5 AD |
5396 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5397 | egrep "free" >/dev/null 2>&1; then | |
5398 | : | |
5399 | else | |
705db0b5 AD |
5400 | ac_cv_header_stdc=no |
5401 | fi | |
5402 | rm -f conftest* | |
5403 | ||
5404 | fi | |
5405 | ||
5406 | if test $ac_cv_header_stdc = yes; then | |
5407 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 5408 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
5409 | : |
5410 | else | |
18569462 | 5411 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5412 | #line 5412 "configure" |
705db0b5 AD |
5413 | #include "confdefs.h" |
5414 | #include <ctype.h> | |
18569462 AD |
5415 | #if ((' ' & 0x0FF) == 0x020) |
5416 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5417 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5418 | #else | |
5419 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
5420 | || ('j' <= (c) && (c) <= 'r') \ | |
5421 | || ('s' <= (c) && (c) <= 'z')) | |
5422 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5423 | #endif | |
705db0b5 | 5424 | |
18569462 AD |
5425 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5426 | int | |
5427 | main () | |
5428 | { | |
5429 | int i; | |
5430 | for (i = 0; i < 256; i++) | |
5431 | if (XOR (islower (i), ISLOWER (i)) | |
5432 | || toupper (i) != TOUPPER (i)) | |
5433 | exit(2); | |
5434 | exit (0); | |
5435 | } | |
5436 | _ACEOF | |
5437 | rm -f conftest$ac_exeext | |
6fc74234 | 5438 | if { (eval echo "$as_me:5438: \"$ac_link\"") >&5 |
18569462 AD |
5439 | (eval $ac_link) 2>&5 |
5440 | ac_status=$? | |
6fc74234 | 5441 | echo "$as_me:5441: \$? = $ac_status" >&5 |
5141b016 | 5442 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6fc74234 | 5443 | { (eval echo "$as_me:5443: \"$ac_try\"") >&5 |
18569462 AD |
5444 | (eval $ac_try) 2>&5 |
5445 | ac_status=$? | |
6fc74234 | 5446 | echo "$as_me:5446: \$? = $ac_status" >&5 |
18569462 | 5447 | (exit $ac_status); }; }; then |
705db0b5 AD |
5448 | : |
5449 | else | |
18569462 AD |
5450 | echo "$as_me: program exited with status $ac_status" >&5 |
5451 | echo "$as_me: failed program was:" >&5 | |
5452 | cat conftest.$ac_ext >&5 | |
5453 | ac_cv_header_stdc=no | |
705db0b5 | 5454 | fi |
459dd1a6 | 5455 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 5456 | fi |
705db0b5 AD |
5457 | fi |
5458 | fi | |
6fc74234 | 5459 | echo "$as_me:5459: result: $ac_cv_header_stdc" >&5 |
18569462 | 5460 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 5461 | if test $ac_cv_header_stdc = yes; then |
18569462 | 5462 | |
6fc74234 | 5463 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 5464 | #define STDC_HEADERS 1 |
6fc74234 | 5465 | _ACEOF |
705db0b5 AD |
5466 | |
5467 | fi | |
5468 | ||
6fc74234 | 5469 | echo "$as_me:5469: checking whether backslash-a works in strings" >&5 |
18569462 AD |
5470 | echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6 |
5471 | if test "${ac_cv_c_backslash_a+set}" = set; then | |
5472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 5473 | else |
18569462 | 5474 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5475 | #line 5475 "configure" |
705db0b5 AD |
5476 | #include "confdefs.h" |
5477 | ||
6fc74234 AD |
5478 | #ifdef F77_DUMMY_MAIN |
5479 | # ifdef __cplusplus | |
5480 | extern "C" | |
5481 | # endif | |
5482 | int F77_DUMMY_MAIN() { return 1; } | |
5483 | #endif | |
18569462 AD |
5484 | int |
5485 | main () | |
5486 | { | |
705db0b5 AD |
5487 | |
5488 | #if '\a' == 'a' | |
5489 | syntax error; | |
5490 | #endif | |
5491 | char buf['\a' == 'a' ? -1 : 1]; | |
5492 | buf[0] = '\a'; | |
5493 | return buf[0] != "\a"[0]; | |
18569462 AD |
5494 | |
5495 | ; | |
5496 | return 0; | |
5497 | } | |
5498 | _ACEOF | |
5499 | rm -f conftest.$ac_objext | |
6fc74234 | 5500 | if { (eval echo "$as_me:5500: \"$ac_compile\"") >&5 |
18569462 AD |
5501 | (eval $ac_compile) 2>&5 |
5502 | ac_status=$? | |
6fc74234 | 5503 | echo "$as_me:5503: \$? = $ac_status" >&5 |
18569462 | 5504 | (exit $ac_status); } && |
5141b016 | 5505 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 5506 | { (eval echo "$as_me:5506: \"$ac_try\"") >&5 |
18569462 AD |
5507 | (eval $ac_try) 2>&5 |
5508 | ac_status=$? | |
6fc74234 | 5509 | echo "$as_me:5509: \$? = $ac_status" >&5 |
18569462 | 5510 | (exit $ac_status); }; }; then |
705db0b5 AD |
5511 | ac_cv_c_backslash_a=yes |
5512 | else | |
18569462 AD |
5513 | echo "$as_me: failed program was:" >&5 |
5514 | cat conftest.$ac_ext >&5 | |
5515 | ac_cv_c_backslash_a=no | |
705db0b5 | 5516 | fi |
18569462 | 5517 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 5518 | fi |
6fc74234 | 5519 | echo "$as_me:5519: result: $ac_cv_c_backslash_a" >&5 |
18569462 | 5520 | echo "${ECHO_T}$ac_cv_c_backslash_a" >&6 |
705db0b5 | 5521 | if test $ac_cv_c_backslash_a = yes; then |
18569462 | 5522 | |
6fc74234 | 5523 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 5524 | #define HAVE_C_BACKSLASH_A 1 |
6fc74234 | 5525 | _ACEOF |
705db0b5 AD |
5526 | |
5527 | fi | |
5528 | ||
18569462 | 5529 | for ac_header in stdlib.h |
705db0b5 | 5530 | do |
459dd1a6 | 5531 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6fc74234 AD |
5532 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5533 | echo "$as_me:5533: checking for $ac_header" >&5 | |
18569462 | 5534 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 5535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 | 5536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6fc74234 AD |
5537 | fi |
5538 | echo "$as_me:5538: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5539 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18569462 | 5540 | else |
6fc74234 AD |
5541 | # Is the header compilable? |
5542 | echo "$as_me:5542: checking $ac_header usability" >&5 | |
5543 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5544 | cat >conftest.$ac_ext <<_ACEOF | |
5545 | #line 5545 "configure" | |
5546 | #include "confdefs.h" | |
5547 | $ac_includes_default | |
5548 | #include <$ac_header> | |
5549 | _ACEOF | |
5550 | rm -f conftest.$ac_objext | |
5551 | if { (eval echo "$as_me:5551: \"$ac_compile\"") >&5 | |
5552 | (eval $ac_compile) 2>&5 | |
5553 | ac_status=$? | |
5554 | echo "$as_me:5554: \$? = $ac_status" >&5 | |
5555 | (exit $ac_status); } && | |
5556 | { ac_try='test -s conftest.$ac_objext' | |
5557 | { (eval echo "$as_me:5557: \"$ac_try\"") >&5 | |
5558 | (eval $ac_try) 2>&5 | |
5559 | ac_status=$? | |
5560 | echo "$as_me:5560: \$? = $ac_status" >&5 | |
5561 | (exit $ac_status); }; }; then | |
5562 | ac_header_compiler=yes | |
5563 | else | |
5564 | echo "$as_me: failed program was:" >&5 | |
5565 | cat conftest.$ac_ext >&5 | |
5566 | ac_header_compiler=no | |
5567 | fi | |
5568 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5569 | echo "$as_me:5569: result: $ac_header_compiler" >&5 | |
5570 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5571 | ||
5572 | # Is the header present? | |
5573 | echo "$as_me:5573: checking $ac_header presence" >&5 | |
5574 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5575 | cat >conftest.$ac_ext <<_ACEOF | |
5576 | #line 5576 "configure" | |
705db0b5 | 5577 | #include "confdefs.h" |
18569462 AD |
5578 | #include <$ac_header> |
5579 | _ACEOF | |
6fc74234 | 5580 | if { (eval echo "$as_me:5580: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 5581 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
5582 | ac_status=$? |
5583 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5584 | rm -f conftest.er1 | |
5585 | cat conftest.err >&5 | |
6fc74234 | 5586 | echo "$as_me:5586: \$? = $ac_status" >&5 |
1e24cc5b | 5587 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
5588 | if test -s conftest.err; then |
5589 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5590 | else | |
5591 | ac_cpp_err= | |
5592 | fi | |
5593 | else | |
5594 | ac_cpp_err=yes | |
5595 | fi | |
5596 | if test -z "$ac_cpp_err"; then | |
6fc74234 | 5597 | ac_header_preproc=yes |
18569462 AD |
5598 | else |
5599 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 5600 | cat conftest.$ac_ext >&5 |
6fc74234 | 5601 | ac_header_preproc=no |
705db0b5 | 5602 | fi |
18569462 | 5603 | rm -f conftest.err conftest.$ac_ext |
6fc74234 AD |
5604 | echo "$as_me:5604: result: $ac_header_preproc" >&5 |
5605 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5606 | ||
5607 | # So? What about this header? | |
5608 | case $ac_header_compiler:$ac_header_preproc in | |
5609 | yes:no ) | |
5610 | { echo "$as_me:5610: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5611 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5612 | { echo "$as_me:5612: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5613 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
5614 | no:yes ) | |
5615 | { echo "$as_me:5615: WARNING: $ac_header: present but cannot be compiled." >&5 | |
5616 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;} | |
5617 | { echo "$as_me:5617: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5618 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5619 | { echo "$as_me:5619: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5620 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
5621 | esac | |
5622 | echo "$as_me:5622: checking for $ac_header" >&5 | |
5623 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5624 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5626 | else | |
5627 | eval "$as_ac_Header=$ac_header_preproc" | |
705db0b5 | 5628 | fi |
6fc74234 | 5629 | echo "$as_me:5629: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 | 5630 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6fc74234 AD |
5631 | |
5632 | fi | |
459dd1a6 | 5633 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6fc74234 | 5634 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 5635 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6fc74234 | 5636 | _ACEOF |
18569462 | 5637 | |
705db0b5 | 5638 | fi |
6fc74234 | 5639 | |
705db0b5 AD |
5640 | done |
5641 | ||
6fc74234 | 5642 | echo "$as_me:5642: checking for mbstate_t" >&5 |
18569462 AD |
5643 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 |
5644 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
5645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 5646 | else |
18569462 | 5647 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5648 | #line 5648 "configure" |
705db0b5 AD |
5649 | #include "confdefs.h" |
5650 | ||
5651 | #if HAVE_STDLIB_H | |
5652 | # include <stdlib.h> | |
5653 | #endif | |
5654 | #include <wchar.h> | |
6fc74234 AD |
5655 | #ifdef F77_DUMMY_MAIN |
5656 | # ifdef __cplusplus | |
5657 | extern "C" | |
5658 | # endif | |
5659 | int F77_DUMMY_MAIN() { return 1; } | |
5660 | #endif | |
18569462 AD |
5661 | int |
5662 | main () | |
5663 | { | |
705db0b5 | 5664 | mbstate_t x; return sizeof x; |
18569462 AD |
5665 | ; |
5666 | return 0; | |
5667 | } | |
5668 | _ACEOF | |
5669 | rm -f conftest.$ac_objext | |
6fc74234 | 5670 | if { (eval echo "$as_me:5670: \"$ac_compile\"") >&5 |
18569462 AD |
5671 | (eval $ac_compile) 2>&5 |
5672 | ac_status=$? | |
6fc74234 | 5673 | echo "$as_me:5673: \$? = $ac_status" >&5 |
18569462 | 5674 | (exit $ac_status); } && |
5141b016 | 5675 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 5676 | { (eval echo "$as_me:5676: \"$ac_try\"") >&5 |
18569462 AD |
5677 | (eval $ac_try) 2>&5 |
5678 | ac_status=$? | |
6fc74234 | 5679 | echo "$as_me:5679: \$? = $ac_status" >&5 |
18569462 | 5680 | (exit $ac_status); }; }; then |
705db0b5 AD |
5681 | ac_cv_type_mbstate_t=yes |
5682 | else | |
18569462 AD |
5683 | echo "$as_me: failed program was:" >&5 |
5684 | cat conftest.$ac_ext >&5 | |
5685 | ac_cv_type_mbstate_t=no | |
705db0b5 | 5686 | fi |
18569462 | 5687 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 5688 | fi |
6fc74234 | 5689 | echo "$as_me:5689: result: $ac_cv_type_mbstate_t" >&5 |
18569462 | 5690 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 |
705db0b5 | 5691 | if test $ac_cv_type_mbstate_t = no; then |
18569462 | 5692 | |
6fc74234 | 5693 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 5694 | #define mbstate_t int |
6fc74234 | 5695 | _ACEOF |
705db0b5 AD |
5696 | |
5697 | fi | |
705db0b5 | 5698 | |
6fc74234 | 5699 | echo "$as_me:5699: checking for function prototypes" >&5 |
18569462 | 5700 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
705db0b5 | 5701 | if test "$am_cv_prog_cc_stdc" != no; then |
6fc74234 | 5702 | echo "$as_me:5702: result: yes" >&5 |
18569462 AD |
5703 | echo "${ECHO_T}yes" >&6 |
5704 | ||
6fc74234 | 5705 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 5706 | #define PROTOTYPES 1 |
6fc74234 | 5707 | _ACEOF |
705db0b5 AD |
5708 | |
5709 | U= ANSI2KNR= | |
5710 | else | |
6fc74234 | 5711 | echo "$as_me:5711: result: no" >&5 |
18569462 | 5712 | echo "${ECHO_T}no" >&6 |
705db0b5 | 5713 | U=_ ANSI2KNR=./ansi2knr |
6fc74234 AD |
5714 | fi |
5715 | # Ensure some checks needed by ansi2knr itself. | |
5716 | echo "$as_me:5716: checking for ANSI C header files" >&5 | |
18569462 AD |
5717 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5718 | if test "${ac_cv_header_stdc+set}" = set; then | |
5719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 5720 | else |
18569462 | 5721 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5722 | #line 5722 "configure" |
705db0b5 AD |
5723 | #include "confdefs.h" |
5724 | #include <stdlib.h> | |
5725 | #include <stdarg.h> | |
5726 | #include <string.h> | |
5727 | #include <float.h> | |
18569462 AD |
5728 | |
5729 | _ACEOF | |
6fc74234 | 5730 | if { (eval echo "$as_me:5730: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 5731 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
5732 | ac_status=$? |
5733 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5734 | rm -f conftest.er1 | |
5735 | cat conftest.err >&5 | |
6fc74234 | 5736 | echo "$as_me:5736: \$? = $ac_status" >&5 |
1e24cc5b | 5737 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
5738 | if test -s conftest.err; then |
5739 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5740 | else | |
5741 | ac_cpp_err= | |
5742 | fi | |
5743 | else | |
5744 | ac_cpp_err=yes | |
5745 | fi | |
5746 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
5747 | ac_cv_header_stdc=yes |
5748 | else | |
18569462 | 5749 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 5750 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
5751 | ac_cv_header_stdc=no |
5752 | fi | |
18569462 | 5753 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
5754 | |
5755 | if test $ac_cv_header_stdc = yes; then | |
5756 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 5757 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5758 | #line 5758 "configure" |
705db0b5 AD |
5759 | #include "confdefs.h" |
5760 | #include <string.h> | |
18569462 AD |
5761 | |
5762 | _ACEOF | |
705db0b5 AD |
5763 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5764 | egrep "memchr" >/dev/null 2>&1; then | |
5765 | : | |
5766 | else | |
705db0b5 AD |
5767 | ac_cv_header_stdc=no |
5768 | fi | |
5769 | rm -f conftest* | |
5770 | ||
5771 | fi | |
5772 | ||
5773 | if test $ac_cv_header_stdc = yes; then | |
5774 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 5775 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5776 | #line 5776 "configure" |
705db0b5 AD |
5777 | #include "confdefs.h" |
5778 | #include <stdlib.h> | |
18569462 AD |
5779 | |
5780 | _ACEOF | |
705db0b5 AD |
5781 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5782 | egrep "free" >/dev/null 2>&1; then | |
5783 | : | |
5784 | else | |
705db0b5 AD |
5785 | ac_cv_header_stdc=no |
5786 | fi | |
5787 | rm -f conftest* | |
5788 | ||
5789 | fi | |
5790 | ||
5791 | if test $ac_cv_header_stdc = yes; then | |
5792 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 5793 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
5794 | : |
5795 | else | |
18569462 | 5796 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5797 | #line 5797 "configure" |
705db0b5 AD |
5798 | #include "confdefs.h" |
5799 | #include <ctype.h> | |
18569462 AD |
5800 | #if ((' ' & 0x0FF) == 0x020) |
5801 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5802 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5803 | #else | |
5804 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
5805 | || ('j' <= (c) && (c) <= 'r') \ | |
5806 | || ('s' <= (c) && (c) <= 'z')) | |
5807 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5808 | #endif | |
705db0b5 | 5809 | |
18569462 AD |
5810 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5811 | int | |
5812 | main () | |
5813 | { | |
5814 | int i; | |
5815 | for (i = 0; i < 256; i++) | |
5816 | if (XOR (islower (i), ISLOWER (i)) | |
5817 | || toupper (i) != TOUPPER (i)) | |
5818 | exit(2); | |
5819 | exit (0); | |
5820 | } | |
5821 | _ACEOF | |
5822 | rm -f conftest$ac_exeext | |
6fc74234 | 5823 | if { (eval echo "$as_me:5823: \"$ac_link\"") >&5 |
18569462 AD |
5824 | (eval $ac_link) 2>&5 |
5825 | ac_status=$? | |
6fc74234 | 5826 | echo "$as_me:5826: \$? = $ac_status" >&5 |
5141b016 | 5827 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6fc74234 | 5828 | { (eval echo "$as_me:5828: \"$ac_try\"") >&5 |
18569462 AD |
5829 | (eval $ac_try) 2>&5 |
5830 | ac_status=$? | |
6fc74234 | 5831 | echo "$as_me:5831: \$? = $ac_status" >&5 |
18569462 | 5832 | (exit $ac_status); }; }; then |
705db0b5 AD |
5833 | : |
5834 | else | |
18569462 AD |
5835 | echo "$as_me: program exited with status $ac_status" >&5 |
5836 | echo "$as_me: failed program was:" >&5 | |
5837 | cat conftest.$ac_ext >&5 | |
5838 | ac_cv_header_stdc=no | |
705db0b5 | 5839 | fi |
459dd1a6 | 5840 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 5841 | fi |
705db0b5 AD |
5842 | fi |
5843 | fi | |
6fc74234 | 5844 | echo "$as_me:5844: result: $ac_cv_header_stdc" >&5 |
18569462 | 5845 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 5846 | if test $ac_cv_header_stdc = yes; then |
18569462 | 5847 | |
6fc74234 | 5848 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 5849 | #define STDC_HEADERS 1 |
6fc74234 | 5850 | _ACEOF |
705db0b5 AD |
5851 | |
5852 | fi | |
5853 | ||
18569462 | 5854 | for ac_header in string.h |
705db0b5 | 5855 | do |
459dd1a6 | 5856 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6fc74234 AD |
5857 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5858 | echo "$as_me:5858: checking for $ac_header" >&5 | |
18569462 | 5859 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 5860 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 | 5861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6fc74234 AD |
5862 | fi |
5863 | echo "$as_me:5863: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18569462 | 5865 | else |
6fc74234 AD |
5866 | # Is the header compilable? |
5867 | echo "$as_me:5867: checking $ac_header usability" >&5 | |
5868 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5869 | cat >conftest.$ac_ext <<_ACEOF | |
5870 | #line 5870 "configure" | |
5871 | #include "confdefs.h" | |
5872 | $ac_includes_default | |
5873 | #include <$ac_header> | |
5874 | _ACEOF | |
5875 | rm -f conftest.$ac_objext | |
5876 | if { (eval echo "$as_me:5876: \"$ac_compile\"") >&5 | |
5877 | (eval $ac_compile) 2>&5 | |
5878 | ac_status=$? | |
5879 | echo "$as_me:5879: \$? = $ac_status" >&5 | |
5880 | (exit $ac_status); } && | |
5881 | { ac_try='test -s conftest.$ac_objext' | |
5882 | { (eval echo "$as_me:5882: \"$ac_try\"") >&5 | |
5883 | (eval $ac_try) 2>&5 | |
5884 | ac_status=$? | |
5885 | echo "$as_me:5885: \$? = $ac_status" >&5 | |
5886 | (exit $ac_status); }; }; then | |
5887 | ac_header_compiler=yes | |
5888 | else | |
5889 | echo "$as_me: failed program was:" >&5 | |
5890 | cat conftest.$ac_ext >&5 | |
5891 | ac_header_compiler=no | |
5892 | fi | |
5893 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5894 | echo "$as_me:5894: result: $ac_header_compiler" >&5 | |
5895 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5896 | ||
5897 | # Is the header present? | |
5898 | echo "$as_me:5898: checking $ac_header presence" >&5 | |
5899 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5900 | cat >conftest.$ac_ext <<_ACEOF | |
5901 | #line 5901 "configure" | |
705db0b5 | 5902 | #include "confdefs.h" |
18569462 AD |
5903 | #include <$ac_header> |
5904 | _ACEOF | |
6fc74234 | 5905 | if { (eval echo "$as_me:5905: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 5906 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
5907 | ac_status=$? |
5908 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5909 | rm -f conftest.er1 | |
5910 | cat conftest.err >&5 | |
6fc74234 | 5911 | echo "$as_me:5911: \$? = $ac_status" >&5 |
1e24cc5b | 5912 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
5913 | if test -s conftest.err; then |
5914 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5915 | else | |
5916 | ac_cpp_err= | |
5917 | fi | |
5918 | else | |
5919 | ac_cpp_err=yes | |
5920 | fi | |
5921 | if test -z "$ac_cpp_err"; then | |
6fc74234 | 5922 | ac_header_preproc=yes |
18569462 AD |
5923 | else |
5924 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 5925 | cat conftest.$ac_ext >&5 |
6fc74234 | 5926 | ac_header_preproc=no |
705db0b5 | 5927 | fi |
18569462 | 5928 | rm -f conftest.err conftest.$ac_ext |
6fc74234 AD |
5929 | echo "$as_me:5929: result: $ac_header_preproc" >&5 |
5930 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5931 | ||
5932 | # So? What about this header? | |
5933 | case $ac_header_compiler:$ac_header_preproc in | |
5934 | yes:no ) | |
5935 | { echo "$as_me:5935: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5936 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5937 | { echo "$as_me:5937: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5938 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
5939 | no:yes ) | |
5940 | { echo "$as_me:5940: WARNING: $ac_header: present but cannot be compiled." >&5 | |
5941 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;} | |
5942 | { echo "$as_me:5942: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5943 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5944 | { echo "$as_me:5944: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5945 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
5946 | esac | |
5947 | echo "$as_me:5947: checking for $ac_header" >&5 | |
5948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5951 | else | |
5952 | eval "$as_ac_Header=$ac_header_preproc" | |
705db0b5 | 5953 | fi |
6fc74234 | 5954 | echo "$as_me:5954: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 | 5955 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6fc74234 AD |
5956 | |
5957 | fi | |
459dd1a6 | 5958 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6fc74234 | 5959 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 5960 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6fc74234 | 5961 | _ACEOF |
18569462 | 5962 | |
705db0b5 | 5963 | fi |
705db0b5 | 5964 | |
6fc74234 | 5965 | done |
705db0b5 | 5966 | |
5141b016 AD |
5967 | for ac_func in strerror strerror_r vprintf doprnt |
5968 | do | |
459dd1a6 | 5969 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6fc74234 | 5970 | echo "$as_me:5970: checking for $ac_func" >&5 |
5141b016 | 5971 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 5972 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 | 5973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 | 5974 | else |
18569462 | 5975 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 5976 | #line 5976 "configure" |
705db0b5 | 5977 | #include "confdefs.h" |
5141b016 AD |
5978 | /* System header to define __stub macros and hopefully few prototypes, |
5979 | which can conflict with char $ac_func (); below. */ | |
5980 | #include <assert.h> | |
5981 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5982 | #ifdef __cplusplus | |
5983 | extern "C" | |
5984 | #endif | |
5985 | /* We use char because int might match the return type of a gcc2 | |
5986 | builtin and then its argument prototype would still apply. */ | |
5987 | char $ac_func (); | |
5988 | char (*f) (); | |
5989 | ||
6fc74234 AD |
5990 | #ifdef F77_DUMMY_MAIN |
5991 | # ifdef __cplusplus | |
5992 | extern "C" | |
5993 | # endif | |
5994 | int F77_DUMMY_MAIN() { return 1; } | |
5995 | #endif | |
18569462 AD |
5996 | int |
5997 | main () | |
5998 | { | |
5141b016 AD |
5999 | /* The GNU C library defines this for functions which it implements |
6000 | to always fail with ENOSYS. Some functions are actually named | |
6001 | something starting with __ and the normal name is an alias. */ | |
6002 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6003 | choke me | |
6004 | #else | |
6005 | f = $ac_func; | |
6006 | #endif | |
6007 | ||
18569462 AD |
6008 | ; |
6009 | return 0; | |
6010 | } | |
6011 | _ACEOF | |
5141b016 | 6012 | rm -f conftest.$ac_objext conftest$ac_exeext |
6fc74234 | 6013 | if { (eval echo "$as_me:6013: \"$ac_link\"") >&5 |
5141b016 | 6014 | (eval $ac_link) 2>&5 |
18569462 | 6015 | ac_status=$? |
6fc74234 | 6016 | echo "$as_me:6016: \$? = $ac_status" >&5 |
18569462 | 6017 | (exit $ac_status); } && |
5141b016 | 6018 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 6019 | { (eval echo "$as_me:6019: \"$ac_try\"") >&5 |
18569462 AD |
6020 | (eval $ac_try) 2>&5 |
6021 | ac_status=$? | |
6fc74234 | 6022 | echo "$as_me:6022: \$? = $ac_status" >&5 |
18569462 | 6023 | (exit $ac_status); }; }; then |
459dd1a6 | 6024 | eval "$as_ac_var=yes" |
705db0b5 | 6025 | else |
18569462 AD |
6026 | echo "$as_me: failed program was:" >&5 |
6027 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 6028 | eval "$as_ac_var=no" |
705db0b5 | 6029 | fi |
1e24cc5b | 6030 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 6031 | fi |
6fc74234 | 6032 | echo "$as_me:6032: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
6033 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6034 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6fc74234 | 6035 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 6036 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6fc74234 | 6037 | _ACEOF |
705db0b5 AD |
6038 | |
6039 | fi | |
5141b016 | 6040 | done |
705db0b5 | 6041 | |
6fc74234 | 6042 | echo "$as_me:6042: checking for ANSI C header files" >&5 |
5141b016 AD |
6043 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
6044 | if test "${ac_cv_header_stdc+set}" = set; then | |
18569462 AD |
6045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6046 | else | |
6047 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 6048 | #line 6048 "configure" |
18569462 | 6049 | #include "confdefs.h" |
5141b016 AD |
6050 | #include <stdlib.h> |
6051 | #include <stdarg.h> | |
6052 | #include <string.h> | |
6053 | #include <float.h> | |
6054 | ||
18569462 | 6055 | _ACEOF |
6fc74234 | 6056 | if { (eval echo "$as_me:6056: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 6057 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 | 6058 | ac_status=$? |
5141b016 AD |
6059 | egrep -v '^ *\+' conftest.er1 >conftest.err |
6060 | rm -f conftest.er1 | |
6061 | cat conftest.err >&5 | |
6fc74234 | 6062 | echo "$as_me:6062: \$? = $ac_status" >&5 |
1e24cc5b | 6063 | (exit $ac_status); } >/dev/null; then |
5141b016 AD |
6064 | if test -s conftest.err; then |
6065 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6066 | else | |
6067 | ac_cpp_err= | |
6068 | fi | |
705db0b5 | 6069 | else |
5141b016 | 6070 | ac_cpp_err=yes |
705db0b5 | 6071 | fi |
5141b016 AD |
6072 | if test -z "$ac_cpp_err"; then |
6073 | ac_cv_header_stdc=yes | |
18569462 | 6074 | else |
5141b016 AD |
6075 | echo "$as_me: failed program was:" >&5 |
6076 | cat conftest.$ac_ext >&5 | |
6077 | ac_cv_header_stdc=no | |
6078 | fi | |
6079 | rm -f conftest.err conftest.$ac_ext | |
18569462 | 6080 | |
5141b016 AD |
6081 | if test $ac_cv_header_stdc = yes; then |
6082 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6083 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 6084 | #line 6084 "configure" |
5141b016 AD |
6085 | #include "confdefs.h" |
6086 | #include <string.h> | |
6087 | ||
6088 | _ACEOF | |
6089 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6090 | egrep "memchr" >/dev/null 2>&1; then | |
6091 | : | |
6092 | else | |
6093 | ac_cv_header_stdc=no | |
6094 | fi | |
6095 | rm -f conftest* | |
6096 | ||
6097 | fi | |
6098 | ||
6099 | if test $ac_cv_header_stdc = yes; then | |
6100 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6101 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 6102 | #line 6102 "configure" |
5141b016 AD |
6103 | #include "confdefs.h" |
6104 | #include <stdlib.h> | |
6105 | ||
6106 | _ACEOF | |
6107 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6108 | egrep "free" >/dev/null 2>&1; then | |
6109 | : | |
6110 | else | |
6111 | ac_cv_header_stdc=no | |
6112 | fi | |
6113 | rm -f conftest* | |
6114 | ||
6115 | fi | |
6116 | ||
6117 | if test $ac_cv_header_stdc = yes; then | |
6118 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6119 | if test "$cross_compiling" = yes; then | |
6120 | : | |
6121 | else | |
6122 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 6123 | #line 6123 "configure" |
5141b016 AD |
6124 | #include "confdefs.h" |
6125 | #include <ctype.h> | |
6126 | #if ((' ' & 0x0FF) == 0x020) | |
6127 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6128 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6129 | #else | |
6130 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
6131 | || ('j' <= (c) && (c) <= 'r') \ | |
6132 | || ('s' <= (c) && (c) <= 'z')) | |
6133 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6134 | #endif | |
6135 | ||
6136 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6137 | int | |
6138 | main () | |
6139 | { | |
6140 | int i; | |
6141 | for (i = 0; i < 256; i++) | |
6142 | if (XOR (islower (i), ISLOWER (i)) | |
6143 | || toupper (i) != TOUPPER (i)) | |
6144 | exit(2); | |
6145 | exit (0); | |
6146 | } | |
6147 | _ACEOF | |
6148 | rm -f conftest$ac_exeext | |
6fc74234 | 6149 | if { (eval echo "$as_me:6149: \"$ac_link\"") >&5 |
5141b016 AD |
6150 | (eval $ac_link) 2>&5 |
6151 | ac_status=$? | |
6fc74234 | 6152 | echo "$as_me:6152: \$? = $ac_status" >&5 |
5141b016 | 6153 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6fc74234 | 6154 | { (eval echo "$as_me:6154: \"$ac_try\"") >&5 |
5141b016 AD |
6155 | (eval $ac_try) 2>&5 |
6156 | ac_status=$? | |
6fc74234 | 6157 | echo "$as_me:6157: \$? = $ac_status" >&5 |
5141b016 AD |
6158 | (exit $ac_status); }; }; then |
6159 | : | |
6160 | else | |
6161 | echo "$as_me: program exited with status $ac_status" >&5 | |
6162 | echo "$as_me: failed program was:" >&5 | |
6163 | cat conftest.$ac_ext >&5 | |
6164 | ac_cv_header_stdc=no | |
6165 | fi | |
459dd1a6 | 6166 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5141b016 AD |
6167 | fi |
6168 | fi | |
6169 | fi | |
6fc74234 | 6170 | echo "$as_me:6170: result: $ac_cv_header_stdc" >&5 |
5141b016 AD |
6171 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
6172 | if test $ac_cv_header_stdc = yes; then | |
6173 | ||
6fc74234 | 6174 | cat >>confdefs.h <<\_ACEOF |
5141b016 | 6175 | #define STDC_HEADERS 1 |
6fc74234 | 6176 | _ACEOF |
5141b016 AD |
6177 | |
6178 | fi | |
6179 | ||
6fc74234 | 6180 | echo "$as_me:6180: checking whether strerror_r is declared" >&5 |
5141b016 AD |
6181 | echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6 |
6182 | if test "${ac_cv_have_decl_strerror_r+set}" = set; then | |
6183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6184 | else | |
6185 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 6186 | #line 6186 "configure" |
5141b016 AD |
6187 | #include "confdefs.h" |
6188 | $ac_includes_default | |
6fc74234 AD |
6189 | #ifdef F77_DUMMY_MAIN |
6190 | # ifdef __cplusplus | |
6191 | extern "C" | |
6192 | # endif | |
6193 | int F77_DUMMY_MAIN() { return 1; } | |
6194 | #endif | |
5141b016 AD |
6195 | int |
6196 | main () | |
6197 | { | |
6198 | #ifndef strerror_r | |
6199 | char *p = (char *) strerror_r; | |
6200 | #endif | |
6201 | ||
6202 | ; | |
6203 | return 0; | |
6204 | } | |
6205 | _ACEOF | |
6206 | rm -f conftest.$ac_objext | |
6fc74234 | 6207 | if { (eval echo "$as_me:6207: \"$ac_compile\"") >&5 |
5141b016 AD |
6208 | (eval $ac_compile) 2>&5 |
6209 | ac_status=$? | |
6fc74234 | 6210 | echo "$as_me:6210: \$? = $ac_status" >&5 |
5141b016 AD |
6211 | (exit $ac_status); } && |
6212 | { ac_try='test -s conftest.$ac_objext' | |
6fc74234 | 6213 | { (eval echo "$as_me:6213: \"$ac_try\"") >&5 |
5141b016 AD |
6214 | (eval $ac_try) 2>&5 |
6215 | ac_status=$? | |
6fc74234 | 6216 | echo "$as_me:6216: \$? = $ac_status" >&5 |
5141b016 AD |
6217 | (exit $ac_status); }; }; then |
6218 | ac_cv_have_decl_strerror_r=yes | |
6219 | else | |
6220 | echo "$as_me: failed program was:" >&5 | |
6221 | cat conftest.$ac_ext >&5 | |
6222 | ac_cv_have_decl_strerror_r=no | |
6223 | fi | |
6224 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6225 | fi | |
6fc74234 | 6226 | echo "$as_me:6226: result: $ac_cv_have_decl_strerror_r" >&5 |
5141b016 AD |
6227 | echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6 |
6228 | if test $ac_cv_have_decl_strerror_r = yes; then | |
6229 | ||
6fc74234 | 6230 | cat >>confdefs.h <<_ACEOF |
5141b016 | 6231 | #define HAVE_DECL_STRERROR_R 1 |
6fc74234 | 6232 | _ACEOF |
5141b016 AD |
6233 | |
6234 | else | |
6fc74234 | 6235 | cat >>confdefs.h <<_ACEOF |
5141b016 | 6236 | #define HAVE_DECL_STRERROR_R 0 |
6fc74234 | 6237 | _ACEOF |
5141b016 AD |
6238 | |
6239 | fi | |
6240 | ||
6241 | for ac_func in strerror_r | |
6242 | do | |
459dd1a6 | 6243 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6fc74234 | 6244 | echo "$as_me:6244: checking for $ac_func" >&5 |
5141b016 | 6245 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 6246 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
5141b016 AD |
6247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6248 | else | |
6249 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 6250 | #line 6250 "configure" |
5141b016 AD |
6251 | #include "confdefs.h" |
6252 | /* System header to define __stub macros and hopefully few prototypes, | |
6253 | which can conflict with char $ac_func (); below. */ | |
6254 | #include <assert.h> | |
6255 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6256 | #ifdef __cplusplus | |
6257 | extern "C" | |
6258 | #endif | |
6259 | /* We use char because int might match the return type of a gcc2 | |
6260 | builtin and then its argument prototype would still apply. */ | |
6261 | char $ac_func (); | |
6262 | char (*f) (); | |
6263 | ||
6fc74234 AD |
6264 | #ifdef F77_DUMMY_MAIN |
6265 | # ifdef __cplusplus | |
6266 | extern "C" | |
6267 | # endif | |
6268 | int F77_DUMMY_MAIN() { return 1; } | |
6269 | #endif | |
5141b016 AD |
6270 | int |
6271 | main () | |
6272 | { | |
6273 | /* The GNU C library defines this for functions which it implements | |
6274 | to always fail with ENOSYS. Some functions are actually named | |
6275 | something starting with __ and the normal name is an alias. */ | |
6276 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6277 | choke me | |
6278 | #else | |
6279 | f = $ac_func; | |
6280 | #endif | |
6281 | ||
6282 | ; | |
6283 | return 0; | |
6284 | } | |
6285 | _ACEOF | |
6286 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 6287 | if { (eval echo "$as_me:6287: \"$ac_link\"") >&5 |
5141b016 AD |
6288 | (eval $ac_link) 2>&5 |
6289 | ac_status=$? | |
6fc74234 | 6290 | echo "$as_me:6290: \$? = $ac_status" >&5 |
5141b016 AD |
6291 | (exit $ac_status); } && |
6292 | { ac_try='test -s conftest$ac_exeext' | |
6fc74234 | 6293 | { (eval echo "$as_me:6293: \"$ac_try\"") >&5 |
5141b016 AD |
6294 | (eval $ac_try) 2>&5 |
6295 | ac_status=$? | |
6fc74234 | 6296 | echo "$as_me:6296: \$? = $ac_status" >&5 |
5141b016 | 6297 | (exit $ac_status); }; }; then |
459dd1a6 | 6298 | eval "$as_ac_var=yes" |
5141b016 AD |
6299 | else |
6300 | echo "$as_me: failed program was:" >&5 | |
6301 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 6302 | eval "$as_ac_var=no" |
5141b016 | 6303 | fi |
1e24cc5b | 6304 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5141b016 | 6305 | fi |
6fc74234 | 6306 | echo "$as_me:6306: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
6307 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6308 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6fc74234 | 6309 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 6310 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6fc74234 AD |
6311 | _ACEOF |
6312 | ||
6313 | fi | |
6314 | done | |
6315 | ||
6316 | if test $ac_cv_func_strerror_r = yes; then | |
5141b016 | 6317 | |
6fc74234 AD |
6318 | for ac_header in string.h |
6319 | do | |
6320 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6321 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6322 | echo "$as_me:6322: checking for $ac_header" >&5 | |
6323 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6324 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6326 | fi | |
6327 | echo "$as_me:6327: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6328 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6329 | else | |
6330 | # Is the header compilable? | |
6331 | echo "$as_me:6331: checking $ac_header usability" >&5 | |
6332 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6333 | cat >conftest.$ac_ext <<_ACEOF | |
6334 | #line 6334 "configure" | |
6335 | #include "confdefs.h" | |
6336 | $ac_includes_default | |
6337 | #include <$ac_header> | |
6338 | _ACEOF | |
6339 | rm -f conftest.$ac_objext | |
6340 | if { (eval echo "$as_me:6340: \"$ac_compile\"") >&5 | |
6341 | (eval $ac_compile) 2>&5 | |
6342 | ac_status=$? | |
6343 | echo "$as_me:6343: \$? = $ac_status" >&5 | |
6344 | (exit $ac_status); } && | |
6345 | { ac_try='test -s conftest.$ac_objext' | |
6346 | { (eval echo "$as_me:6346: \"$ac_try\"") >&5 | |
6347 | (eval $ac_try) 2>&5 | |
6348 | ac_status=$? | |
6349 | echo "$as_me:6349: \$? = $ac_status" >&5 | |
6350 | (exit $ac_status); }; }; then | |
6351 | ac_header_compiler=yes | |
6352 | else | |
6353 | echo "$as_me: failed program was:" >&5 | |
6354 | cat conftest.$ac_ext >&5 | |
6355 | ac_header_compiler=no | |
5141b016 | 6356 | fi |
6fc74234 AD |
6357 | rm -f conftest.$ac_objext conftest.$ac_ext |
6358 | echo "$as_me:6358: result: $ac_header_compiler" >&5 | |
6359 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5141b016 | 6360 | |
6fc74234 AD |
6361 | # Is the header present? |
6362 | echo "$as_me:6362: checking $ac_header presence" >&5 | |
6363 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6364 | cat >conftest.$ac_ext <<_ACEOF | |
6365 | #line 6365 "configure" | |
5141b016 AD |
6366 | #include "confdefs.h" |
6367 | #include <$ac_header> | |
6368 | _ACEOF | |
6fc74234 | 6369 | if { (eval echo "$as_me:6369: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 6370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5141b016 AD |
6371 | ac_status=$? |
6372 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6373 | rm -f conftest.er1 | |
6374 | cat conftest.err >&5 | |
6fc74234 | 6375 | echo "$as_me:6375: \$? = $ac_status" >&5 |
1e24cc5b | 6376 | (exit $ac_status); } >/dev/null; then |
5141b016 AD |
6377 | if test -s conftest.err; then |
6378 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6379 | else | |
6380 | ac_cpp_err= | |
6381 | fi | |
6382 | else | |
6383 | ac_cpp_err=yes | |
6384 | fi | |
6385 | if test -z "$ac_cpp_err"; then | |
6fc74234 | 6386 | ac_header_preproc=yes |
5141b016 AD |
6387 | else |
6388 | echo "$as_me: failed program was:" >&5 | |
6389 | cat conftest.$ac_ext >&5 | |
6fc74234 | 6390 | ac_header_preproc=no |
5141b016 AD |
6391 | fi |
6392 | rm -f conftest.err conftest.$ac_ext | |
6fc74234 AD |
6393 | echo "$as_me:6393: result: $ac_header_preproc" >&5 |
6394 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6395 | ||
6396 | # So? What about this header? | |
6397 | case $ac_header_compiler:$ac_header_preproc in | |
6398 | yes:no ) | |
6399 | { echo "$as_me:6399: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6400 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6401 | { echo "$as_me:6401: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6402 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6403 | no:yes ) | |
6404 | { echo "$as_me:6404: WARNING: $ac_header: present but cannot be compiled." >&5 | |
6405 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;} | |
6406 | { echo "$as_me:6406: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6407 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6408 | { echo "$as_me:6408: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6409 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6410 | esac | |
6411 | echo "$as_me:6411: checking for $ac_header" >&5 | |
6412 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6415 | else | |
6416 | eval "$as_ac_Header=$ac_header_preproc" | |
5141b016 | 6417 | fi |
6fc74234 | 6418 | echo "$as_me:6418: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 | 6419 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6fc74234 AD |
6420 | |
6421 | fi | |
459dd1a6 | 6422 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6fc74234 | 6423 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 6424 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6fc74234 | 6425 | _ACEOF |
5141b016 AD |
6426 | |
6427 | fi | |
6fc74234 | 6428 | |
5141b016 AD |
6429 | done |
6430 | ||
6fc74234 | 6431 | echo "$as_me:6431: checking for working strerror_r" >&5 |
5141b016 AD |
6432 | echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6 |
6433 | if test "${ac_cv_func_strerror_r_works+set}" = set; then | |
6434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6435 | else | |
6436 | ||
6437 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 6438 | #line 6438 "configure" |
5141b016 AD |
6439 | #include "confdefs.h" |
6440 | ||
6441 | # include <stdio.h> | |
6442 | # if HAVE_STRING_H | |
6443 | # include <string.h> | |
6444 | # endif | |
6445 | ||
6fc74234 AD |
6446 | #ifdef F77_DUMMY_MAIN |
6447 | # ifdef __cplusplus | |
6448 | extern "C" | |
6449 | # endif | |
6450 | int F77_DUMMY_MAIN() { return 1; } | |
6451 | #endif | |
5141b016 AD |
6452 | int |
6453 | main () | |
6454 | { | |
6455 | ||
6456 | char buf[100]; | |
6457 | char x = *strerror_r (0, buf, sizeof buf); | |
6458 | ||
6459 | ; | |
6460 | return 0; | |
6461 | } | |
6462 | _ACEOF | |
6463 | rm -f conftest.$ac_objext | |
6fc74234 | 6464 | if { (eval echo "$as_me:6464: \"$ac_compile\"") >&5 |
5141b016 AD |
6465 | (eval $ac_compile) 2>&5 |
6466 | ac_status=$? | |
6fc74234 | 6467 | echo "$as_me:6467: \$? = $ac_status" >&5 |
5141b016 AD |
6468 | (exit $ac_status); } && |
6469 | { ac_try='test -s conftest.$ac_objext' | |
6fc74234 | 6470 | { (eval echo "$as_me:6470: \"$ac_try\"") >&5 |
5141b016 AD |
6471 | (eval $ac_try) 2>&5 |
6472 | ac_status=$? | |
6fc74234 | 6473 | echo "$as_me:6473: \$? = $ac_status" >&5 |
5141b016 AD |
6474 | (exit $ac_status); }; }; then |
6475 | ac_cv_func_strerror_r_works=yes | |
6476 | else | |
6477 | echo "$as_me: failed program was:" >&5 | |
6478 | cat conftest.$ac_ext >&5 | |
6479 | ac_cv_func_strerror_r_works=no | |
6480 | ||
6481 | fi | |
6482 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6483 | if test $ac_cv_func_strerror_r_works = no; then | |
6484 | # strerror_r seems not to work, but now we have to choose between | |
6485 | # systems that have relatively inaccessible declarations for the | |
6486 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the | |
6487 | # former has a strerror_r that returns char*, while the latter | |
6488 | # has a strerror_r that returns `int'. | |
6489 | # This test should segfault on the DEC system. | |
6490 | if test "$cross_compiling" = yes; then | |
6491 | ac_cv_func_strerror_r_works=no | |
6492 | else | |
6493 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 6494 | #line 6494 "configure" |
5141b016 AD |
6495 | #include "confdefs.h" |
6496 | ||
6497 | # include <stdio.h> | |
6498 | # include <string.h> | |
6499 | # include <ctype.h> | |
6500 | ||
6501 | extern char *strerror_r (); | |
6502 | ||
6503 | int | |
6504 | main () | |
6505 | { | |
6506 | char buf[100]; | |
6507 | char x = *strerror_r (0, buf, sizeof buf); | |
6508 | exit (!isalpha (x)); | |
6509 | } | |
6510 | ||
6511 | _ACEOF | |
6512 | rm -f conftest$ac_exeext | |
6fc74234 | 6513 | if { (eval echo "$as_me:6513: \"$ac_link\"") >&5 |
5141b016 AD |
6514 | (eval $ac_link) 2>&5 |
6515 | ac_status=$? | |
6fc74234 | 6516 | echo "$as_me:6516: \$? = $ac_status" >&5 |
5141b016 | 6517 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6fc74234 | 6518 | { (eval echo "$as_me:6518: \"$ac_try\"") >&5 |
5141b016 AD |
6519 | (eval $ac_try) 2>&5 |
6520 | ac_status=$? | |
6fc74234 | 6521 | echo "$as_me:6521: \$? = $ac_status" >&5 |
5141b016 AD |
6522 | (exit $ac_status); }; }; then |
6523 | ac_cv_func_strerror_r_works=yes | |
6524 | else | |
6525 | echo "$as_me: program exited with status $ac_status" >&5 | |
6526 | echo "$as_me: failed program was:" >&5 | |
6527 | cat conftest.$ac_ext >&5 | |
6528 | ac_cv_func_strerror_r_works=no | |
6529 | fi | |
459dd1a6 | 6530 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5141b016 AD |
6531 | fi |
6532 | fi | |
6533 | ||
6534 | fi | |
6fc74234 | 6535 | echo "$as_me:6535: result: $ac_cv_func_strerror_r_works" >&5 |
5141b016 AD |
6536 | echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6 |
6537 | if test $ac_cv_func_strerror_r_works = yes; then | |
6538 | ||
6fc74234 | 6539 | cat >>confdefs.h <<_ACEOF |
5141b016 | 6540 | #define HAVE_WORKING_STRERROR_R 1 |
6fc74234 | 6541 | _ACEOF |
5141b016 AD |
6542 | |
6543 | fi | |
6544 | fi | |
6545 | ||
6546 | ALL_LINGUAS="de es et fr ja nl ru" | |
1e24cc5b AD |
6547 | # Make sure we can run config.sub. |
6548 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
6fc74234 | 6549 | { { echo "$as_me:6549: error: cannot run $ac_config_sub" >&5 |
1e24cc5b AD |
6550 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
6551 | { (exit 1); exit 1; }; } | |
6552 | ||
6fc74234 | 6553 | echo "$as_me:6553: checking build system type" >&5 |
1e24cc5b AD |
6554 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
6555 | if test "${ac_cv_build+set}" = set; then | |
6556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6557 | else | |
6558 | ac_cv_build_alias=$build_alias | |
6559 | test -z "$ac_cv_build_alias" && | |
6560 | ac_cv_build_alias=`$ac_config_guess` | |
6561 | test -z "$ac_cv_build_alias" && | |
6fc74234 | 6562 | { { echo "$as_me:6562: error: cannot guess build type; you must specify one" >&5 |
1e24cc5b AD |
6563 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
6564 | { (exit 1); exit 1; }; } | |
6565 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
6fc74234 | 6566 | { { echo "$as_me:6566: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
1e24cc5b AD |
6567 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
6568 | { (exit 1); exit 1; }; } | |
6569 | ||
6570 | fi | |
6fc74234 | 6571 | echo "$as_me:6571: result: $ac_cv_build" >&5 |
1e24cc5b AD |
6572 | echo "${ECHO_T}$ac_cv_build" >&6 |
6573 | build=$ac_cv_build | |
6574 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
6575 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
6576 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
6577 | ||
6fc74234 | 6578 | echo "$as_me:6578: checking host system type" >&5 |
1e24cc5b AD |
6579 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
6580 | if test "${ac_cv_host+set}" = set; then | |
6581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6582 | else | |
6583 | ac_cv_host_alias=$host_alias | |
6584 | test -z "$ac_cv_host_alias" && | |
6585 | ac_cv_host_alias=$ac_cv_build_alias | |
6586 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
6fc74234 | 6587 | { { echo "$as_me:6587: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
1e24cc5b AD |
6588 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
6589 | { (exit 1); exit 1; }; } | |
6590 | ||
6591 | fi | |
6fc74234 | 6592 | echo "$as_me:6592: result: $ac_cv_host" >&5 |
1e24cc5b AD |
6593 | echo "${ECHO_T}$ac_cv_host" >&6 |
6594 | host=$ac_cv_host | |
6595 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
6596 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
6597 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
6598 | ||
6fc74234 | 6599 | echo "$as_me:6599: checking for off_t" >&5 |
5141b016 AD |
6600 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
6601 | if test "${ac_cv_type_off_t+set}" = set; then | |
6602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6603 | else | |
6604 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 6605 | #line 6605 "configure" |
5141b016 AD |
6606 | #include "confdefs.h" |
6607 | $ac_includes_default | |
6fc74234 AD |
6608 | #ifdef F77_DUMMY_MAIN |
6609 | # ifdef __cplusplus | |
6610 | extern "C" | |
6611 | # endif | |
6612 | int F77_DUMMY_MAIN() { return 1; } | |
6613 | #endif | |
5141b016 AD |
6614 | int |
6615 | main () | |
6616 | { | |
6617 | if ((off_t *) 0) | |
6618 | return 0; | |
6619 | if (sizeof (off_t)) | |
6620 | return 0; | |
6621 | ; | |
6622 | return 0; | |
6623 | } | |
6624 | _ACEOF | |
6625 | rm -f conftest.$ac_objext | |
6fc74234 | 6626 | if { (eval echo "$as_me:6626: \"$ac_compile\"") >&5 |
5141b016 AD |
6627 | (eval $ac_compile) 2>&5 |
6628 | ac_status=$? | |
6fc74234 | 6629 | echo "$as_me:6629: \$? = $ac_status" >&5 |
5141b016 AD |
6630 | (exit $ac_status); } && |
6631 | { ac_try='test -s conftest.$ac_objext' | |
6fc74234 | 6632 | { (eval echo "$as_me:6632: \"$ac_try\"") >&5 |
5141b016 AD |
6633 | (eval $ac_try) 2>&5 |
6634 | ac_status=$? | |
6fc74234 | 6635 | echo "$as_me:6635: \$? = $ac_status" >&5 |
5141b016 AD |
6636 | (exit $ac_status); }; }; then |
6637 | ac_cv_type_off_t=yes | |
6638 | else | |
6639 | echo "$as_me: failed program was:" >&5 | |
6640 | cat conftest.$ac_ext >&5 | |
6641 | ac_cv_type_off_t=no | |
6642 | fi | |
6643 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6644 | fi | |
6fc74234 | 6645 | echo "$as_me:6645: result: $ac_cv_type_off_t" >&5 |
5141b016 AD |
6646 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
6647 | if test $ac_cv_type_off_t = yes; then | |
6648 | : | |
6649 | else | |
6650 | ||
6fc74234 | 6651 | cat >>confdefs.h <<_ACEOF |
5141b016 | 6652 | #define off_t long |
6fc74234 | 6653 | _ACEOF |
5141b016 AD |
6654 | |
6655 | fi | |
6656 | ||
6fc74234 | 6657 | echo "$as_me:6657: checking for size_t" >&5 |
5141b016 AD |
6658 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
6659 | if test "${ac_cv_type_size_t+set}" = set; then | |
6660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6661 | else | |
6662 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 6663 | #line 6663 "configure" |
5141b016 AD |
6664 | #include "confdefs.h" |
6665 | $ac_includes_default | |
6fc74234 AD |
6666 | #ifdef F77_DUMMY_MAIN |
6667 | # ifdef __cplusplus | |
6668 | extern "C" | |
6669 | # endif | |
6670 | int F77_DUMMY_MAIN() { return 1; } | |
6671 | #endif | |
5141b016 AD |
6672 | int |
6673 | main () | |
6674 | { | |
6675 | if ((size_t *) 0) | |
6676 | return 0; | |
6677 | if (sizeof (size_t)) | |
6678 | return 0; | |
6679 | ; | |
6680 | return 0; | |
6681 | } | |
6682 | _ACEOF | |
6683 | rm -f conftest.$ac_objext | |
6fc74234 | 6684 | if { (eval echo "$as_me:6684: \"$ac_compile\"") >&5 |
5141b016 AD |
6685 | (eval $ac_compile) 2>&5 |
6686 | ac_status=$? | |
6fc74234 | 6687 | echo "$as_me:6687: \$? = $ac_status" >&5 |
5141b016 AD |
6688 | (exit $ac_status); } && |
6689 | { ac_try='test -s conftest.$ac_objext' | |
6fc74234 | 6690 | { (eval echo "$as_me:6690: \"$ac_try\"") >&5 |
5141b016 AD |
6691 | (eval $ac_try) 2>&5 |
6692 | ac_status=$? | |
6fc74234 | 6693 | echo "$as_me:6693: \$? = $ac_status" >&5 |
5141b016 AD |
6694 | (exit $ac_status); }; }; then |
6695 | ac_cv_type_size_t=yes | |
6696 | else | |
6697 | echo "$as_me: failed program was:" >&5 | |
6698 | cat conftest.$ac_ext >&5 | |
6699 | ac_cv_type_size_t=no | |
6700 | fi | |
6701 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6702 | fi | |
6fc74234 | 6703 | echo "$as_me:6703: result: $ac_cv_type_size_t" >&5 |
5141b016 AD |
6704 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
6705 | if test $ac_cv_type_size_t = yes; then | |
6706 | : | |
6707 | else | |
6708 | ||
6fc74234 | 6709 | cat >>confdefs.h <<_ACEOF |
705db0b5 | 6710 | #define size_t unsigned |
6fc74234 | 6711 | _ACEOF |
705db0b5 AD |
6712 | |
6713 | fi | |
6714 | ||
18569462 | 6715 | for ac_header in stdlib.h unistd.h |
705db0b5 | 6716 | do |
459dd1a6 | 6717 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6fc74234 AD |
6718 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6719 | echo "$as_me:6719: checking for $ac_header" >&5 | |
18569462 | 6720 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 6721 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 | 6722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6fc74234 AD |
6723 | fi |
6724 | echo "$as_me:6724: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6725 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18569462 | 6726 | else |
6fc74234 AD |
6727 | # Is the header compilable? |
6728 | echo "$as_me:6728: checking $ac_header usability" >&5 | |
6729 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6730 | cat >conftest.$ac_ext <<_ACEOF | |
6731 | #line 6731 "configure" | |
6732 | #include "confdefs.h" | |
6733 | $ac_includes_default | |
6734 | #include <$ac_header> | |
6735 | _ACEOF | |
6736 | rm -f conftest.$ac_objext | |
6737 | if { (eval echo "$as_me:6737: \"$ac_compile\"") >&5 | |
6738 | (eval $ac_compile) 2>&5 | |
6739 | ac_status=$? | |
6740 | echo "$as_me:6740: \$? = $ac_status" >&5 | |
6741 | (exit $ac_status); } && | |
6742 | { ac_try='test -s conftest.$ac_objext' | |
6743 | { (eval echo "$as_me:6743: \"$ac_try\"") >&5 | |
6744 | (eval $ac_try) 2>&5 | |
6745 | ac_status=$? | |
6746 | echo "$as_me:6746: \$? = $ac_status" >&5 | |
6747 | (exit $ac_status); }; }; then | |
6748 | ac_header_compiler=yes | |
6749 | else | |
6750 | echo "$as_me: failed program was:" >&5 | |
6751 | cat conftest.$ac_ext >&5 | |
6752 | ac_header_compiler=no | |
6753 | fi | |
6754 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6755 | echo "$as_me:6755: result: $ac_header_compiler" >&5 | |
6756 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6757 | ||
6758 | # Is the header present? | |
6759 | echo "$as_me:6759: checking $ac_header presence" >&5 | |
6760 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6761 | cat >conftest.$ac_ext <<_ACEOF | |
6762 | #line 6762 "configure" | |
705db0b5 | 6763 | #include "confdefs.h" |
18569462 AD |
6764 | #include <$ac_header> |
6765 | _ACEOF | |
6fc74234 | 6766 | if { (eval echo "$as_me:6766: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 6767 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
6768 | ac_status=$? |
6769 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6770 | rm -f conftest.er1 | |
6771 | cat conftest.err >&5 | |
6fc74234 | 6772 | echo "$as_me:6772: \$? = $ac_status" >&5 |
1e24cc5b | 6773 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
6774 | if test -s conftest.err; then |
6775 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6776 | else | |
6777 | ac_cpp_err= | |
6778 | fi | |
6779 | else | |
6780 | ac_cpp_err=yes | |
6781 | fi | |
6782 | if test -z "$ac_cpp_err"; then | |
6fc74234 | 6783 | ac_header_preproc=yes |
18569462 AD |
6784 | else |
6785 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 6786 | cat conftest.$ac_ext >&5 |
6fc74234 | 6787 | ac_header_preproc=no |
705db0b5 | 6788 | fi |
18569462 | 6789 | rm -f conftest.err conftest.$ac_ext |
6fc74234 AD |
6790 | echo "$as_me:6790: result: $ac_header_preproc" >&5 |
6791 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6792 | ||
6793 | # So? What about this header? | |
6794 | case $ac_header_compiler:$ac_header_preproc in | |
6795 | yes:no ) | |
6796 | { echo "$as_me:6796: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6797 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6798 | { echo "$as_me:6798: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6799 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6800 | no:yes ) | |
6801 | { echo "$as_me:6801: WARNING: $ac_header: present but cannot be compiled." >&5 | |
6802 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;} | |
6803 | { echo "$as_me:6803: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6804 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6805 | { echo "$as_me:6805: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6806 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6807 | esac | |
6808 | echo "$as_me:6808: checking for $ac_header" >&5 | |
6809 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6810 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6812 | else | |
6813 | eval "$as_ac_Header=$ac_header_preproc" | |
705db0b5 | 6814 | fi |
6fc74234 | 6815 | echo "$as_me:6815: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 | 6816 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6fc74234 AD |
6817 | |
6818 | fi | |
459dd1a6 | 6819 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6fc74234 | 6820 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 6821 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6fc74234 | 6822 | _ACEOF |
18569462 | 6823 | |
705db0b5 | 6824 | fi |
6fc74234 | 6825 | |
705db0b5 AD |
6826 | done |
6827 | ||
6828 | for ac_func in getpagesize | |
6829 | do | |
459dd1a6 | 6830 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6fc74234 | 6831 | echo "$as_me:6831: checking for $ac_func" >&5 |
18569462 | 6832 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 6833 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
6834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6835 | else | |
6836 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 6837 | #line 6837 "configure" |
705db0b5 AD |
6838 | #include "confdefs.h" |
6839 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 6840 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
6841 | #include <assert.h> |
6842 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
6843 | #ifdef __cplusplus |
6844 | extern "C" | |
6845 | #endif | |
705db0b5 | 6846 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
6847 | builtin and then its argument prototype would still apply. */ |
6848 | char $ac_func (); | |
6849 | char (*f) (); | |
705db0b5 | 6850 | |
6fc74234 AD |
6851 | #ifdef F77_DUMMY_MAIN |
6852 | # ifdef __cplusplus | |
6853 | extern "C" | |
6854 | # endif | |
6855 | int F77_DUMMY_MAIN() { return 1; } | |
6856 | #endif | |
18569462 AD |
6857 | int |
6858 | main () | |
6859 | { | |
705db0b5 AD |
6860 | /* The GNU C library defines this for functions which it implements |
6861 | to always fail with ENOSYS. Some functions are actually named | |
6862 | something starting with __ and the normal name is an alias. */ | |
6863 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6864 | choke me | |
6865 | #else | |
18569462 | 6866 | f = $ac_func; |
705db0b5 AD |
6867 | #endif |
6868 | ||
18569462 AD |
6869 | ; |
6870 | return 0; | |
6871 | } | |
6872 | _ACEOF | |
6873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 6874 | if { (eval echo "$as_me:6874: \"$ac_link\"") >&5 |
18569462 AD |
6875 | (eval $ac_link) 2>&5 |
6876 | ac_status=$? | |
6fc74234 | 6877 | echo "$as_me:6877: \$? = $ac_status" >&5 |
18569462 | 6878 | (exit $ac_status); } && |
5141b016 | 6879 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 6880 | { (eval echo "$as_me:6880: \"$ac_try\"") >&5 |
18569462 AD |
6881 | (eval $ac_try) 2>&5 |
6882 | ac_status=$? | |
6fc74234 | 6883 | echo "$as_me:6883: \$? = $ac_status" >&5 |
18569462 | 6884 | (exit $ac_status); }; }; then |
459dd1a6 | 6885 | eval "$as_ac_var=yes" |
18569462 AD |
6886 | else |
6887 | echo "$as_me: failed program was:" >&5 | |
6888 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 6889 | eval "$as_ac_var=no" |
18569462 | 6890 | fi |
1e24cc5b | 6891 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 6892 | fi |
6fc74234 | 6893 | echo "$as_me:6893: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
6894 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6895 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6fc74234 | 6896 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 6897 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6fc74234 | 6898 | _ACEOF |
705db0b5 | 6899 | |
705db0b5 AD |
6900 | fi |
6901 | done | |
6902 | ||
6fc74234 | 6903 | echo "$as_me:6903: checking for working mmap" >&5 |
18569462 AD |
6904 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
6905 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6907 | else |
6908 | if test "$cross_compiling" = yes; then | |
6909 | ac_cv_func_mmap_fixed_mapped=no | |
6910 | else | |
18569462 | 6911 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 6912 | #line 6912 "configure" |
705db0b5 | 6913 | #include "confdefs.h" |
459dd1a6 | 6914 | $ac_includes_default |
705db0b5 AD |
6915 | /* Thanks to Mike Haertel and Jim Avera for this test. |
6916 | Here is a matrix of mmap possibilities: | |
6917 | mmap private not fixed | |
6918 | mmap private fixed at somewhere currently unmapped | |
6919 | mmap private fixed at somewhere already mapped | |
6920 | mmap shared not fixed | |
6921 | mmap shared fixed at somewhere currently unmapped | |
6922 | mmap shared fixed at somewhere already mapped | |
6923 | For private mappings, we should verify that changes cannot be read() | |
6924 | back from the file, nor mmap's back from the file at a different | |
6925 | address. (There have been systems where private was not correctly | |
6926 | implemented like the infamous i386 svr4.0, and systems where the | |
18569462 | 6927 | VM page cache was not coherent with the file system buffer cache |
705db0b5 AD |
6928 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
6929 | For shared mappings, we should conversely verify that changes get | |
6930 | propogated back to all the places they're supposed to be. | |
6931 | ||
6932 | Grep wants private fixed already mapped. | |
6933 | The main things grep needs to know about mmap are: | |
6934 | * does it exist and is it safe to write into the mmap'd area | |
6935 | * how to use it (BSD variants) */ | |
459dd1a6 | 6936 | |
705db0b5 AD |
6937 | #include <fcntl.h> |
6938 | #include <sys/mman.h> | |
705db0b5 | 6939 | |
459dd1a6 | 6940 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
18569462 AD |
6941 | char *malloc (); |
6942 | #endif | |
705db0b5 AD |
6943 | |
6944 | /* This mess was copied from the GNU getpagesize.h. */ | |
18569462 | 6945 | #if !HAVE_GETPAGESIZE |
705db0b5 | 6946 | /* Assume that all systems that can run configure have sys/param.h. */ |
18569462 | 6947 | # if !HAVE_SYS_PARAM_H |
705db0b5 AD |
6948 | # define HAVE_SYS_PARAM_H 1 |
6949 | # endif | |
6950 | ||
6951 | # ifdef _SC_PAGESIZE | |
6952 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6953 | # else /* no _SC_PAGESIZE */ | |
18569462 | 6954 | # if HAVE_SYS_PARAM_H |
705db0b5 AD |
6955 | # include <sys/param.h> |
6956 | # ifdef EXEC_PAGESIZE | |
6957 | # define getpagesize() EXEC_PAGESIZE | |
6958 | # else /* no EXEC_PAGESIZE */ | |
6959 | # ifdef NBPG | |
6960 | # define getpagesize() NBPG * CLSIZE | |
6961 | # ifndef CLSIZE | |
6962 | # define CLSIZE 1 | |
6963 | # endif /* no CLSIZE */ | |
6964 | # else /* no NBPG */ | |
6965 | # ifdef NBPC | |
6966 | # define getpagesize() NBPC | |
6967 | # else /* no NBPC */ | |
6968 | # ifdef PAGESIZE | |
6969 | # define getpagesize() PAGESIZE | |
6970 | # endif /* PAGESIZE */ | |
6971 | # endif /* no NBPC */ | |
6972 | # endif /* no NBPG */ | |
6973 | # endif /* no EXEC_PAGESIZE */ | |
6974 | # else /* no HAVE_SYS_PARAM_H */ | |
6975 | # define getpagesize() 8192 /* punt totally */ | |
6976 | # endif /* no HAVE_SYS_PARAM_H */ | |
6977 | # endif /* no _SC_PAGESIZE */ | |
6978 | ||
6979 | #endif /* no HAVE_GETPAGESIZE */ | |
6980 | ||
705db0b5 | 6981 | int |
18569462 | 6982 | main () |
705db0b5 | 6983 | { |
18569462 AD |
6984 | char *data, *data2, *data3; |
6985 | int i, pagesize; | |
6986 | int fd; | |
6987 | ||
6988 | pagesize = getpagesize (); | |
6989 | ||
6990 | /* First, make a file with some known garbage in it. */ | |
6991 | data = (char *) malloc (pagesize); | |
6992 | if (!data) | |
6993 | exit (1); | |
6994 | for (i = 0; i < pagesize; ++i) | |
6995 | *(data + i) = rand (); | |
6996 | umask (0); | |
6997 | fd = creat ("conftest.mmap", 0600); | |
6998 | if (fd < 0) | |
6999 | exit (1); | |
7000 | if (write (fd, data, pagesize) != pagesize) | |
7001 | exit (1); | |
7002 | close (fd); | |
7003 | ||
7004 | /* Next, try to mmap the file at a fixed address which already has | |
7005 | something else allocated at it. If we can, also make sure that | |
7006 | we see the same garbage. */ | |
7007 | fd = open ("conftest.mmap", O_RDWR); | |
7008 | if (fd < 0) | |
7009 | exit (1); | |
7010 | data2 = (char *) malloc (2 * pagesize); | |
7011 | if (!data2) | |
7012 | exit (1); | |
7013 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
7014 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
7015 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
7016 | exit (1); | |
7017 | for (i = 0; i < pagesize; ++i) | |
7018 | if (*(data + i) != *(data2 + i)) | |
7019 | exit (1); | |
7020 | ||
7021 | /* Finally, make sure that changes to the mapped area do not | |
7022 | percolate back to the file as seen by read(). (This is a bug on | |
7023 | some variants of i386 svr4.0.) */ | |
7024 | for (i = 0; i < pagesize; ++i) | |
7025 | *(data2 + i) = *(data2 + i) + 1; | |
7026 | data3 = (char *) malloc (pagesize); | |
7027 | if (!data3) | |
7028 | exit (1); | |
7029 | if (read (fd, data3, pagesize) != pagesize) | |
7030 | exit (1); | |
7031 | for (i = 0; i < pagesize; ++i) | |
7032 | if (*(data + i) != *(data3 + i)) | |
7033 | exit (1); | |
7034 | close (fd); | |
7035 | exit (0); | |
705db0b5 | 7036 | } |
18569462 AD |
7037 | _ACEOF |
7038 | rm -f conftest$ac_exeext | |
6fc74234 | 7039 | if { (eval echo "$as_me:7039: \"$ac_link\"") >&5 |
18569462 AD |
7040 | (eval $ac_link) 2>&5 |
7041 | ac_status=$? | |
6fc74234 | 7042 | echo "$as_me:7042: \$? = $ac_status" >&5 |
5141b016 | 7043 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6fc74234 | 7044 | { (eval echo "$as_me:7044: \"$ac_try\"") >&5 |
18569462 AD |
7045 | (eval $ac_try) 2>&5 |
7046 | ac_status=$? | |
6fc74234 | 7047 | echo "$as_me:7047: \$? = $ac_status" >&5 |
18569462 | 7048 | (exit $ac_status); }; }; then |
705db0b5 AD |
7049 | ac_cv_func_mmap_fixed_mapped=yes |
7050 | else | |
18569462 AD |
7051 | echo "$as_me: program exited with status $ac_status" >&5 |
7052 | echo "$as_me: failed program was:" >&5 | |
7053 | cat conftest.$ac_ext >&5 | |
7054 | ac_cv_func_mmap_fixed_mapped=no | |
705db0b5 | 7055 | fi |
459dd1a6 | 7056 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 7057 | fi |
705db0b5 | 7058 | fi |
6fc74234 | 7059 | echo "$as_me:7059: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
18569462 | 7060 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
705db0b5 | 7061 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
18569462 | 7062 | |
6fc74234 | 7063 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 7064 | #define HAVE_MMAP 1 |
6fc74234 | 7065 | _ACEOF |
705db0b5 AD |
7066 | |
7067 | fi | |
18569462 | 7068 | rm -f conftest.mmap |
705db0b5 | 7069 | |
6fc74234 | 7070 | echo "$as_me:7070: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
1e24cc5b AD |
7071 | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 |
7072 | if test "${ac_cv_gnu_library_2_1+set}" = set; then | |
7073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7074 | else | |
7075 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 7076 | #line 7076 "configure" |
1e24cc5b AD |
7077 | #include "confdefs.h" |
7078 | ||
7079 | #include <features.h> | |
7080 | #ifdef __GNU_LIBRARY__ | |
7081 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
7082 | Lucky GNU user | |
7083 | #endif | |
7084 | #endif | |
7085 | ||
7086 | _ACEOF | |
7087 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7088 | egrep "Lucky GNU user" >/dev/null 2>&1; then | |
7089 | ac_cv_gnu_library_2_1=yes | |
7090 | else | |
7091 | ac_cv_gnu_library_2_1=no | |
7092 | fi | |
7093 | rm -f conftest* | |
7094 | ||
7095 | fi | |
6fc74234 | 7096 | echo "$as_me:7096: result: $ac_cv_gnu_library_2_1" >&5 |
1e24cc5b AD |
7097 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 |
7098 | ||
7099 | GLIBC21="$ac_cv_gnu_library_2_1" | |
7100 | ||
7101 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
7102 | stdlib.h string.h unistd.h sys/param.h | |
705db0b5 | 7103 | do |
459dd1a6 | 7104 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6fc74234 AD |
7105 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7106 | echo "$as_me:7106: checking for $ac_header" >&5 | |
18569462 | 7107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 7108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 | 7109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6fc74234 AD |
7110 | fi |
7111 | echo "$as_me:7111: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7112 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18569462 | 7113 | else |
6fc74234 AD |
7114 | # Is the header compilable? |
7115 | echo "$as_me:7115: checking $ac_header usability" >&5 | |
7116 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7117 | cat >conftest.$ac_ext <<_ACEOF | |
7118 | #line 7118 "configure" | |
7119 | #include "confdefs.h" | |
7120 | $ac_includes_default | |
7121 | #include <$ac_header> | |
7122 | _ACEOF | |
7123 | rm -f conftest.$ac_objext | |
7124 | if { (eval echo "$as_me:7124: \"$ac_compile\"") >&5 | |
7125 | (eval $ac_compile) 2>&5 | |
7126 | ac_status=$? | |
7127 | echo "$as_me:7127: \$? = $ac_status" >&5 | |
7128 | (exit $ac_status); } && | |
7129 | { ac_try='test -s conftest.$ac_objext' | |
7130 | { (eval echo "$as_me:7130: \"$ac_try\"") >&5 | |
7131 | (eval $ac_try) 2>&5 | |
7132 | ac_status=$? | |
7133 | echo "$as_me:7133: \$? = $ac_status" >&5 | |
7134 | (exit $ac_status); }; }; then | |
7135 | ac_header_compiler=yes | |
7136 | else | |
7137 | echo "$as_me: failed program was:" >&5 | |
7138 | cat conftest.$ac_ext >&5 | |
7139 | ac_header_compiler=no | |
7140 | fi | |
7141 | rm -f conftest.$ac_objext conftest.$ac_ext | |
7142 | echo "$as_me:7142: result: $ac_header_compiler" >&5 | |
7143 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7144 | ||
7145 | # Is the header present? | |
7146 | echo "$as_me:7146: checking $ac_header presence" >&5 | |
7147 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7148 | cat >conftest.$ac_ext <<_ACEOF | |
7149 | #line 7149 "configure" | |
705db0b5 | 7150 | #include "confdefs.h" |
18569462 AD |
7151 | #include <$ac_header> |
7152 | _ACEOF | |
6fc74234 | 7153 | if { (eval echo "$as_me:7153: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 7154 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
7155 | ac_status=$? |
7156 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7157 | rm -f conftest.er1 | |
7158 | cat conftest.err >&5 | |
6fc74234 | 7159 | echo "$as_me:7159: \$? = $ac_status" >&5 |
1e24cc5b | 7160 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
7161 | if test -s conftest.err; then |
7162 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7163 | else | |
7164 | ac_cpp_err= | |
7165 | fi | |
7166 | else | |
7167 | ac_cpp_err=yes | |
7168 | fi | |
7169 | if test -z "$ac_cpp_err"; then | |
6fc74234 | 7170 | ac_header_preproc=yes |
18569462 AD |
7171 | else |
7172 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 7173 | cat conftest.$ac_ext >&5 |
6fc74234 | 7174 | ac_header_preproc=no |
705db0b5 | 7175 | fi |
18569462 | 7176 | rm -f conftest.err conftest.$ac_ext |
6fc74234 AD |
7177 | echo "$as_me:7177: result: $ac_header_preproc" >&5 |
7178 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7179 | ||
7180 | # So? What about this header? | |
7181 | case $ac_header_compiler:$ac_header_preproc in | |
7182 | yes:no ) | |
7183 | { echo "$as_me:7183: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7184 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7185 | { echo "$as_me:7185: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7186 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
7187 | no:yes ) | |
7188 | { echo "$as_me:7188: WARNING: $ac_header: present but cannot be compiled." >&5 | |
7189 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;} | |
7190 | { echo "$as_me:7190: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7191 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7192 | { echo "$as_me:7192: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7193 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
7194 | esac | |
7195 | echo "$as_me:7195: checking for $ac_header" >&5 | |
7196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7197 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7199 | else | |
7200 | eval "$as_ac_Header=$ac_header_preproc" | |
705db0b5 | 7201 | fi |
6fc74234 | 7202 | echo "$as_me:7202: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 | 7203 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6fc74234 AD |
7204 | |
7205 | fi | |
459dd1a6 | 7206 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6fc74234 | 7207 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 7208 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6fc74234 | 7209 | _ACEOF |
18569462 | 7210 | |
705db0b5 | 7211 | fi |
6fc74234 | 7212 | |
705db0b5 AD |
7213 | done |
7214 | ||
1e24cc5b AD |
7215 | for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \ |
7216 | getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ | |
7217 | strdup strtoul tsearch __argz_count __argz_stringify __argz_next | |
705db0b5 | 7218 | do |
459dd1a6 | 7219 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6fc74234 | 7220 | echo "$as_me:7220: checking for $ac_func" >&5 |
18569462 | 7221 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 7222 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
7223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7224 | else | |
7225 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 7226 | #line 7226 "configure" |
705db0b5 AD |
7227 | #include "confdefs.h" |
7228 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 7229 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
7230 | #include <assert.h> |
7231 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
7232 | #ifdef __cplusplus |
7233 | extern "C" | |
7234 | #endif | |
705db0b5 | 7235 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
7236 | builtin and then its argument prototype would still apply. */ |
7237 | char $ac_func (); | |
7238 | char (*f) (); | |
705db0b5 | 7239 | |
6fc74234 AD |
7240 | #ifdef F77_DUMMY_MAIN |
7241 | # ifdef __cplusplus | |
7242 | extern "C" | |
7243 | # endif | |
7244 | int F77_DUMMY_MAIN() { return 1; } | |
7245 | #endif | |
18569462 AD |
7246 | int |
7247 | main () | |
7248 | { | |
705db0b5 AD |
7249 | /* The GNU C library defines this for functions which it implements |
7250 | to always fail with ENOSYS. Some functions are actually named | |
7251 | something starting with __ and the normal name is an alias. */ | |
7252 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7253 | choke me | |
7254 | #else | |
18569462 | 7255 | f = $ac_func; |
705db0b5 AD |
7256 | #endif |
7257 | ||
18569462 AD |
7258 | ; |
7259 | return 0; | |
7260 | } | |
7261 | _ACEOF | |
7262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 7263 | if { (eval echo "$as_me:7263: \"$ac_link\"") >&5 |
18569462 AD |
7264 | (eval $ac_link) 2>&5 |
7265 | ac_status=$? | |
6fc74234 | 7266 | echo "$as_me:7266: \$? = $ac_status" >&5 |
18569462 | 7267 | (exit $ac_status); } && |
5141b016 | 7268 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 7269 | { (eval echo "$as_me:7269: \"$ac_try\"") >&5 |
18569462 AD |
7270 | (eval $ac_try) 2>&5 |
7271 | ac_status=$? | |
6fc74234 | 7272 | echo "$as_me:7272: \$? = $ac_status" >&5 |
18569462 | 7273 | (exit $ac_status); }; }; then |
459dd1a6 | 7274 | eval "$as_ac_var=yes" |
18569462 AD |
7275 | else |
7276 | echo "$as_me: failed program was:" >&5 | |
7277 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 7278 | eval "$as_ac_var=no" |
18569462 | 7279 | fi |
1e24cc5b | 7280 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 7281 | fi |
6fc74234 | 7282 | echo "$as_me:7282: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
7283 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
7284 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6fc74234 | 7285 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 7286 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6fc74234 | 7287 | _ACEOF |
705db0b5 | 7288 | |
705db0b5 AD |
7289 | fi |
7290 | done | |
7291 | ||
1e24cc5b AD |
7292 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
7293 | if test "${with_libiconv_prefix+set}" = set; then | |
7294 | withval="$with_libiconv_prefix" | |
18569462 | 7295 | |
1e24cc5b AD |
7296 | for dir in `echo "$withval" | tr : ' '`; do |
7297 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
7298 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
7299 | done | |
7300 | ||
7301 | fi; | |
7302 | ||
6fc74234 | 7303 | echo "$as_me:7303: checking for iconv" >&5 |
1e24cc5b AD |
7304 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
7305 | if test "${am_cv_func_iconv+set}" = set; then | |
18569462 AD |
7306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7307 | else | |
1e24cc5b AD |
7308 | |
7309 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
7310 | am_cv_lib_iconv=no | |
7311 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 7312 | #line 7312 "configure" |
705db0b5 | 7313 | #include "confdefs.h" |
1e24cc5b AD |
7314 | #include <stdlib.h> |
7315 | #include <iconv.h> | |
6fc74234 AD |
7316 | #ifdef F77_DUMMY_MAIN |
7317 | # ifdef __cplusplus | |
7318 | extern "C" | |
7319 | # endif | |
7320 | int F77_DUMMY_MAIN() { return 1; } | |
7321 | #endif | |
1e24cc5b AD |
7322 | int |
7323 | main () | |
7324 | { | |
7325 | iconv_t cd = iconv_open("",""); | |
7326 | iconv(cd,NULL,NULL,NULL,NULL); | |
7327 | iconv_close(cd); | |
7328 | ; | |
7329 | return 0; | |
7330 | } | |
7331 | _ACEOF | |
7332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 7333 | if { (eval echo "$as_me:7333: \"$ac_link\"") >&5 |
1e24cc5b AD |
7334 | (eval $ac_link) 2>&5 |
7335 | ac_status=$? | |
6fc74234 | 7336 | echo "$as_me:7336: \$? = $ac_status" >&5 |
1e24cc5b AD |
7337 | (exit $ac_status); } && |
7338 | { ac_try='test -s conftest$ac_exeext' | |
6fc74234 | 7339 | { (eval echo "$as_me:7339: \"$ac_try\"") >&5 |
1e24cc5b AD |
7340 | (eval $ac_try) 2>&5 |
7341 | ac_status=$? | |
6fc74234 | 7342 | echo "$as_me:7342: \$? = $ac_status" >&5 |
1e24cc5b AD |
7343 | (exit $ac_status); }; }; then |
7344 | am_cv_func_iconv=yes | |
7345 | else | |
7346 | echo "$as_me: failed program was:" >&5 | |
7347 | cat conftest.$ac_ext >&5 | |
7348 | fi | |
7349 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7350 | if test "$am_cv_func_iconv" != yes; then | |
7351 | am_save_LIBS="$LIBS" | |
7352 | LIBS="$LIBS -liconv" | |
7353 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 7354 | #line 7354 "configure" |
1e24cc5b AD |
7355 | #include "confdefs.h" |
7356 | #include <stdlib.h> | |
7357 | #include <iconv.h> | |
6fc74234 AD |
7358 | #ifdef F77_DUMMY_MAIN |
7359 | # ifdef __cplusplus | |
7360 | extern "C" | |
7361 | # endif | |
7362 | int F77_DUMMY_MAIN() { return 1; } | |
7363 | #endif | |
1e24cc5b AD |
7364 | int |
7365 | main () | |
7366 | { | |
7367 | iconv_t cd = iconv_open("",""); | |
7368 | iconv(cd,NULL,NULL,NULL,NULL); | |
7369 | iconv_close(cd); | |
7370 | ; | |
7371 | return 0; | |
7372 | } | |
7373 | _ACEOF | |
7374 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 7375 | if { (eval echo "$as_me:7375: \"$ac_link\"") >&5 |
1e24cc5b AD |
7376 | (eval $ac_link) 2>&5 |
7377 | ac_status=$? | |
6fc74234 | 7378 | echo "$as_me:7378: \$? = $ac_status" >&5 |
1e24cc5b AD |
7379 | (exit $ac_status); } && |
7380 | { ac_try='test -s conftest$ac_exeext' | |
6fc74234 | 7381 | { (eval echo "$as_me:7381: \"$ac_try\"") >&5 |
1e24cc5b AD |
7382 | (eval $ac_try) 2>&5 |
7383 | ac_status=$? | |
6fc74234 | 7384 | echo "$as_me:7384: \$? = $ac_status" >&5 |
1e24cc5b AD |
7385 | (exit $ac_status); }; }; then |
7386 | am_cv_lib_iconv=yes | |
7387 | am_cv_func_iconv=yes | |
7388 | else | |
7389 | echo "$as_me: failed program was:" >&5 | |
7390 | cat conftest.$ac_ext >&5 | |
7391 | fi | |
7392 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7393 | LIBS="$am_save_LIBS" | |
7394 | fi | |
7395 | ||
7396 | fi | |
6fc74234 | 7397 | echo "$as_me:7397: result: $am_cv_func_iconv" >&5 |
1e24cc5b AD |
7398 | echo "${ECHO_T}$am_cv_func_iconv" >&6 |
7399 | if test "$am_cv_func_iconv" = yes; then | |
7400 | ||
6fc74234 | 7401 | cat >>confdefs.h <<\_ACEOF |
1e24cc5b | 7402 | #define HAVE_ICONV 1 |
6fc74234 | 7403 | _ACEOF |
1e24cc5b | 7404 | |
6fc74234 | 7405 | echo "$as_me:7405: checking for iconv declaration" >&5 |
1e24cc5b AD |
7406 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
7407 | if test "${am_cv_proto_iconv+set}" = set; then | |
7408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7409 | else | |
7410 | ||
7411 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 7412 | #line 7412 "configure" |
1e24cc5b AD |
7413 | #include "confdefs.h" |
7414 | ||
7415 | #include <stdlib.h> | |
7416 | #include <iconv.h> | |
7417 | extern | |
18569462 | 7418 | #ifdef __cplusplus |
1e24cc5b AD |
7419 | "C" |
7420 | #endif | |
7421 | #if defined(__STDC__) || defined(__cplusplus) | |
7422 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
7423 | #else | |
7424 | size_t iconv(); | |
18569462 | 7425 | #endif |
705db0b5 | 7426 | |
6fc74234 AD |
7427 | #ifdef F77_DUMMY_MAIN |
7428 | # ifdef __cplusplus | |
7429 | extern "C" | |
7430 | # endif | |
7431 | int F77_DUMMY_MAIN() { return 1; } | |
7432 | #endif | |
18569462 AD |
7433 | int |
7434 | main () | |
7435 | { | |
705db0b5 | 7436 | |
18569462 AD |
7437 | ; |
7438 | return 0; | |
7439 | } | |
7440 | _ACEOF | |
1e24cc5b | 7441 | rm -f conftest.$ac_objext |
6fc74234 | 7442 | if { (eval echo "$as_me:7442: \"$ac_compile\"") >&5 |
1e24cc5b | 7443 | (eval $ac_compile) 2>&5 |
18569462 | 7444 | ac_status=$? |
6fc74234 | 7445 | echo "$as_me:7445: \$? = $ac_status" >&5 |
18569462 | 7446 | (exit $ac_status); } && |
1e24cc5b | 7447 | { ac_try='test -s conftest.$ac_objext' |
6fc74234 | 7448 | { (eval echo "$as_me:7448: \"$ac_try\"") >&5 |
18569462 AD |
7449 | (eval $ac_try) 2>&5 |
7450 | ac_status=$? | |
6fc74234 | 7451 | echo "$as_me:7451: \$? = $ac_status" >&5 |
18569462 | 7452 | (exit $ac_status); }; }; then |
1e24cc5b | 7453 | am_cv_proto_iconv_arg1="" |
18569462 AD |
7454 | else |
7455 | echo "$as_me: failed program was:" >&5 | |
7456 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 7457 | am_cv_proto_iconv_arg1="const" |
18569462 | 7458 | fi |
1e24cc5b AD |
7459 | rm -f conftest.$ac_objext conftest.$ac_ext |
7460 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
18569462 | 7461 | fi |
1e24cc5b AD |
7462 | |
7463 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
6fc74234 | 7464 | echo "$as_me:7464: result: ${ac_t:- |
1e24cc5b AD |
7465 | }$am_cv_proto_iconv" >&5 |
7466 | echo "${ECHO_T}${ac_t:- | |
7467 | }$am_cv_proto_iconv" >&6 | |
7468 | ||
6fc74234 | 7469 | cat >>confdefs.h <<_ACEOF |
1e24cc5b | 7470 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
6fc74234 | 7471 | _ACEOF |
705db0b5 | 7472 | |
1e24cc5b AD |
7473 | fi |
7474 | LIBICONV= | |
7475 | if test "$am_cv_lib_iconv" = yes; then | |
7476 | LIBICONV="-liconv" | |
7477 | fi | |
7478 | ||
6fc74234 | 7479 | echo "$as_me:7479: checking for nl_langinfo and CODESET" >&5 |
1e24cc5b AD |
7480 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
7481 | if test "${am_cv_langinfo_codeset+set}" = set; then | |
7482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7483 | else | |
7484 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 7485 | #line 7485 "configure" |
1e24cc5b AD |
7486 | #include "confdefs.h" |
7487 | #include <langinfo.h> | |
6fc74234 AD |
7488 | #ifdef F77_DUMMY_MAIN |
7489 | # ifdef __cplusplus | |
7490 | extern "C" | |
7491 | # endif | |
7492 | int F77_DUMMY_MAIN() { return 1; } | |
7493 | #endif | |
1e24cc5b AD |
7494 | int |
7495 | main () | |
7496 | { | |
7497 | char* cs = nl_langinfo(CODESET); | |
7498 | ; | |
7499 | return 0; | |
7500 | } | |
7501 | _ACEOF | |
7502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 7503 | if { (eval echo "$as_me:7503: \"$ac_link\"") >&5 |
1e24cc5b AD |
7504 | (eval $ac_link) 2>&5 |
7505 | ac_status=$? | |
6fc74234 | 7506 | echo "$as_me:7506: \$? = $ac_status" >&5 |
1e24cc5b AD |
7507 | (exit $ac_status); } && |
7508 | { ac_try='test -s conftest$ac_exeext' | |
6fc74234 | 7509 | { (eval echo "$as_me:7509: \"$ac_try\"") >&5 |
1e24cc5b AD |
7510 | (eval $ac_try) 2>&5 |
7511 | ac_status=$? | |
6fc74234 | 7512 | echo "$as_me:7512: \$? = $ac_status" >&5 |
1e24cc5b AD |
7513 | (exit $ac_status); }; }; then |
7514 | am_cv_langinfo_codeset=yes | |
7515 | else | |
7516 | echo "$as_me: failed program was:" >&5 | |
7517 | cat conftest.$ac_ext >&5 | |
7518 | am_cv_langinfo_codeset=no | |
705db0b5 | 7519 | fi |
1e24cc5b | 7520 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 7521 | |
1e24cc5b | 7522 | fi |
6fc74234 | 7523 | echo "$as_me:7523: result: $am_cv_langinfo_codeset" >&5 |
1e24cc5b AD |
7524 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 |
7525 | if test $am_cv_langinfo_codeset = yes; then | |
18569462 | 7526 | |
6fc74234 | 7527 | cat >>confdefs.h <<\_ACEOF |
1e24cc5b | 7528 | #define HAVE_LANGINFO_CODESET 1 |
6fc74234 | 7529 | _ACEOF |
705db0b5 | 7530 | |
1e24cc5b | 7531 | fi |
705db0b5 AD |
7532 | |
7533 | if test $ac_cv_header_locale_h = yes; then | |
6fc74234 | 7534 | echo "$as_me:7534: checking for LC_MESSAGES" >&5 |
18569462 AD |
7535 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 |
7536 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
7537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 7538 | else |
18569462 | 7539 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 7540 | #line 7540 "configure" |
705db0b5 AD |
7541 | #include "confdefs.h" |
7542 | #include <locale.h> | |
6fc74234 AD |
7543 | #ifdef F77_DUMMY_MAIN |
7544 | # ifdef __cplusplus | |
7545 | extern "C" | |
7546 | # endif | |
7547 | int F77_DUMMY_MAIN() { return 1; } | |
7548 | #endif | |
18569462 AD |
7549 | int |
7550 | main () | |
7551 | { | |
705db0b5 | 7552 | return LC_MESSAGES |
18569462 AD |
7553 | ; |
7554 | return 0; | |
7555 | } | |
7556 | _ACEOF | |
7557 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 7558 | if { (eval echo "$as_me:7558: \"$ac_link\"") >&5 |
18569462 AD |
7559 | (eval $ac_link) 2>&5 |
7560 | ac_status=$? | |
6fc74234 | 7561 | echo "$as_me:7561: \$? = $ac_status" >&5 |
18569462 | 7562 | (exit $ac_status); } && |
5141b016 | 7563 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 7564 | { (eval echo "$as_me:7564: \"$ac_try\"") >&5 |
18569462 AD |
7565 | (eval $ac_try) 2>&5 |
7566 | ac_status=$? | |
6fc74234 | 7567 | echo "$as_me:7567: \$? = $ac_status" >&5 |
18569462 | 7568 | (exit $ac_status); }; }; then |
705db0b5 AD |
7569 | am_cv_val_LC_MESSAGES=yes |
7570 | else | |
18569462 AD |
7571 | echo "$as_me: failed program was:" >&5 |
7572 | cat conftest.$ac_ext >&5 | |
7573 | am_cv_val_LC_MESSAGES=no | |
705db0b5 | 7574 | fi |
1e24cc5b | 7575 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 7576 | fi |
6fc74234 | 7577 | echo "$as_me:7577: result: $am_cv_val_LC_MESSAGES" >&5 |
18569462 | 7578 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 |
705db0b5 | 7579 | if test $am_cv_val_LC_MESSAGES = yes; then |
18569462 | 7580 | |
6fc74234 | 7581 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 7582 | #define HAVE_LC_MESSAGES 1 |
6fc74234 | 7583 | _ACEOF |
705db0b5 AD |
7584 | |
7585 | fi | |
7586 | fi | |
6fc74234 | 7587 | echo "$as_me:7587: checking whether NLS is requested" >&5 |
18569462 | 7588 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
705db0b5 AD |
7589 | # Check whether --enable-nls or --disable-nls was given. |
7590 | if test "${enable_nls+set}" = set; then | |
7591 | enableval="$enable_nls" | |
7592 | USE_NLS=$enableval | |
7593 | else | |
7594 | USE_NLS=yes | |
18569462 | 7595 | fi; |
6fc74234 | 7596 | echo "$as_me:7596: result: $USE_NLS" >&5 |
18569462 | 7597 | echo "${ECHO_T}$USE_NLS" >&6 |
705db0b5 | 7598 | |
1e24cc5b | 7599 | BUILD_INCLUDED_LIBINTL=no |
705db0b5 | 7600 | USE_INCLUDED_LIBINTL=no |
1e24cc5b | 7601 | INTLLIBS= |
705db0b5 AD |
7602 | |
7603 | if test "$USE_NLS" = "yes"; then | |
18569462 | 7604 | |
6fc74234 | 7605 | cat >>confdefs.h <<\_ACEOF |
705db0b5 | 7606 | #define ENABLE_NLS 1 |
6fc74234 | 7607 | _ACEOF |
705db0b5 | 7608 | |
6fc74234 | 7609 | echo "$as_me:7609: checking whether included gettext is requested" >&5 |
18569462 AD |
7610 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 |
7611 | ||
7612 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
705db0b5 AD |
7613 | if test "${with_included_gettext+set}" = set; then |
7614 | withval="$with_included_gettext" | |
7615 | nls_cv_force_use_gnu_gettext=$withval | |
7616 | else | |
7617 | nls_cv_force_use_gnu_gettext=no | |
18569462 | 7618 | fi; |
6fc74234 | 7619 | echo "$as_me:7619: result: $nls_cv_force_use_gnu_gettext" >&5 |
18569462 | 7620 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 |
705db0b5 AD |
7621 | |
7622 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7623 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
1e24cc5b | 7624 | CATOBJEXT=NONE |
705db0b5 | 7625 | |
6fc74234 AD |
7626 | if test "${ac_cv_header_libintl_h+set}" = set; then |
7627 | echo "$as_me:7627: checking for libintl.h" >&5 | |
18569462 AD |
7628 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 |
7629 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6fc74234 AD |
7631 | fi |
7632 | echo "$as_me:7632: result: $ac_cv_header_libintl_h" >&5 | |
7633 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
705db0b5 | 7634 | else |
6fc74234 AD |
7635 | # Is the header compilable? |
7636 | echo "$as_me:7636: checking libintl.h usability" >&5 | |
7637 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
7638 | cat >conftest.$ac_ext <<_ACEOF | |
7639 | #line 7639 "configure" | |
7640 | #include "confdefs.h" | |
7641 | $ac_includes_default | |
7642 | #include <libintl.h> | |
7643 | _ACEOF | |
7644 | rm -f conftest.$ac_objext | |
7645 | if { (eval echo "$as_me:7645: \"$ac_compile\"") >&5 | |
7646 | (eval $ac_compile) 2>&5 | |
7647 | ac_status=$? | |
7648 | echo "$as_me:7648: \$? = $ac_status" >&5 | |
7649 | (exit $ac_status); } && | |
7650 | { ac_try='test -s conftest.$ac_objext' | |
7651 | { (eval echo "$as_me:7651: \"$ac_try\"") >&5 | |
7652 | (eval $ac_try) 2>&5 | |
7653 | ac_status=$? | |
7654 | echo "$as_me:7654: \$? = $ac_status" >&5 | |
7655 | (exit $ac_status); }; }; then | |
7656 | ac_header_compiler=yes | |
7657 | else | |
7658 | echo "$as_me: failed program was:" >&5 | |
7659 | cat conftest.$ac_ext >&5 | |
7660 | ac_header_compiler=no | |
7661 | fi | |
7662 | rm -f conftest.$ac_objext conftest.$ac_ext | |
7663 | echo "$as_me:7663: result: $ac_header_compiler" >&5 | |
7664 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7665 | ||
7666 | # Is the header present? | |
7667 | echo "$as_me:7667: checking libintl.h presence" >&5 | |
7668 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
7669 | cat >conftest.$ac_ext <<_ACEOF | |
7670 | #line 7670 "configure" | |
705db0b5 AD |
7671 | #include "confdefs.h" |
7672 | #include <libintl.h> | |
18569462 | 7673 | _ACEOF |
6fc74234 | 7674 | if { (eval echo "$as_me:7674: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 7675 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
7676 | ac_status=$? |
7677 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7678 | rm -f conftest.er1 | |
7679 | cat conftest.err >&5 | |
6fc74234 | 7680 | echo "$as_me:7680: \$? = $ac_status" >&5 |
1e24cc5b | 7681 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
7682 | if test -s conftest.err; then |
7683 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7684 | else | |
7685 | ac_cpp_err= | |
7686 | fi | |
7687 | else | |
7688 | ac_cpp_err=yes | |
7689 | fi | |
7690 | if test -z "$ac_cpp_err"; then | |
6fc74234 | 7691 | ac_header_preproc=yes |
18569462 AD |
7692 | else |
7693 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 7694 | cat conftest.$ac_ext >&5 |
6fc74234 | 7695 | ac_header_preproc=no |
705db0b5 | 7696 | fi |
18569462 | 7697 | rm -f conftest.err conftest.$ac_ext |
6fc74234 AD |
7698 | echo "$as_me:7698: result: $ac_header_preproc" >&5 |
7699 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7700 | ||
7701 | # So? What about this header? | |
7702 | case $ac_header_compiler:$ac_header_preproc in | |
7703 | yes:no ) | |
7704 | { echo "$as_me:7704: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7705 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7706 | { echo "$as_me:7706: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
7707 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};; | |
7708 | no:yes ) | |
7709 | { echo "$as_me:7709: WARNING: libintl.h: present but cannot be compiled." >&5 | |
7710 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;} | |
7711 | { echo "$as_me:7711: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
7712 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
7713 | { echo "$as_me:7713: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
7714 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};; | |
7715 | esac | |
7716 | echo "$as_me:7716: checking for libintl.h" >&5 | |
7717 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7718 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7720 | else | |
7721 | ac_cv_header_libintl_h=$ac_header_preproc | |
705db0b5 | 7722 | fi |
6fc74234 | 7723 | echo "$as_me:7723: result: $ac_cv_header_libintl_h" >&5 |
18569462 | 7724 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 |
6fc74234 AD |
7725 | |
7726 | fi | |
18569462 | 7727 | if test $ac_cv_header_libintl_h = yes; then |
6fc74234 | 7728 | echo "$as_me:7728: checking for GNU gettext in libc" >&5 |
1e24cc5b AD |
7729 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 |
7730 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then | |
18569462 | 7731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 | 7732 | else |
18569462 | 7733 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 7734 | #line 7734 "configure" |
705db0b5 AD |
7735 | #include "confdefs.h" |
7736 | #include <libintl.h> | |
1e24cc5b | 7737 | extern int _nl_msg_cat_cntr; |
6fc74234 AD |
7738 | #ifdef F77_DUMMY_MAIN |
7739 | # ifdef __cplusplus | |
7740 | extern "C" | |
7741 | # endif | |
7742 | int F77_DUMMY_MAIN() { return 1; } | |
7743 | #endif | |
18569462 AD |
7744 | int |
7745 | main () | |
7746 | { | |
1e24cc5b AD |
7747 | bindtextdomain ("", ""); |
7748 | return (int) gettext ("") + _nl_msg_cat_cntr | |
18569462 AD |
7749 | ; |
7750 | return 0; | |
7751 | } | |
7752 | _ACEOF | |
7753 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 7754 | if { (eval echo "$as_me:7754: \"$ac_link\"") >&5 |
18569462 AD |
7755 | (eval $ac_link) 2>&5 |
7756 | ac_status=$? | |
6fc74234 | 7757 | echo "$as_me:7757: \$? = $ac_status" >&5 |
18569462 | 7758 | (exit $ac_status); } && |
5141b016 | 7759 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 7760 | { (eval echo "$as_me:7760: \"$ac_try\"") >&5 |
18569462 AD |
7761 | (eval $ac_try) 2>&5 |
7762 | ac_status=$? | |
6fc74234 | 7763 | echo "$as_me:7763: \$? = $ac_status" >&5 |
18569462 | 7764 | (exit $ac_status); }; }; then |
1e24cc5b | 7765 | gt_cv_func_gnugettext1_libc=yes |
705db0b5 | 7766 | else |
18569462 AD |
7767 | echo "$as_me: failed program was:" >&5 |
7768 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 7769 | gt_cv_func_gnugettext1_libc=no |
705db0b5 | 7770 | fi |
1e24cc5b | 7771 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 7772 | fi |
6fc74234 | 7773 | echo "$as_me:7773: result: $gt_cv_func_gnugettext1_libc" >&5 |
1e24cc5b | 7774 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 |
705db0b5 | 7775 | |
1e24cc5b | 7776 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
6fc74234 | 7777 | echo "$as_me:7777: checking for GNU gettext in libintl" >&5 |
1e24cc5b AD |
7778 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 |
7779 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then | |
18569462 | 7780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 | 7781 | else |
1e24cc5b AD |
7782 | gt_save_LIBS="$LIBS" |
7783 | LIBS="$LIBS -lintl $LIBICONV" | |
7784 | cat >conftest.$ac_ext <<_ACEOF | |
6fc74234 | 7785 | #line 7785 "configure" |
705db0b5 | 7786 | #include "confdefs.h" |
1e24cc5b AD |
7787 | #include <libintl.h> |
7788 | extern int _nl_msg_cat_cntr; | |
6fc74234 AD |
7789 | #ifdef F77_DUMMY_MAIN |
7790 | # ifdef __cplusplus | |
7791 | extern "C" | |
7792 | # endif | |
7793 | int F77_DUMMY_MAIN() { return 1; } | |
7794 | #endif | |
18569462 AD |
7795 | int |
7796 | main () | |
7797 | { | |
1e24cc5b AD |
7798 | bindtextdomain ("", ""); |
7799 | return (int) gettext ("") + _nl_msg_cat_cntr | |
18569462 AD |
7800 | ; |
7801 | return 0; | |
7802 | } | |
7803 | _ACEOF | |
7804 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 7805 | if { (eval echo "$as_me:7805: \"$ac_link\"") >&5 |
18569462 AD |
7806 | (eval $ac_link) 2>&5 |
7807 | ac_status=$? | |
6fc74234 | 7808 | echo "$as_me:7808: \$? = $ac_status" >&5 |
18569462 | 7809 | (exit $ac_status); } && |
5141b016 | 7810 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 7811 | { (eval echo "$as_me:7811: \"$ac_try\"") >&5 |
18569462 AD |
7812 | (eval $ac_try) 2>&5 |
7813 | ac_status=$? | |
6fc74234 | 7814 | echo "$as_me:7814: \$? = $ac_status" >&5 |
18569462 | 7815 | (exit $ac_status); }; }; then |
1e24cc5b | 7816 | gt_cv_func_gnugettext1_libintl=yes |
18569462 AD |
7817 | else |
7818 | echo "$as_me: failed program was:" >&5 | |
7819 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 7820 | gt_cv_func_gnugettext1_libintl=no |
18569462 | 7821 | fi |
1e24cc5b AD |
7822 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
7823 | LIBS="$gt_save_LIBS" | |
18569462 | 7824 | fi |
6fc74234 | 7825 | echo "$as_me:7825: result: $gt_cv_func_gnugettext1_libintl" >&5 |
1e24cc5b AD |
7826 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 |
7827 | fi | |
7828 | ||
7829 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ | |
7830 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ | |
7831 | && test "$PACKAGE" != gettext; }; then | |
7832 | ||
6fc74234 | 7833 | cat >>confdefs.h <<\_ACEOF |
1e24cc5b | 7834 | #define HAVE_GETTEXT 1 |
6fc74234 | 7835 | _ACEOF |
1e24cc5b AD |
7836 | |
7837 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | |
7838 | INTLLIBS="-lintl $LIBICONV" | |
7839 | fi | |
7840 | ||
7841 | gt_save_LIBS="$LIBS" | |
7842 | LIBS="$LIBS $INTLLIBS" | |
18569462 | 7843 | |
1e24cc5b AD |
7844 | for ac_func in dcgettext |
7845 | do | |
459dd1a6 | 7846 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6fc74234 | 7847 | echo "$as_me:7847: checking for $ac_func" >&5 |
1e24cc5b | 7848 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 7849 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
7850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7851 | else | |
1e24cc5b | 7852 | cat >conftest.$ac_ext <<_ACEOF |
6fc74234 | 7853 | #line 7853 "configure" |
705db0b5 | 7854 | #include "confdefs.h" |
1e24cc5b AD |
7855 | /* System header to define __stub macros and hopefully few prototypes, |
7856 | which can conflict with char $ac_func (); below. */ | |
7857 | #include <assert.h> | |
705db0b5 | 7858 | /* Override any gcc2 internal prototype to avoid an error. */ |
18569462 AD |
7859 | #ifdef __cplusplus |
7860 | extern "C" | |
7861 | #endif | |
705db0b5 | 7862 | /* We use char because int might match the return type of a gcc2 |
18569462 | 7863 | builtin and then its argument prototype would still apply. */ |
1e24cc5b AD |
7864 | char $ac_func (); |
7865 | char (*f) (); | |
7866 | ||
6fc74234 AD |
7867 | #ifdef F77_DUMMY_MAIN |
7868 | # ifdef __cplusplus | |
7869 | extern "C" | |
7870 | # endif | |
7871 | int F77_DUMMY_MAIN() { return 1; } | |
7872 | #endif | |
18569462 AD |
7873 | int |
7874 | main () | |
7875 | { | |
1e24cc5b AD |
7876 | /* The GNU C library defines this for functions which it implements |
7877 | to always fail with ENOSYS. Some functions are actually named | |
7878 | something starting with __ and the normal name is an alias. */ | |
7879 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7880 | choke me | |
7881 | #else | |
7882 | f = $ac_func; | |
7883 | #endif | |
7884 | ||
18569462 AD |
7885 | ; |
7886 | return 0; | |
7887 | } | |
7888 | _ACEOF | |
7889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6fc74234 | 7890 | if { (eval echo "$as_me:7890: \"$ac_link\"") >&5 |
18569462 AD |
7891 | (eval $ac_link) 2>&5 |
7892 | ac_status=$? | |
6fc74234 | 7893 | echo "$as_me:7893: \$? = $ac_status" >&5 |
18569462 | 7894 | (exit $ac_status); } && |
5141b016 | 7895 | { ac_try='test -s conftest$ac_exeext' |
6fc74234 | 7896 | { (eval echo "$as_me:7896: \"$ac_try\"") >&5 |
18569462 AD |
7897 | (eval $ac_try) 2>&5 |
7898 | ac_status=$? | |
6fc74234 | 7899 | echo "$as_me:7899: \$? = $ac_status" >&5 |
18569462 | 7900 | (exit $ac_status); }; }; then |
459dd1a6 | 7901 | eval "$as_ac_var=yes" |
18569462 AD |
7902 | else |
7903 | echo "$as_me: failed program was:" >&5 | |
7904 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 7905 | eval "$as_ac_var=no" |
18569462 | 7906 | fi |
1e24cc5b | 7907 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 7908 | fi |
6fc74234 | 7909 | echo "$as_me:7909: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
7910 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
7911 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6fc74234 | 7912 | cat >>confdefs.h <<_ACEOF |
459dd1a6 | 7913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6fc74234 | 7914 | _ACEOF |
705db0b5 | 7915 | |
705db0b5 | 7916 | fi |
1e24cc5b | 7917 | done |
705db0b5 | 7918 | |
1e24cc5b | 7919 | LIBS="$gt_save_LIBS" |
18569462 | 7920 | |
459dd1a6 | 7921 | # Extract the first word of "msgfmt", so it can be a program name with args. |
705db0b5 | 7922 | set dummy msgfmt; ac_word=$2 |
6fc74234 | 7923 | echo "$as_me:7923: checking for $ac_word" >&5 |
18569462 AD |
7924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
7925 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
7927 | else |
7928 | case "$MSGFMT" in | |
7929 | /*) | |
7930 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7931 | ;; | |
7932 | *) | |
7933 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7934 | for ac_dir in $PATH; do | |
7935 | test -z "$ac_dir" && ac_dir=. | |
7936 | if test -f $ac_dir/$ac_word; then | |
459dd1a6 | 7937 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then |
705db0b5 AD |
7938 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
7939 | break | |
7940 | fi | |
7941 | fi | |
7942 | done | |
7943 | IFS="$ac_save_ifs" | |
459dd1a6 | 7944 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
705db0b5 AD |
7945 | ;; |
7946 | esac | |
7947 | fi | |
7948 | MSGFMT="$ac_cv_path_MSGFMT" | |
459dd1a6 | 7949 | if test "$MSGFMT" != ":"; then |
6fc74234 | 7950 | echo "$as_me:7950: result: $MSGFMT" >&5 |
18569462 | 7951 | echo "${ECHO_T}$MSGFMT" >&6 |
705db0b5 | 7952 | else |
6fc74234 | 7953 | echo "$as_me:7953: result: no" >&5 |
18569462 | 7954 | echo "${ECHO_T}no" >&6 |
705db0b5 | 7955 | fi |
459dd1a6 AD |
7956 | |
7957 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
705db0b5 | 7958 | set dummy gmsgfmt; ac_word=$2 |
6fc74234 | 7959 | echo "$as_me:7959: checking for $ac_word" >&5 |
18569462 AD |
7960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
7961 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 7963 | else |
18569462 AD |
7964 | case $GMSGFMT in |
7965 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
7966 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7967 | ;; | |
705db0b5 | 7968 | *) |
5141b016 | 7969 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
7970 | ac_dummy="$PATH" |
7971 | for ac_dir in $ac_dummy; do | |
7972 | IFS=$ac_save_IFS | |
7973 | test -z "$ac_dir" && ac_dir=. | |
7974 | if $as_executable_p "$ac_dir/$ac_word"; then | |
7975 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
6fc74234 | 7976 | echo "$as_me:7976: found $ac_dir/$ac_word" >&5 |
18569462 AD |
7977 | break |
7978 | fi | |
7979 | done | |
7980 | ||
705db0b5 AD |
7981 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7982 | ;; | |
7983 | esac | |
7984 | fi | |
18569462 AD |
7985 | GMSGFMT=$ac_cv_path_GMSGFMT |
7986 | ||
705db0b5 | 7987 | if test -n "$GMSGFMT"; then |
6fc74234 | 7988 | echo "$as_me:7988: result: $GMSGFMT" >&5 |
18569462 | 7989 | echo "${ECHO_T}$GMSGFMT" >&6 |
705db0b5 | 7990 | else |
6fc74234 | 7991 | echo "$as_me:7991: result: no" >&5 |
18569462 | 7992 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
7993 | fi |
7994 | ||
459dd1a6 | 7995 | # Extract the first word of "xgettext", so it can be a program name with args. |
705db0b5 | 7996 | set dummy xgettext; ac_word=$2 |
6fc74234 | 7997 | echo "$as_me:7997: checking for $ac_word" >&5 |
18569462 AD |
7998 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
7999 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
8000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
8001 | else |
8002 | case "$XGETTEXT" in | |
8003 | /*) | |
8004 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8005 | ;; | |
8006 | *) | |
8007 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8008 | for ac_dir in $PATH; do | |
8009 | test -z "$ac_dir" && ac_dir=. | |
8010 | if test -f $ac_dir/$ac_word; then | |
459dd1a6 | 8011 | if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then |
705db0b5 AD |
8012 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
8013 | break | |
8014 | fi | |
8015 | fi | |
8016 | done | |
8017 | IFS="$ac_save_ifs" | |
8018 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8019 | ;; | |
8020 | esac | |
8021 | fi | |
8022 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
459dd1a6 | 8023 | if test "$XGETTEXT" != ":"; then |
6fc74234 | 8024 | echo "$as_me:8024: result: $XGETTEXT" >&5 |
18569462 | 8025 | echo "${ECHO_T}$XGETTEXT" >&6 |
705db0b5 | 8026 | else |
6fc74234 | 8027 | echo "$as_me:8027: result: no" >&5 |
18569462 | 8028 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
8029 | fi |
8030 | ||
1e24cc5b AD |
8031 | CATOBJEXT=.gmo |
8032 | fi | |
705db0b5 | 8033 | |
1e24cc5b | 8034 | fi |
705db0b5 AD |
8035 | |
8036 | if test "$CATOBJEXT" = "NONE"; then | |
8037 | nls_cv_use_gnu_gettext=yes | |
8038 | fi | |
8039 | fi | |
8040 | ||
8041 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
8042 | INTLOBJS="\$(GETTOBJS)" | |
8043 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
8044 | set dummy msgfmt; ac_word=$2 | |
6fc74234 | 8045 | echo "$as_me:8045: checking for $ac_word" >&5 |
18569462 AD |
8046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8047 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
8048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
8049 | else |
8050 | case "$MSGFMT" in | |
8051 | /*) | |
8052 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8053 | ;; | |
8054 | *) | |
8055 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8056 | for ac_dir in $PATH; do | |
8057 | test -z "$ac_dir" && ac_dir=. | |
8058 | if test -f $ac_dir/$ac_word; then | |
459dd1a6 | 8059 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then |
705db0b5 AD |
8060 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
8061 | break | |
8062 | fi | |
8063 | fi | |
8064 | done | |
8065 | IFS="$ac_save_ifs" | |
459dd1a6 | 8066 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
705db0b5 AD |
8067 | ;; |
8068 | esac | |
8069 | fi | |
8070 | MSGFMT="$ac_cv_path_MSGFMT" | |
459dd1a6 | 8071 | if test "$MSGFMT" != ":"; then |
6fc74234 | 8072 | echo "$as_me:8072: result: $MSGFMT" >&5 |
18569462 | 8073 | echo "${ECHO_T}$MSGFMT" >&6 |
705db0b5 | 8074 | else |
6fc74234 | 8075 | echo "$as_me:8075: result: no" >&5 |
18569462 | 8076 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
8077 | fi |
8078 | ||
8079 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
8080 | set dummy gmsgfmt; ac_word=$2 | |
6fc74234 | 8081 | echo "$as_me:8081: checking for $ac_word" >&5 |
18569462 AD |
8082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8083 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
8084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 8085 | else |
18569462 AD |
8086 | case $GMSGFMT in |
8087 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
8088 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
8089 | ;; | |
705db0b5 | 8090 | *) |
5141b016 | 8091 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
8092 | ac_dummy="$PATH" |
8093 | for ac_dir in $ac_dummy; do | |
8094 | IFS=$ac_save_IFS | |
8095 | test -z "$ac_dir" && ac_dir=. | |
8096 | if $as_executable_p "$ac_dir/$ac_word"; then | |
8097 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
6fc74234 | 8098 | echo "$as_me:8098: found $ac_dir/$ac_word" >&5 |
18569462 AD |
8099 | break |
8100 | fi | |
8101 | done | |
8102 | ||
705db0b5 AD |
8103 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
8104 | ;; | |
8105 | esac | |
8106 | fi | |
18569462 AD |
8107 | GMSGFMT=$ac_cv_path_GMSGFMT |
8108 | ||
705db0b5 | 8109 | if test -n "$GMSGFMT"; then |
6fc74234 | 8110 | echo "$as_me:8110: result: $GMSGFMT" >&5 |
18569462 | 8111 | echo "${ECHO_T}$GMSGFMT" >&6 |
705db0b5 | 8112 | else |
6fc74234 | 8113 | echo "$as_me:8113: result: no" >&5 |
18569462 | 8114 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
8115 | fi |
8116 | ||
8117 | # Extract the first word of "xgettext", so it can be a program name with args. | |
8118 | set dummy xgettext; ac_word=$2 | |
6fc74234 | 8119 | echo "$as_me:8119: checking for $ac_word" >&5 |
18569462 AD |
8120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8121 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
8122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
8123 | else |
8124 | case "$XGETTEXT" in | |
8125 | /*) | |
8126 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8127 | ;; | |
8128 | *) | |
8129 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8130 | for ac_dir in $PATH; do | |
8131 | test -z "$ac_dir" && ac_dir=. | |
8132 | if test -f $ac_dir/$ac_word; then | |
459dd1a6 | 8133 | if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then |
705db0b5 AD |
8134 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
8135 | break | |
8136 | fi | |
8137 | fi | |
8138 | done | |
8139 | IFS="$ac_save_ifs" | |
8140 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8141 | ;; | |
8142 | esac | |
8143 | fi | |
8144 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
459dd1a6 | 8145 | if test "$XGETTEXT" != ":"; then |
6fc74234 | 8146 | echo "$as_me:8146: result: $XGETTEXT" >&5 |
18569462 | 8147 | echo "${ECHO_T}$XGETTEXT" >&6 |
705db0b5 | 8148 | else |
6fc74234 | 8149 | echo "$as_me:8149: result: no" >&5 |
18569462 | 8150 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
8151 | fi |
8152 | ||
1e24cc5b | 8153 | BUILD_INCLUDED_LIBINTL=yes |
705db0b5 AD |
8154 | USE_INCLUDED_LIBINTL=yes |
8155 | CATOBJEXT=.gmo | |
1e24cc5b AD |
8156 | INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV" |
8157 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
705db0b5 AD |
8158 | fi |
8159 | ||
459dd1a6 AD |
8160 | if test "$GMSGFMT" != ":"; then |
8161 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then | |
705db0b5 AD |
8162 | : ; |
8163 | else | |
6fc74234 | 8164 | echo "$as_me:8164: result: found msgfmt program is not GNU msgfmt; ignore it" >&5 |
459dd1a6 AD |
8165 | echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6 |
8166 | GMSGFMT=":" | |
8167 | fi | |
8168 | fi | |
8169 | ||
8170 | if test "$XGETTEXT" != ":"; then | |
8171 | if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then | |
8172 | : ; | |
8173 | else | |
6fc74234 | 8174 | echo "$as_me:8174: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
18569462 | 8175 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 |
705db0b5 AD |
8176 | XGETTEXT=":" |
8177 | fi | |
8178 | fi | |
8179 | ||
1e24cc5b | 8180 | POSUB=po |
705db0b5 | 8181 | fi |
1e24cc5b AD |
8182 | ac_config_commands="$ac_config_commands default-2" |
8183 | ||
8184 | if test "$PACKAGE" = gettext; then | |
8185 | BUILD_INCLUDED_LIBINTL=yes | |
705db0b5 | 8186 | fi |
1e24cc5b AD |
8187 | |
8188 | for ac_prog in bison | |
8189 | do | |
8190 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8191 | set dummy $ac_prog; ac_word=$2 | |
6fc74234 | 8192 | echo "$as_me:8192: checking for $ac_word" >&5 |
1e24cc5b AD |
8193 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8194 | if test "${ac_cv_prog_INTLBISON+set}" = set; then | |
8195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8196 | else | |
8197 | if test -n "$INTLBISON"; then | |
8198 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
8199 | else | |
8200 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
8201 | ac_dummy="$PATH" | |
8202 | for ac_dir in $ac_dummy; do | |
8203 | IFS=$ac_save_IFS | |
8204 | test -z "$ac_dir" && ac_dir=. | |
8205 | $as_executable_p "$ac_dir/$ac_word" || continue | |
8206 | ac_cv_prog_INTLBISON="$ac_prog" | |
6fc74234 | 8207 | echo "$as_me:8207: found $ac_dir/$ac_word" >&5 |
1e24cc5b | 8208 | break |
18569462 | 8209 | done |
705db0b5 | 8210 | |
1e24cc5b AD |
8211 | fi |
8212 | fi | |
8213 | INTLBISON=$ac_cv_prog_INTLBISON | |
8214 | if test -n "$INTLBISON"; then | |
6fc74234 | 8215 | echo "$as_me:8215: result: $INTLBISON" >&5 |
1e24cc5b AD |
8216 | echo "${ECHO_T}$INTLBISON" >&6 |
8217 | else | |
6fc74234 | 8218 | echo "$as_me:8218: result: no" >&5 |
1e24cc5b AD |
8219 | echo "${ECHO_T}no" >&6 |
8220 | fi | |
705db0b5 | 8221 | |
1e24cc5b AD |
8222 | test -n "$INTLBISON" && break |
8223 | done | |
8224 | ||
8225 | if test -z "$INTLBISON"; then | |
8226 | ac_verc_fail=yes | |
8227 | else | |
6fc74234 | 8228 | echo "$as_me:8228: checking version of bison" >&5 |
1e24cc5b AD |
8229 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6 |
8230 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
8231 | case $ac_prog_version in | |
8232 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
8233 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
8234 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
8235 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
8236 | esac | |
6fc74234 | 8237 | echo "$as_me:8237: result: $ac_prog_version" >&5 |
1e24cc5b AD |
8238 | echo "${ECHO_T}$ac_prog_version" >&6 |
8239 | fi | |
8240 | if test $ac_verc_fail = yes; then | |
8241 | INTLBISON=: | |
705db0b5 AD |
8242 | fi |
8243 | ||
8244 | for lang in $ALL_LINGUAS; do | |
8245 | GMOFILES="$GMOFILES $lang.gmo" | |
8246 | POFILES="$POFILES $lang.po" | |
8247 | done | |
8248 | ||
1e24cc5b AD |
8249 | nls_cv_header_intl= |
8250 | nls_cv_header_libgt= | |
8251 | ||
8252 | DATADIRNAME=share | |
8253 | ||
8254 | INSTOBJEXT=.mo | |
8255 | ||
8256 | GENCAT=gencat | |
8257 | ||
705db0b5 AD |
8258 | if test "x$CATOBJEXT" != "x"; then |
8259 | if test "x$ALL_LINGUAS" = "x"; then | |
8260 | LINGUAS= | |
8261 | else | |
6fc74234 | 8262 | echo "$as_me:8262: checking for catalogs to be installed" >&5 |
18569462 | 8263 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 |
705db0b5 | 8264 | NEW_LINGUAS= |
1e24cc5b AD |
8265 | for presentlang in $ALL_LINGUAS; do |
8266 | useit=no | |
8267 | for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do | |
8268 | # Use the presentlang catalog if desiredlang is | |
8269 | # a. equal to presentlang, or | |
8270 | # b. a variant of presentlang (because in this case, | |
8271 | # presentlang can be used as a fallback for messages | |
8272 | # which are not translated in the desiredlang catalog). | |
8273 | case "$desiredlang" in | |
8274 | "$presentlang"*) useit=yes;; | |
8275 | esac | |
8276 | done | |
8277 | if test $useit = yes; then | |
8278 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | |
8279 | fi | |
705db0b5 AD |
8280 | done |
8281 | LINGUAS=$NEW_LINGUAS | |
6fc74234 | 8282 | echo "$as_me:8282: result: $LINGUAS" >&5 |
18569462 | 8283 | echo "${ECHO_T}$LINGUAS" >&6 |
705db0b5 AD |
8284 | fi |
8285 | ||
8286 | if test -n "$LINGUAS"; then | |
8287 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
8288 | fi | |
8289 | fi | |
8290 | ||
705db0b5 AD |
8291 | MKINSTALLDIRS= |
8292 | if test -n "$ac_aux_dir"; then | |
1e24cc5b | 8293 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
705db0b5 AD |
8294 | fi |
8295 | if test -z "$MKINSTALLDIRS"; then | |
8296 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
8297 | fi | |
705db0b5 | 8298 | |
1e24cc5b | 8299 | INTL_LIBTOOL_SUFFIX_PREFIX= |
705db0b5 | 8300 | |
705db0b5 AD |
8301 | # This is necessary so that .o files in LIBOBJS are also built via |
8302 | # the ANSI2KNR-filtering rules. | |
8303 | LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` | |
8304 | ||
1e24cc5b | 8305 | ac_config_files="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile tests/atconfig" |
18569462 | 8306 | cat >confcache <<\_ACEOF |
705db0b5 AD |
8307 | # This file is a shell script that caches the results of configure |
8308 | # tests run on this system so they can be shared between configure | |
18569462 AD |
8309 | # scripts and configure runs, see configure's option --config-cache. |
8310 | # It is not useful on other systems. If it contains results you don't | |
8311 | # want to keep, you may remove or edit it. | |
705db0b5 | 8312 | # |
18569462 AD |
8313 | # config.status only pays attention to the cache file if you give it |
8314 | # the --recheck option to rerun configure. | |
705db0b5 | 8315 | # |
18569462 AD |
8316 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
8317 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
8318 | # following values. | |
8319 | ||
8320 | _ACEOF | |
8321 | ||
705db0b5 AD |
8322 | # The following way of writing the cache mishandles newlines in values, |
8323 | # but we know of no workaround that is simple, portable, and efficient. | |
8324 | # So, don't put newlines in cache variables' values. | |
8325 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8326 | # and sets the high bit in the cache file unless we assign to the vars. | |
18569462 AD |
8327 | { |
8328 | (set) 2>&1 | | |
8329 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8330 | *ac_space=\ *) | |
8331 | # `set' does not quote correctly, so add quotes (double-quote | |
8332 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
8333 | sed -n \ | |
8334 | "s/'/'\\\\''/g; | |
459dd1a6 | 8335 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
18569462 AD |
8336 | ;; |
8337 | *) | |
8338 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8339 | sed -n \ | |
459dd1a6 | 8340 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
18569462 AD |
8341 | ;; |
8342 | esac; | |
8343 | } | | |
8344 | sed ' | |
8345 | t clear | |
8346 | : clear | |
8347 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
8348 | t end | |
8349 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
8350 | : end' >>confcache | |
8351 | if cmp -s $cache_file confcache; then :; else | |
705db0b5 | 8352 | if test -w $cache_file; then |
18569462 AD |
8353 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
8354 | cat confcache >$cache_file | |
705db0b5 AD |
8355 | else |
8356 | echo "not updating unwritable cache $cache_file" | |
8357 | fi | |
8358 | fi | |
8359 | rm -f confcache | |
8360 | ||
705db0b5 AD |
8361 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
8362 | # Let make expand exec_prefix. | |
8363 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8364 | ||
5141b016 AD |
8365 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8366 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8367 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8368 | # (actually we leave an empty line to preserve line numbers). | |
705db0b5 | 8369 | if test "x$srcdir" = x.; then |
5141b016 AD |
8370 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
8371 | s/:*\$(srcdir):*/:/; | |
8372 | s/:*\${srcdir}:*/:/; | |
8373 | s/:*@srcdir@:*/:/; | |
8374 | s/^\([^=]*=[ ]*\):*/\1/; | |
8375 | s/:*$//; | |
8376 | s/^[^=]*=[ ]*$//; | |
8377 | }' | |
705db0b5 AD |
8378 | fi |
8379 | ||
705db0b5 AD |
8380 | DEFS=-DHAVE_CONFIG_H |
8381 | ||
705db0b5 | 8382 | : ${CONFIG_STATUS=./config.status} |
18569462 AD |
8383 | ac_clean_files_save=$ac_clean_files |
8384 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6fc74234 | 8385 | { echo "$as_me:8385: creating $CONFIG_STATUS" >&5 |
18569462 | 8386 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
1e24cc5b AD |
8387 | cat >$CONFIG_STATUS <<_ACEOF |
8388 | #! $SHELL | |
6fc74234 | 8389 | # Generated automatically by $as_me. |
705db0b5 | 8390 | # Run this file to recreate the current configuration. |
705db0b5 | 8391 | # Compiler output produced by configure, useful for debugging |
18569462 | 8392 | # configure, is in config.log if it exists. |
705db0b5 | 8393 | |
18569462 | 8394 | debug=false |
1e24cc5b | 8395 | SHELL=\${CONFIG_SHELL-$SHELL} |
1e24cc5b | 8396 | _ACEOF |
18569462 | 8397 | |
1e24cc5b | 8398 | cat >>$CONFIG_STATUS <<\_ACEOF |
6fc74234 AD |
8399 | |
8400 | ## --------------------- ## | |
8401 | ## M4sh Initialization. ## | |
8402 | ## --------------------- ## | |
8403 | ||
18569462 AD |
8404 | # Be Bourne compatible |
8405 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
8406 | emulate sh | |
8407 | NULLCMD=: | |
8408 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
8409 | set -o posix | |
8410 | fi | |
8411 | ||
1e24cc5b AD |
8412 | # Name of the executable. |
8413 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
8414 | ||
18569462 AD |
8415 | if expr a : '\(a\)' >/dev/null 2>&1; then |
8416 | as_expr=expr | |
8417 | else | |
8418 | as_expr=false | |
8419 | fi | |
8420 | ||
5141b016 AD |
8421 | rm -f conf$$ conf$$.exe conf$$.file |
8422 | echo >conf$$.file | |
8423 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18569462 AD |
8424 | # We could just check for DJGPP; but this test a) works b) is more generic |
8425 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
5141b016 | 8426 | if test -f conf$$.exe; then |
18569462 AD |
8427 | # Don't use ln at all; we don't have any links |
8428 | as_ln_s='cp -p' | |
8429 | else | |
8430 | as_ln_s='ln -s' | |
8431 | fi | |
5141b016 | 8432 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18569462 AD |
8433 | as_ln_s=ln |
8434 | else | |
8435 | as_ln_s='cp -p' | |
8436 | fi | |
5141b016 | 8437 | rm -f conf$$ conf$$.exe conf$$.file |
18569462 | 8438 | |
5141b016 | 8439 | as_executable_p="test -f" |
18569462 AD |
8440 | |
8441 | # Support unset when possible. | |
8442 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
8443 | as_unset=unset | |
8444 | else | |
8445 | as_unset=false | |
8446 | fi | |
8447 | ||
8448 | # NLS nuisances. | |
8449 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
8450 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
8451 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
8452 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
8453 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
8454 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
8455 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
8456 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
8457 | ||
8458 | # IFS | |
8459 | # We need space, tab and new line, in precisely that order. | |
8460 | as_nl=' | |
8461 | ' | |
8462 | IFS=" $as_nl" | |
8463 | ||
8464 | # CDPATH. | |
8465 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
8466 | ||
18569462 AD |
8467 | exec 6>&1 |
8468 | ||
6fc74234 AD |
8469 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
8470 | # report actual input values of CONFIG_FILES etc. instead of their | |
8471 | # values after options handling. Logging --version etc. is OK. | |
8472 | exec 5>>config.log | |
8473 | cat >&5 <<_CSEOF | |
8474 | ||
8475 | `sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8476 | ## Running \$as_me. ## | |
8477 | _ASBOX` | |
8478 | ||
8479 | This file was extended by bison $as_me 1.28c, which was | |
8480 | generated by GNU Autoconf 2.52c. Invocation command line was | |
8481 | ||
8482 | CONFIG_FILES = $CONFIG_FILES | |
8483 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8484 | CONFIG_LINKS = $CONFIG_LINKS | |
8485 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8486 | $ $@ | |
8487 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
8488 | ||
8489 | _CSEOF | |
18569462 AD |
8490 | _ACEOF |
8491 | ||
8492 | # Files that config.status was made for. | |
8493 | if test -n "$ac_config_files"; then | |
8494 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
8495 | fi | |
8496 | ||
8497 | if test -n "$ac_config_headers"; then | |
8498 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
8499 | fi | |
8500 | ||
8501 | if test -n "$ac_config_links"; then | |
8502 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
8503 | fi | |
8504 | ||
8505 | if test -n "$ac_config_commands"; then | |
8506 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
8507 | fi | |
8508 | ||
6fc74234 | 8509 | cat >>$CONFIG_STATUS <<\_ACEOF |
18569462 AD |
8510 | |
8511 | ac_cs_usage="\ | |
8512 | \`$as_me' instantiates files from templates according to the | |
8513 | current configuration. | |
8514 | ||
8515 | Usage: $0 [OPTIONS] [FILE]... | |
8516 | ||
8517 | -h, --help print this help, then exit | |
8518 | -V, --version print version number, then exit | |
8519 | -d, --debug don't remove temporary files | |
8520 | --recheck update $as_me by reconfiguring in the same conditions | |
8521 | --file=FILE[:TEMPLATE] | |
8522 | instantiate the configuration file FILE | |
8523 | --header=FILE[:TEMPLATE] | |
8524 | instantiate the configuration header FILE | |
8525 | ||
8526 | Configuration files: | |
8527 | $config_files | |
8528 | ||
8529 | Configuration headers: | |
8530 | $config_headers | |
8531 | ||
18569462 AD |
8532 | Configuration commands: |
8533 | $config_commands | |
8534 | ||
8535 | Report bugs to <bug-autoconf@gnu.org>." | |
6fc74234 | 8536 | _ACEOF |
18569462 | 8537 | |
6fc74234 | 8538 | cat >>$CONFIG_STATUS <<_ACEOF |
18569462 | 8539 | ac_cs_version="\\ |
84163231 | 8540 | bison config.status 1.28c |
6fc74234 | 8541 | configured by $0, generated by GNU Autoconf 2.52c, |
1e24cc5b AD |
8542 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
8543 | ||
8544 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
8545 | Free Software Foundation, Inc. | |
8546 | This config.status script is free software; the Free Software Foundation | |
8547 | gives unlimited permission to copy, distribute and modify it." | |
18569462 AD |
8548 | srcdir=$srcdir |
8549 | INSTALL="$INSTALL" | |
6fc74234 | 8550 | _ACEOF |
18569462 | 8551 | |
6fc74234 | 8552 | cat >>$CONFIG_STATUS <<\_ACEOF |
18569462 AD |
8553 | # If no file are specified by the user, then we need to provide default |
8554 | # value. By we need to know if files were specified by the user. | |
8555 | ac_need_defaults=: | |
8556 | while test $# != 0 | |
705db0b5 | 8557 | do |
18569462 AD |
8558 | case $1 in |
8559 | --*=*) | |
8560 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
8561 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
8562 | shift | |
8563 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
8564 | shift | |
8565 | ;; | |
8566 | -*);; | |
8567 | *) # This is not an option, so the user has probably given explicit | |
8568 | # arguments. | |
8569 | ac_need_defaults=false;; | |
8570 | esac | |
8571 | ||
8572 | case $1 in | |
8573 | # Handling of the options. | |
6fc74234 AD |
8574 | _ACEOF |
8575 | cat >>$CONFIG_STATUS <<_ACEOF | |
705db0b5 | 8576 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18569462 AD |
8577 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
8578 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
6fc74234 AD |
8579 | _ACEOF |
8580 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18569462 AD |
8581 | --version | --vers* | -V ) |
8582 | echo "$ac_cs_version"; exit 0 ;; | |
8583 | --he | --h) | |
8584 | # Conflict between --help and --header | |
6fc74234 | 8585 | { { echo "$as_me:8585: error: ambiguous option: $1 |
18569462 AD |
8586 | Try \`$0 --help' for more information." >&5 |
8587 | echo "$as_me: error: ambiguous option: $1 | |
8588 | Try \`$0 --help' for more information." >&2;} | |
8589 | { (exit 1); exit 1; }; };; | |
8590 | --help | --hel | -h ) | |
8591 | echo "$ac_cs_usage"; exit 0 ;; | |
8592 | --debug | --d* | -d ) | |
8593 | debug=: ;; | |
8594 | --file | --fil | --fi | --f ) | |
8595 | shift | |
8596 | CONFIG_FILES="$CONFIG_FILES $1" | |
8597 | ac_need_defaults=false;; | |
8598 | --header | --heade | --head | --hea ) | |
8599 | shift | |
8600 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
8601 | ac_need_defaults=false;; | |
8602 | ||
18569462 | 8603 | # This is an error. |
6fc74234 | 8604 | -*) { { echo "$as_me:8604: error: unrecognized option: $1 |
18569462 AD |
8605 | Try \`$0 --help' for more information." >&5 |
8606 | echo "$as_me: error: unrecognized option: $1 | |
8607 | Try \`$0 --help' for more information." >&2;} | |
8608 | { (exit 1); exit 1; }; } ;; | |
459dd1a6 AD |
8609 | |
8610 | *) ac_config_targets="$ac_config_targets $1" ;; | |
8611 | ||
705db0b5 | 8612 | esac |
18569462 | 8613 | shift |
705db0b5 AD |
8614 | done |
8615 | ||
1e24cc5b | 8616 | _ACEOF |
18569462 | 8617 | |
6fc74234 | 8618 | cat >>$CONFIG_STATUS <<_ACEOF |
459dd1a6 AD |
8619 | # |
8620 | # INIT-COMMANDS section. | |
8621 | # | |
8622 | ||
6fc74234 AD |
8623 | AMDEP_TRUE="$AMDEP_TRUE" |
8624 | ac_aux_dir="$ac_aux_dir" | |
8625 | ||
8626 | _ACEOF | |
459dd1a6 | 8627 | |
6fc74234 | 8628 | cat >>$CONFIG_STATUS <<\_ACEOF |
459dd1a6 AD |
8629 | for ac_config_target in $ac_config_targets |
8630 | do | |
8631 | case "$ac_config_target" in | |
8632 | # Handling of arguments. | |
8633 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8634 | "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; | |
8635 | "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; | |
8636 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | |
8637 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
8638 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
8639 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
8640 | "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | |
8641 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
8642 | "tests/atconfig" ) CONFIG_FILES="$CONFIG_FILES tests/atconfig" ;; | |
8643 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
8644 | "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; | |
8645 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; | |
6fc74234 | 8646 | *) { { echo "$as_me:8646: error: invalid argument: $ac_config_target" >&5 |
459dd1a6 AD |
8647 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
8648 | { (exit 1); exit 1; }; };; | |
8649 | esac | |
8650 | done | |
8651 | ||
18569462 AD |
8652 | # If the user did not use the arguments to specify the items to instantiate, |
8653 | # then the envvar interface is used. Set only those that are not. | |
8654 | # We use the long form for the default assignment because of an extremely | |
8655 | # bizarre bug on SunOS 4.1.3. | |
8656 | if $ac_need_defaults; then | |
8657 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8658 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18569462 AD |
8659 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
8660 | fi | |
8661 | ||
8662 | # Create a temporary directory, and hook for its removal unless debugging. | |
8663 | $debug || | |
8664 | { | |
8665 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
459dd1a6 | 8666 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
18569462 AD |
8667 | } |
8668 | ||
8669 | # Create a (secure) tmp directory for tmp files. | |
8670 | : ${TMPDIR=/tmp} | |
8671 | { | |
8672 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
8673 | test -n "$tmp" && test -d "$tmp" | |
8674 | } || | |
8675 | { | |
8676 | tmp=$TMPDIR/cs$$-$RANDOM | |
8677 | (umask 077 && mkdir $tmp) | |
8678 | } || | |
8679 | { | |
8680 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
8681 | { (exit 1); exit 1; } | |
8682 | } | |
705db0b5 | 8683 | |
6fc74234 | 8684 | _ACEOF |
705db0b5 | 8685 | |
6fc74234 | 8686 | cat >>$CONFIG_STATUS <<_ACEOF |
705db0b5 | 8687 | |
18569462 AD |
8688 | # |
8689 | # CONFIG_FILES section. | |
8690 | # | |
8691 | ||
8692 | # No need to generate the scripts if there are no CONFIG_FILES. | |
8693 | # This happens for instance when ./config.status config.h | |
8694 | if test -n "\$CONFIG_FILES"; then | |
8695 | # Protect against being on the right side of a sed subst in config.status. | |
8696 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
8697 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
8698 | s,@SHELL@,$SHELL,;t t | |
8699 | s,@exec_prefix@,$exec_prefix,;t t | |
8700 | s,@prefix@,$prefix,;t t | |
8701 | s,@program_transform_name@,$program_transform_name,;t t | |
8702 | s,@bindir@,$bindir,;t t | |
8703 | s,@sbindir@,$sbindir,;t t | |
8704 | s,@libexecdir@,$libexecdir,;t t | |
8705 | s,@datadir@,$datadir,;t t | |
8706 | s,@sysconfdir@,$sysconfdir,;t t | |
8707 | s,@sharedstatedir@,$sharedstatedir,;t t | |
8708 | s,@localstatedir@,$localstatedir,;t t | |
8709 | s,@libdir@,$libdir,;t t | |
8710 | s,@includedir@,$includedir,;t t | |
8711 | s,@oldincludedir@,$oldincludedir,;t t | |
8712 | s,@infodir@,$infodir,;t t | |
8713 | s,@mandir@,$mandir,;t t | |
8714 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
8715 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
8716 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
8717 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
8718 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
459dd1a6 AD |
8719 | s,@build_alias@,$build_alias,;t t |
8720 | s,@host_alias@,$host_alias,;t t | |
8721 | s,@target_alias@,$target_alias,;t t | |
18569462 AD |
8722 | s,@ECHO_C@,$ECHO_C,;t t |
8723 | s,@ECHO_N@,$ECHO_N,;t t | |
8724 | s,@ECHO_T@,$ECHO_T,;t t | |
5141b016 | 8725 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
18569462 AD |
8726 | s,@DEFS@,$DEFS,;t t |
8727 | s,@LIBS@,$LIBS,;t t | |
8728 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
8729 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
8730 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
8731 | s,@PACKAGE@,$PACKAGE,;t t | |
8732 | s,@VERSION@,$VERSION,;t t | |
6fc74234 AD |
8733 | s,@EXEEXT@,$EXEEXT,;t t |
8734 | s,@OBJEXT@,$OBJEXT,;t t | |
18569462 AD |
8735 | s,@ACLOCAL@,$ACLOCAL,;t t |
8736 | s,@AUTOCONF@,$AUTOCONF,;t t | |
8737 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
8738 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
8739 | s,@MAKEINFO@,$MAKEINFO,;t t | |
6fc74234 AD |
8740 | s,@AMTAR@,$AMTAR,;t t |
8741 | s,@install_sh@,$install_sh,;t t | |
8742 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
8743 | s,@AWK@,$AWK,;t t | |
18569462 | 8744 | s,@SET_MAKE@,$SET_MAKE,;t t |
6fc74234 AD |
8745 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
8746 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
8747 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
8748 | s,@DEPDIR@,$DEPDIR,;t t | |
18569462 AD |
8749 | s,@AT_TESTPATH@,$AT_TESTPATH,;t t |
8750 | s,@CC@,$CC,;t t | |
8751 | s,@CFLAGS@,$CFLAGS,;t t | |
8752 | s,@LDFLAGS@,$LDFLAGS,;t t | |
1e24cc5b | 8753 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
18569462 | 8754 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
6fc74234 AD |
8755 | s,@am__include@,$am__include,;t t |
8756 | s,@am__quote@,$am__quote,;t t | |
8757 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
18569462 | 8758 | s,@CPP@,$CPP,;t t |
18569462 AD |
8759 | s,@RANLIB@,$RANLIB,;t t |
8760 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
8761 | s,@M4@,$M4,;t t | |
8762 | s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t | |
8763 | s,@U@,$U,;t t | |
8764 | s,@ANSI2KNR@,$ANSI2KNR,;t t | |
8765 | s,@ALLOCA@,$ALLOCA,;t t | |
8766 | s,@LIBOBJS@,$LIBOBJS,;t t | |
1e24cc5b AD |
8767 | s,@build@,$build,;t t |
8768 | s,@build_cpu@,$build_cpu,;t t | |
8769 | s,@build_vendor@,$build_vendor,;t t | |
8770 | s,@build_os@,$build_os,;t t | |
8771 | s,@host@,$host,;t t | |
8772 | s,@host_cpu@,$host_cpu,;t t | |
8773 | s,@host_vendor@,$host_vendor,;t t | |
8774 | s,@host_os@,$host_os,;t t | |
8775 | s,@GLIBC21@,$GLIBC21,;t t | |
8776 | s,@LIBICONV@,$LIBICONV,;t t | |
18569462 AD |
8777 | s,@USE_NLS@,$USE_NLS,;t t |
8778 | s,@MSGFMT@,$MSGFMT,;t t | |
8779 | s,@GMSGFMT@,$GMSGFMT,;t t | |
8780 | s,@XGETTEXT@,$XGETTEXT,;t t | |
1e24cc5b AD |
8781 | s,@INTLBISON@,$INTLBISON,;t t |
8782 | s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t | |
18569462 AD |
8783 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t |
8784 | s,@CATALOGS@,$CATALOGS,;t t | |
8785 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
18569462 | 8786 | s,@GMOFILES@,$GMOFILES,;t t |
18569462 AD |
8787 | s,@INTLLIBS@,$INTLLIBS,;t t |
8788 | s,@INTLOBJS@,$INTLOBJS,;t t | |
8789 | s,@POFILES@,$POFILES,;t t | |
8790 | s,@POSUB@,$POSUB,;t t | |
1e24cc5b AD |
8791 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
8792 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
8793 | s,@GENCAT@,$GENCAT,;t t | |
18569462 | 8794 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
1e24cc5b | 8795 | s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t |
705db0b5 | 8796 | CEOF |
18569462 | 8797 | |
6fc74234 | 8798 | _ACEOF |
705db0b5 | 8799 | |
6fc74234 | 8800 | cat >>$CONFIG_STATUS <<\_ACEOF |
18569462 AD |
8801 | # Split the substitutions into bite-sized pieces for seds with |
8802 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8803 | ac_max_sed_lines=48 | |
8804 | ac_sed_frag=1 # Number of current file. | |
8805 | ac_beg=1 # First line for current file. | |
8806 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
8807 | ac_more_lines=: | |
8808 | ac_sed_cmds= | |
8809 | while $ac_more_lines; do | |
8810 | if test $ac_beg -gt 1; then | |
8811 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
8812 | else | |
8813 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
8814 | fi | |
8815 | if test ! -s $tmp/subs.frag; then | |
8816 | ac_more_lines=false | |
705db0b5 | 8817 | else |
18569462 AD |
8818 | # The purpose of the label and of the branching condition is to |
8819 | # speed up the sed processing (if there are no `@' at all, there | |
8820 | # is no need to browse any of the substitutions). | |
8821 | # These are the two extra sed commands mentioned above. | |
8822 | (echo ':t | |
8823 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
8824 | if test -z "$ac_sed_cmds"; then | |
8825 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
8826 | else | |
8827 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
8828 | fi | |
8829 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
8830 | ac_beg=$ac_end | |
8831 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
705db0b5 | 8832 | fi |
18569462 AD |
8833 | done |
8834 | if test -z "$ac_sed_cmds"; then | |
8835 | ac_sed_cmds=cat | |
705db0b5 | 8836 | fi |
18569462 | 8837 | fi # test -n "$CONFIG_FILES" |
705db0b5 | 8838 | |
6fc74234 AD |
8839 | _ACEOF |
8840 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18569462 | 8841 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
705db0b5 | 8842 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
18569462 AD |
8843 | case $ac_file in |
8844 | - | *:- | *:-:* ) # input from stdin | |
8845 | cat >$tmp/stdin | |
8846 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8847 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8848 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8849 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8850 | * ) ac_file_in=$ac_file.in ;; | |
705db0b5 AD |
8851 | esac |
8852 | ||
18569462 AD |
8853 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
8854 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8855 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8856 | X"$ac_file" : 'X\(//\)$' \| \ | |
8857 | X"$ac_file" : 'X\(/\)' \| \ | |
8858 | . : '\(.\)' 2>/dev/null || | |
8859 | echo X"$ac_file" | | |
8860 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8861 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8862 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8863 | /^X\(\/\).*/{ s//\1/; q; } | |
8864 | s/.*/./; q'` | |
6fc74234 | 8865 | { case "$ac_dir" in |
18569462 AD |
8866 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
8867 | *) as_incr_dir=.;; | |
8868 | esac | |
8869 | as_dummy="$ac_dir" | |
8870 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
8871 | case $as_mkdir_dir in | |
8872 | # Skip DOS drivespec | |
8873 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
8874 | *) | |
8875 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
6fc74234 AD |
8876 | test -d "$as_incr_dir" || |
8877 | mkdir "$as_incr_dir" || | |
8878 | { { echo "$as_me:8878: error: cannot create \"$ac_dir\"" >&5 | |
8879 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
8880 | { (exit 1); exit 1; }; } | |
18569462 AD |
8881 | ;; |
8882 | esac | |
8883 | done; } | |
8884 | ||
6fc74234 AD |
8885 | if test "$ac_dir" != .; then |
8886 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'` | |
8887 | # A "../" for each directory in $ac_dir_suffix. | |
8888 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | |
8889 | else | |
8890 | ac_dir_suffix= ac_top_builddir= | |
8891 | fi | |
705db0b5 | 8892 | |
6fc74234 AD |
8893 | case $srcdir in |
8894 | .) # No --srcdir option. We are building in place. | |
8895 | ac_srcdir=. | |
8896 | if test -z "$ac_top_builddir"; then | |
8897 | ac_top_srcdir=. | |
8898 | else | |
8899 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8900 | fi ;; | |
8901 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8902 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8903 | ac_top_srcdir=$srcdir ;; | |
705db0b5 | 8904 | *) # Relative path. |
6fc74234 AD |
8905 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
8906 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8907 | esac | |
705db0b5 | 8908 | |
18569462 AD |
8909 | case $INSTALL in |
8910 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
6fc74234 | 8911 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
705db0b5 AD |
8912 | esac |
8913 | ||
18569462 | 8914 | if test x"$ac_file" != x-; then |
6fc74234 | 8915 | { echo "$as_me:8915: creating $ac_file" >&5 |
18569462 AD |
8916 | echo "$as_me: creating $ac_file" >&6;} |
8917 | rm -f "$ac_file" | |
8918 | fi | |
8919 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8920 | # use $as_me), people would be surprised to read: | |
8921 | # /* config.h. Generated automatically by config.status. */ | |
8922 | configure_input="Generated automatically from `echo $ac_file_in | | |
8923 | sed 's,.*/,,'` by configure." | |
8924 | ||
8925 | # First look for the input files in the build tree, otherwise in the | |
8926 | # src tree. | |
8927 | ac_file_inputs=`IFS=: | |
8928 | for f in $ac_file_in; do | |
8929 | case $f in | |
8930 | -) echo $tmp/stdin ;; | |
1e24cc5b AD |
8931 | [\\/$]*) |
8932 | # Absolute (can't be DOS-style, as IFS=:) | |
6fc74234 | 8933 | test -f "$f" || { { echo "$as_me:8933: error: cannot find input file: $f" >&5 |
18569462 AD |
8934 | echo "$as_me: error: cannot find input file: $f" >&2;} |
8935 | { (exit 1); exit 1; }; } | |
8936 | echo $f;; | |
8937 | *) # Relative | |
8938 | if test -f "$f"; then | |
8939 | # Build tree | |
8940 | echo $f | |
8941 | elif test -f "$srcdir/$f"; then | |
8942 | # Source tree | |
8943 | echo $srcdir/$f | |
8944 | else | |
8945 | # /dev/null tree | |
6fc74234 | 8946 | { { echo "$as_me:8946: error: cannot find input file: $f" >&5 |
18569462 AD |
8947 | echo "$as_me: error: cannot find input file: $f" >&2;} |
8948 | { (exit 1); exit 1; }; } | |
8949 | fi;; | |
8950 | esac | |
8951 | done` || { (exit 1); exit 1; } | |
6fc74234 AD |
8952 | _ACEOF |
8953 | cat >>$CONFIG_STATUS <<_ACEOF | |
18569462 AD |
8954 | sed "$ac_vpsub |
8955 | $extrasub | |
6fc74234 AD |
8956 | _ACEOF |
8957 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18569462 AD |
8958 | :t |
8959 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
8960 | s,@configure_input@,$configure_input,;t t | |
8961 | s,@srcdir@,$ac_srcdir,;t t | |
8962 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
8963 | s,@INSTALL@,$ac_INSTALL,;t t | |
8964 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
8965 | rm -f $tmp/stdin | |
8966 | if test x"$ac_file" != x-; then | |
8967 | mv $tmp/out $ac_file | |
8968 | else | |
8969 | cat $tmp/out | |
8970 | rm -f $tmp/out | |
8971 | fi | |
8972 | ||
8973 | done | |
6fc74234 AD |
8974 | _ACEOF |
8975 | cat >>$CONFIG_STATUS <<\_ACEOF | |
705db0b5 | 8976 | |
18569462 AD |
8977 | # |
8978 | # CONFIG_HEADER section. | |
8979 | # | |
705db0b5 AD |
8980 | |
8981 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8982 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8983 | # | |
8984 | # ac_d sets the value in "#define NAME VALUE" lines. | |
18569462 AD |
8985 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
8986 | ac_dB='[ ].*$,\1#\2' | |
8987 | ac_dC=' ' | |
8988 | ac_dD=',;t' | |
8989 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8990 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8991 | ac_uB='$,\1#\2define\3' | |
705db0b5 | 8992 | ac_uC=' ' |
18569462 AD |
8993 | ac_uD=',;t' |
8994 | ||
8995 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
705db0b5 | 8996 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
18569462 AD |
8997 | case $ac_file in |
8998 | - | *:- | *:-:* ) # input from stdin | |
8999 | cat >$tmp/stdin | |
9000 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9001 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9002 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9003 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9004 | * ) ac_file_in=$ac_file.in ;; | |
705db0b5 AD |
9005 | esac |
9006 | ||
6fc74234 | 9007 | test x"$ac_file" != x- && { echo "$as_me:9007: creating $ac_file" >&5 |
18569462 AD |
9008 | echo "$as_me: creating $ac_file" >&6;} |
9009 | ||
9010 | # First look for the input files in the build tree, otherwise in the | |
9011 | # src tree. | |
9012 | ac_file_inputs=`IFS=: | |
9013 | for f in $ac_file_in; do | |
9014 | case $f in | |
9015 | -) echo $tmp/stdin ;; | |
1e24cc5b AD |
9016 | [\\/$]*) |
9017 | # Absolute (can't be DOS-style, as IFS=:) | |
6fc74234 | 9018 | test -f "$f" || { { echo "$as_me:9018: error: cannot find input file: $f" >&5 |
18569462 AD |
9019 | echo "$as_me: error: cannot find input file: $f" >&2;} |
9020 | { (exit 1); exit 1; }; } | |
9021 | echo $f;; | |
9022 | *) # Relative | |
9023 | if test -f "$f"; then | |
9024 | # Build tree | |
9025 | echo $f | |
9026 | elif test -f "$srcdir/$f"; then | |
9027 | # Source tree | |
9028 | echo $srcdir/$f | |
9029 | else | |
9030 | # /dev/null tree | |
6fc74234 | 9031 | { { echo "$as_me:9031: error: cannot find input file: $f" >&5 |
18569462 AD |
9032 | echo "$as_me: error: cannot find input file: $f" >&2;} |
9033 | { (exit 1); exit 1; }; } | |
9034 | fi;; | |
9035 | esac | |
9036 | done` || { (exit 1); exit 1; } | |
9037 | # Remove the trailing spaces. | |
9038 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
9039 | ||
6fc74234 | 9040 | _ACEOF |
18569462 AD |
9041 | |
9042 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
9043 | # `conftest.undefs', that substitutes the proper values into | |
9044 | # config.h.in to produce config.h. The first handles `#define' | |
9045 | # templates, and the second `#undef' templates. | |
9046 | # And first: Protect against being on the right side of a sed subst in | |
9047 | # config.status. Protect against being in an unquoted here document | |
9048 | # in config.status. | |
9049 | rm -f conftest.defines conftest.undefs | |
9050 | # Using a here document instead of a string reduces the quoting nightmare. | |
9051 | # Putting comments in sed scripts is not portable. | |
9052 | # | |
9053 | # `end' is used to avoid that the second main sed command (meant for | |
9054 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
9055 | # See the Autoconf documentation for `clear'. | |
6fc74234 | 9056 | cat >confdef2sed.sed <<\_ACEOF |
18569462 AD |
9057 | s/[\\&,]/\\&/g |
9058 | s,[\\$`],\\&,g | |
9059 | t clear | |
9060 | : clear | |
9061 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
9062 | t end | |
9063 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
9064 | : end | |
6fc74234 | 9065 | _ACEOF |
18569462 AD |
9066 | # If some macros were called several times there might be several times |
9067 | # the same #defines, which is useless. Nevertheless, we may not want to | |
9068 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
9069 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
9070 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
9071 | rm -f confdef2sed.sed | |
705db0b5 AD |
9072 | |
9073 | # This sed command replaces #undef with comments. This is necessary, for | |
9074 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9075 | # on some systems where configure will not decide to define it. | |
6fc74234 | 9076 | cat >>conftest.undefs <<\_ACEOF |
18569462 | 9077 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
6fc74234 | 9078 | _ACEOF |
705db0b5 | 9079 | |
18569462 AD |
9080 | # Break up conftest.defines because some shells have a limit on the size |
9081 | # of here documents, and old seds have small limits too (100 cmds). | |
9082 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
9083 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
9084 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
9085 | echo ' :' >>$CONFIG_STATUS | |
9086 | rm -f conftest.tail | |
9087 | while grep . conftest.defines >/dev/null | |
9088 | do | |
9089 | # Write a limited-size here document to $tmp/defines.sed. | |
9090 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
9091 | # Speed up: don't consider the non `#define' lines. | |
9092 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
9093 | # Work around the forget-to-reset-the-flag bug. | |
9094 | echo 't clr' >>$CONFIG_STATUS | |
9095 | echo ': clr' >>$CONFIG_STATUS | |
9096 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
9097 | echo 'CEOF | |
9098 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
9099 | rm -f $tmp/in | |
9100 | mv $tmp/out $tmp/in | |
9101 | ' >>$CONFIG_STATUS | |
9102 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
9103 | rm -f conftest.defines | |
9104 | mv conftest.tail conftest.defines | |
9105 | done | |
9106 | rm -f conftest.defines | |
9107 | echo ' fi # egrep' >>$CONFIG_STATUS | |
9108 | echo >>$CONFIG_STATUS | |
705db0b5 | 9109 | |
18569462 AD |
9110 | # Break up conftest.undefs because some shells have a limit on the size |
9111 | # of here documents, and old seds have small limits too (100 cmds). | |
9112 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
705db0b5 | 9113 | rm -f conftest.tail |
18569462 | 9114 | while grep . conftest.undefs >/dev/null |
705db0b5 | 9115 | do |
18569462 AD |
9116 | # Write a limited-size here document to $tmp/undefs.sed. |
9117 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
9118 | # Speed up: don't consider the non `#undef' | |
9119 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
9120 | # Work around the forget-to-reset-the-flag bug. | |
9121 | echo 't clr' >>$CONFIG_STATUS | |
9122 | echo ': clr' >>$CONFIG_STATUS | |
9123 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
705db0b5 | 9124 | echo 'CEOF |
18569462 AD |
9125 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
9126 | rm -f $tmp/in | |
9127 | mv $tmp/out $tmp/in | |
9128 | ' >>$CONFIG_STATUS | |
9129 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
9130 | rm -f conftest.undefs | |
9131 | mv conftest.tail conftest.undefs | |
705db0b5 | 9132 | done |
18569462 AD |
9133 | rm -f conftest.undefs |
9134 | ||
6fc74234 | 9135 | cat >>$CONFIG_STATUS <<\_ACEOF |
18569462 AD |
9136 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
9137 | # use $as_me), people would be surprised to read: | |
9138 | # /* config.h. Generated automatically by config.status. */ | |
9139 | if test x"$ac_file" = x-; then | |
9140 | echo "/* Generated automatically by configure. */" >$tmp/config.h | |
705db0b5 | 9141 | else |
18569462 AD |
9142 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
9143 | fi | |
9144 | cat $tmp/in >>$tmp/config.h | |
9145 | rm -f $tmp/in | |
9146 | if test x"$ac_file" != x-; then | |
9147 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
6fc74234 | 9148 | { echo "$as_me:9148: $ac_file is unchanged" >&5 |
18569462 AD |
9149 | echo "$as_me: $ac_file is unchanged" >&6;} |
9150 | else | |
9151 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9152 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9153 | X"$ac_file" : 'X\(//\)$' \| \ | |
9154 | X"$ac_file" : 'X\(/\)' \| \ | |
9155 | . : '\(.\)' 2>/dev/null || | |
9156 | echo X"$ac_file" | | |
9157 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9158 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9159 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9160 | /^X\(\/\).*/{ s//\1/; q; } | |
9161 | s/.*/./; q'` | |
6fc74234 | 9162 | { case "$ac_dir" in |
18569462 AD |
9163 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
9164 | *) as_incr_dir=.;; | |
9165 | esac | |
9166 | as_dummy="$ac_dir" | |
9167 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
9168 | case $as_mkdir_dir in | |
9169 | # Skip DOS drivespec | |
9170 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
9171 | *) | |
9172 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
6fc74234 AD |
9173 | test -d "$as_incr_dir" || |
9174 | mkdir "$as_incr_dir" || | |
9175 | { { echo "$as_me:9175: error: cannot create \"$ac_dir\"" >&5 | |
9176 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
9177 | { (exit 1); exit 1; }; } | |
18569462 AD |
9178 | ;; |
9179 | esac | |
9180 | done; } | |
9181 | ||
18569462 AD |
9182 | rm -f $ac_file |
9183 | mv $tmp/config.h $ac_file | |
705db0b5 | 9184 | fi |
18569462 AD |
9185 | else |
9186 | cat $tmp/config.h | |
9187 | rm -f $tmp/config.h | |
705db0b5 | 9188 | fi |
6fc74234 AD |
9189 | # Run the commands associated with the file. |
9190 | case $ac_file in | |
9191 | config.h ) # update the timestamp | |
9192 | echo timestamp >"./stamp-h1" | |
9193 | ;; | |
9194 | esac | |
18569462 | 9195 | done |
6fc74234 AD |
9196 | _ACEOF |
9197 | cat >>$CONFIG_STATUS <<\_ACEOF | |
705db0b5 | 9198 | |
18569462 AD |
9199 | # |
9200 | # CONFIG_COMMANDS section. | |
9201 | # | |
9202 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
9203 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
9204 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
6fc74234 AD |
9205 | ac_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9206 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
9207 | X"$ac_dest" : 'X\(//\)$' \| \ | |
9208 | X"$ac_dest" : 'X\(/\)' \| \ | |
9209 | . : '\(.\)' 2>/dev/null || | |
9210 | echo X"$ac_dest" | | |
9211 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9212 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9213 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9214 | /^X\(\/\).*/{ s//\1/; q; } | |
9215 | s/.*/./; q'` | |
9216 | if test "$ac_dir" != .; then | |
9217 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'` | |
9218 | # A "../" for each directory in $ac_dir_suffix. | |
9219 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | |
9220 | else | |
9221 | ac_dir_suffix= ac_top_builddir= | |
9222 | fi | |
9223 | ||
9224 | case $srcdir in | |
9225 | .) # No --srcdir option. We are building in place. | |
9226 | ac_srcdir=. | |
9227 | if test -z "$ac_top_builddir"; then | |
9228 | ac_top_srcdir=. | |
9229 | else | |
9230 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9231 | fi ;; | |
9232 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9233 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9234 | ac_top_srcdir=$srcdir ;; | |
9235 | *) # Relative path. | |
9236 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
9237 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9238 | esac | |
705db0b5 | 9239 | |
6fc74234 AD |
9240 | { echo "$as_me:9240: executing $ac_dest commands" >&5 |
9241 | echo "$as_me: executing $ac_dest commands" >&6;} | |
18569462 | 9242 | case $ac_dest in |
6fc74234 AD |
9243 | default-1 ) |
9244 | test x"$AMDEP_TRUE" != x"" || | |
9245 | for mf in $CONFIG_FILES; do | |
9246 | case "$mf" in | |
9247 | Makefile) dirpart=.;; | |
9248 | */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; | |
9249 | *) continue;; | |
9250 | esac | |
9251 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
9252 | # Extract the definition of DEP_FILES from the Makefile without | |
9253 | # running `make'. | |
9254 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
9255 | test -z "$DEPDIR" && continue | |
9256 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9257 | U=`sed -n -e '/^U = / s///p' < "$mf"` | |
9258 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
9259 | # We invoke sed twice because it is the simplest approach to | |
9260 | # changing $(DEPDIR) to its actual value in the expansion. | |
9261 | for file in `sed -n -e ' | |
9262 | /^DEP_FILES = .*\\\\$/ { | |
9263 | s/^DEP_FILES = // | |
9264 | :loop | |
9265 | s/\\\\$// | |
9266 | p | |
9267 | n | |
9268 | /\\\\$/ b loop | |
9269 | p | |
9270 | } | |
9271 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
9272 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9273 | # Make sure the directory exists. | |
9274 | test -f "$dirpart/$file" && continue | |
9275 | fdir=`echo "$file" | sed -e 's|/[^/]*$||'` | |
9276 | $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 | |
9277 | # echo "creating $dirpart/$file" | |
9278 | echo '# dummy' > "$dirpart/$file" | |
9279 | done | |
9280 | done | |
9281 | ;; | |
1e24cc5b AD |
9282 | default-2 ) for ac_file in $CONFIG_FILES; do |
9283 | # Support "outfile[:infile[:infile...]]" | |
9284 | case "$ac_file" in | |
9285 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9286 | esac | |
9287 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
9288 | case "$ac_file" in */Makefile.in) | |
9289 | # Adjust a relative srcdir. | |
9290 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
9291 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
9292 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
459dd1a6 AD |
9293 | # In autoconf-2.13 it is called $ac_given_srcdir. |
9294 | # In autoconf-2.50 it is called $srcdir. | |
1e24cc5b AD |
9295 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
9296 | case "$ac_given_srcdir" in | |
9297 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
9298 | /*) top_srcdir="$ac_given_srcdir" ;; | |
9299 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9300 | esac | |
9301 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
9302 | rm -f "$ac_dir/POTFILES" | |
9303 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
9304 | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES" | |
9305 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
9306 | sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
9307 | fi | |
9308 | ;; | |
9309 | esac | |
9310 | done ;; | |
18569462 AD |
9311 | esac |
9312 | done | |
6fc74234 | 9313 | _ACEOF |
18569462 | 9314 | |
6fc74234 | 9315 | cat >>$CONFIG_STATUS <<\_ACEOF |
705db0b5 | 9316 | |
5141b016 | 9317 | { (exit 0); exit 0; } |
6fc74234 | 9318 | _ACEOF |
705db0b5 | 9319 | chmod +x $CONFIG_STATUS |
18569462 AD |
9320 | ac_clean_files=$ac_clean_files_save |
9321 | ||
1e24cc5b AD |
9322 | # configure is writing to config.log, and then calls config.status. |
9323 | # config.status does its own redirection, appending to config.log. | |
9324 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9325 | # by configure, so config.status won't be able to write to it; its | |
9326 | # output is simply discarded. So we exec the FD to /dev/null, | |
9327 | # effectively closing config.log, so it can be properly (re)opened and | |
9328 | # appended to by config.status. When coming back to configure, we | |
9329 | # need to make the FD available again. | |
9330 | if test "$no_create" != yes; then | |
9331 | ac_cs_success=: | |
9332 | exec 5>/dev/null | |
9333 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
9334 | exec 5>>config.log | |
9335 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9336 | # would make configure fail if this is the last instruction. | |
9337 | $ac_cs_success || { (exit 1); exit 1; } | |
9338 | fi |