]> git.saurik.com Git - bison.git/blob - configure
* src/reader.c (readgram): Display hidden chars in error messages.
[bison.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52 for bison 1.28a.
4 #
5 # Report bugs to <bug-bison@gnu.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
18
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 emulate sh
28 NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 set -o posix
31 fi
32
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
36 if expr a : '\(a\)' >/dev/null 2>&1; then
37 as_expr=expr
38 else
39 as_expr=false
40 fi
41
42 rm -f conf$$ conf$$.exe conf$$.file
43 echo >conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
49 as_ln_s='cp -p'
50 else
51 as_ln_s='ln -s'
52 fi
53 elif ln conf$$.file conf$$ 2>/dev/null; then
54 as_ln_s=ln
55 else
56 as_ln_s='cp -p'
57 fi
58 rm -f conf$$ conf$$.exe conf$$.file
59
60 as_executable_p="test -f"
61
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64 as_unset=unset
65 else
66 as_unset=false
67 fi
68
69 # NLS nuisances.
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
79 # IFS
80 # We need space, tab and new line, in precisely that order.
81 as_nl='
82 '
83 IFS=" $as_nl"
84
85 # CDPATH.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
88 # Name of the host.
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
93 exec 6>&1
94
95 #
96 # Initializations.
97 #
98 ac_default_prefix=/usr/local
99 cross_compiling=no
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete. It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : ${ac_max_here_lines=38}
108
109 # Factoring default headers for most tests.
110 ac_includes_default="\
111 #include <stdio.h>
112 #if HAVE_SYS_TYPES_H
113 # include <sys/types.h>
114 #endif
115 #if HAVE_SYS_STAT_H
116 # include <sys/stat.h>
117 #endif
118 #if STDC_HEADERS
119 # include <stdlib.h>
120 # include <stddef.h>
121 #else
122 # if HAVE_STDLIB_H
123 # include <stdlib.h>
124 # endif
125 #endif
126 #if HAVE_STRING_H
127 # if !STDC_HEADERS && HAVE_MEMORY_H
128 # include <memory.h>
129 # endif
130 # include <string.h>
131 #endif
132 #if HAVE_STRINGS_H
133 # include <strings.h>
134 #endif
135 #if HAVE_INTTYPES_H
136 # include <inttypes.h>
137 #else
138 # if HAVE_STDINT_H
139 # include <stdint.h>
140 # endif
141 #endif
142 #if HAVE_UNISTD_H
143 # include <unistd.h>
144 #endif"
145
146 # Initialize some variables set by options.
147 ac_init_help=
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
151 cache_file=/dev/null
152 exec_prefix=NONE
153 no_create=
154 no_recursion=
155 prefix=NONE
156 program_prefix=NONE
157 program_suffix=NONE
158 program_transform_name=s,x,x,
159 silent=
160 site=
161 srcdir=
162 verbose=
163 x_includes=NONE
164 x_libraries=NONE
165
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
183
184 # Identity of this package.
185 PACKAGE_NAME='bison'
186 PACKAGE_TARNAME='bison'
187 PACKAGE_VERSION='1.28a'
188 PACKAGE_STRING='bison 1.28a'
189 PACKAGE_BUGREPORT='bug-bison@gnu.org'
190
191 ac_prev=
192 for ac_option
193 do
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
197 ac_prev=
198 continue
199 fi
200
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203 # Accept the important Cygnus configure options, so we can diagnose typos.
204
205 case $ac_option in
206
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 ac_prev=bindir ;;
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir=$ac_optarg ;;
211
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
216
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
223
224 --config-cache | -C)
225 cache_file=config.cache ;;
226
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 ac_prev=datadir ;;
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 | --da=*)
231 datadir=$ac_optarg ;;
232
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
241
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 case $ac_option in
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 *) ac_optarg=yes ;;
252 esac
253 eval "enable_$ac_feature='$ac_optarg'" ;;
254
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
263
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
266 with_gas=yes ;;
267
268 -help | --help | --hel | --he | -h)
269 ac_init_help=long ;;
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
274
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
279
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
286
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 ac_prev=infodir ;;
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
291
292 -libdir | --libdir | --libdi | --libd)
293 ac_prev=libdir ;;
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 libdir=$ac_optarg ;;
296
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
303
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
312
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 ac_prev=mandir ;;
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 mandir=$ac_optarg ;;
317
318 -nfp | --nfp | --nf)
319 # Obsolete; use --without-fp.
320 with_fp=no ;;
321
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 | --no-cr | --no-c)
324 no_create=yes ;;
325
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 no_recursion=yes ;;
329
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
338
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 ac_prev=prefix ;;
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 prefix=$ac_optarg ;;
343
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
350
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
357
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
374
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
377 silent=yes ;;
378
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 ac_prev=sbindir ;;
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 | --sbi=* | --sb=*)
383 sbindir=$ac_optarg ;;
384
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
388 | --sha | --sh)
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 | --sha=* | --sh=*)
394 sharedstatedir=$ac_optarg ;;
395
396 -site | --site | --sit)
397 ac_prev=site ;;
398 -site=* | --site=* | --sit=*)
399 site=$ac_optarg ;;
400
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 ac_prev=srcdir ;;
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 srcdir=$ac_optarg ;;
405
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
412
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
417
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 verbose=yes ;;
420
421 -version | --version | --versio | --versi | --vers | -V)
422 ac_init_version=: ;;
423
424 -with-* | --with-*)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 case $ac_option in
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 *) ac_optarg=yes ;;
434 esac
435 eval "with_$ac_package='$ac_optarg'" ;;
436
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
445
446 --x)
447 # Obsolete; use --with-x.
448 with_x=yes ;;
449
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
456
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
463
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
467 ;;
468
469 *=*)
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
477 export $ac_envvar ;;
478
479 *)
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485 ;;
486
487 esac
488 done
489
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
494 fi
495
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
498 do
499 eval ac_val=$`echo $ac_var`
500 case $ac_val in
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
504 esac
505 done
506
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
510 do
511 eval ac_val=$`echo $ac_var`
512 case $ac_val in
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
516 esac
517 done
518
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
521 build=$build_alias
522 host=$host_alias
523 target=$target_alias
524
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
532 cross_compiling=yes
533 fi
534 fi
535
536 ac_tool_prefix=
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538
539 test "$silent" = yes && exec 6>/dev/null
540
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
545 ac_prog=$0
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 srcdir=$ac_confdir
549 if test ! -r $srcdir/$ac_unique_file; then
550 srcdir=..
551 fi
552 else
553 ac_srcdir_defaulted=no
554 fi
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
559 else
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
562 fi
563 fi
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
578 ac_env_CC_value=$CC
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597
598 #
599 # Report the --help message.
600 #
601 if test "$ac_init_help" = "long"; then
602 # Omit some internal or obsolete options to make the list less imposing.
603 # This message is too long to be a string in the A/UX 3.1 sh.
604 cat <<EOF
605 \`configure' configures bison 1.28a to adapt to many kinds of systems.
606
607 Usage: $0 [OPTION]... [VAR=VALUE]...
608
609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 VAR=VALUE. See below for descriptions of some of the useful variables.
611
612 Defaults for the options are specified in brackets.
613
614 Configuration:
615 -h, --help display this help and exit
616 --help=short display options specific to this package
617 --help=recursive display the short help of all the included packages
618 -V, --version display version information and exit
619 -q, --quiet, --silent do not print \`checking...' messages
620 --cache-file=FILE cache test results in FILE [disabled]
621 -C, --config-cache alias for \`--cache-file=config.cache'
622 -n, --no-create do not create output files
623 --srcdir=DIR find the sources in DIR [configure dir or \`..']
624
625 EOF
626
627 cat <<EOF
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
630 [$ac_default_prefix]
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 [PREFIX]
633
634 By default, \`make install' will install all the files in
635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 for instance \`--prefix=\$HOME'.
638
639 For better control, use the options below.
640
641 Fine tuning of the installation directories:
642 --bindir=DIR user executables [EPREFIX/bin]
643 --sbindir=DIR system admin executables [EPREFIX/sbin]
644 --libexecdir=DIR program executables [EPREFIX/libexec]
645 --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 --libdir=DIR object code libraries [EPREFIX/lib]
650 --includedir=DIR C header files [PREFIX/include]
651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 --infodir=DIR info documentation [PREFIX/info]
653 --mandir=DIR man documentation [PREFIX/man]
654 EOF
655
656 cat <<\EOF
657
658 Program names:
659 --program-prefix=PREFIX prepend PREFIX to installed program names
660 --program-suffix=SUFFIX append SUFFIX to installed program names
661 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
662
663 System types:
664 --build=BUILD configure for building on BUILD [guessed]
665 --host=HOST build programs to run on HOST [BUILD]
666 EOF
667 fi
668
669 if test -n "$ac_init_help"; then
670 case $ac_init_help in
671 short | recursive ) echo "Configuration of bison 1.28a:";;
672 esac
673 cat <<\EOF
674
675 Optional Features:
676 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
677 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
678 --enable-gcc-warnings turn on lots of GCC warnings (not recommended)
679 --disable-nls do not use Native Language Support
680
681 Optional Packages:
682 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
683 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
684 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
685 --with-included-gettext use the GNU gettext library included here
686
687 Some influential environment variables:
688 CC C compiler command
689 CFLAGS C compiler flags
690 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
691 nonstandard directory <lib dir>
692 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
693 headers in a nonstandard directory <include dir>
694 CPP C preprocessor
695
696 Use these variables to override the choices made by `configure' or to help
697 it to find libraries and programs with nonstandard names/locations.
698
699 Report bugs to <bug-bison@gnu.org>.
700 EOF
701 fi
702
703 if test "$ac_init_help" = "recursive"; then
704 # If there are subdirs, report their specific --help.
705 ac_popdir=`pwd`
706 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
707 cd $ac_subdir
708 # A "../" for each directory in /$ac_subdir.
709 ac_dots=`echo $ac_subdir |
710 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
711
712 case $srcdir in
713 .) # No --srcdir option. We are building in place.
714 ac_sub_srcdir=$srcdir ;;
715 [\\/]* | ?:[\\/]* ) # Absolute path.
716 ac_sub_srcdir=$srcdir/$ac_subdir ;;
717 *) # Relative path.
718 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
719 esac
720
721 # Check for guested configure; otherwise get Cygnus style configure.
722 if test -f $ac_sub_srcdir/configure.gnu; then
723 echo
724 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
725 elif test -f $ac_sub_srcdir/configure; then
726 echo
727 $SHELL $ac_sub_srcdir/configure --help=recursive
728 elif test -f $ac_sub_srcdir/configure.ac ||
729 test -f $ac_sub_srcdir/configure.in; then
730 echo
731 $ac_configure --help
732 else
733 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
734 fi
735 cd $ac_popdir
736 done
737 fi
738
739 test -n "$ac_init_help" && exit 0
740 if $ac_init_version; then
741 cat <<\EOF
742 bison configure 1.28a
743 generated by GNU Autoconf 2.52
744
745 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
746 Free Software Foundation, Inc.
747 This configure script is free software; the Free Software Foundation
748 gives unlimited permission to copy, distribute and modify it.
749 EOF
750 exit 0
751 fi
752 exec 5>config.log
753 cat >&5 <<EOF
754 This file contains any messages produced by compilers while
755 running configure, to aid debugging if configure makes a mistake.
756
757 It was created by bison $as_me 1.28a, which was
758 generated by GNU Autoconf 2.52. Invocation command line was
759
760 $ $0 $@
761
762 EOF
763 {
764 cat <<_ASUNAME
765 ## ---------- ##
766 ## Platform. ##
767 ## ---------- ##
768
769 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
770 uname -m = `(uname -m) 2>/dev/null || echo unknown`
771 uname -r = `(uname -r) 2>/dev/null || echo unknown`
772 uname -s = `(uname -s) 2>/dev/null || echo unknown`
773 uname -v = `(uname -v) 2>/dev/null || echo unknown`
774
775 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
776 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
777
778 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
779 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
780 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
781 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
782 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
783 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
784 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
785
786 PATH = $PATH
787
788 _ASUNAME
789 } >&5
790
791 cat >&5 <<EOF
792 ## ------------ ##
793 ## Core tests. ##
794 ## ------------ ##
795
796 EOF
797
798 # Keep a trace of the command line.
799 # Strip out --no-create and --no-recursion so they do not pile up.
800 # Also quote any args containing shell meta-characters.
801 ac_configure_args=
802 ac_sep=
803 for ac_arg
804 do
805 case $ac_arg in
806 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
807 | --no-cr | --no-c) ;;
808 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
809 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
810 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
811 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
812 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
813 ac_sep=" " ;;
814 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
815 ac_sep=" " ;;
816 esac
817 # Get rid of the leading space.
818 done
819
820 # When interrupted or exit'd, cleanup temporary files, and complete
821 # config.log. We remove comments because anyway the quotes in there
822 # would cause problems or look ugly.
823 trap 'exit_status=$?
824 # Save into config.log some information that might help in debugging.
825 echo >&5
826 echo "## ----------------- ##" >&5
827 echo "## Cache variables. ##" >&5
828 echo "## ----------------- ##" >&5
829 echo >&5
830 # The following way of writing the cache mishandles newlines in values,
831 {
832 (set) 2>&1 |
833 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
834 *ac_space=\ *)
835 sed -n \
836 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
838 ;;
839 *)
840 sed -n \
841 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
842 ;;
843 esac;
844 } >&5
845 sed "/^$/d" confdefs.h >conftest.log
846 if test -s conftest.log; then
847 echo >&5
848 echo "## ------------ ##" >&5
849 echo "## confdefs.h. ##" >&5
850 echo "## ------------ ##" >&5
851 echo >&5
852 cat conftest.log >&5
853 fi
854 (echo; echo) >&5
855 test "$ac_signal" != 0 &&
856 echo "$as_me: caught signal $ac_signal" >&5
857 echo "$as_me: exit $exit_status" >&5
858 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
859 exit $exit_status
860 ' 0
861 for ac_signal in 1 2 13 15; do
862 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
863 done
864 ac_signal=0
865
866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
867 rm -rf conftest* confdefs.h
868 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
869 echo >confdefs.h
870
871 # Let the site file select an alternate cache file if it wants to.
872 # Prefer explicitly selected file to automatically selected ones.
873 if test -z "$CONFIG_SITE"; then
874 if test "x$prefix" != xNONE; then
875 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
876 else
877 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
878 fi
879 fi
880 for ac_site_file in $CONFIG_SITE; do
881 if test -r "$ac_site_file"; then
882 { echo "$as_me:882: loading site script $ac_site_file" >&5
883 echo "$as_me: loading site script $ac_site_file" >&6;}
884 cat "$ac_site_file" >&5
885 . "$ac_site_file"
886 fi
887 done
888
889 if test -r "$cache_file"; then
890 # Some versions of bash will fail to source /dev/null (special
891 # files actually), so we avoid doing that.
892 if test -f "$cache_file"; then
893 { echo "$as_me:893: loading cache $cache_file" >&5
894 echo "$as_me: loading cache $cache_file" >&6;}
895 case $cache_file in
896 [\\/]* | ?:[\\/]* ) . $cache_file;;
897 *) . ./$cache_file;;
898 esac
899 fi
900 else
901 { echo "$as_me:901: creating cache $cache_file" >&5
902 echo "$as_me: creating cache $cache_file" >&6;}
903 >$cache_file
904 fi
905
906 # Check that the precious variables saved in the cache have kept the same
907 # value.
908 ac_cache_corrupted=false
909 for ac_var in `(set) 2>&1 |
910 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
911 eval ac_old_set=\$ac_cv_env_${ac_var}_set
912 eval ac_new_set=\$ac_env_${ac_var}_set
913 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
914 eval ac_new_val="\$ac_env_${ac_var}_value"
915 case $ac_old_set,$ac_new_set in
916 set,)
917 { echo "$as_me:917: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
918 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
919 ac_cache_corrupted=: ;;
920 ,set)
921 { echo "$as_me:921: error: \`$ac_var' was not set in the previous run" >&5
922 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
923 ac_cache_corrupted=: ;;
924 ,);;
925 *)
926 if test "x$ac_old_val" != "x$ac_new_val"; then
927 { echo "$as_me:927: error: \`$ac_var' has changed since the previous run:" >&5
928 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
929 { echo "$as_me:929: former value: $ac_old_val" >&5
930 echo "$as_me: former value: $ac_old_val" >&2;}
931 { echo "$as_me:931: current value: $ac_new_val" >&5
932 echo "$as_me: current value: $ac_new_val" >&2;}
933 ac_cache_corrupted=:
934 fi;;
935 esac
936 # Pass precious variables to config.status. It doesn't matter if
937 # we pass some twice (in addition to the command line arguments).
938 if test "$ac_new_set" = set; then
939 case $ac_new_val in
940 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
941 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
942 ac_configure_args="$ac_configure_args '$ac_arg'"
943 ;;
944 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
945 ;;
946 esac
947 fi
948 done
949 if $ac_cache_corrupted; then
950 { echo "$as_me:950: error: changes in the environment can compromise the build" >&5
951 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
952 { { echo "$as_me:952: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
953 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
954 { (exit 1); exit 1; }; }
955 fi
956
957 ac_ext=c
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
962
963 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
964 *c*,-n*) ECHO_N= ECHO_C='
965 ' ECHO_T=' ' ;;
966 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
967 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
968 esac
969 echo "#! $SHELL" >conftest.sh
970 echo "exit 0" >>conftest.sh
971 chmod +x conftest.sh
972 if { (echo "$as_me:972: PATH=\".;.\"; conftest.sh") >&5
973 (PATH=".;."; conftest.sh) 2>&5
974 ac_status=$?
975 echo "$as_me:975: \$? = $ac_status" >&5
976 (exit $ac_status); }; then
977 ac_path_separator=';'
978 else
979 ac_path_separator=:
980 fi
981 PATH_SEPARATOR="$ac_path_separator"
982 rm -f conftest.sh
983
984 ac_aux_dir=
985 for ac_dir in config $srcdir/config; do
986 if test -f $ac_dir/install-sh; then
987 ac_aux_dir=$ac_dir
988 ac_install_sh="$ac_aux_dir/install-sh -c"
989 break
990 elif test -f $ac_dir/install.sh; then
991 ac_aux_dir=$ac_dir
992 ac_install_sh="$ac_aux_dir/install.sh -c"
993 break
994 elif test -f $ac_dir/shtool; then
995 ac_aux_dir=$ac_dir
996 ac_install_sh="$ac_aux_dir/shtool install -c"
997 break
998 fi
999 done
1000 if test -z "$ac_aux_dir"; then
1001 { { echo "$as_me:1001: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1002 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1003 { (exit 1); exit 1; }; }
1004 fi
1005 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1006 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1007 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1008
1009 # Find a good install program. We prefer a C program (faster),
1010 # so one script is as good as another. But avoid the broken or
1011 # incompatible versions:
1012 # SysV /etc/install, /usr/sbin/install
1013 # SunOS /usr/etc/install
1014 # IRIX /sbin/install
1015 # AIX /bin/install
1016 # AmigaOS /C/install, which installs bootblocks on floppy discs
1017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1020 # ./install, which can be erroneously created by make from ./install.sh.
1021 echo "$as_me:1021: checking for a BSD compatible install" >&5
1022 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1023 if test -z "$INSTALL"; then
1024 if test "${ac_cv_path_install+set}" = set; then
1025 echo $ECHO_N "(cached) $ECHO_C" >&6
1026 else
1027 ac_save_IFS=$IFS; IFS=$ac_path_separator
1028 for ac_dir in $PATH; do
1029 IFS=$ac_save_IFS
1030 # Account for people who put trailing slashes in PATH elements.
1031 case $ac_dir/ in
1032 / | ./ | .// | /cC/* \
1033 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1034 | /usr/ucb/* ) ;;
1035 *)
1036 # OSF1 and SCO ODT 3.0 have their own names for install.
1037 # Don't use installbsd from OSF since it installs stuff as root
1038 # by default.
1039 for ac_prog in ginstall scoinst install; do
1040 if $as_executable_p "$ac_dir/$ac_prog"; then
1041 if test $ac_prog = install &&
1042 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1043 # AIX install. It has an incompatible calling convention.
1044 :
1045 elif test $ac_prog = install &&
1046 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1047 # program-specific install script used by HP pwplus--don't use.
1048 :
1049 else
1050 ac_cv_path_install="$ac_dir/$ac_prog -c"
1051 break 2
1052 fi
1053 fi
1054 done
1055 ;;
1056 esac
1057 done
1058
1059 fi
1060 if test "${ac_cv_path_install+set}" = set; then
1061 INSTALL=$ac_cv_path_install
1062 else
1063 # As a last resort, use the slow shell script. We don't cache a
1064 # path for INSTALL within a source directory, because that will
1065 # break other packages using the cache if that directory is
1066 # removed, or if the path is relative.
1067 INSTALL=$ac_install_sh
1068 fi
1069 fi
1070 echo "$as_me:1070: result: $INSTALL" >&5
1071 echo "${ECHO_T}$INSTALL" >&6
1072
1073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1074 # It thinks the first close brace ends the variable substitution.
1075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1076
1077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1078
1079 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1080
1081 echo "$as_me:1081: checking whether build environment is sane" >&5
1082 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1083 # Just in case
1084 sleep 1
1085 echo timestamp > conftestfile
1086 # Do `set' in a subshell so we don't clobber the current shell's
1087 # arguments. Must try -L first in case configure is actually a
1088 # symlink; some systems play weird games with the mod time of symlinks
1089 # (eg FreeBSD returns the mod time of the symlink's containing
1090 # directory).
1091 if (
1092 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1093 if test "$*" = "X"; then
1094 # -L didn't work.
1095 set X `ls -t $srcdir/configure conftestfile`
1096 fi
1097 if test "$*" != "X $srcdir/configure conftestfile" \
1098 && test "$*" != "X conftestfile $srcdir/configure"; then
1099
1100 # If neither matched, then we have a broken ls. This can happen
1101 # if, for instance, CONFIG_SHELL is bash and it inherits a
1102 # broken ls alias from the environment. This has actually
1103 # happened. Such a system could not be considered "sane".
1104 { { echo "$as_me:1104: error: ls -t appears to fail. Make sure there is not a broken
1105 alias in your environment" >&5
1106 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1107 alias in your environment" >&2;}
1108 { (exit 1); exit 1; }; }
1109 fi
1110
1111 test "$2" = conftestfile
1112 )
1113 then
1114 # Ok.
1115 :
1116 else
1117 { { echo "$as_me:1117: error: newly created file is older than distributed files!
1118 Check your system clock" >&5
1119 echo "$as_me: error: newly created file is older than distributed files!
1120 Check your system clock" >&2;}
1121 { (exit 1); exit 1; }; }
1122 fi
1123 rm -f conftest*
1124 echo "$as_me:1124: result: yes" >&5
1125 echo "${ECHO_T}yes" >&6
1126 test "$program_prefix" != NONE &&
1127 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1128 # Use a double $ so make ignores it.
1129 test "$program_suffix" != NONE &&
1130 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1131 # Double any \ or $. echo might interpret backslashes.
1132 # By default was `s,x,x', remove it if useless.
1133 cat <<\_ACEOF >conftest.sed
1134 s/[\\$]/&&/g;s/;s,x,x,$//
1135 _ACEOF
1136 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1137 rm conftest.sed
1138
1139 echo "$as_me:1139: checking whether ${MAKE-make} sets \${MAKE}" >&5
1140 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1141 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1142 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1143 echo $ECHO_N "(cached) $ECHO_C" >&6
1144 else
1145 cat >conftest.make <<\EOF
1146 all:
1147 @echo 'ac_maketemp="${MAKE}"'
1148 EOF
1149 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1150 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1151 if test -n "$ac_maketemp"; then
1152 eval ac_cv_prog_make_${ac_make}_set=yes
1153 else
1154 eval ac_cv_prog_make_${ac_make}_set=no
1155 fi
1156 rm -f conftest.make
1157 fi
1158 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1159 echo "$as_me:1159: result: yes" >&5
1160 echo "${ECHO_T}yes" >&6
1161 SET_MAKE=
1162 else
1163 echo "$as_me:1163: result: no" >&5
1164 echo "${ECHO_T}no" >&6
1165 SET_MAKE="MAKE=${MAKE-make}"
1166 fi
1167
1168 PACKAGE=bison
1169
1170 VERSION=1.28a
1171
1172 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1173 { { echo "$as_me:1173: error: source directory already configured; run \"make distclean\" there first" >&5
1174 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1175 { (exit 1); exit 1; }; }
1176 fi
1177
1178 cat >>confdefs.h <<EOF
1179 #define PACKAGE "$PACKAGE"
1180 EOF
1181
1182 cat >>confdefs.h <<EOF
1183 #define VERSION "$VERSION"
1184 EOF
1185
1186 missing_dir=`cd $ac_aux_dir && pwd`
1187 echo "$as_me:1187: checking for working aclocal" >&5
1188 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1189 # Run test in a subshell; some versions of sh will print an error if
1190 # an executable is not found, even if stderr is redirected.
1191 # Redirect stdin to placate older versions of autoconf. Sigh.
1192 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1193 ACLOCAL=aclocal
1194 echo "$as_me:1194: result: found" >&5
1195 echo "${ECHO_T}found" >&6
1196 else
1197 ACLOCAL="$missing_dir/missing aclocal"
1198 echo "$as_me:1198: result: missing" >&5
1199 echo "${ECHO_T}missing" >&6
1200 fi
1201
1202 echo "$as_me:1202: checking for working autoconf" >&5
1203 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1204 # Run test in a subshell; some versions of sh will print an error if
1205 # an executable is not found, even if stderr is redirected.
1206 # Redirect stdin to placate older versions of autoconf. Sigh.
1207 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1208 AUTOCONF=autoconf
1209 echo "$as_me:1209: result: found" >&5
1210 echo "${ECHO_T}found" >&6
1211 else
1212 AUTOCONF="$missing_dir/missing autoconf"
1213 echo "$as_me:1213: result: missing" >&5
1214 echo "${ECHO_T}missing" >&6
1215 fi
1216
1217 echo "$as_me:1217: checking for working automake" >&5
1218 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1219 # Run test in a subshell; some versions of sh will print an error if
1220 # an executable is not found, even if stderr is redirected.
1221 # Redirect stdin to placate older versions of autoconf. Sigh.
1222 if (automake --version) < /dev/null > /dev/null 2>&1; then
1223 AUTOMAKE=automake
1224 echo "$as_me:1224: result: found" >&5
1225 echo "${ECHO_T}found" >&6
1226 else
1227 AUTOMAKE="$missing_dir/missing automake"
1228 echo "$as_me:1228: result: missing" >&5
1229 echo "${ECHO_T}missing" >&6
1230 fi
1231
1232 echo "$as_me:1232: checking for working autoheader" >&5
1233 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1234 # Run test in a subshell; some versions of sh will print an error if
1235 # an executable is not found, even if stderr is redirected.
1236 # Redirect stdin to placate older versions of autoconf. Sigh.
1237 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1238 AUTOHEADER=autoheader
1239 echo "$as_me:1239: result: found" >&5
1240 echo "${ECHO_T}found" >&6
1241 else
1242 AUTOHEADER="$missing_dir/missing autoheader"
1243 echo "$as_me:1243: result: missing" >&5
1244 echo "${ECHO_T}missing" >&6
1245 fi
1246
1247 echo "$as_me:1247: checking for working makeinfo" >&5
1248 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1249 # Run test in a subshell; some versions of sh will print an error if
1250 # an executable is not found, even if stderr is redirected.
1251 # Redirect stdin to placate older versions of autoconf. Sigh.
1252 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1253 MAKEINFO=makeinfo
1254 echo "$as_me:1254: result: found" >&5
1255 echo "${ECHO_T}found" >&6
1256 else
1257 MAKEINFO="$missing_dir/missing makeinfo"
1258 echo "$as_me:1258: result: missing" >&5
1259 echo "${ECHO_T}missing" >&6
1260 fi
1261
1262 ac_config_headers="$ac_config_headers config.h:config.hin"
1263
1264 ac_config_commands="$ac_config_commands default-1"
1265
1266 # Initialize the test suite.
1267 AT_TESTPATH=../src
1268
1269 # Try to be compatible with both Autoconf 2.13 and 2.50.
1270 if test -z "$ECHO_C$ECHO_N$ECHO_T"; then
1271 ECHO_C="$ac_c"
1272 ECHO_N="$ac_n"
1273 ECHO_T="$ac_t"
1274
1275 fi
1276
1277 # Checks for programs.
1278 ac_ext=c
1279 ac_cpp='$CPP $CPPFLAGS'
1280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283 if test -n "$ac_tool_prefix"; then
1284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1285 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1286 echo "$as_me:1286: checking for $ac_word" >&5
1287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1288 if test "${ac_cv_prog_CC+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1290 else
1291 if test -n "$CC"; then
1292 ac_cv_prog_CC="$CC" # Let the user override the test.
1293 else
1294 ac_save_IFS=$IFS; IFS=$ac_path_separator
1295 ac_dummy="$PATH"
1296 for ac_dir in $ac_dummy; do
1297 IFS=$ac_save_IFS
1298 test -z "$ac_dir" && ac_dir=.
1299 $as_executable_p "$ac_dir/$ac_word" || continue
1300 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1301 echo "$as_me:1301: found $ac_dir/$ac_word" >&5
1302 break
1303 done
1304
1305 fi
1306 fi
1307 CC=$ac_cv_prog_CC
1308 if test -n "$CC"; then
1309 echo "$as_me:1309: result: $CC" >&5
1310 echo "${ECHO_T}$CC" >&6
1311 else
1312 echo "$as_me:1312: result: no" >&5
1313 echo "${ECHO_T}no" >&6
1314 fi
1315
1316 fi
1317 if test -z "$ac_cv_prog_CC"; then
1318 ac_ct_CC=$CC
1319 # Extract the first word of "gcc", so it can be a program name with args.
1320 set dummy gcc; ac_word=$2
1321 echo "$as_me:1321: checking for $ac_word" >&5
1322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1325 else
1326 if test -n "$ac_ct_CC"; then
1327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1328 else
1329 ac_save_IFS=$IFS; IFS=$ac_path_separator
1330 ac_dummy="$PATH"
1331 for ac_dir in $ac_dummy; do
1332 IFS=$ac_save_IFS
1333 test -z "$ac_dir" && ac_dir=.
1334 $as_executable_p "$ac_dir/$ac_word" || continue
1335 ac_cv_prog_ac_ct_CC="gcc"
1336 echo "$as_me:1336: found $ac_dir/$ac_word" >&5
1337 break
1338 done
1339
1340 fi
1341 fi
1342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1343 if test -n "$ac_ct_CC"; then
1344 echo "$as_me:1344: result: $ac_ct_CC" >&5
1345 echo "${ECHO_T}$ac_ct_CC" >&6
1346 else
1347 echo "$as_me:1347: result: no" >&5
1348 echo "${ECHO_T}no" >&6
1349 fi
1350
1351 CC=$ac_ct_CC
1352 else
1353 CC="$ac_cv_prog_CC"
1354 fi
1355
1356 if test -z "$CC"; then
1357 if test -n "$ac_tool_prefix"; then
1358 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1359 set dummy ${ac_tool_prefix}cc; ac_word=$2
1360 echo "$as_me:1360: checking for $ac_word" >&5
1361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1362 if test "${ac_cv_prog_CC+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365 if test -n "$CC"; then
1366 ac_cv_prog_CC="$CC" # Let the user override the test.
1367 else
1368 ac_save_IFS=$IFS; IFS=$ac_path_separator
1369 ac_dummy="$PATH"
1370 for ac_dir in $ac_dummy; do
1371 IFS=$ac_save_IFS
1372 test -z "$ac_dir" && ac_dir=.
1373 $as_executable_p "$ac_dir/$ac_word" || continue
1374 ac_cv_prog_CC="${ac_tool_prefix}cc"
1375 echo "$as_me:1375: found $ac_dir/$ac_word" >&5
1376 break
1377 done
1378
1379 fi
1380 fi
1381 CC=$ac_cv_prog_CC
1382 if test -n "$CC"; then
1383 echo "$as_me:1383: result: $CC" >&5
1384 echo "${ECHO_T}$CC" >&6
1385 else
1386 echo "$as_me:1386: result: no" >&5
1387 echo "${ECHO_T}no" >&6
1388 fi
1389
1390 fi
1391 if test -z "$ac_cv_prog_CC"; then
1392 ac_ct_CC=$CC
1393 # Extract the first word of "cc", so it can be a program name with args.
1394 set dummy cc; ac_word=$2
1395 echo "$as_me:1395: checking for $ac_word" >&5
1396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 else
1400 if test -n "$ac_ct_CC"; then
1401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1402 else
1403 ac_save_IFS=$IFS; IFS=$ac_path_separator
1404 ac_dummy="$PATH"
1405 for ac_dir in $ac_dummy; do
1406 IFS=$ac_save_IFS
1407 test -z "$ac_dir" && ac_dir=.
1408 $as_executable_p "$ac_dir/$ac_word" || continue
1409 ac_cv_prog_ac_ct_CC="cc"
1410 echo "$as_me:1410: found $ac_dir/$ac_word" >&5
1411 break
1412 done
1413
1414 fi
1415 fi
1416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1417 if test -n "$ac_ct_CC"; then
1418 echo "$as_me:1418: result: $ac_ct_CC" >&5
1419 echo "${ECHO_T}$ac_ct_CC" >&6
1420 else
1421 echo "$as_me:1421: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1423 fi
1424
1425 CC=$ac_ct_CC
1426 else
1427 CC="$ac_cv_prog_CC"
1428 fi
1429
1430 fi
1431 if test -z "$CC"; then
1432 # Extract the first word of "cc", so it can be a program name with args.
1433 set dummy cc; ac_word=$2
1434 echo "$as_me:1434: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_prog_CC+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439 if test -n "$CC"; then
1440 ac_cv_prog_CC="$CC" # Let the user override the test.
1441 else
1442 ac_prog_rejected=no
1443 ac_save_IFS=$IFS; IFS=$ac_path_separator
1444 ac_dummy="$PATH"
1445 for ac_dir in $ac_dummy; do
1446 IFS=$ac_save_IFS
1447 test -z "$ac_dir" && ac_dir=.
1448 $as_executable_p "$ac_dir/$ac_word" || continue
1449 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1450 ac_prog_rejected=yes
1451 continue
1452 fi
1453 ac_cv_prog_CC="cc"
1454 echo "$as_me:1454: found $ac_dir/$ac_word" >&5
1455 break
1456 done
1457
1458 if test $ac_prog_rejected = yes; then
1459 # We found a bogon in the path, so make sure we never use it.
1460 set dummy $ac_cv_prog_CC
1461 shift
1462 if test $# != 0; then
1463 # We chose a different compiler from the bogus one.
1464 # However, it has the same basename, so the bogon will be chosen
1465 # first if we set CC to just the basename; use the full file name.
1466 shift
1467 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1468 shift
1469 ac_cv_prog_CC="$@"
1470 fi
1471 fi
1472 fi
1473 fi
1474 CC=$ac_cv_prog_CC
1475 if test -n "$CC"; then
1476 echo "$as_me:1476: result: $CC" >&5
1477 echo "${ECHO_T}$CC" >&6
1478 else
1479 echo "$as_me:1479: result: no" >&5
1480 echo "${ECHO_T}no" >&6
1481 fi
1482
1483 fi
1484 if test -z "$CC"; then
1485 if test -n "$ac_tool_prefix"; then
1486 for ac_prog in cl
1487 do
1488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1490 echo "$as_me:1490: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC="$CC" # Let the user override the test.
1497 else
1498 ac_save_IFS=$IFS; IFS=$ac_path_separator
1499 ac_dummy="$PATH"
1500 for ac_dir in $ac_dummy; do
1501 IFS=$ac_save_IFS
1502 test -z "$ac_dir" && ac_dir=.
1503 $as_executable_p "$ac_dir/$ac_word" || continue
1504 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1505 echo "$as_me:1505: found $ac_dir/$ac_word" >&5
1506 break
1507 done
1508
1509 fi
1510 fi
1511 CC=$ac_cv_prog_CC
1512 if test -n "$CC"; then
1513 echo "$as_me:1513: result: $CC" >&5
1514 echo "${ECHO_T}$CC" >&6
1515 else
1516 echo "$as_me:1516: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1518 fi
1519
1520 test -n "$CC" && break
1521 done
1522 fi
1523 if test -z "$CC"; then
1524 ac_ct_CC=$CC
1525 for ac_prog in cl
1526 do
1527 # Extract the first word of "$ac_prog", so it can be a program name with args.
1528 set dummy $ac_prog; ac_word=$2
1529 echo "$as_me:1529: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534 if test -n "$ac_ct_CC"; then
1535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1536 else
1537 ac_save_IFS=$IFS; IFS=$ac_path_separator
1538 ac_dummy="$PATH"
1539 for ac_dir in $ac_dummy; do
1540 IFS=$ac_save_IFS
1541 test -z "$ac_dir" && ac_dir=.
1542 $as_executable_p "$ac_dir/$ac_word" || continue
1543 ac_cv_prog_ac_ct_CC="$ac_prog"
1544 echo "$as_me:1544: found $ac_dir/$ac_word" >&5
1545 break
1546 done
1547
1548 fi
1549 fi
1550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1551 if test -n "$ac_ct_CC"; then
1552 echo "$as_me:1552: result: $ac_ct_CC" >&5
1553 echo "${ECHO_T}$ac_ct_CC" >&6
1554 else
1555 echo "$as_me:1555: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1557 fi
1558
1559 test -n "$ac_ct_CC" && break
1560 done
1561
1562 CC=$ac_ct_CC
1563 fi
1564
1565 fi
1566
1567 test -z "$CC" && { { echo "$as_me:1567: error: no acceptable cc found in \$PATH" >&5
1568 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571 # Provide some information about the compiler.
1572 echo "$as_me:1572:" \
1573 "checking for C compiler version" >&5
1574 ac_compiler=`set X $ac_compile; echo $2`
1575 { (eval echo "$as_me:1575: \"$ac_compiler --version </dev/null >&5\"") >&5
1576 (eval $ac_compiler --version </dev/null >&5) 2>&5
1577 ac_status=$?
1578 echo "$as_me:1578: \$? = $ac_status" >&5
1579 (exit $ac_status); }
1580 { (eval echo "$as_me:1580: \"$ac_compiler -v </dev/null >&5\"") >&5
1581 (eval $ac_compiler -v </dev/null >&5) 2>&5
1582 ac_status=$?
1583 echo "$as_me:1583: \$? = $ac_status" >&5
1584 (exit $ac_status); }
1585 { (eval echo "$as_me:1585: \"$ac_compiler -V </dev/null >&5\"") >&5
1586 (eval $ac_compiler -V </dev/null >&5) 2>&5
1587 ac_status=$?
1588 echo "$as_me:1588: \$? = $ac_status" >&5
1589 (exit $ac_status); }
1590
1591 cat >conftest.$ac_ext <<_ACEOF
1592 #line 1592 "configure"
1593 #include "confdefs.h"
1594
1595 int
1596 main ()
1597 {
1598
1599 ;
1600 return 0;
1601 }
1602 _ACEOF
1603 ac_clean_files_save=$ac_clean_files
1604 ac_clean_files="$ac_clean_files a.out a.exe"
1605 # Try to create an executable without -o first, disregard a.out.
1606 # It will help us diagnose broken compilers, and finding out an intuition
1607 # of exeext.
1608 echo "$as_me:1608: checking for C compiler default output" >&5
1609 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1610 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1611 if { (eval echo "$as_me:1611: \"$ac_link_default\"") >&5
1612 (eval $ac_link_default) 2>&5
1613 ac_status=$?
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); }; then
1616 # Find the output, starting from the most likely. This scheme is
1617 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1618 # resort.
1619 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1620 ls a.out conftest 2>/dev/null;
1621 ls a.* conftest.* 2>/dev/null`; do
1622 case $ac_file in
1623 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1624 a.out ) # We found the default executable, but exeext='' is most
1625 # certainly right.
1626 break;;
1627 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1628 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1629 export ac_cv_exeext
1630 break;;
1631 * ) break;;
1632 esac
1633 done
1634 else
1635 echo "$as_me: failed program was:" >&5
1636 cat conftest.$ac_ext >&5
1637 { { echo "$as_me:1637: error: C compiler cannot create executables" >&5
1638 echo "$as_me: error: C compiler cannot create executables" >&2;}
1639 { (exit 77); exit 77; }; }
1640 fi
1641
1642 ac_exeext=$ac_cv_exeext
1643 echo "$as_me:1643: result: $ac_file" >&5
1644 echo "${ECHO_T}$ac_file" >&6
1645
1646 # Check the compiler produces executables we can run. If not, either
1647 # the compiler is broken, or we cross compile.
1648 echo "$as_me:1648: checking whether the C compiler works" >&5
1649 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1650 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1651 # If not cross compiling, check that we can run a simple program.
1652 if test "$cross_compiling" != yes; then
1653 if { ac_try='./$ac_file'
1654 { (eval echo "$as_me:1654: \"$ac_try\"") >&5
1655 (eval $ac_try) 2>&5
1656 ac_status=$?
1657 echo "$as_me:1657: \$? = $ac_status" >&5
1658 (exit $ac_status); }; }; then
1659 cross_compiling=no
1660 else
1661 if test "$cross_compiling" = maybe; then
1662 cross_compiling=yes
1663 else
1664 { { echo "$as_me:1664: error: cannot run C compiled programs.
1665 If you meant to cross compile, use \`--host'." >&5
1666 echo "$as_me: error: cannot run C compiled programs.
1667 If you meant to cross compile, use \`--host'." >&2;}
1668 { (exit 1); exit 1; }; }
1669 fi
1670 fi
1671 fi
1672 echo "$as_me:1672: result: yes" >&5
1673 echo "${ECHO_T}yes" >&6
1674
1675 rm -f a.out a.exe conftest$ac_cv_exeext
1676 ac_clean_files=$ac_clean_files_save
1677 # Check the compiler produces executables we can run. If not, either
1678 # the compiler is broken, or we cross compile.
1679 echo "$as_me:1679: checking whether we are cross compiling" >&5
1680 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1681 echo "$as_me:1681: result: $cross_compiling" >&5
1682 echo "${ECHO_T}$cross_compiling" >&6
1683
1684 echo "$as_me:1684: checking for executable suffix" >&5
1685 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1686 if { (eval echo "$as_me:1686: \"$ac_link\"") >&5
1687 (eval $ac_link) 2>&5
1688 ac_status=$?
1689 echo "$as_me:1689: \$? = $ac_status" >&5
1690 (exit $ac_status); }; then
1691 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1692 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1693 # work properly (i.e., refer to `conftest.exe'), while it won't with
1694 # `rm'.
1695 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1696 case $ac_file in
1697 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1698 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1699 export ac_cv_exeext
1700 break;;
1701 * ) break;;
1702 esac
1703 done
1704 else
1705 { { echo "$as_me:1705: error: cannot compute EXEEXT: cannot compile and link" >&5
1706 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1707 { (exit 1); exit 1; }; }
1708 fi
1709
1710 rm -f conftest$ac_cv_exeext
1711 echo "$as_me:1711: result: $ac_cv_exeext" >&5
1712 echo "${ECHO_T}$ac_cv_exeext" >&6
1713
1714 rm -f conftest.$ac_ext
1715 EXEEXT=$ac_cv_exeext
1716 ac_exeext=$EXEEXT
1717 echo "$as_me:1717: checking for object suffix" >&5
1718 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1719 if test "${ac_cv_objext+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722 cat >conftest.$ac_ext <<_ACEOF
1723 #line 1723 "configure"
1724 #include "confdefs.h"
1725
1726 int
1727 main ()
1728 {
1729
1730 ;
1731 return 0;
1732 }
1733 _ACEOF
1734 rm -f conftest.o conftest.obj
1735 if { (eval echo "$as_me:1735: \"$ac_compile\"") >&5
1736 (eval $ac_compile) 2>&5
1737 ac_status=$?
1738 echo "$as_me:1738: \$? = $ac_status" >&5
1739 (exit $ac_status); }; then
1740 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1741 case $ac_file in
1742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1744 break;;
1745 esac
1746 done
1747 else
1748 echo "$as_me: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1750 { { echo "$as_me:1750: error: cannot compute OBJEXT: cannot compile" >&5
1751 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1752 { (exit 1); exit 1; }; }
1753 fi
1754
1755 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1756 fi
1757 echo "$as_me:1757: result: $ac_cv_objext" >&5
1758 echo "${ECHO_T}$ac_cv_objext" >&6
1759 OBJEXT=$ac_cv_objext
1760 ac_objext=$OBJEXT
1761 echo "$as_me:1761: checking whether we are using the GNU C compiler" >&5
1762 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1763 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 else
1766 cat >conftest.$ac_ext <<_ACEOF
1767 #line 1767 "configure"
1768 #include "confdefs.h"
1769
1770 int
1771 main ()
1772 {
1773 #ifndef __GNUC__
1774 choke me
1775 #endif
1776
1777 ;
1778 return 0;
1779 }
1780 _ACEOF
1781 rm -f conftest.$ac_objext
1782 if { (eval echo "$as_me:1782: \"$ac_compile\"") >&5
1783 (eval $ac_compile) 2>&5
1784 ac_status=$?
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); } &&
1787 { ac_try='test -s conftest.$ac_objext'
1788 { (eval echo "$as_me:1788: \"$ac_try\"") >&5
1789 (eval $ac_try) 2>&5
1790 ac_status=$?
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1793 ac_compiler_gnu=yes
1794 else
1795 echo "$as_me: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1797 ac_compiler_gnu=no
1798 fi
1799 rm -f conftest.$ac_objext conftest.$ac_ext
1800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1801
1802 fi
1803 echo "$as_me:1803: result: $ac_cv_c_compiler_gnu" >&5
1804 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1805 GCC=`test $ac_compiler_gnu = yes && echo yes`
1806 ac_test_CFLAGS=${CFLAGS+set}
1807 ac_save_CFLAGS=$CFLAGS
1808 CFLAGS="-g"
1809 echo "$as_me:1809: checking whether $CC accepts -g" >&5
1810 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1811 if test "${ac_cv_prog_cc_g+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814 cat >conftest.$ac_ext <<_ACEOF
1815 #line 1815 "configure"
1816 #include "confdefs.h"
1817
1818 int
1819 main ()
1820 {
1821
1822 ;
1823 return 0;
1824 }
1825 _ACEOF
1826 rm -f conftest.$ac_objext
1827 if { (eval echo "$as_me:1827: \"$ac_compile\"") >&5
1828 (eval $ac_compile) 2>&5
1829 ac_status=$?
1830 echo "$as_me:1830: \$? = $ac_status" >&5
1831 (exit $ac_status); } &&
1832 { ac_try='test -s conftest.$ac_objext'
1833 { (eval echo "$as_me:1833: \"$ac_try\"") >&5
1834 (eval $ac_try) 2>&5
1835 ac_status=$?
1836 echo "$as_me:1836: \$? = $ac_status" >&5
1837 (exit $ac_status); }; }; then
1838 ac_cv_prog_cc_g=yes
1839 else
1840 echo "$as_me: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1842 ac_cv_prog_cc_g=no
1843 fi
1844 rm -f conftest.$ac_objext conftest.$ac_ext
1845 fi
1846 echo "$as_me:1846: result: $ac_cv_prog_cc_g" >&5
1847 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1848 if test "$ac_test_CFLAGS" = set; then
1849 CFLAGS=$ac_save_CFLAGS
1850 elif test $ac_cv_prog_cc_g = yes; then
1851 if test "$GCC" = yes; then
1852 CFLAGS="-g -O2"
1853 else
1854 CFLAGS="-g"
1855 fi
1856 else
1857 if test "$GCC" = yes; then
1858 CFLAGS="-O2"
1859 else
1860 CFLAGS=
1861 fi
1862 fi
1863 # Some people use a C++ compiler to compile C. Since we use `exit',
1864 # in C++ we need to declare it. In case someone uses the same compiler
1865 # for both compiling C and C++ we need to have the C++ compiler decide
1866 # the declaration of exit, since it's the most demanding environment.
1867 cat >conftest.$ac_ext <<_ACEOF
1868 #ifndef __cplusplus
1869 choke me
1870 #endif
1871 _ACEOF
1872 rm -f conftest.$ac_objext
1873 if { (eval echo "$as_me:1873: \"$ac_compile\"") >&5
1874 (eval $ac_compile) 2>&5
1875 ac_status=$?
1876 echo "$as_me:1876: \$? = $ac_status" >&5
1877 (exit $ac_status); } &&
1878 { ac_try='test -s conftest.$ac_objext'
1879 { (eval echo "$as_me:1879: \"$ac_try\"") >&5
1880 (eval $ac_try) 2>&5
1881 ac_status=$?
1882 echo "$as_me:1882: \$? = $ac_status" >&5
1883 (exit $ac_status); }; }; then
1884 for ac_declaration in \
1885 ''\
1886 '#include <stdlib.h>' \
1887 'extern "C" void std::exit (int) throw (); using std::exit;' \
1888 'extern "C" void std::exit (int); using std::exit;' \
1889 'extern "C" void exit (int) throw ();' \
1890 'extern "C" void exit (int);' \
1891 'void exit (int);'
1892 do
1893 cat >conftest.$ac_ext <<_ACEOF
1894 #line 1894 "configure"
1895 #include "confdefs.h"
1896 #include <stdlib.h>
1897 $ac_declaration
1898 int
1899 main ()
1900 {
1901 exit (42);
1902 ;
1903 return 0;
1904 }
1905 _ACEOF
1906 rm -f conftest.$ac_objext
1907 if { (eval echo "$as_me:1907: \"$ac_compile\"") >&5
1908 (eval $ac_compile) 2>&5
1909 ac_status=$?
1910 echo "$as_me:1910: \$? = $ac_status" >&5
1911 (exit $ac_status); } &&
1912 { ac_try='test -s conftest.$ac_objext'
1913 { (eval echo "$as_me:1913: \"$ac_try\"") >&5
1914 (eval $ac_try) 2>&5
1915 ac_status=$?
1916 echo "$as_me:1916: \$? = $ac_status" >&5
1917 (exit $ac_status); }; }; then
1918 :
1919 else
1920 echo "$as_me: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1922 continue
1923 fi
1924 rm -f conftest.$ac_objext conftest.$ac_ext
1925 cat >conftest.$ac_ext <<_ACEOF
1926 #line 1926 "configure"
1927 #include "confdefs.h"
1928 $ac_declaration
1929 int
1930 main ()
1931 {
1932 exit (42);
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 rm -f conftest.$ac_objext
1938 if { (eval echo "$as_me:1938: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>&5
1940 ac_status=$?
1941 echo "$as_me:1941: \$? = $ac_status" >&5
1942 (exit $ac_status); } &&
1943 { ac_try='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:1944: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:1947: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1949 break
1950 else
1951 echo "$as_me: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1953 fi
1954 rm -f conftest.$ac_objext conftest.$ac_ext
1955 done
1956 rm -f conftest*
1957 if test -n "$ac_declaration"; then
1958 echo '#ifdef __cplusplus' >>confdefs.h
1959 echo $ac_declaration >>confdefs.h
1960 echo '#endif' >>confdefs.h
1961 fi
1962
1963 else
1964 echo "$as_me: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1966 fi
1967 rm -f conftest.$ac_objext conftest.$ac_ext
1968 ac_ext=c
1969 ac_cpp='$CPP $CPPFLAGS'
1970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973
1974 ac_ext=c
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 echo "$as_me:1979: checking how to run the C preprocessor" >&5
1980 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1981 # On Suns, sometimes $CPP names a directory.
1982 if test -n "$CPP" && test -d "$CPP"; then
1983 CPP=
1984 fi
1985 if test -z "$CPP"; then
1986 if test "${ac_cv_prog_CPP+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989 # Double quotes because CPP needs to be expanded
1990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1991 do
1992 ac_preproc_ok=false
1993 for ac_c_preproc_warn_flag in '' yes
1994 do
1995 # Use a header file that comes with gcc, so configuring glibc
1996 # with a fresh cross-compiler works.
1997 # On the NeXT, cc -E runs the code through the compiler's parser,
1998 # not just through cpp. "Syntax error" is here to catch this case.
1999 cat >conftest.$ac_ext <<_ACEOF
2000 #line 2000 "configure"
2001 #include "confdefs.h"
2002 #include <assert.h>
2003 Syntax error
2004 _ACEOF
2005 if { (eval echo "$as_me:2005: \"$ac_cpp conftest.$ac_ext\"") >&5
2006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2007 ac_status=$?
2008 egrep -v '^ *\+' conftest.er1 >conftest.err
2009 rm -f conftest.er1
2010 cat conftest.err >&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); } >/dev/null; then
2013 if test -s conftest.err; then
2014 ac_cpp_err=$ac_c_preproc_warn_flag
2015 else
2016 ac_cpp_err=
2017 fi
2018 else
2019 ac_cpp_err=yes
2020 fi
2021 if test -z "$ac_cpp_err"; then
2022 :
2023 else
2024 echo "$as_me: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2026 # Broken: fails on valid input.
2027 continue
2028 fi
2029 rm -f conftest.err conftest.$ac_ext
2030
2031 # OK, works on sane cases. Now check whether non-existent headers
2032 # can be detected and how.
2033 cat >conftest.$ac_ext <<_ACEOF
2034 #line 2034 "configure"
2035 #include "confdefs.h"
2036 #include <ac_nonexistent.h>
2037 _ACEOF
2038 if { (eval echo "$as_me:2038: \"$ac_cpp conftest.$ac_ext\"") >&5
2039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2040 ac_status=$?
2041 egrep -v '^ *\+' conftest.er1 >conftest.err
2042 rm -f conftest.er1
2043 cat conftest.err >&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } >/dev/null; then
2046 if test -s conftest.err; then
2047 ac_cpp_err=$ac_c_preproc_warn_flag
2048 else
2049 ac_cpp_err=
2050 fi
2051 else
2052 ac_cpp_err=yes
2053 fi
2054 if test -z "$ac_cpp_err"; then
2055 # Broken: success on invalid input.
2056 continue
2057 else
2058 echo "$as_me: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2060 # Passes both tests.
2061 ac_preproc_ok=:
2062 break
2063 fi
2064 rm -f conftest.err conftest.$ac_ext
2065
2066 done
2067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2068 rm -f conftest.err conftest.$ac_ext
2069 if $ac_preproc_ok; then
2070 break
2071 fi
2072
2073 done
2074 ac_cv_prog_CPP=$CPP
2075
2076 fi
2077 CPP=$ac_cv_prog_CPP
2078 else
2079 ac_cv_prog_CPP=$CPP
2080 fi
2081 echo "$as_me:2081: result: $CPP" >&5
2082 echo "${ECHO_T}$CPP" >&6
2083 ac_preproc_ok=false
2084 for ac_c_preproc_warn_flag in '' yes
2085 do
2086 # Use a header file that comes with gcc, so configuring glibc
2087 # with a fresh cross-compiler works.
2088 # On the NeXT, cc -E runs the code through the compiler's parser,
2089 # not just through cpp. "Syntax error" is here to catch this case.
2090 cat >conftest.$ac_ext <<_ACEOF
2091 #line 2091 "configure"
2092 #include "confdefs.h"
2093 #include <assert.h>
2094 Syntax error
2095 _ACEOF
2096 if { (eval echo "$as_me:2096: \"$ac_cpp conftest.$ac_ext\"") >&5
2097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2098 ac_status=$?
2099 egrep -v '^ *\+' conftest.er1 >conftest.err
2100 rm -f conftest.er1
2101 cat conftest.err >&5
2102 echo "$as_me:2102: \$? = $ac_status" >&5
2103 (exit $ac_status); } >/dev/null; then
2104 if test -s conftest.err; then
2105 ac_cpp_err=$ac_c_preproc_warn_flag
2106 else
2107 ac_cpp_err=
2108 fi
2109 else
2110 ac_cpp_err=yes
2111 fi
2112 if test -z "$ac_cpp_err"; then
2113 :
2114 else
2115 echo "$as_me: failed program was:" >&5
2116 cat conftest.$ac_ext >&5
2117 # Broken: fails on valid input.
2118 continue
2119 fi
2120 rm -f conftest.err conftest.$ac_ext
2121
2122 # OK, works on sane cases. Now check whether non-existent headers
2123 # can be detected and how.
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line 2125 "configure"
2126 #include "confdefs.h"
2127 #include <ac_nonexistent.h>
2128 _ACEOF
2129 if { (eval echo "$as_me:2129: \"$ac_cpp conftest.$ac_ext\"") >&5
2130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2131 ac_status=$?
2132 egrep -v '^ *\+' conftest.er1 >conftest.err
2133 rm -f conftest.er1
2134 cat conftest.err >&5
2135 echo "$as_me:2135: \$? = $ac_status" >&5
2136 (exit $ac_status); } >/dev/null; then
2137 if test -s conftest.err; then
2138 ac_cpp_err=$ac_c_preproc_warn_flag
2139 else
2140 ac_cpp_err=
2141 fi
2142 else
2143 ac_cpp_err=yes
2144 fi
2145 if test -z "$ac_cpp_err"; then
2146 # Broken: success on invalid input.
2147 continue
2148 else
2149 echo "$as_me: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2151 # Passes both tests.
2152 ac_preproc_ok=:
2153 break
2154 fi
2155 rm -f conftest.err conftest.$ac_ext
2156
2157 done
2158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2159 rm -f conftest.err conftest.$ac_ext
2160 if $ac_preproc_ok; then
2161 :
2162 else
2163 { { echo "$as_me:2163: error: C preprocessor \"$CPP\" fails sanity check" >&5
2164 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2165 { (exit 1); exit 1; }; }
2166 fi
2167
2168 ac_ext=c
2169 ac_cpp='$CPP $CPPFLAGS'
2170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173
2174 echo "$as_me:2174: checking for minix/config.h" >&5
2175 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2176 if test "${ac_cv_header_minix_config_h+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line 2180 "configure"
2181 #include "confdefs.h"
2182 #include <minix/config.h>
2183 _ACEOF
2184 if { (eval echo "$as_me:2184: \"$ac_cpp conftest.$ac_ext\"") >&5
2185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2186 ac_status=$?
2187 egrep -v '^ *\+' conftest.er1 >conftest.err
2188 rm -f conftest.er1
2189 cat conftest.err >&5
2190 echo "$as_me:2190: \$? = $ac_status" >&5
2191 (exit $ac_status); } >/dev/null; then
2192 if test -s conftest.err; then
2193 ac_cpp_err=$ac_c_preproc_warn_flag
2194 else
2195 ac_cpp_err=
2196 fi
2197 else
2198 ac_cpp_err=yes
2199 fi
2200 if test -z "$ac_cpp_err"; then
2201 ac_cv_header_minix_config_h=yes
2202 else
2203 echo "$as_me: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 ac_cv_header_minix_config_h=no
2206 fi
2207 rm -f conftest.err conftest.$ac_ext
2208 fi
2209 echo "$as_me:2209: result: $ac_cv_header_minix_config_h" >&5
2210 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2211 if test $ac_cv_header_minix_config_h = yes; then
2212 MINIX=yes
2213 else
2214 MINIX=
2215 fi
2216
2217 if test "$MINIX" = yes; then
2218
2219 cat >>confdefs.h <<\EOF
2220 #define _POSIX_SOURCE 1
2221 EOF
2222
2223 cat >>confdefs.h <<\EOF
2224 #define _POSIX_1_SOURCE 2
2225 EOF
2226
2227 cat >>confdefs.h <<\EOF
2228 #define _MINIX 1
2229 EOF
2230
2231 fi
2232
2233 echo "$as_me:2233: checking for strerror in -lcposix" >&5
2234 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2235 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 ac_check_lib_save_LIBS=$LIBS
2239 LIBS="-lcposix $LIBS"
2240 cat >conftest.$ac_ext <<_ACEOF
2241 #line 2241 "configure"
2242 #include "confdefs.h"
2243
2244 /* Override any gcc2 internal prototype to avoid an error. */
2245 #ifdef __cplusplus
2246 extern "C"
2247 #endif
2248 /* We use char because int might match the return type of a gcc2
2249 builtin and then its argument prototype would still apply. */
2250 char strerror ();
2251 int
2252 main ()
2253 {
2254 strerror ();
2255 ;
2256 return 0;
2257 }
2258 _ACEOF
2259 rm -f conftest.$ac_objext conftest$ac_exeext
2260 if { (eval echo "$as_me:2260: \"$ac_link\"") >&5
2261 (eval $ac_link) 2>&5
2262 ac_status=$?
2263 echo "$as_me:2263: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -s conftest$ac_exeext'
2266 { (eval echo "$as_me:2266: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:2269: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 ac_cv_lib_cposix_strerror=yes
2272 else
2273 echo "$as_me: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2275 ac_cv_lib_cposix_strerror=no
2276 fi
2277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2278 LIBS=$ac_check_lib_save_LIBS
2279 fi
2280 echo "$as_me:2280: result: $ac_cv_lib_cposix_strerror" >&5
2281 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2282 if test $ac_cv_lib_cposix_strerror = yes; then
2283 LIBS="$LIBS -lcposix"
2284 fi
2285
2286 echo "$as_me:2286: checking for ${CC-cc} option to accept ANSI C" >&5
2287 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2288 if test "${am_cv_prog_cc_stdc+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291 am_cv_prog_cc_stdc=no
2292 ac_save_CC="$CC"
2293 # Don't try gcc -ansi; that turns off useful extensions and
2294 # breaks some systems' header files.
2295 # AIX -qlanglvl=ansi
2296 # Ultrix and OSF/1 -std1
2297 # HP-UX -Aa -D_HPUX_SOURCE
2298 # SVR4 -Xc -D__EXTENSIONS__
2299 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2300 do
2301 CC="$ac_save_CC $ac_arg"
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line 2303 "configure"
2304 #include "confdefs.h"
2305 #include <stdarg.h>
2306 #include <stdio.h>
2307 #include <sys/types.h>
2308 #include <sys/stat.h>
2309 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2310 struct buf { int x; };
2311 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2312 static char *e (p, i)
2313 char **p;
2314 int i;
2315 {
2316 return p[i];
2317 }
2318 static char *f (char * (*g) (char **, int), char **p, ...)
2319 {
2320 char *s;
2321 va_list v;
2322 va_start (v,p);
2323 s = g (p, va_arg (v,int));
2324 va_end (v);
2325 return s;
2326 }
2327 int test (int i, double x);
2328 struct s1 {int (*f) (int a);};
2329 struct s2 {int (*f) (double a);};
2330 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2331 int argc;
2332 char **argv;
2333
2334 int
2335 main ()
2336 {
2337
2338 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2339
2340 ;
2341 return 0;
2342 }
2343 _ACEOF
2344 rm -f conftest.$ac_objext
2345 if { (eval echo "$as_me:2345: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>&5
2347 ac_status=$?
2348 echo "$as_me:2348: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -s conftest.$ac_objext'
2351 { (eval echo "$as_me:2351: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:2354: \$? = $ac_status" >&5
2355 (exit $ac_status); }; }; then
2356 am_cv_prog_cc_stdc="$ac_arg"; break
2357 else
2358 echo "$as_me: failed program was:" >&5
2359 cat conftest.$ac_ext >&5
2360 fi
2361 rm -f conftest.$ac_objext conftest.$ac_ext
2362 done
2363 CC="$ac_save_CC"
2364
2365 fi
2366
2367 if test -z "$am_cv_prog_cc_stdc"; then
2368 echo "$as_me:2368: result: none needed" >&5
2369 echo "${ECHO_T}none needed" >&6
2370 else
2371 echo "$as_me:2371: result: $am_cv_prog_cc_stdc" >&5
2372 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2373 fi
2374 case "x$am_cv_prog_cc_stdc" in
2375 x|xno) ;;
2376 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2377 esac
2378
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2381 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2382 echo "$as_me:2382: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2384 if test "${ac_cv_prog_RANLIB+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 if test -n "$RANLIB"; then
2388 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2389 else
2390 ac_save_IFS=$IFS; IFS=$ac_path_separator
2391 ac_dummy="$PATH"
2392 for ac_dir in $ac_dummy; do
2393 IFS=$ac_save_IFS
2394 test -z "$ac_dir" && ac_dir=.
2395 $as_executable_p "$ac_dir/$ac_word" || continue
2396 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2397 echo "$as_me:2397: found $ac_dir/$ac_word" >&5
2398 break
2399 done
2400
2401 fi
2402 fi
2403 RANLIB=$ac_cv_prog_RANLIB
2404 if test -n "$RANLIB"; then
2405 echo "$as_me:2405: result: $RANLIB" >&5
2406 echo "${ECHO_T}$RANLIB" >&6
2407 else
2408 echo "$as_me:2408: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2410 fi
2411
2412 fi
2413 if test -z "$ac_cv_prog_RANLIB"; then
2414 ac_ct_RANLIB=$RANLIB
2415 # Extract the first word of "ranlib", so it can be a program name with args.
2416 set dummy ranlib; ac_word=$2
2417 echo "$as_me:2417: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 if test -n "$ac_ct_RANLIB"; then
2423 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2424 else
2425 ac_save_IFS=$IFS; IFS=$ac_path_separator
2426 ac_dummy="$PATH"
2427 for ac_dir in $ac_dummy; do
2428 IFS=$ac_save_IFS
2429 test -z "$ac_dir" && ac_dir=.
2430 $as_executable_p "$ac_dir/$ac_word" || continue
2431 ac_cv_prog_ac_ct_RANLIB="ranlib"
2432 echo "$as_me:2432: found $ac_dir/$ac_word" >&5
2433 break
2434 done
2435
2436 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2437 fi
2438 fi
2439 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2440 if test -n "$ac_ct_RANLIB"; then
2441 echo "$as_me:2441: result: $ac_ct_RANLIB" >&5
2442 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2443 else
2444 echo "$as_me:2444: result: no" >&5
2445 echo "${ECHO_T}no" >&6
2446 fi
2447
2448 RANLIB=$ac_ct_RANLIB
2449 else
2450 RANLIB="$ac_cv_prog_RANLIB"
2451 fi
2452
2453 # GNU M4 is needed to build the testsuite.
2454 for ac_prog in gm4 gnum4 m4
2455 do
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:2458: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_path_M4+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463 case $M4 in
2464 [\\/]* | ?:[\\/]*)
2465 ac_cv_path_M4="$M4" # Let the user override the test with a path.
2466 ;;
2467 *)
2468 ac_save_IFS=$IFS; IFS=$ac_path_separator
2469 ac_dummy="$PATH"
2470 for ac_dir in $ac_dummy; do
2471 IFS=$ac_save_IFS
2472 test -z "$ac_dir" && ac_dir=.
2473 if $as_executable_p "$ac_dir/$ac_word"; then
2474 ac_cv_path_M4="$ac_dir/$ac_word"
2475 echo "$as_me:2475: found $ac_dir/$ac_word" >&5
2476 break
2477 fi
2478 done
2479
2480 ;;
2481 esac
2482 fi
2483 M4=$ac_cv_path_M4
2484
2485 if test -n "$M4"; then
2486 echo "$as_me:2486: result: $M4" >&5
2487 echo "${ECHO_T}$M4" >&6
2488 else
2489 echo "$as_me:2489: result: no" >&5
2490 echo "${ECHO_T}no" >&6
2491 fi
2492
2493 test -n "$M4" && break
2494 done
2495 test -n "$M4" || M4="m4"
2496
2497 echo "$as_me:2497: checking whether m4 supports frozen files" >&5
2498 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
2499 if test "${ac_cv_prog_gnu_m4+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 ac_cv_prog_gnu_m4=no
2503 if test x"$M4" != x; then
2504 case `$M4 --help < /dev/null 2>&1` in
2505 *reload-state*) ac_cv_prog_gnu_m4=yes ;;
2506 esac
2507 fi
2508 fi
2509 echo "$as_me:2509: result: $ac_cv_prog_gnu_m4" >&5
2510 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
2511
2512 if test "$ac_cv_prog_gnu_m4" != yes; then
2513 missing_dir=`cd $ac_aux_dir && pwd`
2514 M4="$missing_dir/missing m4"
2515 fi
2516
2517 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
2518 if test "${enable_gcc_warnings+set}" = set; then
2519 enableval="$enable_gcc_warnings"
2520 case "${enableval}" in
2521 yes|no) ;;
2522 *) { { echo "$as_me:2522: error: bad value ${enableval} for gcc-warnings option" >&5
2523 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
2524 { (exit 1); exit 1; }; } ;;
2525 esac
2526 else
2527 enableval=no
2528 fi;
2529 if test "${enableval}" = yes; then
2530 echo "$as_me:2530: checking whether compiler accepts -Wall" >&5
2531 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
2532
2533 ac_save_CFLAGS="$CFLAGS"
2534 CFLAGS="$CFLAGS -Wall"
2535 cat >conftest.$ac_ext <<_ACEOF
2536 #line 2536 "configure"
2537 #include "confdefs.h"
2538
2539 int
2540 main ()
2541 {
2542 int x;
2543 ;
2544 return 0;
2545 }
2546 _ACEOF
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:2548: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>&5
2550 ac_status=$?
2551 echo "$as_me:2551: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:2554: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:2557: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 WARNING_CFLAGS="$WARNING_CFLAGS -Wall"
2560 echo "$as_me:2560: result: yes" >&5
2561 echo "${ECHO_T}yes" >&6
2562 else
2563 echo "$as_me: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2565 echo "$as_me:2565: result: no" >&5
2566 echo "${ECHO_T}no" >&6
2567 fi
2568 rm -f conftest.$ac_objext conftest.$ac_ext
2569 CFLAGS="$ac_save_CFLAGS"
2570 echo "$as_me:2570: checking whether compiler accepts -W" >&5
2571 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
2572
2573 ac_save_CFLAGS="$CFLAGS"
2574 CFLAGS="$CFLAGS -W"
2575 cat >conftest.$ac_ext <<_ACEOF
2576 #line 2576 "configure"
2577 #include "confdefs.h"
2578
2579 int
2580 main ()
2581 {
2582 int x;
2583 ;
2584 return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:2588: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>&5
2590 ac_status=$?
2591 echo "$as_me:2591: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:2594: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:2597: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 WARNING_CFLAGS="$WARNING_CFLAGS -W"
2600 echo "$as_me:2600: result: yes" >&5
2601 echo "${ECHO_T}yes" >&6
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2605 echo "$as_me:2605: result: no" >&5
2606 echo "${ECHO_T}no" >&6
2607 fi
2608 rm -f conftest.$ac_objext conftest.$ac_ext
2609 CFLAGS="$ac_save_CFLAGS"
2610 echo "$as_me:2610: checking whether compiler accepts -Wbad-function-cast" >&5
2611 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
2612
2613 ac_save_CFLAGS="$CFLAGS"
2614 CFLAGS="$CFLAGS -Wbad-function-cast"
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #line 2616 "configure"
2617 #include "confdefs.h"
2618
2619 int
2620 main ()
2621 {
2622 int x;
2623 ;
2624 return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:2628: \"$ac_compile\"") >&5
2629 (eval $ac_compile) 2>&5
2630 ac_status=$?
2631 echo "$as_me:2631: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:2634: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:2637: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast"
2640 echo "$as_me:2640: result: yes" >&5
2641 echo "${ECHO_T}yes" >&6
2642 else
2643 echo "$as_me: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 echo "$as_me:2645: result: no" >&5
2646 echo "${ECHO_T}no" >&6
2647 fi
2648 rm -f conftest.$ac_objext conftest.$ac_ext
2649 CFLAGS="$ac_save_CFLAGS"
2650 echo "$as_me:2650: checking whether compiler accepts -Wcast-align" >&5
2651 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
2652
2653 ac_save_CFLAGS="$CFLAGS"
2654 CFLAGS="$CFLAGS -Wcast-align"
2655 cat >conftest.$ac_ext <<_ACEOF
2656 #line 2656 "configure"
2657 #include "confdefs.h"
2658
2659 int
2660 main ()
2661 {
2662 int x;
2663 ;
2664 return 0;
2665 }
2666 _ACEOF
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:2668: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>&5
2670 ac_status=$?
2671 echo "$as_me:2671: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:2674: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:2677: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align"
2680 echo "$as_me:2680: result: yes" >&5
2681 echo "${ECHO_T}yes" >&6
2682 else
2683 echo "$as_me: failed program was:" >&5
2684 cat conftest.$ac_ext >&5
2685 echo "$as_me:2685: result: no" >&5
2686 echo "${ECHO_T}no" >&6
2687 fi
2688 rm -f conftest.$ac_objext conftest.$ac_ext
2689 CFLAGS="$ac_save_CFLAGS"
2690 echo "$as_me:2690: checking whether compiler accepts -Wcast-qual" >&5
2691 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
2692
2693 ac_save_CFLAGS="$CFLAGS"
2694 CFLAGS="$CFLAGS -Wcast-qual"
2695 cat >conftest.$ac_ext <<_ACEOF
2696 #line 2696 "configure"
2697 #include "confdefs.h"
2698
2699 int
2700 main ()
2701 {
2702 int x;
2703 ;
2704 return 0;
2705 }
2706 _ACEOF
2707 rm -f conftest.$ac_objext
2708 if { (eval echo "$as_me:2708: \"$ac_compile\"") >&5
2709 (eval $ac_compile) 2>&5
2710 ac_status=$?
2711 echo "$as_me:2711: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:2714: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:2717: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual"
2720 echo "$as_me:2720: result: yes" >&5
2721 echo "${ECHO_T}yes" >&6
2722 else
2723 echo "$as_me: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2725 echo "$as_me:2725: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2727 fi
2728 rm -f conftest.$ac_objext conftest.$ac_ext
2729 CFLAGS="$ac_save_CFLAGS"
2730 echo "$as_me:2730: checking whether compiler accepts -Wmissing-declarations" >&5
2731 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
2732
2733 ac_save_CFLAGS="$CFLAGS"
2734 CFLAGS="$CFLAGS -Wmissing-declarations"
2735 cat >conftest.$ac_ext <<_ACEOF
2736 #line 2736 "configure"
2737 #include "confdefs.h"
2738
2739 int
2740 main ()
2741 {
2742 int x;
2743 ;
2744 return 0;
2745 }
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:2748: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>&5
2750 ac_status=$?
2751 echo "$as_me:2751: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:2754: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:2757: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations"
2760 echo "$as_me:2760: result: yes" >&5
2761 echo "${ECHO_T}yes" >&6
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2765 echo "$as_me:2765: result: no" >&5
2766 echo "${ECHO_T}no" >&6
2767 fi
2768 rm -f conftest.$ac_objext conftest.$ac_ext
2769 CFLAGS="$ac_save_CFLAGS"
2770 echo "$as_me:2770: checking whether compiler accepts -Wmissing-prototypes" >&5
2771 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
2772
2773 ac_save_CFLAGS="$CFLAGS"
2774 CFLAGS="$CFLAGS -Wmissing-prototypes"
2775 cat >conftest.$ac_ext <<_ACEOF
2776 #line 2776 "configure"
2777 #include "confdefs.h"
2778
2779 int
2780 main ()
2781 {
2782 int x;
2783 ;
2784 return 0;
2785 }
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:2788: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>&5
2790 ac_status=$?
2791 echo "$as_me:2791: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:2794: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:2797: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes"
2800 echo "$as_me:2800: result: yes" >&5
2801 echo "${ECHO_T}yes" >&6
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2805 echo "$as_me:2805: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2807 fi
2808 rm -f conftest.$ac_objext conftest.$ac_ext
2809 CFLAGS="$ac_save_CFLAGS"
2810 echo "$as_me:2810: checking whether compiler accepts -Wnested-externs" >&5
2811 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
2812
2813 ac_save_CFLAGS="$CFLAGS"
2814 CFLAGS="$CFLAGS -Wnested-externs"
2815 cat >conftest.$ac_ext <<_ACEOF
2816 #line 2816 "configure"
2817 #include "confdefs.h"
2818
2819 int
2820 main ()
2821 {
2822 int x;
2823 ;
2824 return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:2828: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2830 ac_status=$?
2831 echo "$as_me:2831: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:2834: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:2837: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 WARNING_CFLAGS="$WARNING_CFLAGS -Wnested-externs"
2840 echo "$as_me:2840: result: yes" >&5
2841 echo "${ECHO_T}yes" >&6
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2845 echo "$as_me:2845: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2847 fi
2848 rm -f conftest.$ac_objext conftest.$ac_ext
2849 CFLAGS="$ac_save_CFLAGS"
2850 echo "$as_me:2850: checking whether compiler accepts -Wshadow" >&5
2851 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
2852
2853 ac_save_CFLAGS="$CFLAGS"
2854 CFLAGS="$CFLAGS -Wshadow"
2855 cat >conftest.$ac_ext <<_ACEOF
2856 #line 2856 "configure"
2857 #include "confdefs.h"
2858
2859 int
2860 main ()
2861 {
2862 int x;
2863 ;
2864 return 0;
2865 }
2866 _ACEOF
2867 rm -f conftest.$ac_objext
2868 if { (eval echo "$as_me:2868: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>&5
2870 ac_status=$?
2871 echo "$as_me:2871: \$? = $ac_status" >&5
2872 (exit $ac_status); } &&
2873 { ac_try='test -s conftest.$ac_objext'
2874 { (eval echo "$as_me:2874: \"$ac_try\"") >&5
2875 (eval $ac_try) 2>&5
2876 ac_status=$?
2877 echo "$as_me:2877: \$? = $ac_status" >&5
2878 (exit $ac_status); }; }; then
2879 WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow"
2880 echo "$as_me:2880: result: yes" >&5
2881 echo "${ECHO_T}yes" >&6
2882 else
2883 echo "$as_me: failed program was:" >&5
2884 cat conftest.$ac_ext >&5
2885 echo "$as_me:2885: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2887 fi
2888 rm -f conftest.$ac_objext conftest.$ac_ext
2889 CFLAGS="$ac_save_CFLAGS"
2890 echo "$as_me:2890: checking whether compiler accepts -Wstrict-prototypes" >&5
2891 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
2892
2893 ac_save_CFLAGS="$CFLAGS"
2894 CFLAGS="$CFLAGS -Wstrict-prototypes"
2895 cat >conftest.$ac_ext <<_ACEOF
2896 #line 2896 "configure"
2897 #include "confdefs.h"
2898
2899 int
2900 main ()
2901 {
2902 int x;
2903 ;
2904 return 0;
2905 }
2906 _ACEOF
2907 rm -f conftest.$ac_objext
2908 if { (eval echo "$as_me:2908: \"$ac_compile\"") >&5
2909 (eval $ac_compile) 2>&5
2910 ac_status=$?
2911 echo "$as_me:2911: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:2914: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:2917: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes"
2920 echo "$as_me:2920: result: yes" >&5
2921 echo "${ECHO_T}yes" >&6
2922 else
2923 echo "$as_me: failed program was:" >&5
2924 cat conftest.$ac_ext >&5
2925 echo "$as_me:2925: result: no" >&5
2926 echo "${ECHO_T}no" >&6
2927 fi
2928 rm -f conftest.$ac_objext conftest.$ac_ext
2929 CFLAGS="$ac_save_CFLAGS"
2930 echo "$as_me:2930: checking whether compiler accepts -Wwrite-strings" >&5
2931 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
2932
2933 ac_save_CFLAGS="$CFLAGS"
2934 CFLAGS="$CFLAGS -Wwrite-strings"
2935 cat >conftest.$ac_ext <<_ACEOF
2936 #line 2936 "configure"
2937 #include "confdefs.h"
2938
2939 int
2940 main ()
2941 {
2942 int x;
2943 ;
2944 return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:2948: \"$ac_compile\"") >&5
2949 (eval $ac_compile) 2>&5
2950 ac_status=$?
2951 echo "$as_me:2951: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:2954: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:2957: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings"
2960 echo "$as_me:2960: result: yes" >&5
2961 echo "${ECHO_T}yes" >&6
2962 else
2963 echo "$as_me: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2965 echo "$as_me:2965: result: no" >&5
2966 echo "${ECHO_T}no" >&6
2967 fi
2968 rm -f conftest.$ac_objext conftest.$ac_ext
2969 CFLAGS="$ac_save_CFLAGS"
2970 CFLAGS="$CFLAGS $WARNING_CFLAGS"
2971 fi
2972
2973 # Checks for libraries.
2974
2975 cat >>confdefs.h <<\EOF
2976 #define _GNU_SOURCE 1
2977 EOF
2978
2979 # Checks for header files.
2980 echo "$as_me:2980: checking for ANSI C header files" >&5
2981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2982 if test "${ac_cv_header_stdc+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 cat >conftest.$ac_ext <<_ACEOF
2986 #line 2986 "configure"
2987 #include "confdefs.h"
2988 #include <stdlib.h>
2989 #include <stdarg.h>
2990 #include <string.h>
2991 #include <float.h>
2992
2993 _ACEOF
2994 if { (eval echo "$as_me:2994: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 ac_status=$?
2997 egrep -v '^ *\+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_c_preproc_warn_flag
3004 else
3005 ac_cpp_err=
3006 fi
3007 else
3008 ac_cpp_err=yes
3009 fi
3010 if test -z "$ac_cpp_err"; then
3011 ac_cv_header_stdc=yes
3012 else
3013 echo "$as_me: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 ac_cv_header_stdc=no
3016 fi
3017 rm -f conftest.err conftest.$ac_ext
3018
3019 if test $ac_cv_header_stdc = yes; then
3020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3021 cat >conftest.$ac_ext <<_ACEOF
3022 #line 3022 "configure"
3023 #include "confdefs.h"
3024 #include <string.h>
3025
3026 _ACEOF
3027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028 egrep "memchr" >/dev/null 2>&1; then
3029 :
3030 else
3031 ac_cv_header_stdc=no
3032 fi
3033 rm -f conftest*
3034
3035 fi
3036
3037 if test $ac_cv_header_stdc = yes; then
3038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3039 cat >conftest.$ac_ext <<_ACEOF
3040 #line 3040 "configure"
3041 #include "confdefs.h"
3042 #include <stdlib.h>
3043
3044 _ACEOF
3045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3046 egrep "free" >/dev/null 2>&1; then
3047 :
3048 else
3049 ac_cv_header_stdc=no
3050 fi
3051 rm -f conftest*
3052
3053 fi
3054
3055 if test $ac_cv_header_stdc = yes; then
3056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3057 if test "$cross_compiling" = yes; then
3058 :
3059 else
3060 cat >conftest.$ac_ext <<_ACEOF
3061 #line 3061 "configure"
3062 #include "confdefs.h"
3063 #include <ctype.h>
3064 #if ((' ' & 0x0FF) == 0x020)
3065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3067 #else
3068 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3069 || ('j' <= (c) && (c) <= 'r') \
3070 || ('s' <= (c) && (c) <= 'z'))
3071 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3072 #endif
3073
3074 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3075 int
3076 main ()
3077 {
3078 int i;
3079 for (i = 0; i < 256; i++)
3080 if (XOR (islower (i), ISLOWER (i))
3081 || toupper (i) != TOUPPER (i))
3082 exit(2);
3083 exit (0);
3084 }
3085 _ACEOF
3086 rm -f conftest$ac_exeext
3087 if { (eval echo "$as_me:3087: \"$ac_link\"") >&5
3088 (eval $ac_link) 2>&5
3089 ac_status=$?
3090 echo "$as_me:3090: \$? = $ac_status" >&5
3091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3092 { (eval echo "$as_me:3092: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:3095: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 :
3098 else
3099 echo "$as_me: program exited with status $ac_status" >&5
3100 echo "$as_me: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3102 ac_cv_header_stdc=no
3103 fi
3104 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3105 fi
3106 fi
3107 fi
3108 echo "$as_me:3108: result: $ac_cv_header_stdc" >&5
3109 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3110 if test $ac_cv_header_stdc = yes; then
3111
3112 cat >>confdefs.h <<\EOF
3113 #define STDC_HEADERS 1
3114 EOF
3115
3116 fi
3117
3118 for ac_header in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3119 do
3120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3121 echo "$as_me:3121: checking for $ac_header" >&5
3122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126 cat >conftest.$ac_ext <<_ACEOF
3127 #line 3127 "configure"
3128 #include "confdefs.h"
3129 #include <$ac_header>
3130 _ACEOF
3131 if { (eval echo "$as_me:3131: \"$ac_cpp conftest.$ac_ext\"") >&5
3132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3133 ac_status=$?
3134 egrep -v '^ *\+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:3137: \$? = $ac_status" >&5
3138 (exit $ac_status); } >/dev/null; then
3139 if test -s conftest.err; then
3140 ac_cpp_err=$ac_c_preproc_warn_flag
3141 else
3142 ac_cpp_err=
3143 fi
3144 else
3145 ac_cpp_err=yes
3146 fi
3147 if test -z "$ac_cpp_err"; then
3148 eval "$as_ac_Header=yes"
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3152 eval "$as_ac_Header=no"
3153 fi
3154 rm -f conftest.err conftest.$ac_ext
3155 fi
3156 echo "$as_me:3156: result: `eval echo '${'$as_ac_Header'}'`" >&5
3157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3159 cat >>confdefs.h <<EOF
3160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3161 EOF
3162
3163 fi
3164 done
3165
3166 # Checks for typedefs.
3167
3168 # Checks for structures.
3169
3170 # Checks for compiler characteristics.
3171 echo "$as_me:3171: checking for $CC option to accept ANSI C" >&5
3172 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3173 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 ac_cv_prog_cc_stdc=no
3177 ac_save_CC=$CC
3178 cat >conftest.$ac_ext <<_ACEOF
3179 #line 3179 "configure"
3180 #include "confdefs.h"
3181 #include <stdarg.h>
3182 #include <stdio.h>
3183 #include <sys/types.h>
3184 #include <sys/stat.h>
3185 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3186 struct buf { int x; };
3187 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3188 static char *e (p, i)
3189 char **p;
3190 int i;
3191 {
3192 return p[i];
3193 }
3194 static char *f (char * (*g) (char **, int), char **p, ...)
3195 {
3196 char *s;
3197 va_list v;
3198 va_start (v,p);
3199 s = g (p, va_arg (v,int));
3200 va_end (v);
3201 return s;
3202 }
3203 int test (int i, double x);
3204 struct s1 {int (*f) (int a);};
3205 struct s2 {int (*f) (double a);};
3206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207 int argc;
3208 char **argv;
3209 int
3210 main ()
3211 {
3212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 # Don't try gcc -ansi; that turns off useful extensions and
3218 # breaks some systems' header files.
3219 # AIX -qlanglvl=ansi
3220 # Ultrix and OSF/1 -std1
3221 # HP-UX 10.20 and later -Ae
3222 # HP-UX older versions -Aa -D_HPUX_SOURCE
3223 # SVR4 -Xc -D__EXTENSIONS__
3224 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3225 do
3226 CC="$ac_save_CC $ac_arg"
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:3228: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>&5
3230 ac_status=$?
3231 echo "$as_me:3231: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -s conftest.$ac_objext'
3234 { (eval echo "$as_me:3234: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:3237: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_prog_cc_stdc=$ac_arg
3240 break
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3244 fi
3245 rm -f conftest.$ac_objext
3246 done
3247 rm -f conftest.$ac_ext conftest.$ac_objext
3248 CC=$ac_save_CC
3249
3250 fi
3251
3252 case "x$ac_cv_prog_cc_stdc" in
3253 x|xno)
3254 echo "$as_me:3254: result: none needed" >&5
3255 echo "${ECHO_T}none needed" >&6 ;;
3256 *)
3257 echo "$as_me:3257: result: $ac_cv_prog_cc_stdc" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3259 CC="$CC $ac_cv_prog_cc_stdc" ;;
3260 esac
3261
3262 echo "$as_me:3262: checking for an ANSI C-conforming const" >&5
3263 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3264 if test "${ac_cv_c_const+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267 cat >conftest.$ac_ext <<_ACEOF
3268 #line 3268 "configure"
3269 #include "confdefs.h"
3270
3271 int
3272 main ()
3273 {
3274 /* FIXME: Include the comments suggested by Paul. */
3275 #ifndef __cplusplus
3276 /* Ultrix mips cc rejects this. */
3277 typedef int charset[2];
3278 const charset x;
3279 /* SunOS 4.1.1 cc rejects this. */
3280 char const *const *ccp;
3281 char **p;
3282 /* NEC SVR4.0.2 mips cc rejects this. */
3283 struct point {int x, y;};
3284 static struct point const zero = {0,0};
3285 /* AIX XL C 1.02.0.0 rejects this.
3286 It does not let you subtract one const X* pointer from another in
3287 an arm of an if-expression whose if-part is not a constant
3288 expression */
3289 const char *g = "string";
3290 ccp = &g + (g ? g-g : 0);
3291 /* HPUX 7.0 cc rejects these. */
3292 ++ccp;
3293 p = (char**) ccp;
3294 ccp = (char const *const *) p;
3295 { /* SCO 3.2v4 cc rejects this. */
3296 char *t;
3297 char const *s = 0 ? (char *) 0 : (char const *) 0;
3298
3299 *t++ = 0;
3300 }
3301 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3302 int x[] = {25, 17};
3303 const int *foo = &x[0];
3304 ++foo;
3305 }
3306 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3307 typedef const int *iptr;
3308 iptr p = 0;
3309 ++p;
3310 }
3311 { /* AIX XL C 1.02.0.0 rejects this saying
3312 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3313 struct s { int j; const int *ap[3]; };
3314 struct s *b; b->j = 5;
3315 }
3316 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3317 const int foo = 10;
3318 }
3319 #endif
3320
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (eval echo "$as_me:3326: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>&5
3328 ac_status=$?
3329 echo "$as_me:3329: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:3332: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:3335: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 ac_cv_c_const=yes
3338 else
3339 echo "$as_me: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3341 ac_cv_c_const=no
3342 fi
3343 rm -f conftest.$ac_objext conftest.$ac_ext
3344 fi
3345 echo "$as_me:3345: result: $ac_cv_c_const" >&5
3346 echo "${ECHO_T}$ac_cv_c_const" >&6
3347 if test $ac_cv_c_const = no; then
3348
3349 cat >>confdefs.h <<\EOF
3350 #define const
3351 EOF
3352
3353 fi
3354
3355 echo "$as_me:3355: checking for inline" >&5
3356 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3357 if test "${ac_cv_c_inline+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 ac_cv_c_inline=no
3361 for ac_kw in inline __inline__ __inline; do
3362 cat >conftest.$ac_ext <<_ACEOF
3363 #line 3363 "configure"
3364 #include "confdefs.h"
3365 #ifndef __cplusplus
3366 static $ac_kw int static_foo () {return 0; }
3367 $ac_kw int foo () {return 0; }
3368 #endif
3369
3370 _ACEOF
3371 rm -f conftest.$ac_objext
3372 if { (eval echo "$as_me:3372: \"$ac_compile\"") >&5
3373 (eval $ac_compile) 2>&5
3374 ac_status=$?
3375 echo "$as_me:3375: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -s conftest.$ac_objext'
3378 { (eval echo "$as_me:3378: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:3381: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_c_inline=$ac_kw; break
3384 else
3385 echo "$as_me: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3387 fi
3388 rm -f conftest.$ac_objext conftest.$ac_ext
3389 done
3390
3391 fi
3392 echo "$as_me:3392: result: $ac_cv_c_inline" >&5
3393 echo "${ECHO_T}$ac_cv_c_inline" >&6
3394 case $ac_cv_c_inline in
3395 inline | yes) ;;
3396 no)
3397 cat >>confdefs.h <<\EOF
3398 #define inline
3399 EOF
3400 ;;
3401 *) cat >>confdefs.h <<EOF
3402 #define inline $ac_cv_c_inline
3403 EOF
3404 ;;
3405 esac
3406
3407 echo "$as_me:3407: checking for function prototypes" >&5
3408 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3409 if test "$am_cv_prog_cc_stdc" != no; then
3410 echo "$as_me:3410: result: yes" >&5
3411 echo "${ECHO_T}yes" >&6
3412
3413 cat >>confdefs.h <<\EOF
3414 #define PROTOTYPES 1
3415 EOF
3416
3417 U= ANSI2KNR=
3418 else
3419 echo "$as_me:3419: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3421 U=_ ANSI2KNR=./ansi2knr
3422 # Ensure some checks needed by ansi2knr itself.
3423 echo "$as_me:3423: checking for ANSI C header files" >&5
3424 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3425 if test "${ac_cv_header_stdc+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428 cat >conftest.$ac_ext <<_ACEOF
3429 #line 3429 "configure"
3430 #include "confdefs.h"
3431 #include <stdlib.h>
3432 #include <stdarg.h>
3433 #include <string.h>
3434 #include <float.h>
3435
3436 _ACEOF
3437 if { (eval echo "$as_me:3437: \"$ac_cpp conftest.$ac_ext\"") >&5
3438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3439 ac_status=$?
3440 egrep -v '^ *\+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:3443: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 else
3448 ac_cpp_err=
3449 fi
3450 else
3451 ac_cpp_err=yes
3452 fi
3453 if test -z "$ac_cpp_err"; then
3454 ac_cv_header_stdc=yes
3455 else
3456 echo "$as_me: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3458 ac_cv_header_stdc=no
3459 fi
3460 rm -f conftest.err conftest.$ac_ext
3461
3462 if test $ac_cv_header_stdc = yes; then
3463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3464 cat >conftest.$ac_ext <<_ACEOF
3465 #line 3465 "configure"
3466 #include "confdefs.h"
3467 #include <string.h>
3468
3469 _ACEOF
3470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3471 egrep "memchr" >/dev/null 2>&1; then
3472 :
3473 else
3474 ac_cv_header_stdc=no
3475 fi
3476 rm -f conftest*
3477
3478 fi
3479
3480 if test $ac_cv_header_stdc = yes; then
3481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3482 cat >conftest.$ac_ext <<_ACEOF
3483 #line 3483 "configure"
3484 #include "confdefs.h"
3485 #include <stdlib.h>
3486
3487 _ACEOF
3488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3489 egrep "free" >/dev/null 2>&1; then
3490 :
3491 else
3492 ac_cv_header_stdc=no
3493 fi
3494 rm -f conftest*
3495
3496 fi
3497
3498 if test $ac_cv_header_stdc = yes; then
3499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3500 if test "$cross_compiling" = yes; then
3501 :
3502 else
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line 3504 "configure"
3505 #include "confdefs.h"
3506 #include <ctype.h>
3507 #if ((' ' & 0x0FF) == 0x020)
3508 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3509 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3510 #else
3511 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3512 || ('j' <= (c) && (c) <= 'r') \
3513 || ('s' <= (c) && (c) <= 'z'))
3514 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3515 #endif
3516
3517 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3518 int
3519 main ()
3520 {
3521 int i;
3522 for (i = 0; i < 256; i++)
3523 if (XOR (islower (i), ISLOWER (i))
3524 || toupper (i) != TOUPPER (i))
3525 exit(2);
3526 exit (0);
3527 }
3528 _ACEOF
3529 rm -f conftest$ac_exeext
3530 if { (eval echo "$as_me:3530: \"$ac_link\"") >&5
3531 (eval $ac_link) 2>&5
3532 ac_status=$?
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3535 { (eval echo "$as_me:3535: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:3538: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 :
3541 else
3542 echo "$as_me: program exited with status $ac_status" >&5
3543 echo "$as_me: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3545 ac_cv_header_stdc=no
3546 fi
3547 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3548 fi
3549 fi
3550 fi
3551 echo "$as_me:3551: result: $ac_cv_header_stdc" >&5
3552 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3553 if test $ac_cv_header_stdc = yes; then
3554
3555 cat >>confdefs.h <<\EOF
3556 #define STDC_HEADERS 1
3557 EOF
3558
3559 fi
3560
3561 for ac_header in string.h
3562 do
3563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3564 echo "$as_me:3564: checking for $ac_header" >&5
3565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line 3570 "configure"
3571 #include "confdefs.h"
3572 #include <$ac_header>
3573 _ACEOF
3574 if { (eval echo "$as_me:3574: \"$ac_cpp conftest.$ac_ext\"") >&5
3575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3576 ac_status=$?
3577 egrep -v '^ *\+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:3580: \$? = $ac_status" >&5
3581 (exit $ac_status); } >/dev/null; then
3582 if test -s conftest.err; then
3583 ac_cpp_err=$ac_c_preproc_warn_flag
3584 else
3585 ac_cpp_err=
3586 fi
3587 else
3588 ac_cpp_err=yes
3589 fi
3590 if test -z "$ac_cpp_err"; then
3591 eval "$as_ac_Header=yes"
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 eval "$as_ac_Header=no"
3596 fi
3597 rm -f conftest.err conftest.$ac_ext
3598 fi
3599 echo "$as_me:3599: result: `eval echo '${'$as_ac_Header'}'`" >&5
3600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3602 cat >>confdefs.h <<EOF
3603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604 EOF
3605
3606 fi
3607 done
3608
3609 fi
3610
3611 # Checks for library functions.
3612 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3613 # for constant arguments. Useless!
3614 echo "$as_me:3614: checking for working alloca.h" >&5
3615 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3616 if test "${ac_cv_working_alloca_h+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 cat >conftest.$ac_ext <<_ACEOF
3620 #line 3620 "configure"
3621 #include "confdefs.h"
3622 #include <alloca.h>
3623 int
3624 main ()
3625 {
3626 char *p = (char *) alloca (2 * sizeof (int));
3627 ;
3628 return 0;
3629 }
3630 _ACEOF
3631 rm -f conftest.$ac_objext conftest$ac_exeext
3632 if { (eval echo "$as_me:3632: \"$ac_link\"") >&5
3633 (eval $ac_link) 2>&5
3634 ac_status=$?
3635 echo "$as_me:3635: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -s conftest$ac_exeext'
3638 { (eval echo "$as_me:3638: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:3641: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_cv_working_alloca_h=yes
3644 else
3645 echo "$as_me: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3647 ac_cv_working_alloca_h=no
3648 fi
3649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3650 fi
3651 echo "$as_me:3651: result: $ac_cv_working_alloca_h" >&5
3652 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3653 if test $ac_cv_working_alloca_h = yes; then
3654
3655 cat >>confdefs.h <<\EOF
3656 #define HAVE_ALLOCA_H 1
3657 EOF
3658
3659 fi
3660
3661 echo "$as_me:3661: checking for alloca" >&5
3662 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3663 if test "${ac_cv_func_alloca_works+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 cat >conftest.$ac_ext <<_ACEOF
3667 #line 3667 "configure"
3668 #include "confdefs.h"
3669 #ifdef __GNUC__
3670 # define alloca __builtin_alloca
3671 #else
3672 # ifdef _MSC_VER
3673 # include <malloc.h>
3674 # define alloca _alloca
3675 # else
3676 # if HAVE_ALLOCA_H
3677 # include <alloca.h>
3678 # else
3679 # ifdef _AIX
3680 #pragma alloca
3681 # else
3682 # ifndef alloca /* predefined by HP cc +Olibcalls */
3683 char *alloca ();
3684 # endif
3685 # endif
3686 # endif
3687 # endif
3688 #endif
3689
3690 int
3691 main ()
3692 {
3693 char *p = (char *) alloca (1);
3694 ;
3695 return 0;
3696 }
3697 _ACEOF
3698 rm -f conftest.$ac_objext conftest$ac_exeext
3699 if { (eval echo "$as_me:3699: \"$ac_link\"") >&5
3700 (eval $ac_link) 2>&5
3701 ac_status=$?
3702 echo "$as_me:3702: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -s conftest$ac_exeext'
3705 { (eval echo "$as_me:3705: \"$ac_try\"") >&5
3706 (eval $ac_try) 2>&5
3707 ac_status=$?
3708 echo "$as_me:3708: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_func_alloca_works=yes
3711 else
3712 echo "$as_me: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3714 ac_cv_func_alloca_works=no
3715 fi
3716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3717 fi
3718 echo "$as_me:3718: result: $ac_cv_func_alloca_works" >&5
3719 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3720
3721 if test $ac_cv_func_alloca_works = yes; then
3722
3723 cat >>confdefs.h <<\EOF
3724 #define HAVE_ALLOCA 1
3725 EOF
3726
3727 else
3728 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3729 # that cause trouble. Some versions do not even contain alloca or
3730 # contain a buggy version. If you still want to use their alloca,
3731 # use ar to extract alloca.o from them instead of compiling alloca.c.
3732
3733 ALLOCA=alloca.$ac_objext
3734
3735 cat >>confdefs.h <<\EOF
3736 #define C_ALLOCA 1
3737 EOF
3738
3739 echo "$as_me:3739: checking whether \`alloca.c' needs Cray hooks" >&5
3740 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3741 if test "${ac_cv_os_cray+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744 cat >conftest.$ac_ext <<_ACEOF
3745 #line 3745 "configure"
3746 #include "confdefs.h"
3747 #if defined(CRAY) && ! defined(CRAY2)
3748 webecray
3749 #else
3750 wenotbecray
3751 #endif
3752
3753 _ACEOF
3754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755 egrep "webecray" >/dev/null 2>&1; then
3756 ac_cv_os_cray=yes
3757 else
3758 ac_cv_os_cray=no
3759 fi
3760 rm -f conftest*
3761
3762 fi
3763 echo "$as_me:3763: result: $ac_cv_os_cray" >&5
3764 echo "${ECHO_T}$ac_cv_os_cray" >&6
3765 if test $ac_cv_os_cray = yes; then
3766 for ac_func in _getb67 GETB67 getb67; do
3767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3768 echo "$as_me:3768: checking for $ac_func" >&5
3769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3770 if eval "test \"\${$as_ac_var+set}\" = set"; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773 cat >conftest.$ac_ext <<_ACEOF
3774 #line 3774 "configure"
3775 #include "confdefs.h"
3776 /* System header to define __stub macros and hopefully few prototypes,
3777 which can conflict with char $ac_func (); below. */
3778 #include <assert.h>
3779 /* Override any gcc2 internal prototype to avoid an error. */
3780 #ifdef __cplusplus
3781 extern "C"
3782 #endif
3783 /* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3785 char $ac_func ();
3786 char (*f) ();
3787
3788 int
3789 main ()
3790 {
3791 /* The GNU C library defines this for functions which it implements
3792 to always fail with ENOSYS. Some functions are actually named
3793 something starting with __ and the normal name is an alias. */
3794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3795 choke me
3796 #else
3797 f = $ac_func;
3798 #endif
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 rm -f conftest.$ac_objext conftest$ac_exeext
3805 if { (eval echo "$as_me:3805: \"$ac_link\"") >&5
3806 (eval $ac_link) 2>&5
3807 ac_status=$?
3808 echo "$as_me:3808: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -s conftest$ac_exeext'
3811 { (eval echo "$as_me:3811: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:3814: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 eval "$as_ac_var=yes"
3817 else
3818 echo "$as_me: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3820 eval "$as_ac_var=no"
3821 fi
3822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3823 fi
3824 echo "$as_me:3824: result: `eval echo '${'$as_ac_var'}'`" >&5
3825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3826 if test `eval echo '${'$as_ac_var'}'` = yes; then
3827
3828 cat >>confdefs.h <<EOF
3829 #define CRAY_STACKSEG_END $ac_func
3830 EOF
3831
3832 break
3833 fi
3834
3835 done
3836 fi
3837
3838 echo "$as_me:3838: checking stack direction for C alloca" >&5
3839 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3840 if test "${ac_cv_c_stack_direction+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 if test "$cross_compiling" = yes; then
3844 ac_cv_c_stack_direction=0
3845 else
3846 cat >conftest.$ac_ext <<_ACEOF
3847 #line 3847 "configure"
3848 #include "confdefs.h"
3849 int
3850 find_stack_direction ()
3851 {
3852 static char *addr = 0;
3853 auto char dummy;
3854 if (addr == 0)
3855 {
3856 addr = &dummy;
3857 return find_stack_direction ();
3858 }
3859 else
3860 return (&dummy > addr) ? 1 : -1;
3861 }
3862
3863 int
3864 main ()
3865 {
3866 exit (find_stack_direction () < 0);
3867 }
3868 _ACEOF
3869 rm -f conftest$ac_exeext
3870 if { (eval echo "$as_me:3870: \"$ac_link\"") >&5
3871 (eval $ac_link) 2>&5
3872 ac_status=$?
3873 echo "$as_me:3873: \$? = $ac_status" >&5
3874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3875 { (eval echo "$as_me:3875: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:3878: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_c_stack_direction=1
3881 else
3882 echo "$as_me: program exited with status $ac_status" >&5
3883 echo "$as_me: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3885 ac_cv_c_stack_direction=-1
3886 fi
3887 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3888 fi
3889 fi
3890 echo "$as_me:3890: result: $ac_cv_c_stack_direction" >&5
3891 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3892
3893 cat >>confdefs.h <<EOF
3894 #define STACK_DIRECTION $ac_cv_c_stack_direction
3895 EOF
3896
3897 fi
3898
3899 for ac_func in mkstemp setlocale
3900 do
3901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3902 echo "$as_me:3902: checking for $ac_func" >&5
3903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3904 if eval "test \"\${$as_ac_var+set}\" = set"; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 cat >conftest.$ac_ext <<_ACEOF
3908 #line 3908 "configure"
3909 #include "confdefs.h"
3910 /* System header to define __stub macros and hopefully few prototypes,
3911 which can conflict with char $ac_func (); below. */
3912 #include <assert.h>
3913 /* Override any gcc2 internal prototype to avoid an error. */
3914 #ifdef __cplusplus
3915 extern "C"
3916 #endif
3917 /* We use char because int might match the return type of a gcc2
3918 builtin and then its argument prototype would still apply. */
3919 char $ac_func ();
3920 char (*f) ();
3921
3922 int
3923 main ()
3924 {
3925 /* The GNU C library defines this for functions which it implements
3926 to always fail with ENOSYS. Some functions are actually named
3927 something starting with __ and the normal name is an alias. */
3928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3929 choke me
3930 #else
3931 f = $ac_func;
3932 #endif
3933
3934 ;
3935 return 0;
3936 }
3937 _ACEOF
3938 rm -f conftest.$ac_objext conftest$ac_exeext
3939 if { (eval echo "$as_me:3939: \"$ac_link\"") >&5
3940 (eval $ac_link) 2>&5
3941 ac_status=$?
3942 echo "$as_me:3942: \$? = $ac_status" >&5
3943 (exit $ac_status); } &&
3944 { ac_try='test -s conftest$ac_exeext'
3945 { (eval echo "$as_me:3945: \"$ac_try\"") >&5
3946 (eval $ac_try) 2>&5
3947 ac_status=$?
3948 echo "$as_me:3948: \$? = $ac_status" >&5
3949 (exit $ac_status); }; }; then
3950 eval "$as_ac_var=yes"
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3954 eval "$as_ac_var=no"
3955 fi
3956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3957 fi
3958 echo "$as_me:3958: result: `eval echo '${'$as_ac_var'}'`" >&5
3959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3960 if test `eval echo '${'$as_ac_var'}'` = yes; then
3961 cat >>confdefs.h <<EOF
3962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3963 EOF
3964
3965 fi
3966 done
3967
3968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3969
3970 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3971 inttypes.h stdint.h unistd.h
3972 do
3973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3974 echo "$as_me:3974: checking for $ac_header" >&5
3975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979 cat >conftest.$ac_ext <<_ACEOF
3980 #line 3980 "configure"
3981 #include "confdefs.h"
3982 $ac_includes_default
3983 #include <$ac_header>
3984 _ACEOF
3985 rm -f conftest.$ac_objext
3986 if { (eval echo "$as_me:3986: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>&5
3988 ac_status=$?
3989 echo "$as_me:3989: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -s conftest.$ac_objext'
3992 { (eval echo "$as_me:3992: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:3995: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 eval "$as_ac_Header=yes"
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4001 eval "$as_ac_Header=no"
4002 fi
4003 rm -f conftest.$ac_objext conftest.$ac_ext
4004 fi
4005 echo "$as_me:4005: result: `eval echo '${'$as_ac_Header'}'`" >&5
4006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4008 cat >>confdefs.h <<EOF
4009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4010 EOF
4011
4012 fi
4013 done
4014
4015 echo "$as_me:4015: checking whether stpcpy is declared" >&5
4016 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4017 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 cat >conftest.$ac_ext <<_ACEOF
4021 #line 4021 "configure"
4022 #include "confdefs.h"
4023 $ac_includes_default
4024 int
4025 main ()
4026 {
4027 #ifndef stpcpy
4028 char *p = (char *) stpcpy;
4029 #endif
4030
4031 ;
4032 return 0;
4033 }
4034 _ACEOF
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:4036: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>&5
4038 ac_status=$?
4039 echo "$as_me:4039: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:4042: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:4045: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 ac_cv_have_decl_stpcpy=yes
4048 else
4049 echo "$as_me: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 ac_cv_have_decl_stpcpy=no
4052 fi
4053 rm -f conftest.$ac_objext conftest.$ac_ext
4054 fi
4055 echo "$as_me:4055: result: $ac_cv_have_decl_stpcpy" >&5
4056 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4057 if test $ac_cv_have_decl_stpcpy = yes; then
4058
4059 cat >>confdefs.h <<EOF
4060 #define HAVE_DECL_STPCPY 1
4061 EOF
4062
4063 else
4064 cat >>confdefs.h <<EOF
4065 #define HAVE_DECL_STPCPY 0
4066 EOF
4067
4068 fi
4069 echo "$as_me:4069: checking whether strndup is declared" >&5
4070 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4071 if test "${ac_cv_have_decl_strndup+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 cat >conftest.$ac_ext <<_ACEOF
4075 #line 4075 "configure"
4076 #include "confdefs.h"
4077 $ac_includes_default
4078 int
4079 main ()
4080 {
4081 #ifndef strndup
4082 char *p = (char *) strndup;
4083 #endif
4084
4085 ;
4086 return 0;
4087 }
4088 _ACEOF
4089 rm -f conftest.$ac_objext
4090 if { (eval echo "$as_me:4090: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>&5
4092 ac_status=$?
4093 echo "$as_me:4093: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:4096: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:4099: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_cv_have_decl_strndup=yes
4102 else
4103 echo "$as_me: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4105 ac_cv_have_decl_strndup=no
4106 fi
4107 rm -f conftest.$ac_objext conftest.$ac_ext
4108 fi
4109 echo "$as_me:4109: result: $ac_cv_have_decl_strndup" >&5
4110 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4111 if test $ac_cv_have_decl_strndup = yes; then
4112
4113 cat >>confdefs.h <<EOF
4114 #define HAVE_DECL_STRNDUP 1
4115 EOF
4116
4117 else
4118 cat >>confdefs.h <<EOF
4119 #define HAVE_DECL_STRNDUP 0
4120 EOF
4121
4122 fi
4123 echo "$as_me:4123: checking whether strnlen is declared" >&5
4124 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4125 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128 cat >conftest.$ac_ext <<_ACEOF
4129 #line 4129 "configure"
4130 #include "confdefs.h"
4131 $ac_includes_default
4132 int
4133 main ()
4134 {
4135 #ifndef strnlen
4136 char *p = (char *) strnlen;
4137 #endif
4138
4139 ;
4140 return 0;
4141 }
4142 _ACEOF
4143 rm -f conftest.$ac_objext
4144 if { (eval echo "$as_me:4144: \"$ac_compile\"") >&5
4145 (eval $ac_compile) 2>&5
4146 ac_status=$?
4147 echo "$as_me:4147: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:4150: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:4153: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_have_decl_strnlen=yes
4156 else
4157 echo "$as_me: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4159 ac_cv_have_decl_strnlen=no
4160 fi
4161 rm -f conftest.$ac_objext conftest.$ac_ext
4162 fi
4163 echo "$as_me:4163: result: $ac_cv_have_decl_strnlen" >&5
4164 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4165 if test $ac_cv_have_decl_strnlen = yes; then
4166
4167 cat >>confdefs.h <<EOF
4168 #define HAVE_DECL_STRNLEN 1
4169 EOF
4170
4171 else
4172 cat >>confdefs.h <<EOF
4173 #define HAVE_DECL_STRNLEN 0
4174 EOF
4175
4176 fi
4177 echo "$as_me:4177: checking whether memchr is declared" >&5
4178 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4179 if test "${ac_cv_have_decl_memchr+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182 cat >conftest.$ac_ext <<_ACEOF
4183 #line 4183 "configure"
4184 #include "confdefs.h"
4185 $ac_includes_default
4186 int
4187 main ()
4188 {
4189 #ifndef memchr
4190 char *p = (char *) memchr;
4191 #endif
4192
4193 ;
4194 return 0;
4195 }
4196 _ACEOF
4197 rm -f conftest.$ac_objext
4198 if { (eval echo "$as_me:4198: \"$ac_compile\"") >&5
4199 (eval $ac_compile) 2>&5
4200 ac_status=$?
4201 echo "$as_me:4201: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -s conftest.$ac_objext'
4204 { (eval echo "$as_me:4204: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:4207: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_cv_have_decl_memchr=yes
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 cat conftest.$ac_ext >&5
4213 ac_cv_have_decl_memchr=no
4214 fi
4215 rm -f conftest.$ac_objext conftest.$ac_ext
4216 fi
4217 echo "$as_me:4217: result: $ac_cv_have_decl_memchr" >&5
4218 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
4219 if test $ac_cv_have_decl_memchr = yes; then
4220
4221 cat >>confdefs.h <<EOF
4222 #define HAVE_DECL_MEMCHR 1
4223 EOF
4224
4225 else
4226 cat >>confdefs.h <<EOF
4227 #define HAVE_DECL_MEMCHR 0
4228 EOF
4229
4230 fi
4231
4232 for ac_func in stpcpy strndup strnlen strspn memchr
4233 do
4234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4235 echo "$as_me:4235: checking for $ac_func" >&5
4236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4237 if eval "test \"\${$as_ac_var+set}\" = set"; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240 cat >conftest.$ac_ext <<_ACEOF
4241 #line 4241 "configure"
4242 #include "confdefs.h"
4243 /* System header to define __stub macros and hopefully few prototypes,
4244 which can conflict with char $ac_func (); below. */
4245 #include <assert.h>
4246 /* Override any gcc2 internal prototype to avoid an error. */
4247 #ifdef __cplusplus
4248 extern "C"
4249 #endif
4250 /* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4252 char $ac_func ();
4253 char (*f) ();
4254
4255 int
4256 main ()
4257 {
4258 /* The GNU C library defines this for functions which it implements
4259 to always fail with ENOSYS. Some functions are actually named
4260 something starting with __ and the normal name is an alias. */
4261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4262 choke me
4263 #else
4264 f = $ac_func;
4265 #endif
4266
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.$ac_objext conftest$ac_exeext
4272 if { (eval echo "$as_me:4272: \"$ac_link\"") >&5
4273 (eval $ac_link) 2>&5
4274 ac_status=$?
4275 echo "$as_me:4275: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -s conftest$ac_exeext'
4278 { (eval echo "$as_me:4278: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:4281: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 eval "$as_ac_var=yes"
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4287 eval "$as_ac_var=no"
4288 fi
4289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4290 fi
4291 echo "$as_me:4291: result: `eval echo '${'$as_ac_var'}'`" >&5
4292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4293 if test `eval echo '${'$as_ac_var'}'` = yes; then
4294 cat >>confdefs.h <<EOF
4295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4296 EOF
4297
4298 else
4299 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4300 fi
4301 done
4302
4303 cat >>confdefs.h <<EOF
4304 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
4305 EOF
4306
4307 echo "$as_me:4307: checking for working malloc" >&5
4308 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
4309 if test "${jm_cv_func_working_malloc+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 if test "$cross_compiling" = yes; then
4313 jm_cv_func_working_malloc=no
4314 else
4315 cat >conftest.$ac_ext <<_ACEOF
4316 #line 4316 "configure"
4317 #include "confdefs.h"
4318
4319 char *malloc ();
4320 int
4321 main ()
4322 {
4323 exit (malloc (0) ? 0 : 1);
4324 }
4325
4326 _ACEOF
4327 rm -f conftest$ac_exeext
4328 if { (eval echo "$as_me:4328: \"$ac_link\"") >&5
4329 (eval $ac_link) 2>&5
4330 ac_status=$?
4331 echo "$as_me:4331: \$? = $ac_status" >&5
4332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4333 { (eval echo "$as_me:4333: \"$ac_try\"") >&5
4334 (eval $ac_try) 2>&5
4335 ac_status=$?
4336 echo "$as_me:4336: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 jm_cv_func_working_malloc=yes
4339 else
4340 echo "$as_me: program exited with status $ac_status" >&5
4341 echo "$as_me: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4343 jm_cv_func_working_malloc=no
4344 fi
4345 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4346 fi
4347
4348 fi
4349 echo "$as_me:4349: result: $jm_cv_func_working_malloc" >&5
4350 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
4351 if test $jm_cv_func_working_malloc = no; then
4352
4353 LIBOBJS="$LIBOBJS malloc.$ac_objext"
4354
4355 cat >>confdefs.h <<EOF
4356 #define malloc rpl_malloc
4357 EOF
4358
4359 fi
4360
4361 cat >>confdefs.h <<EOF
4362 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
4363 EOF
4364
4365 echo "$as_me:4365: checking for working realloc" >&5
4366 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
4367 if test "${jm_cv_func_working_realloc+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370 if test "$cross_compiling" = yes; then
4371 jm_cv_func_working_realloc=no
4372 else
4373 cat >conftest.$ac_ext <<_ACEOF
4374 #line 4374 "configure"
4375 #include "confdefs.h"
4376
4377 char *realloc ();
4378 int
4379 main ()
4380 {
4381 exit (realloc (0, 0) ? 0 : 1);
4382 }
4383
4384 _ACEOF
4385 rm -f conftest$ac_exeext
4386 if { (eval echo "$as_me:4386: \"$ac_link\"") >&5
4387 (eval $ac_link) 2>&5
4388 ac_status=$?
4389 echo "$as_me:4389: \$? = $ac_status" >&5
4390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4391 { (eval echo "$as_me:4391: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:4394: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 jm_cv_func_working_realloc=yes
4397 else
4398 echo "$as_me: program exited with status $ac_status" >&5
4399 echo "$as_me: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4401 jm_cv_func_working_realloc=no
4402 fi
4403 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4404 fi
4405
4406 fi
4407 echo "$as_me:4407: result: $jm_cv_func_working_realloc" >&5
4408 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
4409 if test $jm_cv_func_working_realloc = no; then
4410
4411 LIBOBJS="$LIBOBJS realloc.$ac_objext"
4412
4413 cat >>confdefs.h <<EOF
4414 #define realloc rpl_realloc
4415 EOF
4416
4417 fi
4418
4419 for ac_func in isascii iswprint mbrtowc
4420 do
4421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4422 echo "$as_me:4422: checking for $ac_func" >&5
4423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4424 if eval "test \"\${$as_ac_var+set}\" = set"; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427 cat >conftest.$ac_ext <<_ACEOF
4428 #line 4428 "configure"
4429 #include "confdefs.h"
4430 /* System header to define __stub macros and hopefully few prototypes,
4431 which can conflict with char $ac_func (); below. */
4432 #include <assert.h>
4433 /* Override any gcc2 internal prototype to avoid an error. */
4434 #ifdef __cplusplus
4435 extern "C"
4436 #endif
4437 /* We use char because int might match the return type of a gcc2
4438 builtin and then its argument prototype would still apply. */
4439 char $ac_func ();
4440 char (*f) ();
4441
4442 int
4443 main ()
4444 {
4445 /* The GNU C library defines this for functions which it implements
4446 to always fail with ENOSYS. Some functions are actually named
4447 something starting with __ and the normal name is an alias. */
4448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4449 choke me
4450 #else
4451 f = $ac_func;
4452 #endif
4453
4454 ;
4455 return 0;
4456 }
4457 _ACEOF
4458 rm -f conftest.$ac_objext conftest$ac_exeext
4459 if { (eval echo "$as_me:4459: \"$ac_link\"") >&5
4460 (eval $ac_link) 2>&5
4461 ac_status=$?
4462 echo "$as_me:4462: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try='test -s conftest$ac_exeext'
4465 { (eval echo "$as_me:4465: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:4468: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 eval "$as_ac_var=yes"
4471 else
4472 echo "$as_me: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4474 eval "$as_ac_var=no"
4475 fi
4476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4477 fi
4478 echo "$as_me:4478: result: `eval echo '${'$as_ac_var'}'`" >&5
4479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4480 if test `eval echo '${'$as_ac_var'}'` = yes; then
4481 cat >>confdefs.h <<EOF
4482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4483 EOF
4484
4485 fi
4486 done
4487
4488 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
4489 do
4490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4491 echo "$as_me:4491: checking for $ac_header" >&5
4492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496 cat >conftest.$ac_ext <<_ACEOF
4497 #line 4497 "configure"
4498 #include "confdefs.h"
4499 #include <$ac_header>
4500 _ACEOF
4501 if { (eval echo "$as_me:4501: \"$ac_cpp conftest.$ac_ext\"") >&5
4502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4503 ac_status=$?
4504 egrep -v '^ *\+' conftest.er1 >conftest.err
4505 rm -f conftest.er1
4506 cat conftest.err >&5
4507 echo "$as_me:4507: \$? = $ac_status" >&5
4508 (exit $ac_status); } >/dev/null; then
4509 if test -s conftest.err; then
4510 ac_cpp_err=$ac_c_preproc_warn_flag
4511 else
4512 ac_cpp_err=
4513 fi
4514 else
4515 ac_cpp_err=yes
4516 fi
4517 if test -z "$ac_cpp_err"; then
4518 eval "$as_ac_Header=yes"
4519 else
4520 echo "$as_me: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 eval "$as_ac_Header=no"
4523 fi
4524 rm -f conftest.err conftest.$ac_ext
4525 fi
4526 echo "$as_me:4526: result: `eval echo '${'$as_ac_Header'}'`" >&5
4527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4529 cat >>confdefs.h <<EOF
4530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4531 EOF
4532
4533 fi
4534 done
4535
4536 echo "$as_me:4536: checking for ANSI C header files" >&5
4537 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4538 if test "${ac_cv_header_stdc+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 cat >conftest.$ac_ext <<_ACEOF
4542 #line 4542 "configure"
4543 #include "confdefs.h"
4544 #include <stdlib.h>
4545 #include <stdarg.h>
4546 #include <string.h>
4547 #include <float.h>
4548
4549 _ACEOF
4550 if { (eval echo "$as_me:4550: \"$ac_cpp conftest.$ac_ext\"") >&5
4551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4552 ac_status=$?
4553 egrep -v '^ *\+' conftest.er1 >conftest.err
4554 rm -f conftest.er1
4555 cat conftest.err >&5
4556 echo "$as_me:4556: \$? = $ac_status" >&5
4557 (exit $ac_status); } >/dev/null; then
4558 if test -s conftest.err; then
4559 ac_cpp_err=$ac_c_preproc_warn_flag
4560 else
4561 ac_cpp_err=
4562 fi
4563 else
4564 ac_cpp_err=yes
4565 fi
4566 if test -z "$ac_cpp_err"; then
4567 ac_cv_header_stdc=yes
4568 else
4569 echo "$as_me: failed program was:" >&5
4570 cat conftest.$ac_ext >&5
4571 ac_cv_header_stdc=no
4572 fi
4573 rm -f conftest.err conftest.$ac_ext
4574
4575 if test $ac_cv_header_stdc = yes; then
4576 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4577 cat >conftest.$ac_ext <<_ACEOF
4578 #line 4578 "configure"
4579 #include "confdefs.h"
4580 #include <string.h>
4581
4582 _ACEOF
4583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584 egrep "memchr" >/dev/null 2>&1; then
4585 :
4586 else
4587 ac_cv_header_stdc=no
4588 fi
4589 rm -f conftest*
4590
4591 fi
4592
4593 if test $ac_cv_header_stdc = yes; then
4594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4595 cat >conftest.$ac_ext <<_ACEOF
4596 #line 4596 "configure"
4597 #include "confdefs.h"
4598 #include <stdlib.h>
4599
4600 _ACEOF
4601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602 egrep "free" >/dev/null 2>&1; then
4603 :
4604 else
4605 ac_cv_header_stdc=no
4606 fi
4607 rm -f conftest*
4608
4609 fi
4610
4611 if test $ac_cv_header_stdc = yes; then
4612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4613 if test "$cross_compiling" = yes; then
4614 :
4615 else
4616 cat >conftest.$ac_ext <<_ACEOF
4617 #line 4617 "configure"
4618 #include "confdefs.h"
4619 #include <ctype.h>
4620 #if ((' ' & 0x0FF) == 0x020)
4621 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4622 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4623 #else
4624 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4625 || ('j' <= (c) && (c) <= 'r') \
4626 || ('s' <= (c) && (c) <= 'z'))
4627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4628 #endif
4629
4630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4631 int
4632 main ()
4633 {
4634 int i;
4635 for (i = 0; i < 256; i++)
4636 if (XOR (islower (i), ISLOWER (i))
4637 || toupper (i) != TOUPPER (i))
4638 exit(2);
4639 exit (0);
4640 }
4641 _ACEOF
4642 rm -f conftest$ac_exeext
4643 if { (eval echo "$as_me:4643: \"$ac_link\"") >&5
4644 (eval $ac_link) 2>&5
4645 ac_status=$?
4646 echo "$as_me:4646: \$? = $ac_status" >&5
4647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4648 { (eval echo "$as_me:4648: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:4651: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 :
4654 else
4655 echo "$as_me: program exited with status $ac_status" >&5
4656 echo "$as_me: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4658 ac_cv_header_stdc=no
4659 fi
4660 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4661 fi
4662 fi
4663 fi
4664 echo "$as_me:4664: result: $ac_cv_header_stdc" >&5
4665 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4666 if test $ac_cv_header_stdc = yes; then
4667
4668 cat >>confdefs.h <<\EOF
4669 #define STDC_HEADERS 1
4670 EOF
4671
4672 fi
4673
4674 echo "$as_me:4674: checking whether backslash-a works in strings" >&5
4675 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
4676 if test "${ac_cv_c_backslash_a+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679 cat >conftest.$ac_ext <<_ACEOF
4680 #line 4680 "configure"
4681 #include "confdefs.h"
4682
4683 int
4684 main ()
4685 {
4686
4687 #if '\a' == 'a'
4688 syntax error;
4689 #endif
4690 char buf['\a' == 'a' ? -1 : 1];
4691 buf[0] = '\a';
4692 return buf[0] != "\a"[0];
4693
4694 ;
4695 return 0;
4696 }
4697 _ACEOF
4698 rm -f conftest.$ac_objext
4699 if { (eval echo "$as_me:4699: \"$ac_compile\"") >&5
4700 (eval $ac_compile) 2>&5
4701 ac_status=$?
4702 echo "$as_me:4702: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -s conftest.$ac_objext'
4705 { (eval echo "$as_me:4705: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:4708: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 ac_cv_c_backslash_a=yes
4711 else
4712 echo "$as_me: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4714 ac_cv_c_backslash_a=no
4715 fi
4716 rm -f conftest.$ac_objext conftest.$ac_ext
4717 fi
4718 echo "$as_me:4718: result: $ac_cv_c_backslash_a" >&5
4719 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
4720 if test $ac_cv_c_backslash_a = yes; then
4721
4722 cat >>confdefs.h <<\EOF
4723 #define HAVE_C_BACKSLASH_A 1
4724 EOF
4725
4726 fi
4727
4728 for ac_header in stdlib.h
4729 do
4730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4731 echo "$as_me:4731: checking for $ac_header" >&5
4732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 cat >conftest.$ac_ext <<_ACEOF
4737 #line 4737 "configure"
4738 #include "confdefs.h"
4739 #include <$ac_header>
4740 _ACEOF
4741 if { (eval echo "$as_me:4741: \"$ac_cpp conftest.$ac_ext\"") >&5
4742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4743 ac_status=$?
4744 egrep -v '^ *\+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:4747: \$? = $ac_status" >&5
4748 (exit $ac_status); } >/dev/null; then
4749 if test -s conftest.err; then
4750 ac_cpp_err=$ac_c_preproc_warn_flag
4751 else
4752 ac_cpp_err=
4753 fi
4754 else
4755 ac_cpp_err=yes
4756 fi
4757 if test -z "$ac_cpp_err"; then
4758 eval "$as_ac_Header=yes"
4759 else
4760 echo "$as_me: failed program was:" >&5
4761 cat conftest.$ac_ext >&5
4762 eval "$as_ac_Header=no"
4763 fi
4764 rm -f conftest.err conftest.$ac_ext
4765 fi
4766 echo "$as_me:4766: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4769 cat >>confdefs.h <<EOF
4770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771 EOF
4772
4773 fi
4774 done
4775
4776 echo "$as_me:4776: checking for mbstate_t" >&5
4777 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
4778 if test "${ac_cv_type_mbstate_t+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781 cat >conftest.$ac_ext <<_ACEOF
4782 #line 4782 "configure"
4783 #include "confdefs.h"
4784
4785 #if HAVE_STDLIB_H
4786 # include <stdlib.h>
4787 #endif
4788 #include <wchar.h>
4789 int
4790 main ()
4791 {
4792 mbstate_t x; return sizeof x;
4793 ;
4794 return 0;
4795 }
4796 _ACEOF
4797 rm -f conftest.$ac_objext
4798 if { (eval echo "$as_me:4798: \"$ac_compile\"") >&5
4799 (eval $ac_compile) 2>&5
4800 ac_status=$?
4801 echo "$as_me:4801: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -s conftest.$ac_objext'
4804 { (eval echo "$as_me:4804: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:4807: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 ac_cv_type_mbstate_t=yes
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4813 ac_cv_type_mbstate_t=no
4814 fi
4815 rm -f conftest.$ac_objext conftest.$ac_ext
4816 fi
4817 echo "$as_me:4817: result: $ac_cv_type_mbstate_t" >&5
4818 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
4819 if test $ac_cv_type_mbstate_t = no; then
4820
4821 cat >>confdefs.h <<\EOF
4822 #define mbstate_t int
4823 EOF
4824
4825 fi
4826
4827 echo "$as_me:4827: checking for function prototypes" >&5
4828 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4829 if test "$am_cv_prog_cc_stdc" != no; then
4830 echo "$as_me:4830: result: yes" >&5
4831 echo "${ECHO_T}yes" >&6
4832
4833 cat >>confdefs.h <<\EOF
4834 #define PROTOTYPES 1
4835 EOF
4836
4837 U= ANSI2KNR=
4838 else
4839 echo "$as_me:4839: result: no" >&5
4840 echo "${ECHO_T}no" >&6
4841 U=_ ANSI2KNR=./ansi2knr
4842 # Ensure some checks needed by ansi2knr itself.
4843 echo "$as_me:4843: checking for ANSI C header files" >&5
4844 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4845 if test "${ac_cv_header_stdc+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848 cat >conftest.$ac_ext <<_ACEOF
4849 #line 4849 "configure"
4850 #include "confdefs.h"
4851 #include <stdlib.h>
4852 #include <stdarg.h>
4853 #include <string.h>
4854 #include <float.h>
4855
4856 _ACEOF
4857 if { (eval echo "$as_me:4857: \"$ac_cpp conftest.$ac_ext\"") >&5
4858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4859 ac_status=$?
4860 egrep -v '^ *\+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:4863: \$? = $ac_status" >&5
4864 (exit $ac_status); } >/dev/null; then
4865 if test -s conftest.err; then
4866 ac_cpp_err=$ac_c_preproc_warn_flag
4867 else
4868 ac_cpp_err=
4869 fi
4870 else
4871 ac_cpp_err=yes
4872 fi
4873 if test -z "$ac_cpp_err"; then
4874 ac_cv_header_stdc=yes
4875 else
4876 echo "$as_me: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4878 ac_cv_header_stdc=no
4879 fi
4880 rm -f conftest.err conftest.$ac_ext
4881
4882 if test $ac_cv_header_stdc = yes; then
4883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4884 cat >conftest.$ac_ext <<_ACEOF
4885 #line 4885 "configure"
4886 #include "confdefs.h"
4887 #include <string.h>
4888
4889 _ACEOF
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 egrep "memchr" >/dev/null 2>&1; then
4892 :
4893 else
4894 ac_cv_header_stdc=no
4895 fi
4896 rm -f conftest*
4897
4898 fi
4899
4900 if test $ac_cv_header_stdc = yes; then
4901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4902 cat >conftest.$ac_ext <<_ACEOF
4903 #line 4903 "configure"
4904 #include "confdefs.h"
4905 #include <stdlib.h>
4906
4907 _ACEOF
4908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909 egrep "free" >/dev/null 2>&1; then
4910 :
4911 else
4912 ac_cv_header_stdc=no
4913 fi
4914 rm -f conftest*
4915
4916 fi
4917
4918 if test $ac_cv_header_stdc = yes; then
4919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4920 if test "$cross_compiling" = yes; then
4921 :
4922 else
4923 cat >conftest.$ac_ext <<_ACEOF
4924 #line 4924 "configure"
4925 #include "confdefs.h"
4926 #include <ctype.h>
4927 #if ((' ' & 0x0FF) == 0x020)
4928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4930 #else
4931 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4932 || ('j' <= (c) && (c) <= 'r') \
4933 || ('s' <= (c) && (c) <= 'z'))
4934 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4935 #endif
4936
4937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4938 int
4939 main ()
4940 {
4941 int i;
4942 for (i = 0; i < 256; i++)
4943 if (XOR (islower (i), ISLOWER (i))
4944 || toupper (i) != TOUPPER (i))
4945 exit(2);
4946 exit (0);
4947 }
4948 _ACEOF
4949 rm -f conftest$ac_exeext
4950 if { (eval echo "$as_me:4950: \"$ac_link\"") >&5
4951 (eval $ac_link) 2>&5
4952 ac_status=$?
4953 echo "$as_me:4953: \$? = $ac_status" >&5
4954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4955 { (eval echo "$as_me:4955: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:4958: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 :
4961 else
4962 echo "$as_me: program exited with status $ac_status" >&5
4963 echo "$as_me: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4965 ac_cv_header_stdc=no
4966 fi
4967 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4968 fi
4969 fi
4970 fi
4971 echo "$as_me:4971: result: $ac_cv_header_stdc" >&5
4972 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4973 if test $ac_cv_header_stdc = yes; then
4974
4975 cat >>confdefs.h <<\EOF
4976 #define STDC_HEADERS 1
4977 EOF
4978
4979 fi
4980
4981 for ac_header in string.h
4982 do
4983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4984 echo "$as_me:4984: checking for $ac_header" >&5
4985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 cat >conftest.$ac_ext <<_ACEOF
4990 #line 4990 "configure"
4991 #include "confdefs.h"
4992 #include <$ac_header>
4993 _ACEOF
4994 if { (eval echo "$as_me:4994: \"$ac_cpp conftest.$ac_ext\"") >&5
4995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996 ac_status=$?
4997 egrep -v '^ *\+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:5000: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null; then
5002 if test -s conftest.err; then
5003 ac_cpp_err=$ac_c_preproc_warn_flag
5004 else
5005 ac_cpp_err=
5006 fi
5007 else
5008 ac_cpp_err=yes
5009 fi
5010 if test -z "$ac_cpp_err"; then
5011 eval "$as_ac_Header=yes"
5012 else
5013 echo "$as_me: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5015 eval "$as_ac_Header=no"
5016 fi
5017 rm -f conftest.err conftest.$ac_ext
5018 fi
5019 echo "$as_me:5019: result: `eval echo '${'$as_ac_Header'}'`" >&5
5020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5022 cat >>confdefs.h <<EOF
5023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5024 EOF
5025
5026 fi
5027 done
5028
5029 fi
5030
5031 for ac_func in strerror strerror_r vprintf doprnt
5032 do
5033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5034 echo "$as_me:5034: checking for $ac_func" >&5
5035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5036 if eval "test \"\${$as_ac_var+set}\" = set"; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039 cat >conftest.$ac_ext <<_ACEOF
5040 #line 5040 "configure"
5041 #include "confdefs.h"
5042 /* System header to define __stub macros and hopefully few prototypes,
5043 which can conflict with char $ac_func (); below. */
5044 #include <assert.h>
5045 /* Override any gcc2 internal prototype to avoid an error. */
5046 #ifdef __cplusplus
5047 extern "C"
5048 #endif
5049 /* We use char because int might match the return type of a gcc2
5050 builtin and then its argument prototype would still apply. */
5051 char $ac_func ();
5052 char (*f) ();
5053
5054 int
5055 main ()
5056 {
5057 /* The GNU C library defines this for functions which it implements
5058 to always fail with ENOSYS. Some functions are actually named
5059 something starting with __ and the normal name is an alias. */
5060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5061 choke me
5062 #else
5063 f = $ac_func;
5064 #endif
5065
5066 ;
5067 return 0;
5068 }
5069 _ACEOF
5070 rm -f conftest.$ac_objext conftest$ac_exeext
5071 if { (eval echo "$as_me:5071: \"$ac_link\"") >&5
5072 (eval $ac_link) 2>&5
5073 ac_status=$?
5074 echo "$as_me:5074: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
5076 { ac_try='test -s conftest$ac_exeext'
5077 { (eval echo "$as_me:5077: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:5080: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 eval "$as_ac_var=yes"
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5086 eval "$as_ac_var=no"
5087 fi
5088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5089 fi
5090 echo "$as_me:5090: result: `eval echo '${'$as_ac_var'}'`" >&5
5091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5092 if test `eval echo '${'$as_ac_var'}'` = yes; then
5093 cat >>confdefs.h <<EOF
5094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5095 EOF
5096
5097 fi
5098 done
5099
5100 echo "$as_me:5100: checking for ANSI C header files" >&5
5101 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5102 if test "${ac_cv_header_stdc+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 cat >conftest.$ac_ext <<_ACEOF
5106 #line 5106 "configure"
5107 #include "confdefs.h"
5108 #include <stdlib.h>
5109 #include <stdarg.h>
5110 #include <string.h>
5111 #include <float.h>
5112
5113 _ACEOF
5114 if { (eval echo "$as_me:5114: \"$ac_cpp conftest.$ac_ext\"") >&5
5115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116 ac_status=$?
5117 egrep -v '^ *\+' conftest.er1 >conftest.err
5118 rm -f conftest.er1
5119 cat conftest.err >&5
5120 echo "$as_me:5120: \$? = $ac_status" >&5
5121 (exit $ac_status); } >/dev/null; then
5122 if test -s conftest.err; then
5123 ac_cpp_err=$ac_c_preproc_warn_flag
5124 else
5125 ac_cpp_err=
5126 fi
5127 else
5128 ac_cpp_err=yes
5129 fi
5130 if test -z "$ac_cpp_err"; then
5131 ac_cv_header_stdc=yes
5132 else
5133 echo "$as_me: failed program was:" >&5
5134 cat conftest.$ac_ext >&5
5135 ac_cv_header_stdc=no
5136 fi
5137 rm -f conftest.err conftest.$ac_ext
5138
5139 if test $ac_cv_header_stdc = yes; then
5140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5141 cat >conftest.$ac_ext <<_ACEOF
5142 #line 5142 "configure"
5143 #include "confdefs.h"
5144 #include <string.h>
5145
5146 _ACEOF
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148 egrep "memchr" >/dev/null 2>&1; then
5149 :
5150 else
5151 ac_cv_header_stdc=no
5152 fi
5153 rm -f conftest*
5154
5155 fi
5156
5157 if test $ac_cv_header_stdc = yes; then
5158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5159 cat >conftest.$ac_ext <<_ACEOF
5160 #line 5160 "configure"
5161 #include "confdefs.h"
5162 #include <stdlib.h>
5163
5164 _ACEOF
5165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5166 egrep "free" >/dev/null 2>&1; then
5167 :
5168 else
5169 ac_cv_header_stdc=no
5170 fi
5171 rm -f conftest*
5172
5173 fi
5174
5175 if test $ac_cv_header_stdc = yes; then
5176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5177 if test "$cross_compiling" = yes; then
5178 :
5179 else
5180 cat >conftest.$ac_ext <<_ACEOF
5181 #line 5181 "configure"
5182 #include "confdefs.h"
5183 #include <ctype.h>
5184 #if ((' ' & 0x0FF) == 0x020)
5185 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5186 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5187 #else
5188 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5189 || ('j' <= (c) && (c) <= 'r') \
5190 || ('s' <= (c) && (c) <= 'z'))
5191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5192 #endif
5193
5194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195 int
5196 main ()
5197 {
5198 int i;
5199 for (i = 0; i < 256; i++)
5200 if (XOR (islower (i), ISLOWER (i))
5201 || toupper (i) != TOUPPER (i))
5202 exit(2);
5203 exit (0);
5204 }
5205 _ACEOF
5206 rm -f conftest$ac_exeext
5207 if { (eval echo "$as_me:5207: \"$ac_link\"") >&5
5208 (eval $ac_link) 2>&5
5209 ac_status=$?
5210 echo "$as_me:5210: \$? = $ac_status" >&5
5211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5212 { (eval echo "$as_me:5212: \"$ac_try\"") >&5
5213 (eval $ac_try) 2>&5
5214 ac_status=$?
5215 echo "$as_me:5215: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5217 :
5218 else
5219 echo "$as_me: program exited with status $ac_status" >&5
5220 echo "$as_me: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5222 ac_cv_header_stdc=no
5223 fi
5224 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5225 fi
5226 fi
5227 fi
5228 echo "$as_me:5228: result: $ac_cv_header_stdc" >&5
5229 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5230 if test $ac_cv_header_stdc = yes; then
5231
5232 cat >>confdefs.h <<\EOF
5233 #define STDC_HEADERS 1
5234 EOF
5235
5236 fi
5237
5238 echo "$as_me:5238: checking whether strerror_r is declared" >&5
5239 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
5240 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 cat >conftest.$ac_ext <<_ACEOF
5244 #line 5244 "configure"
5245 #include "confdefs.h"
5246 $ac_includes_default
5247 int
5248 main ()
5249 {
5250 #ifndef strerror_r
5251 char *p = (char *) strerror_r;
5252 #endif
5253
5254 ;
5255 return 0;
5256 }
5257 _ACEOF
5258 rm -f conftest.$ac_objext
5259 if { (eval echo "$as_me:5259: \"$ac_compile\"") >&5
5260 (eval $ac_compile) 2>&5
5261 ac_status=$?
5262 echo "$as_me:5262: \$? = $ac_status" >&5
5263 (exit $ac_status); } &&
5264 { ac_try='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:5265: \"$ac_try\"") >&5
5266 (eval $ac_try) 2>&5
5267 ac_status=$?
5268 echo "$as_me:5268: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5270 ac_cv_have_decl_strerror_r=yes
5271 else
5272 echo "$as_me: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5274 ac_cv_have_decl_strerror_r=no
5275 fi
5276 rm -f conftest.$ac_objext conftest.$ac_ext
5277 fi
5278 echo "$as_me:5278: result: $ac_cv_have_decl_strerror_r" >&5
5279 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
5280 if test $ac_cv_have_decl_strerror_r = yes; then
5281
5282 cat >>confdefs.h <<EOF
5283 #define HAVE_DECL_STRERROR_R 1
5284 EOF
5285
5286 else
5287 cat >>confdefs.h <<EOF
5288 #define HAVE_DECL_STRERROR_R 0
5289 EOF
5290
5291 fi
5292
5293 for ac_func in strerror_r
5294 do
5295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5296 echo "$as_me:5296: checking for $ac_func" >&5
5297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5298 if eval "test \"\${$as_ac_var+set}\" = set"; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 cat >conftest.$ac_ext <<_ACEOF
5302 #line 5302 "configure"
5303 #include "confdefs.h"
5304 /* System header to define __stub macros and hopefully few prototypes,
5305 which can conflict with char $ac_func (); below. */
5306 #include <assert.h>
5307 /* Override any gcc2 internal prototype to avoid an error. */
5308 #ifdef __cplusplus
5309 extern "C"
5310 #endif
5311 /* We use char because int might match the return type of a gcc2
5312 builtin and then its argument prototype would still apply. */
5313 char $ac_func ();
5314 char (*f) ();
5315
5316 int
5317 main ()
5318 {
5319 /* The GNU C library defines this for functions which it implements
5320 to always fail with ENOSYS. Some functions are actually named
5321 something starting with __ and the normal name is an alias. */
5322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5323 choke me
5324 #else
5325 f = $ac_func;
5326 #endif
5327
5328 ;
5329 return 0;
5330 }
5331 _ACEOF
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (eval echo "$as_me:5333: \"$ac_link\"") >&5
5334 (eval $ac_link) 2>&5
5335 ac_status=$?
5336 echo "$as_me:5336: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest$ac_exeext'
5339 { (eval echo "$as_me:5339: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:5342: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 eval "$as_ac_var=yes"
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5348 eval "$as_ac_var=no"
5349 fi
5350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5351 fi
5352 echo "$as_me:5352: result: `eval echo '${'$as_ac_var'}'`" >&5
5353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5354 if test `eval echo '${'$as_ac_var'}'` = yes; then
5355 cat >>confdefs.h <<EOF
5356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5357 EOF
5358
5359 fi
5360 done
5361
5362 if test $ac_cv_func_strerror_r = yes; then
5363
5364 for ac_header in string.h
5365 do
5366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5367 echo "$as_me:5367: checking for $ac_header" >&5
5368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372 cat >conftest.$ac_ext <<_ACEOF
5373 #line 5373 "configure"
5374 #include "confdefs.h"
5375 #include <$ac_header>
5376 _ACEOF
5377 if { (eval echo "$as_me:5377: \"$ac_cpp conftest.$ac_ext\"") >&5
5378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5379 ac_status=$?
5380 egrep -v '^ *\+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:5383: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null; then
5385 if test -s conftest.err; then
5386 ac_cpp_err=$ac_c_preproc_warn_flag
5387 else
5388 ac_cpp_err=
5389 fi
5390 else
5391 ac_cpp_err=yes
5392 fi
5393 if test -z "$ac_cpp_err"; then
5394 eval "$as_ac_Header=yes"
5395 else
5396 echo "$as_me: failed program was:" >&5
5397 cat conftest.$ac_ext >&5
5398 eval "$as_ac_Header=no"
5399 fi
5400 rm -f conftest.err conftest.$ac_ext
5401 fi
5402 echo "$as_me:5402: result: `eval echo '${'$as_ac_Header'}'`" >&5
5403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5405 cat >>confdefs.h <<EOF
5406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407 EOF
5408
5409 fi
5410 done
5411
5412 echo "$as_me:5412: checking for working strerror_r" >&5
5413 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
5414 if test "${ac_cv_func_strerror_r_works+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417
5418 cat >conftest.$ac_ext <<_ACEOF
5419 #line 5419 "configure"
5420 #include "confdefs.h"
5421
5422 # include <stdio.h>
5423 # if HAVE_STRING_H
5424 # include <string.h>
5425 # endif
5426
5427 int
5428 main ()
5429 {
5430
5431 char buf[100];
5432 char x = *strerror_r (0, buf, sizeof buf);
5433
5434 ;
5435 return 0;
5436 }
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:5439: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>&5
5441 ac_status=$?
5442 echo "$as_me:5442: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:5445: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:5448: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_cv_func_strerror_r_works=yes
5451 else
5452 echo "$as_me: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5454 ac_cv_func_strerror_r_works=no
5455
5456 fi
5457 rm -f conftest.$ac_objext conftest.$ac_ext
5458 if test $ac_cv_func_strerror_r_works = no; then
5459 # strerror_r seems not to work, but now we have to choose between
5460 # systems that have relatively inaccessible declarations for the
5461 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5462 # former has a strerror_r that returns char*, while the latter
5463 # has a strerror_r that returns `int'.
5464 # This test should segfault on the DEC system.
5465 if test "$cross_compiling" = yes; then
5466 ac_cv_func_strerror_r_works=no
5467 else
5468 cat >conftest.$ac_ext <<_ACEOF
5469 #line 5469 "configure"
5470 #include "confdefs.h"
5471
5472 # include <stdio.h>
5473 # include <string.h>
5474 # include <ctype.h>
5475
5476 extern char *strerror_r ();
5477
5478 int
5479 main ()
5480 {
5481 char buf[100];
5482 char x = *strerror_r (0, buf, sizeof buf);
5483 exit (!isalpha (x));
5484 }
5485
5486 _ACEOF
5487 rm -f conftest$ac_exeext
5488 if { (eval echo "$as_me:5488: \"$ac_link\"") >&5
5489 (eval $ac_link) 2>&5
5490 ac_status=$?
5491 echo "$as_me:5491: \$? = $ac_status" >&5
5492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5493 { (eval echo "$as_me:5493: \"$ac_try\"") >&5
5494 (eval $ac_try) 2>&5
5495 ac_status=$?
5496 echo "$as_me:5496: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_cv_func_strerror_r_works=yes
5499 else
5500 echo "$as_me: program exited with status $ac_status" >&5
5501 echo "$as_me: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5503 ac_cv_func_strerror_r_works=no
5504 fi
5505 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5506 fi
5507 fi
5508
5509 fi
5510 echo "$as_me:5510: result: $ac_cv_func_strerror_r_works" >&5
5511 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
5512 if test $ac_cv_func_strerror_r_works = yes; then
5513
5514 cat >>confdefs.h <<EOF
5515 #define HAVE_WORKING_STRERROR_R 1
5516 EOF
5517
5518 fi
5519 fi
5520
5521 ALL_LINGUAS="de es et fr ja nl ru"
5522 # Make sure we can run config.sub.
5523 $ac_config_sub sun4 >/dev/null 2>&1 ||
5524 { { echo "$as_me:5524: error: cannot run $ac_config_sub" >&5
5525 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5526 { (exit 1); exit 1; }; }
5527
5528 echo "$as_me:5528: checking build system type" >&5
5529 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5530 if test "${ac_cv_build+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533 ac_cv_build_alias=$build_alias
5534 test -z "$ac_cv_build_alias" &&
5535 ac_cv_build_alias=`$ac_config_guess`
5536 test -z "$ac_cv_build_alias" &&
5537 { { echo "$as_me:5537: error: cannot guess build type; you must specify one" >&5
5538 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5539 { (exit 1); exit 1; }; }
5540 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5541 { { echo "$as_me:5541: error: $ac_config_sub $ac_cv_build_alias failed." >&5
5542 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
5543 { (exit 1); exit 1; }; }
5544
5545 fi
5546 echo "$as_me:5546: result: $ac_cv_build" >&5
5547 echo "${ECHO_T}$ac_cv_build" >&6
5548 build=$ac_cv_build
5549 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5550 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5551 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5552
5553 echo "$as_me:5553: checking host system type" >&5
5554 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5555 if test "${ac_cv_host+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558 ac_cv_host_alias=$host_alias
5559 test -z "$ac_cv_host_alias" &&
5560 ac_cv_host_alias=$ac_cv_build_alias
5561 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5562 { { echo "$as_me:5562: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5563 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5564 { (exit 1); exit 1; }; }
5565
5566 fi
5567 echo "$as_me:5567: result: $ac_cv_host" >&5
5568 echo "${ECHO_T}$ac_cv_host" >&6
5569 host=$ac_cv_host
5570 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5571 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5572 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5573
5574 echo "$as_me:5574: checking for off_t" >&5
5575 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5576 if test "${ac_cv_type_off_t+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 cat >conftest.$ac_ext <<_ACEOF
5580 #line 5580 "configure"
5581 #include "confdefs.h"
5582 $ac_includes_default
5583 int
5584 main ()
5585 {
5586 if ((off_t *) 0)
5587 return 0;
5588 if (sizeof (off_t))
5589 return 0;
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 rm -f conftest.$ac_objext
5595 if { (eval echo "$as_me:5595: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>&5
5597 ac_status=$?
5598 echo "$as_me:5598: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -s conftest.$ac_objext'
5601 { (eval echo "$as_me:5601: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:5604: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_type_off_t=yes
5607 else
5608 echo "$as_me: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5610 ac_cv_type_off_t=no
5611 fi
5612 rm -f conftest.$ac_objext conftest.$ac_ext
5613 fi
5614 echo "$as_me:5614: result: $ac_cv_type_off_t" >&5
5615 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5616 if test $ac_cv_type_off_t = yes; then
5617 :
5618 else
5619
5620 cat >>confdefs.h <<EOF
5621 #define off_t long
5622 EOF
5623
5624 fi
5625
5626 echo "$as_me:5626: checking for size_t" >&5
5627 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5628 if test "${ac_cv_type_size_t+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631 cat >conftest.$ac_ext <<_ACEOF
5632 #line 5632 "configure"
5633 #include "confdefs.h"
5634 $ac_includes_default
5635 int
5636 main ()
5637 {
5638 if ((size_t *) 0)
5639 return 0;
5640 if (sizeof (size_t))
5641 return 0;
5642 ;
5643 return 0;
5644 }
5645 _ACEOF
5646 rm -f conftest.$ac_objext
5647 if { (eval echo "$as_me:5647: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>&5
5649 ac_status=$?
5650 echo "$as_me:5650: \$? = $ac_status" >&5
5651 (exit $ac_status); } &&
5652 { ac_try='test -s conftest.$ac_objext'
5653 { (eval echo "$as_me:5653: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:5656: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 ac_cv_type_size_t=yes
5659 else
5660 echo "$as_me: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5662 ac_cv_type_size_t=no
5663 fi
5664 rm -f conftest.$ac_objext conftest.$ac_ext
5665 fi
5666 echo "$as_me:5666: result: $ac_cv_type_size_t" >&5
5667 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5668 if test $ac_cv_type_size_t = yes; then
5669 :
5670 else
5671
5672 cat >>confdefs.h <<EOF
5673 #define size_t unsigned
5674 EOF
5675
5676 fi
5677
5678 for ac_header in stdlib.h unistd.h
5679 do
5680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5681 echo "$as_me:5681: checking for $ac_header" >&5
5682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686 cat >conftest.$ac_ext <<_ACEOF
5687 #line 5687 "configure"
5688 #include "confdefs.h"
5689 #include <$ac_header>
5690 _ACEOF
5691 if { (eval echo "$as_me:5691: \"$ac_cpp conftest.$ac_ext\"") >&5
5692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5693 ac_status=$?
5694 egrep -v '^ *\+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:5697: \$? = $ac_status" >&5
5698 (exit $ac_status); } >/dev/null; then
5699 if test -s conftest.err; then
5700 ac_cpp_err=$ac_c_preproc_warn_flag
5701 else
5702 ac_cpp_err=
5703 fi
5704 else
5705 ac_cpp_err=yes
5706 fi
5707 if test -z "$ac_cpp_err"; then
5708 eval "$as_ac_Header=yes"
5709 else
5710 echo "$as_me: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5712 eval "$as_ac_Header=no"
5713 fi
5714 rm -f conftest.err conftest.$ac_ext
5715 fi
5716 echo "$as_me:5716: result: `eval echo '${'$as_ac_Header'}'`" >&5
5717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5719 cat >>confdefs.h <<EOF
5720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5721 EOF
5722
5723 fi
5724 done
5725
5726 for ac_func in getpagesize
5727 do
5728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5729 echo "$as_me:5729: checking for $ac_func" >&5
5730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5731 if eval "test \"\${$as_ac_var+set}\" = set"; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 cat >conftest.$ac_ext <<_ACEOF
5735 #line 5735 "configure"
5736 #include "confdefs.h"
5737 /* System header to define __stub macros and hopefully few prototypes,
5738 which can conflict with char $ac_func (); below. */
5739 #include <assert.h>
5740 /* Override any gcc2 internal prototype to avoid an error. */
5741 #ifdef __cplusplus
5742 extern "C"
5743 #endif
5744 /* We use char because int might match the return type of a gcc2
5745 builtin and then its argument prototype would still apply. */
5746 char $ac_func ();
5747 char (*f) ();
5748
5749 int
5750 main ()
5751 {
5752 /* The GNU C library defines this for functions which it implements
5753 to always fail with ENOSYS. Some functions are actually named
5754 something starting with __ and the normal name is an alias. */
5755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5756 choke me
5757 #else
5758 f = $ac_func;
5759 #endif
5760
5761 ;
5762 return 0;
5763 }
5764 _ACEOF
5765 rm -f conftest.$ac_objext conftest$ac_exeext
5766 if { (eval echo "$as_me:5766: \"$ac_link\"") >&5
5767 (eval $ac_link) 2>&5
5768 ac_status=$?
5769 echo "$as_me:5769: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -s conftest$ac_exeext'
5772 { (eval echo "$as_me:5772: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:5775: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 eval "$as_ac_var=yes"
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5781 eval "$as_ac_var=no"
5782 fi
5783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5784 fi
5785 echo "$as_me:5785: result: `eval echo '${'$as_ac_var'}'`" >&5
5786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5787 if test `eval echo '${'$as_ac_var'}'` = yes; then
5788 cat >>confdefs.h <<EOF
5789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5790 EOF
5791
5792 fi
5793 done
5794
5795 echo "$as_me:5795: checking for working mmap" >&5
5796 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5797 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800 if test "$cross_compiling" = yes; then
5801 ac_cv_func_mmap_fixed_mapped=no
5802 else
5803 cat >conftest.$ac_ext <<_ACEOF
5804 #line 5804 "configure"
5805 #include "confdefs.h"
5806 $ac_includes_default
5807 /* Thanks to Mike Haertel and Jim Avera for this test.
5808 Here is a matrix of mmap possibilities:
5809 mmap private not fixed
5810 mmap private fixed at somewhere currently unmapped
5811 mmap private fixed at somewhere already mapped
5812 mmap shared not fixed
5813 mmap shared fixed at somewhere currently unmapped
5814 mmap shared fixed at somewhere already mapped
5815 For private mappings, we should verify that changes cannot be read()
5816 back from the file, nor mmap's back from the file at a different
5817 address. (There have been systems where private was not correctly
5818 implemented like the infamous i386 svr4.0, and systems where the
5819 VM page cache was not coherent with the file system buffer cache
5820 like early versions of FreeBSD and possibly contemporary NetBSD.)
5821 For shared mappings, we should conversely verify that changes get
5822 propogated back to all the places they're supposed to be.
5823
5824 Grep wants private fixed already mapped.
5825 The main things grep needs to know about mmap are:
5826 * does it exist and is it safe to write into the mmap'd area
5827 * how to use it (BSD variants) */
5828
5829 #include <fcntl.h>
5830 #include <sys/mman.h>
5831
5832 #if !STDC_HEADERS && !HAVE_STDLIB_H
5833 char *malloc ();
5834 #endif
5835
5836 /* This mess was copied from the GNU getpagesize.h. */
5837 #if !HAVE_GETPAGESIZE
5838 /* Assume that all systems that can run configure have sys/param.h. */
5839 # if !HAVE_SYS_PARAM_H
5840 # define HAVE_SYS_PARAM_H 1
5841 # endif
5842
5843 # ifdef _SC_PAGESIZE
5844 # define getpagesize() sysconf(_SC_PAGESIZE)
5845 # else /* no _SC_PAGESIZE */
5846 # if HAVE_SYS_PARAM_H
5847 # include <sys/param.h>
5848 # ifdef EXEC_PAGESIZE
5849 # define getpagesize() EXEC_PAGESIZE
5850 # else /* no EXEC_PAGESIZE */
5851 # ifdef NBPG
5852 # define getpagesize() NBPG * CLSIZE
5853 # ifndef CLSIZE
5854 # define CLSIZE 1
5855 # endif /* no CLSIZE */
5856 # else /* no NBPG */
5857 # ifdef NBPC
5858 # define getpagesize() NBPC
5859 # else /* no NBPC */
5860 # ifdef PAGESIZE
5861 # define getpagesize() PAGESIZE
5862 # endif /* PAGESIZE */
5863 # endif /* no NBPC */
5864 # endif /* no NBPG */
5865 # endif /* no EXEC_PAGESIZE */
5866 # else /* no HAVE_SYS_PARAM_H */
5867 # define getpagesize() 8192 /* punt totally */
5868 # endif /* no HAVE_SYS_PARAM_H */
5869 # endif /* no _SC_PAGESIZE */
5870
5871 #endif /* no HAVE_GETPAGESIZE */
5872
5873 int
5874 main ()
5875 {
5876 char *data, *data2, *data3;
5877 int i, pagesize;
5878 int fd;
5879
5880 pagesize = getpagesize ();
5881
5882 /* First, make a file with some known garbage in it. */
5883 data = (char *) malloc (pagesize);
5884 if (!data)
5885 exit (1);
5886 for (i = 0; i < pagesize; ++i)
5887 *(data + i) = rand ();
5888 umask (0);
5889 fd = creat ("conftest.mmap", 0600);
5890 if (fd < 0)
5891 exit (1);
5892 if (write (fd, data, pagesize) != pagesize)
5893 exit (1);
5894 close (fd);
5895
5896 /* Next, try to mmap the file at a fixed address which already has
5897 something else allocated at it. If we can, also make sure that
5898 we see the same garbage. */
5899 fd = open ("conftest.mmap", O_RDWR);
5900 if (fd < 0)
5901 exit (1);
5902 data2 = (char *) malloc (2 * pagesize);
5903 if (!data2)
5904 exit (1);
5905 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5906 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5907 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5908 exit (1);
5909 for (i = 0; i < pagesize; ++i)
5910 if (*(data + i) != *(data2 + i))
5911 exit (1);
5912
5913 /* Finally, make sure that changes to the mapped area do not
5914 percolate back to the file as seen by read(). (This is a bug on
5915 some variants of i386 svr4.0.) */
5916 for (i = 0; i < pagesize; ++i)
5917 *(data2 + i) = *(data2 + i) + 1;
5918 data3 = (char *) malloc (pagesize);
5919 if (!data3)
5920 exit (1);
5921 if (read (fd, data3, pagesize) != pagesize)
5922 exit (1);
5923 for (i = 0; i < pagesize; ++i)
5924 if (*(data + i) != *(data3 + i))
5925 exit (1);
5926 close (fd);
5927 exit (0);
5928 }
5929 _ACEOF
5930 rm -f conftest$ac_exeext
5931 if { (eval echo "$as_me:5931: \"$ac_link\"") >&5
5932 (eval $ac_link) 2>&5
5933 ac_status=$?
5934 echo "$as_me:5934: \$? = $ac_status" >&5
5935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5936 { (eval echo "$as_me:5936: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:5939: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_func_mmap_fixed_mapped=yes
5942 else
5943 echo "$as_me: program exited with status $ac_status" >&5
5944 echo "$as_me: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5946 ac_cv_func_mmap_fixed_mapped=no
5947 fi
5948 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5949 fi
5950 fi
5951 echo "$as_me:5951: result: $ac_cv_func_mmap_fixed_mapped" >&5
5952 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5953 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5954
5955 cat >>confdefs.h <<\EOF
5956 #define HAVE_MMAP 1
5957 EOF
5958
5959 fi
5960 rm -f conftest.mmap
5961
5962 echo "$as_me:5962: checking whether we are using the GNU C Library 2.1 or newer" >&5
5963 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5964 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 cat >conftest.$ac_ext <<_ACEOF
5968 #line 5968 "configure"
5969 #include "confdefs.h"
5970
5971 #include <features.h>
5972 #ifdef __GNU_LIBRARY__
5973 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5974 Lucky GNU user
5975 #endif
5976 #endif
5977
5978 _ACEOF
5979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5980 egrep "Lucky GNU user" >/dev/null 2>&1; then
5981 ac_cv_gnu_library_2_1=yes
5982 else
5983 ac_cv_gnu_library_2_1=no
5984 fi
5985 rm -f conftest*
5986
5987 fi
5988 echo "$as_me:5988: result: $ac_cv_gnu_library_2_1" >&5
5989 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5990
5991 GLIBC21="$ac_cv_gnu_library_2_1"
5992
5993 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5994 stdlib.h string.h unistd.h sys/param.h
5995 do
5996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5997 echo "$as_me:5997: checking for $ac_header" >&5
5998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 cat >conftest.$ac_ext <<_ACEOF
6003 #line 6003 "configure"
6004 #include "confdefs.h"
6005 #include <$ac_header>
6006 _ACEOF
6007 if { (eval echo "$as_me:6007: \"$ac_cpp conftest.$ac_ext\"") >&5
6008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6009 ac_status=$?
6010 egrep -v '^ *\+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:6013: \$? = $ac_status" >&5
6014 (exit $ac_status); } >/dev/null; then
6015 if test -s conftest.err; then
6016 ac_cpp_err=$ac_c_preproc_warn_flag
6017 else
6018 ac_cpp_err=
6019 fi
6020 else
6021 ac_cpp_err=yes
6022 fi
6023 if test -z "$ac_cpp_err"; then
6024 eval "$as_ac_Header=yes"
6025 else
6026 echo "$as_me: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6028 eval "$as_ac_Header=no"
6029 fi
6030 rm -f conftest.err conftest.$ac_ext
6031 fi
6032 echo "$as_me:6032: result: `eval echo '${'$as_ac_Header'}'`" >&5
6033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6035 cat >>confdefs.h <<EOF
6036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6037 EOF
6038
6039 fi
6040 done
6041
6042 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
6043 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
6044 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
6045 do
6046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6047 echo "$as_me:6047: checking for $ac_func" >&5
6048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6049 if eval "test \"\${$as_ac_var+set}\" = set"; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 cat >conftest.$ac_ext <<_ACEOF
6053 #line 6053 "configure"
6054 #include "confdefs.h"
6055 /* System header to define __stub macros and hopefully few prototypes,
6056 which can conflict with char $ac_func (); below. */
6057 #include <assert.h>
6058 /* Override any gcc2 internal prototype to avoid an error. */
6059 #ifdef __cplusplus
6060 extern "C"
6061 #endif
6062 /* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6064 char $ac_func ();
6065 char (*f) ();
6066
6067 int
6068 main ()
6069 {
6070 /* The GNU C library defines this for functions which it implements
6071 to always fail with ENOSYS. Some functions are actually named
6072 something starting with __ and the normal name is an alias. */
6073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6074 choke me
6075 #else
6076 f = $ac_func;
6077 #endif
6078
6079 ;
6080 return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:6084: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>&5
6086 ac_status=$?
6087 echo "$as_me:6087: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:6090: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:6093: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 eval "$as_ac_var=yes"
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6099 eval "$as_ac_var=no"
6100 fi
6101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6102 fi
6103 echo "$as_me:6103: result: `eval echo '${'$as_ac_var'}'`" >&5
6104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6105 if test `eval echo '${'$as_ac_var'}'` = yes; then
6106 cat >>confdefs.h <<EOF
6107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6108 EOF
6109
6110 fi
6111 done
6112
6113 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6114 if test "${with_libiconv_prefix+set}" = set; then
6115 withval="$with_libiconv_prefix"
6116
6117 for dir in `echo "$withval" | tr : ' '`; do
6118 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
6119 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
6120 done
6121
6122 fi;
6123
6124 echo "$as_me:6124: checking for iconv" >&5
6125 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6126 if test "${am_cv_func_iconv+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129
6130 am_cv_func_iconv="no, consider installing GNU libiconv"
6131 am_cv_lib_iconv=no
6132 cat >conftest.$ac_ext <<_ACEOF
6133 #line 6133 "configure"
6134 #include "confdefs.h"
6135 #include <stdlib.h>
6136 #include <iconv.h>
6137 int
6138 main ()
6139 {
6140 iconv_t cd = iconv_open("","");
6141 iconv(cd,NULL,NULL,NULL,NULL);
6142 iconv_close(cd);
6143 ;
6144 return 0;
6145 }
6146 _ACEOF
6147 rm -f conftest.$ac_objext conftest$ac_exeext
6148 if { (eval echo "$as_me:6148: \"$ac_link\"") >&5
6149 (eval $ac_link) 2>&5
6150 ac_status=$?
6151 echo "$as_me:6151: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try='test -s conftest$ac_exeext'
6154 { (eval echo "$as_me:6154: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:6157: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 am_cv_func_iconv=yes
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 cat conftest.$ac_ext >&5
6163 fi
6164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6165 if test "$am_cv_func_iconv" != yes; then
6166 am_save_LIBS="$LIBS"
6167 LIBS="$LIBS -liconv"
6168 cat >conftest.$ac_ext <<_ACEOF
6169 #line 6169 "configure"
6170 #include "confdefs.h"
6171 #include <stdlib.h>
6172 #include <iconv.h>
6173 int
6174 main ()
6175 {
6176 iconv_t cd = iconv_open("","");
6177 iconv(cd,NULL,NULL,NULL,NULL);
6178 iconv_close(cd);
6179 ;
6180 return 0;
6181 }
6182 _ACEOF
6183 rm -f conftest.$ac_objext conftest$ac_exeext
6184 if { (eval echo "$as_me:6184: \"$ac_link\"") >&5
6185 (eval $ac_link) 2>&5
6186 ac_status=$?
6187 echo "$as_me:6187: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -s conftest$ac_exeext'
6190 { (eval echo "$as_me:6190: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:6193: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 am_cv_lib_iconv=yes
6196 am_cv_func_iconv=yes
6197 else
6198 echo "$as_me: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6200 fi
6201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6202 LIBS="$am_save_LIBS"
6203 fi
6204
6205 fi
6206 echo "$as_me:6206: result: $am_cv_func_iconv" >&5
6207 echo "${ECHO_T}$am_cv_func_iconv" >&6
6208 if test "$am_cv_func_iconv" = yes; then
6209
6210 cat >>confdefs.h <<\EOF
6211 #define HAVE_ICONV 1
6212 EOF
6213
6214 echo "$as_me:6214: checking for iconv declaration" >&5
6215 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6216 if test "${am_cv_proto_iconv+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219
6220 cat >conftest.$ac_ext <<_ACEOF
6221 #line 6221 "configure"
6222 #include "confdefs.h"
6223
6224 #include <stdlib.h>
6225 #include <iconv.h>
6226 extern
6227 #ifdef __cplusplus
6228 "C"
6229 #endif
6230 #if defined(__STDC__) || defined(__cplusplus)
6231 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6232 #else
6233 size_t iconv();
6234 #endif
6235
6236 int
6237 main ()
6238 {
6239
6240 ;
6241 return 0;
6242 }
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (eval echo "$as_me:6245: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>&5
6247 ac_status=$?
6248 echo "$as_me:6248: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -s conftest.$ac_objext'
6251 { (eval echo "$as_me:6251: \"$ac_try\"") >&5
6252 (eval $ac_try) 2>&5
6253 ac_status=$?
6254 echo "$as_me:6254: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 am_cv_proto_iconv_arg1=""
6257 else
6258 echo "$as_me: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6260 am_cv_proto_iconv_arg1="const"
6261 fi
6262 rm -f conftest.$ac_objext conftest.$ac_ext
6263 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);"
6264 fi
6265
6266 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6267 echo "$as_me:6267: result: ${ac_t:-
6268 }$am_cv_proto_iconv" >&5
6269 echo "${ECHO_T}${ac_t:-
6270 }$am_cv_proto_iconv" >&6
6271
6272 cat >>confdefs.h <<EOF
6273 #define ICONV_CONST $am_cv_proto_iconv_arg1
6274 EOF
6275
6276 fi
6277 LIBICONV=
6278 if test "$am_cv_lib_iconv" = yes; then
6279 LIBICONV="-liconv"
6280 fi
6281
6282 echo "$as_me:6282: checking for nl_langinfo and CODESET" >&5
6283 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6284 if test "${am_cv_langinfo_codeset+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287 cat >conftest.$ac_ext <<_ACEOF
6288 #line 6288 "configure"
6289 #include "confdefs.h"
6290 #include <langinfo.h>
6291 int
6292 main ()
6293 {
6294 char* cs = nl_langinfo(CODESET);
6295 ;
6296 return 0;
6297 }
6298 _ACEOF
6299 rm -f conftest.$ac_objext conftest$ac_exeext
6300 if { (eval echo "$as_me:6300: \"$ac_link\"") >&5
6301 (eval $ac_link) 2>&5
6302 ac_status=$?
6303 echo "$as_me:6303: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -s conftest$ac_exeext'
6306 { (eval echo "$as_me:6306: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:6309: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 am_cv_langinfo_codeset=yes
6312 else
6313 echo "$as_me: failed program was:" >&5
6314 cat conftest.$ac_ext >&5
6315 am_cv_langinfo_codeset=no
6316 fi
6317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6318
6319 fi
6320 echo "$as_me:6320: result: $am_cv_langinfo_codeset" >&5
6321 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6322 if test $am_cv_langinfo_codeset = yes; then
6323
6324 cat >>confdefs.h <<\EOF
6325 #define HAVE_LANGINFO_CODESET 1
6326 EOF
6327
6328 fi
6329
6330 if test $ac_cv_header_locale_h = yes; then
6331 echo "$as_me:6331: checking for LC_MESSAGES" >&5
6332 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6333 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 cat >conftest.$ac_ext <<_ACEOF
6337 #line 6337 "configure"
6338 #include "confdefs.h"
6339 #include <locale.h>
6340 int
6341 main ()
6342 {
6343 return LC_MESSAGES
6344 ;
6345 return 0;
6346 }
6347 _ACEOF
6348 rm -f conftest.$ac_objext conftest$ac_exeext
6349 if { (eval echo "$as_me:6349: \"$ac_link\"") >&5
6350 (eval $ac_link) 2>&5
6351 ac_status=$?
6352 echo "$as_me:6352: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -s conftest$ac_exeext'
6355 { (eval echo "$as_me:6355: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:6358: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 am_cv_val_LC_MESSAGES=yes
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6364 am_cv_val_LC_MESSAGES=no
6365 fi
6366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6367 fi
6368 echo "$as_me:6368: result: $am_cv_val_LC_MESSAGES" >&5
6369 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6370 if test $am_cv_val_LC_MESSAGES = yes; then
6371
6372 cat >>confdefs.h <<\EOF
6373 #define HAVE_LC_MESSAGES 1
6374 EOF
6375
6376 fi
6377 fi
6378 echo "$as_me:6378: checking whether NLS is requested" >&5
6379 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6380 # Check whether --enable-nls or --disable-nls was given.
6381 if test "${enable_nls+set}" = set; then
6382 enableval="$enable_nls"
6383 USE_NLS=$enableval
6384 else
6385 USE_NLS=yes
6386 fi;
6387 echo "$as_me:6387: result: $USE_NLS" >&5
6388 echo "${ECHO_T}$USE_NLS" >&6
6389
6390 BUILD_INCLUDED_LIBINTL=no
6391 USE_INCLUDED_LIBINTL=no
6392 INTLLIBS=
6393
6394 if test "$USE_NLS" = "yes"; then
6395
6396 cat >>confdefs.h <<\EOF
6397 #define ENABLE_NLS 1
6398 EOF
6399
6400 echo "$as_me:6400: checking whether included gettext is requested" >&5
6401 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6402
6403 # Check whether --with-included-gettext or --without-included-gettext was given.
6404 if test "${with_included_gettext+set}" = set; then
6405 withval="$with_included_gettext"
6406 nls_cv_force_use_gnu_gettext=$withval
6407 else
6408 nls_cv_force_use_gnu_gettext=no
6409 fi;
6410 echo "$as_me:6410: result: $nls_cv_force_use_gnu_gettext" >&5
6411 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6412
6413 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6414 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6415 CATOBJEXT=NONE
6416
6417 echo "$as_me:6417: checking for libintl.h" >&5
6418 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6419 if test "${ac_cv_header_libintl_h+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422 cat >conftest.$ac_ext <<_ACEOF
6423 #line 6423 "configure"
6424 #include "confdefs.h"
6425 #include <libintl.h>
6426 _ACEOF
6427 if { (eval echo "$as_me:6427: \"$ac_cpp conftest.$ac_ext\"") >&5
6428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6429 ac_status=$?
6430 egrep -v '^ *\+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
6433 echo "$as_me:6433: \$? = $ac_status" >&5
6434 (exit $ac_status); } >/dev/null; then
6435 if test -s conftest.err; then
6436 ac_cpp_err=$ac_c_preproc_warn_flag
6437 else
6438 ac_cpp_err=
6439 fi
6440 else
6441 ac_cpp_err=yes
6442 fi
6443 if test -z "$ac_cpp_err"; then
6444 ac_cv_header_libintl_h=yes
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 cat conftest.$ac_ext >&5
6448 ac_cv_header_libintl_h=no
6449 fi
6450 rm -f conftest.err conftest.$ac_ext
6451 fi
6452 echo "$as_me:6452: result: $ac_cv_header_libintl_h" >&5
6453 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6454 if test $ac_cv_header_libintl_h = yes; then
6455 echo "$as_me:6455: checking for GNU gettext in libc" >&5
6456 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6457 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 cat >conftest.$ac_ext <<_ACEOF
6461 #line 6461 "configure"
6462 #include "confdefs.h"
6463 #include <libintl.h>
6464 extern int _nl_msg_cat_cntr;
6465 int
6466 main ()
6467 {
6468 bindtextdomain ("", "");
6469 return (int) gettext ("") + _nl_msg_cat_cntr
6470 ;
6471 return 0;
6472 }
6473 _ACEOF
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (eval echo "$as_me:6475: \"$ac_link\"") >&5
6476 (eval $ac_link) 2>&5
6477 ac_status=$?
6478 echo "$as_me:6478: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try='test -s conftest$ac_exeext'
6481 { (eval echo "$as_me:6481: \"$ac_try\"") >&5
6482 (eval $ac_try) 2>&5
6483 ac_status=$?
6484 echo "$as_me:6484: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 gt_cv_func_gnugettext1_libc=yes
6487 else
6488 echo "$as_me: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6490 gt_cv_func_gnugettext1_libc=no
6491 fi
6492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6493 fi
6494 echo "$as_me:6494: result: $gt_cv_func_gnugettext1_libc" >&5
6495 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6496
6497 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6498 echo "$as_me:6498: checking for GNU gettext in libintl" >&5
6499 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6500 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 gt_save_LIBS="$LIBS"
6504 LIBS="$LIBS -lintl $LIBICONV"
6505 cat >conftest.$ac_ext <<_ACEOF
6506 #line 6506 "configure"
6507 #include "confdefs.h"
6508 #include <libintl.h>
6509 extern int _nl_msg_cat_cntr;
6510 int
6511 main ()
6512 {
6513 bindtextdomain ("", "");
6514 return (int) gettext ("") + _nl_msg_cat_cntr
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:6520: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>&5
6522 ac_status=$?
6523 echo "$as_me:6523: \$? = $ac_status" >&5
6524 (exit $ac_status); } &&
6525 { ac_try='test -s conftest$ac_exeext'
6526 { (eval echo "$as_me:6526: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:6529: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 gt_cv_func_gnugettext1_libintl=yes
6532 else
6533 echo "$as_me: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6535 gt_cv_func_gnugettext1_libintl=no
6536 fi
6537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6538 LIBS="$gt_save_LIBS"
6539 fi
6540 echo "$as_me:6540: result: $gt_cv_func_gnugettext1_libintl" >&5
6541 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6542 fi
6543
6544 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6545 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6546 && test "$PACKAGE" != gettext; }; then
6547
6548 cat >>confdefs.h <<\EOF
6549 #define HAVE_GETTEXT 1
6550 EOF
6551
6552 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6553 INTLLIBS="-lintl $LIBICONV"
6554 fi
6555
6556 gt_save_LIBS="$LIBS"
6557 LIBS="$LIBS $INTLLIBS"
6558
6559 for ac_func in dcgettext
6560 do
6561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6562 echo "$as_me:6562: checking for $ac_func" >&5
6563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6564 if eval "test \"\${$as_ac_var+set}\" = set"; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567 cat >conftest.$ac_ext <<_ACEOF
6568 #line 6568 "configure"
6569 #include "confdefs.h"
6570 /* System header to define __stub macros and hopefully few prototypes,
6571 which can conflict with char $ac_func (); below. */
6572 #include <assert.h>
6573 /* Override any gcc2 internal prototype to avoid an error. */
6574 #ifdef __cplusplus
6575 extern "C"
6576 #endif
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6579 char $ac_func ();
6580 char (*f) ();
6581
6582 int
6583 main ()
6584 {
6585 /* The GNU C library defines this for functions which it implements
6586 to always fail with ENOSYS. Some functions are actually named
6587 something starting with __ and the normal name is an alias. */
6588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6589 choke me
6590 #else
6591 f = $ac_func;
6592 #endif
6593
6594 ;
6595 return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:6599: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>&5
6601 ac_status=$?
6602 echo "$as_me:6602: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest$ac_exeext'
6605 { (eval echo "$as_me:6605: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:6608: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 eval "$as_ac_var=yes"
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 eval "$as_ac_var=no"
6615 fi
6616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617 fi
6618 echo "$as_me:6618: result: `eval echo '${'$as_ac_var'}'`" >&5
6619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6620 if test `eval echo '${'$as_ac_var'}'` = yes; then
6621 cat >>confdefs.h <<EOF
6622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6623 EOF
6624
6625 fi
6626 done
6627
6628 LIBS="$gt_save_LIBS"
6629
6630 # Extract the first word of "msgfmt", so it can be a program name with args.
6631 set dummy msgfmt; ac_word=$2
6632 echo "$as_me:6632: checking for $ac_word" >&5
6633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6634 if test "${ac_cv_path_MSGFMT+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637 case "$MSGFMT" in
6638 /*)
6639 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6640 ;;
6641 *)
6642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6643 for ac_dir in $PATH; do
6644 test -z "$ac_dir" && ac_dir=.
6645 if test -f $ac_dir/$ac_word; then
6646 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
6647 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6648 break
6649 fi
6650 fi
6651 done
6652 IFS="$ac_save_ifs"
6653 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6654 ;;
6655 esac
6656 fi
6657 MSGFMT="$ac_cv_path_MSGFMT"
6658 if test "$MSGFMT" != ":"; then
6659 echo "$as_me:6659: result: $MSGFMT" >&5
6660 echo "${ECHO_T}$MSGFMT" >&6
6661 else
6662 echo "$as_me:6662: result: no" >&5
6663 echo "${ECHO_T}no" >&6
6664 fi
6665
6666 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6667 set dummy gmsgfmt; ac_word=$2
6668 echo "$as_me:6668: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6670 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 case $GMSGFMT in
6674 [\\/]* | ?:[\\/]*)
6675 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6676 ;;
6677 *)
6678 ac_save_IFS=$IFS; IFS=$ac_path_separator
6679 ac_dummy="$PATH"
6680 for ac_dir in $ac_dummy; do
6681 IFS=$ac_save_IFS
6682 test -z "$ac_dir" && ac_dir=.
6683 if $as_executable_p "$ac_dir/$ac_word"; then
6684 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
6685 echo "$as_me:6685: found $ac_dir/$ac_word" >&5
6686 break
6687 fi
6688 done
6689
6690 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6691 ;;
6692 esac
6693 fi
6694 GMSGFMT=$ac_cv_path_GMSGFMT
6695
6696 if test -n "$GMSGFMT"; then
6697 echo "$as_me:6697: result: $GMSGFMT" >&5
6698 echo "${ECHO_T}$GMSGFMT" >&6
6699 else
6700 echo "$as_me:6700: result: no" >&5
6701 echo "${ECHO_T}no" >&6
6702 fi
6703
6704 # Extract the first word of "xgettext", so it can be a program name with args.
6705 set dummy xgettext; ac_word=$2
6706 echo "$as_me:6706: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6708 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 case "$XGETTEXT" in
6712 /*)
6713 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6714 ;;
6715 *)
6716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6717 for ac_dir in $PATH; do
6718 test -z "$ac_dir" && ac_dir=.
6719 if test -f $ac_dir/$ac_word; then
6720 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
6721 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6722 break
6723 fi
6724 fi
6725 done
6726 IFS="$ac_save_ifs"
6727 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6728 ;;
6729 esac
6730 fi
6731 XGETTEXT="$ac_cv_path_XGETTEXT"
6732 if test "$XGETTEXT" != ":"; then
6733 echo "$as_me:6733: result: $XGETTEXT" >&5
6734 echo "${ECHO_T}$XGETTEXT" >&6
6735 else
6736 echo "$as_me:6736: result: no" >&5
6737 echo "${ECHO_T}no" >&6
6738 fi
6739
6740 CATOBJEXT=.gmo
6741 fi
6742
6743 fi
6744
6745 if test "$CATOBJEXT" = "NONE"; then
6746 nls_cv_use_gnu_gettext=yes
6747 fi
6748 fi
6749
6750 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6751 INTLOBJS="\$(GETTOBJS)"
6752 # Extract the first word of "msgfmt", so it can be a program name with args.
6753 set dummy msgfmt; ac_word=$2
6754 echo "$as_me:6754: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6756 if test "${ac_cv_path_MSGFMT+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759 case "$MSGFMT" in
6760 /*)
6761 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6762 ;;
6763 *)
6764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6765 for ac_dir in $PATH; do
6766 test -z "$ac_dir" && ac_dir=.
6767 if test -f $ac_dir/$ac_word; then
6768 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
6769 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6770 break
6771 fi
6772 fi
6773 done
6774 IFS="$ac_save_ifs"
6775 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6776 ;;
6777 esac
6778 fi
6779 MSGFMT="$ac_cv_path_MSGFMT"
6780 if test "$MSGFMT" != ":"; then
6781 echo "$as_me:6781: result: $MSGFMT" >&5
6782 echo "${ECHO_T}$MSGFMT" >&6
6783 else
6784 echo "$as_me:6784: result: no" >&5
6785 echo "${ECHO_T}no" >&6
6786 fi
6787
6788 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6789 set dummy gmsgfmt; ac_word=$2
6790 echo "$as_me:6790: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6792 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 case $GMSGFMT in
6796 [\\/]* | ?:[\\/]*)
6797 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6798 ;;
6799 *)
6800 ac_save_IFS=$IFS; IFS=$ac_path_separator
6801 ac_dummy="$PATH"
6802 for ac_dir in $ac_dummy; do
6803 IFS=$ac_save_IFS
6804 test -z "$ac_dir" && ac_dir=.
6805 if $as_executable_p "$ac_dir/$ac_word"; then
6806 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
6807 echo "$as_me:6807: found $ac_dir/$ac_word" >&5
6808 break
6809 fi
6810 done
6811
6812 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6813 ;;
6814 esac
6815 fi
6816 GMSGFMT=$ac_cv_path_GMSGFMT
6817
6818 if test -n "$GMSGFMT"; then
6819 echo "$as_me:6819: result: $GMSGFMT" >&5
6820 echo "${ECHO_T}$GMSGFMT" >&6
6821 else
6822 echo "$as_me:6822: result: no" >&5
6823 echo "${ECHO_T}no" >&6
6824 fi
6825
6826 # Extract the first word of "xgettext", so it can be a program name with args.
6827 set dummy xgettext; ac_word=$2
6828 echo "$as_me:6828: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6830 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833 case "$XGETTEXT" in
6834 /*)
6835 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6836 ;;
6837 *)
6838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6839 for ac_dir in $PATH; do
6840 test -z "$ac_dir" && ac_dir=.
6841 if test -f $ac_dir/$ac_word; then
6842 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
6843 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6844 break
6845 fi
6846 fi
6847 done
6848 IFS="$ac_save_ifs"
6849 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6850 ;;
6851 esac
6852 fi
6853 XGETTEXT="$ac_cv_path_XGETTEXT"
6854 if test "$XGETTEXT" != ":"; then
6855 echo "$as_me:6855: result: $XGETTEXT" >&5
6856 echo "${ECHO_T}$XGETTEXT" >&6
6857 else
6858 echo "$as_me:6858: result: no" >&5
6859 echo "${ECHO_T}no" >&6
6860 fi
6861
6862 BUILD_INCLUDED_LIBINTL=yes
6863 USE_INCLUDED_LIBINTL=yes
6864 CATOBJEXT=.gmo
6865 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
6866 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6867 fi
6868
6869 if test "$GMSGFMT" != ":"; then
6870 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
6871 : ;
6872 else
6873 echo "$as_me:6873: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
6874 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
6875 GMSGFMT=":"
6876 fi
6877 fi
6878
6879 if test "$XGETTEXT" != ":"; then
6880 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
6881 : ;
6882 else
6883 echo "$as_me:6883: result: found xgettext program is not GNU xgettext; ignore it" >&5
6884 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6885 XGETTEXT=":"
6886 fi
6887 fi
6888
6889 POSUB=po
6890 fi
6891 ac_config_commands="$ac_config_commands default-2"
6892
6893 if test "$PACKAGE" = gettext; then
6894 BUILD_INCLUDED_LIBINTL=yes
6895 fi
6896
6897 for ac_prog in bison
6898 do
6899 # Extract the first word of "$ac_prog", so it can be a program name with args.
6900 set dummy $ac_prog; ac_word=$2
6901 echo "$as_me:6901: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6903 if test "${ac_cv_prog_INTLBISON+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906 if test -n "$INTLBISON"; then
6907 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6908 else
6909 ac_save_IFS=$IFS; IFS=$ac_path_separator
6910 ac_dummy="$PATH"
6911 for ac_dir in $ac_dummy; do
6912 IFS=$ac_save_IFS
6913 test -z "$ac_dir" && ac_dir=.
6914 $as_executable_p "$ac_dir/$ac_word" || continue
6915 ac_cv_prog_INTLBISON="$ac_prog"
6916 echo "$as_me:6916: found $ac_dir/$ac_word" >&5
6917 break
6918 done
6919
6920 fi
6921 fi
6922 INTLBISON=$ac_cv_prog_INTLBISON
6923 if test -n "$INTLBISON"; then
6924 echo "$as_me:6924: result: $INTLBISON" >&5
6925 echo "${ECHO_T}$INTLBISON" >&6
6926 else
6927 echo "$as_me:6927: result: no" >&5
6928 echo "${ECHO_T}no" >&6
6929 fi
6930
6931 test -n "$INTLBISON" && break
6932 done
6933
6934 if test -z "$INTLBISON"; then
6935 ac_verc_fail=yes
6936 else
6937 echo "$as_me:6937: checking version of bison" >&5
6938 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6939 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6940 case $ac_prog_version in
6941 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
6942 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
6943 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6944 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6945 esac
6946 echo "$as_me:6946: result: $ac_prog_version" >&5
6947 echo "${ECHO_T}$ac_prog_version" >&6
6948 fi
6949 if test $ac_verc_fail = yes; then
6950 INTLBISON=:
6951 fi
6952
6953 for lang in $ALL_LINGUAS; do
6954 GMOFILES="$GMOFILES $lang.gmo"
6955 POFILES="$POFILES $lang.po"
6956 done
6957
6958 nls_cv_header_intl=
6959 nls_cv_header_libgt=
6960
6961 DATADIRNAME=share
6962
6963 INSTOBJEXT=.mo
6964
6965 GENCAT=gencat
6966
6967 if test "x$CATOBJEXT" != "x"; then
6968 if test "x$ALL_LINGUAS" = "x"; then
6969 LINGUAS=
6970 else
6971 echo "$as_me:6971: checking for catalogs to be installed" >&5
6972 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6973 NEW_LINGUAS=
6974 for presentlang in $ALL_LINGUAS; do
6975 useit=no
6976 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
6977 # Use the presentlang catalog if desiredlang is
6978 # a. equal to presentlang, or
6979 # b. a variant of presentlang (because in this case,
6980 # presentlang can be used as a fallback for messages
6981 # which are not translated in the desiredlang catalog).
6982 case "$desiredlang" in
6983 "$presentlang"*) useit=yes;;
6984 esac
6985 done
6986 if test $useit = yes; then
6987 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
6988 fi
6989 done
6990 LINGUAS=$NEW_LINGUAS
6991 echo "$as_me:6991: result: $LINGUAS" >&5
6992 echo "${ECHO_T}$LINGUAS" >&6
6993 fi
6994
6995 if test -n "$LINGUAS"; then
6996 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6997 fi
6998 fi
6999
7000 MKINSTALLDIRS=
7001 if test -n "$ac_aux_dir"; then
7002 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7003 fi
7004 if test -z "$MKINSTALLDIRS"; then
7005 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7006 fi
7007
7008 INTL_LIBTOOL_SUFFIX_PREFIX=
7009
7010 # This is necessary so that .o files in LIBOBJS are also built via
7011 # the ANSI2KNR-filtering rules.
7012 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
7013
7014 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"
7015 cat >confcache <<\_ACEOF
7016 # This file is a shell script that caches the results of configure
7017 # tests run on this system so they can be shared between configure
7018 # scripts and configure runs, see configure's option --config-cache.
7019 # It is not useful on other systems. If it contains results you don't
7020 # want to keep, you may remove or edit it.
7021 #
7022 # config.status only pays attention to the cache file if you give it
7023 # the --recheck option to rerun configure.
7024 #
7025 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7026 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7027 # following values.
7028
7029 _ACEOF
7030
7031 # The following way of writing the cache mishandles newlines in values,
7032 # but we know of no workaround that is simple, portable, and efficient.
7033 # So, don't put newlines in cache variables' values.
7034 # Ultrix sh set writes to stderr and can't be redirected directly,
7035 # and sets the high bit in the cache file unless we assign to the vars.
7036 {
7037 (set) 2>&1 |
7038 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7039 *ac_space=\ *)
7040 # `set' does not quote correctly, so add quotes (double-quote
7041 # substitution turns \\\\ into \\, and sed turns \\ into \).
7042 sed -n \
7043 "s/'/'\\\\''/g;
7044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7045 ;;
7046 *)
7047 # `set' quotes correctly as required by POSIX, so do not add quotes.
7048 sed -n \
7049 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7050 ;;
7051 esac;
7052 } |
7053 sed '
7054 t clear
7055 : clear
7056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7057 t end
7058 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7059 : end' >>confcache
7060 if cmp -s $cache_file confcache; then :; else
7061 if test -w $cache_file; then
7062 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7063 cat confcache >$cache_file
7064 else
7065 echo "not updating unwritable cache $cache_file"
7066 fi
7067 fi
7068 rm -f confcache
7069
7070 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7071 # Let make expand exec_prefix.
7072 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7073
7074 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7075 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7076 # trailing colons and then remove the whole line if VPATH becomes empty
7077 # (actually we leave an empty line to preserve line numbers).
7078 if test "x$srcdir" = x.; then
7079 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7080 s/:*\$(srcdir):*/:/;
7081 s/:*\${srcdir}:*/:/;
7082 s/:*@srcdir@:*/:/;
7083 s/^\([^=]*=[ ]*\):*/\1/;
7084 s/:*$//;
7085 s/^[^=]*=[ ]*$//;
7086 }'
7087 fi
7088
7089 DEFS=-DHAVE_CONFIG_H
7090
7091 : ${CONFIG_STATUS=./config.status}
7092 ac_clean_files_save=$ac_clean_files
7093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7094 { echo "$as_me:7094: creating $CONFIG_STATUS" >&5
7095 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7096 cat >$CONFIG_STATUS <<_ACEOF
7097 #! $SHELL
7098 # Generated automatically by configure.
7099 # Run this file to recreate the current configuration.
7100 # Compiler output produced by configure, useful for debugging
7101 # configure, is in config.log if it exists.
7102
7103 debug=false
7104 SHELL=\${CONFIG_SHELL-$SHELL}
7105 ac_cs_invocation="\$0 \$@"
7106
7107 _ACEOF
7108
7109 cat >>$CONFIG_STATUS <<\_ACEOF
7110 # Be Bourne compatible
7111 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7112 emulate sh
7113 NULLCMD=:
7114 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7115 set -o posix
7116 fi
7117
7118 # Name of the executable.
7119 as_me=`echo "$0" |sed 's,.*[\\/],,'`
7120
7121 if expr a : '\(a\)' >/dev/null 2>&1; then
7122 as_expr=expr
7123 else
7124 as_expr=false
7125 fi
7126
7127 rm -f conf$$ conf$$.exe conf$$.file
7128 echo >conf$$.file
7129 if ln -s conf$$.file conf$$ 2>/dev/null; then
7130 # We could just check for DJGPP; but this test a) works b) is more generic
7131 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7132 if test -f conf$$.exe; then
7133 # Don't use ln at all; we don't have any links
7134 as_ln_s='cp -p'
7135 else
7136 as_ln_s='ln -s'
7137 fi
7138 elif ln conf$$.file conf$$ 2>/dev/null; then
7139 as_ln_s=ln
7140 else
7141 as_ln_s='cp -p'
7142 fi
7143 rm -f conf$$ conf$$.exe conf$$.file
7144
7145 as_executable_p="test -f"
7146
7147 # Support unset when possible.
7148 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7149 as_unset=unset
7150 else
7151 as_unset=false
7152 fi
7153
7154 # NLS nuisances.
7155 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7156 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7157 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7158 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7159 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7160 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7161 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7162 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7163
7164 # IFS
7165 # We need space, tab and new line, in precisely that order.
7166 as_nl='
7167 '
7168 IFS=" $as_nl"
7169
7170 # CDPATH.
7171 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7172
7173 exec 6>&1
7174
7175 _ACEOF
7176
7177 # Files that config.status was made for.
7178 if test -n "$ac_config_files"; then
7179 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7180 fi
7181
7182 if test -n "$ac_config_headers"; then
7183 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7184 fi
7185
7186 if test -n "$ac_config_links"; then
7187 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7188 fi
7189
7190 if test -n "$ac_config_commands"; then
7191 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7192 fi
7193
7194 cat >>$CONFIG_STATUS <<\EOF
7195
7196 ac_cs_usage="\
7197 \`$as_me' instantiates files from templates according to the
7198 current configuration.
7199
7200 Usage: $0 [OPTIONS] [FILE]...
7201
7202 -h, --help print this help, then exit
7203 -V, --version print version number, then exit
7204 -d, --debug don't remove temporary files
7205 --recheck update $as_me by reconfiguring in the same conditions
7206 --file=FILE[:TEMPLATE]
7207 instantiate the configuration file FILE
7208 --header=FILE[:TEMPLATE]
7209 instantiate the configuration header FILE
7210
7211 Configuration files:
7212 $config_files
7213
7214 Configuration headers:
7215 $config_headers
7216
7217 Configuration commands:
7218 $config_commands
7219
7220 Report bugs to <bug-autoconf@gnu.org>."
7221 EOF
7222
7223 cat >>$CONFIG_STATUS <<EOF
7224 ac_cs_version="\\
7225 bison config.status 1.28a
7226 configured by $0, generated by GNU Autoconf 2.52,
7227 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7228
7229 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7230 Free Software Foundation, Inc.
7231 This config.status script is free software; the Free Software Foundation
7232 gives unlimited permission to copy, distribute and modify it."
7233 srcdir=$srcdir
7234 INSTALL="$INSTALL"
7235 EOF
7236
7237 cat >>$CONFIG_STATUS <<\EOF
7238 # If no file are specified by the user, then we need to provide default
7239 # value. By we need to know if files were specified by the user.
7240 ac_need_defaults=:
7241 while test $# != 0
7242 do
7243 case $1 in
7244 --*=*)
7245 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7246 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7247 shift
7248 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7249 shift
7250 ;;
7251 -*);;
7252 *) # This is not an option, so the user has probably given explicit
7253 # arguments.
7254 ac_need_defaults=false;;
7255 esac
7256
7257 case $1 in
7258 # Handling of the options.
7259 EOF
7260 cat >>$CONFIG_STATUS <<EOF
7261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7262 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7263 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7264 EOF
7265 cat >>$CONFIG_STATUS <<\EOF
7266 --version | --vers* | -V )
7267 echo "$ac_cs_version"; exit 0 ;;
7268 --he | --h)
7269 # Conflict between --help and --header
7270 { { echo "$as_me:7270: error: ambiguous option: $1
7271 Try \`$0 --help' for more information." >&5
7272 echo "$as_me: error: ambiguous option: $1
7273 Try \`$0 --help' for more information." >&2;}
7274 { (exit 1); exit 1; }; };;
7275 --help | --hel | -h )
7276 echo "$ac_cs_usage"; exit 0 ;;
7277 --debug | --d* | -d )
7278 debug=: ;;
7279 --file | --fil | --fi | --f )
7280 shift
7281 CONFIG_FILES="$CONFIG_FILES $1"
7282 ac_need_defaults=false;;
7283 --header | --heade | --head | --hea )
7284 shift
7285 CONFIG_HEADERS="$CONFIG_HEADERS $1"
7286 ac_need_defaults=false;;
7287
7288 # This is an error.
7289 -*) { { echo "$as_me:7289: error: unrecognized option: $1
7290 Try \`$0 --help' for more information." >&5
7291 echo "$as_me: error: unrecognized option: $1
7292 Try \`$0 --help' for more information." >&2;}
7293 { (exit 1); exit 1; }; } ;;
7294
7295 *) ac_config_targets="$ac_config_targets $1" ;;
7296
7297 esac
7298 shift
7299 done
7300
7301 exec 5>>config.log
7302 cat >&5 << _ACEOF
7303
7304 ## ----------------------- ##
7305 ## Running config.status. ##
7306 ## ----------------------- ##
7307
7308 This file was extended by $as_me (bison 1.28a) 2.52, executed with
7309 CONFIG_FILES = $CONFIG_FILES
7310 CONFIG_HEADERS = $CONFIG_HEADERS
7311 CONFIG_LINKS = $CONFIG_LINKS
7312 CONFIG_COMMANDS = $CONFIG_COMMANDS
7313 > $ac_cs_invocation
7314 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7315
7316 _ACEOF
7317 EOF
7318
7319 cat >>$CONFIG_STATUS <<EOF
7320 #
7321 # INIT-COMMANDS section.
7322 #
7323
7324 EOF
7325
7326 cat >>$CONFIG_STATUS <<\EOF
7327 for ac_config_target in $ac_config_targets
7328 do
7329 case "$ac_config_target" in
7330 # Handling of arguments.
7331 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7332 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
7333 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
7334 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
7335 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7336 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7337 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7338 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
7339 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
7340 "tests/atconfig" ) CONFIG_FILES="$CONFIG_FILES tests/atconfig" ;;
7341 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7342 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
7343 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
7344 *) { { echo "$as_me:7344: error: invalid argument: $ac_config_target" >&5
7345 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7346 { (exit 1); exit 1; }; };;
7347 esac
7348 done
7349
7350 # If the user did not use the arguments to specify the items to instantiate,
7351 # then the envvar interface is used. Set only those that are not.
7352 # We use the long form for the default assignment because of an extremely
7353 # bizarre bug on SunOS 4.1.3.
7354 if $ac_need_defaults; then
7355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7357 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7358 fi
7359
7360 # Create a temporary directory, and hook for its removal unless debugging.
7361 $debug ||
7362 {
7363 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7364 trap '{ (exit 1); exit 1; }' 1 2 13 15
7365 }
7366
7367 # Create a (secure) tmp directory for tmp files.
7368 : ${TMPDIR=/tmp}
7369 {
7370 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7371 test -n "$tmp" && test -d "$tmp"
7372 } ||
7373 {
7374 tmp=$TMPDIR/cs$$-$RANDOM
7375 (umask 077 && mkdir $tmp)
7376 } ||
7377 {
7378 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7379 { (exit 1); exit 1; }
7380 }
7381
7382 EOF
7383
7384 cat >>$CONFIG_STATUS <<EOF
7385
7386 #
7387 # CONFIG_FILES section.
7388 #
7389
7390 # No need to generate the scripts if there are no CONFIG_FILES.
7391 # This happens for instance when ./config.status config.h
7392 if test -n "\$CONFIG_FILES"; then
7393 # Protect against being on the right side of a sed subst in config.status.
7394 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7395 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7396 s,@SHELL@,$SHELL,;t t
7397 s,@exec_prefix@,$exec_prefix,;t t
7398 s,@prefix@,$prefix,;t t
7399 s,@program_transform_name@,$program_transform_name,;t t
7400 s,@bindir@,$bindir,;t t
7401 s,@sbindir@,$sbindir,;t t
7402 s,@libexecdir@,$libexecdir,;t t
7403 s,@datadir@,$datadir,;t t
7404 s,@sysconfdir@,$sysconfdir,;t t
7405 s,@sharedstatedir@,$sharedstatedir,;t t
7406 s,@localstatedir@,$localstatedir,;t t
7407 s,@libdir@,$libdir,;t t
7408 s,@includedir@,$includedir,;t t
7409 s,@oldincludedir@,$oldincludedir,;t t
7410 s,@infodir@,$infodir,;t t
7411 s,@mandir@,$mandir,;t t
7412 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7413 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7414 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7415 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7416 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7417 s,@build_alias@,$build_alias,;t t
7418 s,@host_alias@,$host_alias,;t t
7419 s,@target_alias@,$target_alias,;t t
7420 s,@ECHO_C@,$ECHO_C,;t t
7421 s,@ECHO_N@,$ECHO_N,;t t
7422 s,@ECHO_T@,$ECHO_T,;t t
7423 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7424 s,@DEFS@,$DEFS,;t t
7425 s,@LIBS@,$LIBS,;t t
7426 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7427 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7428 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7429 s,@PACKAGE@,$PACKAGE,;t t
7430 s,@VERSION@,$VERSION,;t t
7431 s,@ACLOCAL@,$ACLOCAL,;t t
7432 s,@AUTOCONF@,$AUTOCONF,;t t
7433 s,@AUTOMAKE@,$AUTOMAKE,;t t
7434 s,@AUTOHEADER@,$AUTOHEADER,;t t
7435 s,@MAKEINFO@,$MAKEINFO,;t t
7436 s,@SET_MAKE@,$SET_MAKE,;t t
7437 s,@AT_TESTPATH@,$AT_TESTPATH,;t t
7438 s,@CC@,$CC,;t t
7439 s,@CFLAGS@,$CFLAGS,;t t
7440 s,@LDFLAGS@,$LDFLAGS,;t t
7441 s,@CPPFLAGS@,$CPPFLAGS,;t t
7442 s,@ac_ct_CC@,$ac_ct_CC,;t t
7443 s,@EXEEXT@,$EXEEXT,;t t
7444 s,@OBJEXT@,$OBJEXT,;t t
7445 s,@CPP@,$CPP,;t t
7446 s,@RANLIB@,$RANLIB,;t t
7447 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7448 s,@M4@,$M4,;t t
7449 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
7450 s,@U@,$U,;t t
7451 s,@ANSI2KNR@,$ANSI2KNR,;t t
7452 s,@ALLOCA@,$ALLOCA,;t t
7453 s,@LIBOBJS@,$LIBOBJS,;t t
7454 s,@build@,$build,;t t
7455 s,@build_cpu@,$build_cpu,;t t
7456 s,@build_vendor@,$build_vendor,;t t
7457 s,@build_os@,$build_os,;t t
7458 s,@host@,$host,;t t
7459 s,@host_cpu@,$host_cpu,;t t
7460 s,@host_vendor@,$host_vendor,;t t
7461 s,@host_os@,$host_os,;t t
7462 s,@GLIBC21@,$GLIBC21,;t t
7463 s,@LIBICONV@,$LIBICONV,;t t
7464 s,@USE_NLS@,$USE_NLS,;t t
7465 s,@MSGFMT@,$MSGFMT,;t t
7466 s,@GMSGFMT@,$GMSGFMT,;t t
7467 s,@XGETTEXT@,$XGETTEXT,;t t
7468 s,@INTLBISON@,$INTLBISON,;t t
7469 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
7470 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7471 s,@CATALOGS@,$CATALOGS,;t t
7472 s,@CATOBJEXT@,$CATOBJEXT,;t t
7473 s,@GMOFILES@,$GMOFILES,;t t
7474 s,@INTLLIBS@,$INTLLIBS,;t t
7475 s,@INTLOBJS@,$INTLOBJS,;t t
7476 s,@POFILES@,$POFILES,;t t
7477 s,@POSUB@,$POSUB,;t t
7478 s,@DATADIRNAME@,$DATADIRNAME,;t t
7479 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7480 s,@GENCAT@,$GENCAT,;t t
7481 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7482 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
7483 CEOF
7484
7485 EOF
7486
7487 cat >>$CONFIG_STATUS <<\EOF
7488 # Split the substitutions into bite-sized pieces for seds with
7489 # small command number limits, like on Digital OSF/1 and HP-UX.
7490 ac_max_sed_lines=48
7491 ac_sed_frag=1 # Number of current file.
7492 ac_beg=1 # First line for current file.
7493 ac_end=$ac_max_sed_lines # Line after last line for current file.
7494 ac_more_lines=:
7495 ac_sed_cmds=
7496 while $ac_more_lines; do
7497 if test $ac_beg -gt 1; then
7498 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7499 else
7500 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7501 fi
7502 if test ! -s $tmp/subs.frag; then
7503 ac_more_lines=false
7504 else
7505 # The purpose of the label and of the branching condition is to
7506 # speed up the sed processing (if there are no `@' at all, there
7507 # is no need to browse any of the substitutions).
7508 # These are the two extra sed commands mentioned above.
7509 (echo ':t
7510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7511 if test -z "$ac_sed_cmds"; then
7512 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7513 else
7514 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7515 fi
7516 ac_sed_frag=`expr $ac_sed_frag + 1`
7517 ac_beg=$ac_end
7518 ac_end=`expr $ac_end + $ac_max_sed_lines`
7519 fi
7520 done
7521 if test -z "$ac_sed_cmds"; then
7522 ac_sed_cmds=cat
7523 fi
7524 fi # test -n "$CONFIG_FILES"
7525
7526 EOF
7527 cat >>$CONFIG_STATUS <<\EOF
7528 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7529 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7530 case $ac_file in
7531 - | *:- | *:-:* ) # input from stdin
7532 cat >$tmp/stdin
7533 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7534 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7535 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7536 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7537 * ) ac_file_in=$ac_file.in ;;
7538 esac
7539
7540 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7541 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7542 X"$ac_file" : 'X\(//\)[^/]' \| \
7543 X"$ac_file" : 'X\(//\)$' \| \
7544 X"$ac_file" : 'X\(/\)' \| \
7545 . : '\(.\)' 2>/dev/null ||
7546 echo X"$ac_file" |
7547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7549 /^X\(\/\/\)$/{ s//\1/; q; }
7550 /^X\(\/\).*/{ s//\1/; q; }
7551 s/.*/./; q'`
7552 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7553 { case "$ac_dir" in
7554 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7555 *) as_incr_dir=.;;
7556 esac
7557 as_dummy="$ac_dir"
7558 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7559 case $as_mkdir_dir in
7560 # Skip DOS drivespec
7561 ?:) as_incr_dir=$as_mkdir_dir ;;
7562 *)
7563 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7564 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7565 ;;
7566 esac
7567 done; }
7568
7569 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7570 # A "../" for each directory in $ac_dir_suffix.
7571 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7572 else
7573 ac_dir_suffix= ac_dots=
7574 fi
7575
7576 case $srcdir in
7577 .) ac_srcdir=.
7578 if test -z "$ac_dots"; then
7579 ac_top_srcdir=.
7580 else
7581 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7582 fi ;;
7583 [\\/]* | ?:[\\/]* )
7584 ac_srcdir=$srcdir$ac_dir_suffix;
7585 ac_top_srcdir=$srcdir ;;
7586 *) # Relative path.
7587 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7588 ac_top_srcdir=$ac_dots$srcdir ;;
7589 esac
7590
7591 case $INSTALL in
7592 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7593 *) ac_INSTALL=$ac_dots$INSTALL ;;
7594 esac
7595
7596 if test x"$ac_file" != x-; then
7597 { echo "$as_me:7597: creating $ac_file" >&5
7598 echo "$as_me: creating $ac_file" >&6;}
7599 rm -f "$ac_file"
7600 fi
7601 # Let's still pretend it is `configure' which instantiates (i.e., don't
7602 # use $as_me), people would be surprised to read:
7603 # /* config.h. Generated automatically by config.status. */
7604 configure_input="Generated automatically from `echo $ac_file_in |
7605 sed 's,.*/,,'` by configure."
7606
7607 # First look for the input files in the build tree, otherwise in the
7608 # src tree.
7609 ac_file_inputs=`IFS=:
7610 for f in $ac_file_in; do
7611 case $f in
7612 -) echo $tmp/stdin ;;
7613 [\\/$]*)
7614 # Absolute (can't be DOS-style, as IFS=:)
7615 test -f "$f" || { { echo "$as_me:7615: error: cannot find input file: $f" >&5
7616 echo "$as_me: error: cannot find input file: $f" >&2;}
7617 { (exit 1); exit 1; }; }
7618 echo $f;;
7619 *) # Relative
7620 if test -f "$f"; then
7621 # Build tree
7622 echo $f
7623 elif test -f "$srcdir/$f"; then
7624 # Source tree
7625 echo $srcdir/$f
7626 else
7627 # /dev/null tree
7628 { { echo "$as_me:7628: error: cannot find input file: $f" >&5
7629 echo "$as_me: error: cannot find input file: $f" >&2;}
7630 { (exit 1); exit 1; }; }
7631 fi;;
7632 esac
7633 done` || { (exit 1); exit 1; }
7634 EOF
7635 cat >>$CONFIG_STATUS <<EOF
7636 sed "$ac_vpsub
7637 $extrasub
7638 EOF
7639 cat >>$CONFIG_STATUS <<\EOF
7640 :t
7641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7642 s,@configure_input@,$configure_input,;t t
7643 s,@srcdir@,$ac_srcdir,;t t
7644 s,@top_srcdir@,$ac_top_srcdir,;t t
7645 s,@INSTALL@,$ac_INSTALL,;t t
7646 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7647 rm -f $tmp/stdin
7648 if test x"$ac_file" != x-; then
7649 mv $tmp/out $ac_file
7650 else
7651 cat $tmp/out
7652 rm -f $tmp/out
7653 fi
7654
7655 done
7656 EOF
7657 cat >>$CONFIG_STATUS <<\EOF
7658
7659 #
7660 # CONFIG_HEADER section.
7661 #
7662
7663 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7664 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7665 #
7666 # ac_d sets the value in "#define NAME VALUE" lines.
7667 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7668 ac_dB='[ ].*$,\1#\2'
7669 ac_dC=' '
7670 ac_dD=',;t'
7671 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7672 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7673 ac_uB='$,\1#\2define\3'
7674 ac_uC=' '
7675 ac_uD=',;t'
7676
7677 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7678 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7679 case $ac_file in
7680 - | *:- | *:-:* ) # input from stdin
7681 cat >$tmp/stdin
7682 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7683 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7684 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7686 * ) ac_file_in=$ac_file.in ;;
7687 esac
7688
7689 test x"$ac_file" != x- && { echo "$as_me:7689: creating $ac_file" >&5
7690 echo "$as_me: creating $ac_file" >&6;}
7691
7692 # First look for the input files in the build tree, otherwise in the
7693 # src tree.
7694 ac_file_inputs=`IFS=:
7695 for f in $ac_file_in; do
7696 case $f in
7697 -) echo $tmp/stdin ;;
7698 [\\/$]*)
7699 # Absolute (can't be DOS-style, as IFS=:)
7700 test -f "$f" || { { echo "$as_me:7700: error: cannot find input file: $f" >&5
7701 echo "$as_me: error: cannot find input file: $f" >&2;}
7702 { (exit 1); exit 1; }; }
7703 echo $f;;
7704 *) # Relative
7705 if test -f "$f"; then
7706 # Build tree
7707 echo $f
7708 elif test -f "$srcdir/$f"; then
7709 # Source tree
7710 echo $srcdir/$f
7711 else
7712 # /dev/null tree
7713 { { echo "$as_me:7713: error: cannot find input file: $f" >&5
7714 echo "$as_me: error: cannot find input file: $f" >&2;}
7715 { (exit 1); exit 1; }; }
7716 fi;;
7717 esac
7718 done` || { (exit 1); exit 1; }
7719 # Remove the trailing spaces.
7720 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7721
7722 EOF
7723
7724 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7725 # `conftest.undefs', that substitutes the proper values into
7726 # config.h.in to produce config.h. The first handles `#define'
7727 # templates, and the second `#undef' templates.
7728 # And first: Protect against being on the right side of a sed subst in
7729 # config.status. Protect against being in an unquoted here document
7730 # in config.status.
7731 rm -f conftest.defines conftest.undefs
7732 # Using a here document instead of a string reduces the quoting nightmare.
7733 # Putting comments in sed scripts is not portable.
7734 #
7735 # `end' is used to avoid that the second main sed command (meant for
7736 # 0-ary CPP macros) applies to n-ary macro definitions.
7737 # See the Autoconf documentation for `clear'.
7738 cat >confdef2sed.sed <<\EOF
7739 s/[\\&,]/\\&/g
7740 s,[\\$`],\\&,g
7741 t clear
7742 : clear
7743 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7744 t end
7745 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7746 : end
7747 EOF
7748 # If some macros were called several times there might be several times
7749 # the same #defines, which is useless. Nevertheless, we may not want to
7750 # sort them, since we want the *last* AC-DEFINE to be honored.
7751 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7752 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7753 rm -f confdef2sed.sed
7754
7755 # This sed command replaces #undef with comments. This is necessary, for
7756 # example, in the case of _POSIX_SOURCE, which is predefined and required
7757 # on some systems where configure will not decide to define it.
7758 cat >>conftest.undefs <<\EOF
7759 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7760 EOF
7761
7762 # Break up conftest.defines because some shells have a limit on the size
7763 # of here documents, and old seds have small limits too (100 cmds).
7764 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7765 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7766 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7767 echo ' :' >>$CONFIG_STATUS
7768 rm -f conftest.tail
7769 while grep . conftest.defines >/dev/null
7770 do
7771 # Write a limited-size here document to $tmp/defines.sed.
7772 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7773 # Speed up: don't consider the non `#define' lines.
7774 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7775 # Work around the forget-to-reset-the-flag bug.
7776 echo 't clr' >>$CONFIG_STATUS
7777 echo ': clr' >>$CONFIG_STATUS
7778 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7779 echo 'CEOF
7780 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7781 rm -f $tmp/in
7782 mv $tmp/out $tmp/in
7783 ' >>$CONFIG_STATUS
7784 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7785 rm -f conftest.defines
7786 mv conftest.tail conftest.defines
7787 done
7788 rm -f conftest.defines
7789 echo ' fi # egrep' >>$CONFIG_STATUS
7790 echo >>$CONFIG_STATUS
7791
7792 # Break up conftest.undefs because some shells have a limit on the size
7793 # of here documents, and old seds have small limits too (100 cmds).
7794 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7795 rm -f conftest.tail
7796 while grep . conftest.undefs >/dev/null
7797 do
7798 # Write a limited-size here document to $tmp/undefs.sed.
7799 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7800 # Speed up: don't consider the non `#undef'
7801 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7802 # Work around the forget-to-reset-the-flag bug.
7803 echo 't clr' >>$CONFIG_STATUS
7804 echo ': clr' >>$CONFIG_STATUS
7805 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7806 echo 'CEOF
7807 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7808 rm -f $tmp/in
7809 mv $tmp/out $tmp/in
7810 ' >>$CONFIG_STATUS
7811 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7812 rm -f conftest.undefs
7813 mv conftest.tail conftest.undefs
7814 done
7815 rm -f conftest.undefs
7816
7817 cat >>$CONFIG_STATUS <<\EOF
7818 # Let's still pretend it is `configure' which instantiates (i.e., don't
7819 # use $as_me), people would be surprised to read:
7820 # /* config.h. Generated automatically by config.status. */
7821 if test x"$ac_file" = x-; then
7822 echo "/* Generated automatically by configure. */" >$tmp/config.h
7823 else
7824 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7825 fi
7826 cat $tmp/in >>$tmp/config.h
7827 rm -f $tmp/in
7828 if test x"$ac_file" != x-; then
7829 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7830 { echo "$as_me:7830: $ac_file is unchanged" >&5
7831 echo "$as_me: $ac_file is unchanged" >&6;}
7832 else
7833 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7834 X"$ac_file" : 'X\(//\)[^/]' \| \
7835 X"$ac_file" : 'X\(//\)$' \| \
7836 X"$ac_file" : 'X\(/\)' \| \
7837 . : '\(.\)' 2>/dev/null ||
7838 echo X"$ac_file" |
7839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7841 /^X\(\/\/\)$/{ s//\1/; q; }
7842 /^X\(\/\).*/{ s//\1/; q; }
7843 s/.*/./; q'`
7844 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7845 { case "$ac_dir" in
7846 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7847 *) as_incr_dir=.;;
7848 esac
7849 as_dummy="$ac_dir"
7850 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7851 case $as_mkdir_dir in
7852 # Skip DOS drivespec
7853 ?:) as_incr_dir=$as_mkdir_dir ;;
7854 *)
7855 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7856 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7857 ;;
7858 esac
7859 done; }
7860
7861 fi
7862 rm -f $ac_file
7863 mv $tmp/config.h $ac_file
7864 fi
7865 else
7866 cat $tmp/config.h
7867 rm -f $tmp/config.h
7868 fi
7869 done
7870 EOF
7871 cat >>$CONFIG_STATUS <<\EOF
7872
7873 #
7874 # CONFIG_COMMANDS section.
7875 #
7876 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7877 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7878 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7879
7880 case $ac_dest in
7881 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
7882 default-2 ) for ac_file in $CONFIG_FILES; do
7883 # Support "outfile[:infile[:infile...]]"
7884 case "$ac_file" in
7885 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7886 esac
7887 # PO directories have a Makefile.in generated from Makefile.in.in.
7888 case "$ac_file" in */Makefile.in)
7889 # Adjust a relative srcdir.
7890 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7891 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7892 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7893 # In autoconf-2.13 it is called $ac_given_srcdir.
7894 # In autoconf-2.50 it is called $srcdir.
7895 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7896 case "$ac_given_srcdir" in
7897 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7898 /*) top_srcdir="$ac_given_srcdir" ;;
7899 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7900 esac
7901 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7902 rm -f "$ac_dir/POTFILES"
7903 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7904 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
7905 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7906 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7907 fi
7908 ;;
7909 esac
7910 done ;;
7911 esac
7912 done
7913 EOF
7914
7915 cat >>$CONFIG_STATUS <<\EOF
7916
7917 { (exit 0); exit 0; }
7918 EOF
7919 chmod +x $CONFIG_STATUS
7920 ac_clean_files=$ac_clean_files_save
7921
7922 # configure is writing to config.log, and then calls config.status.
7923 # config.status does its own redirection, appending to config.log.
7924 # Unfortunately, on DOS this fails, as config.log is still kept open
7925 # by configure, so config.status won't be able to write to it; its
7926 # output is simply discarded. So we exec the FD to /dev/null,
7927 # effectively closing config.log, so it can be properly (re)opened and
7928 # appended to by config.status. When coming back to configure, we
7929 # need to make the FD available again.
7930 if test "$no_create" != yes; then
7931 ac_cs_success=:
7932 exec 5>/dev/null
7933 $SHELL $CONFIG_STATUS || ac_cs_success=false
7934 exec 5>>config.log
7935 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7936 # would make configure fail if this is the last instruction.
7937 $ac_cs_success || { (exit 1); exit 1; }
7938 fi
7939