]>
Commit | Line | Data |
---|---|---|
705db0b5 | 1 | #! /bin/sh |
705db0b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
1e24cc5b AD |
3 | # Generated by Autoconf 2.50 for bison 1.28a. |
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 | ||
18569462 AD |
12 | # Be Bourne compatible |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
17 | set -o posix | |
18 | fi | |
19 | ||
1e24cc5b AD |
20 | # Name of the executable. |
21 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
22 | ||
18569462 AD |
23 | if expr a : '\(a\)' >/dev/null 2>&1; then |
24 | as_expr=expr | |
25 | else | |
26 | as_expr=false | |
27 | fi | |
28 | ||
5141b016 AD |
29 | rm -f conf$$ conf$$.exe conf$$.file |
30 | echo >conf$$.file | |
31 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18569462 AD |
32 | # We could just check for DJGPP; but this test a) works b) is more generic |
33 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
5141b016 | 34 | if test -f conf$$.exe; then |
18569462 AD |
35 | # Don't use ln at all; we don't have any links |
36 | as_ln_s='cp -p' | |
37 | else | |
38 | as_ln_s='ln -s' | |
39 | fi | |
5141b016 | 40 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18569462 AD |
41 | as_ln_s=ln |
42 | else | |
43 | as_ln_s='cp -p' | |
44 | fi | |
5141b016 | 45 | rm -f conf$$ conf$$.exe conf$$.file |
18569462 | 46 | |
5141b016 | 47 | as_executable_p="test -f" |
18569462 AD |
48 | |
49 | # Support unset when possible. | |
50 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
51 | as_unset=unset | |
52 | else | |
53 | as_unset=false | |
54 | fi | |
55 | ||
56 | # NLS nuisances. | |
57 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
58 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
59 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
60 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
61 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
62 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
63 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
64 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
65 | ||
66 | # IFS | |
67 | # We need space, tab and new line, in precisely that order. | |
68 | as_nl=' | |
69 | ' | |
70 | IFS=" $as_nl" | |
71 | ||
72 | # CDPATH. | |
73 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
74 | ||
75 | # Name of the host. | |
76 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
77 | # so uname gets run too. | |
78 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
79 | ||
18569462 AD |
80 | exec 6>&1 |
81 | ||
82 | # | |
83 | # Initializations. | |
84 | # | |
705db0b5 | 85 | ac_default_prefix=/usr/local |
18569462 AD |
86 | cross_compiling=no |
87 | subdirs= | |
88 | MFLAGS= MAKEFLAGS= | |
89 | SHELL=${CONFIG_SHELL-/bin/sh} | |
90 | ||
91 | # Maximum number of lines to put in a shell here document. | |
92 | # This variable seems obsolete. It should probably be removed, and | |
93 | # only ac_max_sed_lines should be used. | |
94 | : ${ac_max_here_lines=38} | |
95 | ||
96 | # Avoid depending upon Character Ranges. | |
97 | ac_cr_az='abcdefghijklmnopqrstuvwxyz' | |
98 | ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
99 | ac_cr_09='0123456789' | |
100 | ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 | |
101 | ||
102 | # Sed expression to map a string onto a valid sh and CPP variable names. | |
103 | ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" | |
104 | ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" | |
105 | ||
18569462 AD |
106 | # Factoring default headers for most tests. |
107 | ac_includes_default="\ | |
108 | #include <stdio.h> | |
109 | #include <sys/types.h> | |
110 | #include <sys/stat.h> | |
111 | #if STDC_HEADERS | |
112 | # include <stdlib.h> | |
113 | # include <stddef.h> | |
114 | #else | |
115 | # if HAVE_STDLIB_H | |
116 | # include <stdlib.h> | |
117 | # endif | |
118 | #endif | |
119 | #if HAVE_STRING_H | |
120 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
121 | # include <memory.h> | |
122 | # endif | |
123 | # include <string.h> | |
124 | #else | |
125 | # if HAVE_STRINGS_H | |
126 | # include <strings.h> | |
127 | # endif | |
128 | #endif | |
129 | #if HAVE_INTTYPES_H | |
130 | # include <inttypes.h> | |
131 | #endif | |
132 | #if HAVE_UNISTD_H | |
133 | # include <unistd.h> | |
134 | #endif" | |
705db0b5 AD |
135 | |
136 | # Initialize some variables set by options. | |
18569462 AD |
137 | ac_init_help= |
138 | ac_init_version=false | |
705db0b5 AD |
139 | # The variables have the same names as the options, with |
140 | # dashes changed to underlines. | |
18569462 | 141 | cache_file=/dev/null |
705db0b5 | 142 | exec_prefix=NONE |
705db0b5 | 143 | no_create= |
705db0b5 AD |
144 | no_recursion= |
145 | prefix=NONE | |
146 | program_prefix=NONE | |
147 | program_suffix=NONE | |
148 | program_transform_name=s,x,x, | |
149 | silent= | |
150 | site= | |
151 | srcdir= | |
705db0b5 AD |
152 | verbose= |
153 | x_includes=NONE | |
154 | x_libraries=NONE | |
18569462 AD |
155 | |
156 | # Installation directory options. | |
157 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
158 | # and all the variables that are supposed to be based on exec_prefix | |
159 | # by default will actually change. | |
160 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
705db0b5 AD |
161 | bindir='${exec_prefix}/bin' |
162 | sbindir='${exec_prefix}/sbin' | |
163 | libexecdir='${exec_prefix}/libexec' | |
164 | datadir='${prefix}/share' | |
165 | sysconfdir='${prefix}/etc' | |
166 | sharedstatedir='${prefix}/com' | |
167 | localstatedir='${prefix}/var' | |
168 | libdir='${exec_prefix}/lib' | |
169 | includedir='${prefix}/include' | |
170 | oldincludedir='/usr/include' | |
171 | infodir='${prefix}/info' | |
172 | mandir='${prefix}/man' | |
173 | ||
18569462 | 174 | # Identity of this package. |
1e24cc5b AD |
175 | PACKAGE_NAME='bison' |
176 | PACKAGE_TARNAME='bison' | |
177 | PACKAGE_VERSION='1.28a' | |
178 | PACKAGE_STRING='bison 1.28a' | |
179 | PACKAGE_BUGREPORT='bug-bison@gnu.org' | |
705db0b5 AD |
180 | |
181 | ac_prev= | |
182 | for ac_option | |
183 | do | |
705db0b5 AD |
184 | # If the previous option needs an argument, assign it. |
185 | if test -n "$ac_prev"; then | |
186 | eval "$ac_prev=\$ac_option" | |
187 | ac_prev= | |
188 | continue | |
189 | fi | |
190 | ||
18569462 | 191 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
705db0b5 AD |
192 | |
193 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
194 | ||
18569462 | 195 | case $ac_option in |
705db0b5 AD |
196 | |
197 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
198 | ac_prev=bindir ;; | |
199 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
18569462 | 200 | bindir=$ac_optarg ;; |
705db0b5 AD |
201 | |
202 | -build | --build | --buil | --bui | --bu) | |
18569462 | 203 | ac_prev=build_alias ;; |
705db0b5 | 204 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
18569462 | 205 | build_alias=$ac_optarg ;; |
705db0b5 AD |
206 | |
207 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
208 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
209 | ac_prev=cache_file ;; | |
210 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
211 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
18569462 AD |
212 | cache_file=$ac_optarg ;; |
213 | ||
214 | --config-cache | -C) | |
215 | cache_file=config.cache ;; | |
705db0b5 AD |
216 | |
217 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
218 | ac_prev=datadir ;; | |
219 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
220 | | --da=*) | |
18569462 | 221 | datadir=$ac_optarg ;; |
705db0b5 AD |
222 | |
223 | -disable-* | --disable-*) | |
18569462 | 224 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
705db0b5 | 225 | # Reject names that are not valid shell variable names. |
18569462 | 226 | expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
1e24cc5b | 227 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
18569462 AD |
228 | { (exit 1); exit 1; }; } |
229 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
230 | eval "enable_$ac_feature=no" ;; | |
705db0b5 AD |
231 | |
232 | -enable-* | --enable-*) | |
18569462 | 233 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
705db0b5 | 234 | # Reject names that are not valid shell variable names. |
18569462 | 235 | expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
1e24cc5b | 236 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
18569462 AD |
237 | { (exit 1); exit 1; }; } |
238 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
239 | case $ac_option in | |
240 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
705db0b5 AD |
241 | *) ac_optarg=yes ;; |
242 | esac | |
18569462 | 243 | eval "enable_$ac_feature='$ac_optarg'" ;; |
705db0b5 AD |
244 | |
245 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
246 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
247 | | --exec | --exe | --ex) | |
248 | ac_prev=exec_prefix ;; | |
249 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
250 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
251 | | --exec=* | --exe=* | --ex=*) | |
18569462 | 252 | exec_prefix=$ac_optarg ;; |
705db0b5 AD |
253 | |
254 | -gas | --gas | --ga | --g) | |
255 | # Obsolete; use --with-gas. | |
256 | with_gas=yes ;; | |
257 | ||
18569462 AD |
258 | -help | --help | --hel | --he | -h) |
259 | ac_init_help=long ;; | |
260 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
261 | ac_init_help=recursive ;; | |
262 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
263 | ac_init_help=short ;; | |
705db0b5 AD |
264 | |
265 | -host | --host | --hos | --ho) | |
18569462 | 266 | ac_prev=host_alias ;; |
705db0b5 | 267 | -host=* | --host=* | --hos=* | --ho=*) |
18569462 | 268 | host_alias=$ac_optarg ;; |
705db0b5 AD |
269 | |
270 | -includedir | --includedir | --includedi | --included | --include \ | |
271 | | --includ | --inclu | --incl | --inc) | |
272 | ac_prev=includedir ;; | |
273 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
274 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
18569462 | 275 | includedir=$ac_optarg ;; |
705db0b5 AD |
276 | |
277 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
278 | ac_prev=infodir ;; | |
279 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
18569462 | 280 | infodir=$ac_optarg ;; |
705db0b5 AD |
281 | |
282 | -libdir | --libdir | --libdi | --libd) | |
283 | ac_prev=libdir ;; | |
284 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
18569462 | 285 | libdir=$ac_optarg ;; |
705db0b5 AD |
286 | |
287 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
288 | | --libexe | --libex | --libe) | |
289 | ac_prev=libexecdir ;; | |
290 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
291 | | --libexe=* | --libex=* | --libe=*) | |
18569462 | 292 | libexecdir=$ac_optarg ;; |
705db0b5 AD |
293 | |
294 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
295 | | --localstate | --localstat | --localsta | --localst \ | |
296 | | --locals | --local | --loca | --loc | --lo) | |
297 | ac_prev=localstatedir ;; | |
298 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
299 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
300 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
18569462 | 301 | localstatedir=$ac_optarg ;; |
705db0b5 AD |
302 | |
303 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
304 | ac_prev=mandir ;; | |
305 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
18569462 | 306 | mandir=$ac_optarg ;; |
705db0b5 AD |
307 | |
308 | -nfp | --nfp | --nf) | |
309 | # Obsolete; use --without-fp. | |
310 | with_fp=no ;; | |
311 | ||
312 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
313 | | --no-cr | --no-c) | |
314 | no_create=yes ;; | |
315 | ||
316 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
317 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
318 | no_recursion=yes ;; | |
319 | ||
320 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
321 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
322 | | --oldin | --oldi | --old | --ol | --o) | |
323 | ac_prev=oldincludedir ;; | |
324 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
325 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
326 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
18569462 | 327 | oldincludedir=$ac_optarg ;; |
705db0b5 AD |
328 | |
329 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
330 | ac_prev=prefix ;; | |
331 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
18569462 | 332 | prefix=$ac_optarg ;; |
705db0b5 AD |
333 | |
334 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
335 | | --program-pre | --program-pr | --program-p) | |
336 | ac_prev=program_prefix ;; | |
337 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
338 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
18569462 | 339 | program_prefix=$ac_optarg ;; |
705db0b5 AD |
340 | |
341 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
342 | | --program-suf | --program-su | --program-s) | |
343 | ac_prev=program_suffix ;; | |
344 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
345 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
18569462 | 346 | program_suffix=$ac_optarg ;; |
705db0b5 AD |
347 | |
348 | -program-transform-name | --program-transform-name \ | |
349 | | --program-transform-nam | --program-transform-na \ | |
350 | | --program-transform-n | --program-transform- \ | |
351 | | --program-transform | --program-transfor \ | |
352 | | --program-transfo | --program-transf \ | |
353 | | --program-trans | --program-tran \ | |
354 | | --progr-tra | --program-tr | --program-t) | |
355 | ac_prev=program_transform_name ;; | |
356 | -program-transform-name=* | --program-transform-name=* \ | |
357 | | --program-transform-nam=* | --program-transform-na=* \ | |
358 | | --program-transform-n=* | --program-transform-=* \ | |
359 | | --program-transform=* | --program-transfor=* \ | |
360 | | --program-transfo=* | --program-transf=* \ | |
361 | | --program-trans=* | --program-tran=* \ | |
362 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
18569462 | 363 | program_transform_name=$ac_optarg ;; |
705db0b5 AD |
364 | |
365 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
366 | | -silent | --silent | --silen | --sile | --sil) | |
367 | silent=yes ;; | |
368 | ||
369 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
370 | ac_prev=sbindir ;; | |
371 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
372 | | --sbi=* | --sb=*) | |
18569462 | 373 | sbindir=$ac_optarg ;; |
705db0b5 AD |
374 | |
375 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
376 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
377 | | --sharedst | --shareds | --shared | --share | --shar \ | |
378 | | --sha | --sh) | |
379 | ac_prev=sharedstatedir ;; | |
380 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
381 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
382 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
383 | | --sha=* | --sh=*) | |
18569462 | 384 | sharedstatedir=$ac_optarg ;; |
705db0b5 AD |
385 | |
386 | -site | --site | --sit) | |
387 | ac_prev=site ;; | |
388 | -site=* | --site=* | --sit=*) | |
18569462 | 389 | site=$ac_optarg ;; |
705db0b5 AD |
390 | |
391 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
392 | ac_prev=srcdir ;; | |
393 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18569462 | 394 | srcdir=$ac_optarg ;; |
705db0b5 AD |
395 | |
396 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
397 | | --syscon | --sysco | --sysc | --sys | --sy) | |
398 | ac_prev=sysconfdir ;; | |
399 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
400 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
18569462 | 401 | sysconfdir=$ac_optarg ;; |
705db0b5 AD |
402 | |
403 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
18569462 | 404 | ac_prev=target_alias ;; |
705db0b5 | 405 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
18569462 | 406 | target_alias=$ac_optarg ;; |
705db0b5 AD |
407 | |
408 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
409 | verbose=yes ;; | |
410 | ||
18569462 AD |
411 | -version | --version | --versio | --versi | --vers | -V) |
412 | ac_init_version=: ;; | |
705db0b5 AD |
413 | |
414 | -with-* | --with-*) | |
18569462 | 415 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
705db0b5 | 416 | # Reject names that are not valid shell variable names. |
18569462 | 417 | expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
1e24cc5b | 418 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
18569462 | 419 | { (exit 1); exit 1; }; } |
705db0b5 | 420 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
18569462 AD |
421 | case $ac_option in |
422 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
705db0b5 AD |
423 | *) ac_optarg=yes ;; |
424 | esac | |
18569462 | 425 | eval "with_$ac_package='$ac_optarg'" ;; |
705db0b5 AD |
426 | |
427 | -without-* | --without-*) | |
18569462 | 428 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
705db0b5 | 429 | # Reject names that are not valid shell variable names. |
18569462 | 430 | expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
1e24cc5b | 431 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
18569462 AD |
432 | { (exit 1); exit 1; }; } |
433 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
434 | eval "with_$ac_package=no" ;; | |
705db0b5 AD |
435 | |
436 | --x) | |
437 | # Obsolete; use --with-x. | |
438 | with_x=yes ;; | |
439 | ||
440 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
441 | | --x-incl | --x-inc | --x-in | --x-i) | |
442 | ac_prev=x_includes ;; | |
443 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
444 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
18569462 | 445 | x_includes=$ac_optarg ;; |
705db0b5 AD |
446 | |
447 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
448 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
449 | ac_prev=x_libraries ;; | |
450 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
451 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
18569462 | 452 | x_libraries=$ac_optarg ;; |
705db0b5 | 453 | |
1e24cc5b AD |
454 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
455 | Try \`$0 --help' for more information." >&2 | |
18569462 | 456 | { (exit 1); exit 1; }; } |
705db0b5 AD |
457 | ;; |
458 | ||
18569462 AD |
459 | *=*) |
460 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
461 | # Reject names that are not valid shell variable names. | |
462 | expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && | |
1e24cc5b | 463 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
18569462 AD |
464 | { (exit 1); exit 1; }; } |
465 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
466 | eval "$ac_envvar='$ac_optarg'" | |
467 | export $ac_envvar ;; | |
468 | ||
705db0b5 | 469 | *) |
18569462 | 470 | # FIXME: should be removed in autoconf 3.0. |
1e24cc5b | 471 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
18569462 | 472 | expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && |
1e24cc5b | 473 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
18569462 | 474 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
705db0b5 AD |
475 | ;; |
476 | ||
477 | esac | |
478 | done | |
479 | ||
480 | if test -n "$ac_prev"; then | |
18569462 | 481 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1e24cc5b | 482 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
18569462 | 483 | { (exit 1); exit 1; }; } |
705db0b5 | 484 | fi |
705db0b5 | 485 | |
18569462 AD |
486 | # Be sure to have absolute paths. |
487 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
488 | localstatedir libdir includedir oldincludedir infodir mandir \ | |
489 | exec_prefix prefix | |
705db0b5 | 490 | do |
18569462 AD |
491 | eval ac_val=$`echo $ac_var` |
492 | case $ac_val in | |
493 | [\\/$]* | ?:[\\/]* ) ;; | |
494 | NONE ) ;; | |
1e24cc5b | 495 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
18569462 | 496 | { (exit 1); exit 1; }; };; |
705db0b5 AD |
497 | esac |
498 | done | |
499 | ||
18569462 AD |
500 | # There might be people who depend on the old broken behavior: `$host' |
501 | # used to hold the argument of --host etc. | |
502 | build=$build_alias | |
503 | host=$host_alias | |
504 | target=$target_alias | |
505 | ||
506 | # FIXME: should be removed in autoconf 3.0. | |
507 | if test "x$host_alias" != x; then | |
508 | if test "x$build_alias" = x; then | |
509 | cross_compiling=maybe | |
1e24cc5b AD |
510 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
511 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
18569462 AD |
512 | elif test "x$build_alias" != "x$host_alias"; then |
513 | cross_compiling=yes | |
514 | fi | |
515 | fi | |
705db0b5 | 516 | |
18569462 AD |
517 | ac_tool_prefix= |
518 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705db0b5 | 519 | |
18569462 | 520 | test "$silent" = yes && exec 6>/dev/null |
705db0b5 AD |
521 | |
522 | # Find the source files, if location was not specified. | |
523 | if test -z "$srcdir"; then | |
524 | ac_srcdir_defaulted=yes | |
525 | # Try the directory containing this script, then its parent. | |
526 | ac_prog=$0 | |
1e24cc5b | 527 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
705db0b5 AD |
528 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
529 | srcdir=$ac_confdir | |
530 | if test ! -r $srcdir/$ac_unique_file; then | |
531 | srcdir=.. | |
532 | fi | |
533 | else | |
534 | ac_srcdir_defaulted=no | |
535 | fi | |
536 | if test ! -r $srcdir/$ac_unique_file; then | |
537 | if test "$ac_srcdir_defaulted" = yes; then | |
1e24cc5b | 538 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
18569462 | 539 | { (exit 1); exit 1; }; } |
705db0b5 | 540 | else |
1e24cc5b | 541 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
18569462 | 542 | { (exit 1); exit 1; }; } |
705db0b5 AD |
543 | fi |
544 | fi | |
1e24cc5b | 545 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
18569462 AD |
546 | ac_env_build_alias_set=${build_alias+set} |
547 | ac_env_build_alias_value=$build_alias | |
548 | ac_cv_env_build_alias_set=${build_alias+set} | |
549 | ac_cv_env_build_alias_value=$build_alias | |
550 | ac_env_host_alias_set=${host_alias+set} | |
551 | ac_env_host_alias_value=$host_alias | |
552 | ac_cv_env_host_alias_set=${host_alias+set} | |
553 | ac_cv_env_host_alias_value=$host_alias | |
554 | ac_env_target_alias_set=${target_alias+set} | |
555 | ac_env_target_alias_value=$target_alias | |
556 | ac_cv_env_target_alias_set=${target_alias+set} | |
557 | ac_cv_env_target_alias_value=$target_alias | |
558 | ac_env_CC_set=${CC+set} | |
559 | ac_env_CC_value=$CC | |
560 | ac_cv_env_CC_set=${CC+set} | |
561 | ac_cv_env_CC_value=$CC | |
562 | ac_env_CFLAGS_set=${CFLAGS+set} | |
563 | ac_env_CFLAGS_value=$CFLAGS | |
564 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
565 | ac_cv_env_CFLAGS_value=$CFLAGS | |
566 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
567 | ac_env_LDFLAGS_value=$LDFLAGS | |
568 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
569 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
18569462 AD |
570 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
571 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
572 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
573 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
1e24cc5b AD |
574 | ac_env_CPP_set=${CPP+set} |
575 | ac_env_CPP_value=$CPP | |
576 | ac_cv_env_CPP_set=${CPP+set} | |
577 | ac_cv_env_CPP_value=$CPP | |
18569462 AD |
578 | |
579 | # | |
580 | # Report the --help message. | |
581 | # | |
582 | if test "$ac_init_help" = "long"; then | |
583 | # Omit some internal or obsolete options to make the list less imposing. | |
584 | # This message is too long to be a string in the A/UX 3.1 sh. | |
585 | cat <<EOF | |
1e24cc5b | 586 | \`configure' configures bison 1.28a to adapt to many kinds of systems. |
18569462 AD |
587 | |
588 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
589 | ||
590 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
591 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
592 | ||
593 | Defaults for the options are specified in brackets. | |
594 | ||
595 | Configuration: | |
596 | -h, --help display this help and exit | |
597 | --help=short display options specific to this package | |
598 | --help=recursive display the short help of all the included packages | |
599 | -V, --version display version information and exit | |
600 | -q, --quiet, --silent do not print \`checking...' messages | |
601 | --cache-file=FILE cache test results in FILE [disabled] | |
602 | -C, --config-cache alias for \`--cache-file=config.cache' | |
603 | -n, --no-create do not create output files | |
604 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
605 | ||
606 | EOF | |
607 | ||
608 | cat <<EOF | |
609 | Installation directories: | |
610 | --prefix=PREFIX install architecture-independent files in PREFIX | |
611 | [$ac_default_prefix] | |
612 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
613 | [PREFIX] | |
614 | ||
615 | By default, \`make install' will install all the files in | |
616 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
617 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
618 | for instance \`--prefix=\$HOME'. | |
619 | ||
620 | For better control, use the options below. | |
621 | ||
622 | Fine tuning of the installation directories: | |
623 | --bindir=DIR user executables [EPREFIX/bin] | |
624 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
625 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
626 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
627 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
628 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
629 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
630 | --libdir=DIR object code libraries [EPREFIX/lib] | |
631 | --includedir=DIR C header files [PREFIX/include] | |
632 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
633 | --infodir=DIR info documentation [PREFIX/info] | |
634 | --mandir=DIR man documentation [PREFIX/man] | |
635 | EOF | |
636 | ||
637 | cat <<\EOF | |
638 | ||
639 | Program names: | |
640 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
641 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
642 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1e24cc5b AD |
643 | |
644 | System types: | |
645 | --build=BUILD configure for building on BUILD [guessed] | |
646 | --host=HOST build programs to run on HOST [BUILD] | |
18569462 AD |
647 | EOF |
648 | fi | |
649 | ||
650 | if test -n "$ac_init_help"; then | |
1e24cc5b AD |
651 | case $ac_init_help in |
652 | short | recursive ) echo "Configuration of bison 1.28a:";; | |
653 | esac | |
18569462 AD |
654 | cat <<\EOF |
655 | ||
656 | Optional Features: | |
657 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
658 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
659 | --enable-gcc-warnings turn on lots of GCC warnings (not recommended) | |
660 | --disable-nls do not use Native Language Support | |
661 | ||
662 | Optional Packages: | |
663 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
664 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1e24cc5b | 665 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib |
18569462 | 666 | --with-included-gettext use the GNU gettext library included here |
18569462 AD |
667 | |
668 | Some influential environment variables: | |
669 | CC C compiler command | |
670 | CFLAGS C compiler flags | |
671 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
672 | nonstandard directory <lib dir> | |
18569462 AD |
673 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
674 | headers in a nonstandard directory <include dir> | |
1e24cc5b | 675 | CPP C preprocessor |
18569462 AD |
676 | |
677 | Use these variables to override the choices made by `configure' or to help | |
678 | it to find libraries and programs with nonstandard names/locations. | |
679 | ||
1e24cc5b | 680 | Report bugs to <bug-bison@gnu.org>. |
18569462 AD |
681 | EOF |
682 | fi | |
683 | ||
684 | if test "$ac_init_help" = "recursive"; then | |
685 | # If there are subdirs, report their specific --help. | |
686 | ac_popdir=`pwd` | |
687 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
688 | cd $ac_subdir | |
689 | # A "../" for each directory in /$ac_subdir. | |
690 | ac_dots=`echo $ac_subdir | | |
691 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
692 | ||
693 | case $srcdir in | |
694 | .) # No --srcdir option. We are building in place. | |
695 | ac_sub_srcdir=$srcdir ;; | |
696 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
697 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
698 | *) # Relative path. | |
699 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
700 | esac | |
701 | ||
702 | # Check for guested configure; otherwise get Cygnus style configure. | |
703 | if test -f $ac_sub_srcdir/configure.gnu; then | |
704 | echo | |
705 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
706 | elif test -f $ac_sub_srcdir/configure; then | |
707 | echo | |
708 | $SHELL $ac_sub_srcdir/configure --help=recursive | |
709 | elif test -f $ac_sub_srcdir/configure.ac || | |
710 | test -f $ac_sub_srcdir/configure.in; then | |
711 | echo | |
712 | $ac_configure --help | |
713 | else | |
1e24cc5b | 714 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 |
18569462 AD |
715 | fi |
716 | cd $ac_popdir | |
717 | done | |
718 | fi | |
719 | ||
720 | test -n "$ac_init_help" && exit 0 | |
721 | if $ac_init_version; then | |
722 | cat <<\EOF | |
1e24cc5b AD |
723 | bison configure 1.28a |
724 | generated by GNU Autoconf 2.50 | |
18569462 | 725 | |
5141b016 | 726 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
18569462 AD |
727 | Free Software Foundation, Inc. |
728 | This configure script is free software; the Free Software Foundation | |
729 | gives unlimited permission to copy, distribute and modify it. | |
730 | EOF | |
731 | exit 0 | |
732 | fi | |
1e24cc5b AD |
733 | exec 5>config.log |
734 | cat >&5 <<EOF | |
735 | This file contains any messages produced by compilers while | |
736 | running configure, to aid debugging if configure makes a mistake. | |
737 | ||
738 | It was created by bison $as_me 1.28a, which was | |
739 | generated by GNU Autoconf 2.50. Invocation command line was | |
740 | ||
741 | $ $0 $@ | |
742 | ||
743 | EOF | |
744 | { | |
745 | cat <<_ASUNAME | |
746 | ## ---------- ## | |
747 | ## Platform. ## | |
748 | ## ---------- ## | |
749 | ||
750 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
751 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
752 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
753 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
754 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
755 | ||
756 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
757 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
758 | ||
759 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
760 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
761 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
762 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
763 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
764 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
765 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
766 | ||
767 | PATH = $PATH | |
768 | ||
769 | _ASUNAME | |
770 | } >&5 | |
771 | ||
772 | cat >&5 <<EOF | |
773 | ## ------------ ## | |
774 | ## Core tests. ## | |
775 | ## ------------ ## | |
776 | ||
777 | EOF | |
18569462 AD |
778 | |
779 | # Keep a trace of the command line. | |
780 | # Strip out --no-create and --no-recursion so they do not pile up. | |
781 | # Also quote any args containing shell meta-characters. | |
782 | ac_configure_args= | |
783 | ac_sep= | |
784 | for ac_arg | |
785 | do | |
786 | case $ac_arg in | |
787 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
788 | | --no-cr | --no-c) ;; | |
789 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
790 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
791 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
792 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
793 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
794 | ac_sep=" " ;; | |
795 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
796 | ac_sep=" " ;; | |
797 | esac | |
798 | # Get rid of the leading space. | |
799 | done | |
800 | ||
801 | # When interrupted or exit'd, cleanup temporary files, and complete | |
802 | # config.log. We remove comments because anyway the quotes in there | |
803 | # would cause problems or look ugly. | |
804 | trap 'exit_status=$? | |
805 | # Save into config.log some information that might help in debugging. | |
806 | echo >&5 | |
807 | echo "## ----------------- ##" >&5 | |
808 | echo "## Cache variables. ##" >&5 | |
809 | echo "## ----------------- ##" >&5 | |
810 | echo >&5 | |
811 | # The following way of writing the cache mishandles newlines in values, | |
812 | { | |
813 | (set) 2>&1 | | |
814 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
815 | *ac_space=\ *) | |
816 | sed -n \ | |
817 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
818 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
819 | ;; | |
820 | *) | |
821 | sed -n \ | |
822 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
823 | ;; | |
824 | esac; | |
825 | } >&5 | |
826 | sed "/^$/d" confdefs.h >conftest.log | |
827 | if test -s conftest.log; then | |
828 | echo >&5 | |
829 | echo "## ------------ ##" >&5 | |
830 | echo "## confdefs.h. ##" >&5 | |
831 | echo "## ------------ ##" >&5 | |
832 | echo >&5 | |
833 | cat conftest.log >&5 | |
834 | fi | |
835 | (echo; echo) >&5 | |
836 | test "$ac_signal" != 0 && | |
837 | echo "$as_me: caught signal $ac_signal" >&5 | |
838 | echo "$as_me: exit $exit_status" >&5 | |
5141b016 | 839 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && |
18569462 AD |
840 | exit $exit_status |
841 | ' 0 | |
842 | for ac_signal in 1 2 13 15; do | |
843 | trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal | |
844 | done | |
845 | ac_signal=0 | |
846 | ||
847 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
848 | rm -rf conftest* confdefs.h | |
849 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
850 | echo >confdefs.h | |
705db0b5 | 851 | |
18569462 | 852 | # Let the site file select an alternate cache file if it wants to. |
705db0b5 AD |
853 | # Prefer explicitly selected file to automatically selected ones. |
854 | if test -z "$CONFIG_SITE"; then | |
855 | if test "x$prefix" != xNONE; then | |
856 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
857 | else | |
858 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
859 | fi | |
860 | fi | |
861 | for ac_site_file in $CONFIG_SITE; do | |
862 | if test -r "$ac_site_file"; then | |
1e24cc5b | 863 | { echo "$as_me:863: loading site script $ac_site_file" >&5 |
18569462 AD |
864 | echo "$as_me: loading site script $ac_site_file" >&6;} |
865 | cat "$ac_site_file" >&5 | |
705db0b5 AD |
866 | . "$ac_site_file" |
867 | fi | |
868 | done | |
869 | ||
870 | if test -r "$cache_file"; then | |
18569462 AD |
871 | # Some versions of bash will fail to source /dev/null (special |
872 | # files actually), so we avoid doing that. | |
873 | if test -f "$cache_file"; then | |
1e24cc5b | 874 | { echo "$as_me:874: loading cache $cache_file" >&5 |
18569462 AD |
875 | echo "$as_me: loading cache $cache_file" >&6;} |
876 | case $cache_file in | |
877 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
878 | *) . ./$cache_file;; | |
879 | esac | |
880 | fi | |
705db0b5 | 881 | else |
1e24cc5b | 882 | { echo "$as_me:882: creating cache $cache_file" >&5 |
18569462 AD |
883 | echo "$as_me: creating cache $cache_file" >&6;} |
884 | >$cache_file | |
885 | fi | |
886 | ||
887 | # Check that the precious variables saved in the cache have kept the same | |
888 | # value. | |
889 | ac_suggest_removing_cache=false | |
890 | for ac_var in `(set) 2>&1 | | |
891 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
892 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
893 | eval ac_new_set=\$ac_env_${ac_var}_set | |
894 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
895 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
896 | case $ac_old_set,$ac_new_set in | |
897 | set,) | |
1e24cc5b | 898 | { echo "$as_me:898: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
18569462 AD |
899 | echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
900 | ac_suggest_removing_cache=: ;; | |
901 | ,set) | |
1e24cc5b | 902 | { echo "$as_me:902: WARNING: \`$ac_var' was not set in the previous run" >&5 |
18569462 AD |
903 | echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} |
904 | ac_suggest_removing_cache=: ;; | |
905 | ,);; | |
906 | *) | |
907 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1e24cc5b | 908 | { echo "$as_me:908: WARNING: \`$ac_var' has changed since the previous run:" >&5 |
18569462 | 909 | echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} |
1e24cc5b | 910 | { echo "$as_me:910: WARNING: former value: $ac_old_val" >&5 |
18569462 | 911 | echo "$as_me: WARNING: former value: $ac_old_val" >&2;} |
1e24cc5b | 912 | { echo "$as_me:912: WARNING: current value: $ac_new_val" >&5 |
18569462 AD |
913 | echo "$as_me: WARNING: current value: $ac_new_val" >&2;} |
914 | ac_suggest_removing_cache=: | |
915 | fi;; | |
916 | esac | |
917 | done | |
918 | if $ac_suggest_removing_cache; then | |
1e24cc5b | 919 | { echo "$as_me:919: WARNING: changes in the environment can compromise the build" >&5 |
18569462 | 920 | echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} |
1e24cc5b | 921 | { echo "$as_me:921: WARNING: consider removing $cache_file and starting over" >&5 |
18569462 | 922 | echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} |
705db0b5 AD |
923 | fi |
924 | ||
925 | ac_ext=c | |
705db0b5 | 926 | ac_cpp='$CPP $CPPFLAGS' |
18569462 AD |
927 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
928 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
929 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
930 | ||
931 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
932 | *c*,-n*) ECHO_N= ECHO_C=' | |
933 | ' ECHO_T=' ' ;; | |
934 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
935 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
936 | esac | |
5141b016 AD |
937 | echo "#! $SHELL" >conftest.sh |
938 | echo "exit 0" >>conftest.sh | |
939 | chmod +x conftest.sh | |
1e24cc5b | 940 | if { (echo "$as_me:940: PATH=\".;.\"; conftest.sh") >&5 |
5141b016 AD |
941 | (PATH=".;."; conftest.sh) 2>&5 |
942 | ac_status=$? | |
1e24cc5b | 943 | echo "$as_me:943: \$? = $ac_status" >&5 |
5141b016 AD |
944 | (exit $ac_status); }; then |
945 | ac_path_separator=';' | |
946 | else | |
947 | ac_path_separator=: | |
948 | fi | |
949 | PATH_SEPARATOR="$ac_path_separator" | |
950 | rm -f conftest.sh | |
705db0b5 AD |
951 | |
952 | ac_aux_dir= | |
1e24cc5b | 953 | for ac_dir in config $srcdir/config; do |
705db0b5 AD |
954 | if test -f $ac_dir/install-sh; then |
955 | ac_aux_dir=$ac_dir | |
956 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
957 | break | |
958 | elif test -f $ac_dir/install.sh; then | |
959 | ac_aux_dir=$ac_dir | |
960 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
961 | break | |
18569462 AD |
962 | elif test -f $ac_dir/shtool; then |
963 | ac_aux_dir=$ac_dir | |
964 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
965 | break | |
705db0b5 AD |
966 | fi |
967 | done | |
968 | if test -z "$ac_aux_dir"; then | |
1e24cc5b AD |
969 | { { echo "$as_me:969: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 |
970 | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} | |
18569462 | 971 | { (exit 1); exit 1; }; } |
705db0b5 | 972 | fi |
18569462 AD |
973 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
974 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
975 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
705db0b5 AD |
976 | |
977 | # Find a good install program. We prefer a C program (faster), | |
978 | # so one script is as good as another. But avoid the broken or | |
979 | # incompatible versions: | |
980 | # SysV /etc/install, /usr/sbin/install | |
981 | # SunOS /usr/etc/install | |
982 | # IRIX /sbin/install | |
983 | # AIX /bin/install | |
18569462 | 984 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
705db0b5 AD |
985 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
986 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
987 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
988 | # ./install, which can be erroneously created by make from ./install.sh. | |
1e24cc5b | 989 | echo "$as_me:989: checking for a BSD compatible install" >&5 |
18569462 | 990 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
705db0b5 | 991 | if test -z "$INSTALL"; then |
18569462 AD |
992 | if test "${ac_cv_path_install+set}" = set; then |
993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 994 | else |
5141b016 | 995 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
705db0b5 | 996 | for ac_dir in $PATH; do |
5141b016 | 997 | IFS=$ac_save_IFS |
705db0b5 | 998 | # Account for people who put trailing slashes in PATH elements. |
18569462 AD |
999 | case $ac_dir/ in |
1000 | / | ./ | .// | /cC/* \ | |
1001 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
1002 | | /usr/ucb/* ) ;; | |
705db0b5 AD |
1003 | *) |
1004 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1005 | # Don't use installbsd from OSF since it installs stuff as root | |
1006 | # by default. | |
1007 | for ac_prog in ginstall scoinst install; do | |
5141b016 | 1008 | if $as_executable_p "$ac_dir/$ac_prog"; then |
705db0b5 | 1009 | if test $ac_prog = install && |
18569462 | 1010 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
705db0b5 AD |
1011 | # AIX install. It has an incompatible calling convention. |
1012 | : | |
18569462 AD |
1013 | elif test $ac_prog = install && |
1014 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1015 | # program-specific install script used by HP pwplus--don't use. | |
1016 | : | |
705db0b5 AD |
1017 | else |
1018 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1019 | break 2 | |
1020 | fi | |
1021 | fi | |
1022 | done | |
1023 | ;; | |
1024 | esac | |
1025 | done | |
705db0b5 AD |
1026 | |
1027 | fi | |
1028 | if test "${ac_cv_path_install+set}" = set; then | |
18569462 | 1029 | INSTALL=$ac_cv_path_install |
705db0b5 AD |
1030 | else |
1031 | # As a last resort, use the slow shell script. We don't cache a | |
1032 | # path for INSTALL within a source directory, because that will | |
1033 | # break other packages using the cache if that directory is | |
1034 | # removed, or if the path is relative. | |
18569462 | 1035 | INSTALL=$ac_install_sh |
705db0b5 AD |
1036 | fi |
1037 | fi | |
1e24cc5b | 1038 | echo "$as_me:1038: result: $INSTALL" >&5 |
18569462 | 1039 | echo "${ECHO_T}$INSTALL" >&6 |
705db0b5 AD |
1040 | |
1041 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1042 | # It thinks the first close brace ends the variable substitution. | |
1043 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1044 | ||
18569462 | 1045 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
705db0b5 AD |
1046 | |
1047 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1048 | ||
1e24cc5b | 1049 | echo "$as_me:1049: checking whether build environment is sane" >&5 |
18569462 | 1050 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
705db0b5 AD |
1051 | # Just in case |
1052 | sleep 1 | |
1053 | echo timestamp > conftestfile | |
1054 | # Do `set' in a subshell so we don't clobber the current shell's | |
1055 | # arguments. Must try -L first in case configure is actually a | |
1056 | # symlink; some systems play weird games with the mod time of symlinks | |
1057 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1058 | # directory). | |
1059 | if ( | |
1060 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
1061 | if test "$*" = "X"; then | |
1062 | # -L didn't work. | |
1063 | set X `ls -t $srcdir/configure conftestfile` | |
1064 | fi | |
1065 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
1066 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
1067 | ||
1068 | # If neither matched, then we have a broken ls. This can happen | |
1069 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1070 | # broken ls alias from the environment. This has actually | |
1071 | # happened. Such a system could not be considered "sane". | |
1e24cc5b | 1072 | { { echo "$as_me:1072: error: ls -t appears to fail. Make sure there is not a broken |
18569462 AD |
1073 | alias in your environment" >&5 |
1074 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1075 | alias in your environment" >&2;} | |
1076 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
1077 | fi |
1078 | ||
1079 | test "$2" = conftestfile | |
1080 | ) | |
1081 | then | |
1082 | # Ok. | |
1083 | : | |
1084 | else | |
1e24cc5b | 1085 | { { echo "$as_me:1085: error: newly created file is older than distributed files! |
18569462 AD |
1086 | Check your system clock" >&5 |
1087 | echo "$as_me: error: newly created file is older than distributed files! | |
1088 | Check your system clock" >&2;} | |
1089 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
1090 | fi |
1091 | rm -f conftest* | |
1e24cc5b | 1092 | echo "$as_me:1092: result: yes" >&5 |
18569462 | 1093 | echo "${ECHO_T}yes" >&6 |
705db0b5 AD |
1094 | if test "$program_transform_name" = s,x,x,; then |
1095 | program_transform_name= | |
1096 | else | |
1097 | # Double any \ or $. echo might interpret backslashes. | |
18569462 | 1098 | cat <<\EOF >conftest.sed |
705db0b5 | 1099 | s,\\,\\\\,g; s,\$,$$,g |
18569462 AD |
1100 | EOF |
1101 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1102 | rm -f conftest.sed | |
705db0b5 AD |
1103 | fi |
1104 | test "$program_prefix" != NONE && | |
18569462 | 1105 | program_transform_name="s,^,${program_prefix},;$program_transform_name" |
705db0b5 AD |
1106 | # Use a double $ so make ignores it. |
1107 | test "$program_suffix" != NONE && | |
18569462 | 1108 | program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" |
705db0b5 AD |
1109 | |
1110 | # sed with no file args requires a program. | |
18569462 | 1111 | test -z "$program_transform_name" && program_transform_name="s,x,x," |
705db0b5 | 1112 | |
1e24cc5b | 1113 | echo "$as_me:1113: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
18569462 AD |
1114 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
1115 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1116 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 1118 | else |
18569462 | 1119 | cat >conftest.make <<\EOF |
705db0b5 AD |
1120 | all: |
1121 | @echo 'ac_maketemp="${MAKE}"' | |
1122 | EOF | |
1123 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
18569462 | 1124 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
705db0b5 AD |
1125 | if test -n "$ac_maketemp"; then |
1126 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1127 | else | |
1128 | eval ac_cv_prog_make_${ac_make}_set=no | |
1129 | fi | |
18569462 | 1130 | rm -f conftest.make |
705db0b5 AD |
1131 | fi |
1132 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1e24cc5b | 1133 | echo "$as_me:1133: result: yes" >&5 |
18569462 | 1134 | echo "${ECHO_T}yes" >&6 |
705db0b5 AD |
1135 | SET_MAKE= |
1136 | else | |
1e24cc5b | 1137 | echo "$as_me:1137: result: no" >&5 |
18569462 | 1138 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
1139 | SET_MAKE="MAKE=${MAKE-make}" |
1140 | fi | |
1141 | ||
705db0b5 AD |
1142 | PACKAGE=bison |
1143 | ||
1144 | VERSION=1.28a | |
1145 | ||
1146 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
1e24cc5b | 1147 | { { echo "$as_me:1147: error: source directory already configured; run \"make distclean\" there first" >&5 |
18569462 AD |
1148 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1149 | { (exit 1); exit 1; }; } | |
705db0b5 | 1150 | fi |
18569462 AD |
1151 | |
1152 | cat >>confdefs.h <<EOF | |
705db0b5 AD |
1153 | #define PACKAGE "$PACKAGE" |
1154 | EOF | |
1155 | ||
18569462 | 1156 | cat >>confdefs.h <<EOF |
705db0b5 AD |
1157 | #define VERSION "$VERSION" |
1158 | EOF | |
1159 | ||
705db0b5 | 1160 | missing_dir=`cd $ac_aux_dir && pwd` |
1e24cc5b | 1161 | echo "$as_me:1161: checking for working aclocal" >&5 |
18569462 | 1162 | echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 |
705db0b5 AD |
1163 | # Run test in a subshell; some versions of sh will print an error if |
1164 | # an executable is not found, even if stderr is redirected. | |
1165 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1166 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
1167 | ACLOCAL=aclocal | |
1e24cc5b | 1168 | echo "$as_me:1168: result: found" >&5 |
18569462 | 1169 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1170 | else |
1171 | ACLOCAL="$missing_dir/missing aclocal" | |
1e24cc5b | 1172 | echo "$as_me:1172: result: missing" >&5 |
18569462 | 1173 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1174 | fi |
1175 | ||
1e24cc5b | 1176 | echo "$as_me:1176: checking for working autoconf" >&5 |
18569462 | 1177 | echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
705db0b5 AD |
1178 | # Run test in a subshell; some versions of sh will print an error if |
1179 | # an executable is not found, even if stderr is redirected. | |
1180 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1181 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1182 | AUTOCONF=autoconf | |
1e24cc5b | 1183 | echo "$as_me:1183: result: found" >&5 |
18569462 | 1184 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1185 | else |
1186 | AUTOCONF="$missing_dir/missing autoconf" | |
1e24cc5b | 1187 | echo "$as_me:1187: result: missing" >&5 |
18569462 | 1188 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1189 | fi |
1190 | ||
1e24cc5b | 1191 | echo "$as_me:1191: checking for working automake" >&5 |
18569462 | 1192 | echo $ECHO_N "checking for working automake... $ECHO_C" >&6 |
705db0b5 AD |
1193 | # Run test in a subshell; some versions of sh will print an error if |
1194 | # an executable is not found, even if stderr is redirected. | |
1195 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1196 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
1197 | AUTOMAKE=automake | |
1e24cc5b | 1198 | echo "$as_me:1198: result: found" >&5 |
18569462 | 1199 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1200 | else |
1201 | AUTOMAKE="$missing_dir/missing automake" | |
1e24cc5b | 1202 | echo "$as_me:1202: result: missing" >&5 |
18569462 | 1203 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1204 | fi |
1205 | ||
1e24cc5b | 1206 | echo "$as_me:1206: checking for working autoheader" >&5 |
18569462 | 1207 | echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
705db0b5 AD |
1208 | # Run test in a subshell; some versions of sh will print an error if |
1209 | # an executable is not found, even if stderr is redirected. | |
1210 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1211 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1212 | AUTOHEADER=autoheader | |
1e24cc5b | 1213 | echo "$as_me:1213: result: found" >&5 |
18569462 | 1214 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1215 | else |
1216 | AUTOHEADER="$missing_dir/missing autoheader" | |
1e24cc5b | 1217 | echo "$as_me:1217: result: missing" >&5 |
18569462 | 1218 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1219 | fi |
1220 | ||
1e24cc5b | 1221 | echo "$as_me:1221: checking for working makeinfo" >&5 |
18569462 | 1222 | echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
705db0b5 AD |
1223 | # Run test in a subshell; some versions of sh will print an error if |
1224 | # an executable is not found, even if stderr is redirected. | |
1225 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1226 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1227 | MAKEINFO=makeinfo | |
1e24cc5b | 1228 | echo "$as_me:1228: result: found" >&5 |
18569462 | 1229 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1230 | else |
1231 | MAKEINFO="$missing_dir/missing makeinfo" | |
1e24cc5b | 1232 | echo "$as_me:1232: result: missing" >&5 |
18569462 | 1233 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1234 | fi |
1235 | ||
18569462 | 1236 | ac_config_headers="$ac_config_headers config.h:config.hin" |
705db0b5 | 1237 | |
18569462 | 1238 | ac_config_commands="$ac_config_commands default-1" |
705db0b5 AD |
1239 | |
1240 | # Initialize the test suite. | |
1241 | AT_TESTPATH=../src | |
1242 | ||
1243 | # Try to be compatible with both Autoconf 2.13 and 2.50. | |
1244 | if test -z "$ECHO_C$ECHO_N$ECHO_T"; then | |
1245 | ECHO_C="$ac_c" | |
1246 | ECHO_N="$ac_n" | |
1247 | ECHO_T="$ac_t" | |
705db0b5 | 1248 | |
18569462 | 1249 | fi |
705db0b5 AD |
1250 | |
1251 | # Checks for programs. | |
18569462 AD |
1252 | ac_ext=c |
1253 | ac_cpp='$CPP $CPPFLAGS' | |
1254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1257 | if test -n "$ac_tool_prefix"; then | |
1258 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1259 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1e24cc5b | 1260 | echo "$as_me:1260: checking for $ac_word" >&5 |
18569462 AD |
1261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1262 | if test "${ac_cv_prog_CC+set}" = set; then | |
1263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
1264 | else |
1265 | if test -n "$CC"; then | |
1266 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1267 | else | |
5141b016 | 1268 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1269 | ac_dummy="$PATH" |
1270 | for ac_dir in $ac_dummy; do | |
1271 | IFS=$ac_save_IFS | |
1272 | test -z "$ac_dir" && ac_dir=. | |
1273 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1274 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1e24cc5b | 1275 | echo "$as_me:1275: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1276 | break |
1277 | done | |
1278 | ||
705db0b5 AD |
1279 | fi |
1280 | fi | |
18569462 | 1281 | CC=$ac_cv_prog_CC |
705db0b5 | 1282 | if test -n "$CC"; then |
1e24cc5b | 1283 | echo "$as_me:1283: result: $CC" >&5 |
18569462 | 1284 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1285 | else |
1e24cc5b | 1286 | echo "$as_me:1286: result: no" >&5 |
18569462 | 1287 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
1288 | fi |
1289 | ||
18569462 AD |
1290 | fi |
1291 | if test -z "$ac_cv_prog_CC"; then | |
1292 | ac_ct_CC=$CC | |
1293 | # Extract the first word of "gcc", so it can be a program name with args. | |
1294 | set dummy gcc; ac_word=$2 | |
1e24cc5b | 1295 | echo "$as_me:1295: checking for $ac_word" >&5 |
18569462 AD |
1296 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1297 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1299 | else | |
1300 | if test -n "$ac_ct_CC"; then | |
1301 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1302 | else | |
5141b016 | 1303 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1304 | ac_dummy="$PATH" |
1305 | for ac_dir in $ac_dummy; do | |
1306 | IFS=$ac_save_IFS | |
1307 | test -z "$ac_dir" && ac_dir=. | |
1308 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1309 | ac_cv_prog_ac_ct_CC="gcc" | |
1e24cc5b | 1310 | echo "$as_me:1310: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1311 | break |
1312 | done | |
1313 | ||
705db0b5 AD |
1314 | fi |
1315 | fi | |
18569462 AD |
1316 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1317 | if test -n "$ac_ct_CC"; then | |
1e24cc5b | 1318 | echo "$as_me:1318: result: $ac_ct_CC" >&5 |
18569462 AD |
1319 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1320 | else | |
1e24cc5b | 1321 | echo "$as_me:1321: result: no" >&5 |
18569462 | 1322 | echo "${ECHO_T}no" >&6 |
705db0b5 | 1323 | fi |
18569462 AD |
1324 | |
1325 | CC=$ac_ct_CC | |
705db0b5 | 1326 | else |
18569462 | 1327 | CC="$ac_cv_prog_CC" |
705db0b5 AD |
1328 | fi |
1329 | ||
18569462 AD |
1330 | if test -z "$CC"; then |
1331 | if test -n "$ac_tool_prefix"; then | |
1332 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1333 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1e24cc5b | 1334 | echo "$as_me:1334: checking for $ac_word" >&5 |
18569462 AD |
1335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1336 | if test "${ac_cv_prog_CC+set}" = set; then | |
1337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
1338 | else |
1339 | if test -n "$CC"; then | |
1340 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1341 | else | |
5141b016 | 1342 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1343 | ac_dummy="$PATH" |
1344 | for ac_dir in $ac_dummy; do | |
1345 | IFS=$ac_save_IFS | |
1346 | test -z "$ac_dir" && ac_dir=. | |
1347 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1348 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1e24cc5b | 1349 | echo "$as_me:1349: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1350 | break |
1351 | done | |
1352 | ||
705db0b5 AD |
1353 | fi |
1354 | fi | |
18569462 | 1355 | CC=$ac_cv_prog_CC |
705db0b5 | 1356 | if test -n "$CC"; then |
1e24cc5b | 1357 | echo "$as_me:1357: result: $CC" >&5 |
18569462 | 1358 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1359 | else |
1e24cc5b | 1360 | echo "$as_me:1360: result: no" >&5 |
18569462 | 1361 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
1362 | fi |
1363 | ||
18569462 AD |
1364 | fi |
1365 | if test -z "$ac_cv_prog_CC"; then | |
1366 | ac_ct_CC=$CC | |
1367 | # Extract the first word of "cc", so it can be a program name with args. | |
1368 | set dummy cc; ac_word=$2 | |
1e24cc5b | 1369 | echo "$as_me:1369: checking for $ac_word" >&5 |
18569462 AD |
1370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1371 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1373 | else | |
1374 | if test -n "$ac_ct_CC"; then | |
1375 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1376 | else | |
5141b016 | 1377 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1378 | ac_dummy="$PATH" |
1379 | for ac_dir in $ac_dummy; do | |
1380 | IFS=$ac_save_IFS | |
1381 | test -z "$ac_dir" && ac_dir=. | |
1382 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1383 | ac_cv_prog_ac_ct_CC="cc" | |
1e24cc5b | 1384 | echo "$as_me:1384: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1385 | break |
1386 | done | |
705db0b5 | 1387 | |
18569462 AD |
1388 | fi |
1389 | fi | |
1390 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1391 | if test -n "$ac_ct_CC"; then | |
1e24cc5b | 1392 | echo "$as_me:1392: result: $ac_ct_CC" >&5 |
18569462 AD |
1393 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1394 | else | |
1e24cc5b | 1395 | echo "$as_me:1395: result: no" >&5 |
18569462 AD |
1396 | echo "${ECHO_T}no" >&6 |
1397 | fi | |
705db0b5 | 1398 | |
18569462 AD |
1399 | CC=$ac_ct_CC |
1400 | else | |
1401 | CC="$ac_cv_prog_CC" | |
1402 | fi | |
705db0b5 | 1403 | |
18569462 AD |
1404 | fi |
1405 | if test -z "$CC"; then | |
1406 | # Extract the first word of "cc", so it can be a program name with args. | |
1407 | set dummy cc; ac_word=$2 | |
1e24cc5b | 1408 | echo "$as_me:1408: checking for $ac_word" >&5 |
18569462 AD |
1409 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1410 | if test "${ac_cv_prog_CC+set}" = set; then | |
1411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1412 | else | |
1413 | if test -n "$CC"; then | |
1414 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1415 | else | |
1416 | ac_prog_rejected=no | |
5141b016 | 1417 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1418 | ac_dummy="$PATH" |
1419 | for ac_dir in $ac_dummy; do | |
1420 | IFS=$ac_save_IFS | |
1421 | test -z "$ac_dir" && ac_dir=. | |
1422 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1423 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1424 | ac_prog_rejected=yes | |
1425 | continue | |
1426 | fi | |
1427 | ac_cv_prog_CC="cc" | |
1e24cc5b | 1428 | echo "$as_me:1428: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1429 | break |
1430 | done | |
705db0b5 | 1431 | |
18569462 AD |
1432 | if test $ac_prog_rejected = yes; then |
1433 | # We found a bogon in the path, so make sure we never use it. | |
1434 | set dummy $ac_cv_prog_CC | |
1435 | shift | |
1436 | if test $# != 0; then | |
1437 | # We chose a different compiler from the bogus one. | |
1438 | # However, it has the same basename, so the bogon will be chosen | |
1439 | # first if we set CC to just the basename; use the full file name. | |
1440 | shift | |
1441 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | |
1442 | shift | |
1443 | ac_cv_prog_CC="$@" | |
705db0b5 | 1444 | fi |
18569462 AD |
1445 | fi |
1446 | fi | |
1447 | fi | |
1448 | CC=$ac_cv_prog_CC | |
1449 | if test -n "$CC"; then | |
1e24cc5b | 1450 | echo "$as_me:1450: result: $CC" >&5 |
18569462 | 1451 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1452 | else |
1e24cc5b | 1453 | echo "$as_me:1453: result: no" >&5 |
18569462 | 1454 | echo "${ECHO_T}no" >&6 |
705db0b5 | 1455 | fi |
705db0b5 | 1456 | |
705db0b5 | 1457 | fi |
18569462 AD |
1458 | if test -z "$CC"; then |
1459 | if test -n "$ac_tool_prefix"; then | |
1460 | for ac_prog in cl | |
1461 | do | |
1462 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1463 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1e24cc5b | 1464 | echo "$as_me:1464: checking for $ac_word" >&5 |
18569462 AD |
1465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1466 | if test "${ac_cv_prog_CC+set}" = set; then | |
1467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1468 | else | |
1469 | if test -n "$CC"; then | |
1470 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1471 | else | |
5141b016 | 1472 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1473 | ac_dummy="$PATH" |
1474 | for ac_dir in $ac_dummy; do | |
1475 | IFS=$ac_save_IFS | |
1476 | test -z "$ac_dir" && ac_dir=. | |
1477 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1478 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1e24cc5b | 1479 | echo "$as_me:1479: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1480 | break |
1481 | done | |
705db0b5 | 1482 | |
18569462 AD |
1483 | fi |
1484 | fi | |
1485 | CC=$ac_cv_prog_CC | |
1486 | if test -n "$CC"; then | |
1e24cc5b | 1487 | echo "$as_me:1487: result: $CC" >&5 |
18569462 | 1488 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1489 | else |
1e24cc5b | 1490 | echo "$as_me:1490: result: no" >&5 |
18569462 AD |
1491 | echo "${ECHO_T}no" >&6 |
1492 | fi | |
1493 | ||
1494 | test -n "$CC" && break | |
1495 | done | |
1496 | fi | |
1497 | if test -z "$CC"; then | |
1498 | ac_ct_CC=$CC | |
1499 | for ac_prog in cl | |
1500 | do | |
1501 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1502 | set dummy $ac_prog; ac_word=$2 | |
1e24cc5b | 1503 | echo "$as_me:1503: checking for $ac_word" >&5 |
18569462 AD |
1504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1505 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1507 | else | |
1508 | if test -n "$ac_ct_CC"; then | |
1509 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1510 | else | |
5141b016 | 1511 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1512 | ac_dummy="$PATH" |
1513 | for ac_dir in $ac_dummy; do | |
1514 | IFS=$ac_save_IFS | |
1515 | test -z "$ac_dir" && ac_dir=. | |
1516 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1517 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1e24cc5b | 1518 | echo "$as_me:1518: found $ac_dir/$ac_word" >&5 |
18569462 AD |
1519 | break |
1520 | done | |
1521 | ||
1522 | fi | |
1523 | fi | |
1524 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1525 | if test -n "$ac_ct_CC"; then | |
1e24cc5b | 1526 | echo "$as_me:1526: result: $ac_ct_CC" >&5 |
18569462 | 1527 | echo "${ECHO_T}$ac_ct_CC" >&6 |
705db0b5 | 1528 | else |
1e24cc5b | 1529 | echo "$as_me:1529: result: no" >&5 |
18569462 AD |
1530 | echo "${ECHO_T}no" >&6 |
1531 | fi | |
1532 | ||
1533 | test -n "$ac_ct_CC" && break | |
1534 | done | |
1535 | ||
1536 | CC=$ac_ct_CC | |
705db0b5 | 1537 | fi |
18569462 | 1538 | |
705db0b5 AD |
1539 | fi |
1540 | ||
1e24cc5b | 1541 | test -z "$CC" && { { echo "$as_me:1541: error: no acceptable cc found in \$PATH" >&5 |
18569462 AD |
1542 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
1543 | { (exit 1); exit 1; }; } | |
1544 | ||
5141b016 | 1545 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 1546 | #line 1546 "configure" |
18569462 AD |
1547 | #include "confdefs.h" |
1548 | ||
1549 | int | |
1550 | main () | |
1551 | { | |
1552 | ||
1553 | ; | |
1554 | return 0; | |
1555 | } | |
1556 | _ACEOF | |
5141b016 AD |
1557 | ac_clean_files_save=$ac_clean_files |
1558 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1559 | # Try to create an executable without -o first, disregard a.out. | |
1560 | # It will help us diagnose broken compiler, and finding out an intuition | |
1561 | # of exeext. | |
1e24cc5b | 1562 | echo "$as_me:1562: checking for C compiler default output" >&5 |
5141b016 | 1563 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
18569462 | 1564 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1e24cc5b | 1565 | if { (eval echo "$as_me:1565: \"$ac_link_default\"") >&5 |
18569462 AD |
1566 | (eval $ac_link_default) 2>&5 |
1567 | ac_status=$? | |
1e24cc5b | 1568 | echo "$as_me:1568: \$? = $ac_status" >&5 |
18569462 AD |
1569 | (exit $ac_status); }; then |
1570 | for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do | |
1571 | case $ac_file in | |
5141b016 AD |
1572 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
1573 | a.out ) # We found the default executable, but exeext='' is most | |
1574 | # certainly right. | |
1575 | break;; | |
18569462 AD |
1576 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1577 | export ac_cv_exeext | |
1578 | break;; | |
1579 | * ) break;; | |
1580 | esac | |
1581 | done | |
1582 | else | |
1583 | echo "$as_me: failed program was:" >&5 | |
1584 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 1585 | { { echo "$as_me:1585: error: C compiler cannot create executables" >&5 |
5141b016 AD |
1586 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
1587 | { (exit 77); exit 77; }; } | |
1588 | fi | |
1589 | ||
1590 | ac_exeext=$ac_cv_exeext | |
1e24cc5b | 1591 | echo "$as_me:1591: result: $ac_file" >&5 |
5141b016 AD |
1592 | echo "${ECHO_T}$ac_file" >&6 |
1593 | ||
1594 | # Check the compiler produces executables we can run. If not, either | |
1595 | # the compiler is broken, or we cross compile. | |
1e24cc5b | 1596 | echo "$as_me:1596: checking whether the C compiler works" >&5 |
5141b016 AD |
1597 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1598 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1599 | # If not cross compiling, check that we can run a simple program. | |
1600 | if test "$cross_compiling" != yes; then | |
1601 | if { ac_try='./$ac_file' | |
1e24cc5b | 1602 | { (eval echo "$as_me:1602: \"$ac_try\"") >&5 |
5141b016 AD |
1603 | (eval $ac_try) 2>&5 |
1604 | ac_status=$? | |
1e24cc5b | 1605 | echo "$as_me:1605: \$? = $ac_status" >&5 |
5141b016 AD |
1606 | (exit $ac_status); }; }; then |
1607 | cross_compiling=no | |
1608 | else | |
1609 | if test "$cross_compiling" = maybe; then | |
1610 | cross_compiling=yes | |
1611 | else | |
1e24cc5b | 1612 | { { echo "$as_me:1612: error: cannot run C compiled programs. |
5141b016 AD |
1613 | If you meant to cross compile, use \`--host'." >&5 |
1614 | echo "$as_me: error: cannot run C compiled programs. | |
1615 | If you meant to cross compile, use \`--host'." >&2;} | |
1616 | { (exit 1); exit 1; }; } | |
1617 | fi | |
1618 | fi | |
18569462 | 1619 | fi |
1e24cc5b | 1620 | echo "$as_me:1620: result: yes" >&5 |
5141b016 | 1621 | echo "${ECHO_T}yes" >&6 |
18569462 AD |
1622 | |
1623 | rm -f a.out a.exe conftest$ac_cv_exeext | |
5141b016 AD |
1624 | ac_clean_files=$ac_clean_files_save |
1625 | # Check the compiler produces executables we can run. If not, either | |
1626 | # the compiler is broken, or we cross compile. | |
1e24cc5b | 1627 | echo "$as_me:1627: checking whether we are cross compiling" >&5 |
5141b016 | 1628 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
1e24cc5b | 1629 | echo "$as_me:1629: result: $cross_compiling" >&5 |
5141b016 | 1630 | echo "${ECHO_T}$cross_compiling" >&6 |
18569462 | 1631 | |
1e24cc5b | 1632 | echo "$as_me:1632: checking for executable suffix" >&5 |
5141b016 | 1633 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
1e24cc5b | 1634 | if { (eval echo "$as_me:1634: \"$ac_link\"") >&5 |
18569462 AD |
1635 | (eval $ac_link) 2>&5 |
1636 | ac_status=$? | |
1e24cc5b | 1637 | echo "$as_me:1637: \$? = $ac_status" >&5 |
18569462 AD |
1638 | (exit $ac_status); }; then |
1639 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1640 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1641 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1642 | # `rm'. | |
1643 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1644 | case $ac_file in | |
1645 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1646 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1647 | export ac_cv_exeext | |
1648 | break;; | |
1649 | * ) break;; | |
1650 | esac | |
1651 | done | |
705db0b5 | 1652 | else |
1e24cc5b | 1653 | { { echo "$as_me:1653: error: cannot compute EXEEXT: cannot compile and link" >&5 |
18569462 AD |
1654 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
1655 | { (exit 1); exit 1; }; } | |
705db0b5 | 1656 | fi |
705db0b5 | 1657 | |
5141b016 | 1658 | rm -f conftest$ac_cv_exeext |
1e24cc5b | 1659 | echo "$as_me:1659: result: $ac_cv_exeext" >&5 |
18569462 | 1660 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
5141b016 AD |
1661 | |
1662 | rm -f conftest.$ac_ext | |
18569462 AD |
1663 | EXEEXT=$ac_cv_exeext |
1664 | ac_exeext=$EXEEXT | |
1e24cc5b | 1665 | echo "$as_me:1665: checking for object suffix" >&5 |
5141b016 AD |
1666 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
1667 | if test "${ac_cv_objext+set}" = set; then | |
1668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1669 | else | |
1670 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 1671 | #line 1671 "configure" |
18569462 AD |
1672 | #include "confdefs.h" |
1673 | ||
1674 | int | |
1675 | main () | |
1676 | { | |
1677 | ||
1678 | ; | |
1679 | return 0; | |
1680 | } | |
1681 | _ACEOF | |
5141b016 | 1682 | rm -f conftest.o conftest.obj |
1e24cc5b | 1683 | if { (eval echo "$as_me:1683: \"$ac_compile\"") >&5 |
5141b016 | 1684 | (eval $ac_compile) 2>&5 |
18569462 | 1685 | ac_status=$? |
1e24cc5b | 1686 | echo "$as_me:1686: \$? = $ac_status" >&5 |
5141b016 AD |
1687 | (exit $ac_status); }; then |
1688 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1689 | case $ac_file in | |
1690 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1691 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1692 | break;; | |
1693 | esac | |
1694 | done | |
18569462 AD |
1695 | else |
1696 | echo "$as_me: failed program was:" >&5 | |
1697 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 1698 | { { echo "$as_me:1698: error: cannot compute OBJEXT: cannot compile" >&5 |
5141b016 AD |
1699 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
1700 | { (exit 1); exit 1; }; } | |
18569462 | 1701 | fi |
18569462 | 1702 | |
5141b016 AD |
1703 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1704 | fi | |
1e24cc5b | 1705 | echo "$as_me:1705: result: $ac_cv_objext" >&5 |
5141b016 AD |
1706 | echo "${ECHO_T}$ac_cv_objext" >&6 |
1707 | OBJEXT=$ac_cv_objext | |
1708 | ac_objext=$OBJEXT | |
1e24cc5b | 1709 | echo "$as_me:1709: checking whether we are using the GNU C compiler" >&5 |
18569462 AD |
1710 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1711 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1713 | else | |
1714 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 1715 | #line 1715 "configure" |
18569462 | 1716 | #include "confdefs.h" |
705db0b5 | 1717 | |
18569462 AD |
1718 | int |
1719 | main () | |
1720 | { | |
1721 | #ifndef __GNUC__ | |
1722 | choke me | |
1723 | #endif | |
1724 | ||
1725 | ; | |
1726 | return 0; | |
1727 | } | |
1728 | _ACEOF | |
1729 | rm -f conftest.$ac_objext | |
1e24cc5b | 1730 | if { (eval echo "$as_me:1730: \"$ac_compile\"") >&5 |
18569462 AD |
1731 | (eval $ac_compile) 2>&5 |
1732 | ac_status=$? | |
1e24cc5b | 1733 | echo "$as_me:1733: \$? = $ac_status" >&5 |
18569462 | 1734 | (exit $ac_status); } && |
5141b016 | 1735 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 1736 | { (eval echo "$as_me:1736: \"$ac_try\"") >&5 |
18569462 AD |
1737 | (eval $ac_try) 2>&5 |
1738 | ac_status=$? | |
1e24cc5b | 1739 | echo "$as_me:1739: \$? = $ac_status" >&5 |
18569462 AD |
1740 | (exit $ac_status); }; }; then |
1741 | ac_compiler_gnu=yes | |
1742 | else | |
1743 | echo "$as_me: failed program was:" >&5 | |
1744 | cat conftest.$ac_ext >&5 | |
1745 | ac_compiler_gnu=no | |
1746 | fi | |
1747 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1748 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1749 | ||
1750 | fi | |
1e24cc5b | 1751 | echo "$as_me:1751: result: $ac_cv_c_compiler_gnu" >&5 |
18569462 AD |
1752 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
1753 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1754 | ac_test_CFLAGS=${CFLAGS+set} | |
1755 | ac_save_CFLAGS=$CFLAGS | |
1756 | CFLAGS="-g" | |
1e24cc5b | 1757 | echo "$as_me:1757: checking whether $CC accepts -g" >&5 |
18569462 AD |
1758 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
1759 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1761 | else | |
1762 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 1763 | #line 1763 "configure" |
18569462 AD |
1764 | #include "confdefs.h" |
1765 | ||
1766 | int | |
1767 | main () | |
1768 | { | |
1769 | ||
1770 | ; | |
1771 | return 0; | |
1772 | } | |
1773 | _ACEOF | |
1774 | rm -f conftest.$ac_objext | |
1e24cc5b | 1775 | if { (eval echo "$as_me:1775: \"$ac_compile\"") >&5 |
18569462 AD |
1776 | (eval $ac_compile) 2>&5 |
1777 | ac_status=$? | |
1e24cc5b | 1778 | echo "$as_me:1778: \$? = $ac_status" >&5 |
18569462 | 1779 | (exit $ac_status); } && |
5141b016 | 1780 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 1781 | { (eval echo "$as_me:1781: \"$ac_try\"") >&5 |
18569462 AD |
1782 | (eval $ac_try) 2>&5 |
1783 | ac_status=$? | |
1e24cc5b | 1784 | echo "$as_me:1784: \$? = $ac_status" >&5 |
18569462 AD |
1785 | (exit $ac_status); }; }; then |
1786 | ac_cv_prog_cc_g=yes | |
1787 | else | |
1788 | echo "$as_me: failed program was:" >&5 | |
1789 | cat conftest.$ac_ext >&5 | |
1790 | ac_cv_prog_cc_g=no | |
1791 | fi | |
1792 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1793 | fi | |
1e24cc5b | 1794 | echo "$as_me:1794: result: $ac_cv_prog_cc_g" >&5 |
18569462 | 1795 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
705db0b5 | 1796 | if test "$ac_test_CFLAGS" = set; then |
18569462 | 1797 | CFLAGS=$ac_save_CFLAGS |
705db0b5 AD |
1798 | elif test $ac_cv_prog_cc_g = yes; then |
1799 | if test "$GCC" = yes; then | |
1800 | CFLAGS="-g -O2" | |
1801 | else | |
1802 | CFLAGS="-g" | |
1803 | fi | |
1804 | else | |
1805 | if test "$GCC" = yes; then | |
1806 | CFLAGS="-O2" | |
1807 | else | |
1808 | CFLAGS= | |
1809 | fi | |
1810 | fi | |
18569462 AD |
1811 | # Some people use a C++ compiler to compile C. Since we use `exit', |
1812 | # in C++ we need to declare it. In case someone uses the same compiler | |
1813 | # for both compiling C and C++ we need to have the C++ compiler decide | |
1814 | # the declaration of exit, since it's the most demanding environment. | |
1815 | cat >conftest.$ac_ext <<_ACEOF | |
1816 | #ifndef __cplusplus | |
1817 | choke me | |
1818 | #endif | |
1819 | _ACEOF | |
1820 | rm -f conftest.$ac_objext | |
1e24cc5b | 1821 | if { (eval echo "$as_me:1821: \"$ac_compile\"") >&5 |
18569462 AD |
1822 | (eval $ac_compile) 2>&5 |
1823 | ac_status=$? | |
1e24cc5b | 1824 | echo "$as_me:1824: \$? = $ac_status" >&5 |
18569462 | 1825 | (exit $ac_status); } && |
5141b016 | 1826 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 1827 | { (eval echo "$as_me:1827: \"$ac_try\"") >&5 |
18569462 AD |
1828 | (eval $ac_try) 2>&5 |
1829 | ac_status=$? | |
1e24cc5b | 1830 | echo "$as_me:1830: \$? = $ac_status" >&5 |
18569462 AD |
1831 | (exit $ac_status); }; }; then |
1832 | for ac_declaration in \ | |
1833 | ''\ | |
1834 | '#include <stdlib.h>' \ | |
1835 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
1836 | 'extern "C" void std::exit (int); using std::exit;' \ | |
1837 | 'extern "C" void exit (int) throw ();' \ | |
1838 | 'extern "C" void exit (int);' \ | |
1839 | 'void exit (int);' | |
1840 | do | |
1841 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 1842 | #line 1842 "configure" |
18569462 AD |
1843 | #include "confdefs.h" |
1844 | #include <stdlib.h> | |
1845 | $ac_declaration | |
1846 | int | |
1847 | main () | |
1848 | { | |
1849 | exit (42); | |
1850 | ; | |
1851 | return 0; | |
1852 | } | |
1853 | _ACEOF | |
1854 | rm -f conftest.$ac_objext | |
1e24cc5b | 1855 | if { (eval echo "$as_me:1855: \"$ac_compile\"") >&5 |
18569462 AD |
1856 | (eval $ac_compile) 2>&5 |
1857 | ac_status=$? | |
1e24cc5b | 1858 | echo "$as_me:1858: \$? = $ac_status" >&5 |
18569462 | 1859 | (exit $ac_status); } && |
5141b016 | 1860 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 1861 | { (eval echo "$as_me:1861: \"$ac_try\"") >&5 |
18569462 AD |
1862 | (eval $ac_try) 2>&5 |
1863 | ac_status=$? | |
1e24cc5b | 1864 | echo "$as_me:1864: \$? = $ac_status" >&5 |
18569462 AD |
1865 | (exit $ac_status); }; }; then |
1866 | : | |
1867 | else | |
1868 | echo "$as_me: failed program was:" >&5 | |
1869 | cat conftest.$ac_ext >&5 | |
1870 | continue | |
1871 | fi | |
1872 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1873 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 1874 | #line 1874 "configure" |
18569462 AD |
1875 | #include "confdefs.h" |
1876 | $ac_declaration | |
1877 | int | |
1878 | main () | |
1879 | { | |
1880 | exit (42); | |
1881 | ; | |
1882 | return 0; | |
1883 | } | |
1884 | _ACEOF | |
1885 | rm -f conftest.$ac_objext | |
1e24cc5b | 1886 | if { (eval echo "$as_me:1886: \"$ac_compile\"") >&5 |
18569462 AD |
1887 | (eval $ac_compile) 2>&5 |
1888 | ac_status=$? | |
1e24cc5b | 1889 | echo "$as_me:1889: \$? = $ac_status" >&5 |
18569462 | 1890 | (exit $ac_status); } && |
5141b016 | 1891 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 1892 | { (eval echo "$as_me:1892: \"$ac_try\"") >&5 |
18569462 AD |
1893 | (eval $ac_try) 2>&5 |
1894 | ac_status=$? | |
1e24cc5b | 1895 | echo "$as_me:1895: \$? = $ac_status" >&5 |
18569462 AD |
1896 | (exit $ac_status); }; }; then |
1897 | break | |
1898 | else | |
1899 | echo "$as_me: failed program was:" >&5 | |
1900 | cat conftest.$ac_ext >&5 | |
1901 | fi | |
1902 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1903 | done | |
1904 | echo '#ifdef __cplusplus' >>confdefs.h | |
1905 | echo $ac_declaration >>confdefs.h | |
1906 | echo '#endif' >>confdefs.h | |
1907 | ||
1908 | else | |
1909 | echo "$as_me: failed program was:" >&5 | |
1910 | cat conftest.$ac_ext >&5 | |
1911 | fi | |
1912 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1913 | ac_ext=c | |
1914 | ac_cpp='$CPP $CPPFLAGS' | |
1915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
705db0b5 | 1918 | |
18569462 AD |
1919 | ac_ext=c |
1920 | ac_cpp='$CPP $CPPFLAGS' | |
1921 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1922 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1923 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1e24cc5b | 1924 | echo "$as_me:1924: checking how to run the C preprocessor" >&5 |
18569462 | 1925 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
705db0b5 AD |
1926 | # On Suns, sometimes $CPP names a directory. |
1927 | if test -n "$CPP" && test -d "$CPP"; then | |
1928 | CPP= | |
1929 | fi | |
1930 | if test -z "$CPP"; then | |
18569462 AD |
1931 | if test "${ac_cv_prog_CPP+set}" = set; then |
1932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1933 | else | |
1934 | # Double quotes because CPP needs to be expanded | |
1935 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
1936 | do | |
1e24cc5b AD |
1937 | # break 2 since there is a loop in there. |
1938 | ac_preproc_ok=false | |
1939 | for ac_c_preproc_warn_flag in '' yes | |
1940 | do | |
1941 | # Use a header file that comes with gcc, so configuring glibc | |
1942 | # with a fresh cross-compiler works. | |
1943 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1944 | # not just through cpp. "Syntax error" is here to catch this case. | |
1945 | cat >conftest.$ac_ext <<_ACEOF | |
1946 | #line 1946 "configure" | |
705db0b5 AD |
1947 | #include "confdefs.h" |
1948 | #include <assert.h> | |
1e24cc5b | 1949 | Syntax error |
18569462 | 1950 | _ACEOF |
1e24cc5b AD |
1951 | if { (eval echo "$as_me:1951: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1952 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
1953 | ac_status=$? |
1954 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
1955 | rm -f conftest.er1 | |
1956 | cat conftest.err >&5 | |
1e24cc5b AD |
1957 | echo "$as_me:1957: \$? = $ac_status" >&5 |
1958 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
1959 | if test -s conftest.err; then |
1960 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1961 | else | |
1962 | ac_cpp_err= | |
1963 | fi | |
705db0b5 | 1964 | else |
18569462 AD |
1965 | ac_cpp_err=yes |
1966 | fi | |
1967 | if test -z "$ac_cpp_err"; then | |
1e24cc5b AD |
1968 | : |
1969 | else | |
1970 | echo "$as_me: failed program was:" >&5 | |
1971 | cat conftest.$ac_ext >&5 | |
1972 | # Broken: fails on valid input. | |
1973 | continue | |
1974 | fi | |
1975 | rm -f conftest.err conftest.$ac_ext | |
1976 | ||
1977 | # OK, works on sane cases. Now check whether non-existent headers | |
1978 | # can be detected and how. | |
18569462 | 1979 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 1980 | #line 1980 "configure" |
705db0b5 | 1981 | #include "confdefs.h" |
18569462 AD |
1982 | #include <ac_nonexistent.h> |
1983 | _ACEOF | |
1e24cc5b AD |
1984 | if { (eval echo "$as_me:1984: \"$ac_cpp conftest.$ac_ext\"") >&5 |
1985 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
1986 | ac_status=$? |
1987 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
1988 | rm -f conftest.er1 | |
1989 | cat conftest.err >&5 | |
1e24cc5b AD |
1990 | echo "$as_me:1990: \$? = $ac_status" >&5 |
1991 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
1992 | if test -s conftest.err; then |
1993 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1994 | else | |
1995 | ac_cpp_err= | |
1996 | fi | |
1997 | else | |
1998 | ac_cpp_err=yes | |
1999 | fi | |
2000 | if test -z "$ac_cpp_err"; then | |
1e24cc5b AD |
2001 | # Broken: success on invalid input. |
2002 | continue | |
18569462 AD |
2003 | else |
2004 | echo "$as_me: failed program was:" >&5 | |
2005 | cat conftest.$ac_ext >&5 | |
1e24cc5b AD |
2006 | # Passes both tests. |
2007 | ac_preproc_ok=: | |
2008 | break | |
18569462 AD |
2009 | fi |
2010 | rm -f conftest.err conftest.$ac_ext | |
18569462 | 2011 | |
1e24cc5b AD |
2012 | done |
2013 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18569462 | 2014 | rm -f conftest.err conftest.$ac_ext |
1e24cc5b AD |
2015 | if $ac_preproc_ok; then |
2016 | break 2 | |
2017 | fi | |
2018 | ||
18569462 AD |
2019 | done |
2020 | ac_cv_prog_CPP=$CPP | |
2021 | ||
2022 | fi | |
2023 | CPP=$ac_cv_prog_CPP | |
2024 | else | |
1e24cc5b AD |
2025 | ac_cv_prog_CPP=$CPP |
2026 | fi | |
2027 | echo "$as_me:2027: result: $CPP" >&5 | |
2028 | echo "${ECHO_T}$CPP" >&6 | |
2029 | ac_preproc_ok=false | |
2030 | for ac_c_preproc_warn_flag in '' yes | |
2031 | do | |
18569462 | 2032 | # Use a header file that comes with gcc, so configuring glibc |
1e24cc5b AD |
2033 | # with a fresh cross-compiler works. |
2034 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2035 | # not just through cpp. "Syntax error" is here to catch this case. | |
2036 | cat >conftest.$ac_ext <<_ACEOF | |
2037 | #line 2037 "configure" | |
705db0b5 AD |
2038 | #include "confdefs.h" |
2039 | #include <assert.h> | |
1e24cc5b | 2040 | Syntax error |
18569462 | 2041 | _ACEOF |
1e24cc5b AD |
2042 | if { (eval echo "$as_me:2042: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2043 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
2044 | ac_status=$? |
2045 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2046 | rm -f conftest.er1 | |
2047 | cat conftest.err >&5 | |
1e24cc5b AD |
2048 | echo "$as_me:2048: \$? = $ac_status" >&5 |
2049 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
2050 | if test -s conftest.err; then |
2051 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2052 | else | |
2053 | ac_cpp_err= | |
2054 | fi | |
705db0b5 | 2055 | else |
18569462 | 2056 | ac_cpp_err=yes |
705db0b5 | 2057 | fi |
18569462 | 2058 | if test -z "$ac_cpp_err"; then |
1e24cc5b AD |
2059 | : |
2060 | else | |
2061 | echo "$as_me: failed program was:" >&5 | |
2062 | cat conftest.$ac_ext >&5 | |
2063 | # Broken: fails on valid input. | |
2064 | continue | |
2065 | fi | |
2066 | rm -f conftest.err conftest.$ac_ext | |
2067 | ||
2068 | # OK, works on sane cases. Now check whether non-existent headers | |
2069 | # can be detected and how. | |
18569462 | 2070 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2071 | #line 2071 "configure" |
18569462 AD |
2072 | #include "confdefs.h" |
2073 | #include <ac_nonexistent.h> | |
2074 | _ACEOF | |
1e24cc5b AD |
2075 | if { (eval echo "$as_me:2075: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2076 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
2077 | ac_status=$? |
2078 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2079 | rm -f conftest.er1 | |
2080 | cat conftest.err >&5 | |
1e24cc5b AD |
2081 | echo "$as_me:2081: \$? = $ac_status" >&5 |
2082 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
2083 | if test -s conftest.err; then |
2084 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2085 | else | |
2086 | ac_cpp_err= | |
2087 | fi | |
2088 | else | |
2089 | ac_cpp_err=yes | |
705db0b5 | 2090 | fi |
18569462 | 2091 | if test -z "$ac_cpp_err"; then |
1e24cc5b AD |
2092 | # Broken: success on invalid input. |
2093 | continue | |
18569462 AD |
2094 | else |
2095 | echo "$as_me: failed program was:" >&5 | |
2096 | cat conftest.$ac_ext >&5 | |
1e24cc5b AD |
2097 | # Passes both tests. |
2098 | ac_preproc_ok=: | |
2099 | break | |
705db0b5 | 2100 | fi |
18569462 | 2101 | rm -f conftest.err conftest.$ac_ext |
18569462 | 2102 | |
1e24cc5b AD |
2103 | done |
2104 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18569462 | 2105 | rm -f conftest.err conftest.$ac_ext |
1e24cc5b AD |
2106 | if $ac_preproc_ok; then |
2107 | : | |
2108 | else | |
2109 | { { echo "$as_me:2109: error: C preprocessor \"$CPP\" fails sanity check" >&5 | |
18569462 AD |
2110 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
2111 | { (exit 1); exit 1; }; } | |
2112 | fi | |
1e24cc5b | 2113 | |
18569462 AD |
2114 | ac_ext=c |
2115 | ac_cpp='$CPP $CPPFLAGS' | |
2116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
705db0b5 | 2119 | |
1e24cc5b | 2120 | echo "$as_me:2120: checking for minix/config.h" >&5 |
18569462 AD |
2121 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
2122 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
2123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 2124 | else |
18569462 | 2125 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2126 | #line 2126 "configure" |
705db0b5 AD |
2127 | #include "confdefs.h" |
2128 | #include <minix/config.h> | |
18569462 | 2129 | _ACEOF |
1e24cc5b AD |
2130 | if { (eval echo "$as_me:2130: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2131 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
2132 | ac_status=$? |
2133 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2134 | rm -f conftest.er1 | |
2135 | cat conftest.err >&5 | |
1e24cc5b AD |
2136 | echo "$as_me:2136: \$? = $ac_status" >&5 |
2137 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
2138 | if test -s conftest.err; then |
2139 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2140 | else | |
2141 | ac_cpp_err= | |
2142 | fi | |
2143 | else | |
2144 | ac_cpp_err=yes | |
2145 | fi | |
2146 | if test -z "$ac_cpp_err"; then | |
2147 | ac_cv_header_minix_config_h=yes | |
2148 | else | |
2149 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 2150 | cat conftest.$ac_ext >&5 |
18569462 | 2151 | ac_cv_header_minix_config_h=no |
705db0b5 | 2152 | fi |
18569462 | 2153 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 2154 | fi |
1e24cc5b | 2155 | echo "$as_me:2155: result: $ac_cv_header_minix_config_h" >&5 |
18569462 AD |
2156 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
2157 | if test $ac_cv_header_minix_config_h = yes; then | |
705db0b5 AD |
2158 | MINIX=yes |
2159 | else | |
18569462 | 2160 | MINIX= |
705db0b5 AD |
2161 | fi |
2162 | ||
2163 | if test "$MINIX" = yes; then | |
18569462 AD |
2164 | |
2165 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
2166 | #define _POSIX_SOURCE 1 |
2167 | EOF | |
2168 | ||
18569462 | 2169 | cat >>confdefs.h <<\EOF |
705db0b5 AD |
2170 | #define _POSIX_1_SOURCE 2 |
2171 | EOF | |
2172 | ||
18569462 | 2173 | cat >>confdefs.h <<\EOF |
705db0b5 AD |
2174 | #define _MINIX 1 |
2175 | EOF | |
2176 | ||
2177 | fi | |
2178 | ||
1e24cc5b AD |
2179 | echo "$as_me:2179: checking for strerror in -lcposix" >&5 |
2180 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 | |
2181 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then | |
2182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2183 | else | |
2184 | ac_check_lib_save_LIBS=$LIBS | |
2185 | LIBS="-lcposix $LIBS" | |
2186 | cat >conftest.$ac_ext <<_ACEOF | |
2187 | #line 2187 "configure" | |
2188 | #include "confdefs.h" | |
705db0b5 | 2189 | |
1e24cc5b AD |
2190 | /* Override any gcc2 internal prototype to avoid an error. */ |
2191 | #ifdef __cplusplus | |
2192 | extern "C" | |
2193 | #endif | |
2194 | /* We use char because int might match the return type of a gcc2 | |
2195 | builtin and then its argument prototype would still apply. */ | |
2196 | char strerror (); | |
2197 | int | |
2198 | main () | |
2199 | { | |
2200 | strerror (); | |
2201 | ; | |
2202 | return 0; | |
2203 | } | |
2204 | _ACEOF | |
2205 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2206 | if { (eval echo "$as_me:2206: \"$ac_link\"") >&5 | |
2207 | (eval $ac_link) 2>&5 | |
2208 | ac_status=$? | |
2209 | echo "$as_me:2209: \$? = $ac_status" >&5 | |
2210 | (exit $ac_status); } && | |
2211 | { ac_try='test -s conftest$ac_exeext' | |
2212 | { (eval echo "$as_me:2212: \"$ac_try\"") >&5 | |
2213 | (eval $ac_try) 2>&5 | |
2214 | ac_status=$? | |
2215 | echo "$as_me:2215: \$? = $ac_status" >&5 | |
2216 | (exit $ac_status); }; }; then | |
2217 | ac_cv_lib_cposix_strerror=yes | |
705db0b5 | 2218 | else |
1e24cc5b AD |
2219 | echo "$as_me: failed program was:" >&5 |
2220 | cat conftest.$ac_ext >&5 | |
2221 | ac_cv_lib_cposix_strerror=no | |
2222 | fi | |
2223 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2224 | LIBS=$ac_check_lib_save_LIBS | |
2225 | fi | |
2226 | echo "$as_me:2226: result: $ac_cv_lib_cposix_strerror" >&5 | |
2227 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 | |
2228 | if test $ac_cv_lib_cposix_strerror = yes; then | |
2229 | LIBS="$LIBS -lcposix" | |
705db0b5 AD |
2230 | fi |
2231 | ||
1e24cc5b | 2232 | echo "$as_me:2232: checking for ${CC-cc} option to accept ANSI C" >&5 |
18569462 AD |
2233 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 |
2234 | if test "${am_cv_prog_cc_stdc+set}" = set; then | |
2235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
2236 | else |
2237 | am_cv_prog_cc_stdc=no | |
2238 | ac_save_CC="$CC" | |
2239 | # Don't try gcc -ansi; that turns off useful extensions and | |
2240 | # breaks some systems' header files. | |
2241 | # AIX -qlanglvl=ansi | |
2242 | # Ultrix and OSF/1 -std1 | |
2243 | # HP-UX -Aa -D_HPUX_SOURCE | |
2244 | # SVR4 -Xc -D__EXTENSIONS__ | |
2245 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2246 | do | |
2247 | CC="$ac_save_CC $ac_arg" | |
18569462 | 2248 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2249 | #line 2249 "configure" |
705db0b5 AD |
2250 | #include "confdefs.h" |
2251 | #include <stdarg.h> | |
2252 | #include <stdio.h> | |
2253 | #include <sys/types.h> | |
2254 | #include <sys/stat.h> | |
2255 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2256 | struct buf { int x; }; | |
2257 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2258 | static char *e (p, i) | |
2259 | char **p; | |
2260 | int i; | |
2261 | { | |
2262 | return p[i]; | |
2263 | } | |
2264 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2265 | { | |
2266 | char *s; | |
2267 | va_list v; | |
2268 | va_start (v,p); | |
2269 | s = g (p, va_arg (v,int)); | |
2270 | va_end (v); | |
2271 | return s; | |
2272 | } | |
2273 | int test (int i, double x); | |
2274 | struct s1 {int (*f) (int a);}; | |
2275 | struct s2 {int (*f) (double a);}; | |
2276 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2277 | int argc; | |
2278 | char **argv; | |
2279 | ||
18569462 AD |
2280 | int |
2281 | main () | |
2282 | { | |
705db0b5 AD |
2283 | |
2284 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2285 | ||
18569462 AD |
2286 | ; |
2287 | return 0; | |
2288 | } | |
2289 | _ACEOF | |
2290 | rm -f conftest.$ac_objext | |
1e24cc5b | 2291 | if { (eval echo "$as_me:2291: \"$ac_compile\"") >&5 |
18569462 AD |
2292 | (eval $ac_compile) 2>&5 |
2293 | ac_status=$? | |
1e24cc5b | 2294 | echo "$as_me:2294: \$? = $ac_status" >&5 |
18569462 | 2295 | (exit $ac_status); } && |
5141b016 | 2296 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 2297 | { (eval echo "$as_me:2297: \"$ac_try\"") >&5 |
18569462 AD |
2298 | (eval $ac_try) 2>&5 |
2299 | ac_status=$? | |
1e24cc5b | 2300 | echo "$as_me:2300: \$? = $ac_status" >&5 |
18569462 | 2301 | (exit $ac_status); }; }; then |
705db0b5 AD |
2302 | am_cv_prog_cc_stdc="$ac_arg"; break |
2303 | else | |
18569462 AD |
2304 | echo "$as_me: failed program was:" >&5 |
2305 | cat conftest.$ac_ext >&5 | |
705db0b5 | 2306 | fi |
18569462 | 2307 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
2308 | done |
2309 | CC="$ac_save_CC" | |
2310 | ||
2311 | fi | |
2312 | ||
2313 | if test -z "$am_cv_prog_cc_stdc"; then | |
1e24cc5b | 2314 | echo "$as_me:2314: result: none needed" >&5 |
18569462 | 2315 | echo "${ECHO_T}none needed" >&6 |
705db0b5 | 2316 | else |
1e24cc5b | 2317 | echo "$as_me:2317: result: $am_cv_prog_cc_stdc" >&5 |
18569462 | 2318 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 |
705db0b5 AD |
2319 | fi |
2320 | case "x$am_cv_prog_cc_stdc" in | |
2321 | x|xno) ;; | |
2322 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2323 | esac | |
2324 | ||
1e24cc5b AD |
2325 | if test -n "$ac_tool_prefix"; then |
2326 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2327 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2328 | echo "$as_me:2328: checking for $ac_word" >&5 | |
2329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2330 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
18569462 | 2331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 AD |
2332 | else |
2333 | if test -n "$RANLIB"; then | |
2334 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2335 | else | |
5141b016 | 2336 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
2337 | ac_dummy="$PATH" |
2338 | for ac_dir in $ac_dummy; do | |
2339 | IFS=$ac_save_IFS | |
2340 | test -z "$ac_dir" && ac_dir=. | |
2341 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2342 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1e24cc5b | 2343 | echo "$as_me:2343: found $ac_dir/$ac_word" >&5 |
18569462 AD |
2344 | break |
2345 | done | |
2346 | ||
705db0b5 AD |
2347 | fi |
2348 | fi | |
18569462 | 2349 | RANLIB=$ac_cv_prog_RANLIB |
705db0b5 | 2350 | if test -n "$RANLIB"; then |
1e24cc5b | 2351 | echo "$as_me:2351: result: $RANLIB" >&5 |
18569462 AD |
2352 | echo "${ECHO_T}$RANLIB" >&6 |
2353 | else | |
1e24cc5b | 2354 | echo "$as_me:2354: result: no" >&5 |
18569462 AD |
2355 | echo "${ECHO_T}no" >&6 |
2356 | fi | |
2357 | ||
2358 | fi | |
2359 | if test -z "$ac_cv_prog_RANLIB"; then | |
2360 | ac_ct_RANLIB=$RANLIB | |
2361 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2362 | set dummy ranlib; ac_word=$2 | |
1e24cc5b | 2363 | echo "$as_me:2363: checking for $ac_word" >&5 |
18569462 AD |
2364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2365 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2367 | else | |
2368 | if test -n "$ac_ct_RANLIB"; then | |
2369 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2370 | else | |
5141b016 | 2371 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
2372 | ac_dummy="$PATH" |
2373 | for ac_dir in $ac_dummy; do | |
2374 | IFS=$ac_save_IFS | |
2375 | test -z "$ac_dir" && ac_dir=. | |
2376 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2377 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
1e24cc5b | 2378 | echo "$as_me:2378: found $ac_dir/$ac_word" >&5 |
18569462 AD |
2379 | break |
2380 | done | |
2381 | ||
2382 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2383 | fi | |
2384 | fi | |
2385 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2386 | if test -n "$ac_ct_RANLIB"; then | |
1e24cc5b | 2387 | echo "$as_me:2387: result: $ac_ct_RANLIB" >&5 |
18569462 AD |
2388 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
2389 | else | |
1e24cc5b | 2390 | echo "$as_me:2390: result: no" >&5 |
18569462 AD |
2391 | echo "${ECHO_T}no" >&6 |
2392 | fi | |
2393 | ||
2394 | RANLIB=$ac_ct_RANLIB | |
705db0b5 | 2395 | else |
18569462 | 2396 | RANLIB="$ac_cv_prog_RANLIB" |
705db0b5 AD |
2397 | fi |
2398 | ||
2399 | # GNU M4 is needed to build the testsuite. | |
2400 | for ac_prog in gm4 gnum4 m4 | |
2401 | do | |
18569462 | 2402 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
705db0b5 | 2403 | set dummy $ac_prog; ac_word=$2 |
1e24cc5b | 2404 | echo "$as_me:2404: checking for $ac_word" >&5 |
18569462 AD |
2405 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2406 | if test "${ac_cv_path_M4+set}" = set; then | |
2407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 2408 | else |
18569462 AD |
2409 | case $M4 in |
2410 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
2411 | ac_cv_path_M4="$M4" # Let the user override the test with a path. |
2412 | ;; | |
705db0b5 | 2413 | *) |
5141b016 | 2414 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
2415 | ac_dummy="$PATH" |
2416 | for ac_dir in $ac_dummy; do | |
2417 | IFS=$ac_save_IFS | |
2418 | test -z "$ac_dir" && ac_dir=. | |
2419 | if $as_executable_p "$ac_dir/$ac_word"; then | |
2420 | ac_cv_path_M4="$ac_dir/$ac_word" | |
1e24cc5b | 2421 | echo "$as_me:2421: found $ac_dir/$ac_word" >&5 |
18569462 AD |
2422 | break |
2423 | fi | |
2424 | done | |
2425 | ||
705db0b5 AD |
2426 | ;; |
2427 | esac | |
2428 | fi | |
18569462 AD |
2429 | M4=$ac_cv_path_M4 |
2430 | ||
705db0b5 | 2431 | if test -n "$M4"; then |
1e24cc5b | 2432 | echo "$as_me:2432: result: $M4" >&5 |
18569462 | 2433 | echo "${ECHO_T}$M4" >&6 |
705db0b5 | 2434 | else |
1e24cc5b | 2435 | echo "$as_me:2435: result: no" >&5 |
18569462 | 2436 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
2437 | fi |
2438 | ||
18569462 | 2439 | test -n "$M4" && break |
705db0b5 AD |
2440 | done |
2441 | test -n "$M4" || M4="m4" | |
2442 | ||
1e24cc5b | 2443 | echo "$as_me:2443: checking whether m4 supports frozen files" >&5 |
18569462 AD |
2444 | echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6 |
2445 | if test "${ac_cv_prog_gnu_m4+set}" = set; then | |
2446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
2447 | else |
2448 | ac_cv_prog_gnu_m4=no | |
2449 | if test x"$M4" != x; then | |
2450 | case `$M4 --help < /dev/null 2>&1` in | |
2451 | *reload-state*) ac_cv_prog_gnu_m4=yes ;; | |
2452 | esac | |
2453 | fi | |
2454 | fi | |
1e24cc5b | 2455 | echo "$as_me:2455: result: $ac_cv_prog_gnu_m4" >&5 |
18569462 | 2456 | echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6 |
1e24cc5b | 2457 | |
705db0b5 AD |
2458 | if test "$ac_cv_prog_gnu_m4" != yes; then |
2459 | missing_dir=`cd $ac_aux_dir && pwd` | |
2460 | M4="$missing_dir/missing m4" | |
2461 | fi | |
2462 | ||
2463 | # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given. | |
2464 | if test "${enable_gcc_warnings+set}" = set; then | |
2465 | enableval="$enable_gcc_warnings" | |
2466 | case "${enableval}" in | |
2467 | yes|no) ;; | |
1e24cc5b | 2468 | *) { { echo "$as_me:2468: error: bad value ${enableval} for gcc-warnings option" >&5 |
18569462 AD |
2469 | echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;} |
2470 | { (exit 1); exit 1; }; } ;; | |
705db0b5 | 2471 | esac |
705db0b5 AD |
2472 | else |
2473 | enableval=no | |
18569462 | 2474 | fi; |
705db0b5 | 2475 | if test "${enableval}" = yes; then |
1e24cc5b | 2476 | echo "$as_me:2476: checking whether compiler accepts -Wall" >&5 |
18569462 | 2477 | echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6 |
705db0b5 AD |
2478 | |
2479 | ac_save_CFLAGS="$CFLAGS" | |
2480 | CFLAGS="$CFLAGS -Wall" | |
18569462 | 2481 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2482 | #line 2482 "configure" |
705db0b5 AD |
2483 | #include "confdefs.h" |
2484 | ||
18569462 AD |
2485 | int |
2486 | main () | |
2487 | { | |
705db0b5 | 2488 | int x; |
18569462 AD |
2489 | ; |
2490 | return 0; | |
2491 | } | |
2492 | _ACEOF | |
2493 | rm -f conftest.$ac_objext | |
1e24cc5b | 2494 | if { (eval echo "$as_me:2494: \"$ac_compile\"") >&5 |
18569462 AD |
2495 | (eval $ac_compile) 2>&5 |
2496 | ac_status=$? | |
1e24cc5b | 2497 | echo "$as_me:2497: \$? = $ac_status" >&5 |
18569462 | 2498 | (exit $ac_status); } && |
5141b016 | 2499 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 2500 | { (eval echo "$as_me:2500: \"$ac_try\"") >&5 |
18569462 AD |
2501 | (eval $ac_try) 2>&5 |
2502 | ac_status=$? | |
1e24cc5b | 2503 | echo "$as_me:2503: \$? = $ac_status" >&5 |
18569462 | 2504 | (exit $ac_status); }; }; then |
705db0b5 | 2505 | WARNING_CFLAGS="$WARNING_CFLAGS -Wall" |
1e24cc5b | 2506 | echo "$as_me:2506: result: yes" >&5 |
18569462 | 2507 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2508 | else |
18569462 AD |
2509 | echo "$as_me: failed program was:" >&5 |
2510 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 2511 | echo "$as_me:2511: result: no" >&5 |
18569462 | 2512 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2513 | fi |
18569462 | 2514 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2515 | CFLAGS="$ac_save_CFLAGS" |
1e24cc5b | 2516 | echo "$as_me:2516: checking whether compiler accepts -W" >&5 |
18569462 | 2517 | echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6 |
705db0b5 AD |
2518 | |
2519 | ac_save_CFLAGS="$CFLAGS" | |
2520 | CFLAGS="$CFLAGS -W" | |
18569462 | 2521 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2522 | #line 2522 "configure" |
705db0b5 AD |
2523 | #include "confdefs.h" |
2524 | ||
18569462 AD |
2525 | int |
2526 | main () | |
2527 | { | |
705db0b5 | 2528 | int x; |
18569462 AD |
2529 | ; |
2530 | return 0; | |
2531 | } | |
2532 | _ACEOF | |
2533 | rm -f conftest.$ac_objext | |
1e24cc5b | 2534 | if { (eval echo "$as_me:2534: \"$ac_compile\"") >&5 |
18569462 AD |
2535 | (eval $ac_compile) 2>&5 |
2536 | ac_status=$? | |
1e24cc5b | 2537 | echo "$as_me:2537: \$? = $ac_status" >&5 |
18569462 | 2538 | (exit $ac_status); } && |
5141b016 | 2539 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 2540 | { (eval echo "$as_me:2540: \"$ac_try\"") >&5 |
18569462 AD |
2541 | (eval $ac_try) 2>&5 |
2542 | ac_status=$? | |
1e24cc5b | 2543 | echo "$as_me:2543: \$? = $ac_status" >&5 |
18569462 | 2544 | (exit $ac_status); }; }; then |
705db0b5 | 2545 | WARNING_CFLAGS="$WARNING_CFLAGS -W" |
1e24cc5b | 2546 | echo "$as_me:2546: result: yes" >&5 |
18569462 | 2547 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2548 | else |
18569462 AD |
2549 | echo "$as_me: failed program was:" >&5 |
2550 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 2551 | echo "$as_me:2551: result: no" >&5 |
18569462 | 2552 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2553 | fi |
18569462 | 2554 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2555 | CFLAGS="$ac_save_CFLAGS" |
1e24cc5b | 2556 | echo "$as_me:2556: checking whether compiler accepts -Wbad-function-cast" >&5 |
18569462 | 2557 | echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6 |
705db0b5 AD |
2558 | |
2559 | ac_save_CFLAGS="$CFLAGS" | |
2560 | CFLAGS="$CFLAGS -Wbad-function-cast" | |
18569462 | 2561 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2562 | #line 2562 "configure" |
705db0b5 AD |
2563 | #include "confdefs.h" |
2564 | ||
18569462 AD |
2565 | int |
2566 | main () | |
2567 | { | |
705db0b5 | 2568 | int x; |
18569462 AD |
2569 | ; |
2570 | return 0; | |
2571 | } | |
2572 | _ACEOF | |
2573 | rm -f conftest.$ac_objext | |
1e24cc5b | 2574 | if { (eval echo "$as_me:2574: \"$ac_compile\"") >&5 |
18569462 AD |
2575 | (eval $ac_compile) 2>&5 |
2576 | ac_status=$? | |
1e24cc5b | 2577 | echo "$as_me:2577: \$? = $ac_status" >&5 |
18569462 | 2578 | (exit $ac_status); } && |
5141b016 | 2579 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 2580 | { (eval echo "$as_me:2580: \"$ac_try\"") >&5 |
18569462 AD |
2581 | (eval $ac_try) 2>&5 |
2582 | ac_status=$? | |
1e24cc5b | 2583 | echo "$as_me:2583: \$? = $ac_status" >&5 |
18569462 | 2584 | (exit $ac_status); }; }; then |
705db0b5 | 2585 | WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast" |
1e24cc5b | 2586 | echo "$as_me:2586: result: yes" >&5 |
18569462 | 2587 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2588 | else |
18569462 AD |
2589 | echo "$as_me: failed program was:" >&5 |
2590 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 2591 | echo "$as_me:2591: result: no" >&5 |
18569462 | 2592 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2593 | fi |
18569462 | 2594 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2595 | CFLAGS="$ac_save_CFLAGS" |
1e24cc5b | 2596 | echo "$as_me:2596: checking whether compiler accepts -Wcast-align" >&5 |
18569462 | 2597 | echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6 |
705db0b5 AD |
2598 | |
2599 | ac_save_CFLAGS="$CFLAGS" | |
2600 | CFLAGS="$CFLAGS -Wcast-align" | |
18569462 | 2601 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2602 | #line 2602 "configure" |
705db0b5 AD |
2603 | #include "confdefs.h" |
2604 | ||
18569462 AD |
2605 | int |
2606 | main () | |
2607 | { | |
705db0b5 | 2608 | int x; |
18569462 AD |
2609 | ; |
2610 | return 0; | |
2611 | } | |
2612 | _ACEOF | |
2613 | rm -f conftest.$ac_objext | |
1e24cc5b | 2614 | if { (eval echo "$as_me:2614: \"$ac_compile\"") >&5 |
18569462 AD |
2615 | (eval $ac_compile) 2>&5 |
2616 | ac_status=$? | |
1e24cc5b | 2617 | echo "$as_me:2617: \$? = $ac_status" >&5 |
18569462 | 2618 | (exit $ac_status); } && |
5141b016 | 2619 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 2620 | { (eval echo "$as_me:2620: \"$ac_try\"") >&5 |
18569462 AD |
2621 | (eval $ac_try) 2>&5 |
2622 | ac_status=$? | |
1e24cc5b | 2623 | echo "$as_me:2623: \$? = $ac_status" >&5 |
18569462 | 2624 | (exit $ac_status); }; }; then |
705db0b5 | 2625 | WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align" |
1e24cc5b | 2626 | echo "$as_me:2626: result: yes" >&5 |
18569462 | 2627 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2628 | else |
18569462 AD |
2629 | echo "$as_me: failed program was:" >&5 |
2630 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 2631 | echo "$as_me:2631: result: no" >&5 |
18569462 | 2632 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2633 | fi |
18569462 | 2634 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2635 | CFLAGS="$ac_save_CFLAGS" |
1e24cc5b | 2636 | echo "$as_me:2636: checking whether compiler accepts -Wcast-qual" >&5 |
18569462 | 2637 | echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6 |
705db0b5 AD |
2638 | |
2639 | ac_save_CFLAGS="$CFLAGS" | |
2640 | CFLAGS="$CFLAGS -Wcast-qual" | |
18569462 | 2641 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2642 | #line 2642 "configure" |
705db0b5 AD |
2643 | #include "confdefs.h" |
2644 | ||
18569462 AD |
2645 | int |
2646 | main () | |
2647 | { | |
705db0b5 | 2648 | int x; |
18569462 AD |
2649 | ; |
2650 | return 0; | |
2651 | } | |
2652 | _ACEOF | |
2653 | rm -f conftest.$ac_objext | |
1e24cc5b | 2654 | if { (eval echo "$as_me:2654: \"$ac_compile\"") >&5 |
18569462 AD |
2655 | (eval $ac_compile) 2>&5 |
2656 | ac_status=$? | |
1e24cc5b | 2657 | echo "$as_me:2657: \$? = $ac_status" >&5 |
18569462 | 2658 | (exit $ac_status); } && |
5141b016 | 2659 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 2660 | { (eval echo "$as_me:2660: \"$ac_try\"") >&5 |
18569462 AD |
2661 | (eval $ac_try) 2>&5 |
2662 | ac_status=$? | |
1e24cc5b | 2663 | echo "$as_me:2663: \$? = $ac_status" >&5 |
18569462 | 2664 | (exit $ac_status); }; }; then |
705db0b5 | 2665 | WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual" |
1e24cc5b | 2666 | echo "$as_me:2666: result: yes" >&5 |
18569462 | 2667 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2668 | else |
18569462 AD |
2669 | echo "$as_me: failed program was:" >&5 |
2670 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 2671 | echo "$as_me:2671: result: no" >&5 |
18569462 | 2672 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2673 | fi |
18569462 | 2674 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2675 | CFLAGS="$ac_save_CFLAGS" |
1e24cc5b | 2676 | echo "$as_me:2676: checking whether compiler accepts -Wmissing-declarations" >&5 |
18569462 | 2677 | echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6 |
705db0b5 AD |
2678 | |
2679 | ac_save_CFLAGS="$CFLAGS" | |
2680 | CFLAGS="$CFLAGS -Wmissing-declarations" | |
18569462 | 2681 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2682 | #line 2682 "configure" |
705db0b5 AD |
2683 | #include "confdefs.h" |
2684 | ||
18569462 AD |
2685 | int |
2686 | main () | |
2687 | { | |
705db0b5 | 2688 | int x; |
18569462 AD |
2689 | ; |
2690 | return 0; | |
2691 | } | |
2692 | _ACEOF | |
2693 | rm -f conftest.$ac_objext | |
1e24cc5b | 2694 | if { (eval echo "$as_me:2694: \"$ac_compile\"") >&5 |
18569462 AD |
2695 | (eval $ac_compile) 2>&5 |
2696 | ac_status=$? | |
1e24cc5b | 2697 | echo "$as_me:2697: \$? = $ac_status" >&5 |
18569462 | 2698 | (exit $ac_status); } && |
5141b016 | 2699 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 2700 | { (eval echo "$as_me:2700: \"$ac_try\"") >&5 |
18569462 AD |
2701 | (eval $ac_try) 2>&5 |
2702 | ac_status=$? | |
1e24cc5b | 2703 | echo "$as_me:2703: \$? = $ac_status" >&5 |
18569462 | 2704 | (exit $ac_status); }; }; then |
705db0b5 | 2705 | WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations" |
1e24cc5b | 2706 | echo "$as_me:2706: result: yes" >&5 |
18569462 | 2707 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2708 | else |
18569462 AD |
2709 | echo "$as_me: failed program was:" >&5 |
2710 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 2711 | echo "$as_me:2711: result: no" >&5 |
18569462 | 2712 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2713 | fi |
18569462 | 2714 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2715 | CFLAGS="$ac_save_CFLAGS" |
1e24cc5b | 2716 | echo "$as_me:2716: checking whether compiler accepts -Wmissing-prototypes" >&5 |
18569462 | 2717 | echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6 |
705db0b5 AD |
2718 | |
2719 | ac_save_CFLAGS="$CFLAGS" | |
2720 | CFLAGS="$CFLAGS -Wmissing-prototypes" | |
18569462 | 2721 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2722 | #line 2722 "configure" |
705db0b5 AD |
2723 | #include "confdefs.h" |
2724 | ||
18569462 AD |
2725 | int |
2726 | main () | |
2727 | { | |
705db0b5 | 2728 | int x; |
18569462 AD |
2729 | ; |
2730 | return 0; | |
2731 | } | |
2732 | _ACEOF | |
2733 | rm -f conftest.$ac_objext | |
1e24cc5b | 2734 | if { (eval echo "$as_me:2734: \"$ac_compile\"") >&5 |
18569462 AD |
2735 | (eval $ac_compile) 2>&5 |
2736 | ac_status=$? | |
1e24cc5b | 2737 | echo "$as_me:2737: \$? = $ac_status" >&5 |
18569462 | 2738 | (exit $ac_status); } && |
5141b016 | 2739 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 2740 | { (eval echo "$as_me:2740: \"$ac_try\"") >&5 |
18569462 AD |
2741 | (eval $ac_try) 2>&5 |
2742 | ac_status=$? | |
1e24cc5b | 2743 | echo "$as_me:2743: \$? = $ac_status" >&5 |
18569462 | 2744 | (exit $ac_status); }; }; then |
705db0b5 | 2745 | WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes" |
1e24cc5b | 2746 | echo "$as_me:2746: result: yes" >&5 |
18569462 | 2747 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2748 | else |
18569462 AD |
2749 | echo "$as_me: failed program was:" >&5 |
2750 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 2751 | echo "$as_me:2751: result: no" >&5 |
18569462 | 2752 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2753 | fi |
18569462 | 2754 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2755 | CFLAGS="$ac_save_CFLAGS" |
1e24cc5b | 2756 | echo "$as_me:2756: checking whether compiler accepts -Wnested-externs" >&5 |
18569462 | 2757 | echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6 |
705db0b5 AD |
2758 | |
2759 | ac_save_CFLAGS="$CFLAGS" | |
2760 | CFLAGS="$CFLAGS -Wnested-externs" | |
18569462 | 2761 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2762 | #line 2762 "configure" |
705db0b5 AD |
2763 | #include "confdefs.h" |
2764 | ||
18569462 AD |
2765 | int |
2766 | main () | |
2767 | { | |
705db0b5 | 2768 | int x; |
18569462 AD |
2769 | ; |
2770 | return 0; | |
2771 | } | |
2772 | _ACEOF | |
2773 | rm -f conftest.$ac_objext | |
1e24cc5b | 2774 | if { (eval echo "$as_me:2774: \"$ac_compile\"") >&5 |
18569462 AD |
2775 | (eval $ac_compile) 2>&5 |
2776 | ac_status=$? | |
1e24cc5b | 2777 | echo "$as_me:2777: \$? = $ac_status" >&5 |
18569462 | 2778 | (exit $ac_status); } && |
5141b016 | 2779 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 2780 | { (eval echo "$as_me:2780: \"$ac_try\"") >&5 |
18569462 AD |
2781 | (eval $ac_try) 2>&5 |
2782 | ac_status=$? | |
1e24cc5b | 2783 | echo "$as_me:2783: \$? = $ac_status" >&5 |
18569462 | 2784 | (exit $ac_status); }; }; then |
705db0b5 | 2785 | WARNING_CFLAGS="$WARNING_CFLAGS -Wnested-externs" |
1e24cc5b | 2786 | echo "$as_me:2786: result: yes" >&5 |
18569462 | 2787 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2788 | else |
18569462 AD |
2789 | echo "$as_me: failed program was:" >&5 |
2790 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 2791 | echo "$as_me:2791: result: no" >&5 |
18569462 | 2792 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2793 | fi |
18569462 | 2794 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2795 | CFLAGS="$ac_save_CFLAGS" |
1e24cc5b | 2796 | echo "$as_me:2796: checking whether compiler accepts -Wshadow" >&5 |
18569462 | 2797 | echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6 |
705db0b5 AD |
2798 | |
2799 | ac_save_CFLAGS="$CFLAGS" | |
2800 | CFLAGS="$CFLAGS -Wshadow" | |
18569462 | 2801 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2802 | #line 2802 "configure" |
705db0b5 AD |
2803 | #include "confdefs.h" |
2804 | ||
18569462 AD |
2805 | int |
2806 | main () | |
2807 | { | |
705db0b5 | 2808 | int x; |
18569462 AD |
2809 | ; |
2810 | return 0; | |
2811 | } | |
2812 | _ACEOF | |
2813 | rm -f conftest.$ac_objext | |
1e24cc5b | 2814 | if { (eval echo "$as_me:2814: \"$ac_compile\"") >&5 |
18569462 AD |
2815 | (eval $ac_compile) 2>&5 |
2816 | ac_status=$? | |
1e24cc5b | 2817 | echo "$as_me:2817: \$? = $ac_status" >&5 |
18569462 | 2818 | (exit $ac_status); } && |
5141b016 | 2819 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 2820 | { (eval echo "$as_me:2820: \"$ac_try\"") >&5 |
18569462 AD |
2821 | (eval $ac_try) 2>&5 |
2822 | ac_status=$? | |
1e24cc5b | 2823 | echo "$as_me:2823: \$? = $ac_status" >&5 |
18569462 | 2824 | (exit $ac_status); }; }; then |
705db0b5 | 2825 | WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow" |
1e24cc5b | 2826 | echo "$as_me:2826: result: yes" >&5 |
18569462 | 2827 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2828 | else |
18569462 AD |
2829 | echo "$as_me: failed program was:" >&5 |
2830 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 2831 | echo "$as_me:2831: result: no" >&5 |
18569462 | 2832 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2833 | fi |
18569462 | 2834 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2835 | CFLAGS="$ac_save_CFLAGS" |
1e24cc5b | 2836 | echo "$as_me:2836: checking whether compiler accepts -Wstrict-prototypes" >&5 |
18569462 | 2837 | echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6 |
705db0b5 AD |
2838 | |
2839 | ac_save_CFLAGS="$CFLAGS" | |
2840 | CFLAGS="$CFLAGS -Wstrict-prototypes" | |
18569462 | 2841 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2842 | #line 2842 "configure" |
705db0b5 AD |
2843 | #include "confdefs.h" |
2844 | ||
18569462 AD |
2845 | int |
2846 | main () | |
2847 | { | |
705db0b5 | 2848 | int x; |
18569462 AD |
2849 | ; |
2850 | return 0; | |
2851 | } | |
2852 | _ACEOF | |
2853 | rm -f conftest.$ac_objext | |
1e24cc5b | 2854 | if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5 |
18569462 AD |
2855 | (eval $ac_compile) 2>&5 |
2856 | ac_status=$? | |
1e24cc5b | 2857 | echo "$as_me:2857: \$? = $ac_status" >&5 |
18569462 | 2858 | (exit $ac_status); } && |
5141b016 | 2859 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 2860 | { (eval echo "$as_me:2860: \"$ac_try\"") >&5 |
18569462 AD |
2861 | (eval $ac_try) 2>&5 |
2862 | ac_status=$? | |
1e24cc5b | 2863 | echo "$as_me:2863: \$? = $ac_status" >&5 |
18569462 | 2864 | (exit $ac_status); }; }; then |
705db0b5 | 2865 | WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes" |
1e24cc5b | 2866 | echo "$as_me:2866: result: yes" >&5 |
18569462 | 2867 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2868 | else |
18569462 AD |
2869 | echo "$as_me: failed program was:" >&5 |
2870 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 2871 | echo "$as_me:2871: result: no" >&5 |
18569462 | 2872 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2873 | fi |
18569462 | 2874 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2875 | CFLAGS="$ac_save_CFLAGS" |
1e24cc5b | 2876 | echo "$as_me:2876: checking whether compiler accepts -Wwrite-strings" >&5 |
18569462 | 2877 | echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6 |
705db0b5 AD |
2878 | |
2879 | ac_save_CFLAGS="$CFLAGS" | |
2880 | CFLAGS="$CFLAGS -Wwrite-strings" | |
18569462 | 2881 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2882 | #line 2882 "configure" |
705db0b5 AD |
2883 | #include "confdefs.h" |
2884 | ||
18569462 AD |
2885 | int |
2886 | main () | |
2887 | { | |
705db0b5 | 2888 | int x; |
18569462 AD |
2889 | ; |
2890 | return 0; | |
2891 | } | |
2892 | _ACEOF | |
2893 | rm -f conftest.$ac_objext | |
1e24cc5b | 2894 | if { (eval echo "$as_me:2894: \"$ac_compile\"") >&5 |
18569462 AD |
2895 | (eval $ac_compile) 2>&5 |
2896 | ac_status=$? | |
1e24cc5b | 2897 | echo "$as_me:2897: \$? = $ac_status" >&5 |
18569462 | 2898 | (exit $ac_status); } && |
5141b016 | 2899 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 2900 | { (eval echo "$as_me:2900: \"$ac_try\"") >&5 |
18569462 AD |
2901 | (eval $ac_try) 2>&5 |
2902 | ac_status=$? | |
1e24cc5b | 2903 | echo "$as_me:2903: \$? = $ac_status" >&5 |
18569462 | 2904 | (exit $ac_status); }; }; then |
705db0b5 | 2905 | WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings" |
1e24cc5b | 2906 | echo "$as_me:2906: result: yes" >&5 |
18569462 | 2907 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2908 | else |
18569462 AD |
2909 | echo "$as_me: failed program was:" >&5 |
2910 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 2911 | echo "$as_me:2911: result: no" >&5 |
18569462 | 2912 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2913 | fi |
18569462 | 2914 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
2915 | CFLAGS="$ac_save_CFLAGS" |
2916 | CFLAGS="$CFLAGS $WARNING_CFLAGS" | |
2917 | fi | |
2918 | ||
2919 | # Checks for libraries. | |
18569462 AD |
2920 | |
2921 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
2922 | #define _GNU_SOURCE 1 |
2923 | EOF | |
2924 | ||
705db0b5 | 2925 | # Checks for header files. |
1e24cc5b | 2926 | echo "$as_me:2926: checking for ANSI C header files" >&5 |
18569462 AD |
2927 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
2928 | if test "${ac_cv_header_stdc+set}" = set; then | |
2929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 2930 | else |
18569462 | 2931 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2932 | #line 2932 "configure" |
705db0b5 AD |
2933 | #include "confdefs.h" |
2934 | #include <stdlib.h> | |
2935 | #include <stdarg.h> | |
2936 | #include <string.h> | |
2937 | #include <float.h> | |
18569462 AD |
2938 | |
2939 | _ACEOF | |
1e24cc5b AD |
2940 | if { (eval echo "$as_me:2940: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2941 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
2942 | ac_status=$? |
2943 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2944 | rm -f conftest.er1 | |
2945 | cat conftest.err >&5 | |
1e24cc5b AD |
2946 | echo "$as_me:2946: \$? = $ac_status" >&5 |
2947 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
2948 | if test -s conftest.err; then |
2949 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2950 | else | |
2951 | ac_cpp_err= | |
2952 | fi | |
2953 | else | |
2954 | ac_cpp_err=yes | |
2955 | fi | |
2956 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
2957 | ac_cv_header_stdc=yes |
2958 | else | |
18569462 | 2959 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 2960 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
2961 | ac_cv_header_stdc=no |
2962 | fi | |
18569462 | 2963 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
2964 | |
2965 | if test $ac_cv_header_stdc = yes; then | |
2966 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 2967 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2968 | #line 2968 "configure" |
705db0b5 AD |
2969 | #include "confdefs.h" |
2970 | #include <string.h> | |
18569462 AD |
2971 | |
2972 | _ACEOF | |
705db0b5 AD |
2973 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2974 | egrep "memchr" >/dev/null 2>&1; then | |
2975 | : | |
2976 | else | |
705db0b5 AD |
2977 | ac_cv_header_stdc=no |
2978 | fi | |
2979 | rm -f conftest* | |
2980 | ||
2981 | fi | |
2982 | ||
2983 | if test $ac_cv_header_stdc = yes; then | |
2984 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 2985 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 2986 | #line 2986 "configure" |
705db0b5 AD |
2987 | #include "confdefs.h" |
2988 | #include <stdlib.h> | |
18569462 AD |
2989 | |
2990 | _ACEOF | |
705db0b5 AD |
2991 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2992 | egrep "free" >/dev/null 2>&1; then | |
2993 | : | |
2994 | else | |
705db0b5 AD |
2995 | ac_cv_header_stdc=no |
2996 | fi | |
2997 | rm -f conftest* | |
2998 | ||
2999 | fi | |
3000 | ||
3001 | if test $ac_cv_header_stdc = yes; then | |
3002 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 3003 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
3004 | : |
3005 | else | |
18569462 | 3006 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 3007 | #line 3007 "configure" |
705db0b5 AD |
3008 | #include "confdefs.h" |
3009 | #include <ctype.h> | |
18569462 AD |
3010 | #if ((' ' & 0x0FF) == 0x020) |
3011 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3012 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3013 | #else | |
3014 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
3015 | || ('j' <= (c) && (c) <= 'r') \ | |
3016 | || ('s' <= (c) && (c) <= 'z')) | |
3017 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3018 | #endif | |
705db0b5 | 3019 | |
18569462 AD |
3020 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3021 | int | |
3022 | main () | |
3023 | { | |
3024 | int i; | |
3025 | for (i = 0; i < 256; i++) | |
3026 | if (XOR (islower (i), ISLOWER (i)) | |
3027 | || toupper (i) != TOUPPER (i)) | |
3028 | exit(2); | |
3029 | exit (0); | |
3030 | } | |
3031 | _ACEOF | |
3032 | rm -f conftest$ac_exeext | |
1e24cc5b | 3033 | if { (eval echo "$as_me:3033: \"$ac_link\"") >&5 |
18569462 AD |
3034 | (eval $ac_link) 2>&5 |
3035 | ac_status=$? | |
1e24cc5b | 3036 | echo "$as_me:3036: \$? = $ac_status" >&5 |
5141b016 | 3037 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
1e24cc5b | 3038 | { (eval echo "$as_me:3038: \"$ac_try\"") >&5 |
18569462 AD |
3039 | (eval $ac_try) 2>&5 |
3040 | ac_status=$? | |
1e24cc5b | 3041 | echo "$as_me:3041: \$? = $ac_status" >&5 |
18569462 | 3042 | (exit $ac_status); }; }; then |
705db0b5 AD |
3043 | : |
3044 | else | |
18569462 AD |
3045 | echo "$as_me: program exited with status $ac_status" >&5 |
3046 | echo "$as_me: failed program was:" >&5 | |
3047 | cat conftest.$ac_ext >&5 | |
3048 | ac_cv_header_stdc=no | |
705db0b5 | 3049 | fi |
1e24cc5b | 3050 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 3051 | fi |
705db0b5 AD |
3052 | fi |
3053 | fi | |
1e24cc5b | 3054 | echo "$as_me:3054: result: $ac_cv_header_stdc" >&5 |
18569462 | 3055 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 3056 | if test $ac_cv_header_stdc = yes; then |
18569462 AD |
3057 | |
3058 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3059 | #define STDC_HEADERS 1 |
3060 | EOF | |
3061 | ||
3062 | fi | |
3063 | ||
18569462 | 3064 | for ac_header in ctype.h locale.h memory.h stdlib.h string.h unistd.h |
705db0b5 | 3065 | do |
18569462 | 3066 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
1e24cc5b | 3067 | echo "$as_me:3067: checking for $ac_header" >&5 |
18569462 AD |
3068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3069 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
3070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3071 | else | |
3072 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 3073 | #line 3073 "configure" |
705db0b5 | 3074 | #include "confdefs.h" |
18569462 AD |
3075 | #include <$ac_header> |
3076 | _ACEOF | |
1e24cc5b AD |
3077 | if { (eval echo "$as_me:3077: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3078 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
3079 | ac_status=$? |
3080 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3081 | rm -f conftest.er1 | |
3082 | cat conftest.err >&5 | |
1e24cc5b AD |
3083 | echo "$as_me:3083: \$? = $ac_status" >&5 |
3084 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
3085 | if test -s conftest.err; then |
3086 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3087 | else | |
3088 | ac_cpp_err= | |
3089 | fi | |
3090 | else | |
3091 | ac_cpp_err=yes | |
3092 | fi | |
3093 | if test -z "$ac_cpp_err"; then | |
3094 | eval "$ac_ac_Header=yes" | |
3095 | else | |
3096 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 3097 | cat conftest.$ac_ext >&5 |
18569462 | 3098 | eval "$ac_ac_Header=no" |
705db0b5 | 3099 | fi |
18569462 | 3100 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 3101 | fi |
1e24cc5b | 3102 | echo "$as_me:3102: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
3103 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
3104 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
3105 | cat >>confdefs.h <<EOF | |
3106 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 3107 | EOF |
18569462 | 3108 | |
705db0b5 AD |
3109 | fi |
3110 | done | |
3111 | ||
705db0b5 AD |
3112 | # Checks for typedefs. |
3113 | ||
3114 | # Checks for structures. | |
3115 | ||
3116 | # Checks for compiler characteristics. | |
1e24cc5b | 3117 | echo "$as_me:3117: checking for $CC option to accept ANSI C" >&5 |
18569462 AD |
3118 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
3119 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3121 | else | |
3122 | ac_cv_prog_cc_stdc=no | |
3123 | ac_save_CC=$CC | |
3124 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 3125 | #line 3125 "configure" |
705db0b5 | 3126 | #include "confdefs.h" |
18569462 AD |
3127 | #include <stdarg.h> |
3128 | #include <stdio.h> | |
3129 | #include <sys/types.h> | |
3130 | #include <sys/stat.h> | |
3131 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3132 | struct buf { int x; }; | |
3133 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3134 | static char *e (p, i) | |
3135 | char **p; | |
3136 | int i; | |
3137 | { | |
3138 | return p[i]; | |
705db0b5 | 3139 | } |
18569462 AD |
3140 | static char *f (char * (*g) (char **, int), char **p, ...) |
3141 | { | |
3142 | char *s; | |
3143 | va_list v; | |
3144 | va_start (v,p); | |
3145 | s = g (p, va_arg (v,int)); | |
3146 | va_end (v); | |
3147 | return s; | |
705db0b5 | 3148 | } |
18569462 AD |
3149 | int test (int i, double x); |
3150 | struct s1 {int (*f) (int a);}; | |
3151 | struct s2 {int (*f) (double a);}; | |
3152 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3153 | int argc; | |
3154 | char **argv; | |
3155 | int | |
3156 | main () | |
3157 | { | |
3158 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3159 | ; | |
3160 | return 0; | |
705db0b5 | 3161 | } |
18569462 AD |
3162 | _ACEOF |
3163 | # Don't try gcc -ansi; that turns off useful extensions and | |
3164 | # breaks some systems' header files. | |
3165 | # AIX -qlanglvl=ansi | |
3166 | # Ultrix and OSF/1 -std1 | |
3167 | # HP-UX 10.20 and later -Ae | |
3168 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3169 | # SVR4 -Xc -D__EXTENSIONS__ | |
3170 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3171 | do | |
3172 | CC="$ac_save_CC $ac_arg" | |
3173 | rm -f conftest.$ac_objext | |
1e24cc5b | 3174 | if { (eval echo "$as_me:3174: \"$ac_compile\"") >&5 |
18569462 AD |
3175 | (eval $ac_compile) 2>&5 |
3176 | ac_status=$? | |
1e24cc5b | 3177 | echo "$as_me:3177: \$? = $ac_status" >&5 |
18569462 | 3178 | (exit $ac_status); } && |
5141b016 | 3179 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 3180 | { (eval echo "$as_me:3180: \"$ac_try\"") >&5 |
18569462 AD |
3181 | (eval $ac_try) 2>&5 |
3182 | ac_status=$? | |
1e24cc5b | 3183 | echo "$as_me:3183: \$? = $ac_status" >&5 |
18569462 AD |
3184 | (exit $ac_status); }; }; then |
3185 | ac_cv_prog_cc_stdc=$ac_arg | |
3186 | break | |
3187 | else | |
3188 | echo "$as_me: failed program was:" >&5 | |
3189 | cat conftest.$ac_ext >&5 | |
3190 | fi | |
3191 | rm -f conftest.$ac_objext | |
3192 | done | |
3193 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3194 | CC=$ac_save_CC | |
705db0b5 | 3195 | |
18569462 AD |
3196 | fi |
3197 | ||
3198 | case "x$ac_cv_prog_cc_stdc" in | |
3199 | x|xno) | |
1e24cc5b | 3200 | echo "$as_me:3200: result: none needed" >&5 |
18569462 AD |
3201 | echo "${ECHO_T}none needed" >&6 ;; |
3202 | *) | |
1e24cc5b | 3203 | echo "$as_me:3203: result: $ac_cv_prog_cc_stdc" >&5 |
18569462 AD |
3204 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
3205 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3206 | esac | |
3207 | ||
1e24cc5b | 3208 | echo "$as_me:3208: checking for an ANSI C-conforming const" >&5 |
18569462 AD |
3209 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
3210 | if test "${ac_cv_c_const+set}" = set; then | |
3211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3212 | else | |
3213 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 3214 | #line 3214 "configure" |
18569462 AD |
3215 | #include "confdefs.h" |
3216 | ||
3217 | int | |
3218 | main () | |
3219 | { | |
3220 | /* FIXME: Include the comments suggested by Paul. */ | |
3221 | #ifndef __cplusplus | |
3222 | /* Ultrix mips cc rejects this. */ | |
3223 | typedef int charset[2]; | |
3224 | const charset x; | |
3225 | /* SunOS 4.1.1 cc rejects this. */ | |
3226 | char const *const *ccp; | |
3227 | char **p; | |
3228 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3229 | struct point {int x, y;}; | |
3230 | static struct point const zero = {0,0}; | |
3231 | /* AIX XL C 1.02.0.0 rejects this. | |
3232 | It does not let you subtract one const X* pointer from another in | |
3233 | an arm of an if-expression whose if-part is not a constant | |
3234 | expression */ | |
3235 | const char *g = "string"; | |
3236 | ccp = &g + (g ? g-g : 0); | |
3237 | /* HPUX 7.0 cc rejects these. */ | |
3238 | ++ccp; | |
3239 | p = (char**) ccp; | |
3240 | ccp = (char const *const *) p; | |
3241 | { /* SCO 3.2v4 cc rejects this. */ | |
3242 | char *t; | |
3243 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3244 | ||
3245 | *t++ = 0; | |
3246 | } | |
3247 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3248 | int x[] = {25, 17}; | |
3249 | const int *foo = &x[0]; | |
3250 | ++foo; | |
3251 | } | |
3252 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3253 | typedef const int *iptr; | |
3254 | iptr p = 0; | |
3255 | ++p; | |
3256 | } | |
3257 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3258 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3259 | struct s { int j; const int *ap[3]; }; | |
3260 | struct s *b; b->j = 5; | |
3261 | } | |
3262 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3263 | const int foo = 10; | |
3264 | } | |
3265 | #endif | |
3266 | ||
3267 | ; | |
3268 | return 0; | |
3269 | } | |
3270 | _ACEOF | |
3271 | rm -f conftest.$ac_objext | |
1e24cc5b | 3272 | if { (eval echo "$as_me:3272: \"$ac_compile\"") >&5 |
18569462 AD |
3273 | (eval $ac_compile) 2>&5 |
3274 | ac_status=$? | |
1e24cc5b | 3275 | echo "$as_me:3275: \$? = $ac_status" >&5 |
18569462 | 3276 | (exit $ac_status); } && |
5141b016 | 3277 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 3278 | { (eval echo "$as_me:3278: \"$ac_try\"") >&5 |
18569462 AD |
3279 | (eval $ac_try) 2>&5 |
3280 | ac_status=$? | |
1e24cc5b | 3281 | echo "$as_me:3281: \$? = $ac_status" >&5 |
18569462 | 3282 | (exit $ac_status); }; }; then |
705db0b5 AD |
3283 | ac_cv_c_const=yes |
3284 | else | |
18569462 AD |
3285 | echo "$as_me: failed program was:" >&5 |
3286 | cat conftest.$ac_ext >&5 | |
3287 | ac_cv_c_const=no | |
705db0b5 | 3288 | fi |
18569462 | 3289 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3290 | fi |
1e24cc5b | 3291 | echo "$as_me:3291: result: $ac_cv_c_const" >&5 |
18569462 | 3292 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
705db0b5 | 3293 | if test $ac_cv_c_const = no; then |
18569462 AD |
3294 | |
3295 | cat >>confdefs.h <<\EOF | |
3296 | #define const | |
705db0b5 AD |
3297 | EOF |
3298 | ||
3299 | fi | |
3300 | ||
1e24cc5b | 3301 | echo "$as_me:3301: checking for inline" >&5 |
18569462 AD |
3302 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
3303 | if test "${ac_cv_c_inline+set}" = set; then | |
3304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
3305 | else |
3306 | ac_cv_c_inline=no | |
3307 | for ac_kw in inline __inline__ __inline; do | |
18569462 | 3308 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 3309 | #line 3309 "configure" |
705db0b5 | 3310 | #include "confdefs.h" |
18569462 | 3311 | #ifndef __cplusplus |
5141b016 | 3312 | static $ac_kw int static_foo () {return 0; } |
18569462 AD |
3313 | $ac_kw int foo () {return 0; } |
3314 | #endif | |
705db0b5 | 3315 | |
18569462 AD |
3316 | _ACEOF |
3317 | rm -f conftest.$ac_objext | |
1e24cc5b | 3318 | if { (eval echo "$as_me:3318: \"$ac_compile\"") >&5 |
18569462 AD |
3319 | (eval $ac_compile) 2>&5 |
3320 | ac_status=$? | |
1e24cc5b | 3321 | echo "$as_me:3321: \$? = $ac_status" >&5 |
18569462 | 3322 | (exit $ac_status); } && |
5141b016 | 3323 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 3324 | { (eval echo "$as_me:3324: \"$ac_try\"") >&5 |
18569462 AD |
3325 | (eval $ac_try) 2>&5 |
3326 | ac_status=$? | |
1e24cc5b | 3327 | echo "$as_me:3327: \$? = $ac_status" >&5 |
18569462 | 3328 | (exit $ac_status); }; }; then |
705db0b5 AD |
3329 | ac_cv_c_inline=$ac_kw; break |
3330 | else | |
18569462 AD |
3331 | echo "$as_me: failed program was:" >&5 |
3332 | cat conftest.$ac_ext >&5 | |
705db0b5 | 3333 | fi |
18569462 | 3334 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
3335 | done |
3336 | ||
3337 | fi | |
1e24cc5b | 3338 | echo "$as_me:3338: result: $ac_cv_c_inline" >&5 |
18569462 AD |
3339 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
3340 | case $ac_cv_c_inline in | |
705db0b5 | 3341 | inline | yes) ;; |
18569462 AD |
3342 | no) |
3343 | cat >>confdefs.h <<\EOF | |
3344 | #define inline | |
705db0b5 AD |
3345 | EOF |
3346 | ;; | |
18569462 | 3347 | *) cat >>confdefs.h <<EOF |
705db0b5 AD |
3348 | #define inline $ac_cv_c_inline |
3349 | EOF | |
3350 | ;; | |
3351 | esac | |
3352 | ||
1e24cc5b | 3353 | echo "$as_me:3353: checking for function prototypes" >&5 |
18569462 | 3354 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
705db0b5 | 3355 | if test "$am_cv_prog_cc_stdc" != no; then |
1e24cc5b | 3356 | echo "$as_me:3356: result: yes" >&5 |
18569462 AD |
3357 | echo "${ECHO_T}yes" >&6 |
3358 | ||
3359 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3360 | #define PROTOTYPES 1 |
3361 | EOF | |
3362 | ||
3363 | U= ANSI2KNR= | |
3364 | else | |
1e24cc5b | 3365 | echo "$as_me:3365: result: no" >&5 |
18569462 | 3366 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
3367 | U=_ ANSI2KNR=./ansi2knr |
3368 | # Ensure some checks needed by ansi2knr itself. | |
1e24cc5b | 3369 | echo "$as_me:3369: checking for ANSI C header files" >&5 |
18569462 AD |
3370 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
3371 | if test "${ac_cv_header_stdc+set}" = set; then | |
3372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 3373 | else |
18569462 | 3374 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 3375 | #line 3375 "configure" |
705db0b5 AD |
3376 | #include "confdefs.h" |
3377 | #include <stdlib.h> | |
3378 | #include <stdarg.h> | |
3379 | #include <string.h> | |
3380 | #include <float.h> | |
18569462 AD |
3381 | |
3382 | _ACEOF | |
1e24cc5b AD |
3383 | if { (eval echo "$as_me:3383: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3384 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
3385 | ac_status=$? |
3386 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3387 | rm -f conftest.er1 | |
3388 | cat conftest.err >&5 | |
1e24cc5b AD |
3389 | echo "$as_me:3389: \$? = $ac_status" >&5 |
3390 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
3391 | if test -s conftest.err; then |
3392 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3393 | else | |
3394 | ac_cpp_err= | |
3395 | fi | |
3396 | else | |
3397 | ac_cpp_err=yes | |
3398 | fi | |
3399 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
3400 | ac_cv_header_stdc=yes |
3401 | else | |
18569462 | 3402 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 3403 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
3404 | ac_cv_header_stdc=no |
3405 | fi | |
18569462 | 3406 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
3407 | |
3408 | if test $ac_cv_header_stdc = yes; then | |
3409 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 3410 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 3411 | #line 3411 "configure" |
705db0b5 AD |
3412 | #include "confdefs.h" |
3413 | #include <string.h> | |
18569462 AD |
3414 | |
3415 | _ACEOF | |
705db0b5 AD |
3416 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3417 | egrep "memchr" >/dev/null 2>&1; then | |
3418 | : | |
3419 | else | |
705db0b5 AD |
3420 | ac_cv_header_stdc=no |
3421 | fi | |
3422 | rm -f conftest* | |
3423 | ||
3424 | fi | |
3425 | ||
3426 | if test $ac_cv_header_stdc = yes; then | |
3427 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 3428 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 3429 | #line 3429 "configure" |
705db0b5 AD |
3430 | #include "confdefs.h" |
3431 | #include <stdlib.h> | |
18569462 AD |
3432 | |
3433 | _ACEOF | |
705db0b5 AD |
3434 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3435 | egrep "free" >/dev/null 2>&1; then | |
3436 | : | |
3437 | else | |
705db0b5 AD |
3438 | ac_cv_header_stdc=no |
3439 | fi | |
3440 | rm -f conftest* | |
3441 | ||
3442 | fi | |
3443 | ||
3444 | if test $ac_cv_header_stdc = yes; then | |
3445 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 3446 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
3447 | : |
3448 | else | |
18569462 | 3449 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 3450 | #line 3450 "configure" |
705db0b5 AD |
3451 | #include "confdefs.h" |
3452 | #include <ctype.h> | |
18569462 AD |
3453 | #if ((' ' & 0x0FF) == 0x020) |
3454 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3455 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3456 | #else | |
3457 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
3458 | || ('j' <= (c) && (c) <= 'r') \ | |
3459 | || ('s' <= (c) && (c) <= 'z')) | |
3460 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3461 | #endif | |
705db0b5 | 3462 | |
18569462 AD |
3463 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3464 | int | |
3465 | main () | |
3466 | { | |
3467 | int i; | |
3468 | for (i = 0; i < 256; i++) | |
3469 | if (XOR (islower (i), ISLOWER (i)) | |
3470 | || toupper (i) != TOUPPER (i)) | |
3471 | exit(2); | |
3472 | exit (0); | |
3473 | } | |
3474 | _ACEOF | |
3475 | rm -f conftest$ac_exeext | |
1e24cc5b | 3476 | if { (eval echo "$as_me:3476: \"$ac_link\"") >&5 |
18569462 AD |
3477 | (eval $ac_link) 2>&5 |
3478 | ac_status=$? | |
1e24cc5b | 3479 | echo "$as_me:3479: \$? = $ac_status" >&5 |
5141b016 | 3480 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
1e24cc5b | 3481 | { (eval echo "$as_me:3481: \"$ac_try\"") >&5 |
18569462 AD |
3482 | (eval $ac_try) 2>&5 |
3483 | ac_status=$? | |
1e24cc5b | 3484 | echo "$as_me:3484: \$? = $ac_status" >&5 |
18569462 | 3485 | (exit $ac_status); }; }; then |
705db0b5 AD |
3486 | : |
3487 | else | |
18569462 AD |
3488 | echo "$as_me: program exited with status $ac_status" >&5 |
3489 | echo "$as_me: failed program was:" >&5 | |
3490 | cat conftest.$ac_ext >&5 | |
3491 | ac_cv_header_stdc=no | |
705db0b5 | 3492 | fi |
1e24cc5b | 3493 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 3494 | fi |
705db0b5 AD |
3495 | fi |
3496 | fi | |
1e24cc5b | 3497 | echo "$as_me:3497: result: $ac_cv_header_stdc" >&5 |
18569462 | 3498 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 3499 | if test $ac_cv_header_stdc = yes; then |
18569462 AD |
3500 | |
3501 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3502 | #define STDC_HEADERS 1 |
3503 | EOF | |
3504 | ||
3505 | fi | |
3506 | ||
18569462 | 3507 | for ac_header in string.h |
705db0b5 | 3508 | do |
18569462 | 3509 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
1e24cc5b | 3510 | echo "$as_me:3510: checking for $ac_header" >&5 |
18569462 AD |
3511 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3512 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
3513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3514 | else | |
3515 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 3516 | #line 3516 "configure" |
705db0b5 | 3517 | #include "confdefs.h" |
18569462 AD |
3518 | #include <$ac_header> |
3519 | _ACEOF | |
1e24cc5b AD |
3520 | if { (eval echo "$as_me:3520: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3521 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
3522 | ac_status=$? |
3523 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3524 | rm -f conftest.er1 | |
3525 | cat conftest.err >&5 | |
1e24cc5b AD |
3526 | echo "$as_me:3526: \$? = $ac_status" >&5 |
3527 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
3528 | if test -s conftest.err; then |
3529 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3530 | else | |
3531 | ac_cpp_err= | |
3532 | fi | |
3533 | else | |
3534 | ac_cpp_err=yes | |
3535 | fi | |
3536 | if test -z "$ac_cpp_err"; then | |
3537 | eval "$ac_ac_Header=yes" | |
3538 | else | |
3539 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 3540 | cat conftest.$ac_ext >&5 |
18569462 | 3541 | eval "$ac_ac_Header=no" |
705db0b5 | 3542 | fi |
18569462 | 3543 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 3544 | fi |
1e24cc5b | 3545 | echo "$as_me:3545: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
3546 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
3547 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
3548 | cat >>confdefs.h <<EOF | |
3549 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 3550 | EOF |
18569462 | 3551 | |
705db0b5 AD |
3552 | fi |
3553 | done | |
3554 | ||
3555 | fi | |
3556 | ||
705db0b5 AD |
3557 | # Checks for library functions. |
3558 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
3559 | # for constant arguments. Useless! | |
1e24cc5b | 3560 | echo "$as_me:3560: checking for working alloca.h" >&5 |
18569462 AD |
3561 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
3562 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
3563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 3564 | else |
18569462 | 3565 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 3566 | #line 3566 "configure" |
705db0b5 AD |
3567 | #include "confdefs.h" |
3568 | #include <alloca.h> | |
18569462 AD |
3569 | int |
3570 | main () | |
3571 | { | |
3572 | char *p = (char *) alloca (2 * sizeof (int)); | |
3573 | ; | |
3574 | return 0; | |
3575 | } | |
3576 | _ACEOF | |
3577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 3578 | if { (eval echo "$as_me:3578: \"$ac_link\"") >&5 |
18569462 AD |
3579 | (eval $ac_link) 2>&5 |
3580 | ac_status=$? | |
1e24cc5b | 3581 | echo "$as_me:3581: \$? = $ac_status" >&5 |
18569462 | 3582 | (exit $ac_status); } && |
5141b016 | 3583 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 3584 | { (eval echo "$as_me:3584: \"$ac_try\"") >&5 |
18569462 AD |
3585 | (eval $ac_try) 2>&5 |
3586 | ac_status=$? | |
1e24cc5b | 3587 | echo "$as_me:3587: \$? = $ac_status" >&5 |
18569462 AD |
3588 | (exit $ac_status); }; }; then |
3589 | ac_cv_working_alloca_h=yes | |
3590 | else | |
3591 | echo "$as_me: failed program was:" >&5 | |
3592 | cat conftest.$ac_ext >&5 | |
3593 | ac_cv_working_alloca_h=no | |
3594 | fi | |
1e24cc5b | 3595 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 3596 | fi |
1e24cc5b | 3597 | echo "$as_me:3597: result: $ac_cv_working_alloca_h" >&5 |
18569462 AD |
3598 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
3599 | if test $ac_cv_working_alloca_h = yes; then | |
3600 | ||
3601 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3602 | #define HAVE_ALLOCA_H 1 |
3603 | EOF | |
3604 | ||
3605 | fi | |
3606 | ||
1e24cc5b | 3607 | echo "$as_me:3607: checking for alloca" >&5 |
18569462 AD |
3608 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
3609 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
3610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 3611 | else |
18569462 | 3612 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 3613 | #line 3613 "configure" |
705db0b5 | 3614 | #include "confdefs.h" |
705db0b5 AD |
3615 | #ifdef __GNUC__ |
3616 | # define alloca __builtin_alloca | |
3617 | #else | |
3618 | # ifdef _MSC_VER | |
3619 | # include <malloc.h> | |
3620 | # define alloca _alloca | |
3621 | # else | |
3622 | # if HAVE_ALLOCA_H | |
3623 | # include <alloca.h> | |
3624 | # else | |
3625 | # ifdef _AIX | |
3626 | #pragma alloca | |
3627 | # else | |
3628 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3629 | char *alloca (); | |
3630 | # endif | |
3631 | # endif | |
3632 | # endif | |
3633 | # endif | |
3634 | #endif | |
3635 | ||
18569462 AD |
3636 | int |
3637 | main () | |
3638 | { | |
3639 | char *p = (char *) alloca (1); | |
3640 | ; | |
3641 | return 0; | |
3642 | } | |
3643 | _ACEOF | |
3644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 3645 | if { (eval echo "$as_me:3645: \"$ac_link\"") >&5 |
18569462 AD |
3646 | (eval $ac_link) 2>&5 |
3647 | ac_status=$? | |
1e24cc5b | 3648 | echo "$as_me:3648: \$? = $ac_status" >&5 |
18569462 | 3649 | (exit $ac_status); } && |
5141b016 | 3650 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 3651 | { (eval echo "$as_me:3651: \"$ac_try\"") >&5 |
18569462 AD |
3652 | (eval $ac_try) 2>&5 |
3653 | ac_status=$? | |
1e24cc5b | 3654 | echo "$as_me:3654: \$? = $ac_status" >&5 |
18569462 | 3655 | (exit $ac_status); }; }; then |
705db0b5 AD |
3656 | ac_cv_func_alloca_works=yes |
3657 | else | |
18569462 AD |
3658 | echo "$as_me: failed program was:" >&5 |
3659 | cat conftest.$ac_ext >&5 | |
3660 | ac_cv_func_alloca_works=no | |
705db0b5 | 3661 | fi |
1e24cc5b | 3662 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 3663 | fi |
1e24cc5b | 3664 | echo "$as_me:3664: result: $ac_cv_func_alloca_works" >&5 |
18569462 | 3665 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
705db0b5 | 3666 | |
705db0b5 | 3667 | if test $ac_cv_func_alloca_works = yes; then |
18569462 AD |
3668 | |
3669 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3670 | #define HAVE_ALLOCA 1 |
3671 | EOF | |
3672 | ||
18569462 AD |
3673 | else |
3674 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3675 | # that cause trouble. Some versions do not even contain alloca or | |
3676 | # contain a buggy version. If you still want to use their alloca, | |
3677 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
3678 | ||
3679 | ALLOCA=alloca.$ac_objext | |
3680 | ||
3681 | cat >>confdefs.h <<\EOF | |
3682 | #define C_ALLOCA 1 | |
3683 | EOF | |
3684 | ||
1e24cc5b | 3685 | echo "$as_me:3685: checking whether \`alloca.c' needs Cray hooks" >&5 |
18569462 AD |
3686 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
3687 | if test "${ac_cv_os_cray+set}" = set; then | |
3688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3689 | else | |
3690 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 3691 | #line 3691 "configure" |
18569462 AD |
3692 | #include "confdefs.h" |
3693 | #if defined(CRAY) && ! defined(CRAY2) | |
3694 | webecray | |
3695 | #else | |
3696 | wenotbecray | |
3697 | #endif | |
3698 | ||
3699 | _ACEOF | |
3700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3701 | egrep "webecray" >/dev/null 2>&1; then | |
3702 | ac_cv_os_cray=yes | |
3703 | else | |
3704 | ac_cv_os_cray=no | |
3705 | fi | |
3706 | rm -f conftest* | |
3707 | ||
3708 | fi | |
1e24cc5b | 3709 | echo "$as_me:3709: result: $ac_cv_os_cray" >&5 |
18569462 AD |
3710 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
3711 | if test $ac_cv_os_cray = yes; then | |
3712 | for ac_func in _getb67 GETB67 getb67; do | |
3713 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
1e24cc5b | 3714 | echo "$as_me:3714: checking for $ac_func" >&5 |
18569462 AD |
3715 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
3716 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
3717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3718 | else | |
3719 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 3720 | #line 3720 "configure" |
18569462 AD |
3721 | #include "confdefs.h" |
3722 | /* System header to define __stub macros and hopefully few prototypes, | |
3723 | which can conflict with char $ac_func (); below. */ | |
3724 | #include <assert.h> | |
3725 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3726 | #ifdef __cplusplus | |
3727 | extern "C" | |
3728 | #endif | |
3729 | /* We use char because int might match the return type of a gcc2 | |
3730 | builtin and then its argument prototype would still apply. */ | |
3731 | char $ac_func (); | |
3732 | char (*f) (); | |
3733 | ||
3734 | int | |
3735 | main () | |
3736 | { | |
3737 | /* The GNU C library defines this for functions which it implements | |
3738 | to always fail with ENOSYS. Some functions are actually named | |
3739 | something starting with __ and the normal name is an alias. */ | |
3740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3741 | choke me | |
3742 | #else | |
3743 | f = $ac_func; | |
3744 | #endif | |
3745 | ||
3746 | ; | |
3747 | return 0; | |
3748 | } | |
3749 | _ACEOF | |
3750 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 3751 | if { (eval echo "$as_me:3751: \"$ac_link\"") >&5 |
18569462 AD |
3752 | (eval $ac_link) 2>&5 |
3753 | ac_status=$? | |
1e24cc5b | 3754 | echo "$as_me:3754: \$? = $ac_status" >&5 |
18569462 | 3755 | (exit $ac_status); } && |
5141b016 | 3756 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 3757 | { (eval echo "$as_me:3757: \"$ac_try\"") >&5 |
18569462 AD |
3758 | (eval $ac_try) 2>&5 |
3759 | ac_status=$? | |
1e24cc5b | 3760 | echo "$as_me:3760: \$? = $ac_status" >&5 |
18569462 AD |
3761 | (exit $ac_status); }; }; then |
3762 | eval "$ac_ac_var=yes" | |
3763 | else | |
3764 | echo "$as_me: failed program was:" >&5 | |
3765 | cat conftest.$ac_ext >&5 | |
3766 | eval "$ac_ac_var=no" | |
3767 | fi | |
1e24cc5b | 3768 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 3769 | fi |
1e24cc5b | 3770 | echo "$as_me:3770: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
3771 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
3772 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
3773 | ||
3774 | cat >>confdefs.h <<EOF | |
3775 | #define CRAY_STACKSEG_END $ac_func | |
3776 | EOF | |
3777 | ||
3778 | break | |
3779 | fi | |
3780 | ||
3781 | done | |
3782 | fi | |
3783 | ||
1e24cc5b | 3784 | echo "$as_me:3784: checking stack direction for C alloca" >&5 |
18569462 AD |
3785 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
3786 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
3787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3788 | else | |
3789 | if test "$cross_compiling" = yes; then | |
3790 | ac_cv_c_stack_direction=0 | |
3791 | else | |
3792 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 3793 | #line 3793 "configure" |
18569462 AD |
3794 | #include "confdefs.h" |
3795 | int | |
3796 | find_stack_direction () | |
3797 | { | |
3798 | static char *addr = 0; | |
3799 | auto char dummy; | |
3800 | if (addr == 0) | |
3801 | { | |
3802 | addr = &dummy; | |
3803 | return find_stack_direction (); | |
3804 | } | |
3805 | else | |
3806 | return (&dummy > addr) ? 1 : -1; | |
3807 | } | |
3808 | ||
3809 | int | |
3810 | main () | |
3811 | { | |
3812 | exit (find_stack_direction () < 0); | |
3813 | } | |
3814 | _ACEOF | |
3815 | rm -f conftest$ac_exeext | |
1e24cc5b | 3816 | if { (eval echo "$as_me:3816: \"$ac_link\"") >&5 |
18569462 AD |
3817 | (eval $ac_link) 2>&5 |
3818 | ac_status=$? | |
1e24cc5b | 3819 | echo "$as_me:3819: \$? = $ac_status" >&5 |
5141b016 | 3820 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
1e24cc5b | 3821 | { (eval echo "$as_me:3821: \"$ac_try\"") >&5 |
18569462 AD |
3822 | (eval $ac_try) 2>&5 |
3823 | ac_status=$? | |
1e24cc5b | 3824 | echo "$as_me:3824: \$? = $ac_status" >&5 |
18569462 AD |
3825 | (exit $ac_status); }; }; then |
3826 | ac_cv_c_stack_direction=1 | |
3827 | else | |
3828 | echo "$as_me: program exited with status $ac_status" >&5 | |
3829 | echo "$as_me: failed program was:" >&5 | |
3830 | cat conftest.$ac_ext >&5 | |
3831 | ac_cv_c_stack_direction=-1 | |
3832 | fi | |
1e24cc5b | 3833 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
18569462 AD |
3834 | fi |
3835 | fi | |
1e24cc5b | 3836 | echo "$as_me:3836: result: $ac_cv_c_stack_direction" >&5 |
18569462 AD |
3837 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
3838 | ||
3839 | cat >>confdefs.h <<EOF | |
3840 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
3841 | EOF | |
3842 | ||
3843 | fi | |
3844 | ||
3845 | for ac_func in mkstemp setlocale | |
3846 | do | |
3847 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
1e24cc5b | 3848 | echo "$as_me:3848: checking for $ac_func" >&5 |
18569462 AD |
3849 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
3850 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
3851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3852 | else | |
3853 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 3854 | #line 3854 "configure" |
18569462 AD |
3855 | #include "confdefs.h" |
3856 | /* System header to define __stub macros and hopefully few prototypes, | |
3857 | which can conflict with char $ac_func (); below. */ | |
3858 | #include <assert.h> | |
3859 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3860 | #ifdef __cplusplus | |
3861 | extern "C" | |
3862 | #endif | |
3863 | /* We use char because int might match the return type of a gcc2 | |
3864 | builtin and then its argument prototype would still apply. */ | |
3865 | char $ac_func (); | |
3866 | char (*f) (); | |
3867 | ||
3868 | int | |
3869 | main () | |
3870 | { | |
3871 | /* The GNU C library defines this for functions which it implements | |
3872 | to always fail with ENOSYS. Some functions are actually named | |
3873 | something starting with __ and the normal name is an alias. */ | |
3874 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3875 | choke me | |
3876 | #else | |
3877 | f = $ac_func; | |
3878 | #endif | |
3879 | ||
3880 | ; | |
3881 | return 0; | |
3882 | } | |
3883 | _ACEOF | |
3884 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 3885 | if { (eval echo "$as_me:3885: \"$ac_link\"") >&5 |
18569462 AD |
3886 | (eval $ac_link) 2>&5 |
3887 | ac_status=$? | |
1e24cc5b | 3888 | echo "$as_me:3888: \$? = $ac_status" >&5 |
18569462 | 3889 | (exit $ac_status); } && |
5141b016 | 3890 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 3891 | { (eval echo "$as_me:3891: \"$ac_try\"") >&5 |
18569462 AD |
3892 | (eval $ac_try) 2>&5 |
3893 | ac_status=$? | |
1e24cc5b | 3894 | echo "$as_me:3894: \$? = $ac_status" >&5 |
18569462 AD |
3895 | (exit $ac_status); }; }; then |
3896 | eval "$ac_ac_var=yes" | |
3897 | else | |
3898 | echo "$as_me: failed program was:" >&5 | |
3899 | cat conftest.$ac_ext >&5 | |
3900 | eval "$ac_ac_var=no" | |
3901 | fi | |
1e24cc5b | 3902 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 3903 | fi |
1e24cc5b | 3904 | echo "$as_me:3904: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
3905 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
3906 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
3907 | cat >>confdefs.h <<EOF | |
3908 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
3909 | EOF | |
3910 | ||
3911 | fi | |
3912 | done | |
3913 | ||
3914 | for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h | |
3915 | do | |
3916 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
1e24cc5b | 3917 | echo "$as_me:3917: checking for $ac_header" >&5 |
18569462 AD |
3918 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3919 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
3920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3921 | else | |
3922 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 3923 | #line 3923 "configure" |
18569462 AD |
3924 | #include "confdefs.h" |
3925 | #include <$ac_header> | |
3926 | _ACEOF | |
1e24cc5b AD |
3927 | if { (eval echo "$as_me:3927: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3928 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
3929 | ac_status=$? |
3930 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3931 | rm -f conftest.er1 | |
3932 | cat conftest.err >&5 | |
1e24cc5b AD |
3933 | echo "$as_me:3933: \$? = $ac_status" >&5 |
3934 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
3935 | if test -s conftest.err; then |
3936 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3937 | else | |
3938 | ac_cpp_err= | |
3939 | fi | |
3940 | else | |
3941 | ac_cpp_err=yes | |
3942 | fi | |
3943 | if test -z "$ac_cpp_err"; then | |
3944 | eval "$ac_ac_Header=yes" | |
3945 | else | |
3946 | echo "$as_me: failed program was:" >&5 | |
3947 | cat conftest.$ac_ext >&5 | |
3948 | eval "$ac_ac_Header=no" | |
3949 | fi | |
3950 | rm -f conftest.err conftest.$ac_ext | |
3951 | fi | |
1e24cc5b | 3952 | echo "$as_me:3952: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
3953 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
3954 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
3955 | cat >>confdefs.h <<EOF | |
3956 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
3957 | EOF | |
3958 | ||
3959 | fi | |
3960 | done | |
3961 | ||
1e24cc5b | 3962 | echo "$as_me:3962: checking whether stpcpy is declared" >&5 |
18569462 AD |
3963 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 |
3964 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3966 | else | |
3967 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 3968 | #line 3968 "configure" |
18569462 AD |
3969 | #include "confdefs.h" |
3970 | $ac_includes_default | |
3971 | int | |
3972 | main () | |
3973 | { | |
3974 | #ifndef stpcpy | |
3975 | char *p = (char *) stpcpy; | |
3976 | #endif | |
3977 | ||
3978 | ; | |
3979 | return 0; | |
3980 | } | |
3981 | _ACEOF | |
3982 | rm -f conftest.$ac_objext | |
1e24cc5b | 3983 | if { (eval echo "$as_me:3983: \"$ac_compile\"") >&5 |
18569462 AD |
3984 | (eval $ac_compile) 2>&5 |
3985 | ac_status=$? | |
1e24cc5b | 3986 | echo "$as_me:3986: \$? = $ac_status" >&5 |
18569462 | 3987 | (exit $ac_status); } && |
5141b016 | 3988 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 3989 | { (eval echo "$as_me:3989: \"$ac_try\"") >&5 |
18569462 AD |
3990 | (eval $ac_try) 2>&5 |
3991 | ac_status=$? | |
1e24cc5b | 3992 | echo "$as_me:3992: \$? = $ac_status" >&5 |
18569462 AD |
3993 | (exit $ac_status); }; }; then |
3994 | ac_cv_have_decl_stpcpy=yes | |
3995 | else | |
3996 | echo "$as_me: failed program was:" >&5 | |
3997 | cat conftest.$ac_ext >&5 | |
3998 | ac_cv_have_decl_stpcpy=no | |
3999 | fi | |
4000 | rm -f conftest.$ac_objext conftest.$ac_ext | |
705db0b5 | 4001 | fi |
1e24cc5b | 4002 | echo "$as_me:4002: result: $ac_cv_have_decl_stpcpy" >&5 |
18569462 AD |
4003 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 |
4004 | if test $ac_cv_have_decl_stpcpy = yes; then | |
705db0b5 | 4005 | |
18569462 AD |
4006 | cat >>confdefs.h <<EOF |
4007 | #define HAVE_DECL_STPCPY 1 | |
705db0b5 AD |
4008 | EOF |
4009 | ||
18569462 AD |
4010 | else |
4011 | cat >>confdefs.h <<EOF | |
4012 | #define HAVE_DECL_STPCPY 0 | |
4013 | EOF | |
705db0b5 | 4014 | |
18569462 | 4015 | fi |
1e24cc5b | 4016 | echo "$as_me:4016: checking whether strndup is declared" >&5 |
18569462 AD |
4017 | echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6 |
4018 | if test "${ac_cv_have_decl_strndup+set}" = set; then | |
4019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4020 | else |
18569462 | 4021 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4022 | #line 4022 "configure" |
705db0b5 | 4023 | #include "confdefs.h" |
18569462 AD |
4024 | $ac_includes_default |
4025 | int | |
4026 | main () | |
4027 | { | |
4028 | #ifndef strndup | |
4029 | char *p = (char *) strndup; | |
705db0b5 AD |
4030 | #endif |
4031 | ||
18569462 AD |
4032 | ; |
4033 | return 0; | |
4034 | } | |
4035 | _ACEOF | |
4036 | rm -f conftest.$ac_objext | |
1e24cc5b | 4037 | if { (eval echo "$as_me:4037: \"$ac_compile\"") >&5 |
18569462 AD |
4038 | (eval $ac_compile) 2>&5 |
4039 | ac_status=$? | |
1e24cc5b | 4040 | echo "$as_me:4040: \$? = $ac_status" >&5 |
18569462 | 4041 | (exit $ac_status); } && |
5141b016 | 4042 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 4043 | { (eval echo "$as_me:4043: \"$ac_try\"") >&5 |
18569462 AD |
4044 | (eval $ac_try) 2>&5 |
4045 | ac_status=$? | |
1e24cc5b | 4046 | echo "$as_me:4046: \$? = $ac_status" >&5 |
18569462 AD |
4047 | (exit $ac_status); }; }; then |
4048 | ac_cv_have_decl_strndup=yes | |
705db0b5 | 4049 | else |
18569462 AD |
4050 | echo "$as_me: failed program was:" >&5 |
4051 | cat conftest.$ac_ext >&5 | |
4052 | ac_cv_have_decl_strndup=no | |
705db0b5 | 4053 | fi |
18569462 | 4054 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4055 | fi |
1e24cc5b | 4056 | echo "$as_me:4056: result: $ac_cv_have_decl_strndup" >&5 |
18569462 AD |
4057 | echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6 |
4058 | if test $ac_cv_have_decl_strndup = yes; then | |
705db0b5 | 4059 | |
18569462 AD |
4060 | cat >>confdefs.h <<EOF |
4061 | #define HAVE_DECL_STRNDUP 1 | |
4062 | EOF | |
705db0b5 | 4063 | |
18569462 AD |
4064 | else |
4065 | cat >>confdefs.h <<EOF | |
4066 | #define HAVE_DECL_STRNDUP 0 | |
4067 | EOF | |
705db0b5 | 4068 | |
18569462 | 4069 | fi |
1e24cc5b | 4070 | echo "$as_me:4070: checking whether strnlen is declared" >&5 |
18569462 AD |
4071 | echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6 |
4072 | if test "${ac_cv_have_decl_strnlen+set}" = set; then | |
4073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4074 | else | |
4075 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 4076 | #line 4076 "configure" |
18569462 AD |
4077 | #include "confdefs.h" |
4078 | $ac_includes_default | |
4079 | int | |
4080 | main () | |
4081 | { | |
4082 | #ifndef strnlen | |
4083 | char *p = (char *) strnlen; | |
705db0b5 AD |
4084 | #endif |
4085 | ||
18569462 AD |
4086 | ; |
4087 | return 0; | |
4088 | } | |
4089 | _ACEOF | |
4090 | rm -f conftest.$ac_objext | |
1e24cc5b | 4091 | if { (eval echo "$as_me:4091: \"$ac_compile\"") >&5 |
18569462 AD |
4092 | (eval $ac_compile) 2>&5 |
4093 | ac_status=$? | |
1e24cc5b | 4094 | echo "$as_me:4094: \$? = $ac_status" >&5 |
18569462 | 4095 | (exit $ac_status); } && |
5141b016 | 4096 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 4097 | { (eval echo "$as_me:4097: \"$ac_try\"") >&5 |
18569462 AD |
4098 | (eval $ac_try) 2>&5 |
4099 | ac_status=$? | |
1e24cc5b | 4100 | echo "$as_me:4100: \$? = $ac_status" >&5 |
18569462 AD |
4101 | (exit $ac_status); }; }; then |
4102 | ac_cv_have_decl_strnlen=yes | |
705db0b5 | 4103 | else |
18569462 AD |
4104 | echo "$as_me: failed program was:" >&5 |
4105 | cat conftest.$ac_ext >&5 | |
4106 | ac_cv_have_decl_strnlen=no | |
705db0b5 | 4107 | fi |
18569462 | 4108 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4109 | fi |
1e24cc5b | 4110 | echo "$as_me:4110: result: $ac_cv_have_decl_strnlen" >&5 |
18569462 AD |
4111 | echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6 |
4112 | if test $ac_cv_have_decl_strnlen = yes; then | |
705db0b5 | 4113 | |
18569462 AD |
4114 | cat >>confdefs.h <<EOF |
4115 | #define HAVE_DECL_STRNLEN 1 | |
705db0b5 AD |
4116 | EOF |
4117 | ||
705db0b5 | 4118 | else |
18569462 AD |
4119 | cat >>confdefs.h <<EOF |
4120 | #define HAVE_DECL_STRNLEN 0 | |
4121 | EOF | |
705db0b5 | 4122 | |
705db0b5 | 4123 | fi |
1e24cc5b | 4124 | echo "$as_me:4124: checking whether memchr is declared" >&5 |
18569462 AD |
4125 | echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6 |
4126 | if test "${ac_cv_have_decl_memchr+set}" = set; then | |
4127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4128 | else |
18569462 | 4129 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4130 | #line 4130 "configure" |
705db0b5 | 4131 | #include "confdefs.h" |
18569462 AD |
4132 | $ac_includes_default |
4133 | int | |
705db0b5 AD |
4134 | main () |
4135 | { | |
18569462 AD |
4136 | #ifndef memchr |
4137 | char *p = (char *) memchr; | |
4138 | #endif | |
4139 | ||
4140 | ; | |
4141 | return 0; | |
705db0b5 | 4142 | } |
18569462 AD |
4143 | _ACEOF |
4144 | rm -f conftest.$ac_objext | |
1e24cc5b | 4145 | if { (eval echo "$as_me:4145: \"$ac_compile\"") >&5 |
18569462 AD |
4146 | (eval $ac_compile) 2>&5 |
4147 | ac_status=$? | |
1e24cc5b | 4148 | echo "$as_me:4148: \$? = $ac_status" >&5 |
18569462 | 4149 | (exit $ac_status); } && |
5141b016 | 4150 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 4151 | { (eval echo "$as_me:4151: \"$ac_try\"") >&5 |
18569462 AD |
4152 | (eval $ac_try) 2>&5 |
4153 | ac_status=$? | |
1e24cc5b | 4154 | echo "$as_me:4154: \$? = $ac_status" >&5 |
18569462 AD |
4155 | (exit $ac_status); }; }; then |
4156 | ac_cv_have_decl_memchr=yes | |
705db0b5 | 4157 | else |
18569462 AD |
4158 | echo "$as_me: failed program was:" >&5 |
4159 | cat conftest.$ac_ext >&5 | |
4160 | ac_cv_have_decl_memchr=no | |
705db0b5 | 4161 | fi |
18569462 | 4162 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4163 | fi |
1e24cc5b | 4164 | echo "$as_me:4164: result: $ac_cv_have_decl_memchr" >&5 |
18569462 AD |
4165 | echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6 |
4166 | if test $ac_cv_have_decl_memchr = yes; then | |
705db0b5 | 4167 | |
18569462 AD |
4168 | cat >>confdefs.h <<EOF |
4169 | #define HAVE_DECL_MEMCHR 1 | |
4170 | EOF | |
705db0b5 | 4171 | |
18569462 AD |
4172 | else |
4173 | cat >>confdefs.h <<EOF | |
4174 | #define HAVE_DECL_MEMCHR 0 | |
705db0b5 AD |
4175 | EOF |
4176 | ||
4177 | fi | |
4178 | ||
18569462 | 4179 | for ac_func in stpcpy strndup strnlen memchr |
705db0b5 | 4180 | do |
18569462 | 4181 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
1e24cc5b | 4182 | echo "$as_me:4182: checking for $ac_func" >&5 |
18569462 AD |
4183 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4184 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
4185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4186 | else | |
4187 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 4188 | #line 4188 "configure" |
705db0b5 AD |
4189 | #include "confdefs.h" |
4190 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 4191 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
4192 | #include <assert.h> |
4193 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
4194 | #ifdef __cplusplus |
4195 | extern "C" | |
4196 | #endif | |
705db0b5 | 4197 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
4198 | builtin and then its argument prototype would still apply. */ |
4199 | char $ac_func (); | |
4200 | char (*f) (); | |
705db0b5 | 4201 | |
18569462 AD |
4202 | int |
4203 | main () | |
4204 | { | |
705db0b5 AD |
4205 | /* The GNU C library defines this for functions which it implements |
4206 | to always fail with ENOSYS. Some functions are actually named | |
4207 | something starting with __ and the normal name is an alias. */ | |
4208 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4209 | choke me | |
4210 | #else | |
18569462 | 4211 | f = $ac_func; |
705db0b5 AD |
4212 | #endif |
4213 | ||
18569462 AD |
4214 | ; |
4215 | return 0; | |
4216 | } | |
4217 | _ACEOF | |
4218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 4219 | if { (eval echo "$as_me:4219: \"$ac_link\"") >&5 |
18569462 AD |
4220 | (eval $ac_link) 2>&5 |
4221 | ac_status=$? | |
1e24cc5b | 4222 | echo "$as_me:4222: \$? = $ac_status" >&5 |
18569462 | 4223 | (exit $ac_status); } && |
5141b016 | 4224 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 4225 | { (eval echo "$as_me:4225: \"$ac_try\"") >&5 |
18569462 AD |
4226 | (eval $ac_try) 2>&5 |
4227 | ac_status=$? | |
1e24cc5b | 4228 | echo "$as_me:4228: \$? = $ac_status" >&5 |
18569462 AD |
4229 | (exit $ac_status); }; }; then |
4230 | eval "$ac_ac_var=yes" | |
705db0b5 | 4231 | else |
18569462 AD |
4232 | echo "$as_me: failed program was:" >&5 |
4233 | cat conftest.$ac_ext >&5 | |
4234 | eval "$ac_ac_var=no" | |
705db0b5 | 4235 | fi |
1e24cc5b | 4236 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 4237 | fi |
1e24cc5b | 4238 | echo "$as_me:4238: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
4239 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
4240 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
4241 | cat >>confdefs.h <<EOF | |
4242 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 | 4243 | EOF |
18569462 | 4244 | |
705db0b5 | 4245 | else |
18569462 | 4246 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
705db0b5 AD |
4247 | fi |
4248 | done | |
4249 | ||
18569462 | 4250 | cat >>confdefs.h <<EOF |
705db0b5 AD |
4251 | #define HAVE_DONE_WORKING_MALLOC_CHECK 1 |
4252 | EOF | |
4253 | ||
1e24cc5b | 4254 | echo "$as_me:4254: checking for working malloc" >&5 |
18569462 AD |
4255 | echo $ECHO_N "checking for working malloc... $ECHO_C" >&6 |
4256 | if test "${jm_cv_func_working_malloc+set}" = set; then | |
4257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
4258 | else |
4259 | if test "$cross_compiling" = yes; then | |
4260 | jm_cv_func_working_malloc=no | |
4261 | else | |
18569462 | 4262 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4263 | #line 4263 "configure" |
705db0b5 AD |
4264 | #include "confdefs.h" |
4265 | ||
4266 | char *malloc (); | |
4267 | int | |
4268 | main () | |
4269 | { | |
4270 | exit (malloc (0) ? 0 : 1); | |
4271 | } | |
18569462 AD |
4272 | |
4273 | _ACEOF | |
4274 | rm -f conftest$ac_exeext | |
1e24cc5b | 4275 | if { (eval echo "$as_me:4275: \"$ac_link\"") >&5 |
18569462 AD |
4276 | (eval $ac_link) 2>&5 |
4277 | ac_status=$? | |
1e24cc5b | 4278 | echo "$as_me:4278: \$? = $ac_status" >&5 |
5141b016 | 4279 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
1e24cc5b | 4280 | { (eval echo "$as_me:4280: \"$ac_try\"") >&5 |
18569462 AD |
4281 | (eval $ac_try) 2>&5 |
4282 | ac_status=$? | |
1e24cc5b | 4283 | echo "$as_me:4283: \$? = $ac_status" >&5 |
18569462 | 4284 | (exit $ac_status); }; }; then |
705db0b5 AD |
4285 | jm_cv_func_working_malloc=yes |
4286 | else | |
18569462 AD |
4287 | echo "$as_me: program exited with status $ac_status" >&5 |
4288 | echo "$as_me: failed program was:" >&5 | |
4289 | cat conftest.$ac_ext >&5 | |
4290 | jm_cv_func_working_malloc=no | |
705db0b5 | 4291 | fi |
1e24cc5b | 4292 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
705db0b5 AD |
4293 | fi |
4294 | ||
705db0b5 | 4295 | fi |
1e24cc5b | 4296 | echo "$as_me:4296: result: $jm_cv_func_working_malloc" >&5 |
18569462 | 4297 | echo "${ECHO_T}$jm_cv_func_working_malloc" >&6 |
705db0b5 | 4298 | if test $jm_cv_func_working_malloc = no; then |
18569462 | 4299 | |
705db0b5 | 4300 | LIBOBJS="$LIBOBJS malloc.$ac_objext" |
18569462 AD |
4301 | |
4302 | cat >>confdefs.h <<EOF | |
705db0b5 AD |
4303 | #define malloc rpl_malloc |
4304 | EOF | |
4305 | ||
4306 | fi | |
4307 | ||
18569462 | 4308 | cat >>confdefs.h <<EOF |
705db0b5 AD |
4309 | #define HAVE_DONE_WORKING_REALLOC_CHECK 1 |
4310 | EOF | |
4311 | ||
1e24cc5b | 4312 | echo "$as_me:4312: checking for working realloc" >&5 |
18569462 AD |
4313 | echo $ECHO_N "checking for working realloc... $ECHO_C" >&6 |
4314 | if test "${jm_cv_func_working_realloc+set}" = set; then | |
4315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
4316 | else |
4317 | if test "$cross_compiling" = yes; then | |
4318 | jm_cv_func_working_realloc=no | |
4319 | else | |
18569462 | 4320 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4321 | #line 4321 "configure" |
705db0b5 AD |
4322 | #include "confdefs.h" |
4323 | ||
4324 | char *realloc (); | |
4325 | int | |
4326 | main () | |
4327 | { | |
4328 | exit (realloc (0, 0) ? 0 : 1); | |
4329 | } | |
18569462 AD |
4330 | |
4331 | _ACEOF | |
4332 | rm -f conftest$ac_exeext | |
1e24cc5b | 4333 | if { (eval echo "$as_me:4333: \"$ac_link\"") >&5 |
18569462 AD |
4334 | (eval $ac_link) 2>&5 |
4335 | ac_status=$? | |
1e24cc5b | 4336 | echo "$as_me:4336: \$? = $ac_status" >&5 |
5141b016 | 4337 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
1e24cc5b | 4338 | { (eval echo "$as_me:4338: \"$ac_try\"") >&5 |
18569462 AD |
4339 | (eval $ac_try) 2>&5 |
4340 | ac_status=$? | |
1e24cc5b | 4341 | echo "$as_me:4341: \$? = $ac_status" >&5 |
18569462 | 4342 | (exit $ac_status); }; }; then |
705db0b5 AD |
4343 | jm_cv_func_working_realloc=yes |
4344 | else | |
18569462 AD |
4345 | echo "$as_me: program exited with status $ac_status" >&5 |
4346 | echo "$as_me: failed program was:" >&5 | |
4347 | cat conftest.$ac_ext >&5 | |
4348 | jm_cv_func_working_realloc=no | |
705db0b5 | 4349 | fi |
1e24cc5b | 4350 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
705db0b5 AD |
4351 | fi |
4352 | ||
705db0b5 | 4353 | fi |
1e24cc5b | 4354 | echo "$as_me:4354: result: $jm_cv_func_working_realloc" >&5 |
18569462 | 4355 | echo "${ECHO_T}$jm_cv_func_working_realloc" >&6 |
705db0b5 | 4356 | if test $jm_cv_func_working_realloc = no; then |
18569462 | 4357 | |
705db0b5 | 4358 | LIBOBJS="$LIBOBJS realloc.$ac_objext" |
18569462 AD |
4359 | |
4360 | cat >>confdefs.h <<EOF | |
705db0b5 AD |
4361 | #define realloc rpl_realloc |
4362 | EOF | |
4363 | ||
4364 | fi | |
4365 | ||
18569462 | 4366 | for ac_func in isascii iswprint mbrtowc |
705db0b5 | 4367 | do |
18569462 | 4368 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
1e24cc5b | 4369 | echo "$as_me:4369: checking for $ac_func" >&5 |
18569462 AD |
4370 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4371 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
4372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4373 | else | |
4374 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 4375 | #line 4375 "configure" |
705db0b5 AD |
4376 | #include "confdefs.h" |
4377 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 4378 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
4379 | #include <assert.h> |
4380 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
4381 | #ifdef __cplusplus |
4382 | extern "C" | |
4383 | #endif | |
705db0b5 | 4384 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
4385 | builtin and then its argument prototype would still apply. */ |
4386 | char $ac_func (); | |
4387 | char (*f) (); | |
705db0b5 | 4388 | |
18569462 AD |
4389 | int |
4390 | main () | |
4391 | { | |
705db0b5 AD |
4392 | /* The GNU C library defines this for functions which it implements |
4393 | to always fail with ENOSYS. Some functions are actually named | |
4394 | something starting with __ and the normal name is an alias. */ | |
4395 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4396 | choke me | |
4397 | #else | |
18569462 | 4398 | f = $ac_func; |
705db0b5 AD |
4399 | #endif |
4400 | ||
18569462 AD |
4401 | ; |
4402 | return 0; | |
4403 | } | |
4404 | _ACEOF | |
4405 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 4406 | if { (eval echo "$as_me:4406: \"$ac_link\"") >&5 |
18569462 AD |
4407 | (eval $ac_link) 2>&5 |
4408 | ac_status=$? | |
1e24cc5b | 4409 | echo "$as_me:4409: \$? = $ac_status" >&5 |
18569462 | 4410 | (exit $ac_status); } && |
5141b016 | 4411 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 4412 | { (eval echo "$as_me:4412: \"$ac_try\"") >&5 |
18569462 AD |
4413 | (eval $ac_try) 2>&5 |
4414 | ac_status=$? | |
1e24cc5b | 4415 | echo "$as_me:4415: \$? = $ac_status" >&5 |
18569462 AD |
4416 | (exit $ac_status); }; }; then |
4417 | eval "$ac_ac_var=yes" | |
4418 | else | |
4419 | echo "$as_me: failed program was:" >&5 | |
4420 | cat conftest.$ac_ext >&5 | |
4421 | eval "$ac_ac_var=no" | |
4422 | fi | |
1e24cc5b | 4423 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 4424 | fi |
1e24cc5b | 4425 | echo "$as_me:4425: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
4426 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
4427 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
4428 | cat >>confdefs.h <<EOF | |
4429 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 | 4430 | EOF |
705db0b5 | 4431 | |
705db0b5 AD |
4432 | fi |
4433 | done | |
4434 | ||
18569462 | 4435 | for ac_header in limits.h stdlib.h string.h wchar.h wctype.h |
705db0b5 | 4436 | do |
18569462 | 4437 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
1e24cc5b | 4438 | echo "$as_me:4438: checking for $ac_header" >&5 |
18569462 AD |
4439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4440 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
4441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4442 | else | |
4443 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 4444 | #line 4444 "configure" |
705db0b5 | 4445 | #include "confdefs.h" |
18569462 AD |
4446 | #include <$ac_header> |
4447 | _ACEOF | |
1e24cc5b AD |
4448 | if { (eval echo "$as_me:4448: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4449 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
4450 | ac_status=$? |
4451 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4452 | rm -f conftest.er1 | |
4453 | cat conftest.err >&5 | |
1e24cc5b AD |
4454 | echo "$as_me:4454: \$? = $ac_status" >&5 |
4455 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
4456 | if test -s conftest.err; then |
4457 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4458 | else | |
4459 | ac_cpp_err= | |
4460 | fi | |
4461 | else | |
4462 | ac_cpp_err=yes | |
4463 | fi | |
4464 | if test -z "$ac_cpp_err"; then | |
4465 | eval "$ac_ac_Header=yes" | |
4466 | else | |
4467 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 4468 | cat conftest.$ac_ext >&5 |
18569462 | 4469 | eval "$ac_ac_Header=no" |
705db0b5 | 4470 | fi |
18569462 | 4471 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 4472 | fi |
1e24cc5b | 4473 | echo "$as_me:4473: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
4474 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
4475 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
4476 | cat >>confdefs.h <<EOF | |
4477 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 4478 | EOF |
18569462 | 4479 | |
705db0b5 AD |
4480 | fi |
4481 | done | |
4482 | ||
1e24cc5b | 4483 | echo "$as_me:4483: checking for ANSI C header files" >&5 |
18569462 AD |
4484 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4485 | if test "${ac_cv_header_stdc+set}" = set; then | |
4486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4487 | else |
18569462 | 4488 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4489 | #line 4489 "configure" |
705db0b5 AD |
4490 | #include "confdefs.h" |
4491 | #include <stdlib.h> | |
4492 | #include <stdarg.h> | |
4493 | #include <string.h> | |
4494 | #include <float.h> | |
18569462 AD |
4495 | |
4496 | _ACEOF | |
1e24cc5b AD |
4497 | if { (eval echo "$as_me:4497: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4498 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
4499 | ac_status=$? |
4500 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4501 | rm -f conftest.er1 | |
4502 | cat conftest.err >&5 | |
1e24cc5b AD |
4503 | echo "$as_me:4503: \$? = $ac_status" >&5 |
4504 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
4505 | if test -s conftest.err; then |
4506 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4507 | else | |
4508 | ac_cpp_err= | |
4509 | fi | |
4510 | else | |
4511 | ac_cpp_err=yes | |
4512 | fi | |
4513 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
4514 | ac_cv_header_stdc=yes |
4515 | else | |
18569462 | 4516 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 4517 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
4518 | ac_cv_header_stdc=no |
4519 | fi | |
18569462 | 4520 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
4521 | |
4522 | if test $ac_cv_header_stdc = yes; then | |
4523 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 4524 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4525 | #line 4525 "configure" |
705db0b5 AD |
4526 | #include "confdefs.h" |
4527 | #include <string.h> | |
18569462 AD |
4528 | |
4529 | _ACEOF | |
705db0b5 AD |
4530 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4531 | egrep "memchr" >/dev/null 2>&1; then | |
4532 | : | |
4533 | else | |
705db0b5 AD |
4534 | ac_cv_header_stdc=no |
4535 | fi | |
4536 | rm -f conftest* | |
4537 | ||
4538 | fi | |
4539 | ||
4540 | if test $ac_cv_header_stdc = yes; then | |
4541 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 4542 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4543 | #line 4543 "configure" |
705db0b5 AD |
4544 | #include "confdefs.h" |
4545 | #include <stdlib.h> | |
18569462 AD |
4546 | |
4547 | _ACEOF | |
705db0b5 AD |
4548 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4549 | egrep "free" >/dev/null 2>&1; then | |
4550 | : | |
4551 | else | |
705db0b5 AD |
4552 | ac_cv_header_stdc=no |
4553 | fi | |
4554 | rm -f conftest* | |
4555 | ||
4556 | fi | |
4557 | ||
4558 | if test $ac_cv_header_stdc = yes; then | |
4559 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 4560 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
4561 | : |
4562 | else | |
18569462 | 4563 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4564 | #line 4564 "configure" |
705db0b5 AD |
4565 | #include "confdefs.h" |
4566 | #include <ctype.h> | |
18569462 AD |
4567 | #if ((' ' & 0x0FF) == 0x020) |
4568 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4569 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4570 | #else | |
4571 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4572 | || ('j' <= (c) && (c) <= 'r') \ | |
4573 | || ('s' <= (c) && (c) <= 'z')) | |
4574 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4575 | #endif | |
705db0b5 | 4576 | |
18569462 AD |
4577 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4578 | int | |
4579 | main () | |
4580 | { | |
4581 | int i; | |
4582 | for (i = 0; i < 256; i++) | |
4583 | if (XOR (islower (i), ISLOWER (i)) | |
4584 | || toupper (i) != TOUPPER (i)) | |
4585 | exit(2); | |
4586 | exit (0); | |
4587 | } | |
4588 | _ACEOF | |
4589 | rm -f conftest$ac_exeext | |
1e24cc5b | 4590 | if { (eval echo "$as_me:4590: \"$ac_link\"") >&5 |
18569462 AD |
4591 | (eval $ac_link) 2>&5 |
4592 | ac_status=$? | |
1e24cc5b | 4593 | echo "$as_me:4593: \$? = $ac_status" >&5 |
5141b016 | 4594 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
1e24cc5b | 4595 | { (eval echo "$as_me:4595: \"$ac_try\"") >&5 |
18569462 AD |
4596 | (eval $ac_try) 2>&5 |
4597 | ac_status=$? | |
1e24cc5b | 4598 | echo "$as_me:4598: \$? = $ac_status" >&5 |
18569462 | 4599 | (exit $ac_status); }; }; then |
705db0b5 AD |
4600 | : |
4601 | else | |
18569462 AD |
4602 | echo "$as_me: program exited with status $ac_status" >&5 |
4603 | echo "$as_me: failed program was:" >&5 | |
4604 | cat conftest.$ac_ext >&5 | |
4605 | ac_cv_header_stdc=no | |
705db0b5 | 4606 | fi |
1e24cc5b | 4607 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 4608 | fi |
705db0b5 AD |
4609 | fi |
4610 | fi | |
1e24cc5b | 4611 | echo "$as_me:4611: result: $ac_cv_header_stdc" >&5 |
18569462 | 4612 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 4613 | if test $ac_cv_header_stdc = yes; then |
18569462 AD |
4614 | |
4615 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4616 | #define STDC_HEADERS 1 |
4617 | EOF | |
4618 | ||
4619 | fi | |
4620 | ||
1e24cc5b | 4621 | echo "$as_me:4621: checking whether backslash-a works in strings" >&5 |
18569462 AD |
4622 | echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6 |
4623 | if test "${ac_cv_c_backslash_a+set}" = set; then | |
4624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4625 | else |
18569462 | 4626 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4627 | #line 4627 "configure" |
705db0b5 AD |
4628 | #include "confdefs.h" |
4629 | ||
18569462 AD |
4630 | int |
4631 | main () | |
4632 | { | |
705db0b5 AD |
4633 | |
4634 | #if '\a' == 'a' | |
4635 | syntax error; | |
4636 | #endif | |
4637 | char buf['\a' == 'a' ? -1 : 1]; | |
4638 | buf[0] = '\a'; | |
4639 | return buf[0] != "\a"[0]; | |
18569462 AD |
4640 | |
4641 | ; | |
4642 | return 0; | |
4643 | } | |
4644 | _ACEOF | |
4645 | rm -f conftest.$ac_objext | |
1e24cc5b | 4646 | if { (eval echo "$as_me:4646: \"$ac_compile\"") >&5 |
18569462 AD |
4647 | (eval $ac_compile) 2>&5 |
4648 | ac_status=$? | |
1e24cc5b | 4649 | echo "$as_me:4649: \$? = $ac_status" >&5 |
18569462 | 4650 | (exit $ac_status); } && |
5141b016 | 4651 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 4652 | { (eval echo "$as_me:4652: \"$ac_try\"") >&5 |
18569462 AD |
4653 | (eval $ac_try) 2>&5 |
4654 | ac_status=$? | |
1e24cc5b | 4655 | echo "$as_me:4655: \$? = $ac_status" >&5 |
18569462 | 4656 | (exit $ac_status); }; }; then |
705db0b5 AD |
4657 | ac_cv_c_backslash_a=yes |
4658 | else | |
18569462 AD |
4659 | echo "$as_me: failed program was:" >&5 |
4660 | cat conftest.$ac_ext >&5 | |
4661 | ac_cv_c_backslash_a=no | |
705db0b5 | 4662 | fi |
18569462 | 4663 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4664 | fi |
1e24cc5b | 4665 | echo "$as_me:4665: result: $ac_cv_c_backslash_a" >&5 |
18569462 | 4666 | echo "${ECHO_T}$ac_cv_c_backslash_a" >&6 |
705db0b5 | 4667 | if test $ac_cv_c_backslash_a = yes; then |
18569462 AD |
4668 | |
4669 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4670 | #define HAVE_C_BACKSLASH_A 1 |
4671 | EOF | |
4672 | ||
4673 | fi | |
4674 | ||
18569462 | 4675 | for ac_header in stdlib.h |
705db0b5 | 4676 | do |
18569462 | 4677 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
1e24cc5b | 4678 | echo "$as_me:4678: checking for $ac_header" >&5 |
18569462 AD |
4679 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4680 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
4681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4682 | else | |
4683 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 4684 | #line 4684 "configure" |
705db0b5 | 4685 | #include "confdefs.h" |
18569462 AD |
4686 | #include <$ac_header> |
4687 | _ACEOF | |
1e24cc5b AD |
4688 | if { (eval echo "$as_me:4688: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4689 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
4690 | ac_status=$? |
4691 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4692 | rm -f conftest.er1 | |
4693 | cat conftest.err >&5 | |
1e24cc5b AD |
4694 | echo "$as_me:4694: \$? = $ac_status" >&5 |
4695 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
4696 | if test -s conftest.err; then |
4697 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4698 | else | |
4699 | ac_cpp_err= | |
4700 | fi | |
4701 | else | |
4702 | ac_cpp_err=yes | |
4703 | fi | |
4704 | if test -z "$ac_cpp_err"; then | |
4705 | eval "$ac_ac_Header=yes" | |
4706 | else | |
4707 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 4708 | cat conftest.$ac_ext >&5 |
18569462 | 4709 | eval "$ac_ac_Header=no" |
705db0b5 | 4710 | fi |
18569462 | 4711 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 4712 | fi |
1e24cc5b | 4713 | echo "$as_me:4713: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
4714 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
4715 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
4716 | cat >>confdefs.h <<EOF | |
4717 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 4718 | EOF |
18569462 | 4719 | |
705db0b5 AD |
4720 | fi |
4721 | done | |
4722 | ||
1e24cc5b | 4723 | echo "$as_me:4723: checking for mbstate_t" >&5 |
18569462 AD |
4724 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 |
4725 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
4726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4727 | else |
18569462 | 4728 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4729 | #line 4729 "configure" |
705db0b5 AD |
4730 | #include "confdefs.h" |
4731 | ||
4732 | #if HAVE_STDLIB_H | |
4733 | # include <stdlib.h> | |
4734 | #endif | |
4735 | #include <wchar.h> | |
18569462 AD |
4736 | int |
4737 | main () | |
4738 | { | |
705db0b5 | 4739 | mbstate_t x; return sizeof x; |
18569462 AD |
4740 | ; |
4741 | return 0; | |
4742 | } | |
4743 | _ACEOF | |
4744 | rm -f conftest.$ac_objext | |
1e24cc5b | 4745 | if { (eval echo "$as_me:4745: \"$ac_compile\"") >&5 |
18569462 AD |
4746 | (eval $ac_compile) 2>&5 |
4747 | ac_status=$? | |
1e24cc5b | 4748 | echo "$as_me:4748: \$? = $ac_status" >&5 |
18569462 | 4749 | (exit $ac_status); } && |
5141b016 | 4750 | { ac_try='test -s conftest.$ac_objext' |
1e24cc5b | 4751 | { (eval echo "$as_me:4751: \"$ac_try\"") >&5 |
18569462 AD |
4752 | (eval $ac_try) 2>&5 |
4753 | ac_status=$? | |
1e24cc5b | 4754 | echo "$as_me:4754: \$? = $ac_status" >&5 |
18569462 | 4755 | (exit $ac_status); }; }; then |
705db0b5 AD |
4756 | ac_cv_type_mbstate_t=yes |
4757 | else | |
18569462 AD |
4758 | echo "$as_me: failed program was:" >&5 |
4759 | cat conftest.$ac_ext >&5 | |
4760 | ac_cv_type_mbstate_t=no | |
705db0b5 | 4761 | fi |
18569462 | 4762 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4763 | fi |
1e24cc5b | 4764 | echo "$as_me:4764: result: $ac_cv_type_mbstate_t" >&5 |
18569462 | 4765 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 |
705db0b5 | 4766 | if test $ac_cv_type_mbstate_t = no; then |
18569462 AD |
4767 | |
4768 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4769 | #define mbstate_t int |
4770 | EOF | |
4771 | ||
4772 | fi | |
705db0b5 | 4773 | |
1e24cc5b | 4774 | echo "$as_me:4774: checking for function prototypes" >&5 |
18569462 | 4775 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
705db0b5 | 4776 | if test "$am_cv_prog_cc_stdc" != no; then |
1e24cc5b | 4777 | echo "$as_me:4777: result: yes" >&5 |
18569462 AD |
4778 | echo "${ECHO_T}yes" >&6 |
4779 | ||
4780 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4781 | #define PROTOTYPES 1 |
4782 | EOF | |
4783 | ||
4784 | U= ANSI2KNR= | |
4785 | else | |
1e24cc5b | 4786 | echo "$as_me:4786: result: no" >&5 |
18569462 | 4787 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
4788 | U=_ ANSI2KNR=./ansi2knr |
4789 | # Ensure some checks needed by ansi2knr itself. | |
1e24cc5b | 4790 | echo "$as_me:4790: checking for ANSI C header files" >&5 |
18569462 AD |
4791 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4792 | if test "${ac_cv_header_stdc+set}" = set; then | |
4793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4794 | else |
18569462 | 4795 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4796 | #line 4796 "configure" |
705db0b5 AD |
4797 | #include "confdefs.h" |
4798 | #include <stdlib.h> | |
4799 | #include <stdarg.h> | |
4800 | #include <string.h> | |
4801 | #include <float.h> | |
18569462 AD |
4802 | |
4803 | _ACEOF | |
1e24cc5b AD |
4804 | if { (eval echo "$as_me:4804: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4805 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
4806 | ac_status=$? |
4807 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4808 | rm -f conftest.er1 | |
4809 | cat conftest.err >&5 | |
1e24cc5b AD |
4810 | echo "$as_me:4810: \$? = $ac_status" >&5 |
4811 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
4812 | if test -s conftest.err; then |
4813 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4814 | else | |
4815 | ac_cpp_err= | |
4816 | fi | |
4817 | else | |
4818 | ac_cpp_err=yes | |
4819 | fi | |
4820 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
4821 | ac_cv_header_stdc=yes |
4822 | else | |
18569462 | 4823 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 4824 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
4825 | ac_cv_header_stdc=no |
4826 | fi | |
18569462 | 4827 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
4828 | |
4829 | if test $ac_cv_header_stdc = yes; then | |
4830 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 4831 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4832 | #line 4832 "configure" |
705db0b5 AD |
4833 | #include "confdefs.h" |
4834 | #include <string.h> | |
18569462 AD |
4835 | |
4836 | _ACEOF | |
705db0b5 AD |
4837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4838 | egrep "memchr" >/dev/null 2>&1; then | |
4839 | : | |
4840 | else | |
705db0b5 AD |
4841 | ac_cv_header_stdc=no |
4842 | fi | |
4843 | rm -f conftest* | |
4844 | ||
4845 | fi | |
4846 | ||
4847 | if test $ac_cv_header_stdc = yes; then | |
4848 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 4849 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4850 | #line 4850 "configure" |
705db0b5 AD |
4851 | #include "confdefs.h" |
4852 | #include <stdlib.h> | |
18569462 AD |
4853 | |
4854 | _ACEOF | |
705db0b5 AD |
4855 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4856 | egrep "free" >/dev/null 2>&1; then | |
4857 | : | |
4858 | else | |
705db0b5 AD |
4859 | ac_cv_header_stdc=no |
4860 | fi | |
4861 | rm -f conftest* | |
4862 | ||
4863 | fi | |
4864 | ||
4865 | if test $ac_cv_header_stdc = yes; then | |
4866 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 4867 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
4868 | : |
4869 | else | |
18569462 | 4870 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4871 | #line 4871 "configure" |
705db0b5 AD |
4872 | #include "confdefs.h" |
4873 | #include <ctype.h> | |
18569462 AD |
4874 | #if ((' ' & 0x0FF) == 0x020) |
4875 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4876 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4877 | #else | |
4878 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4879 | || ('j' <= (c) && (c) <= 'r') \ | |
4880 | || ('s' <= (c) && (c) <= 'z')) | |
4881 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4882 | #endif | |
705db0b5 | 4883 | |
18569462 AD |
4884 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4885 | int | |
4886 | main () | |
4887 | { | |
4888 | int i; | |
4889 | for (i = 0; i < 256; i++) | |
4890 | if (XOR (islower (i), ISLOWER (i)) | |
4891 | || toupper (i) != TOUPPER (i)) | |
4892 | exit(2); | |
4893 | exit (0); | |
4894 | } | |
4895 | _ACEOF | |
4896 | rm -f conftest$ac_exeext | |
1e24cc5b | 4897 | if { (eval echo "$as_me:4897: \"$ac_link\"") >&5 |
18569462 AD |
4898 | (eval $ac_link) 2>&5 |
4899 | ac_status=$? | |
1e24cc5b | 4900 | echo "$as_me:4900: \$? = $ac_status" >&5 |
5141b016 | 4901 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
1e24cc5b | 4902 | { (eval echo "$as_me:4902: \"$ac_try\"") >&5 |
18569462 AD |
4903 | (eval $ac_try) 2>&5 |
4904 | ac_status=$? | |
1e24cc5b | 4905 | echo "$as_me:4905: \$? = $ac_status" >&5 |
18569462 | 4906 | (exit $ac_status); }; }; then |
705db0b5 AD |
4907 | : |
4908 | else | |
18569462 AD |
4909 | echo "$as_me: program exited with status $ac_status" >&5 |
4910 | echo "$as_me: failed program was:" >&5 | |
4911 | cat conftest.$ac_ext >&5 | |
4912 | ac_cv_header_stdc=no | |
705db0b5 | 4913 | fi |
1e24cc5b | 4914 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 4915 | fi |
705db0b5 AD |
4916 | fi |
4917 | fi | |
1e24cc5b | 4918 | echo "$as_me:4918: result: $ac_cv_header_stdc" >&5 |
18569462 | 4919 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 4920 | if test $ac_cv_header_stdc = yes; then |
18569462 AD |
4921 | |
4922 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4923 | #define STDC_HEADERS 1 |
4924 | EOF | |
4925 | ||
4926 | fi | |
4927 | ||
18569462 | 4928 | for ac_header in string.h |
705db0b5 | 4929 | do |
18569462 | 4930 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
1e24cc5b | 4931 | echo "$as_me:4931: checking for $ac_header" >&5 |
18569462 AD |
4932 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4933 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
4934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4935 | else | |
4936 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 4937 | #line 4937 "configure" |
705db0b5 | 4938 | #include "confdefs.h" |
18569462 AD |
4939 | #include <$ac_header> |
4940 | _ACEOF | |
1e24cc5b AD |
4941 | if { (eval echo "$as_me:4941: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4942 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
4943 | ac_status=$? |
4944 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4945 | rm -f conftest.er1 | |
4946 | cat conftest.err >&5 | |
1e24cc5b AD |
4947 | echo "$as_me:4947: \$? = $ac_status" >&5 |
4948 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
4949 | if test -s conftest.err; then |
4950 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4951 | else | |
4952 | ac_cpp_err= | |
4953 | fi | |
4954 | else | |
4955 | ac_cpp_err=yes | |
4956 | fi | |
4957 | if test -z "$ac_cpp_err"; then | |
4958 | eval "$ac_ac_Header=yes" | |
4959 | else | |
4960 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 4961 | cat conftest.$ac_ext >&5 |
18569462 | 4962 | eval "$ac_ac_Header=no" |
705db0b5 | 4963 | fi |
18569462 | 4964 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 4965 | fi |
1e24cc5b | 4966 | echo "$as_me:4966: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
4967 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
4968 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
4969 | cat >>confdefs.h <<EOF | |
4970 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 4971 | EOF |
18569462 | 4972 | |
705db0b5 AD |
4973 | fi |
4974 | done | |
4975 | ||
4976 | fi | |
4977 | ||
5141b016 AD |
4978 | for ac_func in strerror strerror_r vprintf doprnt |
4979 | do | |
4980 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
1e24cc5b | 4981 | echo "$as_me:4981: checking for $ac_func" >&5 |
5141b016 AD |
4982 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4983 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
18569462 | 4984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 | 4985 | else |
18569462 | 4986 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 4987 | #line 4987 "configure" |
705db0b5 | 4988 | #include "confdefs.h" |
5141b016 AD |
4989 | /* System header to define __stub macros and hopefully few prototypes, |
4990 | which can conflict with char $ac_func (); below. */ | |
4991 | #include <assert.h> | |
4992 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4993 | #ifdef __cplusplus | |
4994 | extern "C" | |
4995 | #endif | |
4996 | /* We use char because int might match the return type of a gcc2 | |
4997 | builtin and then its argument prototype would still apply. */ | |
4998 | char $ac_func (); | |
4999 | char (*f) (); | |
5000 | ||
18569462 AD |
5001 | int |
5002 | main () | |
5003 | { | |
5141b016 AD |
5004 | /* The GNU C library defines this for functions which it implements |
5005 | to always fail with ENOSYS. Some functions are actually named | |
5006 | something starting with __ and the normal name is an alias. */ | |
5007 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5008 | choke me | |
5009 | #else | |
5010 | f = $ac_func; | |
5011 | #endif | |
5012 | ||
18569462 AD |
5013 | ; |
5014 | return 0; | |
5015 | } | |
5016 | _ACEOF | |
5141b016 | 5017 | rm -f conftest.$ac_objext conftest$ac_exeext |
1e24cc5b | 5018 | if { (eval echo "$as_me:5018: \"$ac_link\"") >&5 |
5141b016 | 5019 | (eval $ac_link) 2>&5 |
18569462 | 5020 | ac_status=$? |
1e24cc5b | 5021 | echo "$as_me:5021: \$? = $ac_status" >&5 |
18569462 | 5022 | (exit $ac_status); } && |
5141b016 | 5023 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 5024 | { (eval echo "$as_me:5024: \"$ac_try\"") >&5 |
18569462 AD |
5025 | (eval $ac_try) 2>&5 |
5026 | ac_status=$? | |
1e24cc5b | 5027 | echo "$as_me:5027: \$? = $ac_status" >&5 |
18569462 | 5028 | (exit $ac_status); }; }; then |
5141b016 | 5029 | eval "$ac_ac_var=yes" |
705db0b5 | 5030 | else |
18569462 AD |
5031 | echo "$as_me: failed program was:" >&5 |
5032 | cat conftest.$ac_ext >&5 | |
5141b016 | 5033 | eval "$ac_ac_var=no" |
705db0b5 | 5034 | fi |
1e24cc5b | 5035 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 5036 | fi |
1e24cc5b | 5037 | echo "$as_me:5037: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
5141b016 AD |
5038 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
5039 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
5040 | cat >>confdefs.h <<EOF | |
5041 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 AD |
5042 | EOF |
5043 | ||
5044 | fi | |
5141b016 | 5045 | done |
705db0b5 | 5046 | |
1e24cc5b | 5047 | echo "$as_me:5047: checking for ANSI C header files" >&5 |
5141b016 AD |
5048 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5049 | if test "${ac_cv_header_stdc+set}" = set; then | |
18569462 AD |
5050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5051 | else | |
5052 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5053 | #line 5053 "configure" |
18569462 | 5054 | #include "confdefs.h" |
5141b016 AD |
5055 | #include <stdlib.h> |
5056 | #include <stdarg.h> | |
5057 | #include <string.h> | |
5058 | #include <float.h> | |
5059 | ||
18569462 | 5060 | _ACEOF |
1e24cc5b AD |
5061 | if { (eval echo "$as_me:5061: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5062 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 | 5063 | ac_status=$? |
5141b016 AD |
5064 | egrep -v '^ *\+' conftest.er1 >conftest.err |
5065 | rm -f conftest.er1 | |
5066 | cat conftest.err >&5 | |
1e24cc5b AD |
5067 | echo "$as_me:5067: \$? = $ac_status" >&5 |
5068 | (exit $ac_status); } >/dev/null; then | |
5141b016 AD |
5069 | if test -s conftest.err; then |
5070 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5071 | else | |
5072 | ac_cpp_err= | |
5073 | fi | |
705db0b5 | 5074 | else |
5141b016 | 5075 | ac_cpp_err=yes |
705db0b5 | 5076 | fi |
5141b016 AD |
5077 | if test -z "$ac_cpp_err"; then |
5078 | ac_cv_header_stdc=yes | |
18569462 | 5079 | else |
5141b016 AD |
5080 | echo "$as_me: failed program was:" >&5 |
5081 | cat conftest.$ac_ext >&5 | |
5082 | ac_cv_header_stdc=no | |
5083 | fi | |
5084 | rm -f conftest.err conftest.$ac_ext | |
18569462 | 5085 | |
5141b016 AD |
5086 | if test $ac_cv_header_stdc = yes; then |
5087 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5088 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5089 | #line 5089 "configure" |
5141b016 AD |
5090 | #include "confdefs.h" |
5091 | #include <string.h> | |
5092 | ||
5093 | _ACEOF | |
5094 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5095 | egrep "memchr" >/dev/null 2>&1; then | |
5096 | : | |
5097 | else | |
5098 | ac_cv_header_stdc=no | |
5099 | fi | |
5100 | rm -f conftest* | |
5101 | ||
5102 | fi | |
5103 | ||
5104 | if test $ac_cv_header_stdc = yes; then | |
5105 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5106 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5107 | #line 5107 "configure" |
5141b016 AD |
5108 | #include "confdefs.h" |
5109 | #include <stdlib.h> | |
5110 | ||
5111 | _ACEOF | |
5112 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5113 | egrep "free" >/dev/null 2>&1; then | |
5114 | : | |
5115 | else | |
5116 | ac_cv_header_stdc=no | |
5117 | fi | |
5118 | rm -f conftest* | |
5119 | ||
5120 | fi | |
5121 | ||
5122 | if test $ac_cv_header_stdc = yes; then | |
5123 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5124 | if test "$cross_compiling" = yes; then | |
5125 | : | |
5126 | else | |
5127 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5128 | #line 5128 "configure" |
5141b016 AD |
5129 | #include "confdefs.h" |
5130 | #include <ctype.h> | |
5131 | #if ((' ' & 0x0FF) == 0x020) | |
5132 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5133 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5134 | #else | |
5135 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
5136 | || ('j' <= (c) && (c) <= 'r') \ | |
5137 | || ('s' <= (c) && (c) <= 'z')) | |
5138 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5139 | #endif | |
5140 | ||
5141 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5142 | int | |
5143 | main () | |
5144 | { | |
5145 | int i; | |
5146 | for (i = 0; i < 256; i++) | |
5147 | if (XOR (islower (i), ISLOWER (i)) | |
5148 | || toupper (i) != TOUPPER (i)) | |
5149 | exit(2); | |
5150 | exit (0); | |
5151 | } | |
5152 | _ACEOF | |
5153 | rm -f conftest$ac_exeext | |
1e24cc5b | 5154 | if { (eval echo "$as_me:5154: \"$ac_link\"") >&5 |
5141b016 AD |
5155 | (eval $ac_link) 2>&5 |
5156 | ac_status=$? | |
1e24cc5b | 5157 | echo "$as_me:5157: \$? = $ac_status" >&5 |
5141b016 | 5158 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
1e24cc5b | 5159 | { (eval echo "$as_me:5159: \"$ac_try\"") >&5 |
5141b016 AD |
5160 | (eval $ac_try) 2>&5 |
5161 | ac_status=$? | |
1e24cc5b | 5162 | echo "$as_me:5162: \$? = $ac_status" >&5 |
5141b016 AD |
5163 | (exit $ac_status); }; }; then |
5164 | : | |
5165 | else | |
5166 | echo "$as_me: program exited with status $ac_status" >&5 | |
5167 | echo "$as_me: failed program was:" >&5 | |
5168 | cat conftest.$ac_ext >&5 | |
5169 | ac_cv_header_stdc=no | |
5170 | fi | |
1e24cc5b | 5171 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
5141b016 AD |
5172 | fi |
5173 | fi | |
5174 | fi | |
1e24cc5b | 5175 | echo "$as_me:5175: result: $ac_cv_header_stdc" >&5 |
5141b016 AD |
5176 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
5177 | if test $ac_cv_header_stdc = yes; then | |
5178 | ||
5179 | cat >>confdefs.h <<\EOF | |
5180 | #define STDC_HEADERS 1 | |
5181 | EOF | |
5182 | ||
5183 | fi | |
5184 | ||
1e24cc5b | 5185 | echo "$as_me:5185: checking whether strerror_r is declared" >&5 |
5141b016 AD |
5186 | echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6 |
5187 | if test "${ac_cv_have_decl_strerror_r+set}" = set; then | |
5188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5189 | else | |
5190 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5191 | #line 5191 "configure" |
5141b016 AD |
5192 | #include "confdefs.h" |
5193 | $ac_includes_default | |
5194 | int | |
5195 | main () | |
5196 | { | |
5197 | #ifndef strerror_r | |
5198 | char *p = (char *) strerror_r; | |
5199 | #endif | |
5200 | ||
5201 | ; | |
5202 | return 0; | |
5203 | } | |
5204 | _ACEOF | |
5205 | rm -f conftest.$ac_objext | |
1e24cc5b | 5206 | if { (eval echo "$as_me:5206: \"$ac_compile\"") >&5 |
5141b016 AD |
5207 | (eval $ac_compile) 2>&5 |
5208 | ac_status=$? | |
1e24cc5b | 5209 | echo "$as_me:5209: \$? = $ac_status" >&5 |
5141b016 AD |
5210 | (exit $ac_status); } && |
5211 | { ac_try='test -s conftest.$ac_objext' | |
1e24cc5b | 5212 | { (eval echo "$as_me:5212: \"$ac_try\"") >&5 |
5141b016 AD |
5213 | (eval $ac_try) 2>&5 |
5214 | ac_status=$? | |
1e24cc5b | 5215 | echo "$as_me:5215: \$? = $ac_status" >&5 |
5141b016 AD |
5216 | (exit $ac_status); }; }; then |
5217 | ac_cv_have_decl_strerror_r=yes | |
5218 | else | |
5219 | echo "$as_me: failed program was:" >&5 | |
5220 | cat conftest.$ac_ext >&5 | |
5221 | ac_cv_have_decl_strerror_r=no | |
5222 | fi | |
5223 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5224 | fi | |
1e24cc5b | 5225 | echo "$as_me:5225: result: $ac_cv_have_decl_strerror_r" >&5 |
5141b016 AD |
5226 | echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6 |
5227 | if test $ac_cv_have_decl_strerror_r = yes; then | |
5228 | ||
5229 | cat >>confdefs.h <<EOF | |
5230 | #define HAVE_DECL_STRERROR_R 1 | |
5231 | EOF | |
5232 | ||
5233 | else | |
5234 | cat >>confdefs.h <<EOF | |
5235 | #define HAVE_DECL_STRERROR_R 0 | |
5236 | EOF | |
5237 | ||
5238 | fi | |
5239 | ||
5240 | for ac_func in strerror_r | |
5241 | do | |
5242 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
1e24cc5b | 5243 | echo "$as_me:5243: checking for $ac_func" >&5 |
5141b016 AD |
5244 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5245 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
5246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5247 | else | |
5248 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5249 | #line 5249 "configure" |
5141b016 AD |
5250 | #include "confdefs.h" |
5251 | /* System header to define __stub macros and hopefully few prototypes, | |
5252 | which can conflict with char $ac_func (); below. */ | |
5253 | #include <assert.h> | |
5254 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5255 | #ifdef __cplusplus | |
5256 | extern "C" | |
5257 | #endif | |
5258 | /* We use char because int might match the return type of a gcc2 | |
5259 | builtin and then its argument prototype would still apply. */ | |
5260 | char $ac_func (); | |
5261 | char (*f) (); | |
5262 | ||
5263 | int | |
5264 | main () | |
5265 | { | |
5266 | /* The GNU C library defines this for functions which it implements | |
5267 | to always fail with ENOSYS. Some functions are actually named | |
5268 | something starting with __ and the normal name is an alias. */ | |
5269 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5270 | choke me | |
5271 | #else | |
5272 | f = $ac_func; | |
5273 | #endif | |
5274 | ||
5275 | ; | |
5276 | return 0; | |
5277 | } | |
5278 | _ACEOF | |
5279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 5280 | if { (eval echo "$as_me:5280: \"$ac_link\"") >&5 |
5141b016 AD |
5281 | (eval $ac_link) 2>&5 |
5282 | ac_status=$? | |
1e24cc5b | 5283 | echo "$as_me:5283: \$? = $ac_status" >&5 |
5141b016 AD |
5284 | (exit $ac_status); } && |
5285 | { ac_try='test -s conftest$ac_exeext' | |
1e24cc5b | 5286 | { (eval echo "$as_me:5286: \"$ac_try\"") >&5 |
5141b016 AD |
5287 | (eval $ac_try) 2>&5 |
5288 | ac_status=$? | |
1e24cc5b | 5289 | echo "$as_me:5289: \$? = $ac_status" >&5 |
5141b016 AD |
5290 | (exit $ac_status); }; }; then |
5291 | eval "$ac_ac_var=yes" | |
5292 | else | |
5293 | echo "$as_me: failed program was:" >&5 | |
5294 | cat conftest.$ac_ext >&5 | |
5295 | eval "$ac_ac_var=no" | |
5296 | fi | |
1e24cc5b | 5297 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5141b016 | 5298 | fi |
1e24cc5b | 5299 | echo "$as_me:5299: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
5141b016 AD |
5300 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
5301 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
5302 | cat >>confdefs.h <<EOF | |
5303 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
5304 | EOF | |
5305 | ||
5306 | fi | |
5307 | done | |
5308 | ||
5309 | if test $ac_cv_func_strerror_r = yes; then | |
5310 | ||
5311 | for ac_header in string.h | |
5312 | do | |
5313 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
1e24cc5b | 5314 | echo "$as_me:5314: checking for $ac_header" >&5 |
5141b016 AD |
5315 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5316 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
5317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5318 | else | |
5319 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5320 | #line 5320 "configure" |
5141b016 AD |
5321 | #include "confdefs.h" |
5322 | #include <$ac_header> | |
5323 | _ACEOF | |
1e24cc5b AD |
5324 | if { (eval echo "$as_me:5324: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5325 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5141b016 AD |
5326 | ac_status=$? |
5327 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5328 | rm -f conftest.er1 | |
5329 | cat conftest.err >&5 | |
1e24cc5b AD |
5330 | echo "$as_me:5330: \$? = $ac_status" >&5 |
5331 | (exit $ac_status); } >/dev/null; then | |
5141b016 AD |
5332 | if test -s conftest.err; then |
5333 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5334 | else | |
5335 | ac_cpp_err= | |
5336 | fi | |
5337 | else | |
5338 | ac_cpp_err=yes | |
5339 | fi | |
5340 | if test -z "$ac_cpp_err"; then | |
5341 | eval "$ac_ac_Header=yes" | |
5342 | else | |
5343 | echo "$as_me: failed program was:" >&5 | |
5344 | cat conftest.$ac_ext >&5 | |
5345 | eval "$ac_ac_Header=no" | |
5346 | fi | |
5347 | rm -f conftest.err conftest.$ac_ext | |
5348 | fi | |
1e24cc5b | 5349 | echo "$as_me:5349: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
5141b016 AD |
5350 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
5351 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
5352 | cat >>confdefs.h <<EOF | |
5353 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
5354 | EOF | |
5355 | ||
5356 | fi | |
5357 | done | |
5358 | ||
1e24cc5b | 5359 | echo "$as_me:5359: checking for working strerror_r" >&5 |
5141b016 AD |
5360 | echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6 |
5361 | if test "${ac_cv_func_strerror_r_works+set}" = set; then | |
5362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5363 | else | |
5364 | ||
5365 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5366 | #line 5366 "configure" |
5141b016 AD |
5367 | #include "confdefs.h" |
5368 | ||
5369 | # include <stdio.h> | |
5370 | # if HAVE_STRING_H | |
5371 | # include <string.h> | |
5372 | # endif | |
5373 | ||
5374 | int | |
5375 | main () | |
5376 | { | |
5377 | ||
5378 | char buf[100]; | |
5379 | char x = *strerror_r (0, buf, sizeof buf); | |
5380 | ||
5381 | ; | |
5382 | return 0; | |
5383 | } | |
5384 | _ACEOF | |
5385 | rm -f conftest.$ac_objext | |
1e24cc5b | 5386 | if { (eval echo "$as_me:5386: \"$ac_compile\"") >&5 |
5141b016 AD |
5387 | (eval $ac_compile) 2>&5 |
5388 | ac_status=$? | |
1e24cc5b | 5389 | echo "$as_me:5389: \$? = $ac_status" >&5 |
5141b016 AD |
5390 | (exit $ac_status); } && |
5391 | { ac_try='test -s conftest.$ac_objext' | |
1e24cc5b | 5392 | { (eval echo "$as_me:5392: \"$ac_try\"") >&5 |
5141b016 AD |
5393 | (eval $ac_try) 2>&5 |
5394 | ac_status=$? | |
1e24cc5b | 5395 | echo "$as_me:5395: \$? = $ac_status" >&5 |
5141b016 AD |
5396 | (exit $ac_status); }; }; then |
5397 | ac_cv_func_strerror_r_works=yes | |
5398 | else | |
5399 | echo "$as_me: failed program was:" >&5 | |
5400 | cat conftest.$ac_ext >&5 | |
5401 | ac_cv_func_strerror_r_works=no | |
5402 | ||
5403 | fi | |
5404 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5405 | if test $ac_cv_func_strerror_r_works = no; then | |
5406 | # strerror_r seems not to work, but now we have to choose between | |
5407 | # systems that have relatively inaccessible declarations for the | |
5408 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the | |
5409 | # former has a strerror_r that returns char*, while the latter | |
5410 | # has a strerror_r that returns `int'. | |
5411 | # This test should segfault on the DEC system. | |
5412 | if test "$cross_compiling" = yes; then | |
5413 | ac_cv_func_strerror_r_works=no | |
5414 | else | |
5415 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5416 | #line 5416 "configure" |
5141b016 AD |
5417 | #include "confdefs.h" |
5418 | ||
5419 | # include <stdio.h> | |
5420 | # include <string.h> | |
5421 | # include <ctype.h> | |
5422 | ||
5423 | extern char *strerror_r (); | |
5424 | ||
5425 | int | |
5426 | main () | |
5427 | { | |
5428 | char buf[100]; | |
5429 | char x = *strerror_r (0, buf, sizeof buf); | |
5430 | exit (!isalpha (x)); | |
5431 | } | |
5432 | ||
5433 | _ACEOF | |
5434 | rm -f conftest$ac_exeext | |
1e24cc5b | 5435 | if { (eval echo "$as_me:5435: \"$ac_link\"") >&5 |
5141b016 AD |
5436 | (eval $ac_link) 2>&5 |
5437 | ac_status=$? | |
1e24cc5b | 5438 | echo "$as_me:5438: \$? = $ac_status" >&5 |
5141b016 | 5439 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
1e24cc5b | 5440 | { (eval echo "$as_me:5440: \"$ac_try\"") >&5 |
5141b016 AD |
5441 | (eval $ac_try) 2>&5 |
5442 | ac_status=$? | |
1e24cc5b | 5443 | echo "$as_me:5443: \$? = $ac_status" >&5 |
5141b016 AD |
5444 | (exit $ac_status); }; }; then |
5445 | ac_cv_func_strerror_r_works=yes | |
5446 | else | |
5447 | echo "$as_me: program exited with status $ac_status" >&5 | |
5448 | echo "$as_me: failed program was:" >&5 | |
5449 | cat conftest.$ac_ext >&5 | |
5450 | ac_cv_func_strerror_r_works=no | |
5451 | fi | |
1e24cc5b | 5452 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
5141b016 AD |
5453 | fi |
5454 | fi | |
5455 | ||
5456 | fi | |
1e24cc5b | 5457 | echo "$as_me:5457: result: $ac_cv_func_strerror_r_works" >&5 |
5141b016 AD |
5458 | echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6 |
5459 | if test $ac_cv_func_strerror_r_works = yes; then | |
5460 | ||
5461 | cat >>confdefs.h <<EOF | |
5462 | #define HAVE_WORKING_STRERROR_R 1 | |
5463 | EOF | |
5464 | ||
5465 | fi | |
5466 | fi | |
5467 | ||
5468 | ALL_LINGUAS="de es et fr ja nl ru" | |
1e24cc5b AD |
5469 | # Make sure we can run config.sub. |
5470 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
5471 | { { echo "$as_me:5471: error: cannot run $ac_config_sub" >&5 | |
5472 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
5473 | { (exit 1); exit 1; }; } | |
5474 | ||
5475 | echo "$as_me:5475: checking build system type" >&5 | |
5476 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
5477 | if test "${ac_cv_build+set}" = set; then | |
5478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5479 | else | |
5480 | ac_cv_build_alias=$build_alias | |
5481 | test -z "$ac_cv_build_alias" && | |
5482 | ac_cv_build_alias=`$ac_config_guess` | |
5483 | test -z "$ac_cv_build_alias" && | |
5484 | { { echo "$as_me:5484: error: cannot guess build type; you must specify one" >&5 | |
5485 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
5486 | { (exit 1); exit 1; }; } | |
5487 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
5488 | { { echo "$as_me:5488: error: $ac_config_sub $ac_cv_build_alias failed." >&5 | |
5489 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} | |
5490 | { (exit 1); exit 1; }; } | |
5491 | ||
5492 | fi | |
5493 | echo "$as_me:5493: result: $ac_cv_build" >&5 | |
5494 | echo "${ECHO_T}$ac_cv_build" >&6 | |
5495 | build=$ac_cv_build | |
5496 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
5497 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
5498 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
5499 | ||
5500 | echo "$as_me:5500: checking host system type" >&5 | |
5501 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
5502 | if test "${ac_cv_host+set}" = set; then | |
5503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5504 | else | |
5505 | ac_cv_host_alias=$host_alias | |
5506 | test -z "$ac_cv_host_alias" && | |
5507 | ac_cv_host_alias=$ac_cv_build_alias | |
5508 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
5509 | { { echo "$as_me:5509: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
5510 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
5511 | { (exit 1); exit 1; }; } | |
5512 | ||
5513 | fi | |
5514 | echo "$as_me:5514: result: $ac_cv_host" >&5 | |
5515 | echo "${ECHO_T}$ac_cv_host" >&6 | |
5516 | host=$ac_cv_host | |
5517 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
5518 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
5519 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
5520 | ||
5521 | echo "$as_me:5521: checking for off_t" >&5 | |
5141b016 AD |
5522 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
5523 | if test "${ac_cv_type_off_t+set}" = set; then | |
5524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5525 | else | |
5526 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5527 | #line 5527 "configure" |
5141b016 AD |
5528 | #include "confdefs.h" |
5529 | $ac_includes_default | |
5530 | int | |
5531 | main () | |
5532 | { | |
5533 | if ((off_t *) 0) | |
5534 | return 0; | |
5535 | if (sizeof (off_t)) | |
5536 | return 0; | |
5537 | ; | |
5538 | return 0; | |
5539 | } | |
5540 | _ACEOF | |
5541 | rm -f conftest.$ac_objext | |
1e24cc5b | 5542 | if { (eval echo "$as_me:5542: \"$ac_compile\"") >&5 |
5141b016 AD |
5543 | (eval $ac_compile) 2>&5 |
5544 | ac_status=$? | |
1e24cc5b | 5545 | echo "$as_me:5545: \$? = $ac_status" >&5 |
5141b016 AD |
5546 | (exit $ac_status); } && |
5547 | { ac_try='test -s conftest.$ac_objext' | |
1e24cc5b | 5548 | { (eval echo "$as_me:5548: \"$ac_try\"") >&5 |
5141b016 AD |
5549 | (eval $ac_try) 2>&5 |
5550 | ac_status=$? | |
1e24cc5b | 5551 | echo "$as_me:5551: \$? = $ac_status" >&5 |
5141b016 AD |
5552 | (exit $ac_status); }; }; then |
5553 | ac_cv_type_off_t=yes | |
5554 | else | |
5555 | echo "$as_me: failed program was:" >&5 | |
5556 | cat conftest.$ac_ext >&5 | |
5557 | ac_cv_type_off_t=no | |
5558 | fi | |
5559 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5560 | fi | |
1e24cc5b | 5561 | echo "$as_me:5561: result: $ac_cv_type_off_t" >&5 |
5141b016 AD |
5562 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
5563 | if test $ac_cv_type_off_t = yes; then | |
5564 | : | |
5565 | else | |
5566 | ||
5567 | cat >>confdefs.h <<EOF | |
5568 | #define off_t long | |
5569 | EOF | |
5570 | ||
5571 | fi | |
5572 | ||
1e24cc5b | 5573 | echo "$as_me:5573: checking for size_t" >&5 |
5141b016 AD |
5574 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
5575 | if test "${ac_cv_type_size_t+set}" = set; then | |
5576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5577 | else | |
5578 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5579 | #line 5579 "configure" |
5141b016 AD |
5580 | #include "confdefs.h" |
5581 | $ac_includes_default | |
5582 | int | |
5583 | main () | |
5584 | { | |
5585 | if ((size_t *) 0) | |
5586 | return 0; | |
5587 | if (sizeof (size_t)) | |
5588 | return 0; | |
5589 | ; | |
5590 | return 0; | |
5591 | } | |
5592 | _ACEOF | |
5593 | rm -f conftest.$ac_objext | |
1e24cc5b | 5594 | if { (eval echo "$as_me:5594: \"$ac_compile\"") >&5 |
5141b016 AD |
5595 | (eval $ac_compile) 2>&5 |
5596 | ac_status=$? | |
1e24cc5b | 5597 | echo "$as_me:5597: \$? = $ac_status" >&5 |
5141b016 AD |
5598 | (exit $ac_status); } && |
5599 | { ac_try='test -s conftest.$ac_objext' | |
1e24cc5b | 5600 | { (eval echo "$as_me:5600: \"$ac_try\"") >&5 |
5141b016 AD |
5601 | (eval $ac_try) 2>&5 |
5602 | ac_status=$? | |
1e24cc5b | 5603 | echo "$as_me:5603: \$? = $ac_status" >&5 |
5141b016 AD |
5604 | (exit $ac_status); }; }; then |
5605 | ac_cv_type_size_t=yes | |
5606 | else | |
5607 | echo "$as_me: failed program was:" >&5 | |
5608 | cat conftest.$ac_ext >&5 | |
5609 | ac_cv_type_size_t=no | |
5610 | fi | |
5611 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5612 | fi | |
1e24cc5b | 5613 | echo "$as_me:5613: result: $ac_cv_type_size_t" >&5 |
5141b016 AD |
5614 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
5615 | if test $ac_cv_type_size_t = yes; then | |
5616 | : | |
5617 | else | |
5618 | ||
5619 | cat >>confdefs.h <<EOF | |
705db0b5 AD |
5620 | #define size_t unsigned |
5621 | EOF | |
5622 | ||
5623 | fi | |
5624 | ||
18569462 | 5625 | for ac_header in stdlib.h unistd.h |
705db0b5 | 5626 | do |
18569462 | 5627 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
1e24cc5b | 5628 | echo "$as_me:5628: checking for $ac_header" >&5 |
18569462 AD |
5629 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5630 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
5631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5632 | else | |
5633 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5634 | #line 5634 "configure" |
705db0b5 | 5635 | #include "confdefs.h" |
18569462 AD |
5636 | #include <$ac_header> |
5637 | _ACEOF | |
1e24cc5b AD |
5638 | if { (eval echo "$as_me:5638: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5639 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
5640 | ac_status=$? |
5641 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5642 | rm -f conftest.er1 | |
5643 | cat conftest.err >&5 | |
1e24cc5b AD |
5644 | echo "$as_me:5644: \$? = $ac_status" >&5 |
5645 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
5646 | if test -s conftest.err; then |
5647 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5648 | else | |
5649 | ac_cpp_err= | |
5650 | fi | |
5651 | else | |
5652 | ac_cpp_err=yes | |
5653 | fi | |
5654 | if test -z "$ac_cpp_err"; then | |
5655 | eval "$ac_ac_Header=yes" | |
5656 | else | |
5657 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 5658 | cat conftest.$ac_ext >&5 |
18569462 | 5659 | eval "$ac_ac_Header=no" |
705db0b5 | 5660 | fi |
18569462 | 5661 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 5662 | fi |
1e24cc5b | 5663 | echo "$as_me:5663: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
5664 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
5665 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
5666 | cat >>confdefs.h <<EOF | |
5667 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 5668 | EOF |
18569462 | 5669 | |
705db0b5 AD |
5670 | fi |
5671 | done | |
5672 | ||
5673 | for ac_func in getpagesize | |
5674 | do | |
18569462 | 5675 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
1e24cc5b | 5676 | echo "$as_me:5676: checking for $ac_func" >&5 |
18569462 AD |
5677 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5678 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
5679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5680 | else | |
5681 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5682 | #line 5682 "configure" |
705db0b5 AD |
5683 | #include "confdefs.h" |
5684 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 5685 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
5686 | #include <assert.h> |
5687 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
5688 | #ifdef __cplusplus |
5689 | extern "C" | |
5690 | #endif | |
705db0b5 | 5691 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
5692 | builtin and then its argument prototype would still apply. */ |
5693 | char $ac_func (); | |
5694 | char (*f) (); | |
705db0b5 | 5695 | |
18569462 AD |
5696 | int |
5697 | main () | |
5698 | { | |
705db0b5 AD |
5699 | /* The GNU C library defines this for functions which it implements |
5700 | to always fail with ENOSYS. Some functions are actually named | |
5701 | something starting with __ and the normal name is an alias. */ | |
5702 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5703 | choke me | |
5704 | #else | |
18569462 | 5705 | f = $ac_func; |
705db0b5 AD |
5706 | #endif |
5707 | ||
18569462 AD |
5708 | ; |
5709 | return 0; | |
5710 | } | |
5711 | _ACEOF | |
5712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 5713 | if { (eval echo "$as_me:5713: \"$ac_link\"") >&5 |
18569462 AD |
5714 | (eval $ac_link) 2>&5 |
5715 | ac_status=$? | |
1e24cc5b | 5716 | echo "$as_me:5716: \$? = $ac_status" >&5 |
18569462 | 5717 | (exit $ac_status); } && |
5141b016 | 5718 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 5719 | { (eval echo "$as_me:5719: \"$ac_try\"") >&5 |
18569462 AD |
5720 | (eval $ac_try) 2>&5 |
5721 | ac_status=$? | |
1e24cc5b | 5722 | echo "$as_me:5722: \$? = $ac_status" >&5 |
18569462 AD |
5723 | (exit $ac_status); }; }; then |
5724 | eval "$ac_ac_var=yes" | |
5725 | else | |
5726 | echo "$as_me: failed program was:" >&5 | |
5727 | cat conftest.$ac_ext >&5 | |
5728 | eval "$ac_ac_var=no" | |
5729 | fi | |
1e24cc5b | 5730 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 5731 | fi |
1e24cc5b | 5732 | echo "$as_me:5732: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
5733 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
5734 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
5735 | cat >>confdefs.h <<EOF | |
5736 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 | 5737 | EOF |
705db0b5 | 5738 | |
705db0b5 AD |
5739 | fi |
5740 | done | |
5741 | ||
1e24cc5b | 5742 | echo "$as_me:5742: checking for working mmap" >&5 |
18569462 AD |
5743 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
5744 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
5745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
5746 | else |
5747 | if test "$cross_compiling" = yes; then | |
5748 | ac_cv_func_mmap_fixed_mapped=no | |
5749 | else | |
18569462 | 5750 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 5751 | #line 5751 "configure" |
705db0b5 | 5752 | #include "confdefs.h" |
705db0b5 AD |
5753 | /* Thanks to Mike Haertel and Jim Avera for this test. |
5754 | Here is a matrix of mmap possibilities: | |
5755 | mmap private not fixed | |
5756 | mmap private fixed at somewhere currently unmapped | |
5757 | mmap private fixed at somewhere already mapped | |
5758 | mmap shared not fixed | |
5759 | mmap shared fixed at somewhere currently unmapped | |
5760 | mmap shared fixed at somewhere already mapped | |
5761 | For private mappings, we should verify that changes cannot be read() | |
5762 | back from the file, nor mmap's back from the file at a different | |
5763 | address. (There have been systems where private was not correctly | |
5764 | implemented like the infamous i386 svr4.0, and systems where the | |
18569462 | 5765 | VM page cache was not coherent with the file system buffer cache |
705db0b5 AD |
5766 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
5767 | For shared mappings, we should conversely verify that changes get | |
5768 | propogated back to all the places they're supposed to be. | |
5769 | ||
5770 | Grep wants private fixed already mapped. | |
5771 | The main things grep needs to know about mmap are: | |
5772 | * does it exist and is it safe to write into the mmap'd area | |
5773 | * how to use it (BSD variants) */ | |
5774 | #include <sys/types.h> | |
5775 | #include <fcntl.h> | |
5776 | #include <sys/mman.h> | |
705db0b5 | 5777 | |
18569462 AD |
5778 | #if STDC_HEADERS || HAVE_STDLIB_H |
5779 | # include <stdlib.h> | |
5780 | #else | |
5781 | char *malloc (); | |
5782 | #endif | |
5783 | #if HAVE_UNISTD_H | |
705db0b5 AD |
5784 | # include <unistd.h> |
5785 | #endif | |
18569462 | 5786 | #include <sys/stat.h> |
705db0b5 AD |
5787 | |
5788 | /* This mess was copied from the GNU getpagesize.h. */ | |
18569462 | 5789 | #if !HAVE_GETPAGESIZE |
705db0b5 | 5790 | /* Assume that all systems that can run configure have sys/param.h. */ |
18569462 | 5791 | # if !HAVE_SYS_PARAM_H |
705db0b5 AD |
5792 | # define HAVE_SYS_PARAM_H 1 |
5793 | # endif | |
5794 | ||
5795 | # ifdef _SC_PAGESIZE | |
5796 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
5797 | # else /* no _SC_PAGESIZE */ | |
18569462 | 5798 | # if HAVE_SYS_PARAM_H |
705db0b5 AD |
5799 | # include <sys/param.h> |
5800 | # ifdef EXEC_PAGESIZE | |
5801 | # define getpagesize() EXEC_PAGESIZE | |
5802 | # else /* no EXEC_PAGESIZE */ | |
5803 | # ifdef NBPG | |
5804 | # define getpagesize() NBPG * CLSIZE | |
5805 | # ifndef CLSIZE | |
5806 | # define CLSIZE 1 | |
5807 | # endif /* no CLSIZE */ | |
5808 | # else /* no NBPG */ | |
5809 | # ifdef NBPC | |
5810 | # define getpagesize() NBPC | |
5811 | # else /* no NBPC */ | |
5812 | # ifdef PAGESIZE | |
5813 | # define getpagesize() PAGESIZE | |
5814 | # endif /* PAGESIZE */ | |
5815 | # endif /* no NBPC */ | |
5816 | # endif /* no NBPG */ | |
5817 | # endif /* no EXEC_PAGESIZE */ | |
5818 | # else /* no HAVE_SYS_PARAM_H */ | |
5819 | # define getpagesize() 8192 /* punt totally */ | |
5820 | # endif /* no HAVE_SYS_PARAM_H */ | |
5821 | # endif /* no _SC_PAGESIZE */ | |
5822 | ||
5823 | #endif /* no HAVE_GETPAGESIZE */ | |
5824 | ||
705db0b5 | 5825 | int |
18569462 | 5826 | main () |
705db0b5 | 5827 | { |
18569462 AD |
5828 | char *data, *data2, *data3; |
5829 | int i, pagesize; | |
5830 | int fd; | |
5831 | ||
5832 | pagesize = getpagesize (); | |
5833 | ||
5834 | /* First, make a file with some known garbage in it. */ | |
5835 | data = (char *) malloc (pagesize); | |
5836 | if (!data) | |
5837 | exit (1); | |
5838 | for (i = 0; i < pagesize; ++i) | |
5839 | *(data + i) = rand (); | |
5840 | umask (0); | |
5841 | fd = creat ("conftest.mmap", 0600); | |
5842 | if (fd < 0) | |
5843 | exit (1); | |
5844 | if (write (fd, data, pagesize) != pagesize) | |
5845 | exit (1); | |
5846 | close (fd); | |
5847 | ||
5848 | /* Next, try to mmap the file at a fixed address which already has | |
5849 | something else allocated at it. If we can, also make sure that | |
5850 | we see the same garbage. */ | |
5851 | fd = open ("conftest.mmap", O_RDWR); | |
5852 | if (fd < 0) | |
5853 | exit (1); | |
5854 | data2 = (char *) malloc (2 * pagesize); | |
5855 | if (!data2) | |
5856 | exit (1); | |
5857 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
5858 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5859 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5860 | exit (1); | |
5861 | for (i = 0; i < pagesize; ++i) | |
5862 | if (*(data + i) != *(data2 + i)) | |
5863 | exit (1); | |
5864 | ||
5865 | /* Finally, make sure that changes to the mapped area do not | |
5866 | percolate back to the file as seen by read(). (This is a bug on | |
5867 | some variants of i386 svr4.0.) */ | |
5868 | for (i = 0; i < pagesize; ++i) | |
5869 | *(data2 + i) = *(data2 + i) + 1; | |
5870 | data3 = (char *) malloc (pagesize); | |
5871 | if (!data3) | |
5872 | exit (1); | |
5873 | if (read (fd, data3, pagesize) != pagesize) | |
5874 | exit (1); | |
5875 | for (i = 0; i < pagesize; ++i) | |
5876 | if (*(data + i) != *(data3 + i)) | |
5877 | exit (1); | |
5878 | close (fd); | |
5879 | exit (0); | |
705db0b5 | 5880 | } |
18569462 AD |
5881 | _ACEOF |
5882 | rm -f conftest$ac_exeext | |
1e24cc5b | 5883 | if { (eval echo "$as_me:5883: \"$ac_link\"") >&5 |
18569462 AD |
5884 | (eval $ac_link) 2>&5 |
5885 | ac_status=$? | |
1e24cc5b | 5886 | echo "$as_me:5886: \$? = $ac_status" >&5 |
5141b016 | 5887 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
1e24cc5b | 5888 | { (eval echo "$as_me:5888: \"$ac_try\"") >&5 |
18569462 AD |
5889 | (eval $ac_try) 2>&5 |
5890 | ac_status=$? | |
1e24cc5b | 5891 | echo "$as_me:5891: \$? = $ac_status" >&5 |
18569462 | 5892 | (exit $ac_status); }; }; then |
705db0b5 AD |
5893 | ac_cv_func_mmap_fixed_mapped=yes |
5894 | else | |
18569462 AD |
5895 | echo "$as_me: program exited with status $ac_status" >&5 |
5896 | echo "$as_me: failed program was:" >&5 | |
5897 | cat conftest.$ac_ext >&5 | |
5898 | ac_cv_func_mmap_fixed_mapped=no | |
705db0b5 | 5899 | fi |
1e24cc5b | 5900 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 5901 | fi |
705db0b5 | 5902 | fi |
1e24cc5b | 5903 | echo "$as_me:5903: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
18569462 | 5904 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
705db0b5 | 5905 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
18569462 AD |
5906 | |
5907 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
5908 | #define HAVE_MMAP 1 |
5909 | EOF | |
5910 | ||
5911 | fi | |
18569462 | 5912 | rm -f conftest.mmap |
705db0b5 | 5913 | |
1e24cc5b AD |
5914 | echo "$as_me:5914: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
5915 | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 | |
5916 | if test "${ac_cv_gnu_library_2_1+set}" = set; then | |
5917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5918 | else | |
5919 | cat >conftest.$ac_ext <<_ACEOF | |
5920 | #line 5920 "configure" | |
5921 | #include "confdefs.h" | |
5922 | ||
5923 | #include <features.h> | |
5924 | #ifdef __GNU_LIBRARY__ | |
5925 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
5926 | Lucky GNU user | |
5927 | #endif | |
5928 | #endif | |
5929 | ||
5930 | _ACEOF | |
5931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5932 | egrep "Lucky GNU user" >/dev/null 2>&1; then | |
5933 | ac_cv_gnu_library_2_1=yes | |
5934 | else | |
5935 | ac_cv_gnu_library_2_1=no | |
5936 | fi | |
5937 | rm -f conftest* | |
5938 | ||
5939 | fi | |
5940 | echo "$as_me:5940: result: $ac_cv_gnu_library_2_1" >&5 | |
5941 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 | |
5942 | ||
5943 | GLIBC21="$ac_cv_gnu_library_2_1" | |
5944 | ||
5945 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
5946 | stdlib.h string.h unistd.h sys/param.h | |
705db0b5 | 5947 | do |
18569462 | 5948 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
1e24cc5b | 5949 | echo "$as_me:5949: checking for $ac_header" >&5 |
18569462 AD |
5950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5951 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
5952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5953 | else | |
5954 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 5955 | #line 5955 "configure" |
705db0b5 | 5956 | #include "confdefs.h" |
18569462 AD |
5957 | #include <$ac_header> |
5958 | _ACEOF | |
1e24cc5b AD |
5959 | if { (eval echo "$as_me:5959: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5960 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
5961 | ac_status=$? |
5962 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5963 | rm -f conftest.er1 | |
5964 | cat conftest.err >&5 | |
1e24cc5b AD |
5965 | echo "$as_me:5965: \$? = $ac_status" >&5 |
5966 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
5967 | if test -s conftest.err; then |
5968 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5969 | else | |
5970 | ac_cpp_err= | |
5971 | fi | |
5972 | else | |
5973 | ac_cpp_err=yes | |
5974 | fi | |
5975 | if test -z "$ac_cpp_err"; then | |
5976 | eval "$ac_ac_Header=yes" | |
5977 | else | |
5978 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 5979 | cat conftest.$ac_ext >&5 |
18569462 | 5980 | eval "$ac_ac_Header=no" |
705db0b5 | 5981 | fi |
18569462 | 5982 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 5983 | fi |
1e24cc5b | 5984 | echo "$as_me:5984: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
5985 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
5986 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
5987 | cat >>confdefs.h <<EOF | |
5988 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 5989 | EOF |
18569462 | 5990 | |
705db0b5 AD |
5991 | fi |
5992 | done | |
5993 | ||
1e24cc5b AD |
5994 | for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \ |
5995 | getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ | |
5996 | strdup strtoul tsearch __argz_count __argz_stringify __argz_next | |
705db0b5 | 5997 | do |
18569462 | 5998 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
1e24cc5b | 5999 | echo "$as_me:5999: checking for $ac_func" >&5 |
18569462 AD |
6000 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6001 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
6002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6003 | else | |
6004 | cat >conftest.$ac_ext <<_ACEOF | |
1e24cc5b | 6005 | #line 6005 "configure" |
705db0b5 AD |
6006 | #include "confdefs.h" |
6007 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 6008 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
6009 | #include <assert.h> |
6010 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
6011 | #ifdef __cplusplus |
6012 | extern "C" | |
6013 | #endif | |
705db0b5 | 6014 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
6015 | builtin and then its argument prototype would still apply. */ |
6016 | char $ac_func (); | |
6017 | char (*f) (); | |
705db0b5 | 6018 | |
18569462 AD |
6019 | int |
6020 | main () | |
6021 | { | |
705db0b5 AD |
6022 | /* The GNU C library defines this for functions which it implements |
6023 | to always fail with ENOSYS. Some functions are actually named | |
6024 | something starting with __ and the normal name is an alias. */ | |
6025 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6026 | choke me | |
6027 | #else | |
18569462 | 6028 | f = $ac_func; |
705db0b5 AD |
6029 | #endif |
6030 | ||
18569462 AD |
6031 | ; |
6032 | return 0; | |
6033 | } | |
6034 | _ACEOF | |
6035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 6036 | if { (eval echo "$as_me:6036: \"$ac_link\"") >&5 |
18569462 AD |
6037 | (eval $ac_link) 2>&5 |
6038 | ac_status=$? | |
1e24cc5b | 6039 | echo "$as_me:6039: \$? = $ac_status" >&5 |
18569462 | 6040 | (exit $ac_status); } && |
5141b016 | 6041 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 6042 | { (eval echo "$as_me:6042: \"$ac_try\"") >&5 |
18569462 AD |
6043 | (eval $ac_try) 2>&5 |
6044 | ac_status=$? | |
1e24cc5b | 6045 | echo "$as_me:6045: \$? = $ac_status" >&5 |
18569462 AD |
6046 | (exit $ac_status); }; }; then |
6047 | eval "$ac_ac_var=yes" | |
6048 | else | |
6049 | echo "$as_me: failed program was:" >&5 | |
6050 | cat conftest.$ac_ext >&5 | |
6051 | eval "$ac_ac_var=no" | |
6052 | fi | |
1e24cc5b | 6053 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 6054 | fi |
1e24cc5b | 6055 | echo "$as_me:6055: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
6056 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
6057 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
6058 | cat >>confdefs.h <<EOF | |
6059 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 | 6060 | EOF |
705db0b5 | 6061 | |
705db0b5 AD |
6062 | fi |
6063 | done | |
6064 | ||
1e24cc5b AD |
6065 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
6066 | if test "${with_libiconv_prefix+set}" = set; then | |
6067 | withval="$with_libiconv_prefix" | |
18569462 | 6068 | |
1e24cc5b AD |
6069 | for dir in `echo "$withval" | tr : ' '`; do |
6070 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
6071 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
6072 | done | |
6073 | ||
6074 | fi; | |
6075 | ||
6076 | echo "$as_me:6076: checking for iconv" >&5 | |
6077 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
6078 | if test "${am_cv_func_iconv+set}" = set; then | |
18569462 AD |
6079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6080 | else | |
1e24cc5b AD |
6081 | |
6082 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
6083 | am_cv_lib_iconv=no | |
6084 | cat >conftest.$ac_ext <<_ACEOF | |
6085 | #line 6085 "configure" | |
705db0b5 | 6086 | #include "confdefs.h" |
1e24cc5b AD |
6087 | #include <stdlib.h> |
6088 | #include <iconv.h> | |
6089 | int | |
6090 | main () | |
6091 | { | |
6092 | iconv_t cd = iconv_open("",""); | |
6093 | iconv(cd,NULL,NULL,NULL,NULL); | |
6094 | iconv_close(cd); | |
6095 | ; | |
6096 | return 0; | |
6097 | } | |
6098 | _ACEOF | |
6099 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6100 | if { (eval echo "$as_me:6100: \"$ac_link\"") >&5 | |
6101 | (eval $ac_link) 2>&5 | |
6102 | ac_status=$? | |
6103 | echo "$as_me:6103: \$? = $ac_status" >&5 | |
6104 | (exit $ac_status); } && | |
6105 | { ac_try='test -s conftest$ac_exeext' | |
6106 | { (eval echo "$as_me:6106: \"$ac_try\"") >&5 | |
6107 | (eval $ac_try) 2>&5 | |
6108 | ac_status=$? | |
6109 | echo "$as_me:6109: \$? = $ac_status" >&5 | |
6110 | (exit $ac_status); }; }; then | |
6111 | am_cv_func_iconv=yes | |
6112 | else | |
6113 | echo "$as_me: failed program was:" >&5 | |
6114 | cat conftest.$ac_ext >&5 | |
6115 | fi | |
6116 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6117 | if test "$am_cv_func_iconv" != yes; then | |
6118 | am_save_LIBS="$LIBS" | |
6119 | LIBS="$LIBS -liconv" | |
6120 | cat >conftest.$ac_ext <<_ACEOF | |
6121 | #line 6121 "configure" | |
6122 | #include "confdefs.h" | |
6123 | #include <stdlib.h> | |
6124 | #include <iconv.h> | |
6125 | int | |
6126 | main () | |
6127 | { | |
6128 | iconv_t cd = iconv_open("",""); | |
6129 | iconv(cd,NULL,NULL,NULL,NULL); | |
6130 | iconv_close(cd); | |
6131 | ; | |
6132 | return 0; | |
6133 | } | |
6134 | _ACEOF | |
6135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6136 | if { (eval echo "$as_me:6136: \"$ac_link\"") >&5 | |
6137 | (eval $ac_link) 2>&5 | |
6138 | ac_status=$? | |
6139 | echo "$as_me:6139: \$? = $ac_status" >&5 | |
6140 | (exit $ac_status); } && | |
6141 | { ac_try='test -s conftest$ac_exeext' | |
6142 | { (eval echo "$as_me:6142: \"$ac_try\"") >&5 | |
6143 | (eval $ac_try) 2>&5 | |
6144 | ac_status=$? | |
6145 | echo "$as_me:6145: \$? = $ac_status" >&5 | |
6146 | (exit $ac_status); }; }; then | |
6147 | am_cv_lib_iconv=yes | |
6148 | am_cv_func_iconv=yes | |
6149 | else | |
6150 | echo "$as_me: failed program was:" >&5 | |
6151 | cat conftest.$ac_ext >&5 | |
6152 | fi | |
6153 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6154 | LIBS="$am_save_LIBS" | |
6155 | fi | |
6156 | ||
6157 | fi | |
6158 | echo "$as_me:6158: result: $am_cv_func_iconv" >&5 | |
6159 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
6160 | if test "$am_cv_func_iconv" = yes; then | |
6161 | ||
6162 | cat >>confdefs.h <<\EOF | |
6163 | #define HAVE_ICONV 1 | |
6164 | EOF | |
6165 | ||
6166 | echo "$as_me:6166: checking for iconv declaration" >&5 | |
6167 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
6168 | if test "${am_cv_proto_iconv+set}" = set; then | |
6169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6170 | else | |
6171 | ||
6172 | cat >conftest.$ac_ext <<_ACEOF | |
6173 | #line 6173 "configure" | |
6174 | #include "confdefs.h" | |
6175 | ||
6176 | #include <stdlib.h> | |
6177 | #include <iconv.h> | |
6178 | extern | |
18569462 | 6179 | #ifdef __cplusplus |
1e24cc5b AD |
6180 | "C" |
6181 | #endif | |
6182 | #if defined(__STDC__) || defined(__cplusplus) | |
6183 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
6184 | #else | |
6185 | size_t iconv(); | |
18569462 | 6186 | #endif |
705db0b5 | 6187 | |
18569462 AD |
6188 | int |
6189 | main () | |
6190 | { | |
705db0b5 | 6191 | |
18569462 AD |
6192 | ; |
6193 | return 0; | |
6194 | } | |
6195 | _ACEOF | |
1e24cc5b AD |
6196 | rm -f conftest.$ac_objext |
6197 | if { (eval echo "$as_me:6197: \"$ac_compile\"") >&5 | |
6198 | (eval $ac_compile) 2>&5 | |
18569462 | 6199 | ac_status=$? |
1e24cc5b | 6200 | echo "$as_me:6200: \$? = $ac_status" >&5 |
18569462 | 6201 | (exit $ac_status); } && |
1e24cc5b AD |
6202 | { ac_try='test -s conftest.$ac_objext' |
6203 | { (eval echo "$as_me:6203: \"$ac_try\"") >&5 | |
18569462 AD |
6204 | (eval $ac_try) 2>&5 |
6205 | ac_status=$? | |
1e24cc5b | 6206 | echo "$as_me:6206: \$? = $ac_status" >&5 |
18569462 | 6207 | (exit $ac_status); }; }; then |
1e24cc5b | 6208 | am_cv_proto_iconv_arg1="" |
18569462 AD |
6209 | else |
6210 | echo "$as_me: failed program was:" >&5 | |
6211 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 6212 | am_cv_proto_iconv_arg1="const" |
18569462 | 6213 | fi |
1e24cc5b AD |
6214 | rm -f conftest.$ac_objext conftest.$ac_ext |
6215 | 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 | 6216 | fi |
1e24cc5b AD |
6217 | |
6218 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
6219 | echo "$as_me:6219: result: ${ac_t:- | |
6220 | }$am_cv_proto_iconv" >&5 | |
6221 | echo "${ECHO_T}${ac_t:- | |
6222 | }$am_cv_proto_iconv" >&6 | |
6223 | ||
6224 | cat >>confdefs.h <<EOF | |
6225 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
705db0b5 | 6226 | EOF |
705db0b5 | 6227 | |
1e24cc5b AD |
6228 | fi |
6229 | LIBICONV= | |
6230 | if test "$am_cv_lib_iconv" = yes; then | |
6231 | LIBICONV="-liconv" | |
6232 | fi | |
6233 | ||
6234 | echo "$as_me:6234: checking for nl_langinfo and CODESET" >&5 | |
6235 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 | |
6236 | if test "${am_cv_langinfo_codeset+set}" = set; then | |
6237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6238 | else | |
6239 | cat >conftest.$ac_ext <<_ACEOF | |
6240 | #line 6240 "configure" | |
6241 | #include "confdefs.h" | |
6242 | #include <langinfo.h> | |
6243 | int | |
6244 | main () | |
6245 | { | |
6246 | char* cs = nl_langinfo(CODESET); | |
6247 | ; | |
6248 | return 0; | |
6249 | } | |
6250 | _ACEOF | |
6251 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6252 | if { (eval echo "$as_me:6252: \"$ac_link\"") >&5 | |
6253 | (eval $ac_link) 2>&5 | |
6254 | ac_status=$? | |
6255 | echo "$as_me:6255: \$? = $ac_status" >&5 | |
6256 | (exit $ac_status); } && | |
6257 | { ac_try='test -s conftest$ac_exeext' | |
6258 | { (eval echo "$as_me:6258: \"$ac_try\"") >&5 | |
6259 | (eval $ac_try) 2>&5 | |
6260 | ac_status=$? | |
6261 | echo "$as_me:6261: \$? = $ac_status" >&5 | |
6262 | (exit $ac_status); }; }; then | |
6263 | am_cv_langinfo_codeset=yes | |
6264 | else | |
6265 | echo "$as_me: failed program was:" >&5 | |
6266 | cat conftest.$ac_ext >&5 | |
6267 | am_cv_langinfo_codeset=no | |
705db0b5 | 6268 | fi |
1e24cc5b | 6269 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 6270 | |
1e24cc5b AD |
6271 | fi |
6272 | echo "$as_me:6272: result: $am_cv_langinfo_codeset" >&5 | |
6273 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 | |
6274 | if test $am_cv_langinfo_codeset = yes; then | |
18569462 AD |
6275 | |
6276 | cat >>confdefs.h <<\EOF | |
1e24cc5b | 6277 | #define HAVE_LANGINFO_CODESET 1 |
705db0b5 AD |
6278 | EOF |
6279 | ||
1e24cc5b | 6280 | fi |
705db0b5 AD |
6281 | |
6282 | if test $ac_cv_header_locale_h = yes; then | |
1e24cc5b | 6283 | echo "$as_me:6283: checking for LC_MESSAGES" >&5 |
18569462 AD |
6284 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 |
6285 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
6286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6287 | else |
18569462 | 6288 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 6289 | #line 6289 "configure" |
705db0b5 AD |
6290 | #include "confdefs.h" |
6291 | #include <locale.h> | |
18569462 AD |
6292 | int |
6293 | main () | |
6294 | { | |
705db0b5 | 6295 | return LC_MESSAGES |
18569462 AD |
6296 | ; |
6297 | return 0; | |
6298 | } | |
6299 | _ACEOF | |
6300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 6301 | if { (eval echo "$as_me:6301: \"$ac_link\"") >&5 |
18569462 AD |
6302 | (eval $ac_link) 2>&5 |
6303 | ac_status=$? | |
1e24cc5b | 6304 | echo "$as_me:6304: \$? = $ac_status" >&5 |
18569462 | 6305 | (exit $ac_status); } && |
5141b016 | 6306 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 6307 | { (eval echo "$as_me:6307: \"$ac_try\"") >&5 |
18569462 AD |
6308 | (eval $ac_try) 2>&5 |
6309 | ac_status=$? | |
1e24cc5b | 6310 | echo "$as_me:6310: \$? = $ac_status" >&5 |
18569462 | 6311 | (exit $ac_status); }; }; then |
705db0b5 AD |
6312 | am_cv_val_LC_MESSAGES=yes |
6313 | else | |
18569462 AD |
6314 | echo "$as_me: failed program was:" >&5 |
6315 | cat conftest.$ac_ext >&5 | |
6316 | am_cv_val_LC_MESSAGES=no | |
705db0b5 | 6317 | fi |
1e24cc5b | 6318 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 6319 | fi |
1e24cc5b | 6320 | echo "$as_me:6320: result: $am_cv_val_LC_MESSAGES" >&5 |
18569462 | 6321 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 |
705db0b5 | 6322 | if test $am_cv_val_LC_MESSAGES = yes; then |
18569462 AD |
6323 | |
6324 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
6325 | #define HAVE_LC_MESSAGES 1 |
6326 | EOF | |
6327 | ||
6328 | fi | |
6329 | fi | |
1e24cc5b | 6330 | echo "$as_me:6330: checking whether NLS is requested" >&5 |
18569462 | 6331 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
705db0b5 AD |
6332 | # Check whether --enable-nls or --disable-nls was given. |
6333 | if test "${enable_nls+set}" = set; then | |
6334 | enableval="$enable_nls" | |
6335 | USE_NLS=$enableval | |
6336 | else | |
6337 | USE_NLS=yes | |
18569462 | 6338 | fi; |
1e24cc5b | 6339 | echo "$as_me:6339: result: $USE_NLS" >&5 |
18569462 | 6340 | echo "${ECHO_T}$USE_NLS" >&6 |
705db0b5 | 6341 | |
1e24cc5b | 6342 | BUILD_INCLUDED_LIBINTL=no |
705db0b5 | 6343 | USE_INCLUDED_LIBINTL=no |
1e24cc5b | 6344 | INTLLIBS= |
705db0b5 AD |
6345 | |
6346 | if test "$USE_NLS" = "yes"; then | |
18569462 AD |
6347 | |
6348 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
6349 | #define ENABLE_NLS 1 |
6350 | EOF | |
6351 | ||
1e24cc5b | 6352 | echo "$as_me:6352: checking whether included gettext is requested" >&5 |
18569462 AD |
6353 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 |
6354 | ||
6355 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
705db0b5 AD |
6356 | if test "${with_included_gettext+set}" = set; then |
6357 | withval="$with_included_gettext" | |
6358 | nls_cv_force_use_gnu_gettext=$withval | |
6359 | else | |
6360 | nls_cv_force_use_gnu_gettext=no | |
18569462 | 6361 | fi; |
1e24cc5b | 6362 | echo "$as_me:6362: result: $nls_cv_force_use_gnu_gettext" >&5 |
18569462 | 6363 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 |
705db0b5 AD |
6364 | |
6365 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
6366 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
1e24cc5b | 6367 | CATOBJEXT=NONE |
705db0b5 | 6368 | |
1e24cc5b | 6369 | echo "$as_me:6369: checking for libintl.h" >&5 |
18569462 AD |
6370 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 |
6371 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
6372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6373 | else |
18569462 | 6374 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 6375 | #line 6375 "configure" |
705db0b5 AD |
6376 | #include "confdefs.h" |
6377 | #include <libintl.h> | |
18569462 | 6378 | _ACEOF |
1e24cc5b AD |
6379 | if { (eval echo "$as_me:6379: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6380 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18569462 AD |
6381 | ac_status=$? |
6382 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6383 | rm -f conftest.er1 | |
6384 | cat conftest.err >&5 | |
1e24cc5b AD |
6385 | echo "$as_me:6385: \$? = $ac_status" >&5 |
6386 | (exit $ac_status); } >/dev/null; then | |
18569462 AD |
6387 | if test -s conftest.err; then |
6388 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6389 | else | |
6390 | ac_cpp_err= | |
6391 | fi | |
6392 | else | |
6393 | ac_cpp_err=yes | |
6394 | fi | |
6395 | if test -z "$ac_cpp_err"; then | |
6396 | ac_cv_header_libintl_h=yes | |
6397 | else | |
6398 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 6399 | cat conftest.$ac_ext >&5 |
18569462 | 6400 | ac_cv_header_libintl_h=no |
705db0b5 | 6401 | fi |
18569462 | 6402 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 6403 | fi |
1e24cc5b | 6404 | echo "$as_me:6404: result: $ac_cv_header_libintl_h" >&5 |
18569462 AD |
6405 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 |
6406 | if test $ac_cv_header_libintl_h = yes; then | |
1e24cc5b AD |
6407 | echo "$as_me:6407: checking for GNU gettext in libc" >&5 |
6408 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 | |
6409 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then | |
18569462 | 6410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 | 6411 | else |
18569462 | 6412 | cat >conftest.$ac_ext <<_ACEOF |
1e24cc5b | 6413 | #line 6413 "configure" |
705db0b5 AD |
6414 | #include "confdefs.h" |
6415 | #include <libintl.h> | |
1e24cc5b | 6416 | extern int _nl_msg_cat_cntr; |
18569462 AD |
6417 | int |
6418 | main () | |
6419 | { | |
1e24cc5b AD |
6420 | bindtextdomain ("", ""); |
6421 | return (int) gettext ("") + _nl_msg_cat_cntr | |
18569462 AD |
6422 | ; |
6423 | return 0; | |
6424 | } | |
6425 | _ACEOF | |
6426 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 6427 | if { (eval echo "$as_me:6427: \"$ac_link\"") >&5 |
18569462 AD |
6428 | (eval $ac_link) 2>&5 |
6429 | ac_status=$? | |
1e24cc5b | 6430 | echo "$as_me:6430: \$? = $ac_status" >&5 |
18569462 | 6431 | (exit $ac_status); } && |
5141b016 | 6432 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 6433 | { (eval echo "$as_me:6433: \"$ac_try\"") >&5 |
18569462 AD |
6434 | (eval $ac_try) 2>&5 |
6435 | ac_status=$? | |
1e24cc5b | 6436 | echo "$as_me:6436: \$? = $ac_status" >&5 |
18569462 | 6437 | (exit $ac_status); }; }; then |
1e24cc5b | 6438 | gt_cv_func_gnugettext1_libc=yes |
705db0b5 | 6439 | else |
18569462 AD |
6440 | echo "$as_me: failed program was:" >&5 |
6441 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 6442 | gt_cv_func_gnugettext1_libc=no |
705db0b5 | 6443 | fi |
1e24cc5b | 6444 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 6445 | fi |
1e24cc5b AD |
6446 | echo "$as_me:6446: result: $gt_cv_func_gnugettext1_libc" >&5 |
6447 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 | |
705db0b5 | 6448 | |
1e24cc5b AD |
6449 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
6450 | echo "$as_me:6450: checking for GNU gettext in libintl" >&5 | |
6451 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 | |
6452 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then | |
18569462 | 6453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 | 6454 | else |
1e24cc5b AD |
6455 | gt_save_LIBS="$LIBS" |
6456 | LIBS="$LIBS -lintl $LIBICONV" | |
6457 | cat >conftest.$ac_ext <<_ACEOF | |
6458 | #line 6458 "configure" | |
705db0b5 | 6459 | #include "confdefs.h" |
1e24cc5b AD |
6460 | #include <libintl.h> |
6461 | extern int _nl_msg_cat_cntr; | |
18569462 AD |
6462 | int |
6463 | main () | |
6464 | { | |
1e24cc5b AD |
6465 | bindtextdomain ("", ""); |
6466 | return (int) gettext ("") + _nl_msg_cat_cntr | |
18569462 AD |
6467 | ; |
6468 | return 0; | |
6469 | } | |
6470 | _ACEOF | |
6471 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 6472 | if { (eval echo "$as_me:6472: \"$ac_link\"") >&5 |
18569462 AD |
6473 | (eval $ac_link) 2>&5 |
6474 | ac_status=$? | |
1e24cc5b | 6475 | echo "$as_me:6475: \$? = $ac_status" >&5 |
18569462 | 6476 | (exit $ac_status); } && |
5141b016 | 6477 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 6478 | { (eval echo "$as_me:6478: \"$ac_try\"") >&5 |
18569462 AD |
6479 | (eval $ac_try) 2>&5 |
6480 | ac_status=$? | |
1e24cc5b | 6481 | echo "$as_me:6481: \$? = $ac_status" >&5 |
18569462 | 6482 | (exit $ac_status); }; }; then |
1e24cc5b | 6483 | gt_cv_func_gnugettext1_libintl=yes |
18569462 AD |
6484 | else |
6485 | echo "$as_me: failed program was:" >&5 | |
6486 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 6487 | gt_cv_func_gnugettext1_libintl=no |
18569462 | 6488 | fi |
1e24cc5b AD |
6489 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6490 | LIBS="$gt_save_LIBS" | |
18569462 | 6491 | fi |
1e24cc5b AD |
6492 | echo "$as_me:6492: result: $gt_cv_func_gnugettext1_libintl" >&5 |
6493 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 | |
6494 | fi | |
6495 | ||
6496 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ | |
6497 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ | |
6498 | && test "$PACKAGE" != gettext; }; then | |
6499 | ||
6500 | cat >>confdefs.h <<\EOF | |
6501 | #define HAVE_GETTEXT 1 | |
6502 | EOF | |
6503 | ||
6504 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | |
6505 | INTLLIBS="-lintl $LIBICONV" | |
6506 | fi | |
6507 | ||
6508 | gt_save_LIBS="$LIBS" | |
6509 | LIBS="$LIBS $INTLLIBS" | |
18569462 | 6510 | |
1e24cc5b AD |
6511 | for ac_func in dcgettext |
6512 | do | |
6513 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
6514 | echo "$as_me:6514: checking for $ac_func" >&5 | |
6515 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6516 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
18569462 AD |
6517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6518 | else | |
1e24cc5b AD |
6519 | cat >conftest.$ac_ext <<_ACEOF |
6520 | #line 6520 "configure" | |
705db0b5 | 6521 | #include "confdefs.h" |
1e24cc5b AD |
6522 | /* System header to define __stub macros and hopefully few prototypes, |
6523 | which can conflict with char $ac_func (); below. */ | |
6524 | #include <assert.h> | |
705db0b5 | 6525 | /* Override any gcc2 internal prototype to avoid an error. */ |
18569462 AD |
6526 | #ifdef __cplusplus |
6527 | extern "C" | |
6528 | #endif | |
705db0b5 | 6529 | /* We use char because int might match the return type of a gcc2 |
18569462 | 6530 | builtin and then its argument prototype would still apply. */ |
1e24cc5b AD |
6531 | char $ac_func (); |
6532 | char (*f) (); | |
6533 | ||
18569462 AD |
6534 | int |
6535 | main () | |
6536 | { | |
1e24cc5b AD |
6537 | /* The GNU C library defines this for functions which it implements |
6538 | to always fail with ENOSYS. Some functions are actually named | |
6539 | something starting with __ and the normal name is an alias. */ | |
6540 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6541 | choke me | |
6542 | #else | |
6543 | f = $ac_func; | |
6544 | #endif | |
6545 | ||
18569462 AD |
6546 | ; |
6547 | return 0; | |
6548 | } | |
6549 | _ACEOF | |
6550 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1e24cc5b | 6551 | if { (eval echo "$as_me:6551: \"$ac_link\"") >&5 |
18569462 AD |
6552 | (eval $ac_link) 2>&5 |
6553 | ac_status=$? | |
1e24cc5b | 6554 | echo "$as_me:6554: \$? = $ac_status" >&5 |
18569462 | 6555 | (exit $ac_status); } && |
5141b016 | 6556 | { ac_try='test -s conftest$ac_exeext' |
1e24cc5b | 6557 | { (eval echo "$as_me:6557: \"$ac_try\"") >&5 |
18569462 AD |
6558 | (eval $ac_try) 2>&5 |
6559 | ac_status=$? | |
1e24cc5b | 6560 | echo "$as_me:6560: \$? = $ac_status" >&5 |
18569462 | 6561 | (exit $ac_status); }; }; then |
1e24cc5b | 6562 | eval "$ac_ac_var=yes" |
18569462 AD |
6563 | else |
6564 | echo "$as_me: failed program was:" >&5 | |
6565 | cat conftest.$ac_ext >&5 | |
1e24cc5b | 6566 | eval "$ac_ac_var=no" |
18569462 | 6567 | fi |
1e24cc5b | 6568 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
18569462 | 6569 | fi |
1e24cc5b AD |
6570 | echo "$as_me:6570: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
6571 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
6572 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
6573 | cat >>confdefs.h <<EOF | |
6574 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 AD |
6575 | EOF |
6576 | ||
705db0b5 | 6577 | fi |
1e24cc5b | 6578 | done |
705db0b5 | 6579 | |
1e24cc5b | 6580 | LIBS="$gt_save_LIBS" |
18569462 | 6581 | |
1e24cc5b | 6582 | # Extract the first word of "msgfmt", so it can be a program name with args. |
705db0b5 | 6583 | set dummy msgfmt; ac_word=$2 |
1e24cc5b | 6584 | echo "$as_me:6584: checking for $ac_word" >&5 |
18569462 AD |
6585 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6586 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
6587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6588 | else |
6589 | case "$MSGFMT" in | |
6590 | /*) | |
6591 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6592 | ;; | |
6593 | *) | |
6594 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6595 | for ac_dir in $PATH; do | |
6596 | test -z "$ac_dir" && ac_dir=. | |
6597 | if test -f $ac_dir/$ac_word; then | |
6598 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
6599 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
6600 | break | |
6601 | fi | |
6602 | fi | |
6603 | done | |
6604 | IFS="$ac_save_ifs" | |
6605 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
6606 | ;; | |
6607 | esac | |
6608 | fi | |
6609 | MSGFMT="$ac_cv_path_MSGFMT" | |
6610 | if test -n "$MSGFMT"; then | |
1e24cc5b | 6611 | echo "$as_me:6611: result: $MSGFMT" >&5 |
18569462 | 6612 | echo "${ECHO_T}$MSGFMT" >&6 |
705db0b5 | 6613 | else |
1e24cc5b | 6614 | echo "$as_me:6614: result: no" >&5 |
18569462 | 6615 | echo "${ECHO_T}no" >&6 |
705db0b5 | 6616 | fi |
1e24cc5b AD |
6617 | if test "$MSGFMT" != "no"; then |
6618 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
705db0b5 | 6619 | set dummy gmsgfmt; ac_word=$2 |
1e24cc5b | 6620 | echo "$as_me:6620: checking for $ac_word" >&5 |
18569462 AD |
6621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6622 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6624 | else |
18569462 AD |
6625 | case $GMSGFMT in |
6626 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
6627 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
6628 | ;; | |
705db0b5 | 6629 | *) |
5141b016 | 6630 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
6631 | ac_dummy="$PATH" |
6632 | for ac_dir in $ac_dummy; do | |
6633 | IFS=$ac_save_IFS | |
6634 | test -z "$ac_dir" && ac_dir=. | |
6635 | if $as_executable_p "$ac_dir/$ac_word"; then | |
6636 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
1e24cc5b | 6637 | echo "$as_me:6637: found $ac_dir/$ac_word" >&5 |
18569462 AD |
6638 | break |
6639 | fi | |
6640 | done | |
6641 | ||
705db0b5 AD |
6642 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
6643 | ;; | |
6644 | esac | |
6645 | fi | |
18569462 AD |
6646 | GMSGFMT=$ac_cv_path_GMSGFMT |
6647 | ||
705db0b5 | 6648 | if test -n "$GMSGFMT"; then |
1e24cc5b | 6649 | echo "$as_me:6649: result: $GMSGFMT" >&5 |
18569462 | 6650 | echo "${ECHO_T}$GMSGFMT" >&6 |
705db0b5 | 6651 | else |
1e24cc5b | 6652 | echo "$as_me:6652: result: no" >&5 |
18569462 | 6653 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6654 | fi |
6655 | ||
1e24cc5b | 6656 | fi |
705db0b5 | 6657 | |
1e24cc5b | 6658 | # Extract the first word of "xgettext", so it can be a program name with args. |
705db0b5 | 6659 | set dummy xgettext; ac_word=$2 |
1e24cc5b | 6660 | echo "$as_me:6660: checking for $ac_word" >&5 |
18569462 AD |
6661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6662 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
6663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6664 | else |
6665 | case "$XGETTEXT" in | |
6666 | /*) | |
6667 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6668 | ;; | |
6669 | *) | |
6670 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6671 | for ac_dir in $PATH; do | |
6672 | test -z "$ac_dir" && ac_dir=. | |
6673 | if test -f $ac_dir/$ac_word; then | |
6674 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
6675 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
6676 | break | |
6677 | fi | |
6678 | fi | |
6679 | done | |
6680 | IFS="$ac_save_ifs" | |
6681 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6682 | ;; | |
6683 | esac | |
6684 | fi | |
6685 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6686 | if test -n "$XGETTEXT"; then | |
1e24cc5b | 6687 | echo "$as_me:6687: result: $XGETTEXT" >&5 |
18569462 | 6688 | echo "${ECHO_T}$XGETTEXT" >&6 |
705db0b5 | 6689 | else |
1e24cc5b | 6690 | echo "$as_me:6690: result: no" >&5 |
18569462 | 6691 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6692 | fi |
6693 | ||
1e24cc5b AD |
6694 | CATOBJEXT=.gmo |
6695 | fi | |
705db0b5 | 6696 | |
1e24cc5b | 6697 | fi |
705db0b5 AD |
6698 | |
6699 | if test "$CATOBJEXT" = "NONE"; then | |
6700 | nls_cv_use_gnu_gettext=yes | |
6701 | fi | |
6702 | fi | |
6703 | ||
6704 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
6705 | INTLOBJS="\$(GETTOBJS)" | |
6706 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6707 | set dummy msgfmt; ac_word=$2 | |
1e24cc5b | 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_MSGFMT+set}" = set; then | |
6711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6712 | else |
6713 | case "$MSGFMT" in | |
6714 | /*) | |
6715 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6716 | ;; | |
6717 | *) | |
6718 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6719 | for ac_dir in $PATH; do | |
6720 | test -z "$ac_dir" && ac_dir=. | |
6721 | if test -f $ac_dir/$ac_word; then | |
6722 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
6723 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
6724 | break | |
6725 | fi | |
6726 | fi | |
6727 | done | |
6728 | IFS="$ac_save_ifs" | |
6729 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
6730 | ;; | |
6731 | esac | |
6732 | fi | |
6733 | MSGFMT="$ac_cv_path_MSGFMT" | |
6734 | if test -n "$MSGFMT"; then | |
1e24cc5b | 6735 | echo "$as_me:6735: result: $MSGFMT" >&5 |
18569462 | 6736 | echo "${ECHO_T}$MSGFMT" >&6 |
705db0b5 | 6737 | else |
1e24cc5b | 6738 | echo "$as_me:6738: result: no" >&5 |
18569462 | 6739 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6740 | fi |
6741 | ||
6742 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
6743 | set dummy gmsgfmt; ac_word=$2 | |
1e24cc5b | 6744 | echo "$as_me:6744: checking for $ac_word" >&5 |
18569462 AD |
6745 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6746 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6748 | else |
18569462 AD |
6749 | case $GMSGFMT in |
6750 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
6751 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
6752 | ;; | |
705db0b5 | 6753 | *) |
5141b016 | 6754 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
6755 | ac_dummy="$PATH" |
6756 | for ac_dir in $ac_dummy; do | |
6757 | IFS=$ac_save_IFS | |
6758 | test -z "$ac_dir" && ac_dir=. | |
6759 | if $as_executable_p "$ac_dir/$ac_word"; then | |
6760 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
1e24cc5b | 6761 | echo "$as_me:6761: found $ac_dir/$ac_word" >&5 |
18569462 AD |
6762 | break |
6763 | fi | |
6764 | done | |
6765 | ||
705db0b5 AD |
6766 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
6767 | ;; | |
6768 | esac | |
6769 | fi | |
18569462 AD |
6770 | GMSGFMT=$ac_cv_path_GMSGFMT |
6771 | ||
705db0b5 | 6772 | if test -n "$GMSGFMT"; then |
1e24cc5b | 6773 | echo "$as_me:6773: result: $GMSGFMT" >&5 |
18569462 | 6774 | echo "${ECHO_T}$GMSGFMT" >&6 |
705db0b5 | 6775 | else |
1e24cc5b | 6776 | echo "$as_me:6776: result: no" >&5 |
18569462 | 6777 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6778 | fi |
6779 | ||
6780 | # Extract the first word of "xgettext", so it can be a program name with args. | |
6781 | set dummy xgettext; ac_word=$2 | |
1e24cc5b | 6782 | echo "$as_me:6782: checking for $ac_word" >&5 |
18569462 AD |
6783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6784 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
6785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6786 | else |
6787 | case "$XGETTEXT" in | |
6788 | /*) | |
6789 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6790 | ;; | |
6791 | *) | |
6792 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6793 | for ac_dir in $PATH; do | |
6794 | test -z "$ac_dir" && ac_dir=. | |
6795 | if test -f $ac_dir/$ac_word; then | |
6796 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
6797 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
6798 | break | |
6799 | fi | |
6800 | fi | |
6801 | done | |
6802 | IFS="$ac_save_ifs" | |
6803 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6804 | ;; | |
6805 | esac | |
6806 | fi | |
6807 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6808 | if test -n "$XGETTEXT"; then | |
1e24cc5b | 6809 | echo "$as_me:6809: result: $XGETTEXT" >&5 |
18569462 | 6810 | echo "${ECHO_T}$XGETTEXT" >&6 |
705db0b5 | 6811 | else |
1e24cc5b | 6812 | echo "$as_me:6812: result: no" >&5 |
18569462 | 6813 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6814 | fi |
6815 | ||
1e24cc5b | 6816 | BUILD_INCLUDED_LIBINTL=yes |
705db0b5 AD |
6817 | USE_INCLUDED_LIBINTL=yes |
6818 | CATOBJEXT=.gmo | |
1e24cc5b AD |
6819 | INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV" |
6820 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
705db0b5 AD |
6821 | fi |
6822 | ||
6823 | if test "$XGETTEXT" != ":"; then | |
6824 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
6825 | : ; | |
6826 | else | |
1e24cc5b | 6827 | echo "$as_me:6827: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
18569462 | 6828 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 |
705db0b5 AD |
6829 | XGETTEXT=":" |
6830 | fi | |
6831 | fi | |
6832 | ||
1e24cc5b | 6833 | POSUB=po |
705db0b5 | 6834 | fi |
1e24cc5b AD |
6835 | ac_config_commands="$ac_config_commands default-2" |
6836 | ||
6837 | if test "$PACKAGE" = gettext; then | |
6838 | BUILD_INCLUDED_LIBINTL=yes | |
705db0b5 | 6839 | fi |
1e24cc5b AD |
6840 | |
6841 | for ac_prog in bison | |
6842 | do | |
6843 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6844 | set dummy $ac_prog; ac_word=$2 | |
6845 | echo "$as_me:6845: checking for $ac_word" >&5 | |
6846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6847 | if test "${ac_cv_prog_INTLBISON+set}" = set; then | |
6848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6849 | else | |
6850 | if test -n "$INTLBISON"; then | |
6851 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
6852 | else | |
6853 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
6854 | ac_dummy="$PATH" | |
6855 | for ac_dir in $ac_dummy; do | |
6856 | IFS=$ac_save_IFS | |
6857 | test -z "$ac_dir" && ac_dir=. | |
6858 | $as_executable_p "$ac_dir/$ac_word" || continue | |
6859 | ac_cv_prog_INTLBISON="$ac_prog" | |
6860 | echo "$as_me:6860: found $ac_dir/$ac_word" >&5 | |
6861 | break | |
18569462 | 6862 | done |
705db0b5 | 6863 | |
1e24cc5b AD |
6864 | fi |
6865 | fi | |
6866 | INTLBISON=$ac_cv_prog_INTLBISON | |
6867 | if test -n "$INTLBISON"; then | |
6868 | echo "$as_me:6868: result: $INTLBISON" >&5 | |
6869 | echo "${ECHO_T}$INTLBISON" >&6 | |
6870 | else | |
6871 | echo "$as_me:6871: result: no" >&5 | |
6872 | echo "${ECHO_T}no" >&6 | |
6873 | fi | |
705db0b5 | 6874 | |
1e24cc5b AD |
6875 | test -n "$INTLBISON" && break |
6876 | done | |
6877 | ||
6878 | if test -z "$INTLBISON"; then | |
6879 | ac_verc_fail=yes | |
6880 | else | |
6881 | echo "$as_me:6881: checking version of bison" >&5 | |
6882 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6 | |
6883 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
6884 | case $ac_prog_version in | |
6885 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
6886 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
6887 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
6888 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
6889 | esac | |
6890 | echo "$as_me:6890: result: $ac_prog_version" >&5 | |
6891 | echo "${ECHO_T}$ac_prog_version" >&6 | |
6892 | fi | |
6893 | if test $ac_verc_fail = yes; then | |
6894 | INTLBISON=: | |
705db0b5 AD |
6895 | fi |
6896 | ||
6897 | for lang in $ALL_LINGUAS; do | |
6898 | GMOFILES="$GMOFILES $lang.gmo" | |
6899 | POFILES="$POFILES $lang.po" | |
6900 | done | |
6901 | ||
1e24cc5b AD |
6902 | nls_cv_header_intl= |
6903 | nls_cv_header_libgt= | |
6904 | ||
6905 | DATADIRNAME=share | |
6906 | ||
6907 | INSTOBJEXT=.mo | |
6908 | ||
6909 | GENCAT=gencat | |
6910 | ||
705db0b5 AD |
6911 | if test "x$CATOBJEXT" != "x"; then |
6912 | if test "x$ALL_LINGUAS" = "x"; then | |
6913 | LINGUAS= | |
6914 | else | |
1e24cc5b | 6915 | echo "$as_me:6915: checking for catalogs to be installed" >&5 |
18569462 | 6916 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 |
705db0b5 | 6917 | NEW_LINGUAS= |
1e24cc5b AD |
6918 | for presentlang in $ALL_LINGUAS; do |
6919 | useit=no | |
6920 | for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do | |
6921 | # Use the presentlang catalog if desiredlang is | |
6922 | # a. equal to presentlang, or | |
6923 | # b. a variant of presentlang (because in this case, | |
6924 | # presentlang can be used as a fallback for messages | |
6925 | # which are not translated in the desiredlang catalog). | |
6926 | case "$desiredlang" in | |
6927 | "$presentlang"*) useit=yes;; | |
6928 | esac | |
6929 | done | |
6930 | if test $useit = yes; then | |
6931 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | |
6932 | fi | |
705db0b5 AD |
6933 | done |
6934 | LINGUAS=$NEW_LINGUAS | |
1e24cc5b | 6935 | echo "$as_me:6935: result: $LINGUAS" >&5 |
18569462 | 6936 | echo "${ECHO_T}$LINGUAS" >&6 |
705db0b5 AD |
6937 | fi |
6938 | ||
6939 | if test -n "$LINGUAS"; then | |
6940 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
6941 | fi | |
6942 | fi | |
6943 | ||
705db0b5 AD |
6944 | MKINSTALLDIRS= |
6945 | if test -n "$ac_aux_dir"; then | |
1e24cc5b | 6946 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
705db0b5 AD |
6947 | fi |
6948 | if test -z "$MKINSTALLDIRS"; then | |
6949 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
6950 | fi | |
705db0b5 | 6951 | |
1e24cc5b | 6952 | INTL_LIBTOOL_SUFFIX_PREFIX= |
705db0b5 | 6953 | |
705db0b5 AD |
6954 | # This is necessary so that .o files in LIBOBJS are also built via |
6955 | # the ANSI2KNR-filtering rules. | |
6956 | LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` | |
6957 | ||
1e24cc5b | 6958 | 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 | 6959 | cat >confcache <<\_ACEOF |
705db0b5 AD |
6960 | # This file is a shell script that caches the results of configure |
6961 | # tests run on this system so they can be shared between configure | |
18569462 AD |
6962 | # scripts and configure runs, see configure's option --config-cache. |
6963 | # It is not useful on other systems. If it contains results you don't | |
6964 | # want to keep, you may remove or edit it. | |
705db0b5 | 6965 | # |
18569462 AD |
6966 | # config.status only pays attention to the cache file if you give it |
6967 | # the --recheck option to rerun configure. | |
705db0b5 | 6968 | # |
18569462 AD |
6969 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
6970 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6971 | # following values. | |
6972 | ||
6973 | _ACEOF | |
6974 | ||
705db0b5 AD |
6975 | # The following way of writing the cache mishandles newlines in values, |
6976 | # but we know of no workaround that is simple, portable, and efficient. | |
6977 | # So, don't put newlines in cache variables' values. | |
6978 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6979 | # and sets the high bit in the cache file unless we assign to the vars. | |
18569462 AD |
6980 | { |
6981 | (set) 2>&1 | | |
6982 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6983 | *ac_space=\ *) | |
6984 | # `set' does not quote correctly, so add quotes (double-quote | |
6985 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6986 | sed -n \ | |
6987 | "s/'/'\\\\''/g; | |
6988 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
6989 | ;; | |
6990 | *) | |
6991 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6992 | sed -n \ | |
6993 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6994 | ;; | |
6995 | esac; | |
6996 | } | | |
6997 | sed ' | |
6998 | t clear | |
6999 | : clear | |
7000 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7001 | t end | |
7002 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7003 | : end' >>confcache | |
7004 | if cmp -s $cache_file confcache; then :; else | |
705db0b5 | 7005 | if test -w $cache_file; then |
18569462 AD |
7006 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
7007 | cat confcache >$cache_file | |
705db0b5 AD |
7008 | else |
7009 | echo "not updating unwritable cache $cache_file" | |
7010 | fi | |
7011 | fi | |
7012 | rm -f confcache | |
7013 | ||
705db0b5 AD |
7014 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7015 | # Let make expand exec_prefix. | |
7016 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7017 | ||
5141b016 AD |
7018 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
7019 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7020 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7021 | # (actually we leave an empty line to preserve line numbers). | |
705db0b5 | 7022 | if test "x$srcdir" = x.; then |
5141b016 AD |
7023 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
7024 | s/:*\$(srcdir):*/:/; | |
7025 | s/:*\${srcdir}:*/:/; | |
7026 | s/:*@srcdir@:*/:/; | |
7027 | s/^\([^=]*=[ ]*\):*/\1/; | |
7028 | s/:*$//; | |
7029 | s/^[^=]*=[ ]*$//; | |
7030 | }' | |
705db0b5 AD |
7031 | fi |
7032 | ||
705db0b5 AD |
7033 | DEFS=-DHAVE_CONFIG_H |
7034 | ||
705db0b5 | 7035 | : ${CONFIG_STATUS=./config.status} |
18569462 AD |
7036 | ac_clean_files_save=$ac_clean_files |
7037 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
1e24cc5b | 7038 | { echo "$as_me:7038: creating $CONFIG_STATUS" >&5 |
18569462 | 7039 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
1e24cc5b AD |
7040 | cat >$CONFIG_STATUS <<_ACEOF |
7041 | #! $SHELL | |
705db0b5 AD |
7042 | # Generated automatically by configure. |
7043 | # Run this file to recreate the current configuration. | |
705db0b5 | 7044 | # Compiler output produced by configure, useful for debugging |
18569462 | 7045 | # configure, is in config.log if it exists. |
705db0b5 | 7046 | |
18569462 | 7047 | debug=false |
1e24cc5b AD |
7048 | SHELL=\${CONFIG_SHELL-$SHELL} |
7049 | ac_cs_invocation="\$0 \$@" | |
7050 | ||
7051 | _ACEOF | |
18569462 | 7052 | |
1e24cc5b | 7053 | cat >>$CONFIG_STATUS <<\_ACEOF |
18569462 AD |
7054 | # Be Bourne compatible |
7055 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7056 | emulate sh | |
7057 | NULLCMD=: | |
7058 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
7059 | set -o posix | |
7060 | fi | |
7061 | ||
1e24cc5b AD |
7062 | # Name of the executable. |
7063 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
7064 | ||
18569462 AD |
7065 | if expr a : '\(a\)' >/dev/null 2>&1; then |
7066 | as_expr=expr | |
7067 | else | |
7068 | as_expr=false | |
7069 | fi | |
7070 | ||
5141b016 AD |
7071 | rm -f conf$$ conf$$.exe conf$$.file |
7072 | echo >conf$$.file | |
7073 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18569462 AD |
7074 | # We could just check for DJGPP; but this test a) works b) is more generic |
7075 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
5141b016 | 7076 | if test -f conf$$.exe; then |
18569462 AD |
7077 | # Don't use ln at all; we don't have any links |
7078 | as_ln_s='cp -p' | |
7079 | else | |
7080 | as_ln_s='ln -s' | |
7081 | fi | |
5141b016 | 7082 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18569462 AD |
7083 | as_ln_s=ln |
7084 | else | |
7085 | as_ln_s='cp -p' | |
7086 | fi | |
5141b016 | 7087 | rm -f conf$$ conf$$.exe conf$$.file |
18569462 | 7088 | |
5141b016 | 7089 | as_executable_p="test -f" |
18569462 AD |
7090 | |
7091 | # Support unset when possible. | |
7092 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
7093 | as_unset=unset | |
7094 | else | |
7095 | as_unset=false | |
7096 | fi | |
7097 | ||
7098 | # NLS nuisances. | |
7099 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
7100 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
7101 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
7102 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
7103 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
7104 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
7105 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
7106 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
7107 | ||
7108 | # IFS | |
7109 | # We need space, tab and new line, in precisely that order. | |
7110 | as_nl=' | |
7111 | ' | |
7112 | IFS=" $as_nl" | |
7113 | ||
7114 | # CDPATH. | |
7115 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
7116 | ||
18569462 AD |
7117 | exec 6>&1 |
7118 | ||
18569462 AD |
7119 | _ACEOF |
7120 | ||
7121 | # Files that config.status was made for. | |
7122 | if test -n "$ac_config_files"; then | |
7123 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7124 | fi | |
7125 | ||
7126 | if test -n "$ac_config_headers"; then | |
7127 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7128 | fi | |
7129 | ||
7130 | if test -n "$ac_config_links"; then | |
7131 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7132 | fi | |
7133 | ||
7134 | if test -n "$ac_config_commands"; then | |
7135 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7136 | fi | |
7137 | ||
7138 | cat >>$CONFIG_STATUS <<\EOF | |
7139 | ||
7140 | ac_cs_usage="\ | |
7141 | \`$as_me' instantiates files from templates according to the | |
7142 | current configuration. | |
7143 | ||
7144 | Usage: $0 [OPTIONS] [FILE]... | |
7145 | ||
7146 | -h, --help print this help, then exit | |
7147 | -V, --version print version number, then exit | |
7148 | -d, --debug don't remove temporary files | |
7149 | --recheck update $as_me by reconfiguring in the same conditions | |
7150 | --file=FILE[:TEMPLATE] | |
7151 | instantiate the configuration file FILE | |
7152 | --header=FILE[:TEMPLATE] | |
7153 | instantiate the configuration header FILE | |
7154 | ||
7155 | Configuration files: | |
7156 | $config_files | |
7157 | ||
7158 | Configuration headers: | |
7159 | $config_headers | |
7160 | ||
18569462 AD |
7161 | Configuration commands: |
7162 | $config_commands | |
7163 | ||
7164 | Report bugs to <bug-autoconf@gnu.org>." | |
7165 | EOF | |
7166 | ||
7167 | cat >>$CONFIG_STATUS <<EOF | |
7168 | ac_cs_version="\\ | |
1e24cc5b AD |
7169 | bison config.status 1.28a |
7170 | configured by $0, generated by GNU Autoconf 2.50, | |
7171 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
7172 | ||
7173 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
7174 | Free Software Foundation, Inc. | |
7175 | This config.status script is free software; the Free Software Foundation | |
7176 | gives unlimited permission to copy, distribute and modify it." | |
18569462 AD |
7177 | srcdir=$srcdir |
7178 | INSTALL="$INSTALL" | |
7179 | EOF | |
7180 | ||
7181 | cat >>$CONFIG_STATUS <<\EOF | |
7182 | # If no file are specified by the user, then we need to provide default | |
7183 | # value. By we need to know if files were specified by the user. | |
7184 | ac_need_defaults=: | |
7185 | while test $# != 0 | |
705db0b5 | 7186 | do |
18569462 AD |
7187 | case $1 in |
7188 | --*=*) | |
7189 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7190 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
7191 | shift | |
7192 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
7193 | shift | |
7194 | ;; | |
7195 | -*);; | |
7196 | *) # This is not an option, so the user has probably given explicit | |
7197 | # arguments. | |
7198 | ac_need_defaults=false;; | |
7199 | esac | |
7200 | ||
7201 | case $1 in | |
7202 | # Handling of the options. | |
7203 | EOF | |
7204 | cat >>$CONFIG_STATUS <<EOF | |
705db0b5 | 7205 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18569462 AD |
7206 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
7207 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
7208 | EOF | |
7209 | cat >>$CONFIG_STATUS <<\EOF | |
7210 | --version | --vers* | -V ) | |
7211 | echo "$ac_cs_version"; exit 0 ;; | |
7212 | --he | --h) | |
7213 | # Conflict between --help and --header | |
1e24cc5b | 7214 | { { echo "$as_me:7214: error: ambiguous option: $1 |
18569462 AD |
7215 | Try \`$0 --help' for more information." >&5 |
7216 | echo "$as_me: error: ambiguous option: $1 | |
7217 | Try \`$0 --help' for more information." >&2;} | |
7218 | { (exit 1); exit 1; }; };; | |
7219 | --help | --hel | -h ) | |
7220 | echo "$ac_cs_usage"; exit 0 ;; | |
7221 | --debug | --d* | -d ) | |
7222 | debug=: ;; | |
7223 | --file | --fil | --fi | --f ) | |
7224 | shift | |
7225 | CONFIG_FILES="$CONFIG_FILES $1" | |
7226 | ac_need_defaults=false;; | |
7227 | --header | --heade | --head | --hea ) | |
7228 | shift | |
7229 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
7230 | ac_need_defaults=false;; | |
7231 | ||
7232 | # Handling of arguments. | |
7233 | 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
1e24cc5b | 7234 | 'config/Makefile' ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; |
18569462 AD |
7235 | 'intl/Makefile' ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; |
7236 | 'po/Makefile.in' ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | |
7237 | 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7238 | 'src/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
7239 | 'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
7240 | 'm4/Makefile' ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | |
7241 | 'tests/Makefile' ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
7242 | 'tests/atconfig' ) CONFIG_FILES="$CONFIG_FILES tests/atconfig" ;; | |
18569462 AD |
7243 | 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
7244 | 'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; | |
7245 | 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; | |
7246 | ||
7247 | # This is an error. | |
1e24cc5b | 7248 | -*) { { echo "$as_me:7248: error: unrecognized option: $1 |
18569462 AD |
7249 | Try \`$0 --help' for more information." >&5 |
7250 | echo "$as_me: error: unrecognized option: $1 | |
7251 | Try \`$0 --help' for more information." >&2;} | |
7252 | { (exit 1); exit 1; }; } ;; | |
1e24cc5b | 7253 | *) { { echo "$as_me:7253: error: invalid argument: $1" >&5 |
18569462 AD |
7254 | echo "$as_me: error: invalid argument: $1" >&2;} |
7255 | { (exit 1); exit 1; }; };; | |
705db0b5 | 7256 | esac |
18569462 | 7257 | shift |
705db0b5 AD |
7258 | done |
7259 | ||
1e24cc5b AD |
7260 | exec 5>>config.log |
7261 | cat >&5 << _ACEOF | |
7262 | ||
7263 | ## ----------------------- ## | |
7264 | ## Running config.status. ## | |
7265 | ## ----------------------- ## | |
7266 | ||
7267 | This file was extended by $as_me (bison 1.28a) 2.50, executed with | |
7268 | > $ac_cs_invocation | |
7269 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
7270 | ||
7271 | _ACEOF | |
18569462 AD |
7272 | EOF |
7273 | ||
7274 | cat >>$CONFIG_STATUS <<\EOF | |
7275 | # If the user did not use the arguments to specify the items to instantiate, | |
7276 | # then the envvar interface is used. Set only those that are not. | |
7277 | # We use the long form for the default assignment because of an extremely | |
7278 | # bizarre bug on SunOS 4.1.3. | |
7279 | if $ac_need_defaults; then | |
7280 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7281 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18569462 AD |
7282 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
7283 | fi | |
7284 | ||
7285 | # Create a temporary directory, and hook for its removal unless debugging. | |
7286 | $debug || | |
7287 | { | |
7288 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7289 | trap '{ (exit $?); exit $?; }' 1 2 13 15 | |
7290 | } | |
7291 | ||
7292 | # Create a (secure) tmp directory for tmp files. | |
7293 | : ${TMPDIR=/tmp} | |
7294 | { | |
7295 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
7296 | test -n "$tmp" && test -d "$tmp" | |
7297 | } || | |
7298 | { | |
7299 | tmp=$TMPDIR/cs$$-$RANDOM | |
7300 | (umask 077 && mkdir $tmp) | |
7301 | } || | |
7302 | { | |
7303 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
7304 | { (exit 1); exit 1; } | |
7305 | } | |
705db0b5 | 7306 | |
705db0b5 | 7307 | EOF |
705db0b5 | 7308 | |
18569462 AD |
7309 | cat >>$CONFIG_STATUS <<EOF |
7310 | # | |
7311 | # INIT-COMMANDS section. | |
7312 | # | |
7313 | ||
7314 | EOF | |
7315 | ||
7316 | cat >>$CONFIG_STATUS <<EOF | |
705db0b5 | 7317 | |
18569462 AD |
7318 | # |
7319 | # CONFIG_FILES section. | |
7320 | # | |
7321 | ||
7322 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7323 | # This happens for instance when ./config.status config.h | |
7324 | if test -n "\$CONFIG_FILES"; then | |
7325 | # Protect against being on the right side of a sed subst in config.status. | |
7326 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7327 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7328 | s,@SHELL@,$SHELL,;t t | |
7329 | s,@exec_prefix@,$exec_prefix,;t t | |
7330 | s,@prefix@,$prefix,;t t | |
7331 | s,@program_transform_name@,$program_transform_name,;t t | |
7332 | s,@bindir@,$bindir,;t t | |
7333 | s,@sbindir@,$sbindir,;t t | |
7334 | s,@libexecdir@,$libexecdir,;t t | |
7335 | s,@datadir@,$datadir,;t t | |
7336 | s,@sysconfdir@,$sysconfdir,;t t | |
7337 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7338 | s,@localstatedir@,$localstatedir,;t t | |
7339 | s,@libdir@,$libdir,;t t | |
7340 | s,@includedir@,$includedir,;t t | |
7341 | s,@oldincludedir@,$oldincludedir,;t t | |
7342 | s,@infodir@,$infodir,;t t | |
7343 | s,@mandir@,$mandir,;t t | |
7344 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7345 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7346 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7347 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7348 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
7349 | s,@ECHO_C@,$ECHO_C,;t t | |
7350 | s,@ECHO_N@,$ECHO_N,;t t | |
7351 | s,@ECHO_T@,$ECHO_T,;t t | |
5141b016 | 7352 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
18569462 AD |
7353 | s,@DEFS@,$DEFS,;t t |
7354 | s,@LIBS@,$LIBS,;t t | |
7355 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7356 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7357 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7358 | s,@PACKAGE@,$PACKAGE,;t t | |
7359 | s,@VERSION@,$VERSION,;t t | |
7360 | s,@ACLOCAL@,$ACLOCAL,;t t | |
7361 | s,@AUTOCONF@,$AUTOCONF,;t t | |
7362 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
7363 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
7364 | s,@MAKEINFO@,$MAKEINFO,;t t | |
7365 | s,@SET_MAKE@,$SET_MAKE,;t t | |
7366 | s,@AT_TESTPATH@,$AT_TESTPATH,;t t | |
7367 | s,@CC@,$CC,;t t | |
7368 | s,@CFLAGS@,$CFLAGS,;t t | |
7369 | s,@LDFLAGS@,$LDFLAGS,;t t | |
1e24cc5b | 7370 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
18569462 | 7371 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
18569462 | 7372 | s,@EXEEXT@,$EXEEXT,;t t |
5141b016 | 7373 | s,@OBJEXT@,$OBJEXT,;t t |
18569462 | 7374 | s,@CPP@,$CPP,;t t |
18569462 AD |
7375 | s,@RANLIB@,$RANLIB,;t t |
7376 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
7377 | s,@M4@,$M4,;t t | |
7378 | s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t | |
7379 | s,@U@,$U,;t t | |
7380 | s,@ANSI2KNR@,$ANSI2KNR,;t t | |
7381 | s,@ALLOCA@,$ALLOCA,;t t | |
7382 | s,@LIBOBJS@,$LIBOBJS,;t t | |
1e24cc5b AD |
7383 | s,@build@,$build,;t t |
7384 | s,@build_cpu@,$build_cpu,;t t | |
7385 | s,@build_vendor@,$build_vendor,;t t | |
7386 | s,@build_os@,$build_os,;t t | |
7387 | s,@host@,$host,;t t | |
7388 | s,@host_cpu@,$host_cpu,;t t | |
7389 | s,@host_vendor@,$host_vendor,;t t | |
7390 | s,@host_os@,$host_os,;t t | |
7391 | s,@GLIBC21@,$GLIBC21,;t t | |
7392 | s,@LIBICONV@,$LIBICONV,;t t | |
18569462 AD |
7393 | s,@USE_NLS@,$USE_NLS,;t t |
7394 | s,@MSGFMT@,$MSGFMT,;t t | |
7395 | s,@GMSGFMT@,$GMSGFMT,;t t | |
7396 | s,@XGETTEXT@,$XGETTEXT,;t t | |
1e24cc5b AD |
7397 | s,@INTLBISON@,$INTLBISON,;t t |
7398 | s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t | |
18569462 AD |
7399 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t |
7400 | s,@CATALOGS@,$CATALOGS,;t t | |
7401 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
18569462 | 7402 | s,@GMOFILES@,$GMOFILES,;t t |
18569462 AD |
7403 | s,@INTLLIBS@,$INTLLIBS,;t t |
7404 | s,@INTLOBJS@,$INTLOBJS,;t t | |
7405 | s,@POFILES@,$POFILES,;t t | |
7406 | s,@POSUB@,$POSUB,;t t | |
1e24cc5b AD |
7407 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
7408 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
7409 | s,@GENCAT@,$GENCAT,;t t | |
18569462 | 7410 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
1e24cc5b | 7411 | s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t |
705db0b5 | 7412 | CEOF |
18569462 | 7413 | |
705db0b5 AD |
7414 | EOF |
7415 | ||
18569462 AD |
7416 | cat >>$CONFIG_STATUS <<\EOF |
7417 | # Split the substitutions into bite-sized pieces for seds with | |
7418 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7419 | ac_max_sed_lines=48 | |
7420 | ac_sed_frag=1 # Number of current file. | |
7421 | ac_beg=1 # First line for current file. | |
7422 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7423 | ac_more_lines=: | |
7424 | ac_sed_cmds= | |
7425 | while $ac_more_lines; do | |
7426 | if test $ac_beg -gt 1; then | |
7427 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7428 | else | |
7429 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7430 | fi | |
7431 | if test ! -s $tmp/subs.frag; then | |
7432 | ac_more_lines=false | |
705db0b5 | 7433 | else |
18569462 AD |
7434 | # The purpose of the label and of the branching condition is to |
7435 | # speed up the sed processing (if there are no `@' at all, there | |
7436 | # is no need to browse any of the substitutions). | |
7437 | # These are the two extra sed commands mentioned above. | |
7438 | (echo ':t | |
7439 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7440 | if test -z "$ac_sed_cmds"; then | |
7441 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
7442 | else | |
7443 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
7444 | fi | |
7445 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7446 | ac_beg=$ac_end | |
7447 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
705db0b5 | 7448 | fi |
18569462 AD |
7449 | done |
7450 | if test -z "$ac_sed_cmds"; then | |
7451 | ac_sed_cmds=cat | |
705db0b5 | 7452 | fi |
18569462 | 7453 | fi # test -n "$CONFIG_FILES" |
705db0b5 | 7454 | |
705db0b5 | 7455 | EOF |
18569462 AD |
7456 | cat >>$CONFIG_STATUS <<\EOF |
7457 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
705db0b5 | 7458 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
18569462 AD |
7459 | case $ac_file in |
7460 | - | *:- | *:-:* ) # input from stdin | |
7461 | cat >$tmp/stdin | |
7462 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7463 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7464 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7465 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7466 | * ) ac_file_in=$ac_file.in ;; | |
705db0b5 AD |
7467 | esac |
7468 | ||
18569462 AD |
7469 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
7470 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7471 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7472 | X"$ac_file" : 'X\(//\)$' \| \ | |
7473 | X"$ac_file" : 'X\(/\)' \| \ | |
7474 | . : '\(.\)' 2>/dev/null || | |
7475 | echo X"$ac_file" | | |
7476 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7477 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7478 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7479 | /^X\(\/\).*/{ s//\1/; q; } | |
7480 | s/.*/./; q'` | |
705db0b5 | 7481 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
18569462 AD |
7482 | { case "$ac_dir" in |
7483 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
7484 | *) as_incr_dir=.;; | |
7485 | esac | |
7486 | as_dummy="$ac_dir" | |
7487 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
7488 | case $as_mkdir_dir in | |
7489 | # Skip DOS drivespec | |
7490 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
7491 | *) | |
7492 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
7493 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
7494 | ;; | |
7495 | esac | |
7496 | done; } | |
7497 | ||
7498 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
705db0b5 | 7499 | # A "../" for each directory in $ac_dir_suffix. |
18569462 | 7500 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
705db0b5 AD |
7501 | else |
7502 | ac_dir_suffix= ac_dots= | |
7503 | fi | |
7504 | ||
18569462 AD |
7505 | case $srcdir in |
7506 | .) ac_srcdir=. | |
7507 | if test -z "$ac_dots"; then | |
7508 | ac_top_srcdir=. | |
7509 | else | |
7510 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
7511 | fi ;; | |
7512 | [\\/]* | ?:[\\/]* ) | |
7513 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7514 | ac_top_srcdir=$srcdir ;; | |
705db0b5 | 7515 | *) # Relative path. |
18569462 AD |
7516 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
7517 | ac_top_srcdir=$ac_dots$srcdir ;; | |
705db0b5 AD |
7518 | esac |
7519 | ||
18569462 AD |
7520 | case $INSTALL in |
7521 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7522 | *) ac_INSTALL=$ac_dots$INSTALL ;; | |
705db0b5 AD |
7523 | esac |
7524 | ||
18569462 | 7525 | if test x"$ac_file" != x-; then |
1e24cc5b | 7526 | { echo "$as_me:7526: creating $ac_file" >&5 |
18569462 AD |
7527 | echo "$as_me: creating $ac_file" >&6;} |
7528 | rm -f "$ac_file" | |
7529 | fi | |
7530 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7531 | # use $as_me), people would be surprised to read: | |
7532 | # /* config.h. Generated automatically by config.status. */ | |
7533 | configure_input="Generated automatically from `echo $ac_file_in | | |
7534 | sed 's,.*/,,'` by configure." | |
7535 | ||
7536 | # First look for the input files in the build tree, otherwise in the | |
7537 | # src tree. | |
7538 | ac_file_inputs=`IFS=: | |
7539 | for f in $ac_file_in; do | |
7540 | case $f in | |
7541 | -) echo $tmp/stdin ;; | |
1e24cc5b AD |
7542 | [\\/$]*) |
7543 | # Absolute (can't be DOS-style, as IFS=:) | |
7544 | test -f "$f" || { { echo "$as_me:7544: error: cannot find input file: $f" >&5 | |
18569462 AD |
7545 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7546 | { (exit 1); exit 1; }; } | |
7547 | echo $f;; | |
7548 | *) # Relative | |
7549 | if test -f "$f"; then | |
7550 | # Build tree | |
7551 | echo $f | |
7552 | elif test -f "$srcdir/$f"; then | |
7553 | # Source tree | |
7554 | echo $srcdir/$f | |
7555 | else | |
7556 | # /dev/null tree | |
1e24cc5b | 7557 | { { echo "$as_me:7557: error: cannot find input file: $f" >&5 |
18569462 AD |
7558 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7559 | { (exit 1); exit 1; }; } | |
7560 | fi;; | |
7561 | esac | |
7562 | done` || { (exit 1); exit 1; } | |
7563 | EOF | |
7564 | cat >>$CONFIG_STATUS <<EOF | |
7565 | sed "$ac_vpsub | |
7566 | $extrasub | |
7567 | EOF | |
7568 | cat >>$CONFIG_STATUS <<\EOF | |
7569 | :t | |
7570 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7571 | s,@configure_input@,$configure_input,;t t | |
7572 | s,@srcdir@,$ac_srcdir,;t t | |
7573 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7574 | s,@INSTALL@,$ac_INSTALL,;t t | |
7575 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7576 | rm -f $tmp/stdin | |
7577 | if test x"$ac_file" != x-; then | |
7578 | mv $tmp/out $ac_file | |
7579 | else | |
7580 | cat $tmp/out | |
7581 | rm -f $tmp/out | |
7582 | fi | |
7583 | ||
7584 | done | |
7585 | EOF | |
7586 | cat >>$CONFIG_STATUS <<\EOF | |
705db0b5 | 7587 | |
18569462 AD |
7588 | # |
7589 | # CONFIG_HEADER section. | |
7590 | # | |
705db0b5 AD |
7591 | |
7592 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7593 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7594 | # | |
7595 | # ac_d sets the value in "#define NAME VALUE" lines. | |
18569462 AD |
7596 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7597 | ac_dB='[ ].*$,\1#\2' | |
7598 | ac_dC=' ' | |
7599 | ac_dD=',;t' | |
7600 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7601 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7602 | ac_uB='$,\1#\2define\3' | |
705db0b5 | 7603 | ac_uC=' ' |
18569462 AD |
7604 | ac_uD=',;t' |
7605 | ||
7606 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
705db0b5 | 7607 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
18569462 AD |
7608 | case $ac_file in |
7609 | - | *:- | *:-:* ) # input from stdin | |
7610 | cat >$tmp/stdin | |
7611 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7612 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7613 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7614 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7615 | * ) ac_file_in=$ac_file.in ;; | |
705db0b5 AD |
7616 | esac |
7617 | ||
1e24cc5b | 7618 | test x"$ac_file" != x- && { echo "$as_me:7618: creating $ac_file" >&5 |
18569462 AD |
7619 | echo "$as_me: creating $ac_file" >&6;} |
7620 | ||
7621 | # First look for the input files in the build tree, otherwise in the | |
7622 | # src tree. | |
7623 | ac_file_inputs=`IFS=: | |
7624 | for f in $ac_file_in; do | |
7625 | case $f in | |
7626 | -) echo $tmp/stdin ;; | |
1e24cc5b AD |
7627 | [\\/$]*) |
7628 | # Absolute (can't be DOS-style, as IFS=:) | |
7629 | test -f "$f" || { { echo "$as_me:7629: error: cannot find input file: $f" >&5 | |
18569462 AD |
7630 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7631 | { (exit 1); exit 1; }; } | |
7632 | echo $f;; | |
7633 | *) # Relative | |
7634 | if test -f "$f"; then | |
7635 | # Build tree | |
7636 | echo $f | |
7637 | elif test -f "$srcdir/$f"; then | |
7638 | # Source tree | |
7639 | echo $srcdir/$f | |
7640 | else | |
7641 | # /dev/null tree | |
1e24cc5b | 7642 | { { echo "$as_me:7642: error: cannot find input file: $f" >&5 |
18569462 AD |
7643 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7644 | { (exit 1); exit 1; }; } | |
7645 | fi;; | |
7646 | esac | |
7647 | done` || { (exit 1); exit 1; } | |
7648 | # Remove the trailing spaces. | |
7649 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
7650 | ||
7651 | EOF | |
7652 | ||
7653 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
7654 | # `conftest.undefs', that substitutes the proper values into | |
7655 | # config.h.in to produce config.h. The first handles `#define' | |
7656 | # templates, and the second `#undef' templates. | |
7657 | # And first: Protect against being on the right side of a sed subst in | |
7658 | # config.status. Protect against being in an unquoted here document | |
7659 | # in config.status. | |
7660 | rm -f conftest.defines conftest.undefs | |
7661 | # Using a here document instead of a string reduces the quoting nightmare. | |
7662 | # Putting comments in sed scripts is not portable. | |
7663 | # | |
7664 | # `end' is used to avoid that the second main sed command (meant for | |
7665 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
7666 | # See the Autoconf documentation for `clear'. | |
7667 | cat >confdef2sed.sed <<\EOF | |
7668 | s/[\\&,]/\\&/g | |
7669 | s,[\\$`],\\&,g | |
7670 | t clear | |
7671 | : clear | |
7672 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
7673 | t end | |
7674 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
7675 | : end | |
7676 | EOF | |
7677 | # If some macros were called several times there might be several times | |
7678 | # the same #defines, which is useless. Nevertheless, we may not want to | |
7679 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
7680 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7681 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7682 | rm -f confdef2sed.sed | |
705db0b5 AD |
7683 | |
7684 | # This sed command replaces #undef with comments. This is necessary, for | |
7685 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7686 | # on some systems where configure will not decide to define it. | |
18569462 AD |
7687 | cat >>conftest.undefs <<\EOF |
7688 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
705db0b5 AD |
7689 | EOF |
7690 | ||
18569462 AD |
7691 | # Break up conftest.defines because some shells have a limit on the size |
7692 | # of here documents, and old seds have small limits too (100 cmds). | |
7693 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
7694 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
7695 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
7696 | echo ' :' >>$CONFIG_STATUS | |
7697 | rm -f conftest.tail | |
7698 | while grep . conftest.defines >/dev/null | |
7699 | do | |
7700 | # Write a limited-size here document to $tmp/defines.sed. | |
7701 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7702 | # Speed up: don't consider the non `#define' lines. | |
7703 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
7704 | # Work around the forget-to-reset-the-flag bug. | |
7705 | echo 't clr' >>$CONFIG_STATUS | |
7706 | echo ': clr' >>$CONFIG_STATUS | |
7707 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7708 | echo 'CEOF | |
7709 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7710 | rm -f $tmp/in | |
7711 | mv $tmp/out $tmp/in | |
7712 | ' >>$CONFIG_STATUS | |
7713 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7714 | rm -f conftest.defines | |
7715 | mv conftest.tail conftest.defines | |
7716 | done | |
7717 | rm -f conftest.defines | |
7718 | echo ' fi # egrep' >>$CONFIG_STATUS | |
7719 | echo >>$CONFIG_STATUS | |
705db0b5 | 7720 | |
18569462 AD |
7721 | # Break up conftest.undefs because some shells have a limit on the size |
7722 | # of here documents, and old seds have small limits too (100 cmds). | |
7723 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
705db0b5 | 7724 | rm -f conftest.tail |
18569462 | 7725 | while grep . conftest.undefs >/dev/null |
705db0b5 | 7726 | do |
18569462 AD |
7727 | # Write a limited-size here document to $tmp/undefs.sed. |
7728 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7729 | # Speed up: don't consider the non `#undef' | |
7730 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
7731 | # Work around the forget-to-reset-the-flag bug. | |
7732 | echo 't clr' >>$CONFIG_STATUS | |
7733 | echo ': clr' >>$CONFIG_STATUS | |
7734 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
705db0b5 | 7735 | echo 'CEOF |
18569462 AD |
7736 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
7737 | rm -f $tmp/in | |
7738 | mv $tmp/out $tmp/in | |
7739 | ' >>$CONFIG_STATUS | |
7740 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
7741 | rm -f conftest.undefs | |
7742 | mv conftest.tail conftest.undefs | |
705db0b5 | 7743 | done |
18569462 AD |
7744 | rm -f conftest.undefs |
7745 | ||
7746 | cat >>$CONFIG_STATUS <<\EOF | |
7747 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7748 | # use $as_me), people would be surprised to read: | |
7749 | # /* config.h. Generated automatically by config.status. */ | |
7750 | if test x"$ac_file" = x-; then | |
7751 | echo "/* Generated automatically by configure. */" >$tmp/config.h | |
705db0b5 | 7752 | else |
18569462 AD |
7753 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
7754 | fi | |
7755 | cat $tmp/in >>$tmp/config.h | |
7756 | rm -f $tmp/in | |
7757 | if test x"$ac_file" != x-; then | |
7758 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
1e24cc5b | 7759 | { echo "$as_me:7759: $ac_file is unchanged" >&5 |
18569462 AD |
7760 | echo "$as_me: $ac_file is unchanged" >&6;} |
7761 | else | |
7762 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7763 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7764 | X"$ac_file" : 'X\(//\)$' \| \ | |
7765 | X"$ac_file" : 'X\(/\)' \| \ | |
7766 | . : '\(.\)' 2>/dev/null || | |
7767 | echo X"$ac_file" | | |
7768 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7769 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7770 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7771 | /^X\(\/\).*/{ s//\1/; q; } | |
7772 | s/.*/./; q'` | |
705db0b5 | 7773 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
18569462 AD |
7774 | { case "$ac_dir" in |
7775 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
7776 | *) as_incr_dir=.;; | |
7777 | esac | |
7778 | as_dummy="$ac_dir" | |
7779 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
7780 | case $as_mkdir_dir in | |
7781 | # Skip DOS drivespec | |
7782 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
7783 | *) | |
7784 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
7785 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
7786 | ;; | |
7787 | esac | |
7788 | done; } | |
7789 | ||
7790 | fi | |
7791 | rm -f $ac_file | |
7792 | mv $tmp/config.h $ac_file | |
705db0b5 | 7793 | fi |
18569462 AD |
7794 | else |
7795 | cat $tmp/config.h | |
7796 | rm -f $tmp/config.h | |
705db0b5 | 7797 | fi |
18569462 | 7798 | done |
705db0b5 | 7799 | EOF |
18569462 | 7800 | cat >>$CONFIG_STATUS <<\EOF |
705db0b5 | 7801 | |
18569462 AD |
7802 | # |
7803 | # CONFIG_COMMANDS section. | |
7804 | # | |
7805 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
7806 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
7807 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
705db0b5 | 7808 | |
18569462 AD |
7809 | case $ac_dest in |
7810 | default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; | |
1e24cc5b AD |
7811 | default-2 ) for ac_file in $CONFIG_FILES; do |
7812 | # Support "outfile[:infile[:infile...]]" | |
7813 | case "$ac_file" in | |
7814 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
7815 | esac | |
7816 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
7817 | case "$ac_file" in */Makefile.in) | |
7818 | # Adjust a relative srcdir. | |
7819 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
7820 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
7821 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
7822 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
7823 | case "$ac_given_srcdir" in | |
7824 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
7825 | /*) top_srcdir="$ac_given_srcdir" ;; | |
7826 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
7827 | esac | |
7828 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
7829 | rm -f "$ac_dir/POTFILES" | |
7830 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
7831 | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES" | |
7832 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
7833 | sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
7834 | fi | |
7835 | ;; | |
7836 | esac | |
7837 | done ;; | |
18569462 AD |
7838 | esac |
7839 | done | |
7840 | EOF | |
7841 | ||
7842 | cat >>$CONFIG_STATUS <<\EOF | |
705db0b5 | 7843 | |
5141b016 | 7844 | { (exit 0); exit 0; } |
705db0b5 AD |
7845 | EOF |
7846 | chmod +x $CONFIG_STATUS | |
18569462 AD |
7847 | ac_clean_files=$ac_clean_files_save |
7848 | ||
1e24cc5b AD |
7849 | # configure is writing to config.log, and then calls config.status. |
7850 | # config.status does its own redirection, appending to config.log. | |
7851 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7852 | # by configure, so config.status won't be able to write to it; its | |
7853 | # output is simply discarded. So we exec the FD to /dev/null, | |
7854 | # effectively closing config.log, so it can be properly (re)opened and | |
7855 | # appended to by config.status. When coming back to configure, we | |
7856 | # need to make the FD available again. | |
7857 | if test "$no_create" != yes; then | |
7858 | ac_cs_success=: | |
7859 | exec 5>/dev/null | |
7860 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
7861 | exec 5>>config.log | |
7862 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7863 | # would make configure fail if this is the last instruction. | |
7864 | $ac_cs_success || { (exit 1); exit 1; } | |
7865 | fi | |
705db0b5 | 7866 |