]>
Commit | Line | Data |
---|---|---|
705db0b5 | 1 | #! /bin/sh |
705db0b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
84163231 | 3 | # Generated by Autoconf 2.52 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 | ||
18569462 AD |
25 | # Be Bourne compatible |
26 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
27 | emulate sh | |
28 | NULLCMD=: | |
29 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
30 | set -o posix | |
31 | fi | |
32 | ||
1e24cc5b AD |
33 | # Name of the executable. |
34 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
35 | ||
18569462 AD |
36 | if expr a : '\(a\)' >/dev/null 2>&1; then |
37 | as_expr=expr | |
38 | else | |
39 | as_expr=false | |
40 | fi | |
41 | ||
5141b016 AD |
42 | rm -f conf$$ conf$$.exe conf$$.file |
43 | echo >conf$$.file | |
44 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18569462 AD |
45 | # We could just check for DJGPP; but this test a) works b) is more generic |
46 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
5141b016 | 47 | if test -f conf$$.exe; then |
18569462 AD |
48 | # Don't use ln at all; we don't have any links |
49 | as_ln_s='cp -p' | |
50 | else | |
51 | as_ln_s='ln -s' | |
52 | fi | |
5141b016 | 53 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18569462 AD |
54 | as_ln_s=ln |
55 | else | |
56 | as_ln_s='cp -p' | |
57 | fi | |
5141b016 | 58 | rm -f conf$$ conf$$.exe conf$$.file |
18569462 | 59 | |
5141b016 | 60 | as_executable_p="test -f" |
18569462 AD |
61 | |
62 | # Support unset when possible. | |
63 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
64 | as_unset=unset | |
65 | else | |
66 | as_unset=false | |
67 | fi | |
68 | ||
69 | # NLS nuisances. | |
70 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
71 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
72 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
73 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
74 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
75 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
76 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
77 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
78 | ||
79 | # IFS | |
80 | # We need space, tab and new line, in precisely that order. | |
81 | as_nl=' | |
82 | ' | |
83 | IFS=" $as_nl" | |
84 | ||
85 | # CDPATH. | |
86 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
87 | ||
88 | # Name of the host. | |
89 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
90 | # so uname gets run too. | |
91 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
92 | ||
18569462 AD |
93 | exec 6>&1 |
94 | ||
95 | # | |
96 | # Initializations. | |
97 | # | |
705db0b5 | 98 | ac_default_prefix=/usr/local |
18569462 AD |
99 | cross_compiling=no |
100 | subdirs= | |
101 | MFLAGS= MAKEFLAGS= | |
102 | SHELL=${CONFIG_SHELL-/bin/sh} | |
103 | ||
104 | # Maximum number of lines to put in a shell here document. | |
105 | # This variable seems obsolete. It should probably be removed, and | |
106 | # only ac_max_sed_lines should be used. | |
107 | : ${ac_max_here_lines=38} | |
108 | ||
18569462 AD |
109 | # Factoring default headers for most tests. |
110 | ac_includes_default="\ | |
111 | #include <stdio.h> | |
459dd1a6 AD |
112 | #if HAVE_SYS_TYPES_H |
113 | # include <sys/types.h> | |
114 | #endif | |
115 | #if HAVE_SYS_STAT_H | |
116 | # include <sys/stat.h> | |
117 | #endif | |
18569462 AD |
118 | #if STDC_HEADERS |
119 | # include <stdlib.h> | |
120 | # include <stddef.h> | |
121 | #else | |
122 | # if HAVE_STDLIB_H | |
123 | # include <stdlib.h> | |
124 | # endif | |
125 | #endif | |
126 | #if HAVE_STRING_H | |
127 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
128 | # include <memory.h> | |
129 | # endif | |
130 | # include <string.h> | |
459dd1a6 AD |
131 | #endif |
132 | #if HAVE_STRINGS_H | |
133 | # include <strings.h> | |
18569462 AD |
134 | #endif |
135 | #if HAVE_INTTYPES_H | |
136 | # include <inttypes.h> | |
459dd1a6 AD |
137 | #else |
138 | # if HAVE_STDINT_H | |
139 | # include <stdint.h> | |
140 | # endif | |
18569462 AD |
141 | #endif |
142 | #if HAVE_UNISTD_H | |
143 | # include <unistd.h> | |
144 | #endif" | |
705db0b5 AD |
145 | |
146 | # Initialize some variables set by options. | |
18569462 AD |
147 | ac_init_help= |
148 | ac_init_version=false | |
705db0b5 AD |
149 | # The variables have the same names as the options, with |
150 | # dashes changed to underlines. | |
18569462 | 151 | cache_file=/dev/null |
705db0b5 | 152 | exec_prefix=NONE |
705db0b5 | 153 | no_create= |
705db0b5 AD |
154 | no_recursion= |
155 | prefix=NONE | |
156 | program_prefix=NONE | |
157 | program_suffix=NONE | |
158 | program_transform_name=s,x,x, | |
159 | silent= | |
160 | site= | |
161 | srcdir= | |
705db0b5 AD |
162 | verbose= |
163 | x_includes=NONE | |
164 | x_libraries=NONE | |
18569462 AD |
165 | |
166 | # Installation directory options. | |
167 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
168 | # and all the variables that are supposed to be based on exec_prefix | |
169 | # by default will actually change. | |
170 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
705db0b5 AD |
171 | bindir='${exec_prefix}/bin' |
172 | sbindir='${exec_prefix}/sbin' | |
173 | libexecdir='${exec_prefix}/libexec' | |
174 | datadir='${prefix}/share' | |
175 | sysconfdir='${prefix}/etc' | |
176 | sharedstatedir='${prefix}/com' | |
177 | localstatedir='${prefix}/var' | |
178 | libdir='${exec_prefix}/lib' | |
179 | includedir='${prefix}/include' | |
180 | oldincludedir='/usr/include' | |
181 | infodir='${prefix}/info' | |
182 | mandir='${prefix}/man' | |
183 | ||
18569462 | 184 | # Identity of this package. |
1e24cc5b AD |
185 | PACKAGE_NAME='bison' |
186 | PACKAGE_TARNAME='bison' | |
84163231 AD |
187 | PACKAGE_VERSION='1.28c' |
188 | PACKAGE_STRING='bison 1.28c' | |
1e24cc5b | 189 | PACKAGE_BUGREPORT='bug-bison@gnu.org' |
705db0b5 AD |
190 | |
191 | ac_prev= | |
192 | for ac_option | |
193 | do | |
705db0b5 AD |
194 | # If the previous option needs an argument, assign it. |
195 | if test -n "$ac_prev"; then | |
196 | eval "$ac_prev=\$ac_option" | |
197 | ac_prev= | |
198 | continue | |
199 | fi | |
200 | ||
18569462 | 201 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
705db0b5 AD |
202 | |
203 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
204 | ||
18569462 | 205 | case $ac_option in |
705db0b5 AD |
206 | |
207 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
208 | ac_prev=bindir ;; | |
209 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
18569462 | 210 | bindir=$ac_optarg ;; |
705db0b5 AD |
211 | |
212 | -build | --build | --buil | --bui | --bu) | |
18569462 | 213 | ac_prev=build_alias ;; |
705db0b5 | 214 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
18569462 | 215 | build_alias=$ac_optarg ;; |
705db0b5 AD |
216 | |
217 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
218 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
219 | ac_prev=cache_file ;; | |
220 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
221 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
18569462 AD |
222 | cache_file=$ac_optarg ;; |
223 | ||
224 | --config-cache | -C) | |
225 | cache_file=config.cache ;; | |
705db0b5 AD |
226 | |
227 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
228 | ac_prev=datadir ;; | |
229 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
230 | | --da=*) | |
18569462 | 231 | datadir=$ac_optarg ;; |
705db0b5 AD |
232 | |
233 | -disable-* | --disable-*) | |
18569462 | 234 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
705db0b5 | 235 | # Reject names that are not valid shell variable names. |
459dd1a6 | 236 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1e24cc5b | 237 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
18569462 AD |
238 | { (exit 1); exit 1; }; } |
239 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
240 | eval "enable_$ac_feature=no" ;; | |
705db0b5 AD |
241 | |
242 | -enable-* | --enable-*) | |
18569462 | 243 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
705db0b5 | 244 | # Reject names that are not valid shell variable names. |
459dd1a6 | 245 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1e24cc5b | 246 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
18569462 AD |
247 | { (exit 1); exit 1; }; } |
248 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
249 | case $ac_option in | |
250 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
705db0b5 AD |
251 | *) ac_optarg=yes ;; |
252 | esac | |
18569462 | 253 | eval "enable_$ac_feature='$ac_optarg'" ;; |
705db0b5 AD |
254 | |
255 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
256 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
257 | | --exec | --exe | --ex) | |
258 | ac_prev=exec_prefix ;; | |
259 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
260 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
261 | | --exec=* | --exe=* | --ex=*) | |
18569462 | 262 | exec_prefix=$ac_optarg ;; |
705db0b5 AD |
263 | |
264 | -gas | --gas | --ga | --g) | |
265 | # Obsolete; use --with-gas. | |
266 | with_gas=yes ;; | |
267 | ||
18569462 AD |
268 | -help | --help | --hel | --he | -h) |
269 | ac_init_help=long ;; | |
270 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
271 | ac_init_help=recursive ;; | |
272 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
273 | ac_init_help=short ;; | |
705db0b5 AD |
274 | |
275 | -host | --host | --hos | --ho) | |
18569462 | 276 | ac_prev=host_alias ;; |
705db0b5 | 277 | -host=* | --host=* | --hos=* | --ho=*) |
18569462 | 278 | host_alias=$ac_optarg ;; |
705db0b5 AD |
279 | |
280 | -includedir | --includedir | --includedi | --included | --include \ | |
281 | | --includ | --inclu | --incl | --inc) | |
282 | ac_prev=includedir ;; | |
283 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
284 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
18569462 | 285 | includedir=$ac_optarg ;; |
705db0b5 AD |
286 | |
287 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
288 | ac_prev=infodir ;; | |
289 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
18569462 | 290 | infodir=$ac_optarg ;; |
705db0b5 AD |
291 | |
292 | -libdir | --libdir | --libdi | --libd) | |
293 | ac_prev=libdir ;; | |
294 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
18569462 | 295 | libdir=$ac_optarg ;; |
705db0b5 AD |
296 | |
297 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
298 | | --libexe | --libex | --libe) | |
299 | ac_prev=libexecdir ;; | |
300 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
301 | | --libexe=* | --libex=* | --libe=*) | |
18569462 | 302 | libexecdir=$ac_optarg ;; |
705db0b5 AD |
303 | |
304 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
305 | | --localstate | --localstat | --localsta | --localst \ | |
306 | | --locals | --local | --loca | --loc | --lo) | |
307 | ac_prev=localstatedir ;; | |
308 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
309 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
310 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
18569462 | 311 | localstatedir=$ac_optarg ;; |
705db0b5 AD |
312 | |
313 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
314 | ac_prev=mandir ;; | |
315 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
18569462 | 316 | mandir=$ac_optarg ;; |
705db0b5 AD |
317 | |
318 | -nfp | --nfp | --nf) | |
319 | # Obsolete; use --without-fp. | |
320 | with_fp=no ;; | |
321 | ||
322 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
323 | | --no-cr | --no-c) | |
324 | no_create=yes ;; | |
325 | ||
326 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
327 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
328 | no_recursion=yes ;; | |
329 | ||
330 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
331 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
332 | | --oldin | --oldi | --old | --ol | --o) | |
333 | ac_prev=oldincludedir ;; | |
334 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
335 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
336 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
18569462 | 337 | oldincludedir=$ac_optarg ;; |
705db0b5 AD |
338 | |
339 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
340 | ac_prev=prefix ;; | |
341 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
18569462 | 342 | prefix=$ac_optarg ;; |
705db0b5 AD |
343 | |
344 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
345 | | --program-pre | --program-pr | --program-p) | |
346 | ac_prev=program_prefix ;; | |
347 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
348 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
18569462 | 349 | program_prefix=$ac_optarg ;; |
705db0b5 AD |
350 | |
351 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
352 | | --program-suf | --program-su | --program-s) | |
353 | ac_prev=program_suffix ;; | |
354 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
355 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
18569462 | 356 | program_suffix=$ac_optarg ;; |
705db0b5 AD |
357 | |
358 | -program-transform-name | --program-transform-name \ | |
359 | | --program-transform-nam | --program-transform-na \ | |
360 | | --program-transform-n | --program-transform- \ | |
361 | | --program-transform | --program-transfor \ | |
362 | | --program-transfo | --program-transf \ | |
363 | | --program-trans | --program-tran \ | |
364 | | --progr-tra | --program-tr | --program-t) | |
365 | ac_prev=program_transform_name ;; | |
366 | -program-transform-name=* | --program-transform-name=* \ | |
367 | | --program-transform-nam=* | --program-transform-na=* \ | |
368 | | --program-transform-n=* | --program-transform-=* \ | |
369 | | --program-transform=* | --program-transfor=* \ | |
370 | | --program-transfo=* | --program-transf=* \ | |
371 | | --program-trans=* | --program-tran=* \ | |
372 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
18569462 | 373 | program_transform_name=$ac_optarg ;; |
705db0b5 AD |
374 | |
375 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
376 | | -silent | --silent | --silen | --sile | --sil) | |
377 | silent=yes ;; | |
378 | ||
379 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
380 | ac_prev=sbindir ;; | |
381 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
382 | | --sbi=* | --sb=*) | |
18569462 | 383 | sbindir=$ac_optarg ;; |
705db0b5 AD |
384 | |
385 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
386 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
387 | | --sharedst | --shareds | --shared | --share | --shar \ | |
388 | | --sha | --sh) | |
389 | ac_prev=sharedstatedir ;; | |
390 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
391 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
392 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
393 | | --sha=* | --sh=*) | |
18569462 | 394 | sharedstatedir=$ac_optarg ;; |
705db0b5 AD |
395 | |
396 | -site | --site | --sit) | |
397 | ac_prev=site ;; | |
398 | -site=* | --site=* | --sit=*) | |
18569462 | 399 | site=$ac_optarg ;; |
705db0b5 AD |
400 | |
401 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
402 | ac_prev=srcdir ;; | |
403 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18569462 | 404 | srcdir=$ac_optarg ;; |
705db0b5 AD |
405 | |
406 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
407 | | --syscon | --sysco | --sysc | --sys | --sy) | |
408 | ac_prev=sysconfdir ;; | |
409 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
410 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
18569462 | 411 | sysconfdir=$ac_optarg ;; |
705db0b5 AD |
412 | |
413 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
18569462 | 414 | ac_prev=target_alias ;; |
705db0b5 | 415 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
18569462 | 416 | target_alias=$ac_optarg ;; |
705db0b5 AD |
417 | |
418 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
419 | verbose=yes ;; | |
420 | ||
18569462 AD |
421 | -version | --version | --versio | --versi | --vers | -V) |
422 | ac_init_version=: ;; | |
705db0b5 AD |
423 | |
424 | -with-* | --with-*) | |
18569462 | 425 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
705db0b5 | 426 | # Reject names that are not valid shell variable names. |
459dd1a6 | 427 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1e24cc5b | 428 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
18569462 | 429 | { (exit 1); exit 1; }; } |
705db0b5 | 430 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
18569462 AD |
431 | case $ac_option in |
432 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
705db0b5 AD |
433 | *) ac_optarg=yes ;; |
434 | esac | |
18569462 | 435 | eval "with_$ac_package='$ac_optarg'" ;; |
705db0b5 AD |
436 | |
437 | -without-* | --without-*) | |
18569462 | 438 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
705db0b5 | 439 | # Reject names that are not valid shell variable names. |
459dd1a6 | 440 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1e24cc5b | 441 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
18569462 AD |
442 | { (exit 1); exit 1; }; } |
443 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
444 | eval "with_$ac_package=no" ;; | |
705db0b5 AD |
445 | |
446 | --x) | |
447 | # Obsolete; use --with-x. | |
448 | with_x=yes ;; | |
449 | ||
450 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
451 | | --x-incl | --x-inc | --x-in | --x-i) | |
452 | ac_prev=x_includes ;; | |
453 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
454 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
18569462 | 455 | x_includes=$ac_optarg ;; |
705db0b5 AD |
456 | |
457 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
458 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
459 | ac_prev=x_libraries ;; | |
460 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
461 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
18569462 | 462 | x_libraries=$ac_optarg ;; |
705db0b5 | 463 | |
1e24cc5b AD |
464 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
465 | Try \`$0 --help' for more information." >&2 | |
18569462 | 466 | { (exit 1); exit 1; }; } |
705db0b5 AD |
467 | ;; |
468 | ||
18569462 AD |
469 | *=*) |
470 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
471 | # Reject names that are not valid shell variable names. | |
459dd1a6 | 472 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1e24cc5b | 473 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
18569462 AD |
474 | { (exit 1); exit 1; }; } |
475 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
476 | eval "$ac_envvar='$ac_optarg'" | |
477 | export $ac_envvar ;; | |
478 | ||
705db0b5 | 479 | *) |
18569462 | 480 | # FIXME: should be removed in autoconf 3.0. |
1e24cc5b | 481 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
459dd1a6 | 482 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1e24cc5b | 483 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
18569462 | 484 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
705db0b5 AD |
485 | ;; |
486 | ||
487 | esac | |
488 | done | |
489 | ||
490 | if test -n "$ac_prev"; then | |
18569462 | 491 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1e24cc5b | 492 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
18569462 | 493 | { (exit 1); exit 1; }; } |
705db0b5 | 494 | fi |
705db0b5 | 495 | |
459dd1a6 AD |
496 | # Be sure to have absolute paths. |
497 | for ac_var in exec_prefix prefix | |
498 | do | |
499 | eval ac_val=$`echo $ac_var` | |
500 | case $ac_val in | |
501 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
502 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
503 | { (exit 1); exit 1; }; };; | |
504 | esac | |
505 | done | |
506 | ||
18569462 AD |
507 | # Be sure to have absolute paths. |
508 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
459dd1a6 | 509 | localstatedir libdir includedir oldincludedir infodir mandir |
705db0b5 | 510 | do |
18569462 AD |
511 | eval ac_val=$`echo $ac_var` |
512 | case $ac_val in | |
513 | [\\/$]* | ?:[\\/]* ) ;; | |
1e24cc5b | 514 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
18569462 | 515 | { (exit 1); exit 1; }; };; |
705db0b5 AD |
516 | esac |
517 | done | |
518 | ||
18569462 AD |
519 | # There might be people who depend on the old broken behavior: `$host' |
520 | # used to hold the argument of --host etc. | |
521 | build=$build_alias | |
522 | host=$host_alias | |
523 | target=$target_alias | |
524 | ||
525 | # FIXME: should be removed in autoconf 3.0. | |
526 | if test "x$host_alias" != x; then | |
527 | if test "x$build_alias" = x; then | |
528 | cross_compiling=maybe | |
1e24cc5b AD |
529 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
530 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
18569462 AD |
531 | elif test "x$build_alias" != "x$host_alias"; then |
532 | cross_compiling=yes | |
533 | fi | |
534 | fi | |
705db0b5 | 535 | |
18569462 AD |
536 | ac_tool_prefix= |
537 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705db0b5 | 538 | |
18569462 | 539 | test "$silent" = yes && exec 6>/dev/null |
705db0b5 AD |
540 | |
541 | # Find the source files, if location was not specified. | |
542 | if test -z "$srcdir"; then | |
543 | ac_srcdir_defaulted=yes | |
544 | # Try the directory containing this script, then its parent. | |
545 | ac_prog=$0 | |
1e24cc5b | 546 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
705db0b5 AD |
547 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
548 | srcdir=$ac_confdir | |
549 | if test ! -r $srcdir/$ac_unique_file; then | |
550 | srcdir=.. | |
551 | fi | |
552 | else | |
553 | ac_srcdir_defaulted=no | |
554 | fi | |
555 | if test ! -r $srcdir/$ac_unique_file; then | |
556 | if test "$ac_srcdir_defaulted" = yes; then | |
1e24cc5b | 557 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
18569462 | 558 | { (exit 1); exit 1; }; } |
705db0b5 | 559 | else |
1e24cc5b | 560 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
18569462 | 561 | { (exit 1); exit 1; }; } |
705db0b5 AD |
562 | fi |
563 | fi | |
1e24cc5b | 564 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
18569462 AD |
565 | ac_env_build_alias_set=${build_alias+set} |
566 | ac_env_build_alias_value=$build_alias | |
567 | ac_cv_env_build_alias_set=${build_alias+set} | |
568 | ac_cv_env_build_alias_value=$build_alias | |
569 | ac_env_host_alias_set=${host_alias+set} | |
570 | ac_env_host_alias_value=$host_alias | |
571 | ac_cv_env_host_alias_set=${host_alias+set} | |
572 | ac_cv_env_host_alias_value=$host_alias | |
573 | ac_env_target_alias_set=${target_alias+set} | |
574 | ac_env_target_alias_value=$target_alias | |
575 | ac_cv_env_target_alias_set=${target_alias+set} | |
576 | ac_cv_env_target_alias_value=$target_alias | |
577 | ac_env_CC_set=${CC+set} | |
578 | ac_env_CC_value=$CC | |
579 | ac_cv_env_CC_set=${CC+set} | |
580 | ac_cv_env_CC_value=$CC | |
581 | ac_env_CFLAGS_set=${CFLAGS+set} | |
582 | ac_env_CFLAGS_value=$CFLAGS | |
583 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
584 | ac_cv_env_CFLAGS_value=$CFLAGS | |
585 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
586 | ac_env_LDFLAGS_value=$LDFLAGS | |
587 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
588 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
18569462 AD |
589 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
590 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
591 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
592 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
1e24cc5b AD |
593 | ac_env_CPP_set=${CPP+set} |
594 | ac_env_CPP_value=$CPP | |
595 | ac_cv_env_CPP_set=${CPP+set} | |
596 | ac_cv_env_CPP_value=$CPP | |
18569462 AD |
597 | |
598 | # | |
599 | # Report the --help message. | |
600 | # | |
601 | if test "$ac_init_help" = "long"; then | |
602 | # Omit some internal or obsolete options to make the list less imposing. | |
603 | # This message is too long to be a string in the A/UX 3.1 sh. | |
604 | cat <<EOF | |
84163231 | 605 | \`configure' configures bison 1.28c to adapt to many kinds of systems. |
18569462 AD |
606 | |
607 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
608 | ||
609 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
610 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
611 | ||
612 | Defaults for the options are specified in brackets. | |
613 | ||
614 | Configuration: | |
615 | -h, --help display this help and exit | |
616 | --help=short display options specific to this package | |
617 | --help=recursive display the short help of all the included packages | |
618 | -V, --version display version information and exit | |
619 | -q, --quiet, --silent do not print \`checking...' messages | |
620 | --cache-file=FILE cache test results in FILE [disabled] | |
621 | -C, --config-cache alias for \`--cache-file=config.cache' | |
622 | -n, --no-create do not create output files | |
623 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
624 | ||
625 | EOF | |
626 | ||
627 | cat <<EOF | |
628 | Installation directories: | |
629 | --prefix=PREFIX install architecture-independent files in PREFIX | |
630 | [$ac_default_prefix] | |
631 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
632 | [PREFIX] | |
633 | ||
634 | By default, \`make install' will install all the files in | |
635 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
636 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
637 | for instance \`--prefix=\$HOME'. | |
638 | ||
639 | For better control, use the options below. | |
640 | ||
641 | Fine tuning of the installation directories: | |
642 | --bindir=DIR user executables [EPREFIX/bin] | |
643 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
644 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
645 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
646 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
647 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
648 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
649 | --libdir=DIR object code libraries [EPREFIX/lib] | |
650 | --includedir=DIR C header files [PREFIX/include] | |
651 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
652 | --infodir=DIR info documentation [PREFIX/info] | |
653 | --mandir=DIR man documentation [PREFIX/man] | |
654 | EOF | |
655 | ||
656 | cat <<\EOF | |
657 | ||
658 | Program names: | |
659 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
660 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
661 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1e24cc5b AD |
662 | |
663 | System types: | |
664 | --build=BUILD configure for building on BUILD [guessed] | |
665 | --host=HOST build programs to run on HOST [BUILD] | |
18569462 AD |
666 | EOF |
667 | fi | |
668 | ||
669 | if test -n "$ac_init_help"; then | |
1e24cc5b | 670 | case $ac_init_help in |
84163231 | 671 | short | recursive ) echo "Configuration of bison 1.28c:";; |
1e24cc5b | 672 | esac |
18569462 AD |
673 | cat <<\EOF |
674 | ||
675 | Optional Features: | |
676 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
677 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
678 | --enable-gcc-warnings turn on lots of GCC warnings (not recommended) | |
679 | --disable-nls do not use Native Language Support | |
680 | ||
681 | Optional Packages: | |
682 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
683 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1e24cc5b | 684 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib |
18569462 | 685 | --with-included-gettext use the GNU gettext library included here |
18569462 AD |
686 | |
687 | Some influential environment variables: | |
688 | CC C compiler command | |
689 | CFLAGS C compiler flags | |
690 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
691 | nonstandard directory <lib dir> | |
18569462 AD |
692 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
693 | headers in a nonstandard directory <include dir> | |
1e24cc5b | 694 | CPP C preprocessor |
18569462 AD |
695 | |
696 | Use these variables to override the choices made by `configure' or to help | |
697 | it to find libraries and programs with nonstandard names/locations. | |
698 | ||
1e24cc5b | 699 | Report bugs to <bug-bison@gnu.org>. |
18569462 AD |
700 | EOF |
701 | fi | |
702 | ||
703 | if test "$ac_init_help" = "recursive"; then | |
704 | # If there are subdirs, report their specific --help. | |
705 | ac_popdir=`pwd` | |
706 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
707 | cd $ac_subdir | |
708 | # A "../" for each directory in /$ac_subdir. | |
709 | ac_dots=`echo $ac_subdir | | |
710 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
711 | ||
712 | case $srcdir in | |
713 | .) # No --srcdir option. We are building in place. | |
714 | ac_sub_srcdir=$srcdir ;; | |
715 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
716 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
717 | *) # Relative path. | |
718 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
719 | esac | |
720 | ||
721 | # Check for guested configure; otherwise get Cygnus style configure. | |
722 | if test -f $ac_sub_srcdir/configure.gnu; then | |
723 | echo | |
724 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
725 | elif test -f $ac_sub_srcdir/configure; then | |
726 | echo | |
727 | $SHELL $ac_sub_srcdir/configure --help=recursive | |
728 | elif test -f $ac_sub_srcdir/configure.ac || | |
729 | test -f $ac_sub_srcdir/configure.in; then | |
730 | echo | |
731 | $ac_configure --help | |
732 | else | |
1e24cc5b | 733 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 |
18569462 AD |
734 | fi |
735 | cd $ac_popdir | |
736 | done | |
737 | fi | |
738 | ||
739 | test -n "$ac_init_help" && exit 0 | |
740 | if $ac_init_version; then | |
741 | cat <<\EOF | |
84163231 | 742 | bison configure 1.28c |
459dd1a6 | 743 | generated by GNU Autoconf 2.52 |
18569462 | 744 | |
5141b016 | 745 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
18569462 AD |
746 | Free Software Foundation, Inc. |
747 | This configure script is free software; the Free Software Foundation | |
748 | gives unlimited permission to copy, distribute and modify it. | |
749 | EOF | |
750 | exit 0 | |
751 | fi | |
1e24cc5b AD |
752 | exec 5>config.log |
753 | cat >&5 <<EOF | |
754 | This file contains any messages produced by compilers while | |
755 | running configure, to aid debugging if configure makes a mistake. | |
756 | ||
84163231 | 757 | It was created by bison $as_me 1.28c, which was |
459dd1a6 | 758 | generated by GNU Autoconf 2.52. Invocation command line was |
1e24cc5b AD |
759 | |
760 | $ $0 $@ | |
761 | ||
762 | EOF | |
763 | { | |
764 | cat <<_ASUNAME | |
765 | ## ---------- ## | |
766 | ## Platform. ## | |
767 | ## ---------- ## | |
768 | ||
769 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
770 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
771 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
772 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
773 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
774 | ||
775 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
776 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
777 | ||
778 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
779 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
780 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
781 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
782 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
783 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
784 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
785 | ||
786 | PATH = $PATH | |
787 | ||
788 | _ASUNAME | |
789 | } >&5 | |
790 | ||
791 | cat >&5 <<EOF | |
792 | ## ------------ ## | |
793 | ## Core tests. ## | |
794 | ## ------------ ## | |
795 | ||
796 | EOF | |
18569462 AD |
797 | |
798 | # Keep a trace of the command line. | |
799 | # Strip out --no-create and --no-recursion so they do not pile up. | |
800 | # Also quote any args containing shell meta-characters. | |
801 | ac_configure_args= | |
802 | ac_sep= | |
803 | for ac_arg | |
804 | do | |
805 | case $ac_arg in | |
806 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
807 | | --no-cr | --no-c) ;; | |
808 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
809 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
810 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
811 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
812 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
813 | ac_sep=" " ;; | |
814 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
815 | ac_sep=" " ;; | |
816 | esac | |
817 | # Get rid of the leading space. | |
818 | done | |
819 | ||
820 | # When interrupted or exit'd, cleanup temporary files, and complete | |
821 | # config.log. We remove comments because anyway the quotes in there | |
822 | # would cause problems or look ugly. | |
823 | trap 'exit_status=$? | |
824 | # Save into config.log some information that might help in debugging. | |
825 | echo >&5 | |
826 | echo "## ----------------- ##" >&5 | |
827 | echo "## Cache variables. ##" >&5 | |
828 | echo "## ----------------- ##" >&5 | |
829 | echo >&5 | |
830 | # The following way of writing the cache mishandles newlines in values, | |
831 | { | |
832 | (set) 2>&1 | | |
833 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
834 | *ac_space=\ *) | |
835 | sed -n \ | |
836 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
459dd1a6 | 837 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
18569462 AD |
838 | ;; |
839 | *) | |
840 | sed -n \ | |
459dd1a6 | 841 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
18569462 AD |
842 | ;; |
843 | esac; | |
844 | } >&5 | |
845 | sed "/^$/d" confdefs.h >conftest.log | |
846 | if test -s conftest.log; then | |
847 | echo >&5 | |
848 | echo "## ------------ ##" >&5 | |
849 | echo "## confdefs.h. ##" >&5 | |
850 | echo "## ------------ ##" >&5 | |
851 | echo >&5 | |
852 | cat conftest.log >&5 | |
853 | fi | |
854 | (echo; echo) >&5 | |
855 | test "$ac_signal" != 0 && | |
856 | echo "$as_me: caught signal $ac_signal" >&5 | |
857 | echo "$as_me: exit $exit_status" >&5 | |
5141b016 | 858 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && |
18569462 AD |
859 | exit $exit_status |
860 | ' 0 | |
861 | for ac_signal in 1 2 13 15; do | |
459dd1a6 | 862 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
18569462 AD |
863 | done |
864 | ac_signal=0 | |
865 | ||
866 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
867 | rm -rf conftest* confdefs.h | |
868 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
869 | echo >confdefs.h | |
705db0b5 | 870 | |
18569462 | 871 | # Let the site file select an alternate cache file if it wants to. |
705db0b5 AD |
872 | # Prefer explicitly selected file to automatically selected ones. |
873 | if test -z "$CONFIG_SITE"; then | |
874 | if test "x$prefix" != xNONE; then | |
875 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
876 | else | |
877 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
878 | fi | |
879 | fi | |
880 | for ac_site_file in $CONFIG_SITE; do | |
881 | if test -r "$ac_site_file"; then | |
459dd1a6 | 882 | { echo "$as_me:882: loading site script $ac_site_file" >&5 |
18569462 AD |
883 | echo "$as_me: loading site script $ac_site_file" >&6;} |
884 | cat "$ac_site_file" >&5 | |
705db0b5 AD |
885 | . "$ac_site_file" |
886 | fi | |
887 | done | |
888 | ||
889 | if test -r "$cache_file"; then | |
18569462 AD |
890 | # Some versions of bash will fail to source /dev/null (special |
891 | # files actually), so we avoid doing that. | |
892 | if test -f "$cache_file"; then | |
459dd1a6 | 893 | { echo "$as_me:893: loading cache $cache_file" >&5 |
18569462 AD |
894 | echo "$as_me: loading cache $cache_file" >&6;} |
895 | case $cache_file in | |
896 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
897 | *) . ./$cache_file;; | |
898 | esac | |
899 | fi | |
705db0b5 | 900 | else |
459dd1a6 | 901 | { echo "$as_me:901: creating cache $cache_file" >&5 |
18569462 AD |
902 | echo "$as_me: creating cache $cache_file" >&6;} |
903 | >$cache_file | |
904 | fi | |
905 | ||
906 | # Check that the precious variables saved in the cache have kept the same | |
907 | # value. | |
459dd1a6 | 908 | ac_cache_corrupted=false |
18569462 AD |
909 | for ac_var in `(set) 2>&1 | |
910 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
911 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
912 | eval ac_new_set=\$ac_env_${ac_var}_set | |
913 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
914 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
915 | case $ac_old_set,$ac_new_set in | |
916 | set,) | |
459dd1a6 AD |
917 | { echo "$as_me:917: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
918 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
919 | ac_cache_corrupted=: ;; | |
18569462 | 920 | ,set) |
459dd1a6 AD |
921 | { echo "$as_me:921: error: \`$ac_var' was not set in the previous run" >&5 |
922 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
923 | ac_cache_corrupted=: ;; | |
18569462 AD |
924 | ,);; |
925 | *) | |
926 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
459dd1a6 AD |
927 | { echo "$as_me:927: error: \`$ac_var' has changed since the previous run:" >&5 |
928 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
929 | { echo "$as_me:929: former value: $ac_old_val" >&5 | |
930 | echo "$as_me: former value: $ac_old_val" >&2;} | |
931 | { echo "$as_me:931: current value: $ac_new_val" >&5 | |
932 | echo "$as_me: current value: $ac_new_val" >&2;} | |
933 | ac_cache_corrupted=: | |
18569462 AD |
934 | fi;; |
935 | esac | |
459dd1a6 AD |
936 | # Pass precious variables to config.status. It doesn't matter if |
937 | # we pass some twice (in addition to the command line arguments). | |
938 | if test "$ac_new_set" = set; then | |
939 | case $ac_new_val in | |
940 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
941 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | |
942 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
943 | ;; | |
944 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | |
945 | ;; | |
946 | esac | |
947 | fi | |
18569462 | 948 | done |
459dd1a6 AD |
949 | if $ac_cache_corrupted; then |
950 | { echo "$as_me:950: error: changes in the environment can compromise the build" >&5 | |
951 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
952 | { { echo "$as_me:952: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
953 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
954 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
955 | fi |
956 | ||
957 | ac_ext=c | |
705db0b5 | 958 | ac_cpp='$CPP $CPPFLAGS' |
18569462 AD |
959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
962 | ||
963 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
964 | *c*,-n*) ECHO_N= ECHO_C=' | |
965 | ' ECHO_T=' ' ;; | |
966 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
967 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
968 | esac | |
5141b016 AD |
969 | echo "#! $SHELL" >conftest.sh |
970 | echo "exit 0" >>conftest.sh | |
971 | chmod +x conftest.sh | |
459dd1a6 | 972 | if { (echo "$as_me:972: PATH=\".;.\"; conftest.sh") >&5 |
5141b016 AD |
973 | (PATH=".;."; conftest.sh) 2>&5 |
974 | ac_status=$? | |
459dd1a6 | 975 | echo "$as_me:975: \$? = $ac_status" >&5 |
5141b016 AD |
976 | (exit $ac_status); }; then |
977 | ac_path_separator=';' | |
978 | else | |
979 | ac_path_separator=: | |
980 | fi | |
981 | PATH_SEPARATOR="$ac_path_separator" | |
982 | rm -f conftest.sh | |
705db0b5 AD |
983 | |
984 | ac_aux_dir= | |
1e24cc5b | 985 | for ac_dir in config $srcdir/config; do |
705db0b5 AD |
986 | if test -f $ac_dir/install-sh; then |
987 | ac_aux_dir=$ac_dir | |
988 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
989 | break | |
990 | elif test -f $ac_dir/install.sh; then | |
991 | ac_aux_dir=$ac_dir | |
992 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
993 | break | |
18569462 AD |
994 | elif test -f $ac_dir/shtool; then |
995 | ac_aux_dir=$ac_dir | |
996 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
997 | break | |
705db0b5 AD |
998 | fi |
999 | done | |
1000 | if test -z "$ac_aux_dir"; then | |
459dd1a6 | 1001 | { { echo "$as_me:1001: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 |
1e24cc5b | 1002 | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} |
18569462 | 1003 | { (exit 1); exit 1; }; } |
705db0b5 | 1004 | fi |
18569462 AD |
1005 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1006 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1007 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
705db0b5 AD |
1008 | |
1009 | # Find a good install program. We prefer a C program (faster), | |
1010 | # so one script is as good as another. But avoid the broken or | |
1011 | # incompatible versions: | |
1012 | # SysV /etc/install, /usr/sbin/install | |
1013 | # SunOS /usr/etc/install | |
1014 | # IRIX /sbin/install | |
1015 | # AIX /bin/install | |
18569462 | 1016 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
705db0b5 AD |
1017 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1018 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1019 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1020 | # ./install, which can be erroneously created by make from ./install.sh. | |
459dd1a6 | 1021 | echo "$as_me:1021: checking for a BSD compatible install" >&5 |
18569462 | 1022 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
705db0b5 | 1023 | if test -z "$INSTALL"; then |
18569462 AD |
1024 | if test "${ac_cv_path_install+set}" = set; then |
1025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 1026 | else |
5141b016 | 1027 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
705db0b5 | 1028 | for ac_dir in $PATH; do |
5141b016 | 1029 | IFS=$ac_save_IFS |
705db0b5 | 1030 | # Account for people who put trailing slashes in PATH elements. |
18569462 AD |
1031 | case $ac_dir/ in |
1032 | / | ./ | .// | /cC/* \ | |
1033 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
1034 | | /usr/ucb/* ) ;; | |
705db0b5 AD |
1035 | *) |
1036 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1037 | # Don't use installbsd from OSF since it installs stuff as root | |
1038 | # by default. | |
1039 | for ac_prog in ginstall scoinst install; do | |
5141b016 | 1040 | if $as_executable_p "$ac_dir/$ac_prog"; then |
705db0b5 | 1041 | if test $ac_prog = install && |
18569462 | 1042 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
705db0b5 AD |
1043 | # AIX install. It has an incompatible calling convention. |
1044 | : | |
18569462 AD |
1045 | elif test $ac_prog = install && |
1046 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1047 | # program-specific install script used by HP pwplus--don't use. | |
1048 | : | |
705db0b5 AD |
1049 | else |
1050 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1051 | break 2 | |
1052 | fi | |
1053 | fi | |
1054 | done | |
1055 | ;; | |
1056 | esac | |
1057 | done | |
705db0b5 AD |
1058 | |
1059 | fi | |
1060 | if test "${ac_cv_path_install+set}" = set; then | |
18569462 | 1061 | INSTALL=$ac_cv_path_install |
705db0b5 AD |
1062 | else |
1063 | # As a last resort, use the slow shell script. We don't cache a | |
1064 | # path for INSTALL within a source directory, because that will | |
1065 | # break other packages using the cache if that directory is | |
1066 | # removed, or if the path is relative. | |
18569462 | 1067 | INSTALL=$ac_install_sh |
705db0b5 AD |
1068 | fi |
1069 | fi | |
459dd1a6 | 1070 | echo "$as_me:1070: result: $INSTALL" >&5 |
18569462 | 1071 | echo "${ECHO_T}$INSTALL" >&6 |
705db0b5 AD |
1072 | |
1073 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1074 | # It thinks the first close brace ends the variable substitution. | |
1075 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1076 | ||
18569462 | 1077 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
705db0b5 AD |
1078 | |
1079 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1080 | ||
459dd1a6 | 1081 | echo "$as_me:1081: checking whether build environment is sane" >&5 |
18569462 | 1082 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
705db0b5 AD |
1083 | # Just in case |
1084 | sleep 1 | |
1085 | echo timestamp > conftestfile | |
1086 | # Do `set' in a subshell so we don't clobber the current shell's | |
1087 | # arguments. Must try -L first in case configure is actually a | |
1088 | # symlink; some systems play weird games with the mod time of symlinks | |
1089 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1090 | # directory). | |
1091 | if ( | |
1092 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
1093 | if test "$*" = "X"; then | |
1094 | # -L didn't work. | |
1095 | set X `ls -t $srcdir/configure conftestfile` | |
1096 | fi | |
1097 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
1098 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
1099 | ||
1100 | # If neither matched, then we have a broken ls. This can happen | |
1101 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1102 | # broken ls alias from the environment. This has actually | |
1103 | # happened. Such a system could not be considered "sane". | |
459dd1a6 | 1104 | { { echo "$as_me:1104: error: ls -t appears to fail. Make sure there is not a broken |
18569462 AD |
1105 | alias in your environment" >&5 |
1106 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1107 | alias in your environment" >&2;} | |
1108 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
1109 | fi |
1110 | ||
1111 | test "$2" = conftestfile | |
1112 | ) | |
1113 | then | |
1114 | # Ok. | |
1115 | : | |
1116 | else | |
459dd1a6 | 1117 | { { echo "$as_me:1117: error: newly created file is older than distributed files! |
18569462 AD |
1118 | Check your system clock" >&5 |
1119 | echo "$as_me: error: newly created file is older than distributed files! | |
1120 | Check your system clock" >&2;} | |
1121 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
1122 | fi |
1123 | rm -f conftest* | |
459dd1a6 | 1124 | echo "$as_me:1124: result: yes" >&5 |
18569462 | 1125 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 1126 | test "$program_prefix" != NONE && |
459dd1a6 | 1127 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
705db0b5 AD |
1128 | # Use a double $ so make ignores it. |
1129 | test "$program_suffix" != NONE && | |
459dd1a6 AD |
1130 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1131 | # Double any \ or $. echo might interpret backslashes. | |
1132 | # By default was `s,x,x', remove it if useless. | |
1133 | cat <<\_ACEOF >conftest.sed | |
1134 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1135 | _ACEOF | |
1136 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1137 | rm conftest.sed | |
705db0b5 | 1138 | |
459dd1a6 | 1139 | echo "$as_me:1139: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
18569462 AD |
1140 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
1141 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1142 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 1144 | else |
18569462 | 1145 | cat >conftest.make <<\EOF |
705db0b5 AD |
1146 | all: |
1147 | @echo 'ac_maketemp="${MAKE}"' | |
1148 | EOF | |
1149 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
18569462 | 1150 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
705db0b5 AD |
1151 | if test -n "$ac_maketemp"; then |
1152 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1153 | else | |
1154 | eval ac_cv_prog_make_${ac_make}_set=no | |
1155 | fi | |
18569462 | 1156 | rm -f conftest.make |
705db0b5 AD |
1157 | fi |
1158 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
459dd1a6 | 1159 | echo "$as_me:1159: result: yes" >&5 |
18569462 | 1160 | echo "${ECHO_T}yes" >&6 |
705db0b5 AD |
1161 | SET_MAKE= |
1162 | else | |
459dd1a6 | 1163 | echo "$as_me:1163: result: no" >&5 |
18569462 | 1164 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
1165 | SET_MAKE="MAKE=${MAKE-make}" |
1166 | fi | |
1167 | ||
705db0b5 AD |
1168 | PACKAGE=bison |
1169 | ||
84163231 | 1170 | VERSION=1.28c |
705db0b5 AD |
1171 | |
1172 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
459dd1a6 | 1173 | { { echo "$as_me:1173: error: source directory already configured; run \"make distclean\" there first" >&5 |
18569462 AD |
1174 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1175 | { (exit 1); exit 1; }; } | |
705db0b5 | 1176 | fi |
18569462 AD |
1177 | |
1178 | cat >>confdefs.h <<EOF | |
705db0b5 AD |
1179 | #define PACKAGE "$PACKAGE" |
1180 | EOF | |
1181 | ||
18569462 | 1182 | cat >>confdefs.h <<EOF |
705db0b5 AD |
1183 | #define VERSION "$VERSION" |
1184 | EOF | |
1185 | ||
705db0b5 | 1186 | missing_dir=`cd $ac_aux_dir && pwd` |
459dd1a6 | 1187 | echo "$as_me:1187: checking for working aclocal" >&5 |
18569462 | 1188 | echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 |
705db0b5 AD |
1189 | # Run test in a subshell; some versions of sh will print an error if |
1190 | # an executable is not found, even if stderr is redirected. | |
1191 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1192 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
1193 | ACLOCAL=aclocal | |
459dd1a6 | 1194 | echo "$as_me:1194: result: found" >&5 |
18569462 | 1195 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1196 | else |
1197 | ACLOCAL="$missing_dir/missing aclocal" | |
459dd1a6 | 1198 | echo "$as_me:1198: result: missing" >&5 |
18569462 | 1199 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1200 | fi |
1201 | ||
459dd1a6 | 1202 | echo "$as_me:1202: checking for working autoconf" >&5 |
18569462 | 1203 | echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
705db0b5 AD |
1204 | # Run test in a subshell; some versions of sh will print an error if |
1205 | # an executable is not found, even if stderr is redirected. | |
1206 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1207 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1208 | AUTOCONF=autoconf | |
459dd1a6 | 1209 | echo "$as_me:1209: result: found" >&5 |
18569462 | 1210 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1211 | else |
1212 | AUTOCONF="$missing_dir/missing autoconf" | |
459dd1a6 | 1213 | echo "$as_me:1213: result: missing" >&5 |
18569462 | 1214 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1215 | fi |
1216 | ||
459dd1a6 | 1217 | echo "$as_me:1217: checking for working automake" >&5 |
18569462 | 1218 | echo $ECHO_N "checking for working automake... $ECHO_C" >&6 |
705db0b5 AD |
1219 | # Run test in a subshell; some versions of sh will print an error if |
1220 | # an executable is not found, even if stderr is redirected. | |
1221 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1222 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
1223 | AUTOMAKE=automake | |
459dd1a6 | 1224 | echo "$as_me:1224: result: found" >&5 |
18569462 | 1225 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1226 | else |
1227 | AUTOMAKE="$missing_dir/missing automake" | |
459dd1a6 | 1228 | echo "$as_me:1228: result: missing" >&5 |
18569462 | 1229 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1230 | fi |
1231 | ||
459dd1a6 | 1232 | echo "$as_me:1232: checking for working autoheader" >&5 |
18569462 | 1233 | echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
705db0b5 AD |
1234 | # Run test in a subshell; some versions of sh will print an error if |
1235 | # an executable is not found, even if stderr is redirected. | |
1236 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1237 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1238 | AUTOHEADER=autoheader | |
459dd1a6 | 1239 | echo "$as_me:1239: result: found" >&5 |
18569462 | 1240 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1241 | else |
1242 | AUTOHEADER="$missing_dir/missing autoheader" | |
459dd1a6 | 1243 | echo "$as_me:1243: result: missing" >&5 |
18569462 | 1244 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1245 | fi |
1246 | ||
459dd1a6 | 1247 | echo "$as_me:1247: checking for working makeinfo" >&5 |
18569462 | 1248 | echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
705db0b5 AD |
1249 | # Run test in a subshell; some versions of sh will print an error if |
1250 | # an executable is not found, even if stderr is redirected. | |
1251 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1252 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1253 | MAKEINFO=makeinfo | |
459dd1a6 | 1254 | echo "$as_me:1254: result: found" >&5 |
18569462 | 1255 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1256 | else |
1257 | MAKEINFO="$missing_dir/missing makeinfo" | |
459dd1a6 | 1258 | echo "$as_me:1258: result: missing" >&5 |
18569462 | 1259 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1260 | fi |
1261 | ||
18569462 | 1262 | ac_config_headers="$ac_config_headers config.h:config.hin" |
705db0b5 | 1263 | |
18569462 | 1264 | ac_config_commands="$ac_config_commands default-1" |
705db0b5 AD |
1265 | |
1266 | # Initialize the test suite. | |
1267 | AT_TESTPATH=../src | |
1268 | ||
1269 | # Try to be compatible with both Autoconf 2.13 and 2.50. | |
1270 | if test -z "$ECHO_C$ECHO_N$ECHO_T"; then | |
1271 | ECHO_C="$ac_c" | |
1272 | ECHO_N="$ac_n" | |
1273 | ECHO_T="$ac_t" | |
705db0b5 | 1274 | |
18569462 | 1275 | fi |
705db0b5 AD |
1276 | |
1277 | # Checks for programs. | |
18569462 AD |
1278 | ac_ext=c |
1279 | ac_cpp='$CPP $CPPFLAGS' | |
1280 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1281 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1282 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1283 | if test -n "$ac_tool_prefix"; then | |
1284 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1285 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
459dd1a6 | 1286 | echo "$as_me:1286: checking for $ac_word" >&5 |
18569462 AD |
1287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1288 | if test "${ac_cv_prog_CC+set}" = set; then | |
1289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
1290 | else |
1291 | if test -n "$CC"; then | |
1292 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1293 | else | |
5141b016 | 1294 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1295 | ac_dummy="$PATH" |
1296 | for ac_dir in $ac_dummy; do | |
1297 | IFS=$ac_save_IFS | |
1298 | test -z "$ac_dir" && ac_dir=. | |
1299 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1300 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
459dd1a6 | 1301 | echo "$as_me:1301: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1302 | break |
1303 | done | |
1304 | ||
705db0b5 AD |
1305 | fi |
1306 | fi | |
18569462 | 1307 | CC=$ac_cv_prog_CC |
705db0b5 | 1308 | if test -n "$CC"; then |
459dd1a6 | 1309 | echo "$as_me:1309: result: $CC" >&5 |
18569462 | 1310 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1311 | else |
459dd1a6 | 1312 | echo "$as_me:1312: result: no" >&5 |
18569462 | 1313 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
1314 | fi |
1315 | ||
18569462 AD |
1316 | fi |
1317 | if test -z "$ac_cv_prog_CC"; then | |
1318 | ac_ct_CC=$CC | |
1319 | # Extract the first word of "gcc", so it can be a program name with args. | |
1320 | set dummy gcc; ac_word=$2 | |
459dd1a6 | 1321 | echo "$as_me:1321: checking for $ac_word" >&5 |
18569462 AD |
1322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1323 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1325 | else | |
1326 | if test -n "$ac_ct_CC"; then | |
1327 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1328 | else | |
5141b016 | 1329 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1330 | ac_dummy="$PATH" |
1331 | for ac_dir in $ac_dummy; do | |
1332 | IFS=$ac_save_IFS | |
1333 | test -z "$ac_dir" && ac_dir=. | |
1334 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1335 | ac_cv_prog_ac_ct_CC="gcc" | |
459dd1a6 | 1336 | echo "$as_me:1336: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1337 | break |
1338 | done | |
1339 | ||
705db0b5 AD |
1340 | fi |
1341 | fi | |
18569462 AD |
1342 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1343 | if test -n "$ac_ct_CC"; then | |
459dd1a6 | 1344 | echo "$as_me:1344: result: $ac_ct_CC" >&5 |
18569462 AD |
1345 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1346 | else | |
459dd1a6 | 1347 | echo "$as_me:1347: result: no" >&5 |
18569462 | 1348 | echo "${ECHO_T}no" >&6 |
705db0b5 | 1349 | fi |
18569462 AD |
1350 | |
1351 | CC=$ac_ct_CC | |
705db0b5 | 1352 | else |
18569462 | 1353 | CC="$ac_cv_prog_CC" |
705db0b5 AD |
1354 | fi |
1355 | ||
18569462 AD |
1356 | if test -z "$CC"; then |
1357 | if test -n "$ac_tool_prefix"; then | |
1358 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1359 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
459dd1a6 | 1360 | echo "$as_me:1360: checking for $ac_word" >&5 |
18569462 AD |
1361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1362 | if test "${ac_cv_prog_CC+set}" = set; then | |
1363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
1364 | else |
1365 | if test -n "$CC"; then | |
1366 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1367 | else | |
5141b016 | 1368 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1369 | ac_dummy="$PATH" |
1370 | for ac_dir in $ac_dummy; do | |
1371 | IFS=$ac_save_IFS | |
1372 | test -z "$ac_dir" && ac_dir=. | |
1373 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1374 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
459dd1a6 | 1375 | echo "$as_me:1375: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1376 | break |
1377 | done | |
1378 | ||
705db0b5 AD |
1379 | fi |
1380 | fi | |
18569462 | 1381 | CC=$ac_cv_prog_CC |
705db0b5 | 1382 | if test -n "$CC"; then |
459dd1a6 | 1383 | echo "$as_me:1383: result: $CC" >&5 |
18569462 | 1384 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1385 | else |
459dd1a6 | 1386 | echo "$as_me:1386: result: no" >&5 |
18569462 | 1387 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
1388 | fi |
1389 | ||
18569462 AD |
1390 | fi |
1391 | if test -z "$ac_cv_prog_CC"; then | |
1392 | ac_ct_CC=$CC | |
1393 | # Extract the first word of "cc", so it can be a program name with args. | |
1394 | set dummy cc; ac_word=$2 | |
459dd1a6 | 1395 | echo "$as_me:1395: checking for $ac_word" >&5 |
18569462 AD |
1396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1397 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1399 | else | |
1400 | if test -n "$ac_ct_CC"; then | |
1401 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1402 | else | |
5141b016 | 1403 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1404 | ac_dummy="$PATH" |
1405 | for ac_dir in $ac_dummy; do | |
1406 | IFS=$ac_save_IFS | |
1407 | test -z "$ac_dir" && ac_dir=. | |
1408 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1409 | ac_cv_prog_ac_ct_CC="cc" | |
459dd1a6 | 1410 | echo "$as_me:1410: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1411 | break |
1412 | done | |
705db0b5 | 1413 | |
18569462 AD |
1414 | fi |
1415 | fi | |
1416 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1417 | if test -n "$ac_ct_CC"; then | |
459dd1a6 | 1418 | echo "$as_me:1418: result: $ac_ct_CC" >&5 |
18569462 AD |
1419 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1420 | else | |
459dd1a6 | 1421 | echo "$as_me:1421: result: no" >&5 |
18569462 AD |
1422 | echo "${ECHO_T}no" >&6 |
1423 | fi | |
705db0b5 | 1424 | |
18569462 AD |
1425 | CC=$ac_ct_CC |
1426 | else | |
1427 | CC="$ac_cv_prog_CC" | |
1428 | fi | |
705db0b5 | 1429 | |
18569462 AD |
1430 | fi |
1431 | if test -z "$CC"; then | |
1432 | # Extract the first word of "cc", so it can be a program name with args. | |
1433 | set dummy cc; ac_word=$2 | |
459dd1a6 | 1434 | echo "$as_me:1434: checking for $ac_word" >&5 |
18569462 AD |
1435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1436 | if test "${ac_cv_prog_CC+set}" = set; then | |
1437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1438 | else | |
1439 | if test -n "$CC"; then | |
1440 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1441 | else | |
1442 | ac_prog_rejected=no | |
5141b016 | 1443 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1444 | ac_dummy="$PATH" |
1445 | for ac_dir in $ac_dummy; do | |
1446 | IFS=$ac_save_IFS | |
1447 | test -z "$ac_dir" && ac_dir=. | |
1448 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1449 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1450 | ac_prog_rejected=yes | |
1451 | continue | |
1452 | fi | |
1453 | ac_cv_prog_CC="cc" | |
459dd1a6 | 1454 | echo "$as_me:1454: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1455 | break |
1456 | done | |
705db0b5 | 1457 | |
18569462 AD |
1458 | if test $ac_prog_rejected = yes; then |
1459 | # We found a bogon in the path, so make sure we never use it. | |
1460 | set dummy $ac_cv_prog_CC | |
1461 | shift | |
1462 | if test $# != 0; then | |
1463 | # We chose a different compiler from the bogus one. | |
1464 | # However, it has the same basename, so the bogon will be chosen | |
1465 | # first if we set CC to just the basename; use the full file name. | |
1466 | shift | |
1467 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | |
1468 | shift | |
1469 | ac_cv_prog_CC="$@" | |
705db0b5 | 1470 | fi |
18569462 AD |
1471 | fi |
1472 | fi | |
1473 | fi | |
1474 | CC=$ac_cv_prog_CC | |
1475 | if test -n "$CC"; then | |
459dd1a6 | 1476 | echo "$as_me:1476: result: $CC" >&5 |
18569462 | 1477 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1478 | else |
459dd1a6 | 1479 | echo "$as_me:1479: result: no" >&5 |
18569462 | 1480 | echo "${ECHO_T}no" >&6 |
705db0b5 | 1481 | fi |
705db0b5 | 1482 | |
705db0b5 | 1483 | fi |
18569462 AD |
1484 | if test -z "$CC"; then |
1485 | if test -n "$ac_tool_prefix"; then | |
1486 | for ac_prog in cl | |
1487 | do | |
1488 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1489 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
459dd1a6 | 1490 | echo "$as_me:1490: checking for $ac_word" >&5 |
18569462 AD |
1491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1492 | if test "${ac_cv_prog_CC+set}" = set; then | |
1493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1494 | else | |
1495 | if test -n "$CC"; then | |
1496 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1497 | else | |
5141b016 | 1498 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1499 | ac_dummy="$PATH" |
1500 | for ac_dir in $ac_dummy; do | |
1501 | IFS=$ac_save_IFS | |
1502 | test -z "$ac_dir" && ac_dir=. | |
1503 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1504 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
459dd1a6 | 1505 | echo "$as_me:1505: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1506 | break |
1507 | done | |
705db0b5 | 1508 | |
18569462 AD |
1509 | fi |
1510 | fi | |
1511 | CC=$ac_cv_prog_CC | |
1512 | if test -n "$CC"; then | |
459dd1a6 | 1513 | echo "$as_me:1513: result: $CC" >&5 |
18569462 | 1514 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1515 | else |
459dd1a6 | 1516 | echo "$as_me:1516: result: no" >&5 |
18569462 AD |
1517 | echo "${ECHO_T}no" >&6 |
1518 | fi | |
1519 | ||
1520 | test -n "$CC" && break | |
1521 | done | |
1522 | fi | |
1523 | if test -z "$CC"; then | |
1524 | ac_ct_CC=$CC | |
1525 | for ac_prog in cl | |
1526 | do | |
1527 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1528 | set dummy $ac_prog; ac_word=$2 | |
459dd1a6 | 1529 | echo "$as_me:1529: checking for $ac_word" >&5 |
18569462 AD |
1530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1531 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1533 | else | |
1534 | if test -n "$ac_ct_CC"; then | |
1535 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1536 | else | |
5141b016 | 1537 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1538 | ac_dummy="$PATH" |
1539 | for ac_dir in $ac_dummy; do | |
1540 | IFS=$ac_save_IFS | |
1541 | test -z "$ac_dir" && ac_dir=. | |
1542 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1543 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
459dd1a6 | 1544 | echo "$as_me:1544: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1545 | break |
1546 | done | |
1547 | ||
1548 | fi | |
1549 | fi | |
1550 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1551 | if test -n "$ac_ct_CC"; then | |
459dd1a6 | 1552 | echo "$as_me:1552: result: $ac_ct_CC" >&5 |
18569462 | 1553 | echo "${ECHO_T}$ac_ct_CC" >&6 |
705db0b5 | 1554 | else |
459dd1a6 | 1555 | echo "$as_me:1555: result: no" >&5 |
18569462 AD |
1556 | echo "${ECHO_T}no" >&6 |
1557 | fi | |
1558 | ||
1559 | test -n "$ac_ct_CC" && break | |
1560 | done | |
1561 | ||
1562 | CC=$ac_ct_CC | |
705db0b5 | 1563 | fi |
18569462 | 1564 | |
705db0b5 AD |
1565 | fi |
1566 | ||
459dd1a6 | 1567 | test -z "$CC" && { { echo "$as_me:1567: error: no acceptable cc found in \$PATH" >&5 |
18569462 AD |
1568 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
1569 | { (exit 1); exit 1; }; } | |
1570 | ||
459dd1a6 AD |
1571 | # Provide some information about the compiler. |
1572 | echo "$as_me:1572:" \ | |
1573 | "checking for C compiler version" >&5 | |
1574 | ac_compiler=`set X $ac_compile; echo $2` | |
1575 | { (eval echo "$as_me:1575: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1576 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1577 | ac_status=$? | |
1578 | echo "$as_me:1578: \$? = $ac_status" >&5 | |
1579 | (exit $ac_status); } | |
1580 | { (eval echo "$as_me:1580: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1581 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1582 | ac_status=$? | |
1583 | echo "$as_me:1583: \$? = $ac_status" >&5 | |
1584 | (exit $ac_status); } | |
1585 | { (eval echo "$as_me:1585: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1586 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1587 | ac_status=$? | |
1588 | echo "$as_me:1588: \$? = $ac_status" >&5 | |
1589 | (exit $ac_status); } | |
1590 | ||
5141b016 | 1591 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 1592 | #line 1592 "configure" |
18569462 AD |
1593 | #include "confdefs.h" |
1594 | ||
1595 | int | |
1596 | main () | |
1597 | { | |
1598 | ||
1599 | ; | |
1600 | return 0; | |
1601 | } | |
1602 | _ACEOF | |
5141b016 AD |
1603 | ac_clean_files_save=$ac_clean_files |
1604 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1605 | # Try to create an executable without -o first, disregard a.out. | |
459dd1a6 | 1606 | # It will help us diagnose broken compilers, and finding out an intuition |
5141b016 | 1607 | # of exeext. |
459dd1a6 | 1608 | echo "$as_me:1608: checking for C compiler default output" >&5 |
5141b016 | 1609 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
18569462 | 1610 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
459dd1a6 | 1611 | if { (eval echo "$as_me:1611: \"$ac_link_default\"") >&5 |
18569462 AD |
1612 | (eval $ac_link_default) 2>&5 |
1613 | ac_status=$? | |
459dd1a6 | 1614 | echo "$as_me:1614: \$? = $ac_status" >&5 |
18569462 | 1615 | (exit $ac_status); }; then |
459dd1a6 AD |
1616 | # Find the output, starting from the most likely. This scheme is |
1617 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1618 | # resort. | |
1619 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; | |
1620 | ls a.out conftest 2>/dev/null; | |
1621 | ls a.* conftest.* 2>/dev/null`; do | |
18569462 | 1622 | case $ac_file in |
5141b016 AD |
1623 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
1624 | a.out ) # We found the default executable, but exeext='' is most | |
1625 | # certainly right. | |
1626 | break;; | |
18569462 | 1627 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
459dd1a6 | 1628 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
18569462 AD |
1629 | export ac_cv_exeext |
1630 | break;; | |
1631 | * ) break;; | |
1632 | esac | |
1633 | done | |
1634 | else | |
1635 | echo "$as_me: failed program was:" >&5 | |
1636 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 1637 | { { echo "$as_me:1637: error: C compiler cannot create executables" >&5 |
5141b016 AD |
1638 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
1639 | { (exit 77); exit 77; }; } | |
1640 | fi | |
1641 | ||
1642 | ac_exeext=$ac_cv_exeext | |
459dd1a6 | 1643 | echo "$as_me:1643: result: $ac_file" >&5 |
5141b016 AD |
1644 | echo "${ECHO_T}$ac_file" >&6 |
1645 | ||
1646 | # Check the compiler produces executables we can run. If not, either | |
1647 | # the compiler is broken, or we cross compile. | |
459dd1a6 | 1648 | echo "$as_me:1648: checking whether the C compiler works" >&5 |
5141b016 AD |
1649 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1650 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1651 | # If not cross compiling, check that we can run a simple program. | |
1652 | if test "$cross_compiling" != yes; then | |
1653 | if { ac_try='./$ac_file' | |
459dd1a6 | 1654 | { (eval echo "$as_me:1654: \"$ac_try\"") >&5 |
5141b016 AD |
1655 | (eval $ac_try) 2>&5 |
1656 | ac_status=$? | |
459dd1a6 | 1657 | echo "$as_me:1657: \$? = $ac_status" >&5 |
5141b016 AD |
1658 | (exit $ac_status); }; }; then |
1659 | cross_compiling=no | |
1660 | else | |
1661 | if test "$cross_compiling" = maybe; then | |
1662 | cross_compiling=yes | |
1663 | else | |
459dd1a6 | 1664 | { { echo "$as_me:1664: error: cannot run C compiled programs. |
5141b016 AD |
1665 | If you meant to cross compile, use \`--host'." >&5 |
1666 | echo "$as_me: error: cannot run C compiled programs. | |
1667 | If you meant to cross compile, use \`--host'." >&2;} | |
1668 | { (exit 1); exit 1; }; } | |
1669 | fi | |
1670 | fi | |
18569462 | 1671 | fi |
459dd1a6 | 1672 | echo "$as_me:1672: result: yes" >&5 |
5141b016 | 1673 | echo "${ECHO_T}yes" >&6 |
18569462 AD |
1674 | |
1675 | rm -f a.out a.exe conftest$ac_cv_exeext | |
5141b016 AD |
1676 | ac_clean_files=$ac_clean_files_save |
1677 | # Check the compiler produces executables we can run. If not, either | |
1678 | # the compiler is broken, or we cross compile. | |
459dd1a6 | 1679 | echo "$as_me:1679: checking whether we are cross compiling" >&5 |
5141b016 | 1680 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
459dd1a6 | 1681 | echo "$as_me:1681: result: $cross_compiling" >&5 |
5141b016 | 1682 | echo "${ECHO_T}$cross_compiling" >&6 |
18569462 | 1683 | |
459dd1a6 | 1684 | echo "$as_me:1684: checking for executable suffix" >&5 |
5141b016 | 1685 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
459dd1a6 | 1686 | if { (eval echo "$as_me:1686: \"$ac_link\"") >&5 |
18569462 AD |
1687 | (eval $ac_link) 2>&5 |
1688 | ac_status=$? | |
459dd1a6 | 1689 | echo "$as_me:1689: \$? = $ac_status" >&5 |
18569462 AD |
1690 | (exit $ac_status); }; then |
1691 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1692 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1693 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1694 | # `rm'. | |
1695 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1696 | case $ac_file in | |
1697 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1698 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1699 | export ac_cv_exeext | |
1700 | break;; | |
1701 | * ) break;; | |
1702 | esac | |
1703 | done | |
705db0b5 | 1704 | else |
459dd1a6 | 1705 | { { echo "$as_me:1705: error: cannot compute EXEEXT: cannot compile and link" >&5 |
18569462 AD |
1706 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
1707 | { (exit 1); exit 1; }; } | |
705db0b5 | 1708 | fi |
705db0b5 | 1709 | |
5141b016 | 1710 | rm -f conftest$ac_cv_exeext |
459dd1a6 | 1711 | echo "$as_me:1711: result: $ac_cv_exeext" >&5 |
18569462 | 1712 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
5141b016 AD |
1713 | |
1714 | rm -f conftest.$ac_ext | |
18569462 AD |
1715 | EXEEXT=$ac_cv_exeext |
1716 | ac_exeext=$EXEEXT | |
459dd1a6 | 1717 | echo "$as_me:1717: checking for object suffix" >&5 |
5141b016 AD |
1718 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
1719 | if test "${ac_cv_objext+set}" = set; then | |
1720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1721 | else | |
1722 | cat >conftest.$ac_ext <<_ACEOF | |
459dd1a6 | 1723 | #line 1723 "configure" |
18569462 AD |
1724 | #include "confdefs.h" |
1725 | ||
1726 | int | |
1727 | main () | |
1728 | { | |
1729 | ||
1730 | ; | |
1731 | return 0; | |
1732 | } | |
1733 | _ACEOF | |
5141b016 | 1734 | rm -f conftest.o conftest.obj |
459dd1a6 | 1735 | if { (eval echo "$as_me:1735: \"$ac_compile\"") >&5 |
5141b016 | 1736 | (eval $ac_compile) 2>&5 |
18569462 | 1737 | ac_status=$? |
459dd1a6 | 1738 | echo "$as_me:1738: \$? = $ac_status" >&5 |
5141b016 AD |
1739 | (exit $ac_status); }; then |
1740 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1741 | case $ac_file in | |
1742 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1743 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1744 | break;; | |
1745 | esac | |
1746 | done | |
18569462 AD |
1747 | else |
1748 | echo "$as_me: failed program was:" >&5 | |
1749 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 1750 | { { echo "$as_me:1750: error: cannot compute OBJEXT: cannot compile" >&5 |
5141b016 AD |
1751 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
1752 | { (exit 1); exit 1; }; } | |
18569462 | 1753 | fi |
18569462 | 1754 | |
5141b016 AD |
1755 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1756 | fi | |
459dd1a6 | 1757 | echo "$as_me:1757: result: $ac_cv_objext" >&5 |
5141b016 AD |
1758 | echo "${ECHO_T}$ac_cv_objext" >&6 |
1759 | OBJEXT=$ac_cv_objext | |
1760 | ac_objext=$OBJEXT | |
459dd1a6 | 1761 | echo "$as_me:1761: checking whether we are using the GNU C compiler" >&5 |
18569462 AD |
1762 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1763 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1765 | else | |
1766 | cat >conftest.$ac_ext <<_ACEOF | |
459dd1a6 | 1767 | #line 1767 "configure" |
18569462 | 1768 | #include "confdefs.h" |
705db0b5 | 1769 | |
18569462 AD |
1770 | int |
1771 | main () | |
1772 | { | |
1773 | #ifndef __GNUC__ | |
1774 | choke me | |
1775 | #endif | |
1776 | ||
1777 | ; | |
1778 | return 0; | |
1779 | } | |
1780 | _ACEOF | |
1781 | rm -f conftest.$ac_objext | |
459dd1a6 | 1782 | if { (eval echo "$as_me:1782: \"$ac_compile\"") >&5 |
18569462 AD |
1783 | (eval $ac_compile) 2>&5 |
1784 | ac_status=$? | |
459dd1a6 | 1785 | echo "$as_me:1785: \$? = $ac_status" >&5 |
18569462 | 1786 | (exit $ac_status); } && |
5141b016 | 1787 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 1788 | { (eval echo "$as_me:1788: \"$ac_try\"") >&5 |
18569462 AD |
1789 | (eval $ac_try) 2>&5 |
1790 | ac_status=$? | |
459dd1a6 | 1791 | echo "$as_me:1791: \$? = $ac_status" >&5 |
18569462 AD |
1792 | (exit $ac_status); }; }; then |
1793 | ac_compiler_gnu=yes | |
1794 | else | |
1795 | echo "$as_me: failed program was:" >&5 | |
1796 | cat conftest.$ac_ext >&5 | |
1797 | ac_compiler_gnu=no | |
1798 | fi | |
1799 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1800 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1801 | ||
1802 | fi | |
459dd1a6 | 1803 | echo "$as_me:1803: result: $ac_cv_c_compiler_gnu" >&5 |
18569462 AD |
1804 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
1805 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1806 | ac_test_CFLAGS=${CFLAGS+set} | |
1807 | ac_save_CFLAGS=$CFLAGS | |
1808 | CFLAGS="-g" | |
459dd1a6 | 1809 | echo "$as_me:1809: checking whether $CC accepts -g" >&5 |
18569462 AD |
1810 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
1811 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1813 | else | |
1814 | cat >conftest.$ac_ext <<_ACEOF | |
459dd1a6 | 1815 | #line 1815 "configure" |
18569462 AD |
1816 | #include "confdefs.h" |
1817 | ||
1818 | int | |
1819 | main () | |
1820 | { | |
1821 | ||
1822 | ; | |
1823 | return 0; | |
1824 | } | |
1825 | _ACEOF | |
1826 | rm -f conftest.$ac_objext | |
459dd1a6 | 1827 | if { (eval echo "$as_me:1827: \"$ac_compile\"") >&5 |
18569462 AD |
1828 | (eval $ac_compile) 2>&5 |
1829 | ac_status=$? | |
459dd1a6 | 1830 | echo "$as_me:1830: \$? = $ac_status" >&5 |
18569462 | 1831 | (exit $ac_status); } && |
5141b016 | 1832 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 1833 | { (eval echo "$as_me:1833: \"$ac_try\"") >&5 |
18569462 AD |
1834 | (eval $ac_try) 2>&5 |
1835 | ac_status=$? | |
459dd1a6 | 1836 | echo "$as_me:1836: \$? = $ac_status" >&5 |
18569462 AD |
1837 | (exit $ac_status); }; }; then |
1838 | ac_cv_prog_cc_g=yes | |
1839 | else | |
1840 | echo "$as_me: failed program was:" >&5 | |
1841 | cat conftest.$ac_ext >&5 | |
1842 | ac_cv_prog_cc_g=no | |
1843 | fi | |
1844 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1845 | fi | |
459dd1a6 | 1846 | echo "$as_me:1846: result: $ac_cv_prog_cc_g" >&5 |
18569462 | 1847 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
705db0b5 | 1848 | if test "$ac_test_CFLAGS" = set; then |
18569462 | 1849 | CFLAGS=$ac_save_CFLAGS |
705db0b5 AD |
1850 | elif test $ac_cv_prog_cc_g = yes; then |
1851 | if test "$GCC" = yes; then | |
1852 | CFLAGS="-g -O2" | |
1853 | else | |
1854 | CFLAGS="-g" | |
1855 | fi | |
1856 | else | |
1857 | if test "$GCC" = yes; then | |
1858 | CFLAGS="-O2" | |
1859 | else | |
1860 | CFLAGS= | |
1861 | fi | |
1862 | fi | |
18569462 AD |
1863 | # Some people use a C++ compiler to compile C. Since we use `exit', |
1864 | # in C++ we need to declare it. In case someone uses the same compiler | |
1865 | # for both compiling C and C++ we need to have the C++ compiler decide | |
1866 | # the declaration of exit, since it's the most demanding environment. | |
1867 | cat >conftest.$ac_ext <<_ACEOF | |
1868 | #ifndef __cplusplus | |
1869 | choke me | |
1870 | #endif | |
1871 | _ACEOF | |
1872 | rm -f conftest.$ac_objext | |
459dd1a6 | 1873 | if { (eval echo "$as_me:1873: \"$ac_compile\"") >&5 |
18569462 AD |
1874 | (eval $ac_compile) 2>&5 |
1875 | ac_status=$? | |
459dd1a6 | 1876 | echo "$as_me:1876: \$? = $ac_status" >&5 |
18569462 | 1877 | (exit $ac_status); } && |
5141b016 | 1878 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 1879 | { (eval echo "$as_me:1879: \"$ac_try\"") >&5 |
18569462 AD |
1880 | (eval $ac_try) 2>&5 |
1881 | ac_status=$? | |
459dd1a6 | 1882 | echo "$as_me:1882: \$? = $ac_status" >&5 |
18569462 AD |
1883 | (exit $ac_status); }; }; then |
1884 | for ac_declaration in \ | |
1885 | ''\ | |
1886 | '#include <stdlib.h>' \ | |
1887 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
1888 | 'extern "C" void std::exit (int); using std::exit;' \ | |
1889 | 'extern "C" void exit (int) throw ();' \ | |
1890 | 'extern "C" void exit (int);' \ | |
1891 | 'void exit (int);' | |
1892 | do | |
1893 | cat >conftest.$ac_ext <<_ACEOF | |
459dd1a6 | 1894 | #line 1894 "configure" |
18569462 AD |
1895 | #include "confdefs.h" |
1896 | #include <stdlib.h> | |
1897 | $ac_declaration | |
1898 | int | |
1899 | main () | |
1900 | { | |
1901 | exit (42); | |
1902 | ; | |
1903 | return 0; | |
1904 | } | |
1905 | _ACEOF | |
1906 | rm -f conftest.$ac_objext | |
459dd1a6 | 1907 | if { (eval echo "$as_me:1907: \"$ac_compile\"") >&5 |
18569462 AD |
1908 | (eval $ac_compile) 2>&5 |
1909 | ac_status=$? | |
459dd1a6 | 1910 | echo "$as_me:1910: \$? = $ac_status" >&5 |
18569462 | 1911 | (exit $ac_status); } && |
5141b016 | 1912 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 1913 | { (eval echo "$as_me:1913: \"$ac_try\"") >&5 |
18569462 AD |
1914 | (eval $ac_try) 2>&5 |
1915 | ac_status=$? | |
459dd1a6 | 1916 | echo "$as_me:1916: \$? = $ac_status" >&5 |
18569462 AD |
1917 | (exit $ac_status); }; }; then |
1918 | : | |
1919 | else | |
1920 | echo "$as_me: failed program was:" >&5 | |
1921 | cat conftest.$ac_ext >&5 | |
1922 | continue | |
1923 | fi | |
1924 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1925 | cat >conftest.$ac_ext <<_ACEOF | |
459dd1a6 | 1926 | #line 1926 "configure" |
18569462 AD |
1927 | #include "confdefs.h" |
1928 | $ac_declaration | |
1929 | int | |
1930 | main () | |
1931 | { | |
1932 | exit (42); | |
1933 | ; | |
1934 | return 0; | |
1935 | } | |
1936 | _ACEOF | |
1937 | rm -f conftest.$ac_objext | |
459dd1a6 | 1938 | if { (eval echo "$as_me:1938: \"$ac_compile\"") >&5 |
18569462 AD |
1939 | (eval $ac_compile) 2>&5 |
1940 | ac_status=$? | |
459dd1a6 | 1941 | echo "$as_me:1941: \$? = $ac_status" >&5 |
18569462 | 1942 | (exit $ac_status); } && |
5141b016 | 1943 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 1944 | { (eval echo "$as_me:1944: \"$ac_try\"") >&5 |
18569462 AD |
1945 | (eval $ac_try) 2>&5 |
1946 | ac_status=$? | |
459dd1a6 | 1947 | echo "$as_me:1947: \$? = $ac_status" >&5 |
18569462 AD |
1948 | (exit $ac_status); }; }; then |
1949 | break | |
1950 | else | |
1951 | echo "$as_me: failed program was:" >&5 | |
1952 | cat conftest.$ac_ext >&5 | |
1953 | fi | |
1954 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1955 | done | |
459dd1a6 AD |
1956 | rm -f conftest* |
1957 | if test -n "$ac_declaration"; then | |
1958 | echo '#ifdef __cplusplus' >>confdefs.h | |
1959 | echo $ac_declaration >>confdefs.h | |
1960 | echo '#endif' >>confdefs.h | |
1961 | fi | |
18569462 AD |
1962 | |
1963 | else | |
1964 | echo "$as_me: failed program was:" >&5 | |
1965 | cat conftest.$ac_ext >&5 | |
1966 | fi | |
1967 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1968 | ac_ext=c | |
1969 | ac_cpp='$CPP $CPPFLAGS' | |
1970 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1971 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1972 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
705db0b5 | 1973 | |
18569462 AD |
1974 | ac_ext=c |
1975 | ac_cpp='$CPP $CPPFLAGS' | |
1976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
459dd1a6 | 1979 | echo "$as_me:1979: checking how to run the C preprocessor" >&5 |
18569462 | 1980 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
705db0b5 AD |
1981 | # On Suns, sometimes $CPP names a directory. |
1982 | if test -n "$CPP" && test -d "$CPP"; then | |
1983 | CPP= | |
1984 | fi | |
1985 | if test -z "$CPP"; then | |
18569462 AD |
1986 | if test "${ac_cv_prog_CPP+set}" = set; then |
1987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1988 | else | |
1989 | # Double quotes because CPP needs to be expanded | |
1990 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
1991 | do | |
1e24cc5b AD |
1992 | ac_preproc_ok=false |
1993 | for ac_c_preproc_warn_flag in '' yes | |
1994 | do | |
1995 | # Use a header file that comes with gcc, so configuring glibc | |
1996 | # with a fresh cross-compiler works. | |
1997 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1998 | # not just through cpp. "Syntax error" is here to catch this case. | |
1999 | cat >conftest.$ac_ext <<_ACEOF | |
459dd1a6 | 2000 | #line 2000 "configure" |
705db0b5 AD |
2001 | #include "confdefs.h" |
2002 | #include <assert.h> | |
1e24cc5b | 2003 | Syntax error |
18569462 | 2004 | _ACEOF |
459dd1a6 | 2005 | if { (eval echo "$as_me:2005: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 2006 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
2007 | ac_status=$? |
2008 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2009 | rm -f conftest.er1 | |
2010 | cat conftest.err >&5 | |
459dd1a6 | 2011 | echo "$as_me:2011: \$? = $ac_status" >&5 |
1e24cc5b | 2012 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
2013 | if test -s conftest.err; then |
2014 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2015 | else | |
2016 | ac_cpp_err= | |
2017 | fi | |
705db0b5 | 2018 | else |
18569462 AD |
2019 | ac_cpp_err=yes |
2020 | fi | |
2021 | if test -z "$ac_cpp_err"; then | |
1e24cc5b AD |
2022 | : |
2023 | else | |
2024 | echo "$as_me: failed program was:" >&5 | |
2025 | cat conftest.$ac_ext >&5 | |
2026 | # Broken: fails on valid input. | |
2027 | continue | |
2028 | fi | |
2029 | rm -f conftest.err conftest.$ac_ext | |
2030 | ||
2031 | # OK, works on sane cases. Now check whether non-existent headers | |
2032 | # can be detected and how. | |
18569462 | 2033 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2034 | #line 2034 "configure" |
705db0b5 | 2035 | #include "confdefs.h" |
18569462 AD |
2036 | #include <ac_nonexistent.h> |
2037 | _ACEOF | |
459dd1a6 | 2038 | if { (eval echo "$as_me:2038: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 2039 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
2040 | ac_status=$? |
2041 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2042 | rm -f conftest.er1 | |
2043 | cat conftest.err >&5 | |
459dd1a6 | 2044 | echo "$as_me:2044: \$? = $ac_status" >&5 |
1e24cc5b | 2045 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
2046 | if test -s conftest.err; then |
2047 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2048 | else | |
2049 | ac_cpp_err= | |
2050 | fi | |
2051 | else | |
2052 | ac_cpp_err=yes | |
2053 | fi | |
2054 | if test -z "$ac_cpp_err"; then | |
1e24cc5b AD |
2055 | # Broken: success on invalid input. |
2056 | continue | |
18569462 AD |
2057 | else |
2058 | echo "$as_me: failed program was:" >&5 | |
2059 | cat conftest.$ac_ext >&5 | |
1e24cc5b AD |
2060 | # Passes both tests. |
2061 | ac_preproc_ok=: | |
2062 | break | |
18569462 AD |
2063 | fi |
2064 | rm -f conftest.err conftest.$ac_ext | |
18569462 | 2065 | |
1e24cc5b AD |
2066 | done |
2067 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18569462 | 2068 | rm -f conftest.err conftest.$ac_ext |
1e24cc5b | 2069 | if $ac_preproc_ok; then |
459dd1a6 | 2070 | break |
1e24cc5b AD |
2071 | fi |
2072 | ||
18569462 AD |
2073 | done |
2074 | ac_cv_prog_CPP=$CPP | |
2075 | ||
2076 | fi | |
2077 | CPP=$ac_cv_prog_CPP | |
2078 | else | |
1e24cc5b AD |
2079 | ac_cv_prog_CPP=$CPP |
2080 | fi | |
459dd1a6 | 2081 | echo "$as_me:2081: result: $CPP" >&5 |
1e24cc5b AD |
2082 | echo "${ECHO_T}$CPP" >&6 |
2083 | ac_preproc_ok=false | |
2084 | for ac_c_preproc_warn_flag in '' yes | |
2085 | do | |
18569462 | 2086 | # Use a header file that comes with gcc, so configuring glibc |
1e24cc5b AD |
2087 | # with a fresh cross-compiler works. |
2088 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2089 | # not just through cpp. "Syntax error" is here to catch this case. | |
2090 | cat >conftest.$ac_ext <<_ACEOF | |
459dd1a6 | 2091 | #line 2091 "configure" |
705db0b5 AD |
2092 | #include "confdefs.h" |
2093 | #include <assert.h> | |
1e24cc5b | 2094 | Syntax error |
18569462 | 2095 | _ACEOF |
459dd1a6 | 2096 | if { (eval echo "$as_me:2096: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 2097 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
2098 | ac_status=$? |
2099 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2100 | rm -f conftest.er1 | |
2101 | cat conftest.err >&5 | |
459dd1a6 | 2102 | echo "$as_me:2102: \$? = $ac_status" >&5 |
1e24cc5b | 2103 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
2104 | if test -s conftest.err; then |
2105 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2106 | else | |
2107 | ac_cpp_err= | |
2108 | fi | |
705db0b5 | 2109 | else |
18569462 | 2110 | ac_cpp_err=yes |
705db0b5 | 2111 | fi |
18569462 | 2112 | if test -z "$ac_cpp_err"; then |
1e24cc5b AD |
2113 | : |
2114 | else | |
2115 | echo "$as_me: failed program was:" >&5 | |
2116 | cat conftest.$ac_ext >&5 | |
2117 | # Broken: fails on valid input. | |
2118 | continue | |
2119 | fi | |
2120 | rm -f conftest.err conftest.$ac_ext | |
2121 | ||
2122 | # OK, works on sane cases. Now check whether non-existent headers | |
2123 | # can be detected and how. | |
18569462 | 2124 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2125 | #line 2125 "configure" |
18569462 AD |
2126 | #include "confdefs.h" |
2127 | #include <ac_nonexistent.h> | |
2128 | _ACEOF | |
459dd1a6 | 2129 | if { (eval echo "$as_me:2129: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 2130 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
2131 | ac_status=$? |
2132 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2133 | rm -f conftest.er1 | |
2134 | cat conftest.err >&5 | |
459dd1a6 | 2135 | echo "$as_me:2135: \$? = $ac_status" >&5 |
1e24cc5b | 2136 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
2137 | if test -s conftest.err; then |
2138 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2139 | else | |
2140 | ac_cpp_err= | |
2141 | fi | |
2142 | else | |
2143 | ac_cpp_err=yes | |
705db0b5 | 2144 | fi |
18569462 | 2145 | if test -z "$ac_cpp_err"; then |
1e24cc5b AD |
2146 | # Broken: success on invalid input. |
2147 | continue | |
18569462 AD |
2148 | else |
2149 | echo "$as_me: failed program was:" >&5 | |
2150 | cat conftest.$ac_ext >&5 | |
1e24cc5b AD |
2151 | # Passes both tests. |
2152 | ac_preproc_ok=: | |
2153 | break | |
705db0b5 | 2154 | fi |
18569462 | 2155 | rm -f conftest.err conftest.$ac_ext |
18569462 | 2156 | |
1e24cc5b AD |
2157 | done |
2158 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18569462 | 2159 | rm -f conftest.err conftest.$ac_ext |
1e24cc5b AD |
2160 | if $ac_preproc_ok; then |
2161 | : | |
2162 | else | |
459dd1a6 | 2163 | { { echo "$as_me:2163: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
18569462 AD |
2164 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
2165 | { (exit 1); exit 1; }; } | |
2166 | fi | |
1e24cc5b | 2167 | |
18569462 AD |
2168 | ac_ext=c |
2169 | ac_cpp='$CPP $CPPFLAGS' | |
2170 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2171 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2172 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
705db0b5 | 2173 | |
459dd1a6 | 2174 | echo "$as_me:2174: checking for minix/config.h" >&5 |
18569462 AD |
2175 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
2176 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
2177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 2178 | else |
18569462 | 2179 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2180 | #line 2180 "configure" |
705db0b5 AD |
2181 | #include "confdefs.h" |
2182 | #include <minix/config.h> | |
18569462 | 2183 | _ACEOF |
459dd1a6 | 2184 | if { (eval echo "$as_me:2184: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 2185 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
2186 | ac_status=$? |
2187 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2188 | rm -f conftest.er1 | |
2189 | cat conftest.err >&5 | |
459dd1a6 | 2190 | echo "$as_me:2190: \$? = $ac_status" >&5 |
1e24cc5b | 2191 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
2192 | if test -s conftest.err; then |
2193 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2194 | else | |
2195 | ac_cpp_err= | |
2196 | fi | |
2197 | else | |
2198 | ac_cpp_err=yes | |
2199 | fi | |
2200 | if test -z "$ac_cpp_err"; then | |
2201 | ac_cv_header_minix_config_h=yes | |
2202 | else | |
2203 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 2204 | cat conftest.$ac_ext >&5 |
18569462 | 2205 | ac_cv_header_minix_config_h=no |
705db0b5 | 2206 | fi |
18569462 | 2207 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 2208 | fi |
459dd1a6 | 2209 | echo "$as_me:2209: result: $ac_cv_header_minix_config_h" >&5 |
18569462 AD |
2210 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
2211 | if test $ac_cv_header_minix_config_h = yes; then | |
705db0b5 AD |
2212 | MINIX=yes |
2213 | else | |
18569462 | 2214 | MINIX= |
705db0b5 AD |
2215 | fi |
2216 | ||
2217 | if test "$MINIX" = yes; then | |
18569462 AD |
2218 | |
2219 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
2220 | #define _POSIX_SOURCE 1 |
2221 | EOF | |
2222 | ||
18569462 | 2223 | cat >>confdefs.h <<\EOF |
705db0b5 AD |
2224 | #define _POSIX_1_SOURCE 2 |
2225 | EOF | |
2226 | ||
18569462 | 2227 | cat >>confdefs.h <<\EOF |
705db0b5 AD |
2228 | #define _MINIX 1 |
2229 | EOF | |
2230 | ||
2231 | fi | |
2232 | ||
459dd1a6 | 2233 | echo "$as_me:2233: checking for strerror in -lcposix" >&5 |
1e24cc5b AD |
2234 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 |
2235 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then | |
2236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2237 | else | |
2238 | ac_check_lib_save_LIBS=$LIBS | |
2239 | LIBS="-lcposix $LIBS" | |
2240 | cat >conftest.$ac_ext <<_ACEOF | |
459dd1a6 | 2241 | #line 2241 "configure" |
1e24cc5b | 2242 | #include "confdefs.h" |
705db0b5 | 2243 | |
1e24cc5b AD |
2244 | /* Override any gcc2 internal prototype to avoid an error. */ |
2245 | #ifdef __cplusplus | |
2246 | extern "C" | |
2247 | #endif | |
2248 | /* We use char because int might match the return type of a gcc2 | |
2249 | builtin and then its argument prototype would still apply. */ | |
2250 | char strerror (); | |
2251 | int | |
2252 | main () | |
2253 | { | |
2254 | strerror (); | |
2255 | ; | |
2256 | return 0; | |
2257 | } | |
2258 | _ACEOF | |
2259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
459dd1a6 | 2260 | if { (eval echo "$as_me:2260: \"$ac_link\"") >&5 |
1e24cc5b AD |
2261 | (eval $ac_link) 2>&5 |
2262 | ac_status=$? | |
459dd1a6 | 2263 | echo "$as_me:2263: \$? = $ac_status" >&5 |
1e24cc5b AD |
2264 | (exit $ac_status); } && |
2265 | { ac_try='test -s conftest$ac_exeext' | |
459dd1a6 | 2266 | { (eval echo "$as_me:2266: \"$ac_try\"") >&5 |
1e24cc5b AD |
2267 | (eval $ac_try) 2>&5 |
2268 | ac_status=$? | |
459dd1a6 | 2269 | echo "$as_me:2269: \$? = $ac_status" >&5 |
1e24cc5b AD |
2270 | (exit $ac_status); }; }; then |
2271 | ac_cv_lib_cposix_strerror=yes | |
705db0b5 | 2272 | else |
1e24cc5b AD |
2273 | echo "$as_me: failed program was:" >&5 |
2274 | cat conftest.$ac_ext >&5 | |
2275 | ac_cv_lib_cposix_strerror=no | |
2276 | fi | |
2277 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2278 | LIBS=$ac_check_lib_save_LIBS | |
2279 | fi | |
459dd1a6 | 2280 | echo "$as_me:2280: result: $ac_cv_lib_cposix_strerror" >&5 |
1e24cc5b AD |
2281 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 |
2282 | if test $ac_cv_lib_cposix_strerror = yes; then | |
2283 | LIBS="$LIBS -lcposix" | |
705db0b5 AD |
2284 | fi |
2285 | ||
459dd1a6 | 2286 | echo "$as_me:2286: checking for ${CC-cc} option to accept ANSI C" >&5 |
18569462 AD |
2287 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 |
2288 | if test "${am_cv_prog_cc_stdc+set}" = set; then | |
2289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
2290 | else |
2291 | am_cv_prog_cc_stdc=no | |
2292 | ac_save_CC="$CC" | |
2293 | # Don't try gcc -ansi; that turns off useful extensions and | |
2294 | # breaks some systems' header files. | |
2295 | # AIX -qlanglvl=ansi | |
2296 | # Ultrix and OSF/1 -std1 | |
2297 | # HP-UX -Aa -D_HPUX_SOURCE | |
2298 | # SVR4 -Xc -D__EXTENSIONS__ | |
2299 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2300 | do | |
2301 | CC="$ac_save_CC $ac_arg" | |
18569462 | 2302 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2303 | #line 2303 "configure" |
705db0b5 AD |
2304 | #include "confdefs.h" |
2305 | #include <stdarg.h> | |
2306 | #include <stdio.h> | |
2307 | #include <sys/types.h> | |
2308 | #include <sys/stat.h> | |
2309 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2310 | struct buf { int x; }; | |
2311 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2312 | static char *e (p, i) | |
2313 | char **p; | |
2314 | int i; | |
2315 | { | |
2316 | return p[i]; | |
2317 | } | |
2318 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2319 | { | |
2320 | char *s; | |
2321 | va_list v; | |
2322 | va_start (v,p); | |
2323 | s = g (p, va_arg (v,int)); | |
2324 | va_end (v); | |
2325 | return s; | |
2326 | } | |
2327 | int test (int i, double x); | |
2328 | struct s1 {int (*f) (int a);}; | |
2329 | struct s2 {int (*f) (double a);}; | |
2330 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2331 | int argc; | |
2332 | char **argv; | |
2333 | ||
18569462 AD |
2334 | int |
2335 | main () | |
2336 | { | |
705db0b5 AD |
2337 | |
2338 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2339 | ||
18569462 AD |
2340 | ; |
2341 | return 0; | |
2342 | } | |
2343 | _ACEOF | |
2344 | rm -f conftest.$ac_objext | |
459dd1a6 | 2345 | if { (eval echo "$as_me:2345: \"$ac_compile\"") >&5 |
18569462 AD |
2346 | (eval $ac_compile) 2>&5 |
2347 | ac_status=$? | |
459dd1a6 | 2348 | echo "$as_me:2348: \$? = $ac_status" >&5 |
18569462 | 2349 | (exit $ac_status); } && |
5141b016 | 2350 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 2351 | { (eval echo "$as_me:2351: \"$ac_try\"") >&5 |
18569462 AD |
2352 | (eval $ac_try) 2>&5 |
2353 | ac_status=$? | |
459dd1a6 | 2354 | echo "$as_me:2354: \$? = $ac_status" >&5 |
18569462 | 2355 | (exit $ac_status); }; }; then |
705db0b5 AD |
2356 | am_cv_prog_cc_stdc="$ac_arg"; break |
2357 | else | |
18569462 AD |
2358 | echo "$as_me: failed program was:" >&5 |
2359 | cat conftest.$ac_ext >&5 | |
705db0b5 | 2360 | fi |
18569462 | 2361 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
2362 | done |
2363 | CC="$ac_save_CC" | |
2364 | ||
2365 | fi | |
2366 | ||
2367 | if test -z "$am_cv_prog_cc_stdc"; then | |
459dd1a6 | 2368 | echo "$as_me:2368: result: none needed" >&5 |
18569462 | 2369 | echo "${ECHO_T}none needed" >&6 |
705db0b5 | 2370 | else |
459dd1a6 | 2371 | echo "$as_me:2371: result: $am_cv_prog_cc_stdc" >&5 |
18569462 | 2372 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 |
705db0b5 AD |
2373 | fi |
2374 | case "x$am_cv_prog_cc_stdc" in | |
2375 | x|xno) ;; | |
2376 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2377 | esac | |
2378 | ||
1e24cc5b AD |
2379 | if test -n "$ac_tool_prefix"; then |
2380 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2381 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
459dd1a6 | 2382 | echo "$as_me:2382: checking for $ac_word" >&5 |
1e24cc5b AD |
2383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2384 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
18569462 | 2385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 AD |
2386 | else |
2387 | if test -n "$RANLIB"; then | |
2388 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2389 | else | |
5141b016 | 2390 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
2391 | ac_dummy="$PATH" |
2392 | for ac_dir in $ac_dummy; do | |
2393 | IFS=$ac_save_IFS | |
2394 | test -z "$ac_dir" && ac_dir=. | |
2395 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2396 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
459dd1a6 | 2397 | echo "$as_me:2397: found $ac_dir/$ac_word" >&5 |
18569462 AD |
2398 | break |
2399 | done | |
2400 | ||
705db0b5 AD |
2401 | fi |
2402 | fi | |
18569462 | 2403 | RANLIB=$ac_cv_prog_RANLIB |
705db0b5 | 2404 | if test -n "$RANLIB"; then |
459dd1a6 | 2405 | echo "$as_me:2405: result: $RANLIB" >&5 |
18569462 AD |
2406 | echo "${ECHO_T}$RANLIB" >&6 |
2407 | else | |
459dd1a6 | 2408 | echo "$as_me:2408: result: no" >&5 |
18569462 AD |
2409 | echo "${ECHO_T}no" >&6 |
2410 | fi | |
2411 | ||
2412 | fi | |
2413 | if test -z "$ac_cv_prog_RANLIB"; then | |
2414 | ac_ct_RANLIB=$RANLIB | |
2415 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2416 | set dummy ranlib; ac_word=$2 | |
459dd1a6 | 2417 | echo "$as_me:2417: checking for $ac_word" >&5 |
18569462 AD |
2418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2419 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2421 | else | |
2422 | if test -n "$ac_ct_RANLIB"; then | |
2423 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2424 | else | |
5141b016 | 2425 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
2426 | ac_dummy="$PATH" |
2427 | for ac_dir in $ac_dummy; do | |
2428 | IFS=$ac_save_IFS | |
2429 | test -z "$ac_dir" && ac_dir=. | |
2430 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2431 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
459dd1a6 | 2432 | echo "$as_me:2432: found $ac_dir/$ac_word" >&5 |
18569462 AD |
2433 | break |
2434 | done | |
2435 | ||
2436 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2437 | fi | |
2438 | fi | |
2439 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2440 | if test -n "$ac_ct_RANLIB"; then | |
459dd1a6 | 2441 | echo "$as_me:2441: result: $ac_ct_RANLIB" >&5 |
18569462 AD |
2442 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
2443 | else | |
459dd1a6 | 2444 | echo "$as_me:2444: result: no" >&5 |
18569462 AD |
2445 | echo "${ECHO_T}no" >&6 |
2446 | fi | |
2447 | ||
2448 | RANLIB=$ac_ct_RANLIB | |
705db0b5 | 2449 | else |
18569462 | 2450 | RANLIB="$ac_cv_prog_RANLIB" |
705db0b5 AD |
2451 | fi |
2452 | ||
2453 | # GNU M4 is needed to build the testsuite. | |
2454 | for ac_prog in gm4 gnum4 m4 | |
2455 | do | |
18569462 | 2456 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
705db0b5 | 2457 | set dummy $ac_prog; ac_word=$2 |
459dd1a6 | 2458 | echo "$as_me:2458: checking for $ac_word" >&5 |
18569462 AD |
2459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2460 | if test "${ac_cv_path_M4+set}" = set; then | |
2461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 2462 | else |
18569462 AD |
2463 | case $M4 in |
2464 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
2465 | ac_cv_path_M4="$M4" # Let the user override the test with a path. |
2466 | ;; | |
705db0b5 | 2467 | *) |
5141b016 | 2468 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
2469 | ac_dummy="$PATH" |
2470 | for ac_dir in $ac_dummy; do | |
2471 | IFS=$ac_save_IFS | |
2472 | test -z "$ac_dir" && ac_dir=. | |
2473 | if $as_executable_p "$ac_dir/$ac_word"; then | |
2474 | ac_cv_path_M4="$ac_dir/$ac_word" | |
459dd1a6 | 2475 | echo "$as_me:2475: found $ac_dir/$ac_word" >&5 |
18569462 AD |
2476 | break |
2477 | fi | |
2478 | done | |
2479 | ||
705db0b5 AD |
2480 | ;; |
2481 | esac | |
2482 | fi | |
18569462 AD |
2483 | M4=$ac_cv_path_M4 |
2484 | ||
705db0b5 | 2485 | if test -n "$M4"; then |
459dd1a6 | 2486 | echo "$as_me:2486: result: $M4" >&5 |
18569462 | 2487 | echo "${ECHO_T}$M4" >&6 |
705db0b5 | 2488 | else |
459dd1a6 | 2489 | echo "$as_me:2489: result: no" >&5 |
18569462 | 2490 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
2491 | fi |
2492 | ||
18569462 | 2493 | test -n "$M4" && break |
705db0b5 AD |
2494 | done |
2495 | test -n "$M4" || M4="m4" | |
2496 | ||
459dd1a6 | 2497 | echo "$as_me:2497: checking whether m4 supports frozen files" >&5 |
18569462 AD |
2498 | echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6 |
2499 | if test "${ac_cv_prog_gnu_m4+set}" = set; then | |
2500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
2501 | else |
2502 | ac_cv_prog_gnu_m4=no | |
2503 | if test x"$M4" != x; then | |
2504 | case `$M4 --help < /dev/null 2>&1` in | |
2505 | *reload-state*) ac_cv_prog_gnu_m4=yes ;; | |
2506 | esac | |
2507 | fi | |
2508 | fi | |
459dd1a6 | 2509 | echo "$as_me:2509: result: $ac_cv_prog_gnu_m4" >&5 |
18569462 | 2510 | echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6 |
1e24cc5b | 2511 | |
705db0b5 AD |
2512 | if test "$ac_cv_prog_gnu_m4" != yes; then |
2513 | missing_dir=`cd $ac_aux_dir && pwd` | |
2514 | M4="$missing_dir/missing m4" | |
2515 | fi | |
2516 | ||
2517 | # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given. | |
2518 | if test "${enable_gcc_warnings+set}" = set; then | |
2519 | enableval="$enable_gcc_warnings" | |
2520 | case "${enableval}" in | |
2521 | yes|no) ;; | |
459dd1a6 | 2522 | *) { { echo "$as_me:2522: error: bad value ${enableval} for gcc-warnings option" >&5 |
18569462 AD |
2523 | echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;} |
2524 | { (exit 1); exit 1; }; } ;; | |
705db0b5 | 2525 | esac |
705db0b5 AD |
2526 | else |
2527 | enableval=no | |
18569462 | 2528 | fi; |
705db0b5 | 2529 | if test "${enableval}" = yes; then |
459dd1a6 | 2530 | echo "$as_me:2530: checking whether compiler accepts -Wall" >&5 |
18569462 | 2531 | echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6 |
705db0b5 AD |
2532 | |
2533 | ac_save_CFLAGS="$CFLAGS" | |
2534 | CFLAGS="$CFLAGS -Wall" | |
18569462 | 2535 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2536 | #line 2536 "configure" |
705db0b5 AD |
2537 | #include "confdefs.h" |
2538 | ||
18569462 AD |
2539 | int |
2540 | main () | |
2541 | { | |
705db0b5 | 2542 | int x; |
18569462 AD |
2543 | ; |
2544 | return 0; | |
2545 | } | |
2546 | _ACEOF | |
2547 | rm -f conftest.$ac_objext | |
459dd1a6 | 2548 | if { (eval echo "$as_me:2548: \"$ac_compile\"") >&5 |
18569462 AD |
2549 | (eval $ac_compile) 2>&5 |
2550 | ac_status=$? | |
459dd1a6 | 2551 | echo "$as_me:2551: \$? = $ac_status" >&5 |
18569462 | 2552 | (exit $ac_status); } && |
5141b016 | 2553 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 2554 | { (eval echo "$as_me:2554: \"$ac_try\"") >&5 |
18569462 AD |
2555 | (eval $ac_try) 2>&5 |
2556 | ac_status=$? | |
459dd1a6 | 2557 | echo "$as_me:2557: \$? = $ac_status" >&5 |
18569462 | 2558 | (exit $ac_status); }; }; then |
705db0b5 | 2559 | WARNING_CFLAGS="$WARNING_CFLAGS -Wall" |
459dd1a6 | 2560 | echo "$as_me:2560: result: yes" >&5 |
18569462 | 2561 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2562 | else |
18569462 AD |
2563 | echo "$as_me: failed program was:" >&5 |
2564 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 2565 | echo "$as_me:2565: result: no" >&5 |
18569462 | 2566 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2567 | fi |
18569462 | 2568 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2569 | CFLAGS="$ac_save_CFLAGS" |
459dd1a6 | 2570 | echo "$as_me:2570: checking whether compiler accepts -W" >&5 |
18569462 | 2571 | echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6 |
705db0b5 AD |
2572 | |
2573 | ac_save_CFLAGS="$CFLAGS" | |
2574 | CFLAGS="$CFLAGS -W" | |
18569462 | 2575 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2576 | #line 2576 "configure" |
705db0b5 AD |
2577 | #include "confdefs.h" |
2578 | ||
18569462 AD |
2579 | int |
2580 | main () | |
2581 | { | |
705db0b5 | 2582 | int x; |
18569462 AD |
2583 | ; |
2584 | return 0; | |
2585 | } | |
2586 | _ACEOF | |
2587 | rm -f conftest.$ac_objext | |
459dd1a6 | 2588 | if { (eval echo "$as_me:2588: \"$ac_compile\"") >&5 |
18569462 AD |
2589 | (eval $ac_compile) 2>&5 |
2590 | ac_status=$? | |
459dd1a6 | 2591 | echo "$as_me:2591: \$? = $ac_status" >&5 |
18569462 | 2592 | (exit $ac_status); } && |
5141b016 | 2593 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 2594 | { (eval echo "$as_me:2594: \"$ac_try\"") >&5 |
18569462 AD |
2595 | (eval $ac_try) 2>&5 |
2596 | ac_status=$? | |
459dd1a6 | 2597 | echo "$as_me:2597: \$? = $ac_status" >&5 |
18569462 | 2598 | (exit $ac_status); }; }; then |
705db0b5 | 2599 | WARNING_CFLAGS="$WARNING_CFLAGS -W" |
459dd1a6 | 2600 | echo "$as_me:2600: result: yes" >&5 |
18569462 | 2601 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2602 | else |
18569462 AD |
2603 | echo "$as_me: failed program was:" >&5 |
2604 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 2605 | echo "$as_me:2605: result: no" >&5 |
18569462 | 2606 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2607 | fi |
18569462 | 2608 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2609 | CFLAGS="$ac_save_CFLAGS" |
459dd1a6 | 2610 | echo "$as_me:2610: checking whether compiler accepts -Wbad-function-cast" >&5 |
18569462 | 2611 | echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6 |
705db0b5 AD |
2612 | |
2613 | ac_save_CFLAGS="$CFLAGS" | |
2614 | CFLAGS="$CFLAGS -Wbad-function-cast" | |
18569462 | 2615 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2616 | #line 2616 "configure" |
705db0b5 AD |
2617 | #include "confdefs.h" |
2618 | ||
18569462 AD |
2619 | int |
2620 | main () | |
2621 | { | |
705db0b5 | 2622 | int x; |
18569462 AD |
2623 | ; |
2624 | return 0; | |
2625 | } | |
2626 | _ACEOF | |
2627 | rm -f conftest.$ac_objext | |
459dd1a6 | 2628 | if { (eval echo "$as_me:2628: \"$ac_compile\"") >&5 |
18569462 AD |
2629 | (eval $ac_compile) 2>&5 |
2630 | ac_status=$? | |
459dd1a6 | 2631 | echo "$as_me:2631: \$? = $ac_status" >&5 |
18569462 | 2632 | (exit $ac_status); } && |
5141b016 | 2633 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 2634 | { (eval echo "$as_me:2634: \"$ac_try\"") >&5 |
18569462 AD |
2635 | (eval $ac_try) 2>&5 |
2636 | ac_status=$? | |
459dd1a6 | 2637 | echo "$as_me:2637: \$? = $ac_status" >&5 |
18569462 | 2638 | (exit $ac_status); }; }; then |
705db0b5 | 2639 | WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast" |
459dd1a6 | 2640 | echo "$as_me:2640: result: yes" >&5 |
18569462 | 2641 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2642 | else |
18569462 AD |
2643 | echo "$as_me: failed program was:" >&5 |
2644 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 2645 | echo "$as_me:2645: result: no" >&5 |
18569462 | 2646 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2647 | fi |
18569462 | 2648 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2649 | CFLAGS="$ac_save_CFLAGS" |
459dd1a6 | 2650 | echo "$as_me:2650: checking whether compiler accepts -Wcast-align" >&5 |
18569462 | 2651 | echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6 |
705db0b5 AD |
2652 | |
2653 | ac_save_CFLAGS="$CFLAGS" | |
2654 | CFLAGS="$CFLAGS -Wcast-align" | |
18569462 | 2655 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2656 | #line 2656 "configure" |
705db0b5 AD |
2657 | #include "confdefs.h" |
2658 | ||
18569462 AD |
2659 | int |
2660 | main () | |
2661 | { | |
705db0b5 | 2662 | int x; |
18569462 AD |
2663 | ; |
2664 | return 0; | |
2665 | } | |
2666 | _ACEOF | |
2667 | rm -f conftest.$ac_objext | |
459dd1a6 | 2668 | if { (eval echo "$as_me:2668: \"$ac_compile\"") >&5 |
18569462 AD |
2669 | (eval $ac_compile) 2>&5 |
2670 | ac_status=$? | |
459dd1a6 | 2671 | echo "$as_me:2671: \$? = $ac_status" >&5 |
18569462 | 2672 | (exit $ac_status); } && |
5141b016 | 2673 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 2674 | { (eval echo "$as_me:2674: \"$ac_try\"") >&5 |
18569462 AD |
2675 | (eval $ac_try) 2>&5 |
2676 | ac_status=$? | |
459dd1a6 | 2677 | echo "$as_me:2677: \$? = $ac_status" >&5 |
18569462 | 2678 | (exit $ac_status); }; }; then |
705db0b5 | 2679 | WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align" |
459dd1a6 | 2680 | echo "$as_me:2680: result: yes" >&5 |
18569462 | 2681 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2682 | else |
18569462 AD |
2683 | echo "$as_me: failed program was:" >&5 |
2684 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 2685 | echo "$as_me:2685: result: no" >&5 |
18569462 | 2686 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2687 | fi |
18569462 | 2688 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2689 | CFLAGS="$ac_save_CFLAGS" |
459dd1a6 | 2690 | echo "$as_me:2690: checking whether compiler accepts -Wcast-qual" >&5 |
18569462 | 2691 | echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6 |
705db0b5 AD |
2692 | |
2693 | ac_save_CFLAGS="$CFLAGS" | |
2694 | CFLAGS="$CFLAGS -Wcast-qual" | |
18569462 | 2695 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2696 | #line 2696 "configure" |
705db0b5 AD |
2697 | #include "confdefs.h" |
2698 | ||
18569462 AD |
2699 | int |
2700 | main () | |
2701 | { | |
705db0b5 | 2702 | int x; |
18569462 AD |
2703 | ; |
2704 | return 0; | |
2705 | } | |
2706 | _ACEOF | |
2707 | rm -f conftest.$ac_objext | |
459dd1a6 | 2708 | if { (eval echo "$as_me:2708: \"$ac_compile\"") >&5 |
18569462 AD |
2709 | (eval $ac_compile) 2>&5 |
2710 | ac_status=$? | |
459dd1a6 | 2711 | echo "$as_me:2711: \$? = $ac_status" >&5 |
18569462 | 2712 | (exit $ac_status); } && |
5141b016 | 2713 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 2714 | { (eval echo "$as_me:2714: \"$ac_try\"") >&5 |
18569462 AD |
2715 | (eval $ac_try) 2>&5 |
2716 | ac_status=$? | |
459dd1a6 | 2717 | echo "$as_me:2717: \$? = $ac_status" >&5 |
18569462 | 2718 | (exit $ac_status); }; }; then |
705db0b5 | 2719 | WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual" |
459dd1a6 | 2720 | echo "$as_me:2720: result: yes" >&5 |
18569462 | 2721 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2722 | else |
18569462 AD |
2723 | echo "$as_me: failed program was:" >&5 |
2724 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 2725 | echo "$as_me:2725: result: no" >&5 |
18569462 | 2726 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2727 | fi |
18569462 | 2728 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2729 | CFLAGS="$ac_save_CFLAGS" |
2ce10144 AD |
2730 | echo "$as_me:2730: checking whether compiler accepts -Wformat" >&5 |
2731 | echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6 | |
705db0b5 AD |
2732 | |
2733 | ac_save_CFLAGS="$CFLAGS" | |
2ce10144 | 2734 | CFLAGS="$CFLAGS -Wformat" |
18569462 | 2735 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2736 | #line 2736 "configure" |
705db0b5 AD |
2737 | #include "confdefs.h" |
2738 | ||
18569462 AD |
2739 | int |
2740 | main () | |
2741 | { | |
705db0b5 | 2742 | int x; |
18569462 AD |
2743 | ; |
2744 | return 0; | |
2745 | } | |
2746 | _ACEOF | |
2747 | rm -f conftest.$ac_objext | |
459dd1a6 | 2748 | if { (eval echo "$as_me:2748: \"$ac_compile\"") >&5 |
18569462 AD |
2749 | (eval $ac_compile) 2>&5 |
2750 | ac_status=$? | |
459dd1a6 | 2751 | echo "$as_me:2751: \$? = $ac_status" >&5 |
18569462 | 2752 | (exit $ac_status); } && |
5141b016 | 2753 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 2754 | { (eval echo "$as_me:2754: \"$ac_try\"") >&5 |
18569462 AD |
2755 | (eval $ac_try) 2>&5 |
2756 | ac_status=$? | |
459dd1a6 | 2757 | echo "$as_me:2757: \$? = $ac_status" >&5 |
18569462 | 2758 | (exit $ac_status); }; }; then |
2ce10144 | 2759 | WARNING_CFLAGS="$WARNING_CFLAGS -Wformat" |
459dd1a6 | 2760 | echo "$as_me:2760: result: yes" >&5 |
18569462 | 2761 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2762 | else |
18569462 AD |
2763 | echo "$as_me: failed program was:" >&5 |
2764 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 2765 | echo "$as_me:2765: result: no" >&5 |
18569462 | 2766 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2767 | fi |
18569462 | 2768 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2769 | CFLAGS="$ac_save_CFLAGS" |
2ce10144 AD |
2770 | echo "$as_me:2770: checking whether compiler accepts -Wmissing-declarations" >&5 |
2771 | echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6 | |
705db0b5 AD |
2772 | |
2773 | ac_save_CFLAGS="$CFLAGS" | |
2ce10144 | 2774 | CFLAGS="$CFLAGS -Wmissing-declarations" |
18569462 | 2775 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2776 | #line 2776 "configure" |
705db0b5 AD |
2777 | #include "confdefs.h" |
2778 | ||
18569462 AD |
2779 | int |
2780 | main () | |
2781 | { | |
705db0b5 | 2782 | int x; |
18569462 AD |
2783 | ; |
2784 | return 0; | |
2785 | } | |
2786 | _ACEOF | |
2787 | rm -f conftest.$ac_objext | |
459dd1a6 | 2788 | if { (eval echo "$as_me:2788: \"$ac_compile\"") >&5 |
18569462 AD |
2789 | (eval $ac_compile) 2>&5 |
2790 | ac_status=$? | |
459dd1a6 | 2791 | echo "$as_me:2791: \$? = $ac_status" >&5 |
18569462 | 2792 | (exit $ac_status); } && |
5141b016 | 2793 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 2794 | { (eval echo "$as_me:2794: \"$ac_try\"") >&5 |
18569462 AD |
2795 | (eval $ac_try) 2>&5 |
2796 | ac_status=$? | |
459dd1a6 | 2797 | echo "$as_me:2797: \$? = $ac_status" >&5 |
18569462 | 2798 | (exit $ac_status); }; }; then |
2ce10144 | 2799 | WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations" |
459dd1a6 | 2800 | echo "$as_me:2800: result: yes" >&5 |
18569462 | 2801 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2802 | else |
18569462 AD |
2803 | echo "$as_me: failed program was:" >&5 |
2804 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 2805 | echo "$as_me:2805: result: no" >&5 |
18569462 | 2806 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2807 | fi |
18569462 | 2808 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2809 | CFLAGS="$ac_save_CFLAGS" |
2ce10144 AD |
2810 | echo "$as_me:2810: checking whether compiler accepts -Wmissing-prototypes" >&5 |
2811 | echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6 | |
705db0b5 AD |
2812 | |
2813 | ac_save_CFLAGS="$CFLAGS" | |
2ce10144 | 2814 | CFLAGS="$CFLAGS -Wmissing-prototypes" |
18569462 | 2815 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2816 | #line 2816 "configure" |
705db0b5 AD |
2817 | #include "confdefs.h" |
2818 | ||
18569462 AD |
2819 | int |
2820 | main () | |
2821 | { | |
705db0b5 | 2822 | int x; |
18569462 AD |
2823 | ; |
2824 | return 0; | |
2825 | } | |
2826 | _ACEOF | |
2827 | rm -f conftest.$ac_objext | |
459dd1a6 | 2828 | if { (eval echo "$as_me:2828: \"$ac_compile\"") >&5 |
18569462 AD |
2829 | (eval $ac_compile) 2>&5 |
2830 | ac_status=$? | |
459dd1a6 | 2831 | echo "$as_me:2831: \$? = $ac_status" >&5 |
18569462 | 2832 | (exit $ac_status); } && |
5141b016 | 2833 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 2834 | { (eval echo "$as_me:2834: \"$ac_try\"") >&5 |
18569462 AD |
2835 | (eval $ac_try) 2>&5 |
2836 | ac_status=$? | |
459dd1a6 | 2837 | echo "$as_me:2837: \$? = $ac_status" >&5 |
18569462 | 2838 | (exit $ac_status); }; }; then |
2ce10144 | 2839 | WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes" |
459dd1a6 | 2840 | echo "$as_me:2840: result: yes" >&5 |
18569462 | 2841 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2842 | else |
18569462 AD |
2843 | echo "$as_me: failed program was:" >&5 |
2844 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 2845 | echo "$as_me:2845: result: no" >&5 |
18569462 | 2846 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2847 | fi |
18569462 | 2848 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2849 | CFLAGS="$ac_save_CFLAGS" |
2ce10144 AD |
2850 | echo "$as_me:2850: checking whether compiler accepts -Wnested-externs" >&5 |
2851 | echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6 | |
705db0b5 AD |
2852 | |
2853 | ac_save_CFLAGS="$CFLAGS" | |
2ce10144 | 2854 | CFLAGS="$CFLAGS -Wnested-externs" |
18569462 | 2855 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2856 | #line 2856 "configure" |
705db0b5 AD |
2857 | #include "confdefs.h" |
2858 | ||
18569462 AD |
2859 | int |
2860 | main () | |
2861 | { | |
705db0b5 | 2862 | int x; |
18569462 AD |
2863 | ; |
2864 | return 0; | |
2865 | } | |
2866 | _ACEOF | |
2867 | rm -f conftest.$ac_objext | |
459dd1a6 | 2868 | if { (eval echo "$as_me:2868: \"$ac_compile\"") >&5 |
18569462 AD |
2869 | (eval $ac_compile) 2>&5 |
2870 | ac_status=$? | |
459dd1a6 | 2871 | echo "$as_me:2871: \$? = $ac_status" >&5 |
18569462 | 2872 | (exit $ac_status); } && |
5141b016 | 2873 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 2874 | { (eval echo "$as_me:2874: \"$ac_try\"") >&5 |
18569462 AD |
2875 | (eval $ac_try) 2>&5 |
2876 | ac_status=$? | |
459dd1a6 | 2877 | echo "$as_me:2877: \$? = $ac_status" >&5 |
18569462 | 2878 | (exit $ac_status); }; }; then |
2ce10144 | 2879 | WARNING_CFLAGS="$WARNING_CFLAGS -Wnested-externs" |
459dd1a6 | 2880 | echo "$as_me:2880: result: yes" >&5 |
18569462 | 2881 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2882 | else |
18569462 AD |
2883 | echo "$as_me: failed program was:" >&5 |
2884 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 2885 | echo "$as_me:2885: result: no" >&5 |
18569462 | 2886 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2887 | fi |
18569462 | 2888 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2889 | CFLAGS="$ac_save_CFLAGS" |
2ce10144 AD |
2890 | echo "$as_me:2890: checking whether compiler accepts -Wshadow" >&5 |
2891 | echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6 | |
705db0b5 AD |
2892 | |
2893 | ac_save_CFLAGS="$CFLAGS" | |
2ce10144 | 2894 | CFLAGS="$CFLAGS -Wshadow" |
18569462 | 2895 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2896 | #line 2896 "configure" |
705db0b5 AD |
2897 | #include "confdefs.h" |
2898 | ||
18569462 AD |
2899 | int |
2900 | main () | |
2901 | { | |
705db0b5 | 2902 | int x; |
18569462 AD |
2903 | ; |
2904 | return 0; | |
2905 | } | |
2906 | _ACEOF | |
2907 | rm -f conftest.$ac_objext | |
459dd1a6 | 2908 | if { (eval echo "$as_me:2908: \"$ac_compile\"") >&5 |
18569462 AD |
2909 | (eval $ac_compile) 2>&5 |
2910 | ac_status=$? | |
459dd1a6 | 2911 | echo "$as_me:2911: \$? = $ac_status" >&5 |
18569462 | 2912 | (exit $ac_status); } && |
5141b016 | 2913 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 2914 | { (eval echo "$as_me:2914: \"$ac_try\"") >&5 |
18569462 AD |
2915 | (eval $ac_try) 2>&5 |
2916 | ac_status=$? | |
459dd1a6 | 2917 | echo "$as_me:2917: \$? = $ac_status" >&5 |
18569462 | 2918 | (exit $ac_status); }; }; then |
2ce10144 | 2919 | WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow" |
459dd1a6 | 2920 | echo "$as_me:2920: result: yes" >&5 |
18569462 | 2921 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2922 | else |
18569462 AD |
2923 | echo "$as_me: failed program was:" >&5 |
2924 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 2925 | echo "$as_me:2925: result: no" >&5 |
18569462 | 2926 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2927 | fi |
18569462 | 2928 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2929 | CFLAGS="$ac_save_CFLAGS" |
2ce10144 AD |
2930 | echo "$as_me:2930: checking whether compiler accepts -Wstrict-prototypes" >&5 |
2931 | echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6 | |
705db0b5 AD |
2932 | |
2933 | ac_save_CFLAGS="$CFLAGS" | |
2ce10144 | 2934 | CFLAGS="$CFLAGS -Wstrict-prototypes" |
18569462 | 2935 | cat >conftest.$ac_ext <<_ACEOF |
459dd1a6 | 2936 | #line 2936 "configure" |
705db0b5 AD |
2937 | #include "confdefs.h" |
2938 | ||
18569462 AD |
2939 | int |
2940 | main () | |
2941 | { | |
705db0b5 | 2942 | int x; |
18569462 AD |
2943 | ; |
2944 | return 0; | |
2945 | } | |
2946 | _ACEOF | |
2947 | rm -f conftest.$ac_objext | |
459dd1a6 | 2948 | if { (eval echo "$as_me:2948: \"$ac_compile\"") >&5 |
18569462 AD |
2949 | (eval $ac_compile) 2>&5 |
2950 | ac_status=$? | |
459dd1a6 | 2951 | echo "$as_me:2951: \$? = $ac_status" >&5 |
18569462 | 2952 | (exit $ac_status); } && |
5141b016 | 2953 | { ac_try='test -s conftest.$ac_objext' |
459dd1a6 | 2954 | { (eval echo "$as_me:2954: \"$ac_try\"") >&5 |
18569462 AD |
2955 | (eval $ac_try) 2>&5 |
2956 | ac_status=$? | |
459dd1a6 | 2957 | echo "$as_me:2957: \$? = $ac_status" >&5 |
18569462 | 2958 | (exit $ac_status); }; }; then |
2ce10144 | 2959 | WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes" |
459dd1a6 | 2960 | echo "$as_me:2960: result: yes" >&5 |
18569462 | 2961 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2962 | else |
18569462 AD |
2963 | echo "$as_me: failed program was:" >&5 |
2964 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 2965 | echo "$as_me:2965: result: no" >&5 |
18569462 | 2966 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2967 | fi |
18569462 | 2968 | rm -f conftest.$ac_objext conftest.$ac_ext |
2ce10144 AD |
2969 | CFLAGS="$ac_save_CFLAGS" |
2970 | echo "$as_me:2970: checking whether compiler accepts -Wwrite-strings" >&5 | |
2971 | echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6 | |
2972 | ||
2973 | ac_save_CFLAGS="$CFLAGS" | |
2974 | CFLAGS="$CFLAGS -Wwrite-strings" | |
2975 | cat >conftest.$ac_ext <<_ACEOF | |
2976 | #line 2976 "configure" | |
2977 | #include "confdefs.h" | |
2978 | ||
2979 | int | |
2980 | main () | |
2981 | { | |
2982 | int x; | |
2983 | ; | |
2984 | return 0; | |
2985 | } | |
2986 | _ACEOF | |
2987 | rm -f conftest.$ac_objext | |
2988 | if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5 | |
2989 | (eval $ac_compile) 2>&5 | |
2990 | ac_status=$? | |
2991 | echo "$as_me:2991: \$? = $ac_status" >&5 | |
2992 | (exit $ac_status); } && | |
2993 | { ac_try='test -s conftest.$ac_objext' | |
2994 | { (eval echo "$as_me:2994: \"$ac_try\"") >&5 | |
2995 | (eval $ac_try) 2>&5 | |
2996 | ac_status=$? | |
2997 | echo "$as_me:2997: \$? = $ac_status" >&5 | |
2998 | (exit $ac_status); }; }; then | |
2999 | WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings" | |
3000 | echo "$as_me:3000: result: yes" >&5 | |
3001 | echo "${ECHO_T}yes" >&6 | |
3002 | else | |
3003 | echo "$as_me: failed program was:" >&5 | |
3004 | cat conftest.$ac_ext >&5 | |
3005 | echo "$as_me:3005: result: no" >&5 | |
3006 | echo "${ECHO_T}no" >&6 | |
3007 | fi | |
3008 | rm -f conftest.$ac_objext conftest.$ac_ext | |
705db0b5 AD |
3009 | CFLAGS="$ac_save_CFLAGS" |
3010 | CFLAGS="$CFLAGS $WARNING_CFLAGS" | |
3011 | fi | |
3012 | ||
3013 | # Checks for libraries. | |
18569462 AD |
3014 | |
3015 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3016 | #define _GNU_SOURCE 1 |
3017 | EOF | |
3018 | ||
705db0b5 | 3019 | # Checks for header files. |
2ce10144 | 3020 | echo "$as_me:3020: checking for ANSI C header files" >&5 |
18569462 AD |
3021 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
3022 | if test "${ac_cv_header_stdc+set}" = set; then | |
3023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 3024 | else |
18569462 | 3025 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 3026 | #line 3026 "configure" |
705db0b5 AD |
3027 | #include "confdefs.h" |
3028 | #include <stdlib.h> | |
3029 | #include <stdarg.h> | |
3030 | #include <string.h> | |
3031 | #include <float.h> | |
18569462 AD |
3032 | |
3033 | _ACEOF | |
2ce10144 | 3034 | if { (eval echo "$as_me:3034: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 3035 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
3036 | ac_status=$? |
3037 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3038 | rm -f conftest.er1 | |
3039 | cat conftest.err >&5 | |
2ce10144 | 3040 | echo "$as_me:3040: \$? = $ac_status" >&5 |
1e24cc5b | 3041 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
3042 | if test -s conftest.err; then |
3043 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3044 | else | |
3045 | ac_cpp_err= | |
3046 | fi | |
3047 | else | |
3048 | ac_cpp_err=yes | |
3049 | fi | |
3050 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
3051 | ac_cv_header_stdc=yes |
3052 | else | |
18569462 | 3053 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 3054 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
3055 | ac_cv_header_stdc=no |
3056 | fi | |
18569462 | 3057 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
3058 | |
3059 | if test $ac_cv_header_stdc = yes; then | |
3060 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 3061 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 3062 | #line 3062 "configure" |
705db0b5 AD |
3063 | #include "confdefs.h" |
3064 | #include <string.h> | |
18569462 AD |
3065 | |
3066 | _ACEOF | |
705db0b5 AD |
3067 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3068 | egrep "memchr" >/dev/null 2>&1; then | |
3069 | : | |
3070 | else | |
705db0b5 AD |
3071 | ac_cv_header_stdc=no |
3072 | fi | |
3073 | rm -f conftest* | |
3074 | ||
3075 | fi | |
3076 | ||
3077 | if test $ac_cv_header_stdc = yes; then | |
3078 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 3079 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 3080 | #line 3080 "configure" |
705db0b5 AD |
3081 | #include "confdefs.h" |
3082 | #include <stdlib.h> | |
18569462 AD |
3083 | |
3084 | _ACEOF | |
705db0b5 AD |
3085 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3086 | egrep "free" >/dev/null 2>&1; then | |
3087 | : | |
3088 | else | |
705db0b5 AD |
3089 | ac_cv_header_stdc=no |
3090 | fi | |
3091 | rm -f conftest* | |
3092 | ||
3093 | fi | |
3094 | ||
3095 | if test $ac_cv_header_stdc = yes; then | |
3096 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 3097 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
3098 | : |
3099 | else | |
18569462 | 3100 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 3101 | #line 3101 "configure" |
705db0b5 AD |
3102 | #include "confdefs.h" |
3103 | #include <ctype.h> | |
18569462 AD |
3104 | #if ((' ' & 0x0FF) == 0x020) |
3105 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3106 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3107 | #else | |
3108 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
3109 | || ('j' <= (c) && (c) <= 'r') \ | |
3110 | || ('s' <= (c) && (c) <= 'z')) | |
3111 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3112 | #endif | |
705db0b5 | 3113 | |
18569462 AD |
3114 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3115 | int | |
3116 | main () | |
3117 | { | |
3118 | int i; | |
3119 | for (i = 0; i < 256; i++) | |
3120 | if (XOR (islower (i), ISLOWER (i)) | |
3121 | || toupper (i) != TOUPPER (i)) | |
3122 | exit(2); | |
3123 | exit (0); | |
3124 | } | |
3125 | _ACEOF | |
3126 | rm -f conftest$ac_exeext | |
2ce10144 | 3127 | if { (eval echo "$as_me:3127: \"$ac_link\"") >&5 |
18569462 AD |
3128 | (eval $ac_link) 2>&5 |
3129 | ac_status=$? | |
2ce10144 | 3130 | echo "$as_me:3130: \$? = $ac_status" >&5 |
5141b016 | 3131 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2ce10144 | 3132 | { (eval echo "$as_me:3132: \"$ac_try\"") >&5 |
18569462 AD |
3133 | (eval $ac_try) 2>&5 |
3134 | ac_status=$? | |
2ce10144 | 3135 | echo "$as_me:3135: \$? = $ac_status" >&5 |
18569462 | 3136 | (exit $ac_status); }; }; then |
705db0b5 AD |
3137 | : |
3138 | else | |
18569462 AD |
3139 | echo "$as_me: program exited with status $ac_status" >&5 |
3140 | echo "$as_me: failed program was:" >&5 | |
3141 | cat conftest.$ac_ext >&5 | |
3142 | ac_cv_header_stdc=no | |
705db0b5 | 3143 | fi |
459dd1a6 | 3144 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3145 | fi |
705db0b5 AD |
3146 | fi |
3147 | fi | |
2ce10144 | 3148 | echo "$as_me:3148: result: $ac_cv_header_stdc" >&5 |
18569462 | 3149 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 3150 | if test $ac_cv_header_stdc = yes; then |
18569462 AD |
3151 | |
3152 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3153 | #define STDC_HEADERS 1 |
3154 | EOF | |
3155 | ||
3156 | fi | |
3157 | ||
18569462 | 3158 | for ac_header in ctype.h locale.h memory.h stdlib.h string.h unistd.h |
705db0b5 | 3159 | do |
459dd1a6 | 3160 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2ce10144 | 3161 | echo "$as_me:3161: checking for $ac_header" >&5 |
18569462 | 3162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 3163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 AD |
3164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3165 | else | |
3166 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 3167 | #line 3167 "configure" |
705db0b5 | 3168 | #include "confdefs.h" |
18569462 AD |
3169 | #include <$ac_header> |
3170 | _ACEOF | |
2ce10144 | 3171 | if { (eval echo "$as_me:3171: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 3172 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
3173 | ac_status=$? |
3174 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3175 | rm -f conftest.er1 | |
3176 | cat conftest.err >&5 | |
2ce10144 | 3177 | echo "$as_me:3177: \$? = $ac_status" >&5 |
1e24cc5b | 3178 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
3179 | if test -s conftest.err; then |
3180 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3181 | else | |
3182 | ac_cpp_err= | |
3183 | fi | |
3184 | else | |
3185 | ac_cpp_err=yes | |
3186 | fi | |
3187 | if test -z "$ac_cpp_err"; then | |
459dd1a6 | 3188 | eval "$as_ac_Header=yes" |
18569462 AD |
3189 | else |
3190 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 3191 | cat conftest.$ac_ext >&5 |
459dd1a6 | 3192 | eval "$as_ac_Header=no" |
705db0b5 | 3193 | fi |
18569462 | 3194 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 3195 | fi |
2ce10144 | 3196 | echo "$as_me:3196: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 AD |
3197 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3198 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18569462 | 3199 | cat >>confdefs.h <<EOF |
459dd1a6 | 3200 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
705db0b5 | 3201 | EOF |
18569462 | 3202 | |
705db0b5 AD |
3203 | fi |
3204 | done | |
3205 | ||
705db0b5 AD |
3206 | # Checks for typedefs. |
3207 | ||
3208 | # Checks for structures. | |
3209 | ||
3210 | # Checks for compiler characteristics. | |
2ce10144 | 3211 | echo "$as_me:3211: checking for $CC option to accept ANSI C" >&5 |
18569462 AD |
3212 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
3213 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3215 | else | |
3216 | ac_cv_prog_cc_stdc=no | |
3217 | ac_save_CC=$CC | |
3218 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 3219 | #line 3219 "configure" |
705db0b5 | 3220 | #include "confdefs.h" |
18569462 AD |
3221 | #include <stdarg.h> |
3222 | #include <stdio.h> | |
3223 | #include <sys/types.h> | |
3224 | #include <sys/stat.h> | |
3225 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3226 | struct buf { int x; }; | |
3227 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3228 | static char *e (p, i) | |
3229 | char **p; | |
3230 | int i; | |
3231 | { | |
3232 | return p[i]; | |
705db0b5 | 3233 | } |
18569462 AD |
3234 | static char *f (char * (*g) (char **, int), char **p, ...) |
3235 | { | |
3236 | char *s; | |
3237 | va_list v; | |
3238 | va_start (v,p); | |
3239 | s = g (p, va_arg (v,int)); | |
3240 | va_end (v); | |
3241 | return s; | |
705db0b5 | 3242 | } |
18569462 AD |
3243 | int test (int i, double x); |
3244 | struct s1 {int (*f) (int a);}; | |
3245 | struct s2 {int (*f) (double a);}; | |
3246 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3247 | int argc; | |
3248 | char **argv; | |
3249 | int | |
3250 | main () | |
3251 | { | |
3252 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3253 | ; | |
3254 | return 0; | |
705db0b5 | 3255 | } |
18569462 AD |
3256 | _ACEOF |
3257 | # Don't try gcc -ansi; that turns off useful extensions and | |
3258 | # breaks some systems' header files. | |
3259 | # AIX -qlanglvl=ansi | |
3260 | # Ultrix and OSF/1 -std1 | |
3261 | # HP-UX 10.20 and later -Ae | |
3262 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3263 | # SVR4 -Xc -D__EXTENSIONS__ | |
3264 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3265 | do | |
3266 | CC="$ac_save_CC $ac_arg" | |
3267 | rm -f conftest.$ac_objext | |
2ce10144 | 3268 | if { (eval echo "$as_me:3268: \"$ac_compile\"") >&5 |
18569462 AD |
3269 | (eval $ac_compile) 2>&5 |
3270 | ac_status=$? | |
2ce10144 | 3271 | echo "$as_me:3271: \$? = $ac_status" >&5 |
18569462 | 3272 | (exit $ac_status); } && |
5141b016 | 3273 | { ac_try='test -s conftest.$ac_objext' |
2ce10144 | 3274 | { (eval echo "$as_me:3274: \"$ac_try\"") >&5 |
18569462 AD |
3275 | (eval $ac_try) 2>&5 |
3276 | ac_status=$? | |
2ce10144 | 3277 | echo "$as_me:3277: \$? = $ac_status" >&5 |
18569462 AD |
3278 | (exit $ac_status); }; }; then |
3279 | ac_cv_prog_cc_stdc=$ac_arg | |
3280 | break | |
3281 | else | |
3282 | echo "$as_me: failed program was:" >&5 | |
3283 | cat conftest.$ac_ext >&5 | |
3284 | fi | |
3285 | rm -f conftest.$ac_objext | |
3286 | done | |
3287 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3288 | CC=$ac_save_CC | |
705db0b5 | 3289 | |
18569462 AD |
3290 | fi |
3291 | ||
3292 | case "x$ac_cv_prog_cc_stdc" in | |
3293 | x|xno) | |
2ce10144 | 3294 | echo "$as_me:3294: result: none needed" >&5 |
18569462 AD |
3295 | echo "${ECHO_T}none needed" >&6 ;; |
3296 | *) | |
2ce10144 | 3297 | echo "$as_me:3297: result: $ac_cv_prog_cc_stdc" >&5 |
18569462 AD |
3298 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
3299 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3300 | esac | |
3301 | ||
2ce10144 | 3302 | echo "$as_me:3302: checking for an ANSI C-conforming const" >&5 |
18569462 AD |
3303 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
3304 | if test "${ac_cv_c_const+set}" = set; then | |
3305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3306 | else | |
3307 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 3308 | #line 3308 "configure" |
18569462 AD |
3309 | #include "confdefs.h" |
3310 | ||
3311 | int | |
3312 | main () | |
3313 | { | |
3314 | /* FIXME: Include the comments suggested by Paul. */ | |
3315 | #ifndef __cplusplus | |
3316 | /* Ultrix mips cc rejects this. */ | |
3317 | typedef int charset[2]; | |
3318 | const charset x; | |
3319 | /* SunOS 4.1.1 cc rejects this. */ | |
3320 | char const *const *ccp; | |
3321 | char **p; | |
3322 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3323 | struct point {int x, y;}; | |
3324 | static struct point const zero = {0,0}; | |
3325 | /* AIX XL C 1.02.0.0 rejects this. | |
3326 | It does not let you subtract one const X* pointer from another in | |
3327 | an arm of an if-expression whose if-part is not a constant | |
3328 | expression */ | |
3329 | const char *g = "string"; | |
3330 | ccp = &g + (g ? g-g : 0); | |
3331 | /* HPUX 7.0 cc rejects these. */ | |
3332 | ++ccp; | |
3333 | p = (char**) ccp; | |
3334 | ccp = (char const *const *) p; | |
3335 | { /* SCO 3.2v4 cc rejects this. */ | |
3336 | char *t; | |
3337 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3338 | ||
3339 | *t++ = 0; | |
3340 | } | |
3341 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3342 | int x[] = {25, 17}; | |
3343 | const int *foo = &x[0]; | |
3344 | ++foo; | |
3345 | } | |
3346 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3347 | typedef const int *iptr; | |
3348 | iptr p = 0; | |
3349 | ++p; | |
3350 | } | |
3351 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3352 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3353 | struct s { int j; const int *ap[3]; }; | |
3354 | struct s *b; b->j = 5; | |
3355 | } | |
3356 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3357 | const int foo = 10; | |
3358 | } | |
3359 | #endif | |
3360 | ||
3361 | ; | |
3362 | return 0; | |
3363 | } | |
3364 | _ACEOF | |
3365 | rm -f conftest.$ac_objext | |
2ce10144 | 3366 | if { (eval echo "$as_me:3366: \"$ac_compile\"") >&5 |
18569462 AD |
3367 | (eval $ac_compile) 2>&5 |
3368 | ac_status=$? | |
2ce10144 | 3369 | echo "$as_me:3369: \$? = $ac_status" >&5 |
18569462 | 3370 | (exit $ac_status); } && |
5141b016 | 3371 | { ac_try='test -s conftest.$ac_objext' |
2ce10144 | 3372 | { (eval echo "$as_me:3372: \"$ac_try\"") >&5 |
18569462 AD |
3373 | (eval $ac_try) 2>&5 |
3374 | ac_status=$? | |
2ce10144 | 3375 | echo "$as_me:3375: \$? = $ac_status" >&5 |
18569462 | 3376 | (exit $ac_status); }; }; then |
705db0b5 AD |
3377 | ac_cv_c_const=yes |
3378 | else | |
18569462 AD |
3379 | echo "$as_me: failed program was:" >&5 |
3380 | cat conftest.$ac_ext >&5 | |
3381 | ac_cv_c_const=no | |
705db0b5 | 3382 | fi |
18569462 | 3383 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3384 | fi |
2ce10144 | 3385 | echo "$as_me:3385: result: $ac_cv_c_const" >&5 |
18569462 | 3386 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
705db0b5 | 3387 | if test $ac_cv_c_const = no; then |
18569462 AD |
3388 | |
3389 | cat >>confdefs.h <<\EOF | |
3390 | #define const | |
705db0b5 AD |
3391 | EOF |
3392 | ||
3393 | fi | |
3394 | ||
2ce10144 | 3395 | echo "$as_me:3395: checking for inline" >&5 |
18569462 AD |
3396 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
3397 | if test "${ac_cv_c_inline+set}" = set; then | |
3398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
3399 | else |
3400 | ac_cv_c_inline=no | |
3401 | for ac_kw in inline __inline__ __inline; do | |
18569462 | 3402 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 3403 | #line 3403 "configure" |
705db0b5 | 3404 | #include "confdefs.h" |
18569462 | 3405 | #ifndef __cplusplus |
5141b016 | 3406 | static $ac_kw int static_foo () {return 0; } |
18569462 AD |
3407 | $ac_kw int foo () {return 0; } |
3408 | #endif | |
705db0b5 | 3409 | |
18569462 AD |
3410 | _ACEOF |
3411 | rm -f conftest.$ac_objext | |
2ce10144 | 3412 | if { (eval echo "$as_me:3412: \"$ac_compile\"") >&5 |
18569462 AD |
3413 | (eval $ac_compile) 2>&5 |
3414 | ac_status=$? | |
2ce10144 | 3415 | echo "$as_me:3415: \$? = $ac_status" >&5 |
18569462 | 3416 | (exit $ac_status); } && |
5141b016 | 3417 | { ac_try='test -s conftest.$ac_objext' |
2ce10144 | 3418 | { (eval echo "$as_me:3418: \"$ac_try\"") >&5 |
18569462 AD |
3419 | (eval $ac_try) 2>&5 |
3420 | ac_status=$? | |
2ce10144 | 3421 | echo "$as_me:3421: \$? = $ac_status" >&5 |
18569462 | 3422 | (exit $ac_status); }; }; then |
705db0b5 AD |
3423 | ac_cv_c_inline=$ac_kw; break |
3424 | else | |
18569462 AD |
3425 | echo "$as_me: failed program was:" >&5 |
3426 | cat conftest.$ac_ext >&5 | |
705db0b5 | 3427 | fi |
18569462 | 3428 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
3429 | done |
3430 | ||
3431 | fi | |
2ce10144 | 3432 | echo "$as_me:3432: result: $ac_cv_c_inline" >&5 |
18569462 AD |
3433 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
3434 | case $ac_cv_c_inline in | |
705db0b5 | 3435 | inline | yes) ;; |
18569462 AD |
3436 | no) |
3437 | cat >>confdefs.h <<\EOF | |
3438 | #define inline | |
705db0b5 AD |
3439 | EOF |
3440 | ;; | |
18569462 | 3441 | *) cat >>confdefs.h <<EOF |
705db0b5 AD |
3442 | #define inline $ac_cv_c_inline |
3443 | EOF | |
3444 | ;; | |
3445 | esac | |
3446 | ||
2ce10144 | 3447 | echo "$as_me:3447: checking for function prototypes" >&5 |
18569462 | 3448 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
705db0b5 | 3449 | if test "$am_cv_prog_cc_stdc" != no; then |
2ce10144 | 3450 | echo "$as_me:3450: result: yes" >&5 |
18569462 AD |
3451 | echo "${ECHO_T}yes" >&6 |
3452 | ||
3453 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3454 | #define PROTOTYPES 1 |
3455 | EOF | |
3456 | ||
3457 | U= ANSI2KNR= | |
3458 | else | |
2ce10144 | 3459 | echo "$as_me:3459: result: no" >&5 |
18569462 | 3460 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
3461 | U=_ ANSI2KNR=./ansi2knr |
3462 | # Ensure some checks needed by ansi2knr itself. | |
2ce10144 | 3463 | echo "$as_me:3463: checking for ANSI C header files" >&5 |
18569462 AD |
3464 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
3465 | if test "${ac_cv_header_stdc+set}" = set; then | |
3466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 3467 | else |
18569462 | 3468 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 3469 | #line 3469 "configure" |
705db0b5 AD |
3470 | #include "confdefs.h" |
3471 | #include <stdlib.h> | |
3472 | #include <stdarg.h> | |
3473 | #include <string.h> | |
3474 | #include <float.h> | |
18569462 AD |
3475 | |
3476 | _ACEOF | |
2ce10144 | 3477 | if { (eval echo "$as_me:3477: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 3478 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
3479 | ac_status=$? |
3480 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3481 | rm -f conftest.er1 | |
3482 | cat conftest.err >&5 | |
2ce10144 | 3483 | echo "$as_me:3483: \$? = $ac_status" >&5 |
1e24cc5b | 3484 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
3485 | if test -s conftest.err; then |
3486 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3487 | else | |
3488 | ac_cpp_err= | |
3489 | fi | |
3490 | else | |
3491 | ac_cpp_err=yes | |
3492 | fi | |
3493 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
3494 | ac_cv_header_stdc=yes |
3495 | else | |
18569462 | 3496 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 3497 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
3498 | ac_cv_header_stdc=no |
3499 | fi | |
18569462 | 3500 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
3501 | |
3502 | if test $ac_cv_header_stdc = yes; then | |
3503 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 3504 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 3505 | #line 3505 "configure" |
705db0b5 AD |
3506 | #include "confdefs.h" |
3507 | #include <string.h> | |
18569462 AD |
3508 | |
3509 | _ACEOF | |
705db0b5 AD |
3510 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3511 | egrep "memchr" >/dev/null 2>&1; then | |
3512 | : | |
3513 | else | |
705db0b5 AD |
3514 | ac_cv_header_stdc=no |
3515 | fi | |
3516 | rm -f conftest* | |
3517 | ||
3518 | fi | |
3519 | ||
3520 | if test $ac_cv_header_stdc = yes; then | |
3521 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 3522 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 3523 | #line 3523 "configure" |
705db0b5 AD |
3524 | #include "confdefs.h" |
3525 | #include <stdlib.h> | |
18569462 AD |
3526 | |
3527 | _ACEOF | |
705db0b5 AD |
3528 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3529 | egrep "free" >/dev/null 2>&1; then | |
3530 | : | |
3531 | else | |
705db0b5 AD |
3532 | ac_cv_header_stdc=no |
3533 | fi | |
3534 | rm -f conftest* | |
3535 | ||
3536 | fi | |
3537 | ||
3538 | if test $ac_cv_header_stdc = yes; then | |
3539 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 3540 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
3541 | : |
3542 | else | |
18569462 | 3543 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 3544 | #line 3544 "configure" |
705db0b5 AD |
3545 | #include "confdefs.h" |
3546 | #include <ctype.h> | |
18569462 AD |
3547 | #if ((' ' & 0x0FF) == 0x020) |
3548 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3549 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3550 | #else | |
3551 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
3552 | || ('j' <= (c) && (c) <= 'r') \ | |
3553 | || ('s' <= (c) && (c) <= 'z')) | |
3554 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3555 | #endif | |
705db0b5 | 3556 | |
18569462 AD |
3557 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3558 | int | |
3559 | main () | |
3560 | { | |
3561 | int i; | |
3562 | for (i = 0; i < 256; i++) | |
3563 | if (XOR (islower (i), ISLOWER (i)) | |
3564 | || toupper (i) != TOUPPER (i)) | |
3565 | exit(2); | |
3566 | exit (0); | |
3567 | } | |
3568 | _ACEOF | |
3569 | rm -f conftest$ac_exeext | |
2ce10144 | 3570 | if { (eval echo "$as_me:3570: \"$ac_link\"") >&5 |
18569462 AD |
3571 | (eval $ac_link) 2>&5 |
3572 | ac_status=$? | |
2ce10144 | 3573 | echo "$as_me:3573: \$? = $ac_status" >&5 |
5141b016 | 3574 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2ce10144 | 3575 | { (eval echo "$as_me:3575: \"$ac_try\"") >&5 |
18569462 AD |
3576 | (eval $ac_try) 2>&5 |
3577 | ac_status=$? | |
2ce10144 | 3578 | echo "$as_me:3578: \$? = $ac_status" >&5 |
18569462 | 3579 | (exit $ac_status); }; }; then |
705db0b5 AD |
3580 | : |
3581 | else | |
18569462 AD |
3582 | echo "$as_me: program exited with status $ac_status" >&5 |
3583 | echo "$as_me: failed program was:" >&5 | |
3584 | cat conftest.$ac_ext >&5 | |
3585 | ac_cv_header_stdc=no | |
705db0b5 | 3586 | fi |
459dd1a6 | 3587 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3588 | fi |
705db0b5 AD |
3589 | fi |
3590 | fi | |
2ce10144 | 3591 | echo "$as_me:3591: result: $ac_cv_header_stdc" >&5 |
18569462 | 3592 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 3593 | if test $ac_cv_header_stdc = yes; then |
18569462 AD |
3594 | |
3595 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3596 | #define STDC_HEADERS 1 |
3597 | EOF | |
3598 | ||
3599 | fi | |
3600 | ||
18569462 | 3601 | for ac_header in string.h |
705db0b5 | 3602 | do |
459dd1a6 | 3603 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2ce10144 | 3604 | echo "$as_me:3604: checking for $ac_header" >&5 |
18569462 | 3605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 3606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 AD |
3607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3608 | else | |
3609 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 3610 | #line 3610 "configure" |
705db0b5 | 3611 | #include "confdefs.h" |
18569462 AD |
3612 | #include <$ac_header> |
3613 | _ACEOF | |
2ce10144 | 3614 | if { (eval echo "$as_me:3614: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 3615 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
3616 | ac_status=$? |
3617 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3618 | rm -f conftest.er1 | |
3619 | cat conftest.err >&5 | |
2ce10144 | 3620 | echo "$as_me:3620: \$? = $ac_status" >&5 |
1e24cc5b | 3621 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
3622 | if test -s conftest.err; then |
3623 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3624 | else | |
3625 | ac_cpp_err= | |
3626 | fi | |
3627 | else | |
3628 | ac_cpp_err=yes | |
3629 | fi | |
3630 | if test -z "$ac_cpp_err"; then | |
459dd1a6 | 3631 | eval "$as_ac_Header=yes" |
18569462 AD |
3632 | else |
3633 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 3634 | cat conftest.$ac_ext >&5 |
459dd1a6 | 3635 | eval "$as_ac_Header=no" |
705db0b5 | 3636 | fi |
18569462 | 3637 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 3638 | fi |
2ce10144 | 3639 | echo "$as_me:3639: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 AD |
3640 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3641 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18569462 | 3642 | cat >>confdefs.h <<EOF |
459dd1a6 | 3643 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
705db0b5 | 3644 | EOF |
18569462 | 3645 | |
705db0b5 AD |
3646 | fi |
3647 | done | |
3648 | ||
3649 | fi | |
3650 | ||
705db0b5 AD |
3651 | # Checks for library functions. |
3652 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
3653 | # for constant arguments. Useless! | |
2ce10144 | 3654 | echo "$as_me:3654: checking for working alloca.h" >&5 |
18569462 AD |
3655 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
3656 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
3657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 3658 | else |
18569462 | 3659 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 3660 | #line 3660 "configure" |
705db0b5 AD |
3661 | #include "confdefs.h" |
3662 | #include <alloca.h> | |
18569462 AD |
3663 | int |
3664 | main () | |
3665 | { | |
3666 | char *p = (char *) alloca (2 * sizeof (int)); | |
3667 | ; | |
3668 | return 0; | |
3669 | } | |
3670 | _ACEOF | |
3671 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 3672 | if { (eval echo "$as_me:3672: \"$ac_link\"") >&5 |
18569462 AD |
3673 | (eval $ac_link) 2>&5 |
3674 | ac_status=$? | |
2ce10144 | 3675 | echo "$as_me:3675: \$? = $ac_status" >&5 |
18569462 | 3676 | (exit $ac_status); } && |
5141b016 | 3677 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 3678 | { (eval echo "$as_me:3678: \"$ac_try\"") >&5 |
18569462 AD |
3679 | (eval $ac_try) 2>&5 |
3680 | ac_status=$? | |
2ce10144 | 3681 | echo "$as_me:3681: \$? = $ac_status" >&5 |
18569462 AD |
3682 | (exit $ac_status); }; }; then |
3683 | ac_cv_working_alloca_h=yes | |
3684 | else | |
3685 | echo "$as_me: failed program was:" >&5 | |
3686 | cat conftest.$ac_ext >&5 | |
3687 | ac_cv_working_alloca_h=no | |
3688 | fi | |
1e24cc5b | 3689 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 3690 | fi |
2ce10144 | 3691 | echo "$as_me:3691: result: $ac_cv_working_alloca_h" >&5 |
18569462 AD |
3692 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
3693 | if test $ac_cv_working_alloca_h = yes; then | |
3694 | ||
3695 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3696 | #define HAVE_ALLOCA_H 1 |
3697 | EOF | |
3698 | ||
3699 | fi | |
3700 | ||
2ce10144 | 3701 | echo "$as_me:3701: checking for alloca" >&5 |
18569462 AD |
3702 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
3703 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
3704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 3705 | else |
18569462 | 3706 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 3707 | #line 3707 "configure" |
705db0b5 | 3708 | #include "confdefs.h" |
705db0b5 AD |
3709 | #ifdef __GNUC__ |
3710 | # define alloca __builtin_alloca | |
3711 | #else | |
3712 | # ifdef _MSC_VER | |
3713 | # include <malloc.h> | |
3714 | # define alloca _alloca | |
3715 | # else | |
3716 | # if HAVE_ALLOCA_H | |
3717 | # include <alloca.h> | |
3718 | # else | |
3719 | # ifdef _AIX | |
3720 | #pragma alloca | |
3721 | # else | |
3722 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3723 | char *alloca (); | |
3724 | # endif | |
3725 | # endif | |
3726 | # endif | |
3727 | # endif | |
3728 | #endif | |
3729 | ||
18569462 AD |
3730 | int |
3731 | main () | |
3732 | { | |
3733 | char *p = (char *) alloca (1); | |
3734 | ; | |
3735 | return 0; | |
3736 | } | |
3737 | _ACEOF | |
3738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 3739 | if { (eval echo "$as_me:3739: \"$ac_link\"") >&5 |
18569462 AD |
3740 | (eval $ac_link) 2>&5 |
3741 | ac_status=$? | |
2ce10144 | 3742 | echo "$as_me:3742: \$? = $ac_status" >&5 |
18569462 | 3743 | (exit $ac_status); } && |
5141b016 | 3744 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 3745 | { (eval echo "$as_me:3745: \"$ac_try\"") >&5 |
18569462 AD |
3746 | (eval $ac_try) 2>&5 |
3747 | ac_status=$? | |
2ce10144 | 3748 | echo "$as_me:3748: \$? = $ac_status" >&5 |
18569462 | 3749 | (exit $ac_status); }; }; then |
705db0b5 AD |
3750 | ac_cv_func_alloca_works=yes |
3751 | else | |
18569462 AD |
3752 | echo "$as_me: failed program was:" >&5 |
3753 | cat conftest.$ac_ext >&5 | |
3754 | ac_cv_func_alloca_works=no | |
705db0b5 | 3755 | fi |
1e24cc5b | 3756 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 3757 | fi |
2ce10144 | 3758 | echo "$as_me:3758: result: $ac_cv_func_alloca_works" >&5 |
18569462 | 3759 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
705db0b5 | 3760 | |
705db0b5 | 3761 | if test $ac_cv_func_alloca_works = yes; then |
18569462 AD |
3762 | |
3763 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3764 | #define HAVE_ALLOCA 1 |
3765 | EOF | |
3766 | ||
18569462 AD |
3767 | else |
3768 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3769 | # that cause trouble. Some versions do not even contain alloca or | |
3770 | # contain a buggy version. If you still want to use their alloca, | |
3771 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
3772 | ||
3773 | ALLOCA=alloca.$ac_objext | |
3774 | ||
3775 | cat >>confdefs.h <<\EOF | |
3776 | #define C_ALLOCA 1 | |
3777 | EOF | |
3778 | ||
2ce10144 | 3779 | echo "$as_me:3779: checking whether \`alloca.c' needs Cray hooks" >&5 |
18569462 AD |
3780 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
3781 | if test "${ac_cv_os_cray+set}" = set; then | |
3782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3783 | else | |
3784 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 3785 | #line 3785 "configure" |
18569462 AD |
3786 | #include "confdefs.h" |
3787 | #if defined(CRAY) && ! defined(CRAY2) | |
3788 | webecray | |
3789 | #else | |
3790 | wenotbecray | |
3791 | #endif | |
3792 | ||
3793 | _ACEOF | |
3794 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3795 | egrep "webecray" >/dev/null 2>&1; then | |
3796 | ac_cv_os_cray=yes | |
3797 | else | |
3798 | ac_cv_os_cray=no | |
3799 | fi | |
3800 | rm -f conftest* | |
3801 | ||
3802 | fi | |
2ce10144 | 3803 | echo "$as_me:3803: result: $ac_cv_os_cray" >&5 |
18569462 AD |
3804 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
3805 | if test $ac_cv_os_cray = yes; then | |
3806 | for ac_func in _getb67 GETB67 getb67; do | |
459dd1a6 | 3807 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2ce10144 | 3808 | echo "$as_me:3808: checking for $ac_func" >&5 |
18569462 | 3809 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 3810 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
3811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3812 | else | |
3813 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 3814 | #line 3814 "configure" |
18569462 AD |
3815 | #include "confdefs.h" |
3816 | /* System header to define __stub macros and hopefully few prototypes, | |
3817 | which can conflict with char $ac_func (); below. */ | |
3818 | #include <assert.h> | |
3819 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3820 | #ifdef __cplusplus | |
3821 | extern "C" | |
3822 | #endif | |
3823 | /* We use char because int might match the return type of a gcc2 | |
3824 | builtin and then its argument prototype would still apply. */ | |
3825 | char $ac_func (); | |
3826 | char (*f) (); | |
3827 | ||
3828 | int | |
3829 | main () | |
3830 | { | |
3831 | /* The GNU C library defines this for functions which it implements | |
3832 | to always fail with ENOSYS. Some functions are actually named | |
3833 | something starting with __ and the normal name is an alias. */ | |
3834 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3835 | choke me | |
3836 | #else | |
3837 | f = $ac_func; | |
3838 | #endif | |
3839 | ||
3840 | ; | |
3841 | return 0; | |
3842 | } | |
3843 | _ACEOF | |
3844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 3845 | if { (eval echo "$as_me:3845: \"$ac_link\"") >&5 |
18569462 AD |
3846 | (eval $ac_link) 2>&5 |
3847 | ac_status=$? | |
2ce10144 | 3848 | echo "$as_me:3848: \$? = $ac_status" >&5 |
18569462 | 3849 | (exit $ac_status); } && |
5141b016 | 3850 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 3851 | { (eval echo "$as_me:3851: \"$ac_try\"") >&5 |
18569462 AD |
3852 | (eval $ac_try) 2>&5 |
3853 | ac_status=$? | |
2ce10144 | 3854 | echo "$as_me:3854: \$? = $ac_status" >&5 |
18569462 | 3855 | (exit $ac_status); }; }; then |
459dd1a6 | 3856 | eval "$as_ac_var=yes" |
18569462 AD |
3857 | else |
3858 | echo "$as_me: failed program was:" >&5 | |
3859 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 3860 | eval "$as_ac_var=no" |
18569462 | 3861 | fi |
1e24cc5b | 3862 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 3863 | fi |
2ce10144 | 3864 | echo "$as_me:3864: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
3865 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
3866 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18569462 AD |
3867 | |
3868 | cat >>confdefs.h <<EOF | |
3869 | #define CRAY_STACKSEG_END $ac_func | |
3870 | EOF | |
3871 | ||
3872 | break | |
3873 | fi | |
3874 | ||
3875 | done | |
3876 | fi | |
3877 | ||
2ce10144 | 3878 | echo "$as_me:3878: checking stack direction for C alloca" >&5 |
18569462 AD |
3879 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
3880 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
3881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3882 | else | |
3883 | if test "$cross_compiling" = yes; then | |
3884 | ac_cv_c_stack_direction=0 | |
3885 | else | |
3886 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 3887 | #line 3887 "configure" |
18569462 AD |
3888 | #include "confdefs.h" |
3889 | int | |
3890 | find_stack_direction () | |
3891 | { | |
3892 | static char *addr = 0; | |
3893 | auto char dummy; | |
3894 | if (addr == 0) | |
3895 | { | |
3896 | addr = &dummy; | |
3897 | return find_stack_direction (); | |
3898 | } | |
3899 | else | |
3900 | return (&dummy > addr) ? 1 : -1; | |
3901 | } | |
3902 | ||
3903 | int | |
3904 | main () | |
3905 | { | |
3906 | exit (find_stack_direction () < 0); | |
3907 | } | |
3908 | _ACEOF | |
3909 | rm -f conftest$ac_exeext | |
2ce10144 | 3910 | if { (eval echo "$as_me:3910: \"$ac_link\"") >&5 |
18569462 AD |
3911 | (eval $ac_link) 2>&5 |
3912 | ac_status=$? | |
2ce10144 | 3913 | echo "$as_me:3913: \$? = $ac_status" >&5 |
5141b016 | 3914 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2ce10144 | 3915 | { (eval echo "$as_me:3915: \"$ac_try\"") >&5 |
18569462 AD |
3916 | (eval $ac_try) 2>&5 |
3917 | ac_status=$? | |
2ce10144 | 3918 | echo "$as_me:3918: \$? = $ac_status" >&5 |
18569462 AD |
3919 | (exit $ac_status); }; }; then |
3920 | ac_cv_c_stack_direction=1 | |
3921 | else | |
3922 | echo "$as_me: program exited with status $ac_status" >&5 | |
3923 | echo "$as_me: failed program was:" >&5 | |
3924 | cat conftest.$ac_ext >&5 | |
3925 | ac_cv_c_stack_direction=-1 | |
3926 | fi | |
459dd1a6 | 3927 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
18569462 AD |
3928 | fi |
3929 | fi | |
2ce10144 | 3930 | echo "$as_me:3930: result: $ac_cv_c_stack_direction" >&5 |
18569462 AD |
3931 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
3932 | ||
3933 | cat >>confdefs.h <<EOF | |
3934 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
3935 | EOF | |
3936 | ||
3937 | fi | |
3938 | ||
3939 | for ac_func in mkstemp setlocale | |
3940 | do | |
459dd1a6 | 3941 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2ce10144 | 3942 | echo "$as_me:3942: checking for $ac_func" >&5 |
18569462 | 3943 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 3944 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
3945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3946 | else | |
3947 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 3948 | #line 3948 "configure" |
18569462 AD |
3949 | #include "confdefs.h" |
3950 | /* System header to define __stub macros and hopefully few prototypes, | |
3951 | which can conflict with char $ac_func (); below. */ | |
3952 | #include <assert.h> | |
3953 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3954 | #ifdef __cplusplus | |
3955 | extern "C" | |
3956 | #endif | |
3957 | /* We use char because int might match the return type of a gcc2 | |
3958 | builtin and then its argument prototype would still apply. */ | |
3959 | char $ac_func (); | |
3960 | char (*f) (); | |
3961 | ||
3962 | int | |
3963 | main () | |
3964 | { | |
3965 | /* The GNU C library defines this for functions which it implements | |
3966 | to always fail with ENOSYS. Some functions are actually named | |
3967 | something starting with __ and the normal name is an alias. */ | |
3968 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3969 | choke me | |
3970 | #else | |
3971 | f = $ac_func; | |
3972 | #endif | |
3973 | ||
3974 | ; | |
3975 | return 0; | |
3976 | } | |
3977 | _ACEOF | |
3978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 3979 | if { (eval echo "$as_me:3979: \"$ac_link\"") >&5 |
18569462 AD |
3980 | (eval $ac_link) 2>&5 |
3981 | ac_status=$? | |
2ce10144 | 3982 | echo "$as_me:3982: \$? = $ac_status" >&5 |
18569462 | 3983 | (exit $ac_status); } && |
5141b016 | 3984 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 3985 | { (eval echo "$as_me:3985: \"$ac_try\"") >&5 |
18569462 AD |
3986 | (eval $ac_try) 2>&5 |
3987 | ac_status=$? | |
2ce10144 | 3988 | echo "$as_me:3988: \$? = $ac_status" >&5 |
18569462 | 3989 | (exit $ac_status); }; }; then |
459dd1a6 | 3990 | eval "$as_ac_var=yes" |
18569462 AD |
3991 | else |
3992 | echo "$as_me: failed program was:" >&5 | |
3993 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 3994 | eval "$as_ac_var=no" |
18569462 | 3995 | fi |
1e24cc5b | 3996 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 3997 | fi |
2ce10144 | 3998 | echo "$as_me:3998: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
3999 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4000 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18569462 | 4001 | cat >>confdefs.h <<EOF |
459dd1a6 | 4002 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
18569462 AD |
4003 | EOF |
4004 | ||
4005 | fi | |
4006 | done | |
4007 | ||
459dd1a6 AD |
4008 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4009 | ||
4010 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4011 | inttypes.h stdint.h unistd.h | |
18569462 | 4012 | do |
459dd1a6 | 4013 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2ce10144 | 4014 | echo "$as_me:4014: checking for $ac_header" >&5 |
18569462 | 4015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 4016 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 AD |
4017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4018 | else | |
4019 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 4020 | #line 4020 "configure" |
18569462 | 4021 | #include "confdefs.h" |
459dd1a6 | 4022 | $ac_includes_default |
18569462 AD |
4023 | #include <$ac_header> |
4024 | _ACEOF | |
459dd1a6 | 4025 | rm -f conftest.$ac_objext |
2ce10144 | 4026 | if { (eval echo "$as_me:4026: \"$ac_compile\"") >&5 |
459dd1a6 | 4027 | (eval $ac_compile) 2>&5 |
18569462 | 4028 | ac_status=$? |
2ce10144 | 4029 | echo "$as_me:4029: \$? = $ac_status" >&5 |
459dd1a6 AD |
4030 | (exit $ac_status); } && |
4031 | { ac_try='test -s conftest.$ac_objext' | |
2ce10144 | 4032 | { (eval echo "$as_me:4032: \"$ac_try\"") >&5 |
459dd1a6 AD |
4033 | (eval $ac_try) 2>&5 |
4034 | ac_status=$? | |
2ce10144 | 4035 | echo "$as_me:4035: \$? = $ac_status" >&5 |
459dd1a6 AD |
4036 | (exit $ac_status); }; }; then |
4037 | eval "$as_ac_Header=yes" | |
18569462 AD |
4038 | else |
4039 | echo "$as_me: failed program was:" >&5 | |
459dd1a6 AD |
4040 | cat conftest.$ac_ext >&5 |
4041 | eval "$as_ac_Header=no" | |
18569462 | 4042 | fi |
459dd1a6 | 4043 | rm -f conftest.$ac_objext conftest.$ac_ext |
18569462 | 4044 | fi |
2ce10144 | 4045 | echo "$as_me:4045: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 AD |
4046 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4047 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18569462 | 4048 | cat >>confdefs.h <<EOF |
459dd1a6 | 4049 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
18569462 AD |
4050 | EOF |
4051 | ||
4052 | fi | |
4053 | done | |
4054 | ||
2ce10144 | 4055 | echo "$as_me:4055: checking whether stpcpy is declared" >&5 |
18569462 AD |
4056 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 |
4057 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
4058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4059 | else | |
4060 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 4061 | #line 4061 "configure" |
18569462 AD |
4062 | #include "confdefs.h" |
4063 | $ac_includes_default | |
4064 | int | |
4065 | main () | |
4066 | { | |
4067 | #ifndef stpcpy | |
4068 | char *p = (char *) stpcpy; | |
4069 | #endif | |
4070 | ||
4071 | ; | |
4072 | return 0; | |
4073 | } | |
4074 | _ACEOF | |
4075 | rm -f conftest.$ac_objext | |
2ce10144 | 4076 | if { (eval echo "$as_me:4076: \"$ac_compile\"") >&5 |
18569462 AD |
4077 | (eval $ac_compile) 2>&5 |
4078 | ac_status=$? | |
2ce10144 | 4079 | echo "$as_me:4079: \$? = $ac_status" >&5 |
18569462 | 4080 | (exit $ac_status); } && |
5141b016 | 4081 | { ac_try='test -s conftest.$ac_objext' |
2ce10144 | 4082 | { (eval echo "$as_me:4082: \"$ac_try\"") >&5 |
18569462 AD |
4083 | (eval $ac_try) 2>&5 |
4084 | ac_status=$? | |
2ce10144 | 4085 | echo "$as_me:4085: \$? = $ac_status" >&5 |
18569462 AD |
4086 | (exit $ac_status); }; }; then |
4087 | ac_cv_have_decl_stpcpy=yes | |
4088 | else | |
4089 | echo "$as_me: failed program was:" >&5 | |
4090 | cat conftest.$ac_ext >&5 | |
4091 | ac_cv_have_decl_stpcpy=no | |
4092 | fi | |
4093 | rm -f conftest.$ac_objext conftest.$ac_ext | |
705db0b5 | 4094 | fi |
2ce10144 | 4095 | echo "$as_me:4095: result: $ac_cv_have_decl_stpcpy" >&5 |
18569462 AD |
4096 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 |
4097 | if test $ac_cv_have_decl_stpcpy = yes; then | |
705db0b5 | 4098 | |
18569462 AD |
4099 | cat >>confdefs.h <<EOF |
4100 | #define HAVE_DECL_STPCPY 1 | |
705db0b5 AD |
4101 | EOF |
4102 | ||
18569462 AD |
4103 | else |
4104 | cat >>confdefs.h <<EOF | |
4105 | #define HAVE_DECL_STPCPY 0 | |
4106 | EOF | |
705db0b5 | 4107 | |
18569462 | 4108 | fi |
2ce10144 | 4109 | echo "$as_me:4109: checking whether strndup is declared" >&5 |
18569462 AD |
4110 | echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6 |
4111 | if test "${ac_cv_have_decl_strndup+set}" = set; then | |
4112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4113 | else |
18569462 | 4114 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4115 | #line 4115 "configure" |
705db0b5 | 4116 | #include "confdefs.h" |
18569462 AD |
4117 | $ac_includes_default |
4118 | int | |
4119 | main () | |
4120 | { | |
4121 | #ifndef strndup | |
4122 | char *p = (char *) strndup; | |
705db0b5 AD |
4123 | #endif |
4124 | ||
18569462 AD |
4125 | ; |
4126 | return 0; | |
4127 | } | |
4128 | _ACEOF | |
4129 | rm -f conftest.$ac_objext | |
2ce10144 | 4130 | if { (eval echo "$as_me:4130: \"$ac_compile\"") >&5 |
18569462 AD |
4131 | (eval $ac_compile) 2>&5 |
4132 | ac_status=$? | |
2ce10144 | 4133 | echo "$as_me:4133: \$? = $ac_status" >&5 |
18569462 | 4134 | (exit $ac_status); } && |
5141b016 | 4135 | { ac_try='test -s conftest.$ac_objext' |
2ce10144 | 4136 | { (eval echo "$as_me:4136: \"$ac_try\"") >&5 |
18569462 AD |
4137 | (eval $ac_try) 2>&5 |
4138 | ac_status=$? | |
2ce10144 | 4139 | echo "$as_me:4139: \$? = $ac_status" >&5 |
18569462 AD |
4140 | (exit $ac_status); }; }; then |
4141 | ac_cv_have_decl_strndup=yes | |
705db0b5 | 4142 | else |
18569462 AD |
4143 | echo "$as_me: failed program was:" >&5 |
4144 | cat conftest.$ac_ext >&5 | |
4145 | ac_cv_have_decl_strndup=no | |
705db0b5 | 4146 | fi |
18569462 | 4147 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4148 | fi |
2ce10144 | 4149 | echo "$as_me:4149: result: $ac_cv_have_decl_strndup" >&5 |
18569462 AD |
4150 | echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6 |
4151 | if test $ac_cv_have_decl_strndup = yes; then | |
705db0b5 | 4152 | |
18569462 AD |
4153 | cat >>confdefs.h <<EOF |
4154 | #define HAVE_DECL_STRNDUP 1 | |
4155 | EOF | |
705db0b5 | 4156 | |
18569462 AD |
4157 | else |
4158 | cat >>confdefs.h <<EOF | |
4159 | #define HAVE_DECL_STRNDUP 0 | |
4160 | EOF | |
705db0b5 | 4161 | |
18569462 | 4162 | fi |
2ce10144 | 4163 | echo "$as_me:4163: checking whether strnlen is declared" >&5 |
18569462 AD |
4164 | echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6 |
4165 | if test "${ac_cv_have_decl_strnlen+set}" = set; then | |
4166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4167 | else | |
4168 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 4169 | #line 4169 "configure" |
18569462 AD |
4170 | #include "confdefs.h" |
4171 | $ac_includes_default | |
4172 | int | |
4173 | main () | |
4174 | { | |
4175 | #ifndef strnlen | |
4176 | char *p = (char *) strnlen; | |
705db0b5 AD |
4177 | #endif |
4178 | ||
18569462 AD |
4179 | ; |
4180 | return 0; | |
4181 | } | |
4182 | _ACEOF | |
4183 | rm -f conftest.$ac_objext | |
2ce10144 | 4184 | if { (eval echo "$as_me:4184: \"$ac_compile\"") >&5 |
18569462 AD |
4185 | (eval $ac_compile) 2>&5 |
4186 | ac_status=$? | |
2ce10144 | 4187 | echo "$as_me:4187: \$? = $ac_status" >&5 |
18569462 | 4188 | (exit $ac_status); } && |
5141b016 | 4189 | { ac_try='test -s conftest.$ac_objext' |
2ce10144 | 4190 | { (eval echo "$as_me:4190: \"$ac_try\"") >&5 |
18569462 AD |
4191 | (eval $ac_try) 2>&5 |
4192 | ac_status=$? | |
2ce10144 | 4193 | echo "$as_me:4193: \$? = $ac_status" >&5 |
18569462 AD |
4194 | (exit $ac_status); }; }; then |
4195 | ac_cv_have_decl_strnlen=yes | |
705db0b5 | 4196 | else |
18569462 AD |
4197 | echo "$as_me: failed program was:" >&5 |
4198 | cat conftest.$ac_ext >&5 | |
4199 | ac_cv_have_decl_strnlen=no | |
705db0b5 | 4200 | fi |
18569462 | 4201 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4202 | fi |
2ce10144 | 4203 | echo "$as_me:4203: result: $ac_cv_have_decl_strnlen" >&5 |
18569462 AD |
4204 | echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6 |
4205 | if test $ac_cv_have_decl_strnlen = yes; then | |
705db0b5 | 4206 | |
18569462 AD |
4207 | cat >>confdefs.h <<EOF |
4208 | #define HAVE_DECL_STRNLEN 1 | |
705db0b5 AD |
4209 | EOF |
4210 | ||
705db0b5 | 4211 | else |
18569462 AD |
4212 | cat >>confdefs.h <<EOF |
4213 | #define HAVE_DECL_STRNLEN 0 | |
4214 | EOF | |
705db0b5 | 4215 | |
705db0b5 | 4216 | fi |
2ce10144 | 4217 | echo "$as_me:4217: checking whether memchr is declared" >&5 |
18569462 AD |
4218 | echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6 |
4219 | if test "${ac_cv_have_decl_memchr+set}" = set; then | |
4220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4221 | else |
18569462 | 4222 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4223 | #line 4223 "configure" |
705db0b5 | 4224 | #include "confdefs.h" |
18569462 AD |
4225 | $ac_includes_default |
4226 | int | |
705db0b5 AD |
4227 | main () |
4228 | { | |
18569462 AD |
4229 | #ifndef memchr |
4230 | char *p = (char *) memchr; | |
4231 | #endif | |
4232 | ||
4233 | ; | |
4234 | return 0; | |
705db0b5 | 4235 | } |
18569462 AD |
4236 | _ACEOF |
4237 | rm -f conftest.$ac_objext | |
2ce10144 | 4238 | if { (eval echo "$as_me:4238: \"$ac_compile\"") >&5 |
18569462 AD |
4239 | (eval $ac_compile) 2>&5 |
4240 | ac_status=$? | |
2ce10144 | 4241 | echo "$as_me:4241: \$? = $ac_status" >&5 |
18569462 | 4242 | (exit $ac_status); } && |
5141b016 | 4243 | { ac_try='test -s conftest.$ac_objext' |
2ce10144 | 4244 | { (eval echo "$as_me:4244: \"$ac_try\"") >&5 |
18569462 AD |
4245 | (eval $ac_try) 2>&5 |
4246 | ac_status=$? | |
2ce10144 | 4247 | echo "$as_me:4247: \$? = $ac_status" >&5 |
18569462 AD |
4248 | (exit $ac_status); }; }; then |
4249 | ac_cv_have_decl_memchr=yes | |
705db0b5 | 4250 | else |
18569462 AD |
4251 | echo "$as_me: failed program was:" >&5 |
4252 | cat conftest.$ac_ext >&5 | |
4253 | ac_cv_have_decl_memchr=no | |
705db0b5 | 4254 | fi |
18569462 | 4255 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4256 | fi |
2ce10144 | 4257 | echo "$as_me:4257: result: $ac_cv_have_decl_memchr" >&5 |
18569462 AD |
4258 | echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6 |
4259 | if test $ac_cv_have_decl_memchr = yes; then | |
705db0b5 | 4260 | |
18569462 AD |
4261 | cat >>confdefs.h <<EOF |
4262 | #define HAVE_DECL_MEMCHR 1 | |
4263 | EOF | |
705db0b5 | 4264 | |
18569462 AD |
4265 | else |
4266 | cat >>confdefs.h <<EOF | |
4267 | #define HAVE_DECL_MEMCHR 0 | |
705db0b5 AD |
4268 | EOF |
4269 | ||
4270 | fi | |
4271 | ||
459dd1a6 | 4272 | for ac_func in stpcpy strndup strnlen strspn memchr |
705db0b5 | 4273 | do |
459dd1a6 | 4274 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2ce10144 | 4275 | echo "$as_me:4275: checking for $ac_func" >&5 |
18569462 | 4276 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 4277 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
4278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4279 | else | |
4280 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 4281 | #line 4281 "configure" |
705db0b5 AD |
4282 | #include "confdefs.h" |
4283 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 4284 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
4285 | #include <assert.h> |
4286 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
4287 | #ifdef __cplusplus |
4288 | extern "C" | |
4289 | #endif | |
705db0b5 | 4290 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
4291 | builtin and then its argument prototype would still apply. */ |
4292 | char $ac_func (); | |
4293 | char (*f) (); | |
705db0b5 | 4294 | |
18569462 AD |
4295 | int |
4296 | main () | |
4297 | { | |
705db0b5 AD |
4298 | /* The GNU C library defines this for functions which it implements |
4299 | to always fail with ENOSYS. Some functions are actually named | |
4300 | something starting with __ and the normal name is an alias. */ | |
4301 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4302 | choke me | |
4303 | #else | |
18569462 | 4304 | f = $ac_func; |
705db0b5 AD |
4305 | #endif |
4306 | ||
18569462 AD |
4307 | ; |
4308 | return 0; | |
4309 | } | |
4310 | _ACEOF | |
4311 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 4312 | if { (eval echo "$as_me:4312: \"$ac_link\"") >&5 |
18569462 AD |
4313 | (eval $ac_link) 2>&5 |
4314 | ac_status=$? | |
2ce10144 | 4315 | echo "$as_me:4315: \$? = $ac_status" >&5 |
18569462 | 4316 | (exit $ac_status); } && |
5141b016 | 4317 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 4318 | { (eval echo "$as_me:4318: \"$ac_try\"") >&5 |
18569462 AD |
4319 | (eval $ac_try) 2>&5 |
4320 | ac_status=$? | |
2ce10144 | 4321 | echo "$as_me:4321: \$? = $ac_status" >&5 |
18569462 | 4322 | (exit $ac_status); }; }; then |
459dd1a6 | 4323 | eval "$as_ac_var=yes" |
705db0b5 | 4324 | else |
18569462 AD |
4325 | echo "$as_me: failed program was:" >&5 |
4326 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 4327 | eval "$as_ac_var=no" |
705db0b5 | 4328 | fi |
1e24cc5b | 4329 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 4330 | fi |
2ce10144 | 4331 | echo "$as_me:4331: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
4332 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4333 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18569462 | 4334 | cat >>confdefs.h <<EOF |
459dd1a6 | 4335 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
705db0b5 | 4336 | EOF |
18569462 | 4337 | |
705db0b5 | 4338 | else |
18569462 | 4339 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
705db0b5 AD |
4340 | fi |
4341 | done | |
4342 | ||
18569462 | 4343 | cat >>confdefs.h <<EOF |
705db0b5 AD |
4344 | #define HAVE_DONE_WORKING_MALLOC_CHECK 1 |
4345 | EOF | |
4346 | ||
2ce10144 | 4347 | echo "$as_me:4347: checking for working malloc" >&5 |
18569462 AD |
4348 | echo $ECHO_N "checking for working malloc... $ECHO_C" >&6 |
4349 | if test "${jm_cv_func_working_malloc+set}" = set; then | |
4350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
4351 | else |
4352 | if test "$cross_compiling" = yes; then | |
4353 | jm_cv_func_working_malloc=no | |
4354 | else | |
18569462 | 4355 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4356 | #line 4356 "configure" |
705db0b5 AD |
4357 | #include "confdefs.h" |
4358 | ||
4359 | char *malloc (); | |
4360 | int | |
4361 | main () | |
4362 | { | |
4363 | exit (malloc (0) ? 0 : 1); | |
4364 | } | |
18569462 AD |
4365 | |
4366 | _ACEOF | |
4367 | rm -f conftest$ac_exeext | |
2ce10144 | 4368 | if { (eval echo "$as_me:4368: \"$ac_link\"") >&5 |
18569462 AD |
4369 | (eval $ac_link) 2>&5 |
4370 | ac_status=$? | |
2ce10144 | 4371 | echo "$as_me:4371: \$? = $ac_status" >&5 |
5141b016 | 4372 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2ce10144 | 4373 | { (eval echo "$as_me:4373: \"$ac_try\"") >&5 |
18569462 AD |
4374 | (eval $ac_try) 2>&5 |
4375 | ac_status=$? | |
2ce10144 | 4376 | echo "$as_me:4376: \$? = $ac_status" >&5 |
18569462 | 4377 | (exit $ac_status); }; }; then |
705db0b5 AD |
4378 | jm_cv_func_working_malloc=yes |
4379 | else | |
18569462 AD |
4380 | echo "$as_me: program exited with status $ac_status" >&5 |
4381 | echo "$as_me: failed program was:" >&5 | |
4382 | cat conftest.$ac_ext >&5 | |
4383 | jm_cv_func_working_malloc=no | |
705db0b5 | 4384 | fi |
459dd1a6 | 4385 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
4386 | fi |
4387 | ||
705db0b5 | 4388 | fi |
2ce10144 | 4389 | echo "$as_me:4389: result: $jm_cv_func_working_malloc" >&5 |
18569462 | 4390 | echo "${ECHO_T}$jm_cv_func_working_malloc" >&6 |
705db0b5 | 4391 | if test $jm_cv_func_working_malloc = no; then |
18569462 | 4392 | |
705db0b5 | 4393 | LIBOBJS="$LIBOBJS malloc.$ac_objext" |
18569462 AD |
4394 | |
4395 | cat >>confdefs.h <<EOF | |
705db0b5 AD |
4396 | #define malloc rpl_malloc |
4397 | EOF | |
4398 | ||
4399 | fi | |
4400 | ||
18569462 | 4401 | cat >>confdefs.h <<EOF |
705db0b5 AD |
4402 | #define HAVE_DONE_WORKING_REALLOC_CHECK 1 |
4403 | EOF | |
4404 | ||
2ce10144 | 4405 | echo "$as_me:4405: checking for working realloc" >&5 |
18569462 AD |
4406 | echo $ECHO_N "checking for working realloc... $ECHO_C" >&6 |
4407 | if test "${jm_cv_func_working_realloc+set}" = set; then | |
4408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
4409 | else |
4410 | if test "$cross_compiling" = yes; then | |
4411 | jm_cv_func_working_realloc=no | |
4412 | else | |
18569462 | 4413 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4414 | #line 4414 "configure" |
705db0b5 AD |
4415 | #include "confdefs.h" |
4416 | ||
4417 | char *realloc (); | |
4418 | int | |
4419 | main () | |
4420 | { | |
4421 | exit (realloc (0, 0) ? 0 : 1); | |
4422 | } | |
18569462 AD |
4423 | |
4424 | _ACEOF | |
4425 | rm -f conftest$ac_exeext | |
2ce10144 | 4426 | if { (eval echo "$as_me:4426: \"$ac_link\"") >&5 |
18569462 AD |
4427 | (eval $ac_link) 2>&5 |
4428 | ac_status=$? | |
2ce10144 | 4429 | echo "$as_me:4429: \$? = $ac_status" >&5 |
5141b016 | 4430 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2ce10144 | 4431 | { (eval echo "$as_me:4431: \"$ac_try\"") >&5 |
18569462 AD |
4432 | (eval $ac_try) 2>&5 |
4433 | ac_status=$? | |
2ce10144 | 4434 | echo "$as_me:4434: \$? = $ac_status" >&5 |
18569462 | 4435 | (exit $ac_status); }; }; then |
705db0b5 AD |
4436 | jm_cv_func_working_realloc=yes |
4437 | else | |
18569462 AD |
4438 | echo "$as_me: program exited with status $ac_status" >&5 |
4439 | echo "$as_me: failed program was:" >&5 | |
4440 | cat conftest.$ac_ext >&5 | |
4441 | jm_cv_func_working_realloc=no | |
705db0b5 | 4442 | fi |
459dd1a6 | 4443 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
4444 | fi |
4445 | ||
705db0b5 | 4446 | fi |
2ce10144 | 4447 | echo "$as_me:4447: result: $jm_cv_func_working_realloc" >&5 |
18569462 | 4448 | echo "${ECHO_T}$jm_cv_func_working_realloc" >&6 |
705db0b5 | 4449 | if test $jm_cv_func_working_realloc = no; then |
18569462 | 4450 | |
705db0b5 | 4451 | LIBOBJS="$LIBOBJS realloc.$ac_objext" |
18569462 AD |
4452 | |
4453 | cat >>confdefs.h <<EOF | |
705db0b5 AD |
4454 | #define realloc rpl_realloc |
4455 | EOF | |
4456 | ||
4457 | fi | |
4458 | ||
18569462 | 4459 | for ac_func in isascii iswprint mbrtowc |
705db0b5 | 4460 | do |
459dd1a6 | 4461 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2ce10144 | 4462 | echo "$as_me:4462: checking for $ac_func" >&5 |
18569462 | 4463 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 4464 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
4465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4466 | else | |
4467 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 4468 | #line 4468 "configure" |
705db0b5 AD |
4469 | #include "confdefs.h" |
4470 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 4471 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
4472 | #include <assert.h> |
4473 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
4474 | #ifdef __cplusplus |
4475 | extern "C" | |
4476 | #endif | |
705db0b5 | 4477 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
4478 | builtin and then its argument prototype would still apply. */ |
4479 | char $ac_func (); | |
4480 | char (*f) (); | |
705db0b5 | 4481 | |
18569462 AD |
4482 | int |
4483 | main () | |
4484 | { | |
705db0b5 AD |
4485 | /* The GNU C library defines this for functions which it implements |
4486 | to always fail with ENOSYS. Some functions are actually named | |
4487 | something starting with __ and the normal name is an alias. */ | |
4488 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4489 | choke me | |
4490 | #else | |
18569462 | 4491 | f = $ac_func; |
705db0b5 AD |
4492 | #endif |
4493 | ||
18569462 AD |
4494 | ; |
4495 | return 0; | |
4496 | } | |
4497 | _ACEOF | |
4498 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 4499 | if { (eval echo "$as_me:4499: \"$ac_link\"") >&5 |
18569462 AD |
4500 | (eval $ac_link) 2>&5 |
4501 | ac_status=$? | |
2ce10144 | 4502 | echo "$as_me:4502: \$? = $ac_status" >&5 |
18569462 | 4503 | (exit $ac_status); } && |
5141b016 | 4504 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 4505 | { (eval echo "$as_me:4505: \"$ac_try\"") >&5 |
18569462 AD |
4506 | (eval $ac_try) 2>&5 |
4507 | ac_status=$? | |
2ce10144 | 4508 | echo "$as_me:4508: \$? = $ac_status" >&5 |
18569462 | 4509 | (exit $ac_status); }; }; then |
459dd1a6 | 4510 | eval "$as_ac_var=yes" |
18569462 AD |
4511 | else |
4512 | echo "$as_me: failed program was:" >&5 | |
4513 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 4514 | eval "$as_ac_var=no" |
18569462 | 4515 | fi |
1e24cc5b | 4516 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 4517 | fi |
2ce10144 | 4518 | echo "$as_me:4518: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
4519 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4520 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18569462 | 4521 | cat >>confdefs.h <<EOF |
459dd1a6 | 4522 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
705db0b5 | 4523 | EOF |
705db0b5 | 4524 | |
705db0b5 AD |
4525 | fi |
4526 | done | |
4527 | ||
18569462 | 4528 | for ac_header in limits.h stdlib.h string.h wchar.h wctype.h |
705db0b5 | 4529 | do |
459dd1a6 | 4530 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2ce10144 | 4531 | echo "$as_me:4531: checking for $ac_header" >&5 |
18569462 | 4532 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 4533 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 AD |
4534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4535 | else | |
4536 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 4537 | #line 4537 "configure" |
705db0b5 | 4538 | #include "confdefs.h" |
18569462 AD |
4539 | #include <$ac_header> |
4540 | _ACEOF | |
2ce10144 | 4541 | if { (eval echo "$as_me:4541: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 4542 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
4543 | ac_status=$? |
4544 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4545 | rm -f conftest.er1 | |
4546 | cat conftest.err >&5 | |
2ce10144 | 4547 | echo "$as_me:4547: \$? = $ac_status" >&5 |
1e24cc5b | 4548 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
4549 | if test -s conftest.err; then |
4550 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4551 | else | |
4552 | ac_cpp_err= | |
4553 | fi | |
4554 | else | |
4555 | ac_cpp_err=yes | |
4556 | fi | |
4557 | if test -z "$ac_cpp_err"; then | |
459dd1a6 | 4558 | eval "$as_ac_Header=yes" |
18569462 AD |
4559 | else |
4560 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 4561 | cat conftest.$ac_ext >&5 |
459dd1a6 | 4562 | eval "$as_ac_Header=no" |
705db0b5 | 4563 | fi |
18569462 | 4564 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 4565 | fi |
2ce10144 | 4566 | echo "$as_me:4566: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 AD |
4567 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4568 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18569462 | 4569 | cat >>confdefs.h <<EOF |
459dd1a6 | 4570 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
705db0b5 | 4571 | EOF |
18569462 | 4572 | |
705db0b5 AD |
4573 | fi |
4574 | done | |
4575 | ||
2ce10144 | 4576 | echo "$as_me:4576: checking for ANSI C header files" >&5 |
18569462 AD |
4577 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4578 | if test "${ac_cv_header_stdc+set}" = set; then | |
4579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4580 | else |
18569462 | 4581 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4582 | #line 4582 "configure" |
705db0b5 AD |
4583 | #include "confdefs.h" |
4584 | #include <stdlib.h> | |
4585 | #include <stdarg.h> | |
4586 | #include <string.h> | |
4587 | #include <float.h> | |
18569462 AD |
4588 | |
4589 | _ACEOF | |
2ce10144 | 4590 | if { (eval echo "$as_me:4590: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 4591 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
4592 | ac_status=$? |
4593 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4594 | rm -f conftest.er1 | |
4595 | cat conftest.err >&5 | |
2ce10144 | 4596 | echo "$as_me:4596: \$? = $ac_status" >&5 |
1e24cc5b | 4597 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
4598 | if test -s conftest.err; then |
4599 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4600 | else | |
4601 | ac_cpp_err= | |
4602 | fi | |
4603 | else | |
4604 | ac_cpp_err=yes | |
4605 | fi | |
4606 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
4607 | ac_cv_header_stdc=yes |
4608 | else | |
18569462 | 4609 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 4610 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
4611 | ac_cv_header_stdc=no |
4612 | fi | |
18569462 | 4613 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
4614 | |
4615 | if test $ac_cv_header_stdc = yes; then | |
4616 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 4617 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4618 | #line 4618 "configure" |
705db0b5 AD |
4619 | #include "confdefs.h" |
4620 | #include <string.h> | |
18569462 AD |
4621 | |
4622 | _ACEOF | |
705db0b5 AD |
4623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4624 | egrep "memchr" >/dev/null 2>&1; then | |
4625 | : | |
4626 | else | |
705db0b5 AD |
4627 | ac_cv_header_stdc=no |
4628 | fi | |
4629 | rm -f conftest* | |
4630 | ||
4631 | fi | |
4632 | ||
4633 | if test $ac_cv_header_stdc = yes; then | |
4634 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 4635 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4636 | #line 4636 "configure" |
705db0b5 AD |
4637 | #include "confdefs.h" |
4638 | #include <stdlib.h> | |
18569462 AD |
4639 | |
4640 | _ACEOF | |
705db0b5 AD |
4641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4642 | egrep "free" >/dev/null 2>&1; then | |
4643 | : | |
4644 | else | |
705db0b5 AD |
4645 | ac_cv_header_stdc=no |
4646 | fi | |
4647 | rm -f conftest* | |
4648 | ||
4649 | fi | |
4650 | ||
4651 | if test $ac_cv_header_stdc = yes; then | |
4652 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 4653 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
4654 | : |
4655 | else | |
18569462 | 4656 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4657 | #line 4657 "configure" |
705db0b5 AD |
4658 | #include "confdefs.h" |
4659 | #include <ctype.h> | |
18569462 AD |
4660 | #if ((' ' & 0x0FF) == 0x020) |
4661 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4662 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4663 | #else | |
4664 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4665 | || ('j' <= (c) && (c) <= 'r') \ | |
4666 | || ('s' <= (c) && (c) <= 'z')) | |
4667 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4668 | #endif | |
705db0b5 | 4669 | |
18569462 AD |
4670 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4671 | int | |
4672 | main () | |
4673 | { | |
4674 | int i; | |
4675 | for (i = 0; i < 256; i++) | |
4676 | if (XOR (islower (i), ISLOWER (i)) | |
4677 | || toupper (i) != TOUPPER (i)) | |
4678 | exit(2); | |
4679 | exit (0); | |
4680 | } | |
4681 | _ACEOF | |
4682 | rm -f conftest$ac_exeext | |
2ce10144 | 4683 | if { (eval echo "$as_me:4683: \"$ac_link\"") >&5 |
18569462 AD |
4684 | (eval $ac_link) 2>&5 |
4685 | ac_status=$? | |
2ce10144 | 4686 | echo "$as_me:4686: \$? = $ac_status" >&5 |
5141b016 | 4687 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2ce10144 | 4688 | { (eval echo "$as_me:4688: \"$ac_try\"") >&5 |
18569462 AD |
4689 | (eval $ac_try) 2>&5 |
4690 | ac_status=$? | |
2ce10144 | 4691 | echo "$as_me:4691: \$? = $ac_status" >&5 |
18569462 | 4692 | (exit $ac_status); }; }; then |
705db0b5 AD |
4693 | : |
4694 | else | |
18569462 AD |
4695 | echo "$as_me: program exited with status $ac_status" >&5 |
4696 | echo "$as_me: failed program was:" >&5 | |
4697 | cat conftest.$ac_ext >&5 | |
4698 | ac_cv_header_stdc=no | |
705db0b5 | 4699 | fi |
459dd1a6 | 4700 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4701 | fi |
705db0b5 AD |
4702 | fi |
4703 | fi | |
2ce10144 | 4704 | echo "$as_me:4704: result: $ac_cv_header_stdc" >&5 |
18569462 | 4705 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 4706 | if test $ac_cv_header_stdc = yes; then |
18569462 AD |
4707 | |
4708 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4709 | #define STDC_HEADERS 1 |
4710 | EOF | |
4711 | ||
4712 | fi | |
4713 | ||
2ce10144 | 4714 | echo "$as_me:4714: checking whether backslash-a works in strings" >&5 |
18569462 AD |
4715 | echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6 |
4716 | if test "${ac_cv_c_backslash_a+set}" = set; then | |
4717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4718 | else |
18569462 | 4719 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4720 | #line 4720 "configure" |
705db0b5 AD |
4721 | #include "confdefs.h" |
4722 | ||
18569462 AD |
4723 | int |
4724 | main () | |
4725 | { | |
705db0b5 AD |
4726 | |
4727 | #if '\a' == 'a' | |
4728 | syntax error; | |
4729 | #endif | |
4730 | char buf['\a' == 'a' ? -1 : 1]; | |
4731 | buf[0] = '\a'; | |
4732 | return buf[0] != "\a"[0]; | |
18569462 AD |
4733 | |
4734 | ; | |
4735 | return 0; | |
4736 | } | |
4737 | _ACEOF | |
4738 | rm -f conftest.$ac_objext | |
2ce10144 | 4739 | if { (eval echo "$as_me:4739: \"$ac_compile\"") >&5 |
18569462 AD |
4740 | (eval $ac_compile) 2>&5 |
4741 | ac_status=$? | |
2ce10144 | 4742 | echo "$as_me:4742: \$? = $ac_status" >&5 |
18569462 | 4743 | (exit $ac_status); } && |
5141b016 | 4744 | { ac_try='test -s conftest.$ac_objext' |
2ce10144 | 4745 | { (eval echo "$as_me:4745: \"$ac_try\"") >&5 |
18569462 AD |
4746 | (eval $ac_try) 2>&5 |
4747 | ac_status=$? | |
2ce10144 | 4748 | echo "$as_me:4748: \$? = $ac_status" >&5 |
18569462 | 4749 | (exit $ac_status); }; }; then |
705db0b5 AD |
4750 | ac_cv_c_backslash_a=yes |
4751 | else | |
18569462 AD |
4752 | echo "$as_me: failed program was:" >&5 |
4753 | cat conftest.$ac_ext >&5 | |
4754 | ac_cv_c_backslash_a=no | |
705db0b5 | 4755 | fi |
18569462 | 4756 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4757 | fi |
2ce10144 | 4758 | echo "$as_me:4758: result: $ac_cv_c_backslash_a" >&5 |
18569462 | 4759 | echo "${ECHO_T}$ac_cv_c_backslash_a" >&6 |
705db0b5 | 4760 | if test $ac_cv_c_backslash_a = yes; then |
18569462 AD |
4761 | |
4762 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4763 | #define HAVE_C_BACKSLASH_A 1 |
4764 | EOF | |
4765 | ||
4766 | fi | |
4767 | ||
18569462 | 4768 | for ac_header in stdlib.h |
705db0b5 | 4769 | do |
459dd1a6 | 4770 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2ce10144 | 4771 | echo "$as_me:4771: checking for $ac_header" >&5 |
18569462 | 4772 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 4773 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 AD |
4774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4775 | else | |
4776 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 4777 | #line 4777 "configure" |
705db0b5 | 4778 | #include "confdefs.h" |
18569462 AD |
4779 | #include <$ac_header> |
4780 | _ACEOF | |
2ce10144 | 4781 | if { (eval echo "$as_me:4781: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 4782 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
4783 | ac_status=$? |
4784 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4785 | rm -f conftest.er1 | |
4786 | cat conftest.err >&5 | |
2ce10144 | 4787 | echo "$as_me:4787: \$? = $ac_status" >&5 |
1e24cc5b | 4788 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
4789 | if test -s conftest.err; then |
4790 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4791 | else | |
4792 | ac_cpp_err= | |
4793 | fi | |
4794 | else | |
4795 | ac_cpp_err=yes | |
4796 | fi | |
4797 | if test -z "$ac_cpp_err"; then | |
459dd1a6 | 4798 | eval "$as_ac_Header=yes" |
18569462 AD |
4799 | else |
4800 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 4801 | cat conftest.$ac_ext >&5 |
459dd1a6 | 4802 | eval "$as_ac_Header=no" |
705db0b5 | 4803 | fi |
18569462 | 4804 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 4805 | fi |
2ce10144 | 4806 | echo "$as_me:4806: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 AD |
4807 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4808 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18569462 | 4809 | cat >>confdefs.h <<EOF |
459dd1a6 | 4810 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
705db0b5 | 4811 | EOF |
18569462 | 4812 | |
705db0b5 AD |
4813 | fi |
4814 | done | |
4815 | ||
2ce10144 | 4816 | echo "$as_me:4816: checking for mbstate_t" >&5 |
18569462 AD |
4817 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 |
4818 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
4819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4820 | else |
18569462 | 4821 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4822 | #line 4822 "configure" |
705db0b5 AD |
4823 | #include "confdefs.h" |
4824 | ||
4825 | #if HAVE_STDLIB_H | |
4826 | # include <stdlib.h> | |
4827 | #endif | |
4828 | #include <wchar.h> | |
18569462 AD |
4829 | int |
4830 | main () | |
4831 | { | |
705db0b5 | 4832 | mbstate_t x; return sizeof x; |
18569462 AD |
4833 | ; |
4834 | return 0; | |
4835 | } | |
4836 | _ACEOF | |
4837 | rm -f conftest.$ac_objext | |
2ce10144 | 4838 | if { (eval echo "$as_me:4838: \"$ac_compile\"") >&5 |
18569462 AD |
4839 | (eval $ac_compile) 2>&5 |
4840 | ac_status=$? | |
2ce10144 | 4841 | echo "$as_me:4841: \$? = $ac_status" >&5 |
18569462 | 4842 | (exit $ac_status); } && |
5141b016 | 4843 | { ac_try='test -s conftest.$ac_objext' |
2ce10144 | 4844 | { (eval echo "$as_me:4844: \"$ac_try\"") >&5 |
18569462 AD |
4845 | (eval $ac_try) 2>&5 |
4846 | ac_status=$? | |
2ce10144 | 4847 | echo "$as_me:4847: \$? = $ac_status" >&5 |
18569462 | 4848 | (exit $ac_status); }; }; then |
705db0b5 AD |
4849 | ac_cv_type_mbstate_t=yes |
4850 | else | |
18569462 AD |
4851 | echo "$as_me: failed program was:" >&5 |
4852 | cat conftest.$ac_ext >&5 | |
4853 | ac_cv_type_mbstate_t=no | |
705db0b5 | 4854 | fi |
18569462 | 4855 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4856 | fi |
2ce10144 | 4857 | echo "$as_me:4857: result: $ac_cv_type_mbstate_t" >&5 |
18569462 | 4858 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 |
705db0b5 | 4859 | if test $ac_cv_type_mbstate_t = no; then |
18569462 AD |
4860 | |
4861 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4862 | #define mbstate_t int |
4863 | EOF | |
4864 | ||
4865 | fi | |
705db0b5 | 4866 | |
2ce10144 | 4867 | echo "$as_me:4867: checking for function prototypes" >&5 |
18569462 | 4868 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
705db0b5 | 4869 | if test "$am_cv_prog_cc_stdc" != no; then |
2ce10144 | 4870 | echo "$as_me:4870: result: yes" >&5 |
18569462 AD |
4871 | echo "${ECHO_T}yes" >&6 |
4872 | ||
4873 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4874 | #define PROTOTYPES 1 |
4875 | EOF | |
4876 | ||
4877 | U= ANSI2KNR= | |
4878 | else | |
2ce10144 | 4879 | echo "$as_me:4879: result: no" >&5 |
18569462 | 4880 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
4881 | U=_ ANSI2KNR=./ansi2knr |
4882 | # Ensure some checks needed by ansi2knr itself. | |
2ce10144 | 4883 | echo "$as_me:4883: checking for ANSI C header files" >&5 |
18569462 AD |
4884 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4885 | if test "${ac_cv_header_stdc+set}" = set; then | |
4886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4887 | else |
18569462 | 4888 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4889 | #line 4889 "configure" |
705db0b5 AD |
4890 | #include "confdefs.h" |
4891 | #include <stdlib.h> | |
4892 | #include <stdarg.h> | |
4893 | #include <string.h> | |
4894 | #include <float.h> | |
18569462 AD |
4895 | |
4896 | _ACEOF | |
2ce10144 | 4897 | if { (eval echo "$as_me:4897: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 4898 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
4899 | ac_status=$? |
4900 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4901 | rm -f conftest.er1 | |
4902 | cat conftest.err >&5 | |
2ce10144 | 4903 | echo "$as_me:4903: \$? = $ac_status" >&5 |
1e24cc5b | 4904 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
4905 | if test -s conftest.err; then |
4906 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4907 | else | |
4908 | ac_cpp_err= | |
4909 | fi | |
4910 | else | |
4911 | ac_cpp_err=yes | |
4912 | fi | |
4913 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
4914 | ac_cv_header_stdc=yes |
4915 | else | |
18569462 | 4916 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 4917 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
4918 | ac_cv_header_stdc=no |
4919 | fi | |
18569462 | 4920 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
4921 | |
4922 | if test $ac_cv_header_stdc = yes; then | |
4923 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 4924 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4925 | #line 4925 "configure" |
705db0b5 AD |
4926 | #include "confdefs.h" |
4927 | #include <string.h> | |
18569462 AD |
4928 | |
4929 | _ACEOF | |
705db0b5 AD |
4930 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4931 | egrep "memchr" >/dev/null 2>&1; then | |
4932 | : | |
4933 | else | |
705db0b5 AD |
4934 | ac_cv_header_stdc=no |
4935 | fi | |
4936 | rm -f conftest* | |
4937 | ||
4938 | fi | |
4939 | ||
4940 | if test $ac_cv_header_stdc = yes; then | |
4941 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 4942 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4943 | #line 4943 "configure" |
705db0b5 AD |
4944 | #include "confdefs.h" |
4945 | #include <stdlib.h> | |
18569462 AD |
4946 | |
4947 | _ACEOF | |
705db0b5 AD |
4948 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4949 | egrep "free" >/dev/null 2>&1; then | |
4950 | : | |
4951 | else | |
705db0b5 AD |
4952 | ac_cv_header_stdc=no |
4953 | fi | |
4954 | rm -f conftest* | |
4955 | ||
4956 | fi | |
4957 | ||
4958 | if test $ac_cv_header_stdc = yes; then | |
4959 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 4960 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
4961 | : |
4962 | else | |
18569462 | 4963 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 4964 | #line 4964 "configure" |
705db0b5 AD |
4965 | #include "confdefs.h" |
4966 | #include <ctype.h> | |
18569462 AD |
4967 | #if ((' ' & 0x0FF) == 0x020) |
4968 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4969 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4970 | #else | |
4971 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4972 | || ('j' <= (c) && (c) <= 'r') \ | |
4973 | || ('s' <= (c) && (c) <= 'z')) | |
4974 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4975 | #endif | |
705db0b5 | 4976 | |
18569462 AD |
4977 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4978 | int | |
4979 | main () | |
4980 | { | |
4981 | int i; | |
4982 | for (i = 0; i < 256; i++) | |
4983 | if (XOR (islower (i), ISLOWER (i)) | |
4984 | || toupper (i) != TOUPPER (i)) | |
4985 | exit(2); | |
4986 | exit (0); | |
4987 | } | |
4988 | _ACEOF | |
4989 | rm -f conftest$ac_exeext | |
2ce10144 | 4990 | if { (eval echo "$as_me:4990: \"$ac_link\"") >&5 |
18569462 AD |
4991 | (eval $ac_link) 2>&5 |
4992 | ac_status=$? | |
2ce10144 | 4993 | echo "$as_me:4993: \$? = $ac_status" >&5 |
5141b016 | 4994 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2ce10144 | 4995 | { (eval echo "$as_me:4995: \"$ac_try\"") >&5 |
18569462 AD |
4996 | (eval $ac_try) 2>&5 |
4997 | ac_status=$? | |
2ce10144 | 4998 | echo "$as_me:4998: \$? = $ac_status" >&5 |
18569462 | 4999 | (exit $ac_status); }; }; then |
705db0b5 AD |
5000 | : |
5001 | else | |
18569462 AD |
5002 | echo "$as_me: program exited with status $ac_status" >&5 |
5003 | echo "$as_me: failed program was:" >&5 | |
5004 | cat conftest.$ac_ext >&5 | |
5005 | ac_cv_header_stdc=no | |
705db0b5 | 5006 | fi |
459dd1a6 | 5007 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 5008 | fi |
705db0b5 AD |
5009 | fi |
5010 | fi | |
2ce10144 | 5011 | echo "$as_me:5011: result: $ac_cv_header_stdc" >&5 |
18569462 | 5012 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 5013 | if test $ac_cv_header_stdc = yes; then |
18569462 AD |
5014 | |
5015 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
5016 | #define STDC_HEADERS 1 |
5017 | EOF | |
5018 | ||
5019 | fi | |
5020 | ||
18569462 | 5021 | for ac_header in string.h |
705db0b5 | 5022 | do |
459dd1a6 | 5023 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2ce10144 | 5024 | echo "$as_me:5024: checking for $ac_header" >&5 |
18569462 | 5025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 5026 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 AD |
5027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5028 | else | |
5029 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5030 | #line 5030 "configure" |
705db0b5 | 5031 | #include "confdefs.h" |
18569462 AD |
5032 | #include <$ac_header> |
5033 | _ACEOF | |
2ce10144 | 5034 | if { (eval echo "$as_me:5034: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 5035 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
5036 | ac_status=$? |
5037 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5038 | rm -f conftest.er1 | |
5039 | cat conftest.err >&5 | |
2ce10144 | 5040 | echo "$as_me:5040: \$? = $ac_status" >&5 |
1e24cc5b | 5041 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
5042 | if test -s conftest.err; then |
5043 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5044 | else | |
5045 | ac_cpp_err= | |
5046 | fi | |
5047 | else | |
5048 | ac_cpp_err=yes | |
5049 | fi | |
5050 | if test -z "$ac_cpp_err"; then | |
459dd1a6 | 5051 | eval "$as_ac_Header=yes" |
18569462 AD |
5052 | else |
5053 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 5054 | cat conftest.$ac_ext >&5 |
459dd1a6 | 5055 | eval "$as_ac_Header=no" |
705db0b5 | 5056 | fi |
18569462 | 5057 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 5058 | fi |
2ce10144 | 5059 | echo "$as_me:5059: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 AD |
5060 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5061 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18569462 | 5062 | cat >>confdefs.h <<EOF |
459dd1a6 | 5063 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
705db0b5 | 5064 | EOF |
18569462 | 5065 | |
705db0b5 AD |
5066 | fi |
5067 | done | |
5068 | ||
5069 | fi | |
5070 | ||
5141b016 AD |
5071 | for ac_func in strerror strerror_r vprintf doprnt |
5072 | do | |
459dd1a6 | 5073 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2ce10144 | 5074 | echo "$as_me:5074: checking for $ac_func" >&5 |
5141b016 | 5075 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 5076 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 | 5077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 | 5078 | else |
18569462 | 5079 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 5080 | #line 5080 "configure" |
705db0b5 | 5081 | #include "confdefs.h" |
5141b016 AD |
5082 | /* System header to define __stub macros and hopefully few prototypes, |
5083 | which can conflict with char $ac_func (); below. */ | |
5084 | #include <assert.h> | |
5085 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5086 | #ifdef __cplusplus | |
5087 | extern "C" | |
5088 | #endif | |
5089 | /* We use char because int might match the return type of a gcc2 | |
5090 | builtin and then its argument prototype would still apply. */ | |
5091 | char $ac_func (); | |
5092 | char (*f) (); | |
5093 | ||
18569462 AD |
5094 | int |
5095 | main () | |
5096 | { | |
5141b016 AD |
5097 | /* The GNU C library defines this for functions which it implements |
5098 | to always fail with ENOSYS. Some functions are actually named | |
5099 | something starting with __ and the normal name is an alias. */ | |
5100 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5101 | choke me | |
5102 | #else | |
5103 | f = $ac_func; | |
5104 | #endif | |
5105 | ||
18569462 AD |
5106 | ; |
5107 | return 0; | |
5108 | } | |
5109 | _ACEOF | |
5141b016 | 5110 | rm -f conftest.$ac_objext conftest$ac_exeext |
2ce10144 | 5111 | if { (eval echo "$as_me:5111: \"$ac_link\"") >&5 |
5141b016 | 5112 | (eval $ac_link) 2>&5 |
18569462 | 5113 | ac_status=$? |
2ce10144 | 5114 | echo "$as_me:5114: \$? = $ac_status" >&5 |
18569462 | 5115 | (exit $ac_status); } && |
5141b016 | 5116 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 5117 | { (eval echo "$as_me:5117: \"$ac_try\"") >&5 |
18569462 AD |
5118 | (eval $ac_try) 2>&5 |
5119 | ac_status=$? | |
2ce10144 | 5120 | echo "$as_me:5120: \$? = $ac_status" >&5 |
18569462 | 5121 | (exit $ac_status); }; }; then |
459dd1a6 | 5122 | eval "$as_ac_var=yes" |
705db0b5 | 5123 | else |
18569462 AD |
5124 | echo "$as_me: failed program was:" >&5 |
5125 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 5126 | eval "$as_ac_var=no" |
705db0b5 | 5127 | fi |
1e24cc5b | 5128 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 5129 | fi |
2ce10144 | 5130 | echo "$as_me:5130: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
5131 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5132 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5141b016 | 5133 | cat >>confdefs.h <<EOF |
459dd1a6 | 5134 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
705db0b5 AD |
5135 | EOF |
5136 | ||
5137 | fi | |
5141b016 | 5138 | done |
705db0b5 | 5139 | |
2ce10144 | 5140 | echo "$as_me:5140: checking for ANSI C header files" >&5 |
5141b016 AD |
5141 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5142 | if test "${ac_cv_header_stdc+set}" = set; then | |
18569462 AD |
5143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5144 | else | |
5145 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5146 | #line 5146 "configure" |
18569462 | 5147 | #include "confdefs.h" |
5141b016 AD |
5148 | #include <stdlib.h> |
5149 | #include <stdarg.h> | |
5150 | #include <string.h> | |
5151 | #include <float.h> | |
5152 | ||
18569462 | 5153 | _ACEOF |
2ce10144 | 5154 | if { (eval echo "$as_me:5154: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 5155 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 | 5156 | ac_status=$? |
5141b016 AD |
5157 | egrep -v '^ *\+' conftest.er1 >conftest.err |
5158 | rm -f conftest.er1 | |
5159 | cat conftest.err >&5 | |
2ce10144 | 5160 | echo "$as_me:5160: \$? = $ac_status" >&5 |
1e24cc5b | 5161 | (exit $ac_status); } >/dev/null; then |
5141b016 AD |
5162 | if test -s conftest.err; then |
5163 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5164 | else | |
5165 | ac_cpp_err= | |
5166 | fi | |
705db0b5 | 5167 | else |
5141b016 | 5168 | ac_cpp_err=yes |
705db0b5 | 5169 | fi |
5141b016 AD |
5170 | if test -z "$ac_cpp_err"; then |
5171 | ac_cv_header_stdc=yes | |
18569462 | 5172 | else |
5141b016 AD |
5173 | echo "$as_me: failed program was:" >&5 |
5174 | cat conftest.$ac_ext >&5 | |
5175 | ac_cv_header_stdc=no | |
5176 | fi | |
5177 | rm -f conftest.err conftest.$ac_ext | |
18569462 | 5178 | |
5141b016 AD |
5179 | if test $ac_cv_header_stdc = yes; then |
5180 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5181 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5182 | #line 5182 "configure" |
5141b016 AD |
5183 | #include "confdefs.h" |
5184 | #include <string.h> | |
5185 | ||
5186 | _ACEOF | |
5187 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5188 | egrep "memchr" >/dev/null 2>&1; then | |
5189 | : | |
5190 | else | |
5191 | ac_cv_header_stdc=no | |
5192 | fi | |
5193 | rm -f conftest* | |
5194 | ||
5195 | fi | |
5196 | ||
5197 | if test $ac_cv_header_stdc = yes; then | |
5198 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5199 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5200 | #line 5200 "configure" |
5141b016 AD |
5201 | #include "confdefs.h" |
5202 | #include <stdlib.h> | |
5203 | ||
5204 | _ACEOF | |
5205 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5206 | egrep "free" >/dev/null 2>&1; then | |
5207 | : | |
5208 | else | |
5209 | ac_cv_header_stdc=no | |
5210 | fi | |
5211 | rm -f conftest* | |
5212 | ||
5213 | fi | |
5214 | ||
5215 | if test $ac_cv_header_stdc = yes; then | |
5216 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5217 | if test "$cross_compiling" = yes; then | |
5218 | : | |
5219 | else | |
5220 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5221 | #line 5221 "configure" |
5141b016 AD |
5222 | #include "confdefs.h" |
5223 | #include <ctype.h> | |
5224 | #if ((' ' & 0x0FF) == 0x020) | |
5225 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5226 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5227 | #else | |
5228 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
5229 | || ('j' <= (c) && (c) <= 'r') \ | |
5230 | || ('s' <= (c) && (c) <= 'z')) | |
5231 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5232 | #endif | |
5233 | ||
5234 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5235 | int | |
5236 | main () | |
5237 | { | |
5238 | int i; | |
5239 | for (i = 0; i < 256; i++) | |
5240 | if (XOR (islower (i), ISLOWER (i)) | |
5241 | || toupper (i) != TOUPPER (i)) | |
5242 | exit(2); | |
5243 | exit (0); | |
5244 | } | |
5245 | _ACEOF | |
5246 | rm -f conftest$ac_exeext | |
2ce10144 | 5247 | if { (eval echo "$as_me:5247: \"$ac_link\"") >&5 |
5141b016 AD |
5248 | (eval $ac_link) 2>&5 |
5249 | ac_status=$? | |
2ce10144 | 5250 | echo "$as_me:5250: \$? = $ac_status" >&5 |
5141b016 | 5251 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2ce10144 | 5252 | { (eval echo "$as_me:5252: \"$ac_try\"") >&5 |
5141b016 AD |
5253 | (eval $ac_try) 2>&5 |
5254 | ac_status=$? | |
2ce10144 | 5255 | echo "$as_me:5255: \$? = $ac_status" >&5 |
5141b016 AD |
5256 | (exit $ac_status); }; }; then |
5257 | : | |
5258 | else | |
5259 | echo "$as_me: program exited with status $ac_status" >&5 | |
5260 | echo "$as_me: failed program was:" >&5 | |
5261 | cat conftest.$ac_ext >&5 | |
5262 | ac_cv_header_stdc=no | |
5263 | fi | |
459dd1a6 | 5264 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5141b016 AD |
5265 | fi |
5266 | fi | |
5267 | fi | |
2ce10144 | 5268 | echo "$as_me:5268: result: $ac_cv_header_stdc" >&5 |
5141b016 AD |
5269 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
5270 | if test $ac_cv_header_stdc = yes; then | |
5271 | ||
5272 | cat >>confdefs.h <<\EOF | |
5273 | #define STDC_HEADERS 1 | |
5274 | EOF | |
5275 | ||
5276 | fi | |
5277 | ||
2ce10144 | 5278 | echo "$as_me:5278: checking whether strerror_r is declared" >&5 |
5141b016 AD |
5279 | echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6 |
5280 | if test "${ac_cv_have_decl_strerror_r+set}" = set; then | |
5281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5282 | else | |
5283 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5284 | #line 5284 "configure" |
5141b016 AD |
5285 | #include "confdefs.h" |
5286 | $ac_includes_default | |
5287 | int | |
5288 | main () | |
5289 | { | |
5290 | #ifndef strerror_r | |
5291 | char *p = (char *) strerror_r; | |
5292 | #endif | |
5293 | ||
5294 | ; | |
5295 | return 0; | |
5296 | } | |
5297 | _ACEOF | |
5298 | rm -f conftest.$ac_objext | |
2ce10144 | 5299 | if { (eval echo "$as_me:5299: \"$ac_compile\"") >&5 |
5141b016 AD |
5300 | (eval $ac_compile) 2>&5 |
5301 | ac_status=$? | |
2ce10144 | 5302 | echo "$as_me:5302: \$? = $ac_status" >&5 |
5141b016 AD |
5303 | (exit $ac_status); } && |
5304 | { ac_try='test -s conftest.$ac_objext' | |
2ce10144 | 5305 | { (eval echo "$as_me:5305: \"$ac_try\"") >&5 |
5141b016 AD |
5306 | (eval $ac_try) 2>&5 |
5307 | ac_status=$? | |
2ce10144 | 5308 | echo "$as_me:5308: \$? = $ac_status" >&5 |
5141b016 AD |
5309 | (exit $ac_status); }; }; then |
5310 | ac_cv_have_decl_strerror_r=yes | |
5311 | else | |
5312 | echo "$as_me: failed program was:" >&5 | |
5313 | cat conftest.$ac_ext >&5 | |
5314 | ac_cv_have_decl_strerror_r=no | |
5315 | fi | |
5316 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5317 | fi | |
2ce10144 | 5318 | echo "$as_me:5318: result: $ac_cv_have_decl_strerror_r" >&5 |
5141b016 AD |
5319 | echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6 |
5320 | if test $ac_cv_have_decl_strerror_r = yes; then | |
5321 | ||
5322 | cat >>confdefs.h <<EOF | |
5323 | #define HAVE_DECL_STRERROR_R 1 | |
5324 | EOF | |
5325 | ||
5326 | else | |
5327 | cat >>confdefs.h <<EOF | |
5328 | #define HAVE_DECL_STRERROR_R 0 | |
5329 | EOF | |
5330 | ||
5331 | fi | |
5332 | ||
5333 | for ac_func in strerror_r | |
5334 | do | |
459dd1a6 | 5335 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2ce10144 | 5336 | echo "$as_me:5336: checking for $ac_func" >&5 |
5141b016 | 5337 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 5338 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
5141b016 AD |
5339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5340 | else | |
5341 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5342 | #line 5342 "configure" |
5141b016 AD |
5343 | #include "confdefs.h" |
5344 | /* System header to define __stub macros and hopefully few prototypes, | |
5345 | which can conflict with char $ac_func (); below. */ | |
5346 | #include <assert.h> | |
5347 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5348 | #ifdef __cplusplus | |
5349 | extern "C" | |
5350 | #endif | |
5351 | /* We use char because int might match the return type of a gcc2 | |
5352 | builtin and then its argument prototype would still apply. */ | |
5353 | char $ac_func (); | |
5354 | char (*f) (); | |
5355 | ||
5356 | int | |
5357 | main () | |
5358 | { | |
5359 | /* The GNU C library defines this for functions which it implements | |
5360 | to always fail with ENOSYS. Some functions are actually named | |
5361 | something starting with __ and the normal name is an alias. */ | |
5362 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5363 | choke me | |
5364 | #else | |
5365 | f = $ac_func; | |
5366 | #endif | |
5367 | ||
5368 | ; | |
5369 | return 0; | |
5370 | } | |
5371 | _ACEOF | |
5372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 5373 | if { (eval echo "$as_me:5373: \"$ac_link\"") >&5 |
5141b016 AD |
5374 | (eval $ac_link) 2>&5 |
5375 | ac_status=$? | |
2ce10144 | 5376 | echo "$as_me:5376: \$? = $ac_status" >&5 |
5141b016 AD |
5377 | (exit $ac_status); } && |
5378 | { ac_try='test -s conftest$ac_exeext' | |
2ce10144 | 5379 | { (eval echo "$as_me:5379: \"$ac_try\"") >&5 |
5141b016 AD |
5380 | (eval $ac_try) 2>&5 |
5381 | ac_status=$? | |
2ce10144 | 5382 | echo "$as_me:5382: \$? = $ac_status" >&5 |
5141b016 | 5383 | (exit $ac_status); }; }; then |
459dd1a6 | 5384 | eval "$as_ac_var=yes" |
5141b016 AD |
5385 | else |
5386 | echo "$as_me: failed program was:" >&5 | |
5387 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 5388 | eval "$as_ac_var=no" |
5141b016 | 5389 | fi |
1e24cc5b | 5390 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5141b016 | 5391 | fi |
2ce10144 | 5392 | echo "$as_me:5392: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
5393 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5394 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5141b016 | 5395 | cat >>confdefs.h <<EOF |
459dd1a6 | 5396 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5141b016 AD |
5397 | EOF |
5398 | ||
5399 | fi | |
5400 | done | |
5401 | ||
5402 | if test $ac_cv_func_strerror_r = yes; then | |
5403 | ||
5404 | for ac_header in string.h | |
5405 | do | |
459dd1a6 | 5406 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2ce10144 | 5407 | echo "$as_me:5407: checking for $ac_header" >&5 |
5141b016 | 5408 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 5409 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5141b016 AD |
5410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5411 | else | |
5412 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5413 | #line 5413 "configure" |
5141b016 AD |
5414 | #include "confdefs.h" |
5415 | #include <$ac_header> | |
5416 | _ACEOF | |
2ce10144 | 5417 | if { (eval echo "$as_me:5417: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 5418 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5141b016 AD |
5419 | ac_status=$? |
5420 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5421 | rm -f conftest.er1 | |
5422 | cat conftest.err >&5 | |
2ce10144 | 5423 | echo "$as_me:5423: \$? = $ac_status" >&5 |
1e24cc5b | 5424 | (exit $ac_status); } >/dev/null; then |
5141b016 AD |
5425 | if test -s conftest.err; then |
5426 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5427 | else | |
5428 | ac_cpp_err= | |
5429 | fi | |
5430 | else | |
5431 | ac_cpp_err=yes | |
5432 | fi | |
5433 | if test -z "$ac_cpp_err"; then | |
459dd1a6 | 5434 | eval "$as_ac_Header=yes" |
5141b016 AD |
5435 | else |
5436 | echo "$as_me: failed program was:" >&5 | |
5437 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 5438 | eval "$as_ac_Header=no" |
5141b016 AD |
5439 | fi |
5440 | rm -f conftest.err conftest.$ac_ext | |
5441 | fi | |
2ce10144 | 5442 | echo "$as_me:5442: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 AD |
5443 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5444 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5141b016 | 5445 | cat >>confdefs.h <<EOF |
459dd1a6 | 5446 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5141b016 AD |
5447 | EOF |
5448 | ||
5449 | fi | |
5450 | done | |
5451 | ||
2ce10144 | 5452 | echo "$as_me:5452: checking for working strerror_r" >&5 |
5141b016 AD |
5453 | echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6 |
5454 | if test "${ac_cv_func_strerror_r_works+set}" = set; then | |
5455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5456 | else | |
5457 | ||
5458 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5459 | #line 5459 "configure" |
5141b016 AD |
5460 | #include "confdefs.h" |
5461 | ||
5462 | # include <stdio.h> | |
5463 | # if HAVE_STRING_H | |
5464 | # include <string.h> | |
5465 | # endif | |
5466 | ||
5467 | int | |
5468 | main () | |
5469 | { | |
5470 | ||
5471 | char buf[100]; | |
5472 | char x = *strerror_r (0, buf, sizeof buf); | |
5473 | ||
5474 | ; | |
5475 | return 0; | |
5476 | } | |
5477 | _ACEOF | |
5478 | rm -f conftest.$ac_objext | |
2ce10144 | 5479 | if { (eval echo "$as_me:5479: \"$ac_compile\"") >&5 |
5141b016 AD |
5480 | (eval $ac_compile) 2>&5 |
5481 | ac_status=$? | |
2ce10144 | 5482 | echo "$as_me:5482: \$? = $ac_status" >&5 |
5141b016 AD |
5483 | (exit $ac_status); } && |
5484 | { ac_try='test -s conftest.$ac_objext' | |
2ce10144 | 5485 | { (eval echo "$as_me:5485: \"$ac_try\"") >&5 |
5141b016 AD |
5486 | (eval $ac_try) 2>&5 |
5487 | ac_status=$? | |
2ce10144 | 5488 | echo "$as_me:5488: \$? = $ac_status" >&5 |
5141b016 AD |
5489 | (exit $ac_status); }; }; then |
5490 | ac_cv_func_strerror_r_works=yes | |
5491 | else | |
5492 | echo "$as_me: failed program was:" >&5 | |
5493 | cat conftest.$ac_ext >&5 | |
5494 | ac_cv_func_strerror_r_works=no | |
5495 | ||
5496 | fi | |
5497 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5498 | if test $ac_cv_func_strerror_r_works = no; then | |
5499 | # strerror_r seems not to work, but now we have to choose between | |
5500 | # systems that have relatively inaccessible declarations for the | |
5501 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the | |
5502 | # former has a strerror_r that returns char*, while the latter | |
5503 | # has a strerror_r that returns `int'. | |
5504 | # This test should segfault on the DEC system. | |
5505 | if test "$cross_compiling" = yes; then | |
5506 | ac_cv_func_strerror_r_works=no | |
5507 | else | |
5508 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5509 | #line 5509 "configure" |
5141b016 AD |
5510 | #include "confdefs.h" |
5511 | ||
5512 | # include <stdio.h> | |
5513 | # include <string.h> | |
5514 | # include <ctype.h> | |
5515 | ||
5516 | extern char *strerror_r (); | |
5517 | ||
5518 | int | |
5519 | main () | |
5520 | { | |
5521 | char buf[100]; | |
5522 | char x = *strerror_r (0, buf, sizeof buf); | |
5523 | exit (!isalpha (x)); | |
5524 | } | |
5525 | ||
5526 | _ACEOF | |
5527 | rm -f conftest$ac_exeext | |
2ce10144 | 5528 | if { (eval echo "$as_me:5528: \"$ac_link\"") >&5 |
5141b016 AD |
5529 | (eval $ac_link) 2>&5 |
5530 | ac_status=$? | |
2ce10144 | 5531 | echo "$as_me:5531: \$? = $ac_status" >&5 |
5141b016 | 5532 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2ce10144 | 5533 | { (eval echo "$as_me:5533: \"$ac_try\"") >&5 |
5141b016 AD |
5534 | (eval $ac_try) 2>&5 |
5535 | ac_status=$? | |
2ce10144 | 5536 | echo "$as_me:5536: \$? = $ac_status" >&5 |
5141b016 AD |
5537 | (exit $ac_status); }; }; then |
5538 | ac_cv_func_strerror_r_works=yes | |
5539 | else | |
5540 | echo "$as_me: program exited with status $ac_status" >&5 | |
5541 | echo "$as_me: failed program was:" >&5 | |
5542 | cat conftest.$ac_ext >&5 | |
5543 | ac_cv_func_strerror_r_works=no | |
5544 | fi | |
459dd1a6 | 5545 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5141b016 AD |
5546 | fi |
5547 | fi | |
5548 | ||
5549 | fi | |
2ce10144 | 5550 | echo "$as_me:5550: result: $ac_cv_func_strerror_r_works" >&5 |
5141b016 AD |
5551 | echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6 |
5552 | if test $ac_cv_func_strerror_r_works = yes; then | |
5553 | ||
5554 | cat >>confdefs.h <<EOF | |
5555 | #define HAVE_WORKING_STRERROR_R 1 | |
5556 | EOF | |
5557 | ||
5558 | fi | |
5559 | fi | |
5560 | ||
5561 | ALL_LINGUAS="de es et fr ja nl ru" | |
1e24cc5b AD |
5562 | # Make sure we can run config.sub. |
5563 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
2ce10144 | 5564 | { { echo "$as_me:5564: error: cannot run $ac_config_sub" >&5 |
1e24cc5b AD |
5565 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
5566 | { (exit 1); exit 1; }; } | |
5567 | ||
2ce10144 | 5568 | echo "$as_me:5568: checking build system type" >&5 |
1e24cc5b AD |
5569 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
5570 | if test "${ac_cv_build+set}" = set; then | |
5571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5572 | else | |
5573 | ac_cv_build_alias=$build_alias | |
5574 | test -z "$ac_cv_build_alias" && | |
5575 | ac_cv_build_alias=`$ac_config_guess` | |
5576 | test -z "$ac_cv_build_alias" && | |
2ce10144 | 5577 | { { echo "$as_me:5577: error: cannot guess build type; you must specify one" >&5 |
1e24cc5b AD |
5578 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
5579 | { (exit 1); exit 1; }; } | |
5580 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
2ce10144 | 5581 | { { echo "$as_me:5581: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
1e24cc5b AD |
5582 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
5583 | { (exit 1); exit 1; }; } | |
5584 | ||
5585 | fi | |
2ce10144 | 5586 | echo "$as_me:5586: result: $ac_cv_build" >&5 |
1e24cc5b AD |
5587 | echo "${ECHO_T}$ac_cv_build" >&6 |
5588 | build=$ac_cv_build | |
5589 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
5590 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
5591 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
5592 | ||
2ce10144 | 5593 | echo "$as_me:5593: checking host system type" >&5 |
1e24cc5b AD |
5594 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
5595 | if test "${ac_cv_host+set}" = set; then | |
5596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5597 | else | |
5598 | ac_cv_host_alias=$host_alias | |
5599 | test -z "$ac_cv_host_alias" && | |
5600 | ac_cv_host_alias=$ac_cv_build_alias | |
5601 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2ce10144 | 5602 | { { echo "$as_me:5602: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
1e24cc5b AD |
5603 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
5604 | { (exit 1); exit 1; }; } | |
5605 | ||
5606 | fi | |
2ce10144 | 5607 | echo "$as_me:5607: result: $ac_cv_host" >&5 |
1e24cc5b AD |
5608 | echo "${ECHO_T}$ac_cv_host" >&6 |
5609 | host=$ac_cv_host | |
5610 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
5611 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
5612 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
5613 | ||
2ce10144 | 5614 | echo "$as_me:5614: checking for off_t" >&5 |
5141b016 AD |
5615 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
5616 | if test "${ac_cv_type_off_t+set}" = set; then | |
5617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5618 | else | |
5619 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5620 | #line 5620 "configure" |
5141b016 AD |
5621 | #include "confdefs.h" |
5622 | $ac_includes_default | |
5623 | int | |
5624 | main () | |
5625 | { | |
5626 | if ((off_t *) 0) | |
5627 | return 0; | |
5628 | if (sizeof (off_t)) | |
5629 | return 0; | |
5630 | ; | |
5631 | return 0; | |
5632 | } | |
5633 | _ACEOF | |
5634 | rm -f conftest.$ac_objext | |
2ce10144 | 5635 | if { (eval echo "$as_me:5635: \"$ac_compile\"") >&5 |
5141b016 AD |
5636 | (eval $ac_compile) 2>&5 |
5637 | ac_status=$? | |
2ce10144 | 5638 | echo "$as_me:5638: \$? = $ac_status" >&5 |
5141b016 AD |
5639 | (exit $ac_status); } && |
5640 | { ac_try='test -s conftest.$ac_objext' | |
2ce10144 | 5641 | { (eval echo "$as_me:5641: \"$ac_try\"") >&5 |
5141b016 AD |
5642 | (eval $ac_try) 2>&5 |
5643 | ac_status=$? | |
2ce10144 | 5644 | echo "$as_me:5644: \$? = $ac_status" >&5 |
5141b016 AD |
5645 | (exit $ac_status); }; }; then |
5646 | ac_cv_type_off_t=yes | |
5647 | else | |
5648 | echo "$as_me: failed program was:" >&5 | |
5649 | cat conftest.$ac_ext >&5 | |
5650 | ac_cv_type_off_t=no | |
5651 | fi | |
5652 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5653 | fi | |
2ce10144 | 5654 | echo "$as_me:5654: result: $ac_cv_type_off_t" >&5 |
5141b016 AD |
5655 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
5656 | if test $ac_cv_type_off_t = yes; then | |
5657 | : | |
5658 | else | |
5659 | ||
5660 | cat >>confdefs.h <<EOF | |
5661 | #define off_t long | |
5662 | EOF | |
5663 | ||
5664 | fi | |
5665 | ||
2ce10144 | 5666 | echo "$as_me:5666: checking for size_t" >&5 |
5141b016 AD |
5667 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
5668 | if test "${ac_cv_type_size_t+set}" = set; then | |
5669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5670 | else | |
5671 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5672 | #line 5672 "configure" |
5141b016 AD |
5673 | #include "confdefs.h" |
5674 | $ac_includes_default | |
5675 | int | |
5676 | main () | |
5677 | { | |
5678 | if ((size_t *) 0) | |
5679 | return 0; | |
5680 | if (sizeof (size_t)) | |
5681 | return 0; | |
5682 | ; | |
5683 | return 0; | |
5684 | } | |
5685 | _ACEOF | |
5686 | rm -f conftest.$ac_objext | |
2ce10144 | 5687 | if { (eval echo "$as_me:5687: \"$ac_compile\"") >&5 |
5141b016 AD |
5688 | (eval $ac_compile) 2>&5 |
5689 | ac_status=$? | |
2ce10144 | 5690 | echo "$as_me:5690: \$? = $ac_status" >&5 |
5141b016 AD |
5691 | (exit $ac_status); } && |
5692 | { ac_try='test -s conftest.$ac_objext' | |
2ce10144 | 5693 | { (eval echo "$as_me:5693: \"$ac_try\"") >&5 |
5141b016 AD |
5694 | (eval $ac_try) 2>&5 |
5695 | ac_status=$? | |
2ce10144 | 5696 | echo "$as_me:5696: \$? = $ac_status" >&5 |
5141b016 AD |
5697 | (exit $ac_status); }; }; then |
5698 | ac_cv_type_size_t=yes | |
5699 | else | |
5700 | echo "$as_me: failed program was:" >&5 | |
5701 | cat conftest.$ac_ext >&5 | |
5702 | ac_cv_type_size_t=no | |
5703 | fi | |
5704 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5705 | fi | |
2ce10144 | 5706 | echo "$as_me:5706: result: $ac_cv_type_size_t" >&5 |
5141b016 AD |
5707 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
5708 | if test $ac_cv_type_size_t = yes; then | |
5709 | : | |
5710 | else | |
5711 | ||
5712 | cat >>confdefs.h <<EOF | |
705db0b5 AD |
5713 | #define size_t unsigned |
5714 | EOF | |
5715 | ||
5716 | fi | |
5717 | ||
18569462 | 5718 | for ac_header in stdlib.h unistd.h |
705db0b5 | 5719 | do |
459dd1a6 | 5720 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2ce10144 | 5721 | echo "$as_me:5721: checking for $ac_header" >&5 |
18569462 | 5722 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 5723 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 AD |
5724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5725 | else | |
5726 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5727 | #line 5727 "configure" |
705db0b5 | 5728 | #include "confdefs.h" |
18569462 AD |
5729 | #include <$ac_header> |
5730 | _ACEOF | |
2ce10144 | 5731 | if { (eval echo "$as_me:5731: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 5732 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
5733 | ac_status=$? |
5734 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5735 | rm -f conftest.er1 | |
5736 | cat conftest.err >&5 | |
2ce10144 | 5737 | echo "$as_me:5737: \$? = $ac_status" >&5 |
1e24cc5b | 5738 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
5739 | if test -s conftest.err; then |
5740 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5741 | else | |
5742 | ac_cpp_err= | |
5743 | fi | |
5744 | else | |
5745 | ac_cpp_err=yes | |
5746 | fi | |
5747 | if test -z "$ac_cpp_err"; then | |
459dd1a6 | 5748 | eval "$as_ac_Header=yes" |
18569462 AD |
5749 | else |
5750 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 5751 | cat conftest.$ac_ext >&5 |
459dd1a6 | 5752 | eval "$as_ac_Header=no" |
705db0b5 | 5753 | fi |
18569462 | 5754 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 5755 | fi |
2ce10144 | 5756 | echo "$as_me:5756: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 AD |
5757 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5758 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18569462 | 5759 | cat >>confdefs.h <<EOF |
459dd1a6 | 5760 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
705db0b5 | 5761 | EOF |
18569462 | 5762 | |
705db0b5 AD |
5763 | fi |
5764 | done | |
5765 | ||
5766 | for ac_func in getpagesize | |
5767 | do | |
459dd1a6 | 5768 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2ce10144 | 5769 | echo "$as_me:5769: checking for $ac_func" >&5 |
18569462 | 5770 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 5771 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
5772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5773 | else | |
5774 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 5775 | #line 5775 "configure" |
705db0b5 AD |
5776 | #include "confdefs.h" |
5777 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 5778 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
5779 | #include <assert.h> |
5780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
5781 | #ifdef __cplusplus |
5782 | extern "C" | |
5783 | #endif | |
705db0b5 | 5784 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
5785 | builtin and then its argument prototype would still apply. */ |
5786 | char $ac_func (); | |
5787 | char (*f) (); | |
705db0b5 | 5788 | |
18569462 AD |
5789 | int |
5790 | main () | |
5791 | { | |
705db0b5 AD |
5792 | /* The GNU C library defines this for functions which it implements |
5793 | to always fail with ENOSYS. Some functions are actually named | |
5794 | something starting with __ and the normal name is an alias. */ | |
5795 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5796 | choke me | |
5797 | #else | |
18569462 | 5798 | f = $ac_func; |
705db0b5 AD |
5799 | #endif |
5800 | ||
18569462 AD |
5801 | ; |
5802 | return 0; | |
5803 | } | |
5804 | _ACEOF | |
5805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 5806 | if { (eval echo "$as_me:5806: \"$ac_link\"") >&5 |
18569462 AD |
5807 | (eval $ac_link) 2>&5 |
5808 | ac_status=$? | |
2ce10144 | 5809 | echo "$as_me:5809: \$? = $ac_status" >&5 |
18569462 | 5810 | (exit $ac_status); } && |
5141b016 | 5811 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 5812 | { (eval echo "$as_me:5812: \"$ac_try\"") >&5 |
18569462 AD |
5813 | (eval $ac_try) 2>&5 |
5814 | ac_status=$? | |
2ce10144 | 5815 | echo "$as_me:5815: \$? = $ac_status" >&5 |
18569462 | 5816 | (exit $ac_status); }; }; then |
459dd1a6 | 5817 | eval "$as_ac_var=yes" |
18569462 AD |
5818 | else |
5819 | echo "$as_me: failed program was:" >&5 | |
5820 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 5821 | eval "$as_ac_var=no" |
18569462 | 5822 | fi |
1e24cc5b | 5823 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 5824 | fi |
2ce10144 | 5825 | echo "$as_me:5825: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
5826 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5827 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18569462 | 5828 | cat >>confdefs.h <<EOF |
459dd1a6 | 5829 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
705db0b5 | 5830 | EOF |
705db0b5 | 5831 | |
705db0b5 AD |
5832 | fi |
5833 | done | |
5834 | ||
2ce10144 | 5835 | echo "$as_me:5835: checking for working mmap" >&5 |
18569462 AD |
5836 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
5837 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
5838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
5839 | else |
5840 | if test "$cross_compiling" = yes; then | |
5841 | ac_cv_func_mmap_fixed_mapped=no | |
5842 | else | |
18569462 | 5843 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 5844 | #line 5844 "configure" |
705db0b5 | 5845 | #include "confdefs.h" |
459dd1a6 | 5846 | $ac_includes_default |
705db0b5 AD |
5847 | /* Thanks to Mike Haertel and Jim Avera for this test. |
5848 | Here is a matrix of mmap possibilities: | |
5849 | mmap private not fixed | |
5850 | mmap private fixed at somewhere currently unmapped | |
5851 | mmap private fixed at somewhere already mapped | |
5852 | mmap shared not fixed | |
5853 | mmap shared fixed at somewhere currently unmapped | |
5854 | mmap shared fixed at somewhere already mapped | |
5855 | For private mappings, we should verify that changes cannot be read() | |
5856 | back from the file, nor mmap's back from the file at a different | |
5857 | address. (There have been systems where private was not correctly | |
5858 | implemented like the infamous i386 svr4.0, and systems where the | |
18569462 | 5859 | VM page cache was not coherent with the file system buffer cache |
705db0b5 AD |
5860 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
5861 | For shared mappings, we should conversely verify that changes get | |
5862 | propogated back to all the places they're supposed to be. | |
5863 | ||
5864 | Grep wants private fixed already mapped. | |
5865 | The main things grep needs to know about mmap are: | |
5866 | * does it exist and is it safe to write into the mmap'd area | |
5867 | * how to use it (BSD variants) */ | |
459dd1a6 | 5868 | |
705db0b5 AD |
5869 | #include <fcntl.h> |
5870 | #include <sys/mman.h> | |
705db0b5 | 5871 | |
459dd1a6 | 5872 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
18569462 AD |
5873 | char *malloc (); |
5874 | #endif | |
705db0b5 AD |
5875 | |
5876 | /* This mess was copied from the GNU getpagesize.h. */ | |
18569462 | 5877 | #if !HAVE_GETPAGESIZE |
705db0b5 | 5878 | /* Assume that all systems that can run configure have sys/param.h. */ |
18569462 | 5879 | # if !HAVE_SYS_PARAM_H |
705db0b5 AD |
5880 | # define HAVE_SYS_PARAM_H 1 |
5881 | # endif | |
5882 | ||
5883 | # ifdef _SC_PAGESIZE | |
5884 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
5885 | # else /* no _SC_PAGESIZE */ | |
18569462 | 5886 | # if HAVE_SYS_PARAM_H |
705db0b5 AD |
5887 | # include <sys/param.h> |
5888 | # ifdef EXEC_PAGESIZE | |
5889 | # define getpagesize() EXEC_PAGESIZE | |
5890 | # else /* no EXEC_PAGESIZE */ | |
5891 | # ifdef NBPG | |
5892 | # define getpagesize() NBPG * CLSIZE | |
5893 | # ifndef CLSIZE | |
5894 | # define CLSIZE 1 | |
5895 | # endif /* no CLSIZE */ | |
5896 | # else /* no NBPG */ | |
5897 | # ifdef NBPC | |
5898 | # define getpagesize() NBPC | |
5899 | # else /* no NBPC */ | |
5900 | # ifdef PAGESIZE | |
5901 | # define getpagesize() PAGESIZE | |
5902 | # endif /* PAGESIZE */ | |
5903 | # endif /* no NBPC */ | |
5904 | # endif /* no NBPG */ | |
5905 | # endif /* no EXEC_PAGESIZE */ | |
5906 | # else /* no HAVE_SYS_PARAM_H */ | |
5907 | # define getpagesize() 8192 /* punt totally */ | |
5908 | # endif /* no HAVE_SYS_PARAM_H */ | |
5909 | # endif /* no _SC_PAGESIZE */ | |
5910 | ||
5911 | #endif /* no HAVE_GETPAGESIZE */ | |
5912 | ||
705db0b5 | 5913 | int |
18569462 | 5914 | main () |
705db0b5 | 5915 | { |
18569462 AD |
5916 | char *data, *data2, *data3; |
5917 | int i, pagesize; | |
5918 | int fd; | |
5919 | ||
5920 | pagesize = getpagesize (); | |
5921 | ||
5922 | /* First, make a file with some known garbage in it. */ | |
5923 | data = (char *) malloc (pagesize); | |
5924 | if (!data) | |
5925 | exit (1); | |
5926 | for (i = 0; i < pagesize; ++i) | |
5927 | *(data + i) = rand (); | |
5928 | umask (0); | |
5929 | fd = creat ("conftest.mmap", 0600); | |
5930 | if (fd < 0) | |
5931 | exit (1); | |
5932 | if (write (fd, data, pagesize) != pagesize) | |
5933 | exit (1); | |
5934 | close (fd); | |
5935 | ||
5936 | /* Next, try to mmap the file at a fixed address which already has | |
5937 | something else allocated at it. If we can, also make sure that | |
5938 | we see the same garbage. */ | |
5939 | fd = open ("conftest.mmap", O_RDWR); | |
5940 | if (fd < 0) | |
5941 | exit (1); | |
5942 | data2 = (char *) malloc (2 * pagesize); | |
5943 | if (!data2) | |
5944 | exit (1); | |
5945 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
5946 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5947 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5948 | exit (1); | |
5949 | for (i = 0; i < pagesize; ++i) | |
5950 | if (*(data + i) != *(data2 + i)) | |
5951 | exit (1); | |
5952 | ||
5953 | /* Finally, make sure that changes to the mapped area do not | |
5954 | percolate back to the file as seen by read(). (This is a bug on | |
5955 | some variants of i386 svr4.0.) */ | |
5956 | for (i = 0; i < pagesize; ++i) | |
5957 | *(data2 + i) = *(data2 + i) + 1; | |
5958 | data3 = (char *) malloc (pagesize); | |
5959 | if (!data3) | |
5960 | exit (1); | |
5961 | if (read (fd, data3, pagesize) != pagesize) | |
5962 | exit (1); | |
5963 | for (i = 0; i < pagesize; ++i) | |
5964 | if (*(data + i) != *(data3 + i)) | |
5965 | exit (1); | |
5966 | close (fd); | |
5967 | exit (0); | |
705db0b5 | 5968 | } |
18569462 AD |
5969 | _ACEOF |
5970 | rm -f conftest$ac_exeext | |
2ce10144 | 5971 | if { (eval echo "$as_me:5971: \"$ac_link\"") >&5 |
18569462 AD |
5972 | (eval $ac_link) 2>&5 |
5973 | ac_status=$? | |
2ce10144 | 5974 | echo "$as_me:5974: \$? = $ac_status" >&5 |
5141b016 | 5975 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2ce10144 | 5976 | { (eval echo "$as_me:5976: \"$ac_try\"") >&5 |
18569462 AD |
5977 | (eval $ac_try) 2>&5 |
5978 | ac_status=$? | |
2ce10144 | 5979 | echo "$as_me:5979: \$? = $ac_status" >&5 |
18569462 | 5980 | (exit $ac_status); }; }; then |
705db0b5 AD |
5981 | ac_cv_func_mmap_fixed_mapped=yes |
5982 | else | |
18569462 AD |
5983 | echo "$as_me: program exited with status $ac_status" >&5 |
5984 | echo "$as_me: failed program was:" >&5 | |
5985 | cat conftest.$ac_ext >&5 | |
5986 | ac_cv_func_mmap_fixed_mapped=no | |
705db0b5 | 5987 | fi |
459dd1a6 | 5988 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 5989 | fi |
705db0b5 | 5990 | fi |
2ce10144 | 5991 | echo "$as_me:5991: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
18569462 | 5992 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
705db0b5 | 5993 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
18569462 AD |
5994 | |
5995 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
5996 | #define HAVE_MMAP 1 |
5997 | EOF | |
5998 | ||
5999 | fi | |
18569462 | 6000 | rm -f conftest.mmap |
705db0b5 | 6001 | |
2ce10144 | 6002 | echo "$as_me:6002: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
1e24cc5b AD |
6003 | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 |
6004 | if test "${ac_cv_gnu_library_2_1+set}" = set; then | |
6005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6006 | else | |
6007 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 6008 | #line 6008 "configure" |
1e24cc5b AD |
6009 | #include "confdefs.h" |
6010 | ||
6011 | #include <features.h> | |
6012 | #ifdef __GNU_LIBRARY__ | |
6013 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
6014 | Lucky GNU user | |
6015 | #endif | |
6016 | #endif | |
6017 | ||
6018 | _ACEOF | |
6019 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6020 | egrep "Lucky GNU user" >/dev/null 2>&1; then | |
6021 | ac_cv_gnu_library_2_1=yes | |
6022 | else | |
6023 | ac_cv_gnu_library_2_1=no | |
6024 | fi | |
6025 | rm -f conftest* | |
6026 | ||
6027 | fi | |
2ce10144 | 6028 | echo "$as_me:6028: result: $ac_cv_gnu_library_2_1" >&5 |
1e24cc5b AD |
6029 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 |
6030 | ||
6031 | GLIBC21="$ac_cv_gnu_library_2_1" | |
6032 | ||
6033 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
6034 | stdlib.h string.h unistd.h sys/param.h | |
705db0b5 | 6035 | do |
459dd1a6 | 6036 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
2ce10144 | 6037 | echo "$as_me:6037: checking for $ac_header" >&5 |
18569462 | 6038 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
459dd1a6 | 6039 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
18569462 AD |
6040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6041 | else | |
6042 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 6043 | #line 6043 "configure" |
705db0b5 | 6044 | #include "confdefs.h" |
18569462 AD |
6045 | #include <$ac_header> |
6046 | _ACEOF | |
2ce10144 | 6047 | if { (eval echo "$as_me:6047: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 6048 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
6049 | ac_status=$? |
6050 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6051 | rm -f conftest.er1 | |
6052 | cat conftest.err >&5 | |
2ce10144 | 6053 | echo "$as_me:6053: \$? = $ac_status" >&5 |
1e24cc5b | 6054 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
6055 | if test -s conftest.err; then |
6056 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6057 | else | |
6058 | ac_cpp_err= | |
6059 | fi | |
6060 | else | |
6061 | ac_cpp_err=yes | |
6062 | fi | |
6063 | if test -z "$ac_cpp_err"; then | |
459dd1a6 | 6064 | eval "$as_ac_Header=yes" |
18569462 AD |
6065 | else |
6066 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 6067 | cat conftest.$ac_ext >&5 |
459dd1a6 | 6068 | eval "$as_ac_Header=no" |
705db0b5 | 6069 | fi |
18569462 | 6070 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 6071 | fi |
2ce10144 | 6072 | echo "$as_me:6072: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
459dd1a6 AD |
6073 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6074 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18569462 | 6075 | cat >>confdefs.h <<EOF |
459dd1a6 | 6076 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
705db0b5 | 6077 | EOF |
18569462 | 6078 | |
705db0b5 AD |
6079 | fi |
6080 | done | |
6081 | ||
1e24cc5b AD |
6082 | for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \ |
6083 | getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ | |
6084 | strdup strtoul tsearch __argz_count __argz_stringify __argz_next | |
705db0b5 | 6085 | do |
459dd1a6 | 6086 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2ce10144 | 6087 | echo "$as_me:6087: checking for $ac_func" >&5 |
18569462 | 6088 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 6089 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
6090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6091 | else | |
6092 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 6093 | #line 6093 "configure" |
705db0b5 AD |
6094 | #include "confdefs.h" |
6095 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 6096 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
6097 | #include <assert.h> |
6098 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
6099 | #ifdef __cplusplus |
6100 | extern "C" | |
6101 | #endif | |
705db0b5 | 6102 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
6103 | builtin and then its argument prototype would still apply. */ |
6104 | char $ac_func (); | |
6105 | char (*f) (); | |
705db0b5 | 6106 | |
18569462 AD |
6107 | int |
6108 | main () | |
6109 | { | |
705db0b5 AD |
6110 | /* The GNU C library defines this for functions which it implements |
6111 | to always fail with ENOSYS. Some functions are actually named | |
6112 | something starting with __ and the normal name is an alias. */ | |
6113 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6114 | choke me | |
6115 | #else | |
18569462 | 6116 | f = $ac_func; |
705db0b5 AD |
6117 | #endif |
6118 | ||
18569462 AD |
6119 | ; |
6120 | return 0; | |
6121 | } | |
6122 | _ACEOF | |
6123 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 6124 | if { (eval echo "$as_me:6124: \"$ac_link\"") >&5 |
18569462 AD |
6125 | (eval $ac_link) 2>&5 |
6126 | ac_status=$? | |
2ce10144 | 6127 | echo "$as_me:6127: \$? = $ac_status" >&5 |
18569462 | 6128 | (exit $ac_status); } && |
5141b016 | 6129 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 6130 | { (eval echo "$as_me:6130: \"$ac_try\"") >&5 |
18569462 AD |
6131 | (eval $ac_try) 2>&5 |
6132 | ac_status=$? | |
2ce10144 | 6133 | echo "$as_me:6133: \$? = $ac_status" >&5 |
18569462 | 6134 | (exit $ac_status); }; }; then |
459dd1a6 | 6135 | eval "$as_ac_var=yes" |
18569462 AD |
6136 | else |
6137 | echo "$as_me: failed program was:" >&5 | |
6138 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 6139 | eval "$as_ac_var=no" |
18569462 | 6140 | fi |
1e24cc5b | 6141 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 6142 | fi |
2ce10144 | 6143 | echo "$as_me:6143: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
6144 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6145 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18569462 | 6146 | cat >>confdefs.h <<EOF |
459dd1a6 | 6147 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
705db0b5 | 6148 | EOF |
705db0b5 | 6149 | |
705db0b5 AD |
6150 | fi |
6151 | done | |
6152 | ||
1e24cc5b AD |
6153 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
6154 | if test "${with_libiconv_prefix+set}" = set; then | |
6155 | withval="$with_libiconv_prefix" | |
18569462 | 6156 | |
1e24cc5b AD |
6157 | for dir in `echo "$withval" | tr : ' '`; do |
6158 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
6159 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
6160 | done | |
6161 | ||
6162 | fi; | |
6163 | ||
2ce10144 | 6164 | echo "$as_me:6164: checking for iconv" >&5 |
1e24cc5b AD |
6165 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
6166 | if test "${am_cv_func_iconv+set}" = set; then | |
18569462 AD |
6167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6168 | else | |
1e24cc5b AD |
6169 | |
6170 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
6171 | am_cv_lib_iconv=no | |
6172 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 6173 | #line 6173 "configure" |
705db0b5 | 6174 | #include "confdefs.h" |
1e24cc5b AD |
6175 | #include <stdlib.h> |
6176 | #include <iconv.h> | |
6177 | int | |
6178 | main () | |
6179 | { | |
6180 | iconv_t cd = iconv_open("",""); | |
6181 | iconv(cd,NULL,NULL,NULL,NULL); | |
6182 | iconv_close(cd); | |
6183 | ; | |
6184 | return 0; | |
6185 | } | |
6186 | _ACEOF | |
6187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 6188 | if { (eval echo "$as_me:6188: \"$ac_link\"") >&5 |
1e24cc5b AD |
6189 | (eval $ac_link) 2>&5 |
6190 | ac_status=$? | |
2ce10144 | 6191 | echo "$as_me:6191: \$? = $ac_status" >&5 |
1e24cc5b AD |
6192 | (exit $ac_status); } && |
6193 | { ac_try='test -s conftest$ac_exeext' | |
2ce10144 | 6194 | { (eval echo "$as_me:6194: \"$ac_try\"") >&5 |
1e24cc5b AD |
6195 | (eval $ac_try) 2>&5 |
6196 | ac_status=$? | |
2ce10144 | 6197 | echo "$as_me:6197: \$? = $ac_status" >&5 |
1e24cc5b AD |
6198 | (exit $ac_status); }; }; then |
6199 | am_cv_func_iconv=yes | |
6200 | else | |
6201 | echo "$as_me: failed program was:" >&5 | |
6202 | cat conftest.$ac_ext >&5 | |
6203 | fi | |
6204 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6205 | if test "$am_cv_func_iconv" != yes; then | |
6206 | am_save_LIBS="$LIBS" | |
6207 | LIBS="$LIBS -liconv" | |
6208 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 6209 | #line 6209 "configure" |
1e24cc5b AD |
6210 | #include "confdefs.h" |
6211 | #include <stdlib.h> | |
6212 | #include <iconv.h> | |
6213 | int | |
6214 | main () | |
6215 | { | |
6216 | iconv_t cd = iconv_open("",""); | |
6217 | iconv(cd,NULL,NULL,NULL,NULL); | |
6218 | iconv_close(cd); | |
6219 | ; | |
6220 | return 0; | |
6221 | } | |
6222 | _ACEOF | |
6223 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 6224 | if { (eval echo "$as_me:6224: \"$ac_link\"") >&5 |
1e24cc5b AD |
6225 | (eval $ac_link) 2>&5 |
6226 | ac_status=$? | |
2ce10144 | 6227 | echo "$as_me:6227: \$? = $ac_status" >&5 |
1e24cc5b AD |
6228 | (exit $ac_status); } && |
6229 | { ac_try='test -s conftest$ac_exeext' | |
2ce10144 | 6230 | { (eval echo "$as_me:6230: \"$ac_try\"") >&5 |
1e24cc5b AD |
6231 | (eval $ac_try) 2>&5 |
6232 | ac_status=$? | |
2ce10144 | 6233 | echo "$as_me:6233: \$? = $ac_status" >&5 |
1e24cc5b AD |
6234 | (exit $ac_status); }; }; then |
6235 | am_cv_lib_iconv=yes | |
6236 | am_cv_func_iconv=yes | |
6237 | else | |
6238 | echo "$as_me: failed program was:" >&5 | |
6239 | cat conftest.$ac_ext >&5 | |
6240 | fi | |
6241 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6242 | LIBS="$am_save_LIBS" | |
6243 | fi | |
6244 | ||
6245 | fi | |
2ce10144 | 6246 | echo "$as_me:6246: result: $am_cv_func_iconv" >&5 |
1e24cc5b AD |
6247 | echo "${ECHO_T}$am_cv_func_iconv" >&6 |
6248 | if test "$am_cv_func_iconv" = yes; then | |
6249 | ||
6250 | cat >>confdefs.h <<\EOF | |
6251 | #define HAVE_ICONV 1 | |
6252 | EOF | |
6253 | ||
2ce10144 | 6254 | echo "$as_me:6254: checking for iconv declaration" >&5 |
1e24cc5b AD |
6255 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
6256 | if test "${am_cv_proto_iconv+set}" = set; then | |
6257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6258 | else | |
6259 | ||
6260 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 6261 | #line 6261 "configure" |
1e24cc5b AD |
6262 | #include "confdefs.h" |
6263 | ||
6264 | #include <stdlib.h> | |
6265 | #include <iconv.h> | |
6266 | extern | |
18569462 | 6267 | #ifdef __cplusplus |
1e24cc5b AD |
6268 | "C" |
6269 | #endif | |
6270 | #if defined(__STDC__) || defined(__cplusplus) | |
6271 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
6272 | #else | |
6273 | size_t iconv(); | |
18569462 | 6274 | #endif |
705db0b5 | 6275 | |
18569462 AD |
6276 | int |
6277 | main () | |
6278 | { | |
705db0b5 | 6279 | |
18569462 AD |
6280 | ; |
6281 | return 0; | |
6282 | } | |
6283 | _ACEOF | |
1e24cc5b | 6284 | rm -f conftest.$ac_objext |
2ce10144 | 6285 | if { (eval echo "$as_me:6285: \"$ac_compile\"") >&5 |
1e24cc5b | 6286 | (eval $ac_compile) 2>&5 |
18569462 | 6287 | ac_status=$? |
2ce10144 | 6288 | echo "$as_me:6288: \$? = $ac_status" >&5 |
18569462 | 6289 | (exit $ac_status); } && |
1e24cc5b | 6290 | { ac_try='test -s conftest.$ac_objext' |
2ce10144 | 6291 | { (eval echo "$as_me:6291: \"$ac_try\"") >&5 |
18569462 AD |
6292 | (eval $ac_try) 2>&5 |
6293 | ac_status=$? | |
2ce10144 | 6294 | echo "$as_me:6294: \$? = $ac_status" >&5 |
18569462 | 6295 | (exit $ac_status); }; }; then |
1e24cc5b | 6296 | am_cv_proto_iconv_arg1="" |
18569462 AD |
6297 | else |
6298 | echo "$as_me: failed program was:" >&5 | |
6299 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 6300 | am_cv_proto_iconv_arg1="const" |
18569462 | 6301 | fi |
1e24cc5b AD |
6302 | rm -f conftest.$ac_objext conftest.$ac_ext |
6303 | 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 | 6304 | fi |
1e24cc5b AD |
6305 | |
6306 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
2ce10144 | 6307 | echo "$as_me:6307: result: ${ac_t:- |
1e24cc5b AD |
6308 | }$am_cv_proto_iconv" >&5 |
6309 | echo "${ECHO_T}${ac_t:- | |
6310 | }$am_cv_proto_iconv" >&6 | |
6311 | ||
6312 | cat >>confdefs.h <<EOF | |
6313 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
705db0b5 | 6314 | EOF |
705db0b5 | 6315 | |
1e24cc5b AD |
6316 | fi |
6317 | LIBICONV= | |
6318 | if test "$am_cv_lib_iconv" = yes; then | |
6319 | LIBICONV="-liconv" | |
6320 | fi | |
6321 | ||
2ce10144 | 6322 | echo "$as_me:6322: checking for nl_langinfo and CODESET" >&5 |
1e24cc5b AD |
6323 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
6324 | if test "${am_cv_langinfo_codeset+set}" = set; then | |
6325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6326 | else | |
6327 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 6328 | #line 6328 "configure" |
1e24cc5b AD |
6329 | #include "confdefs.h" |
6330 | #include <langinfo.h> | |
6331 | int | |
6332 | main () | |
6333 | { | |
6334 | char* cs = nl_langinfo(CODESET); | |
6335 | ; | |
6336 | return 0; | |
6337 | } | |
6338 | _ACEOF | |
6339 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 6340 | if { (eval echo "$as_me:6340: \"$ac_link\"") >&5 |
1e24cc5b AD |
6341 | (eval $ac_link) 2>&5 |
6342 | ac_status=$? | |
2ce10144 | 6343 | echo "$as_me:6343: \$? = $ac_status" >&5 |
1e24cc5b AD |
6344 | (exit $ac_status); } && |
6345 | { ac_try='test -s conftest$ac_exeext' | |
2ce10144 | 6346 | { (eval echo "$as_me:6346: \"$ac_try\"") >&5 |
1e24cc5b AD |
6347 | (eval $ac_try) 2>&5 |
6348 | ac_status=$? | |
2ce10144 | 6349 | echo "$as_me:6349: \$? = $ac_status" >&5 |
1e24cc5b AD |
6350 | (exit $ac_status); }; }; then |
6351 | am_cv_langinfo_codeset=yes | |
6352 | else | |
6353 | echo "$as_me: failed program was:" >&5 | |
6354 | cat conftest.$ac_ext >&5 | |
6355 | am_cv_langinfo_codeset=no | |
705db0b5 | 6356 | fi |
1e24cc5b | 6357 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 6358 | |
1e24cc5b | 6359 | fi |
2ce10144 | 6360 | echo "$as_me:6360: result: $am_cv_langinfo_codeset" >&5 |
1e24cc5b AD |
6361 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 |
6362 | if test $am_cv_langinfo_codeset = yes; then | |
18569462 AD |
6363 | |
6364 | cat >>confdefs.h <<\EOF | |
1e24cc5b | 6365 | #define HAVE_LANGINFO_CODESET 1 |
705db0b5 AD |
6366 | EOF |
6367 | ||
1e24cc5b | 6368 | fi |
705db0b5 AD |
6369 | |
6370 | if test $ac_cv_header_locale_h = yes; then | |
2ce10144 | 6371 | echo "$as_me:6371: checking for LC_MESSAGES" >&5 |
18569462 AD |
6372 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 |
6373 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
6374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6375 | else |
18569462 | 6376 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 6377 | #line 6377 "configure" |
705db0b5 AD |
6378 | #include "confdefs.h" |
6379 | #include <locale.h> | |
18569462 AD |
6380 | int |
6381 | main () | |
6382 | { | |
705db0b5 | 6383 | return LC_MESSAGES |
18569462 AD |
6384 | ; |
6385 | return 0; | |
6386 | } | |
6387 | _ACEOF | |
6388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 6389 | if { (eval echo "$as_me:6389: \"$ac_link\"") >&5 |
18569462 AD |
6390 | (eval $ac_link) 2>&5 |
6391 | ac_status=$? | |
2ce10144 | 6392 | echo "$as_me:6392: \$? = $ac_status" >&5 |
18569462 | 6393 | (exit $ac_status); } && |
5141b016 | 6394 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 6395 | { (eval echo "$as_me:6395: \"$ac_try\"") >&5 |
18569462 AD |
6396 | (eval $ac_try) 2>&5 |
6397 | ac_status=$? | |
2ce10144 | 6398 | echo "$as_me:6398: \$? = $ac_status" >&5 |
18569462 | 6399 | (exit $ac_status); }; }; then |
705db0b5 AD |
6400 | am_cv_val_LC_MESSAGES=yes |
6401 | else | |
18569462 AD |
6402 | echo "$as_me: failed program was:" >&5 |
6403 | cat conftest.$ac_ext >&5 | |
6404 | am_cv_val_LC_MESSAGES=no | |
705db0b5 | 6405 | fi |
1e24cc5b | 6406 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 6407 | fi |
2ce10144 | 6408 | echo "$as_me:6408: result: $am_cv_val_LC_MESSAGES" >&5 |
18569462 | 6409 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 |
705db0b5 | 6410 | if test $am_cv_val_LC_MESSAGES = yes; then |
18569462 AD |
6411 | |
6412 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
6413 | #define HAVE_LC_MESSAGES 1 |
6414 | EOF | |
6415 | ||
6416 | fi | |
6417 | fi | |
2ce10144 | 6418 | echo "$as_me:6418: checking whether NLS is requested" >&5 |
18569462 | 6419 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
705db0b5 AD |
6420 | # Check whether --enable-nls or --disable-nls was given. |
6421 | if test "${enable_nls+set}" = set; then | |
6422 | enableval="$enable_nls" | |
6423 | USE_NLS=$enableval | |
6424 | else | |
6425 | USE_NLS=yes | |
18569462 | 6426 | fi; |
2ce10144 | 6427 | echo "$as_me:6427: result: $USE_NLS" >&5 |
18569462 | 6428 | echo "${ECHO_T}$USE_NLS" >&6 |
705db0b5 | 6429 | |
1e24cc5b | 6430 | BUILD_INCLUDED_LIBINTL=no |
705db0b5 | 6431 | USE_INCLUDED_LIBINTL=no |
1e24cc5b | 6432 | INTLLIBS= |
705db0b5 AD |
6433 | |
6434 | if test "$USE_NLS" = "yes"; then | |
18569462 AD |
6435 | |
6436 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
6437 | #define ENABLE_NLS 1 |
6438 | EOF | |
6439 | ||
2ce10144 | 6440 | echo "$as_me:6440: checking whether included gettext is requested" >&5 |
18569462 AD |
6441 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 |
6442 | ||
6443 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
705db0b5 AD |
6444 | if test "${with_included_gettext+set}" = set; then |
6445 | withval="$with_included_gettext" | |
6446 | nls_cv_force_use_gnu_gettext=$withval | |
6447 | else | |
6448 | nls_cv_force_use_gnu_gettext=no | |
18569462 | 6449 | fi; |
2ce10144 | 6450 | echo "$as_me:6450: result: $nls_cv_force_use_gnu_gettext" >&5 |
18569462 | 6451 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 |
705db0b5 AD |
6452 | |
6453 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
6454 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
1e24cc5b | 6455 | CATOBJEXT=NONE |
705db0b5 | 6456 | |
2ce10144 | 6457 | echo "$as_me:6457: checking for libintl.h" >&5 |
18569462 AD |
6458 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 |
6459 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
6460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6461 | else |
18569462 | 6462 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 6463 | #line 6463 "configure" |
705db0b5 AD |
6464 | #include "confdefs.h" |
6465 | #include <libintl.h> | |
18569462 | 6466 | _ACEOF |
2ce10144 | 6467 | if { (eval echo "$as_me:6467: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1e24cc5b | 6468 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
18569462 AD |
6469 | ac_status=$? |
6470 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6471 | rm -f conftest.er1 | |
6472 | cat conftest.err >&5 | |
2ce10144 | 6473 | echo "$as_me:6473: \$? = $ac_status" >&5 |
1e24cc5b | 6474 | (exit $ac_status); } >/dev/null; then |
18569462 AD |
6475 | if test -s conftest.err; then |
6476 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6477 | else | |
6478 | ac_cpp_err= | |
6479 | fi | |
6480 | else | |
6481 | ac_cpp_err=yes | |
6482 | fi | |
6483 | if test -z "$ac_cpp_err"; then | |
6484 | ac_cv_header_libintl_h=yes | |
6485 | else | |
6486 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 6487 | cat conftest.$ac_ext >&5 |
18569462 | 6488 | ac_cv_header_libintl_h=no |
705db0b5 | 6489 | fi |
18569462 | 6490 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 6491 | fi |
2ce10144 | 6492 | echo "$as_me:6492: result: $ac_cv_header_libintl_h" >&5 |
18569462 AD |
6493 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 |
6494 | if test $ac_cv_header_libintl_h = yes; then | |
2ce10144 | 6495 | echo "$as_me:6495: checking for GNU gettext in libc" >&5 |
1e24cc5b AD |
6496 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 |
6497 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then | |
18569462 | 6498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 | 6499 | else |
18569462 | 6500 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 6501 | #line 6501 "configure" |
705db0b5 AD |
6502 | #include "confdefs.h" |
6503 | #include <libintl.h> | |
1e24cc5b | 6504 | extern int _nl_msg_cat_cntr; |
18569462 AD |
6505 | int |
6506 | main () | |
6507 | { | |
1e24cc5b AD |
6508 | bindtextdomain ("", ""); |
6509 | return (int) gettext ("") + _nl_msg_cat_cntr | |
18569462 AD |
6510 | ; |
6511 | return 0; | |
6512 | } | |
6513 | _ACEOF | |
6514 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 6515 | if { (eval echo "$as_me:6515: \"$ac_link\"") >&5 |
18569462 AD |
6516 | (eval $ac_link) 2>&5 |
6517 | ac_status=$? | |
2ce10144 | 6518 | echo "$as_me:6518: \$? = $ac_status" >&5 |
18569462 | 6519 | (exit $ac_status); } && |
5141b016 | 6520 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 6521 | { (eval echo "$as_me:6521: \"$ac_try\"") >&5 |
18569462 AD |
6522 | (eval $ac_try) 2>&5 |
6523 | ac_status=$? | |
2ce10144 | 6524 | echo "$as_me:6524: \$? = $ac_status" >&5 |
18569462 | 6525 | (exit $ac_status); }; }; then |
1e24cc5b | 6526 | gt_cv_func_gnugettext1_libc=yes |
705db0b5 | 6527 | else |
18569462 AD |
6528 | echo "$as_me: failed program was:" >&5 |
6529 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 6530 | gt_cv_func_gnugettext1_libc=no |
705db0b5 | 6531 | fi |
1e24cc5b | 6532 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 6533 | fi |
2ce10144 | 6534 | echo "$as_me:6534: result: $gt_cv_func_gnugettext1_libc" >&5 |
1e24cc5b | 6535 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 |
705db0b5 | 6536 | |
1e24cc5b | 6537 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
2ce10144 | 6538 | echo "$as_me:6538: checking for GNU gettext in libintl" >&5 |
1e24cc5b AD |
6539 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 |
6540 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then | |
18569462 | 6541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 | 6542 | else |
1e24cc5b AD |
6543 | gt_save_LIBS="$LIBS" |
6544 | LIBS="$LIBS -lintl $LIBICONV" | |
6545 | cat >conftest.$ac_ext <<_ACEOF | |
2ce10144 | 6546 | #line 6546 "configure" |
705db0b5 | 6547 | #include "confdefs.h" |
1e24cc5b AD |
6548 | #include <libintl.h> |
6549 | extern int _nl_msg_cat_cntr; | |
18569462 AD |
6550 | int |
6551 | main () | |
6552 | { | |
1e24cc5b AD |
6553 | bindtextdomain ("", ""); |
6554 | return (int) gettext ("") + _nl_msg_cat_cntr | |
18569462 AD |
6555 | ; |
6556 | return 0; | |
6557 | } | |
6558 | _ACEOF | |
6559 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 6560 | if { (eval echo "$as_me:6560: \"$ac_link\"") >&5 |
18569462 AD |
6561 | (eval $ac_link) 2>&5 |
6562 | ac_status=$? | |
2ce10144 | 6563 | echo "$as_me:6563: \$? = $ac_status" >&5 |
18569462 | 6564 | (exit $ac_status); } && |
5141b016 | 6565 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 6566 | { (eval echo "$as_me:6566: \"$ac_try\"") >&5 |
18569462 AD |
6567 | (eval $ac_try) 2>&5 |
6568 | ac_status=$? | |
2ce10144 | 6569 | echo "$as_me:6569: \$? = $ac_status" >&5 |
18569462 | 6570 | (exit $ac_status); }; }; then |
1e24cc5b | 6571 | gt_cv_func_gnugettext1_libintl=yes |
18569462 AD |
6572 | else |
6573 | echo "$as_me: failed program was:" >&5 | |
6574 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 6575 | gt_cv_func_gnugettext1_libintl=no |
18569462 | 6576 | fi |
1e24cc5b AD |
6577 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6578 | LIBS="$gt_save_LIBS" | |
18569462 | 6579 | fi |
2ce10144 | 6580 | echo "$as_me:6580: result: $gt_cv_func_gnugettext1_libintl" >&5 |
1e24cc5b AD |
6581 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 |
6582 | fi | |
6583 | ||
6584 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ | |
6585 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ | |
6586 | && test "$PACKAGE" != gettext; }; then | |
6587 | ||
6588 | cat >>confdefs.h <<\EOF | |
6589 | #define HAVE_GETTEXT 1 | |
6590 | EOF | |
6591 | ||
6592 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | |
6593 | INTLLIBS="-lintl $LIBICONV" | |
6594 | fi | |
6595 | ||
6596 | gt_save_LIBS="$LIBS" | |
6597 | LIBS="$LIBS $INTLLIBS" | |
18569462 | 6598 | |
1e24cc5b AD |
6599 | for ac_func in dcgettext |
6600 | do | |
459dd1a6 | 6601 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2ce10144 | 6602 | echo "$as_me:6602: checking for $ac_func" >&5 |
1e24cc5b | 6603 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
459dd1a6 | 6604 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
18569462 AD |
6605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6606 | else | |
1e24cc5b | 6607 | cat >conftest.$ac_ext <<_ACEOF |
2ce10144 | 6608 | #line 6608 "configure" |
705db0b5 | 6609 | #include "confdefs.h" |
1e24cc5b AD |
6610 | /* System header to define __stub macros and hopefully few prototypes, |
6611 | which can conflict with char $ac_func (); below. */ | |
6612 | #include <assert.h> | |
705db0b5 | 6613 | /* Override any gcc2 internal prototype to avoid an error. */ |
18569462 AD |
6614 | #ifdef __cplusplus |
6615 | extern "C" | |
6616 | #endif | |
705db0b5 | 6617 | /* We use char because int might match the return type of a gcc2 |
18569462 | 6618 | builtin and then its argument prototype would still apply. */ |
1e24cc5b AD |
6619 | char $ac_func (); |
6620 | char (*f) (); | |
6621 | ||
18569462 AD |
6622 | int |
6623 | main () | |
6624 | { | |
1e24cc5b AD |
6625 | /* The GNU C library defines this for functions which it implements |
6626 | to always fail with ENOSYS. Some functions are actually named | |
6627 | something starting with __ and the normal name is an alias. */ | |
6628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6629 | choke me | |
6630 | #else | |
6631 | f = $ac_func; | |
6632 | #endif | |
6633 | ||
18569462 AD |
6634 | ; |
6635 | return 0; | |
6636 | } | |
6637 | _ACEOF | |
6638 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2ce10144 | 6639 | if { (eval echo "$as_me:6639: \"$ac_link\"") >&5 |
18569462 AD |
6640 | (eval $ac_link) 2>&5 |
6641 | ac_status=$? | |
2ce10144 | 6642 | echo "$as_me:6642: \$? = $ac_status" >&5 |
18569462 | 6643 | (exit $ac_status); } && |
5141b016 | 6644 | { ac_try='test -s conftest$ac_exeext' |
2ce10144 | 6645 | { (eval echo "$as_me:6645: \"$ac_try\"") >&5 |
18569462 AD |
6646 | (eval $ac_try) 2>&5 |
6647 | ac_status=$? | |
2ce10144 | 6648 | echo "$as_me:6648: \$? = $ac_status" >&5 |
18569462 | 6649 | (exit $ac_status); }; }; then |
459dd1a6 | 6650 | eval "$as_ac_var=yes" |
18569462 AD |
6651 | else |
6652 | echo "$as_me: failed program was:" >&5 | |
6653 | cat conftest.$ac_ext >&5 | |
459dd1a6 | 6654 | eval "$as_ac_var=no" |
18569462 | 6655 | fi |
1e24cc5b | 6656 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 6657 | fi |
2ce10144 | 6658 | echo "$as_me:6658: result: `eval echo '${'$as_ac_var'}'`" >&5 |
459dd1a6 AD |
6659 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6660 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
1e24cc5b | 6661 | cat >>confdefs.h <<EOF |
459dd1a6 | 6662 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
705db0b5 AD |
6663 | EOF |
6664 | ||
705db0b5 | 6665 | fi |
1e24cc5b | 6666 | done |
705db0b5 | 6667 | |
1e24cc5b | 6668 | LIBS="$gt_save_LIBS" |
18569462 | 6669 | |
459dd1a6 | 6670 | # Extract the first word of "msgfmt", so it can be a program name with args. |
705db0b5 | 6671 | set dummy msgfmt; ac_word=$2 |
2ce10144 | 6672 | echo "$as_me:6672: checking for $ac_word" >&5 |
18569462 AD |
6673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6674 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
6675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6676 | else |
6677 | case "$MSGFMT" in | |
6678 | /*) | |
6679 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6680 | ;; | |
6681 | *) | |
6682 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6683 | for ac_dir in $PATH; do | |
6684 | test -z "$ac_dir" && ac_dir=. | |
6685 | if test -f $ac_dir/$ac_word; then | |
459dd1a6 | 6686 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then |
705db0b5 AD |
6687 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
6688 | break | |
6689 | fi | |
6690 | fi | |
6691 | done | |
6692 | IFS="$ac_save_ifs" | |
459dd1a6 | 6693 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
705db0b5 AD |
6694 | ;; |
6695 | esac | |
6696 | fi | |
6697 | MSGFMT="$ac_cv_path_MSGFMT" | |
459dd1a6 | 6698 | if test "$MSGFMT" != ":"; then |
2ce10144 | 6699 | echo "$as_me:6699: result: $MSGFMT" >&5 |
18569462 | 6700 | echo "${ECHO_T}$MSGFMT" >&6 |
705db0b5 | 6701 | else |
2ce10144 | 6702 | echo "$as_me:6702: result: no" >&5 |
18569462 | 6703 | echo "${ECHO_T}no" >&6 |
705db0b5 | 6704 | fi |
459dd1a6 AD |
6705 | |
6706 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
705db0b5 | 6707 | set dummy gmsgfmt; ac_word=$2 |
2ce10144 | 6708 | echo "$as_me:6708: checking for $ac_word" >&5 |
18569462 AD |
6709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6710 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6712 | else |
18569462 AD |
6713 | case $GMSGFMT in |
6714 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
6715 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
6716 | ;; | |
705db0b5 | 6717 | *) |
5141b016 | 6718 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
6719 | ac_dummy="$PATH" |
6720 | for ac_dir in $ac_dummy; do | |
6721 | IFS=$ac_save_IFS | |
6722 | test -z "$ac_dir" && ac_dir=. | |
6723 | if $as_executable_p "$ac_dir/$ac_word"; then | |
6724 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
2ce10144 | 6725 | echo "$as_me:6725: found $ac_dir/$ac_word" >&5 |
18569462 AD |
6726 | break |
6727 | fi | |
6728 | done | |
6729 | ||
705db0b5 AD |
6730 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
6731 | ;; | |
6732 | esac | |
6733 | fi | |
18569462 AD |
6734 | GMSGFMT=$ac_cv_path_GMSGFMT |
6735 | ||
705db0b5 | 6736 | if test -n "$GMSGFMT"; then |
2ce10144 | 6737 | echo "$as_me:6737: result: $GMSGFMT" >&5 |
18569462 | 6738 | echo "${ECHO_T}$GMSGFMT" >&6 |
705db0b5 | 6739 | else |
2ce10144 | 6740 | echo "$as_me:6740: result: no" >&5 |
18569462 | 6741 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6742 | fi |
6743 | ||
459dd1a6 | 6744 | # Extract the first word of "xgettext", so it can be a program name with args. |
705db0b5 | 6745 | set dummy xgettext; ac_word=$2 |
2ce10144 | 6746 | echo "$as_me:6746: checking for $ac_word" >&5 |
18569462 AD |
6747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6748 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
6749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6750 | else |
6751 | case "$XGETTEXT" in | |
6752 | /*) | |
6753 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6754 | ;; | |
6755 | *) | |
6756 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6757 | for ac_dir in $PATH; do | |
6758 | test -z "$ac_dir" && ac_dir=. | |
6759 | if test -f $ac_dir/$ac_word; then | |
459dd1a6 | 6760 | if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then |
705db0b5 AD |
6761 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
6762 | break | |
6763 | fi | |
6764 | fi | |
6765 | done | |
6766 | IFS="$ac_save_ifs" | |
6767 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6768 | ;; | |
6769 | esac | |
6770 | fi | |
6771 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
459dd1a6 | 6772 | if test "$XGETTEXT" != ":"; then |
2ce10144 | 6773 | echo "$as_me:6773: result: $XGETTEXT" >&5 |
18569462 | 6774 | echo "${ECHO_T}$XGETTEXT" >&6 |
705db0b5 | 6775 | else |
2ce10144 | 6776 | echo "$as_me:6776: result: no" >&5 |
18569462 | 6777 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6778 | fi |
6779 | ||
1e24cc5b AD |
6780 | CATOBJEXT=.gmo |
6781 | fi | |
705db0b5 | 6782 | |
1e24cc5b | 6783 | fi |
705db0b5 AD |
6784 | |
6785 | if test "$CATOBJEXT" = "NONE"; then | |
6786 | nls_cv_use_gnu_gettext=yes | |
6787 | fi | |
6788 | fi | |
6789 | ||
6790 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
6791 | INTLOBJS="\$(GETTOBJS)" | |
6792 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6793 | set dummy msgfmt; ac_word=$2 | |
2ce10144 | 6794 | echo "$as_me:6794: checking for $ac_word" >&5 |
18569462 AD |
6795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6796 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
6797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6798 | else |
6799 | case "$MSGFMT" in | |
6800 | /*) | |
6801 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6802 | ;; | |
6803 | *) | |
6804 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6805 | for ac_dir in $PATH; do | |
6806 | test -z "$ac_dir" && ac_dir=. | |
6807 | if test -f $ac_dir/$ac_word; then | |
459dd1a6 | 6808 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then |
705db0b5 AD |
6809 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
6810 | break | |
6811 | fi | |
6812 | fi | |
6813 | done | |
6814 | IFS="$ac_save_ifs" | |
459dd1a6 | 6815 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
705db0b5 AD |
6816 | ;; |
6817 | esac | |
6818 | fi | |
6819 | MSGFMT="$ac_cv_path_MSGFMT" | |
459dd1a6 | 6820 | if test "$MSGFMT" != ":"; then |
2ce10144 | 6821 | echo "$as_me:6821: result: $MSGFMT" >&5 |
18569462 | 6822 | echo "${ECHO_T}$MSGFMT" >&6 |
705db0b5 | 6823 | else |
2ce10144 | 6824 | echo "$as_me:6824: result: no" >&5 |
18569462 | 6825 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6826 | fi |
6827 | ||
6828 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
6829 | set dummy gmsgfmt; ac_word=$2 | |
2ce10144 | 6830 | echo "$as_me:6830: checking for $ac_word" >&5 |
18569462 AD |
6831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6832 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6834 | else |
18569462 AD |
6835 | case $GMSGFMT in |
6836 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
6837 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
6838 | ;; | |
705db0b5 | 6839 | *) |
5141b016 | 6840 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
6841 | ac_dummy="$PATH" |
6842 | for ac_dir in $ac_dummy; do | |
6843 | IFS=$ac_save_IFS | |
6844 | test -z "$ac_dir" && ac_dir=. | |
6845 | if $as_executable_p "$ac_dir/$ac_word"; then | |
6846 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
2ce10144 | 6847 | echo "$as_me:6847: found $ac_dir/$ac_word" >&5 |
18569462 AD |
6848 | break |
6849 | fi | |
6850 | done | |
6851 | ||
705db0b5 AD |
6852 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
6853 | ;; | |
6854 | esac | |
6855 | fi | |
18569462 AD |
6856 | GMSGFMT=$ac_cv_path_GMSGFMT |
6857 | ||
705db0b5 | 6858 | if test -n "$GMSGFMT"; then |
2ce10144 | 6859 | echo "$as_me:6859: result: $GMSGFMT" >&5 |
18569462 | 6860 | echo "${ECHO_T}$GMSGFMT" >&6 |
705db0b5 | 6861 | else |
2ce10144 | 6862 | echo "$as_me:6862: result: no" >&5 |
18569462 | 6863 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6864 | fi |
6865 | ||
6866 | # Extract the first word of "xgettext", so it can be a program name with args. | |
6867 | set dummy xgettext; ac_word=$2 | |
2ce10144 | 6868 | echo "$as_me:6868: checking for $ac_word" >&5 |
18569462 AD |
6869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6870 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
6871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6872 | else |
6873 | case "$XGETTEXT" in | |
6874 | /*) | |
6875 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6876 | ;; | |
6877 | *) | |
6878 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6879 | for ac_dir in $PATH; do | |
6880 | test -z "$ac_dir" && ac_dir=. | |
6881 | if test -f $ac_dir/$ac_word; then | |
459dd1a6 | 6882 | if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then |
705db0b5 AD |
6883 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
6884 | break | |
6885 | fi | |
6886 | fi | |
6887 | done | |
6888 | IFS="$ac_save_ifs" | |
6889 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6890 | ;; | |
6891 | esac | |
6892 | fi | |
6893 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
459dd1a6 | 6894 | if test "$XGETTEXT" != ":"; then |
2ce10144 | 6895 | echo "$as_me:6895: result: $XGETTEXT" >&5 |
18569462 | 6896 | echo "${ECHO_T}$XGETTEXT" >&6 |
705db0b5 | 6897 | else |
2ce10144 | 6898 | echo "$as_me:6898: result: no" >&5 |
18569462 | 6899 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6900 | fi |
6901 | ||
1e24cc5b | 6902 | BUILD_INCLUDED_LIBINTL=yes |
705db0b5 AD |
6903 | USE_INCLUDED_LIBINTL=yes |
6904 | CATOBJEXT=.gmo | |
1e24cc5b AD |
6905 | INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV" |
6906 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
705db0b5 AD |
6907 | fi |
6908 | ||
459dd1a6 AD |
6909 | if test "$GMSGFMT" != ":"; then |
6910 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then | |
705db0b5 AD |
6911 | : ; |
6912 | else | |
2ce10144 | 6913 | echo "$as_me:6913: result: found msgfmt program is not GNU msgfmt; ignore it" >&5 |
459dd1a6 AD |
6914 | echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6 |
6915 | GMSGFMT=":" | |
6916 | fi | |
6917 | fi | |
6918 | ||
6919 | if test "$XGETTEXT" != ":"; then | |
6920 | if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then | |
6921 | : ; | |
6922 | else | |
2ce10144 | 6923 | echo "$as_me:6923: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
18569462 | 6924 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 |
705db0b5 AD |
6925 | XGETTEXT=":" |
6926 | fi | |
6927 | fi | |
6928 | ||
1e24cc5b | 6929 | POSUB=po |
705db0b5 | 6930 | fi |
1e24cc5b AD |
6931 | ac_config_commands="$ac_config_commands default-2" |
6932 | ||
6933 | if test "$PACKAGE" = gettext; then | |
6934 | BUILD_INCLUDED_LIBINTL=yes | |
705db0b5 | 6935 | fi |
1e24cc5b AD |
6936 | |
6937 | for ac_prog in bison | |
6938 | do | |
6939 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6940 | set dummy $ac_prog; ac_word=$2 | |
2ce10144 | 6941 | echo "$as_me:6941: checking for $ac_word" >&5 |
1e24cc5b AD |
6942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6943 | if test "${ac_cv_prog_INTLBISON+set}" = set; then | |
6944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6945 | else | |
6946 | if test -n "$INTLBISON"; then | |
6947 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
6948 | else | |
6949 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
6950 | ac_dummy="$PATH" | |
6951 | for ac_dir in $ac_dummy; do | |
6952 | IFS=$ac_save_IFS | |
6953 | test -z "$ac_dir" && ac_dir=. | |
6954 | $as_executable_p "$ac_dir/$ac_word" || continue | |
6955 | ac_cv_prog_INTLBISON="$ac_prog" | |
2ce10144 | 6956 | echo "$as_me:6956: found $ac_dir/$ac_word" >&5 |
1e24cc5b | 6957 | break |
18569462 | 6958 | done |
705db0b5 | 6959 | |
1e24cc5b AD |
6960 | fi |
6961 | fi | |
6962 | INTLBISON=$ac_cv_prog_INTLBISON | |
6963 | if test -n "$INTLBISON"; then | |
2ce10144 | 6964 | echo "$as_me:6964: result: $INTLBISON" >&5 |
1e24cc5b AD |
6965 | echo "${ECHO_T}$INTLBISON" >&6 |
6966 | else | |
2ce10144 | 6967 | echo "$as_me:6967: result: no" >&5 |
1e24cc5b AD |
6968 | echo "${ECHO_T}no" >&6 |
6969 | fi | |
705db0b5 | 6970 | |
1e24cc5b AD |
6971 | test -n "$INTLBISON" && break |
6972 | done | |
6973 | ||
6974 | if test -z "$INTLBISON"; then | |
6975 | ac_verc_fail=yes | |
6976 | else | |
2ce10144 | 6977 | echo "$as_me:6977: checking version of bison" >&5 |
1e24cc5b AD |
6978 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6 |
6979 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
6980 | case $ac_prog_version in | |
6981 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
6982 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
6983 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
6984 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
6985 | esac | |
2ce10144 | 6986 | echo "$as_me:6986: result: $ac_prog_version" >&5 |
1e24cc5b AD |
6987 | echo "${ECHO_T}$ac_prog_version" >&6 |
6988 | fi | |
6989 | if test $ac_verc_fail = yes; then | |
6990 | INTLBISON=: | |
705db0b5 AD |
6991 | fi |
6992 | ||
6993 | for lang in $ALL_LINGUAS; do | |
6994 | GMOFILES="$GMOFILES $lang.gmo" | |
6995 | POFILES="$POFILES $lang.po" | |
6996 | done | |
6997 | ||
1e24cc5b AD |
6998 | nls_cv_header_intl= |
6999 | nls_cv_header_libgt= | |
7000 | ||
7001 | DATADIRNAME=share | |
7002 | ||
7003 | INSTOBJEXT=.mo | |
7004 | ||
7005 | GENCAT=gencat | |
7006 | ||
705db0b5 AD |
7007 | if test "x$CATOBJEXT" != "x"; then |
7008 | if test "x$ALL_LINGUAS" = "x"; then | |
7009 | LINGUAS= | |
7010 | else | |
2ce10144 | 7011 | echo "$as_me:7011: checking for catalogs to be installed" >&5 |
18569462 | 7012 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 |
705db0b5 | 7013 | NEW_LINGUAS= |
1e24cc5b AD |
7014 | for presentlang in $ALL_LINGUAS; do |
7015 | useit=no | |
7016 | for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do | |
7017 | # Use the presentlang catalog if desiredlang is | |
7018 | # a. equal to presentlang, or | |
7019 | # b. a variant of presentlang (because in this case, | |
7020 | # presentlang can be used as a fallback for messages | |
7021 | # which are not translated in the desiredlang catalog). | |
7022 | case "$desiredlang" in | |
7023 | "$presentlang"*) useit=yes;; | |
7024 | esac | |
7025 | done | |
7026 | if test $useit = yes; then | |
7027 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | |
7028 | fi | |
705db0b5 AD |
7029 | done |
7030 | LINGUAS=$NEW_LINGUAS | |
2ce10144 | 7031 | echo "$as_me:7031: result: $LINGUAS" >&5 |
18569462 | 7032 | echo "${ECHO_T}$LINGUAS" >&6 |
705db0b5 AD |
7033 | fi |
7034 | ||
7035 | if test -n "$LINGUAS"; then | |
7036 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
7037 | fi | |
7038 | fi | |
7039 | ||
705db0b5 AD |
7040 | MKINSTALLDIRS= |
7041 | if test -n "$ac_aux_dir"; then | |
1e24cc5b | 7042 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
705db0b5 AD |
7043 | fi |
7044 | if test -z "$MKINSTALLDIRS"; then | |
7045 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
7046 | fi | |
705db0b5 | 7047 | |
1e24cc5b | 7048 | INTL_LIBTOOL_SUFFIX_PREFIX= |
705db0b5 | 7049 | |
705db0b5 AD |
7050 | # This is necessary so that .o files in LIBOBJS are also built via |
7051 | # the ANSI2KNR-filtering rules. | |
7052 | LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` | |
7053 | ||
1e24cc5b | 7054 | 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 | 7055 | cat >confcache <<\_ACEOF |
705db0b5 AD |
7056 | # This file is a shell script that caches the results of configure |
7057 | # tests run on this system so they can be shared between configure | |
18569462 AD |
7058 | # scripts and configure runs, see configure's option --config-cache. |
7059 | # It is not useful on other systems. If it contains results you don't | |
7060 | # want to keep, you may remove or edit it. | |
705db0b5 | 7061 | # |
18569462 AD |
7062 | # config.status only pays attention to the cache file if you give it |
7063 | # the --recheck option to rerun configure. | |
705db0b5 | 7064 | # |
18569462 AD |
7065 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
7066 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7067 | # following values. | |
7068 | ||
7069 | _ACEOF | |
7070 | ||
705db0b5 AD |
7071 | # The following way of writing the cache mishandles newlines in values, |
7072 | # but we know of no workaround that is simple, portable, and efficient. | |
7073 | # So, don't put newlines in cache variables' values. | |
7074 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7075 | # and sets the high bit in the cache file unless we assign to the vars. | |
18569462 AD |
7076 | { |
7077 | (set) 2>&1 | | |
7078 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7079 | *ac_space=\ *) | |
7080 | # `set' does not quote correctly, so add quotes (double-quote | |
7081 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7082 | sed -n \ | |
7083 | "s/'/'\\\\''/g; | |
459dd1a6 | 7084 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
18569462 AD |
7085 | ;; |
7086 | *) | |
7087 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7088 | sed -n \ | |
459dd1a6 | 7089 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
18569462 AD |
7090 | ;; |
7091 | esac; | |
7092 | } | | |
7093 | sed ' | |
7094 | t clear | |
7095 | : clear | |
7096 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7097 | t end | |
7098 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7099 | : end' >>confcache | |
7100 | if cmp -s $cache_file confcache; then :; else | |
705db0b5 | 7101 | if test -w $cache_file; then |
18569462 AD |
7102 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
7103 | cat confcache >$cache_file | |
705db0b5 AD |
7104 | else |
7105 | echo "not updating unwritable cache $cache_file" | |
7106 | fi | |
7107 | fi | |
7108 | rm -f confcache | |
7109 | ||
705db0b5 AD |
7110 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7111 | # Let make expand exec_prefix. | |
7112 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7113 | ||
5141b016 AD |
7114 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
7115 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7116 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7117 | # (actually we leave an empty line to preserve line numbers). | |
705db0b5 | 7118 | if test "x$srcdir" = x.; then |
5141b016 AD |
7119 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
7120 | s/:*\$(srcdir):*/:/; | |
7121 | s/:*\${srcdir}:*/:/; | |
7122 | s/:*@srcdir@:*/:/; | |
7123 | s/^\([^=]*=[ ]*\):*/\1/; | |
7124 | s/:*$//; | |
7125 | s/^[^=]*=[ ]*$//; | |
7126 | }' | |
705db0b5 AD |
7127 | fi |
7128 | ||
705db0b5 AD |
7129 | DEFS=-DHAVE_CONFIG_H |
7130 | ||
705db0b5 | 7131 | : ${CONFIG_STATUS=./config.status} |
18569462 AD |
7132 | ac_clean_files_save=$ac_clean_files |
7133 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
2ce10144 | 7134 | { echo "$as_me:7134: creating $CONFIG_STATUS" >&5 |
18569462 | 7135 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
1e24cc5b AD |
7136 | cat >$CONFIG_STATUS <<_ACEOF |
7137 | #! $SHELL | |
705db0b5 AD |
7138 | # Generated automatically by configure. |
7139 | # Run this file to recreate the current configuration. | |
705db0b5 | 7140 | # Compiler output produced by configure, useful for debugging |
18569462 | 7141 | # configure, is in config.log if it exists. |
705db0b5 | 7142 | |
18569462 | 7143 | debug=false |
1e24cc5b AD |
7144 | SHELL=\${CONFIG_SHELL-$SHELL} |
7145 | ac_cs_invocation="\$0 \$@" | |
7146 | ||
7147 | _ACEOF | |
18569462 | 7148 | |
1e24cc5b | 7149 | cat >>$CONFIG_STATUS <<\_ACEOF |
18569462 AD |
7150 | # Be Bourne compatible |
7151 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7152 | emulate sh | |
7153 | NULLCMD=: | |
7154 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
7155 | set -o posix | |
7156 | fi | |
7157 | ||
1e24cc5b AD |
7158 | # Name of the executable. |
7159 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
7160 | ||
18569462 AD |
7161 | if expr a : '\(a\)' >/dev/null 2>&1; then |
7162 | as_expr=expr | |
7163 | else | |
7164 | as_expr=false | |
7165 | fi | |
7166 | ||
5141b016 AD |
7167 | rm -f conf$$ conf$$.exe conf$$.file |
7168 | echo >conf$$.file | |
7169 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18569462 AD |
7170 | # We could just check for DJGPP; but this test a) works b) is more generic |
7171 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
5141b016 | 7172 | if test -f conf$$.exe; then |
18569462 AD |
7173 | # Don't use ln at all; we don't have any links |
7174 | as_ln_s='cp -p' | |
7175 | else | |
7176 | as_ln_s='ln -s' | |
7177 | fi | |
5141b016 | 7178 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18569462 AD |
7179 | as_ln_s=ln |
7180 | else | |
7181 | as_ln_s='cp -p' | |
7182 | fi | |
5141b016 | 7183 | rm -f conf$$ conf$$.exe conf$$.file |
18569462 | 7184 | |
5141b016 | 7185 | as_executable_p="test -f" |
18569462 AD |
7186 | |
7187 | # Support unset when possible. | |
7188 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
7189 | as_unset=unset | |
7190 | else | |
7191 | as_unset=false | |
7192 | fi | |
7193 | ||
7194 | # NLS nuisances. | |
7195 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
7196 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
7197 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
7198 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
7199 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
7200 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
7201 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
7202 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
7203 | ||
7204 | # IFS | |
7205 | # We need space, tab and new line, in precisely that order. | |
7206 | as_nl=' | |
7207 | ' | |
7208 | IFS=" $as_nl" | |
7209 | ||
7210 | # CDPATH. | |
7211 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
7212 | ||
18569462 AD |
7213 | exec 6>&1 |
7214 | ||
18569462 AD |
7215 | _ACEOF |
7216 | ||
7217 | # Files that config.status was made for. | |
7218 | if test -n "$ac_config_files"; then | |
7219 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7220 | fi | |
7221 | ||
7222 | if test -n "$ac_config_headers"; then | |
7223 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7224 | fi | |
7225 | ||
7226 | if test -n "$ac_config_links"; then | |
7227 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7228 | fi | |
7229 | ||
7230 | if test -n "$ac_config_commands"; then | |
7231 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7232 | fi | |
7233 | ||
7234 | cat >>$CONFIG_STATUS <<\EOF | |
7235 | ||
7236 | ac_cs_usage="\ | |
7237 | \`$as_me' instantiates files from templates according to the | |
7238 | current configuration. | |
7239 | ||
7240 | Usage: $0 [OPTIONS] [FILE]... | |
7241 | ||
7242 | -h, --help print this help, then exit | |
7243 | -V, --version print version number, then exit | |
7244 | -d, --debug don't remove temporary files | |
7245 | --recheck update $as_me by reconfiguring in the same conditions | |
7246 | --file=FILE[:TEMPLATE] | |
7247 | instantiate the configuration file FILE | |
7248 | --header=FILE[:TEMPLATE] | |
7249 | instantiate the configuration header FILE | |
7250 | ||
7251 | Configuration files: | |
7252 | $config_files | |
7253 | ||
7254 | Configuration headers: | |
7255 | $config_headers | |
7256 | ||
18569462 AD |
7257 | Configuration commands: |
7258 | $config_commands | |
7259 | ||
7260 | Report bugs to <bug-autoconf@gnu.org>." | |
7261 | EOF | |
7262 | ||
7263 | cat >>$CONFIG_STATUS <<EOF | |
7264 | ac_cs_version="\\ | |
84163231 | 7265 | bison config.status 1.28c |
459dd1a6 | 7266 | configured by $0, generated by GNU Autoconf 2.52, |
1e24cc5b AD |
7267 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
7268 | ||
7269 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
7270 | Free Software Foundation, Inc. | |
7271 | This config.status script is free software; the Free Software Foundation | |
7272 | gives unlimited permission to copy, distribute and modify it." | |
18569462 AD |
7273 | srcdir=$srcdir |
7274 | INSTALL="$INSTALL" | |
7275 | EOF | |
7276 | ||
7277 | cat >>$CONFIG_STATUS <<\EOF | |
7278 | # If no file are specified by the user, then we need to provide default | |
7279 | # value. By we need to know if files were specified by the user. | |
7280 | ac_need_defaults=: | |
7281 | while test $# != 0 | |
705db0b5 | 7282 | do |
18569462 AD |
7283 | case $1 in |
7284 | --*=*) | |
7285 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7286 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
7287 | shift | |
7288 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
7289 | shift | |
7290 | ;; | |
7291 | -*);; | |
7292 | *) # This is not an option, so the user has probably given explicit | |
7293 | # arguments. | |
7294 | ac_need_defaults=false;; | |
7295 | esac | |
7296 | ||
7297 | case $1 in | |
7298 | # Handling of the options. | |
7299 | EOF | |
7300 | cat >>$CONFIG_STATUS <<EOF | |
705db0b5 | 7301 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18569462 AD |
7302 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
7303 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
7304 | EOF | |
7305 | cat >>$CONFIG_STATUS <<\EOF | |
7306 | --version | --vers* | -V ) | |
7307 | echo "$ac_cs_version"; exit 0 ;; | |
7308 | --he | --h) | |
7309 | # Conflict between --help and --header | |
2ce10144 | 7310 | { { echo "$as_me:7310: error: ambiguous option: $1 |
18569462 AD |
7311 | Try \`$0 --help' for more information." >&5 |
7312 | echo "$as_me: error: ambiguous option: $1 | |
7313 | Try \`$0 --help' for more information." >&2;} | |
7314 | { (exit 1); exit 1; }; };; | |
7315 | --help | --hel | -h ) | |
7316 | echo "$ac_cs_usage"; exit 0 ;; | |
7317 | --debug | --d* | -d ) | |
7318 | debug=: ;; | |
7319 | --file | --fil | --fi | --f ) | |
7320 | shift | |
7321 | CONFIG_FILES="$CONFIG_FILES $1" | |
7322 | ac_need_defaults=false;; | |
7323 | --header | --heade | --head | --hea ) | |
7324 | shift | |
7325 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
7326 | ac_need_defaults=false;; | |
7327 | ||
18569462 | 7328 | # This is an error. |
2ce10144 | 7329 | -*) { { echo "$as_me:7329: error: unrecognized option: $1 |
18569462 AD |
7330 | Try \`$0 --help' for more information." >&5 |
7331 | echo "$as_me: error: unrecognized option: $1 | |
7332 | Try \`$0 --help' for more information." >&2;} | |
7333 | { (exit 1); exit 1; }; } ;; | |
459dd1a6 AD |
7334 | |
7335 | *) ac_config_targets="$ac_config_targets $1" ;; | |
7336 | ||
705db0b5 | 7337 | esac |
18569462 | 7338 | shift |
705db0b5 AD |
7339 | done |
7340 | ||
1e24cc5b AD |
7341 | exec 5>>config.log |
7342 | cat >&5 << _ACEOF | |
7343 | ||
7344 | ## ----------------------- ## | |
7345 | ## Running config.status. ## | |
7346 | ## ----------------------- ## | |
7347 | ||
84163231 | 7348 | This file was extended by $as_me (bison 1.28c) 2.52, executed with |
459dd1a6 AD |
7349 | CONFIG_FILES = $CONFIG_FILES |
7350 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7351 | CONFIG_LINKS = $CONFIG_LINKS | |
7352 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
1e24cc5b AD |
7353 | > $ac_cs_invocation |
7354 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
7355 | ||
7356 | _ACEOF | |
18569462 AD |
7357 | EOF |
7358 | ||
459dd1a6 AD |
7359 | cat >>$CONFIG_STATUS <<EOF |
7360 | # | |
7361 | # INIT-COMMANDS section. | |
7362 | # | |
7363 | ||
7364 | EOF | |
7365 | ||
18569462 | 7366 | cat >>$CONFIG_STATUS <<\EOF |
459dd1a6 AD |
7367 | for ac_config_target in $ac_config_targets |
7368 | do | |
7369 | case "$ac_config_target" in | |
7370 | # Handling of arguments. | |
7371 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7372 | "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; | |
7373 | "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; | |
7374 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | |
7375 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7376 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
7377 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
7378 | "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | |
7379 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
7380 | "tests/atconfig" ) CONFIG_FILES="$CONFIG_FILES tests/atconfig" ;; | |
7381 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
7382 | "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; | |
7383 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; | |
2ce10144 | 7384 | *) { { echo "$as_me:7384: error: invalid argument: $ac_config_target" >&5 |
459dd1a6 AD |
7385 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
7386 | { (exit 1); exit 1; }; };; | |
7387 | esac | |
7388 | done | |
7389 | ||
18569462 AD |
7390 | # If the user did not use the arguments to specify the items to instantiate, |
7391 | # then the envvar interface is used. Set only those that are not. | |
7392 | # We use the long form for the default assignment because of an extremely | |
7393 | # bizarre bug on SunOS 4.1.3. | |
7394 | if $ac_need_defaults; then | |
7395 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7396 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18569462 AD |
7397 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
7398 | fi | |
7399 | ||
7400 | # Create a temporary directory, and hook for its removal unless debugging. | |
7401 | $debug || | |
7402 | { | |
7403 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
459dd1a6 | 7404 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
18569462 AD |
7405 | } |
7406 | ||
7407 | # Create a (secure) tmp directory for tmp files. | |
7408 | : ${TMPDIR=/tmp} | |
7409 | { | |
7410 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
7411 | test -n "$tmp" && test -d "$tmp" | |
7412 | } || | |
7413 | { | |
7414 | tmp=$TMPDIR/cs$$-$RANDOM | |
7415 | (umask 077 && mkdir $tmp) | |
7416 | } || | |
7417 | { | |
7418 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
7419 | { (exit 1); exit 1; } | |
7420 | } | |
705db0b5 | 7421 | |
705db0b5 | 7422 | EOF |
705db0b5 | 7423 | |
18569462 | 7424 | cat >>$CONFIG_STATUS <<EOF |
705db0b5 | 7425 | |
18569462 AD |
7426 | # |
7427 | # CONFIG_FILES section. | |
7428 | # | |
7429 | ||
7430 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7431 | # This happens for instance when ./config.status config.h | |
7432 | if test -n "\$CONFIG_FILES"; then | |
7433 | # Protect against being on the right side of a sed subst in config.status. | |
7434 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7435 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7436 | s,@SHELL@,$SHELL,;t t | |
7437 | s,@exec_prefix@,$exec_prefix,;t t | |
7438 | s,@prefix@,$prefix,;t t | |
7439 | s,@program_transform_name@,$program_transform_name,;t t | |
7440 | s,@bindir@,$bindir,;t t | |
7441 | s,@sbindir@,$sbindir,;t t | |
7442 | s,@libexecdir@,$libexecdir,;t t | |
7443 | s,@datadir@,$datadir,;t t | |
7444 | s,@sysconfdir@,$sysconfdir,;t t | |
7445 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7446 | s,@localstatedir@,$localstatedir,;t t | |
7447 | s,@libdir@,$libdir,;t t | |
7448 | s,@includedir@,$includedir,;t t | |
7449 | s,@oldincludedir@,$oldincludedir,;t t | |
7450 | s,@infodir@,$infodir,;t t | |
7451 | s,@mandir@,$mandir,;t t | |
7452 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7453 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7454 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7455 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7456 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
459dd1a6 AD |
7457 | s,@build_alias@,$build_alias,;t t |
7458 | s,@host_alias@,$host_alias,;t t | |
7459 | s,@target_alias@,$target_alias,;t t | |
18569462 AD |
7460 | s,@ECHO_C@,$ECHO_C,;t t |
7461 | s,@ECHO_N@,$ECHO_N,;t t | |
7462 | s,@ECHO_T@,$ECHO_T,;t t | |
5141b016 | 7463 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
18569462 AD |
7464 | s,@DEFS@,$DEFS,;t t |
7465 | s,@LIBS@,$LIBS,;t t | |
7466 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7467 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7468 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7469 | s,@PACKAGE@,$PACKAGE,;t t | |
7470 | s,@VERSION@,$VERSION,;t t | |
7471 | s,@ACLOCAL@,$ACLOCAL,;t t | |
7472 | s,@AUTOCONF@,$AUTOCONF,;t t | |
7473 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
7474 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
7475 | s,@MAKEINFO@,$MAKEINFO,;t t | |
7476 | s,@SET_MAKE@,$SET_MAKE,;t t | |
7477 | s,@AT_TESTPATH@,$AT_TESTPATH,;t t | |
7478 | s,@CC@,$CC,;t t | |
7479 | s,@CFLAGS@,$CFLAGS,;t t | |
7480 | s,@LDFLAGS@,$LDFLAGS,;t t | |
1e24cc5b | 7481 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
18569462 | 7482 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
18569462 | 7483 | s,@EXEEXT@,$EXEEXT,;t t |
5141b016 | 7484 | s,@OBJEXT@,$OBJEXT,;t t |
18569462 | 7485 | s,@CPP@,$CPP,;t t |
18569462 AD |
7486 | s,@RANLIB@,$RANLIB,;t t |
7487 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
7488 | s,@M4@,$M4,;t t | |
7489 | s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t | |
7490 | s,@U@,$U,;t t | |
7491 | s,@ANSI2KNR@,$ANSI2KNR,;t t | |
7492 | s,@ALLOCA@,$ALLOCA,;t t | |
7493 | s,@LIBOBJS@,$LIBOBJS,;t t | |
1e24cc5b AD |
7494 | s,@build@,$build,;t t |
7495 | s,@build_cpu@,$build_cpu,;t t | |
7496 | s,@build_vendor@,$build_vendor,;t t | |
7497 | s,@build_os@,$build_os,;t t | |
7498 | s,@host@,$host,;t t | |
7499 | s,@host_cpu@,$host_cpu,;t t | |
7500 | s,@host_vendor@,$host_vendor,;t t | |
7501 | s,@host_os@,$host_os,;t t | |
7502 | s,@GLIBC21@,$GLIBC21,;t t | |
7503 | s,@LIBICONV@,$LIBICONV,;t t | |
18569462 AD |
7504 | s,@USE_NLS@,$USE_NLS,;t t |
7505 | s,@MSGFMT@,$MSGFMT,;t t | |
7506 | s,@GMSGFMT@,$GMSGFMT,;t t | |
7507 | s,@XGETTEXT@,$XGETTEXT,;t t | |
1e24cc5b AD |
7508 | s,@INTLBISON@,$INTLBISON,;t t |
7509 | s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t | |
18569462 AD |
7510 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t |
7511 | s,@CATALOGS@,$CATALOGS,;t t | |
7512 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
18569462 | 7513 | s,@GMOFILES@,$GMOFILES,;t t |
18569462 AD |
7514 | s,@INTLLIBS@,$INTLLIBS,;t t |
7515 | s,@INTLOBJS@,$INTLOBJS,;t t | |
7516 | s,@POFILES@,$POFILES,;t t | |
7517 | s,@POSUB@,$POSUB,;t t | |
1e24cc5b AD |
7518 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
7519 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
7520 | s,@GENCAT@,$GENCAT,;t t | |
18569462 | 7521 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
1e24cc5b | 7522 | s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t |
705db0b5 | 7523 | CEOF |
18569462 | 7524 | |
705db0b5 AD |
7525 | EOF |
7526 | ||
18569462 AD |
7527 | cat >>$CONFIG_STATUS <<\EOF |
7528 | # Split the substitutions into bite-sized pieces for seds with | |
7529 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7530 | ac_max_sed_lines=48 | |
7531 | ac_sed_frag=1 # Number of current file. | |
7532 | ac_beg=1 # First line for current file. | |
7533 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7534 | ac_more_lines=: | |
7535 | ac_sed_cmds= | |
7536 | while $ac_more_lines; do | |
7537 | if test $ac_beg -gt 1; then | |
7538 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7539 | else | |
7540 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7541 | fi | |
7542 | if test ! -s $tmp/subs.frag; then | |
7543 | ac_more_lines=false | |
705db0b5 | 7544 | else |
18569462 AD |
7545 | # The purpose of the label and of the branching condition is to |
7546 | # speed up the sed processing (if there are no `@' at all, there | |
7547 | # is no need to browse any of the substitutions). | |
7548 | # These are the two extra sed commands mentioned above. | |
7549 | (echo ':t | |
7550 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7551 | if test -z "$ac_sed_cmds"; then | |
7552 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
7553 | else | |
7554 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
7555 | fi | |
7556 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7557 | ac_beg=$ac_end | |
7558 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
705db0b5 | 7559 | fi |
18569462 AD |
7560 | done |
7561 | if test -z "$ac_sed_cmds"; then | |
7562 | ac_sed_cmds=cat | |
705db0b5 | 7563 | fi |
18569462 | 7564 | fi # test -n "$CONFIG_FILES" |
705db0b5 | 7565 | |
705db0b5 | 7566 | EOF |
18569462 AD |
7567 | cat >>$CONFIG_STATUS <<\EOF |
7568 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
705db0b5 | 7569 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
18569462 AD |
7570 | case $ac_file in |
7571 | - | *:- | *:-:* ) # input from stdin | |
7572 | cat >$tmp/stdin | |
7573 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7574 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7575 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7576 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7577 | * ) ac_file_in=$ac_file.in ;; | |
705db0b5 AD |
7578 | esac |
7579 | ||
18569462 AD |
7580 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
7581 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7582 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7583 | X"$ac_file" : 'X\(//\)$' \| \ | |
7584 | X"$ac_file" : 'X\(/\)' \| \ | |
7585 | . : '\(.\)' 2>/dev/null || | |
7586 | echo X"$ac_file" | | |
7587 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7588 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7589 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7590 | /^X\(\/\).*/{ s//\1/; q; } | |
7591 | s/.*/./; q'` | |
705db0b5 | 7592 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
18569462 AD |
7593 | { case "$ac_dir" in |
7594 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
7595 | *) as_incr_dir=.;; | |
7596 | esac | |
7597 | as_dummy="$ac_dir" | |
7598 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
7599 | case $as_mkdir_dir in | |
7600 | # Skip DOS drivespec | |
7601 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
7602 | *) | |
7603 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
7604 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
7605 | ;; | |
7606 | esac | |
7607 | done; } | |
7608 | ||
7609 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
705db0b5 | 7610 | # A "../" for each directory in $ac_dir_suffix. |
18569462 | 7611 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
705db0b5 AD |
7612 | else |
7613 | ac_dir_suffix= ac_dots= | |
7614 | fi | |
7615 | ||
18569462 AD |
7616 | case $srcdir in |
7617 | .) ac_srcdir=. | |
7618 | if test -z "$ac_dots"; then | |
7619 | ac_top_srcdir=. | |
7620 | else | |
7621 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
7622 | fi ;; | |
7623 | [\\/]* | ?:[\\/]* ) | |
7624 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7625 | ac_top_srcdir=$srcdir ;; | |
705db0b5 | 7626 | *) # Relative path. |
18569462 AD |
7627 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
7628 | ac_top_srcdir=$ac_dots$srcdir ;; | |
705db0b5 AD |
7629 | esac |
7630 | ||
18569462 AD |
7631 | case $INSTALL in |
7632 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7633 | *) ac_INSTALL=$ac_dots$INSTALL ;; | |
705db0b5 AD |
7634 | esac |
7635 | ||
18569462 | 7636 | if test x"$ac_file" != x-; then |
2ce10144 | 7637 | { echo "$as_me:7637: creating $ac_file" >&5 |
18569462 AD |
7638 | echo "$as_me: creating $ac_file" >&6;} |
7639 | rm -f "$ac_file" | |
7640 | fi | |
7641 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7642 | # use $as_me), people would be surprised to read: | |
7643 | # /* config.h. Generated automatically by config.status. */ | |
7644 | configure_input="Generated automatically from `echo $ac_file_in | | |
7645 | sed 's,.*/,,'` by configure." | |
7646 | ||
7647 | # First look for the input files in the build tree, otherwise in the | |
7648 | # src tree. | |
7649 | ac_file_inputs=`IFS=: | |
7650 | for f in $ac_file_in; do | |
7651 | case $f in | |
7652 | -) echo $tmp/stdin ;; | |
1e24cc5b AD |
7653 | [\\/$]*) |
7654 | # Absolute (can't be DOS-style, as IFS=:) | |
2ce10144 | 7655 | test -f "$f" || { { echo "$as_me:7655: error: cannot find input file: $f" >&5 |
18569462 AD |
7656 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7657 | { (exit 1); exit 1; }; } | |
7658 | echo $f;; | |
7659 | *) # Relative | |
7660 | if test -f "$f"; then | |
7661 | # Build tree | |
7662 | echo $f | |
7663 | elif test -f "$srcdir/$f"; then | |
7664 | # Source tree | |
7665 | echo $srcdir/$f | |
7666 | else | |
7667 | # /dev/null tree | |
2ce10144 | 7668 | { { echo "$as_me:7668: error: cannot find input file: $f" >&5 |
18569462 AD |
7669 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7670 | { (exit 1); exit 1; }; } | |
7671 | fi;; | |
7672 | esac | |
7673 | done` || { (exit 1); exit 1; } | |
7674 | EOF | |
7675 | cat >>$CONFIG_STATUS <<EOF | |
7676 | sed "$ac_vpsub | |
7677 | $extrasub | |
7678 | EOF | |
7679 | cat >>$CONFIG_STATUS <<\EOF | |
7680 | :t | |
7681 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7682 | s,@configure_input@,$configure_input,;t t | |
7683 | s,@srcdir@,$ac_srcdir,;t t | |
7684 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7685 | s,@INSTALL@,$ac_INSTALL,;t t | |
7686 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7687 | rm -f $tmp/stdin | |
7688 | if test x"$ac_file" != x-; then | |
7689 | mv $tmp/out $ac_file | |
7690 | else | |
7691 | cat $tmp/out | |
7692 | rm -f $tmp/out | |
7693 | fi | |
7694 | ||
7695 | done | |
7696 | EOF | |
7697 | cat >>$CONFIG_STATUS <<\EOF | |
705db0b5 | 7698 | |
18569462 AD |
7699 | # |
7700 | # CONFIG_HEADER section. | |
7701 | # | |
705db0b5 AD |
7702 | |
7703 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7704 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7705 | # | |
7706 | # ac_d sets the value in "#define NAME VALUE" lines. | |
18569462 AD |
7707 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7708 | ac_dB='[ ].*$,\1#\2' | |
7709 | ac_dC=' ' | |
7710 | ac_dD=',;t' | |
7711 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7712 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7713 | ac_uB='$,\1#\2define\3' | |
705db0b5 | 7714 | ac_uC=' ' |
18569462 AD |
7715 | ac_uD=',;t' |
7716 | ||
7717 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
705db0b5 | 7718 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
18569462 AD |
7719 | case $ac_file in |
7720 | - | *:- | *:-:* ) # input from stdin | |
7721 | cat >$tmp/stdin | |
7722 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7723 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7724 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7725 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7726 | * ) ac_file_in=$ac_file.in ;; | |
705db0b5 AD |
7727 | esac |
7728 | ||
2ce10144 | 7729 | test x"$ac_file" != x- && { echo "$as_me:7729: creating $ac_file" >&5 |
18569462 AD |
7730 | echo "$as_me: creating $ac_file" >&6;} |
7731 | ||
7732 | # First look for the input files in the build tree, otherwise in the | |
7733 | # src tree. | |
7734 | ac_file_inputs=`IFS=: | |
7735 | for f in $ac_file_in; do | |
7736 | case $f in | |
7737 | -) echo $tmp/stdin ;; | |
1e24cc5b AD |
7738 | [\\/$]*) |
7739 | # Absolute (can't be DOS-style, as IFS=:) | |
2ce10144 | 7740 | test -f "$f" || { { echo "$as_me:7740: error: cannot find input file: $f" >&5 |
18569462 AD |
7741 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7742 | { (exit 1); exit 1; }; } | |
7743 | echo $f;; | |
7744 | *) # Relative | |
7745 | if test -f "$f"; then | |
7746 | # Build tree | |
7747 | echo $f | |
7748 | elif test -f "$srcdir/$f"; then | |
7749 | # Source tree | |
7750 | echo $srcdir/$f | |
7751 | else | |
7752 | # /dev/null tree | |
2ce10144 | 7753 | { { echo "$as_me:7753: error: cannot find input file: $f" >&5 |
18569462 AD |
7754 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7755 | { (exit 1); exit 1; }; } | |
7756 | fi;; | |
7757 | esac | |
7758 | done` || { (exit 1); exit 1; } | |
7759 | # Remove the trailing spaces. | |
7760 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
7761 | ||
7762 | EOF | |
7763 | ||
7764 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
7765 | # `conftest.undefs', that substitutes the proper values into | |
7766 | # config.h.in to produce config.h. The first handles `#define' | |
7767 | # templates, and the second `#undef' templates. | |
7768 | # And first: Protect against being on the right side of a sed subst in | |
7769 | # config.status. Protect against being in an unquoted here document | |
7770 | # in config.status. | |
7771 | rm -f conftest.defines conftest.undefs | |
7772 | # Using a here document instead of a string reduces the quoting nightmare. | |
7773 | # Putting comments in sed scripts is not portable. | |
7774 | # | |
7775 | # `end' is used to avoid that the second main sed command (meant for | |
7776 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
7777 | # See the Autoconf documentation for `clear'. | |
7778 | cat >confdef2sed.sed <<\EOF | |
7779 | s/[\\&,]/\\&/g | |
7780 | s,[\\$`],\\&,g | |
7781 | t clear | |
7782 | : clear | |
7783 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
7784 | t end | |
7785 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
7786 | : end | |
7787 | EOF | |
7788 | # If some macros were called several times there might be several times | |
7789 | # the same #defines, which is useless. Nevertheless, we may not want to | |
7790 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
7791 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7792 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7793 | rm -f confdef2sed.sed | |
705db0b5 AD |
7794 | |
7795 | # This sed command replaces #undef with comments. This is necessary, for | |
7796 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7797 | # on some systems where configure will not decide to define it. | |
18569462 AD |
7798 | cat >>conftest.undefs <<\EOF |
7799 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
705db0b5 AD |
7800 | EOF |
7801 | ||
18569462 AD |
7802 | # Break up conftest.defines because some shells have a limit on the size |
7803 | # of here documents, and old seds have small limits too (100 cmds). | |
7804 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
7805 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
7806 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
7807 | echo ' :' >>$CONFIG_STATUS | |
7808 | rm -f conftest.tail | |
7809 | while grep . conftest.defines >/dev/null | |
7810 | do | |
7811 | # Write a limited-size here document to $tmp/defines.sed. | |
7812 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7813 | # Speed up: don't consider the non `#define' lines. | |
7814 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
7815 | # Work around the forget-to-reset-the-flag bug. | |
7816 | echo 't clr' >>$CONFIG_STATUS | |
7817 | echo ': clr' >>$CONFIG_STATUS | |
7818 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7819 | echo 'CEOF | |
7820 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7821 | rm -f $tmp/in | |
7822 | mv $tmp/out $tmp/in | |
7823 | ' >>$CONFIG_STATUS | |
7824 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7825 | rm -f conftest.defines | |
7826 | mv conftest.tail conftest.defines | |
7827 | done | |
7828 | rm -f conftest.defines | |
7829 | echo ' fi # egrep' >>$CONFIG_STATUS | |
7830 | echo >>$CONFIG_STATUS | |
705db0b5 | 7831 | |
18569462 AD |
7832 | # Break up conftest.undefs because some shells have a limit on the size |
7833 | # of here documents, and old seds have small limits too (100 cmds). | |
7834 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
705db0b5 | 7835 | rm -f conftest.tail |
18569462 | 7836 | while grep . conftest.undefs >/dev/null |
705db0b5 | 7837 | do |
18569462 AD |
7838 | # Write a limited-size here document to $tmp/undefs.sed. |
7839 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7840 | # Speed up: don't consider the non `#undef' | |
7841 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
7842 | # Work around the forget-to-reset-the-flag bug. | |
7843 | echo 't clr' >>$CONFIG_STATUS | |
7844 | echo ': clr' >>$CONFIG_STATUS | |
7845 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
705db0b5 | 7846 | echo 'CEOF |
18569462 AD |
7847 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
7848 | rm -f $tmp/in | |
7849 | mv $tmp/out $tmp/in | |
7850 | ' >>$CONFIG_STATUS | |
7851 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
7852 | rm -f conftest.undefs | |
7853 | mv conftest.tail conftest.undefs | |
705db0b5 | 7854 | done |
18569462 AD |
7855 | rm -f conftest.undefs |
7856 | ||
7857 | cat >>$CONFIG_STATUS <<\EOF | |
7858 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7859 | # use $as_me), people would be surprised to read: | |
7860 | # /* config.h. Generated automatically by config.status. */ | |
7861 | if test x"$ac_file" = x-; then | |
7862 | echo "/* Generated automatically by configure. */" >$tmp/config.h | |
705db0b5 | 7863 | else |
18569462 AD |
7864 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
7865 | fi | |
7866 | cat $tmp/in >>$tmp/config.h | |
7867 | rm -f $tmp/in | |
7868 | if test x"$ac_file" != x-; then | |
7869 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
2ce10144 | 7870 | { echo "$as_me:7870: $ac_file is unchanged" >&5 |
18569462 AD |
7871 | echo "$as_me: $ac_file is unchanged" >&6;} |
7872 | else | |
7873 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7874 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7875 | X"$ac_file" : 'X\(//\)$' \| \ | |
7876 | X"$ac_file" : 'X\(/\)' \| \ | |
7877 | . : '\(.\)' 2>/dev/null || | |
7878 | echo X"$ac_file" | | |
7879 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7880 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7881 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7882 | /^X\(\/\).*/{ s//\1/; q; } | |
7883 | s/.*/./; q'` | |
705db0b5 | 7884 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
18569462 AD |
7885 | { case "$ac_dir" in |
7886 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
7887 | *) as_incr_dir=.;; | |
7888 | esac | |
7889 | as_dummy="$ac_dir" | |
7890 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
7891 | case $as_mkdir_dir in | |
7892 | # Skip DOS drivespec | |
7893 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
7894 | *) | |
7895 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
7896 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
7897 | ;; | |
7898 | esac | |
7899 | done; } | |
7900 | ||
7901 | fi | |
7902 | rm -f $ac_file | |
7903 | mv $tmp/config.h $ac_file | |
705db0b5 | 7904 | fi |
18569462 AD |
7905 | else |
7906 | cat $tmp/config.h | |
7907 | rm -f $tmp/config.h | |
705db0b5 | 7908 | fi |
18569462 | 7909 | done |
705db0b5 | 7910 | EOF |
18569462 | 7911 | cat >>$CONFIG_STATUS <<\EOF |
705db0b5 | 7912 | |
18569462 AD |
7913 | # |
7914 | # CONFIG_COMMANDS section. | |
7915 | # | |
7916 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
7917 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
7918 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
705db0b5 | 7919 | |
18569462 AD |
7920 | case $ac_dest in |
7921 | default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; | |
1e24cc5b AD |
7922 | default-2 ) for ac_file in $CONFIG_FILES; do |
7923 | # Support "outfile[:infile[:infile...]]" | |
7924 | case "$ac_file" in | |
7925 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
7926 | esac | |
7927 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
7928 | case "$ac_file" in */Makefile.in) | |
7929 | # Adjust a relative srcdir. | |
7930 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
7931 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
7932 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
459dd1a6 AD |
7933 | # In autoconf-2.13 it is called $ac_given_srcdir. |
7934 | # In autoconf-2.50 it is called $srcdir. | |
1e24cc5b AD |
7935 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
7936 | case "$ac_given_srcdir" in | |
7937 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
7938 | /*) top_srcdir="$ac_given_srcdir" ;; | |
7939 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
7940 | esac | |
7941 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
7942 | rm -f "$ac_dir/POTFILES" | |
7943 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
7944 | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES" | |
7945 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
7946 | sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
7947 | fi | |
7948 | ;; | |
7949 | esac | |
7950 | done ;; | |
18569462 AD |
7951 | esac |
7952 | done | |
7953 | EOF | |
7954 | ||
7955 | cat >>$CONFIG_STATUS <<\EOF | |
705db0b5 | 7956 | |
5141b016 | 7957 | { (exit 0); exit 0; } |
705db0b5 AD |
7958 | EOF |
7959 | chmod +x $CONFIG_STATUS | |
18569462 AD |
7960 | ac_clean_files=$ac_clean_files_save |
7961 | ||
1e24cc5b AD |
7962 | # configure is writing to config.log, and then calls config.status. |
7963 | # config.status does its own redirection, appending to config.log. | |
7964 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7965 | # by configure, so config.status won't be able to write to it; its | |
7966 | # output is simply discarded. So we exec the FD to /dev/null, | |
7967 | # effectively closing config.log, so it can be properly (re)opened and | |
7968 | # appended to by config.status. When coming back to configure, we | |
7969 | # need to make the FD available again. | |
7970 | if test "$no_create" != yes; then | |
7971 | ac_cs_success=: | |
7972 | exec 5>/dev/null | |
7973 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
7974 | exec 5>>config.log | |
7975 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7976 | # would make configure fail if this is the last instruction. | |
7977 | $ac_cs_success || { (exit 1); exit 1; } | |
7978 | fi | |
705db0b5 | 7979 |