2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.50 for bison 1.28a.
5 # Report bugs to <bug-bison@gnu.org>.
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.
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
20 # Name of the executable.
21 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
23 if expr a
: '\(a\)' >/dev
/null
2>&1; then
29 rm -f conf$$ conf$$.exe conf$$.
file
31 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
32 # We could just check for DJGPP; but this test a) works b) is more generic
33 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
34 if test -f conf$$.exe
; then
35 # Don't use ln at all; we don't have any links
40 elif ln conf$$.
file conf$$
2>/dev
/null
; then
45 rm -f conf$$ conf$$.exe conf$$.
file
47 as_executable_p
="test -f"
49 # Support unset when possible.
50 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
57 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
58 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
59 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
60 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
61 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
62 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
63 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
64 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
67 # We need space, tab and new line, in precisely that order.
73 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=:; export CDPATH
; }
76 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
77 # so uname gets run too.
78 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
85 ac_default_prefix
=/usr
/local
89 SHELL
=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
92 # This variable seems obsolete. It should probably be removed, and
93 # only ac_max_sed_lines should be used.
94 : ${ac_max_here_lines=38}
96 # Avoid depending upon Character Ranges.
97 ac_cr_az
='abcdefghijklmnopqrstuvwxyz'
98 ac_cr_AZ
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
100 ac_cr_alnum
=$ac_cr_az$ac_cr_AZ$ac_cr_09
102 # Sed expression to map a string onto a valid sh and CPP variable names.
103 ac_tr_sh
="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
104 ac_tr_cpp
="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
106 # Factoring default headers for most tests.
107 ac_includes_default
="\
109 #include <sys/types.h>
110 #include <sys/stat.h>
120 # if !STDC_HEADERS && HAVE_MEMORY_H
126 # include <strings.h>
130 # include <inttypes.h>
136 # Initialize some variables set by options.
138 ac_init_version
=false
139 # The variables have the same names as the options, with
140 # dashes changed to underlines.
148 program_transform_name
=s
,x
,x
,
156 # Installation directory options.
157 # These are left unexpanded so users can "make install exec_prefix=/foo"
158 # and all the variables that are supposed to be based on exec_prefix
159 # by default will actually change.
160 # Use braces instead of parens because sh, perl, etc. also accept them.
161 bindir
='${exec_prefix}/bin'
162 sbindir
='${exec_prefix}/sbin'
163 libexecdir
='${exec_prefix}/libexec'
164 datadir
='${prefix}/share'
165 sysconfdir
='${prefix}/etc'
166 sharedstatedir
='${prefix}/com'
167 localstatedir
='${prefix}/var'
168 libdir
='${exec_prefix}/lib'
169 includedir
='${prefix}/include'
170 oldincludedir
='/usr/include'
171 infodir
='${prefix}/info'
172 mandir
='${prefix}/man'
174 # Identity of this package.
176 PACKAGE_TARNAME
='bison'
177 PACKAGE_VERSION
='1.28a'
178 PACKAGE_STRING
='bison 1.28a'
179 PACKAGE_BUGREPORT
='bug-bison@gnu.org'
184 # If the previous option needs an argument, assign it.
185 if test -n "$ac_prev"; then
186 eval "$ac_prev=\$ac_option"
191 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
193 # Accept the important Cygnus configure options, so we can diagnose typos.
197 -bindir | --bindir | --bindi | --bind | --bin | --bi)
199 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
202 -build | --build | --buil | --bui | --bu)
203 ac_prev
=build_alias
;;
204 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
205 build_alias
=$ac_optarg ;;
207 -cache-file | --cache-file | --cache-fil | --cache-fi \
208 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
209 ac_prev
=cache_file
;;
210 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
211 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
212 cache_file
=$ac_optarg ;;
215 cache_file
=config.cache
;;
217 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
219 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
221 datadir
=$ac_optarg ;;
223 -disable-* | --disable-*)
224 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
225 # Reject names that are not valid shell variable names.
226 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev
/null
&&
227 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
228 { (exit 1); exit 1; }; }
229 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
230 eval "enable_$ac_feature=no" ;;
232 -enable-* | --enable-*)
233 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev
/null
&&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
240 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
243 eval "enable_$ac_feature='$ac_optarg'" ;;
245 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
246 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
247 | --exec | --exe | --ex)
248 ac_prev
=exec_prefix
;;
249 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
250 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
251 | --exec=* | --exe=* | --ex=*)
252 exec_prefix
=$ac_optarg ;;
254 -gas | --gas | --ga | --g)
255 # Obsolete; use --with-gas.
258 -help | --help | --hel | --he | -h)
260 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
261 ac_init_help
=recursive
;;
262 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
263 ac_init_help
=short
;;
265 -host | --host | --hos | --ho)
266 ac_prev
=host_alias
;;
267 -host=* | --host=* | --hos=* | --ho=*)
268 host_alias
=$ac_optarg ;;
270 -includedir | --includedir | --includedi | --included | --include \
271 | --includ | --inclu | --incl | --inc)
272 ac_prev
=includedir
;;
273 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
274 | --includ=* | --inclu=* | --incl=* | --inc=*)
275 includedir
=$ac_optarg ;;
277 -infodir | --infodir | --infodi | --infod | --info | --inf)
279 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
280 infodir
=$ac_optarg ;;
282 -libdir | --libdir | --libdi | --libd)
284 -libdir=* | --libdir=* | --libdi=* | --libd=*)
287 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
288 | --libexe | --libex | --libe)
289 ac_prev
=libexecdir
;;
290 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
291 | --libexe=* | --libex=* | --libe=*)
292 libexecdir
=$ac_optarg ;;
294 -localstatedir | --localstatedir | --localstatedi | --localstated \
295 | --localstate | --localstat | --localsta | --localst \
296 | --locals | --local | --loca | --loc | --lo)
297 ac_prev
=localstatedir
;;
298 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
299 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
300 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
301 localstatedir
=$ac_optarg ;;
303 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
305 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
309 # Obsolete; use --without-fp.
312 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
316 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
317 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
320 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
321 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
322 | --oldin | --oldi | --old | --ol | --o)
323 ac_prev
=oldincludedir
;;
324 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
325 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
326 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
327 oldincludedir
=$ac_optarg ;;
329 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
331 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
334 -program-prefix | --program-prefix | --program-prefi | --program-pref \
335 | --program-pre | --program-pr | --program-p)
336 ac_prev
=program_prefix
;;
337 -program-prefix=* | --program-prefix=* | --program-prefi=* \
338 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
339 program_prefix
=$ac_optarg ;;
341 -program-suffix | --program-suffix | --program-suffi | --program-suff \
342 | --program-suf | --program-su | --program-s)
343 ac_prev
=program_suffix
;;
344 -program-suffix=* | --program-suffix=* | --program-suffi=* \
345 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
346 program_suffix
=$ac_optarg ;;
348 -program-transform-name | --program-transform-name \
349 | --program-transform-nam | --program-transform-na \
350 | --program-transform-n | --program-transform- \
351 | --program-transform | --program-transfor \
352 | --program-transfo | --program-transf \
353 | --program-trans | --program-tran \
354 | --progr-tra | --program-tr | --program-t)
355 ac_prev
=program_transform_name
;;
356 -program-transform-name=* | --program-transform-name=* \
357 | --program-transform-nam=* | --program-transform-na=* \
358 | --program-transform-n=* | --program-transform-=* \
359 | --program-transform=* | --program-transfor=* \
360 | --program-transfo=* | --program-transf=* \
361 | --program-trans=* | --program-tran=* \
362 | --progr-tra=* | --program-tr=* | --program-t=*)
363 program_transform_name
=$ac_optarg ;;
365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
366 | -silent | --silent | --silen | --sile | --sil)
369 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
371 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
373 sbindir
=$ac_optarg ;;
375 -sharedstatedir | --sharedstatedir | --sharedstatedi \
376 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
377 | --sharedst | --shareds | --shared | --share | --shar \
379 ac_prev
=sharedstatedir
;;
380 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
381 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
382 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
384 sharedstatedir
=$ac_optarg ;;
386 -site | --site | --sit)
388 -site=* | --site=* | --sit=*)
391 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
393 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
396 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
397 | --syscon | --sysco | --sysc | --sys | --sy)
398 ac_prev
=sysconfdir
;;
399 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
400 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
401 sysconfdir
=$ac_optarg ;;
403 -target | --target | --targe | --targ | --tar | --ta | --t)
404 ac_prev
=target_alias
;;
405 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
406 target_alias
=$ac_optarg ;;
408 -v | -verbose | --verbose | --verbos | --verbo | --verb)
411 -version | --version | --versio | --versi | --vers | -V)
415 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
416 # Reject names that are not valid shell variable names.
417 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev
/null
&&
418 { echo "$as_me: error: invalid package name: $ac_package" >&2
419 { (exit 1); exit 1; }; }
420 ac_package
=`echo $ac_package| sed 's/-/_/g'`
422 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
425 eval "with_$ac_package='$ac_optarg'" ;;
427 -without-* | --without-*)
428 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
429 # Reject names that are not valid shell variable names.
430 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev
/null
&&
431 { echo "$as_me: error: invalid package name: $ac_package" >&2
432 { (exit 1); exit 1; }; }
433 ac_package
=`echo $ac_package | sed 's/-/_/g'`
434 eval "with_$ac_package=no" ;;
437 # Obsolete; use --with-x.
440 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
441 | --x-incl | --x-inc | --x-in | --x-i)
442 ac_prev
=x_includes
;;
443 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
444 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
445 x_includes
=$ac_optarg ;;
447 -x-libraries | --x-libraries | --x-librarie | --x-librari \
448 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
449 ac_prev
=x_libraries
;;
450 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
451 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
452 x_libraries
=$ac_optarg ;;
454 -*) { echo "$as_me: error: unrecognized option: $ac_option
455 Try \`$0 --help' for more information." >&2
456 { (exit 1); exit 1; }; }
460 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
461 # Reject names that are not valid shell variable names.
462 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev
/null
&&
463 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
464 { (exit 1); exit 1; }; }
465 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
466 eval "$ac_envvar='$ac_optarg'"
470 # FIXME: should be removed in autoconf 3.0.
471 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
472 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev
/null
&&
473 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
474 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
480 if test -n "$ac_prev"; then
481 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
482 { echo "$as_me: error: missing argument to $ac_option" >&2
483 { (exit 1); exit 1; }; }
486 # Be sure to have absolute paths.
487 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
488 localstatedir libdir includedir oldincludedir infodir mandir \
491 eval ac_val
=$
`echo $ac_var`
493 [\\/$
]* | ?
:[\\/]* ) ;;
495 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
496 { (exit 1); exit 1; }; };;
500 # There might be people who depend on the old broken behavior: `$host'
501 # used to hold the argument of --host etc.
506 # FIXME: should be removed in autoconf 3.0.
507 if test "x$host_alias" != x
; then
508 if test "x$build_alias" = x
; then
509 cross_compiling
=maybe
510 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
511 If a cross compiler is detected then cross compile mode will be used." >&2
512 elif test "x$build_alias" != "x$host_alias"; then
518 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
520 test "$silent" = yes && exec 6>/dev
/null
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted
=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted
=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
539 { (exit 1); exit 1; }; }
541 { echo "$as_me: error: cannot find sources in $srcdir" >&2
542 { (exit 1); exit 1; }; }
545 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
546 ac_env_build_alias_set
=${build_alias+set}
547 ac_env_build_alias_value
=$build_alias
548 ac_cv_env_build_alias_set
=${build_alias+set}
549 ac_cv_env_build_alias_value
=$build_alias
550 ac_env_host_alias_set
=${host_alias+set}
551 ac_env_host_alias_value
=$host_alias
552 ac_cv_env_host_alias_set
=${host_alias+set}
553 ac_cv_env_host_alias_value
=$host_alias
554 ac_env_target_alias_set
=${target_alias+set}
555 ac_env_target_alias_value
=$target_alias
556 ac_cv_env_target_alias_set
=${target_alias+set}
557 ac_cv_env_target_alias_value
=$target_alias
558 ac_env_CC_set
=${CC+set}
560 ac_cv_env_CC_set
=${CC+set}
561 ac_cv_env_CC_value
=$CC
562 ac_env_CFLAGS_set
=${CFLAGS+set}
563 ac_env_CFLAGS_value
=$CFLAGS
564 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
565 ac_cv_env_CFLAGS_value
=$CFLAGS
566 ac_env_LDFLAGS_set
=${LDFLAGS+set}
567 ac_env_LDFLAGS_value
=$LDFLAGS
568 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
569 ac_cv_env_LDFLAGS_value
=$LDFLAGS
570 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
571 ac_env_CPPFLAGS_value
=$CPPFLAGS
572 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
573 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
574 ac_env_CPP_set
=${CPP+set}
575 ac_env_CPP_value
=$CPP
576 ac_cv_env_CPP_set
=${CPP+set}
577 ac_cv_env_CPP_value
=$CPP
580 # Report the --help message.
582 if test "$ac_init_help" = "long"; then
583 # Omit some internal or obsolete options to make the list less imposing.
584 # This message is too long to be a string in the A/UX 3.1 sh.
586 \`configure' configures bison 1.28a to adapt to many kinds of systems.
588 Usage: $0 [OPTION]... [VAR=VALUE]...
590 To assign environment variables (e.g., CC, CFLAGS...), specify them as
591 VAR=VALUE. See below for descriptions of some of the useful variables.
593 Defaults for the options are specified in brackets.
596 -h, --help display this help and exit
597 --help=short display options specific to this package
598 --help=recursive display the short help of all the included packages
599 -V, --version display version information and exit
600 -q, --quiet, --silent do not print \`checking...' messages
601 --cache-file=FILE cache test results in FILE [disabled]
602 -C, --config-cache alias for \`--cache-file=config.cache'
603 -n, --no-create do not create output files
604 --srcdir=DIR find the sources in DIR [configure dir or \`..']
609 Installation directories:
610 --prefix=PREFIX install architecture-independent files in PREFIX
612 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
615 By default, \`make install' will install all the files in
616 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
617 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
618 for instance \`--prefix=\$HOME'.
620 For better control, use the options below.
622 Fine tuning of the installation directories:
623 --bindir=DIR user executables [EPREFIX/bin]
624 --sbindir=DIR system admin executables [EPREFIX/sbin]
625 --libexecdir=DIR program executables [EPREFIX/libexec]
626 --datadir=DIR read-only architecture-independent data [PREFIX/share]
627 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
628 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
629 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
630 --libdir=DIR object code libraries [EPREFIX/lib]
631 --includedir=DIR C header files [PREFIX/include]
632 --oldincludedir=DIR C header files for non-gcc [/usr/include]
633 --infodir=DIR info documentation [PREFIX/info]
634 --mandir=DIR man documentation [PREFIX/man]
640 --program-prefix=PREFIX prepend PREFIX to installed program names
641 --program-suffix=SUFFIX append SUFFIX to installed program names
642 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
645 --build=BUILD configure
for building on BUILD
[guessed
]
646 --host=HOST build programs to run on HOST
[BUILD
]
650 if test -n "$ac_init_help"; then
651 case $ac_init_help in
652 short
| recursive
) echo "Configuration of bison 1.28a:";;
657 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
658 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
659 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
660 --disable-nls do not use Native Language Support
663 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
664 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
665 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
666 --with-included-gettext use the GNU
gettext library included here
668 Some influential environment variables
:
669 CC C compiler
command
670 CFLAGS C compiler flags
671 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
672 nonstandard directory
<lib dir
>
673 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
674 headers
in a nonstandard directory
<include dir
>
677 Use these variables to override the choices made by
`configure' or to help
678 it to find libraries and programs with nonstandard names/locations.
680 Report bugs to <bug-bison@gnu.org>.
684 if test "$ac_init_help" = "recursive"; then
685 # If there are subdirs, report their specific --help.
687 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
689 # A "../" for each directory in /$ac_subdir.
690 ac_dots=`echo $ac_subdir |
691 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
694 .) # No --srcdir option. We are building in place.
695 ac_sub_srcdir=$srcdir ;;
696 [\\/]* | ?:[\\/]* ) # Absolute path.
697 ac_sub_srcdir=$srcdir/$ac_subdir ;;
699 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
702 # Check for guested configure; otherwise get Cygnus style configure.
703 if test -f $ac_sub_srcdir/configure.gnu; then
705 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
706 elif test -f $ac_sub_srcdir/configure; then
708 $SHELL $ac_sub_srcdir/configure --help=recursive
709 elif test -f $ac_sub_srcdir/configure.ac ||
710 test -f $ac_sub_srcdir/configure.in; then
714 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
720 test -n "$ac_init_help" && exit 0
721 if $ac_init_version; then
723 bison configure 1.28a
724 generated by GNU Autoconf 2.50
726 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
727 Free Software Foundation, Inc.
728 This configure script is free software; the Free Software Foundation
729 gives unlimited permission to copy, distribute and modify it.
735 This file contains any messages produced by compilers while
736 running configure, to aid debugging if configure makes a mistake.
738 It was created by bison $as_me 1.28a, which was
739 generated by GNU Autoconf 2.50. Invocation command line was
750 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
751 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
752 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
753 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
754 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
756 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
757 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
759 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
760 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
761 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
762 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
763 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
764 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
765 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
779 # Keep a trace of the command line.
780 # Strip out --no-create and --no-recursion so they do not pile up.
781 # Also quote any args containing shell meta-characters.
787 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
788 | --no-cr | --no-c) ;;
789 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
790 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
791 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
792 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
793 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
795 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
798 # Get rid of the leading space.
801 # When interrupted or exit'd, cleanup temporary files, and complete
802 # config.log. We remove comments because anyway the quotes in there
803 # would cause problems or look ugly.
805 # Save into config.log some information that might help in debugging.
807 echo "## ----------------- ##" >&5
808 echo "## Cache variables. ##" >&5
809 echo "## ----------------- ##" >&5
811 # The following way of writing the cache mishandles newlines in values,
814 case `(ac_space
='"'"' '"'"'; set | grep ac_space
) 2>&1` in
817 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
818 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
822 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
826 sed "/^$/d" confdefs.h >conftest.log
827 if test -s conftest.log; then
829 echo "## ------------ ##" >&5
830 echo "## confdefs.h. ##" >&5
831 echo "## ------------ ##" >&5
836 test "$ac_signal" != 0 &&
837 echo "$as_me: caught signal $ac_signal" >&5
838 echo "$as_me: exit $exit_status" >&5
839 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
842 for ac_signal in 1 2 13 15; do
843 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
848 rm -rf conftest* confdefs.h
849 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
852 # Let the site file select an alternate cache file if it wants to.
853 # Prefer explicitly selected file to automatically selected ones.
854 if test -z "$CONFIG_SITE"; then
855 if test "x$prefix" != xNONE; then
856 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
858 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
861 for ac_site_file in $CONFIG_SITE; do
862 if test -r "$ac_site_file"; then
863 { echo "$as_me:863: loading site script $ac_site_file" >&5
864 echo "$as_me: loading site script $ac_site_file" >&6;}
865 cat "$ac_site_file" >&5
870 if test -r "$cache_file"; then
871 # Some versions of bash will fail to source /dev/null (special
872 # files actually), so we avoid doing that.
873 if test -f "$cache_file"; then
874 { echo "$as_me:874: loading cache $cache_file" >&5
875 echo "$as_me: loading cache $cache_file" >&6;}
877 [\\/]* | ?:[\\/]* ) . $cache_file;;
882 { echo "$as_me:882: creating cache $cache_file" >&5
883 echo "$as_me: creating cache $cache_file" >&6;}
887 # Check that the precious variables saved in the cache have kept the same
889 ac_suggest_removing_cache=false
890 for ac_var in `(set) 2>&1 |
891 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
892 eval ac_old_set=\$ac_cv_env_${ac_var}_set
893 eval ac_new_set=\$ac_env_${ac_var}_set
894 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
895 eval ac_new_val="\$ac_env_${ac_var}_value"
896 case $ac_old_set,$ac_new_set in
898 { echo "$as_me:898: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
899 echo "$as_me: WARNING
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
900 ac_suggest_removing_cache=: ;;
902 { echo "$as_me:902: WARNING: \`$ac_var' was not
set in the previous run
" >&5
903 echo "$as_me: WARNING
: \
`$ac_var' was not set in the previous run" >&2;}
904 ac_suggest_removing_cache=: ;;
907 if test "x$ac_old_val" != "x$ac_new_val"; then
908 { echo "$as_me:908: WARNING: \`$ac_var' has changed since the previous run:" >&5
909 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run
:" >&2;}
910 { echo "$as_me:910: WARNING
: former value
: $ac_old_val" >&5
911 echo "$as_me: WARNING
: former value
: $ac_old_val" >&2;}
912 { echo "$as_me:912: WARNING
: current value
: $ac_new_val" >&5
913 echo "$as_me: WARNING
: current value
: $ac_new_val" >&2;}
914 ac_suggest_removing_cache=:
918 if $ac_suggest_removing_cache; then
919 { echo "$as_me:919: WARNING
: changes
in the environment can compromise the build
" >&5
920 echo "$as_me: WARNING
: changes
in the environment can compromise the build
" >&2;}
921 { echo "$as_me:921: WARNING
: consider removing
$cache_file and starting over
" >&5
922 echo "$as_me: WARNING
: consider removing
$cache_file and starting over
" >&2;}
926 ac_cpp='$CPP $CPPFLAGS'
927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
931 case `echo "testing\c
"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
932 *c*,-n*) ECHO_N= ECHO_C='
934 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
935 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
937 echo "#! $SHELL" >conftest.sh
938 echo "exit 0" >>conftest.sh
940 if { (echo "$as_me:940: PATH=\".;.\"; conftest.sh") >&5
941 (PATH
=".;."; conftest.sh
) 2>&5
943 echo "$as_me:943: \$? = $ac_status" >&5
944 (exit $ac_status); }; then
945 ac_path_separator
=';'
949 PATH_SEPARATOR
="$ac_path_separator"
953 for ac_dir
in config
$srcdir/config
; do
954 if test -f $ac_dir/install-sh; then
956 ac_install_sh
="$ac_aux_dir/install-sh -c"
958 elif test -f $ac_dir/install.sh
; then
960 ac_install_sh
="$ac_aux_dir/install.sh -c"
962 elif test -f $ac_dir/shtool
; then
964 ac_install_sh
="$ac_aux_dir/shtool install -c"
968 if test -z "$ac_aux_dir"; then
969 { { echo "$as_me:969: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
970 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
971 { (exit 1); exit 1; }; }
973 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
974 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
975 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
977 # Find a good install program. We prefer a C program (faster),
978 # so one script is as good as another. But avoid the broken or
979 # incompatible versions:
980 # SysV /etc/install, /usr/sbin/install
981 # SunOS /usr/etc/install
984 # AmigaOS /C/install, which installs bootblocks on floppy discs
985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
988 # ./install, which can be erroneously created by make from ./install.sh.
989 echo "$as_me:989: checking for a BSD compatible install" >&5
990 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
991 if test -z "$INSTALL"; then
992 if test "${ac_cv_path_install+set}" = set; then
993 echo $ECHO_N "(cached) $ECHO_C" >&6
995 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
996 for ac_dir
in $PATH; do
998 # Account for people who put trailing slashes in PATH elements.
1000 / | .
/ | .
// | /cC
/* \
1001 | /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* \
1004 # OSF1 and SCO ODT 3.0 have their own names for install.
1005 # Don't use installbsd from OSF since it installs stuff as root
1007 for ac_prog
in ginstall scoinst
install; do
1008 if $as_executable_p "$ac_dir/$ac_prog"; then
1009 if test $ac_prog = install &&
1010 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
1011 # AIX install. It has an incompatible calling convention.
1013 elif test $ac_prog = install &&
1014 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
1015 # program-specific install script used by HP pwplus--don't use.
1018 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1028 if test "${ac_cv_path_install+set}" = set; then
1029 INSTALL
=$ac_cv_path_install
1031 # As a last resort, use the slow shell script. We don't cache a
1032 # path for INSTALL within a source directory, because that will
1033 # break other packages using the cache if that directory is
1034 # removed, or if the path is relative.
1035 INSTALL
=$ac_install_sh
1038 echo "$as_me:1038: result: $INSTALL" >&5
1039 echo "${ECHO_T}$INSTALL" >&6
1041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1042 # It thinks the first close brace ends the variable substitution.
1043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1047 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1049 echo "$as_me:1049: checking whether build environment is sane" >&5
1050 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1053 echo timestamp
> conftestfile
1054 # Do `set' in a subshell so we don't clobber the current shell's
1055 # arguments. Must try -L first in case configure is actually a
1056 # symlink; some systems play weird games with the mod time of symlinks
1057 # (eg FreeBSD returns the mod time of the symlink's containing
1060 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1061 if test "$*" = "X"; then
1063 set X
`ls -t $srcdir/configure conftestfile`
1065 if test "$*" != "X $srcdir/configure conftestfile" \
1066 && test "$*" != "X conftestfile $srcdir/configure"; then
1068 # If neither matched, then we have a broken ls. This can happen
1069 # if, for instance, CONFIG_SHELL is bash and it inherits a
1070 # broken ls alias from the environment. This has actually
1071 # happened. Such a system could not be considered "sane".
1072 { { echo "$as_me:1072: error: ls -t appears to fail. Make sure there is not a broken
1073 alias in your environment" >&5
1074 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1075 alias in your environment" >&2;}
1076 { (exit 1); exit 1; }; }
1079 test "$2" = conftestfile
1085 { { echo "$as_me:1085: error: newly created file is older than distributed files!
1086 Check your system clock" >&5
1087 echo "$as_me: error: newly created file is older than distributed files!
1088 Check your system clock" >&2;}
1089 { (exit 1); exit 1; }; }
1092 echo "$as_me:1092: result: yes" >&5
1093 echo "${ECHO_T}yes" >&6
1094 if test "$program_transform_name" = s
,x
,x
,; then
1095 program_transform_name
=
1097 # Double any \ or $. echo might interpret backslashes.
1098 cat <<\EOF
>conftest.
sed
1099 s
,\\,\\\\,g
; s
,\$
,$$
,g
1101 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1104 test "$program_prefix" != NONE
&&
1105 program_transform_name
="s,^,${program_prefix},;$program_transform_name"
1106 # Use a double $ so make ignores it.
1107 test "$program_suffix" != NONE
&&
1108 program_transform_name
="s,\$\$,${program_suffix},;$program_transform_name"
1110 # sed with no file args requires a program.
1111 test -z "$program_transform_name" && program_transform_name
="s,x,x,"
1113 echo "$as_me:1113: checking whether ${MAKE-make} sets \${MAKE}" >&5
1114 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1115 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1116 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1117 echo $ECHO_N "(cached) $ECHO_C" >&6
1119 cat >conftest.
make <<\EOF
1121 @
echo 'ac_maketemp="${MAKE}"'
1123 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1124 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1125 if test -n "$ac_maketemp"; then
1126 eval ac_cv_prog_make_
${ac_make}_set
=yes
1128 eval ac_cv_prog_make_
${ac_make}_set
=no
1132 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1133 echo "$as_me:1133: result: yes" >&5
1134 echo "${ECHO_T}yes" >&6
1137 echo "$as_me:1137: result: no" >&5
1138 echo "${ECHO_T}no" >&6
1139 SET_MAKE
="MAKE=${MAKE-make}"
1146 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1147 { { echo "$as_me:1147: error: source directory already configured; run \"make distclean\" there first" >&5
1148 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1149 { (exit 1); exit 1; }; }
1152 cat >>confdefs.h
<<EOF
1153 #define PACKAGE "$PACKAGE"
1156 cat >>confdefs.h
<<EOF
1157 #define VERSION "$VERSION"
1160 missing_dir
=`cd $ac_aux_dir && pwd`
1161 echo "$as_me:1161: checking for working aclocal" >&5
1162 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1163 # Run test in a subshell; some versions of sh will print an error if
1164 # an executable is not found, even if stderr is redirected.
1165 # Redirect stdin to placate older versions of autoconf. Sigh.
1166 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1168 echo "$as_me:1168: result: found" >&5
1169 echo "${ECHO_T}found" >&6
1171 ACLOCAL
="$missing_dir/missing aclocal"
1172 echo "$as_me:1172: result: missing" >&5
1173 echo "${ECHO_T}missing" >&6
1176 echo "$as_me:1176: checking for working autoconf" >&5
1177 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1178 # Run test in a subshell; some versions of sh will print an error if
1179 # an executable is not found, even if stderr is redirected.
1180 # Redirect stdin to placate older versions of autoconf. Sigh.
1181 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1183 echo "$as_me:1183: result: found" >&5
1184 echo "${ECHO_T}found" >&6
1186 AUTOCONF
="$missing_dir/missing autoconf"
1187 echo "$as_me:1187: result: missing" >&5
1188 echo "${ECHO_T}missing" >&6
1191 echo "$as_me:1191: checking for working automake" >&5
1192 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1193 # Run test in a subshell; some versions of sh will print an error if
1194 # an executable is not found, even if stderr is redirected.
1195 # Redirect stdin to placate older versions of autoconf. Sigh.
1196 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1198 echo "$as_me:1198: result: found" >&5
1199 echo "${ECHO_T}found" >&6
1201 AUTOMAKE
="$missing_dir/missing automake"
1202 echo "$as_me:1202: result: missing" >&5
1203 echo "${ECHO_T}missing" >&6
1206 echo "$as_me:1206: checking for working autoheader" >&5
1207 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1208 # Run test in a subshell; some versions of sh will print an error if
1209 # an executable is not found, even if stderr is redirected.
1210 # Redirect stdin to placate older versions of autoconf. Sigh.
1211 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1212 AUTOHEADER
=autoheader
1213 echo "$as_me:1213: result: found" >&5
1214 echo "${ECHO_T}found" >&6
1216 AUTOHEADER
="$missing_dir/missing autoheader"
1217 echo "$as_me:1217: result: missing" >&5
1218 echo "${ECHO_T}missing" >&6
1221 echo "$as_me:1221: checking for working makeinfo" >&5
1222 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1223 # Run test in a subshell; some versions of sh will print an error if
1224 # an executable is not found, even if stderr is redirected.
1225 # Redirect stdin to placate older versions of autoconf. Sigh.
1226 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1228 echo "$as_me:1228: result: found" >&5
1229 echo "${ECHO_T}found" >&6
1231 MAKEINFO
="$missing_dir/missing makeinfo"
1232 echo "$as_me:1232: result: missing" >&5
1233 echo "${ECHO_T}missing" >&6
1236 ac_config_headers
="$ac_config_headers config.h:config.hin"
1238 ac_config_commands
="$ac_config_commands default-1"
1240 # Initialize the test suite.
1243 # Try to be compatible with both Autoconf 2.13 and 2.50.
1244 if test -z "$ECHO_C$ECHO_N$ECHO_T"; then
1251 # Checks for programs.
1253 ac_cpp
='$CPP $CPPFLAGS'
1254 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1257 if test -n "$ac_tool_prefix"; then
1258 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1259 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1260 echo "$as_me:1260: checking for $ac_word" >&5
1261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1262 if test "${ac_cv_prog_CC+set}" = set; then
1263 echo $ECHO_N "(cached) $ECHO_C" >&6
1265 if test -n "$CC"; then
1266 ac_cv_prog_CC
="$CC" # Let the user override the test.
1268 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1270 for ac_dir
in $ac_dummy; do
1272 test -z "$ac_dir" && ac_dir
=.
1273 $as_executable_p "$ac_dir/$ac_word" || continue
1274 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1275 echo "$as_me:1275: found $ac_dir/$ac_word" >&5
1282 if test -n "$CC"; then
1283 echo "$as_me:1283: result: $CC" >&5
1284 echo "${ECHO_T}$CC" >&6
1286 echo "$as_me:1286: result: no" >&5
1287 echo "${ECHO_T}no" >&6
1291 if test -z "$ac_cv_prog_CC"; then
1293 # Extract the first word of "gcc", so it can be a program name with args.
1294 set dummy gcc
; ac_word
=$2
1295 echo "$as_me:1295: checking for $ac_word" >&5
1296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 if test -n "$ac_ct_CC"; then
1301 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1303 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1305 for ac_dir
in $ac_dummy; do
1307 test -z "$ac_dir" && ac_dir
=.
1308 $as_executable_p "$ac_dir/$ac_word" || continue
1309 ac_cv_prog_ac_ct_CC
="gcc"
1310 echo "$as_me:1310: found $ac_dir/$ac_word" >&5
1316 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1317 if test -n "$ac_ct_CC"; then
1318 echo "$as_me:1318: result: $ac_ct_CC" >&5
1319 echo "${ECHO_T}$ac_ct_CC" >&6
1321 echo "$as_me:1321: result: no" >&5
1322 echo "${ECHO_T}no" >&6
1330 if test -z "$CC"; then
1331 if test -n "$ac_tool_prefix"; then
1332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1333 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1334 echo "$as_me:1334: checking for $ac_word" >&5
1335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1336 if test "${ac_cv_prog_CC+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1339 if test -n "$CC"; then
1340 ac_cv_prog_CC
="$CC" # Let the user override the test.
1342 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1344 for ac_dir
in $ac_dummy; do
1346 test -z "$ac_dir" && ac_dir
=.
1347 $as_executable_p "$ac_dir/$ac_word" || continue
1348 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1349 echo "$as_me:1349: found $ac_dir/$ac_word" >&5
1356 if test -n "$CC"; then
1357 echo "$as_me:1357: result: $CC" >&5
1358 echo "${ECHO_T}$CC" >&6
1360 echo "$as_me:1360: result: no" >&5
1361 echo "${ECHO_T}no" >&6
1365 if test -z "$ac_cv_prog_CC"; then
1367 # Extract the first word of "cc", so it can be a program name with args.
1368 set dummy cc
; ac_word
=$2
1369 echo "$as_me:1369: checking for $ac_word" >&5
1370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 if test -n "$ac_ct_CC"; then
1375 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1377 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1379 for ac_dir
in $ac_dummy; do
1381 test -z "$ac_dir" && ac_dir
=.
1382 $as_executable_p "$ac_dir/$ac_word" || continue
1383 ac_cv_prog_ac_ct_CC
="cc"
1384 echo "$as_me:1384: found $ac_dir/$ac_word" >&5
1390 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1391 if test -n "$ac_ct_CC"; then
1392 echo "$as_me:1392: result: $ac_ct_CC" >&5
1393 echo "${ECHO_T}$ac_ct_CC" >&6
1395 echo "$as_me:1395: result: no" >&5
1396 echo "${ECHO_T}no" >&6
1405 if test -z "$CC"; then
1406 # Extract the first word of "cc", so it can be a program name with args.
1407 set dummy cc
; ac_word
=$2
1408 echo "$as_me:1408: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_prog_CC+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 if test -n "$CC"; then
1414 ac_cv_prog_CC
="$CC" # Let the user override the test.
1417 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1419 for ac_dir
in $ac_dummy; do
1421 test -z "$ac_dir" && ac_dir
=.
1422 $as_executable_p "$ac_dir/$ac_word" || continue
1423 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1424 ac_prog_rejected
=yes
1428 echo "$as_me:1428: found $ac_dir/$ac_word" >&5
1432 if test $ac_prog_rejected = yes; then
1433 # We found a bogon in the path, so make sure we never use it.
1434 set dummy
$ac_cv_prog_CC
1436 if test $# != 0; then
1437 # We chose a different compiler from the bogus one.
1438 # However, it has the same basename, so the bogon will be chosen
1439 # first if we set CC to just the basename; use the full file name.
1441 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
1449 if test -n "$CC"; then
1450 echo "$as_me:1450: result: $CC" >&5
1451 echo "${ECHO_T}$CC" >&6
1453 echo "$as_me:1453: result: no" >&5
1454 echo "${ECHO_T}no" >&6
1458 if test -z "$CC"; then
1459 if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1463 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1464 echo "$as_me:1464: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC
="$CC" # Let the user override the test.
1472 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1474 for ac_dir
in $ac_dummy; do
1476 test -z "$ac_dir" && ac_dir
=.
1477 $as_executable_p "$ac_dir/$ac_word" || continue
1478 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1479 echo "$as_me:1479: found $ac_dir/$ac_word" >&5
1486 if test -n "$CC"; then
1487 echo "$as_me:1487: result: $CC" >&5
1488 echo "${ECHO_T}$CC" >&6
1490 echo "$as_me:1490: result: no" >&5
1491 echo "${ECHO_T}no" >&6
1494 test -n "$CC" && break
1497 if test -z "$CC"; then
1501 # Extract the first word of "$ac_prog", so it can be a program name with args.
1502 set dummy
$ac_prog; ac_word
=$2
1503 echo "$as_me:1503: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1511 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1513 for ac_dir
in $ac_dummy; do
1515 test -z "$ac_dir" && ac_dir
=.
1516 $as_executable_p "$ac_dir/$ac_word" || continue
1517 ac_cv_prog_ac_ct_CC
="$ac_prog"
1518 echo "$as_me:1518: found $ac_dir/$ac_word" >&5
1524 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1525 if test -n "$ac_ct_CC"; then
1526 echo "$as_me:1526: result: $ac_ct_CC" >&5
1527 echo "${ECHO_T}$ac_ct_CC" >&6
1529 echo "$as_me:1529: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1533 test -n "$ac_ct_CC" && break
1541 test -z "$CC" && { { echo "$as_me:1541: error: no acceptable cc found in \$PATH" >&5
1542 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1543 { (exit 1); exit 1; }; }
1545 cat >conftest.
$ac_ext <<_ACEOF
1546 #line 1546 "configure"
1547 #include "confdefs.h"
1557 ac_clean_files_save
=$ac_clean_files
1558 ac_clean_files
="$ac_clean_files a.out a.exe"
1559 # Try to create an executable without -o first, disregard a.out.
1560 # It will help us diagnose broken compiler, and finding out an intuition
1562 echo "$as_me:1562: checking for C compiler default output" >&5
1563 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1564 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1565 if { (eval echo "$as_me:1565: \"$ac_link_default\"") >&5
1566 (eval $ac_link_default) 2>&5
1568 echo "$as_me:1568: \$? = $ac_status" >&5
1569 (exit $ac_status); }; then
1570 for ac_file
in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1572 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1573 a.out
) # We found the default executable, but exeext='' is most
1576 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1583 echo "$as_me: failed program was:" >&5
1584 cat conftest.
$ac_ext >&5
1585 { { echo "$as_me:1585: error: C compiler cannot create executables" >&5
1586 echo "$as_me: error: C compiler cannot create executables" >&2;}
1587 { (exit 77); exit 77; }; }
1590 ac_exeext
=$ac_cv_exeext
1591 echo "$as_me:1591: result: $ac_file" >&5
1592 echo "${ECHO_T}$ac_file" >&6
1594 # Check the compiler produces executables we can run. If not, either
1595 # the compiler is broken, or we cross compile.
1596 echo "$as_me:1596: checking whether the C compiler works" >&5
1597 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1598 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1599 # If not cross compiling, check that we can run a simple program.
1600 if test "$cross_compiling" != yes; then
1601 if { ac_try
='./$ac_file'
1602 { (eval echo "$as_me:1602: \"$ac_try\"") >&5
1605 echo "$as_me:1605: \$? = $ac_status" >&5
1606 (exit $ac_status); }; }; then
1609 if test "$cross_compiling" = maybe
; then
1612 { { echo "$as_me:1612: error: cannot run C compiled programs.
1613 If you meant to cross compile, use \`--host'." >&5
1614 echo "$as_me: error: cannot run C compiled programs.
1615 If you meant to cross compile, use \`--host'." >&2;}
1616 { (exit 1); exit 1; }; }
1620 echo "$as_me:1620: result: yes" >&5
1621 echo "${ECHO_T}yes" >&6
1623 rm -f a.out a.exe conftest
$ac_cv_exeext
1624 ac_clean_files
=$ac_clean_files_save
1625 # Check the compiler produces executables we can run. If not, either
1626 # the compiler is broken, or we cross compile.
1627 echo "$as_me:1627: checking whether we are cross compiling" >&5
1628 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1629 echo "$as_me:1629: result: $cross_compiling" >&5
1630 echo "${ECHO_T}$cross_compiling" >&6
1632 echo "$as_me:1632: checking for executable suffix" >&5
1633 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1634 if { (eval echo "$as_me:1634: \"$ac_link\"") >&5
1635 (eval $ac_link) 2>&5
1637 echo "$as_me:1637: \$? = $ac_status" >&5
1638 (exit $ac_status); }; then
1639 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1640 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1641 # work properly (i.e., refer to `conftest.exe'), while it won't with
1643 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1645 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1646 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1653 { { echo "$as_me:1653: error: cannot compute EXEEXT: cannot compile and link" >&5
1654 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1655 { (exit 1); exit 1; }; }
1658 rm -f conftest
$ac_cv_exeext
1659 echo "$as_me:1659: result: $ac_cv_exeext" >&5
1660 echo "${ECHO_T}$ac_cv_exeext" >&6
1662 rm -f conftest.
$ac_ext
1663 EXEEXT
=$ac_cv_exeext
1665 echo "$as_me:1665: checking for object suffix" >&5
1666 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1667 if test "${ac_cv_objext+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 cat >conftest.
$ac_ext <<_ACEOF
1671 #line 1671 "configure"
1672 #include "confdefs.h"
1682 rm -f conftest.o conftest.obj
1683 if { (eval echo "$as_me:1683: \"$ac_compile\"") >&5
1684 (eval $ac_compile) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); }; then
1688 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1690 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1691 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1696 echo "$as_me: failed program was:" >&5
1697 cat conftest.
$ac_ext >&5
1698 { { echo "$as_me:1698: error: cannot compute OBJEXT: cannot compile" >&5
1699 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1700 { (exit 1); exit 1; }; }
1703 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1705 echo "$as_me:1705: result: $ac_cv_objext" >&5
1706 echo "${ECHO_T}$ac_cv_objext" >&6
1707 OBJEXT
=$ac_cv_objext
1709 echo "$as_me:1709: checking whether we are using the GNU C compiler" >&5
1710 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1711 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 cat >conftest.
$ac_ext <<_ACEOF
1715 #line 1715 "configure"
1716 #include "confdefs.h"
1729 rm -f conftest.
$ac_objext
1730 if { (eval echo "$as_me:1730: \"$ac_compile\"") >&5
1731 (eval $ac_compile) 2>&5
1733 echo "$as_me:1733: \$? = $ac_status" >&5
1734 (exit $ac_status); } &&
1735 { ac_try
='test -s conftest.$ac_objext'
1736 { (eval echo "$as_me:1736: \"$ac_try\"") >&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); }; }; then
1743 echo "$as_me: failed program was:" >&5
1744 cat conftest.
$ac_ext >&5
1747 rm -f conftest.
$ac_objext conftest.
$ac_ext
1748 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1751 echo "$as_me:1751: result: $ac_cv_c_compiler_gnu" >&5
1752 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1753 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1754 ac_test_CFLAGS
=${CFLAGS+set}
1755 ac_save_CFLAGS
=$CFLAGS
1757 echo "$as_me:1757: checking whether $CC accepts -g" >&5
1758 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1759 if test "${ac_cv_prog_cc_g+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 cat >conftest.
$ac_ext <<_ACEOF
1763 #line 1763 "configure"
1764 #include "confdefs.h"
1774 rm -f conftest.
$ac_objext
1775 if { (eval echo "$as_me:1775: \"$ac_compile\"") >&5
1776 (eval $ac_compile) 2>&5
1778 echo "$as_me:1778: \$? = $ac_status" >&5
1779 (exit $ac_status); } &&
1780 { ac_try
='test -s conftest.$ac_objext'
1781 { (eval echo "$as_me:1781: \"$ac_try\"") >&5
1784 echo "$as_me:1784: \$? = $ac_status" >&5
1785 (exit $ac_status); }; }; then
1788 echo "$as_me: failed program was:" >&5
1789 cat conftest.
$ac_ext >&5
1792 rm -f conftest.
$ac_objext conftest.
$ac_ext
1794 echo "$as_me:1794: result: $ac_cv_prog_cc_g" >&5
1795 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1796 if test "$ac_test_CFLAGS" = set; then
1797 CFLAGS
=$ac_save_CFLAGS
1798 elif test $ac_cv_prog_cc_g = yes; then
1799 if test "$GCC" = yes; then
1805 if test "$GCC" = yes; then
1811 # Some people use a C++ compiler to compile C. Since we use `exit',
1812 # in C++ we need to declare it. In case someone uses the same compiler
1813 # for both compiling C and C++ we need to have the C++ compiler decide
1814 # the declaration of exit, since it's the most demanding environment.
1815 cat >conftest.
$ac_ext <<_ACEOF
1820 rm -f conftest.
$ac_objext
1821 if { (eval echo "$as_me:1821: \"$ac_compile\"") >&5
1822 (eval $ac_compile) 2>&5
1824 echo "$as_me:1824: \$? = $ac_status" >&5
1825 (exit $ac_status); } &&
1826 { ac_try
='test -s conftest.$ac_objext'
1827 { (eval echo "$as_me:1827: \"$ac_try\"") >&5
1830 echo "$as_me:1830: \$? = $ac_status" >&5
1831 (exit $ac_status); }; }; then
1832 for ac_declaration
in \
1834 '#include <stdlib.h>' \
1835 'extern "C" void std::exit (int) throw (); using std::exit;' \
1836 'extern "C" void std::exit (int); using std::exit;' \
1837 'extern "C" void exit (int) throw ();' \
1838 'extern "C" void exit (int);' \
1841 cat >conftest.
$ac_ext <<_ACEOF
1842 #line 1842 "configure"
1843 #include "confdefs.h"
1854 rm -f conftest.
$ac_objext
1855 if { (eval echo "$as_me:1855: \"$ac_compile\"") >&5
1856 (eval $ac_compile) 2>&5
1858 echo "$as_me:1858: \$? = $ac_status" >&5
1859 (exit $ac_status); } &&
1860 { ac_try
='test -s conftest.$ac_objext'
1861 { (eval echo "$as_me:1861: \"$ac_try\"") >&5
1864 echo "$as_me:1864: \$? = $ac_status" >&5
1865 (exit $ac_status); }; }; then
1868 echo "$as_me: failed program was:" >&5
1869 cat conftest.
$ac_ext >&5
1872 rm -f conftest.
$ac_objext conftest.
$ac_ext
1873 cat >conftest.
$ac_ext <<_ACEOF
1874 #line 1874 "configure"
1875 #include "confdefs.h"
1885 rm -f conftest.
$ac_objext
1886 if { (eval echo "$as_me:1886: \"$ac_compile\"") >&5
1887 (eval $ac_compile) 2>&5
1889 echo "$as_me:1889: \$? = $ac_status" >&5
1890 (exit $ac_status); } &&
1891 { ac_try
='test -s conftest.$ac_objext'
1892 { (eval echo "$as_me:1892: \"$ac_try\"") >&5
1895 echo "$as_me:1895: \$? = $ac_status" >&5
1896 (exit $ac_status); }; }; then
1899 echo "$as_me: failed program was:" >&5
1900 cat conftest.
$ac_ext >&5
1902 rm -f conftest.
$ac_objext conftest.
$ac_ext
1904 echo '#ifdef __cplusplus' >>confdefs.h
1905 echo $ac_declaration >>confdefs.h
1906 echo '#endif' >>confdefs.h
1909 echo "$as_me: failed program was:" >&5
1910 cat conftest.
$ac_ext >&5
1912 rm -f conftest.
$ac_objext conftest.
$ac_ext
1914 ac_cpp
='$CPP $CPPFLAGS'
1915 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1920 ac_cpp
='$CPP $CPPFLAGS'
1921 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1924 echo "$as_me:1924: checking how to run the C preprocessor" >&5
1925 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1926 # On Suns, sometimes $CPP names a directory.
1927 if test -n "$CPP" && test -d "$CPP"; then
1930 if test -z "$CPP"; then
1931 if test "${ac_cv_prog_CPP+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 # Double quotes because CPP needs to be expanded
1935 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1937 # break 2 since there is a loop in there.
1939 for ac_c_preproc_warn_flag
in '' yes
1941 # Use a header file that comes with gcc, so configuring glibc
1942 # with a fresh cross-compiler works.
1943 # On the NeXT, cc -E runs the code through the compiler's parser,
1944 # not just through cpp. "Syntax error" is here to catch this case.
1945 cat >conftest.
$ac_ext <<_ACEOF
1946 #line 1946 "configure"
1947 #include "confdefs.h"
1951 if { (eval echo "$as_me:1951: \"$ac_cpp conftest.$ac_ext\"") >&5
1952 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1954 egrep -v '^ *\+' conftest.er1
>conftest.err
1956 cat conftest.err
>&5
1957 echo "$as_me:1957: \$? = $ac_status" >&5
1958 (exit $ac_status); } >/dev
/null
; then
1959 if test -s conftest.err
; then
1960 ac_cpp_err
=$ac_c_preproc_warn_flag
1967 if test -z "$ac_cpp_err"; then
1970 echo "$as_me: failed program was:" >&5
1971 cat conftest.
$ac_ext >&5
1972 # Broken: fails on valid input.
1975 rm -f conftest.err conftest.
$ac_ext
1977 # OK, works on sane cases. Now check whether non-existent headers
1978 # can be detected and how.
1979 cat >conftest.
$ac_ext <<_ACEOF
1980 #line 1980 "configure"
1981 #include "confdefs.h"
1982 #include <ac_nonexistent.h>
1984 if { (eval echo "$as_me:1984: \"$ac_cpp conftest.$ac_ext\"") >&5
1985 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1987 egrep -v '^ *\+' conftest.er1
>conftest.err
1989 cat conftest.err
>&5
1990 echo "$as_me:1990: \$? = $ac_status" >&5
1991 (exit $ac_status); } >/dev
/null
; then
1992 if test -s conftest.err
; then
1993 ac_cpp_err
=$ac_c_preproc_warn_flag
2000 if test -z "$ac_cpp_err"; then
2001 # Broken: success on invalid input.
2004 echo "$as_me: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2006 # Passes both tests.
2010 rm -f conftest.err conftest.
$ac_ext
2013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2014 rm -f conftest.err conftest.
$ac_ext
2015 if $ac_preproc_ok; then
2027 echo "$as_me:2027: result: $CPP" >&5
2028 echo "${ECHO_T}$CPP" >&6
2030 for ac_c_preproc_warn_flag
in '' yes
2032 # Use a header file that comes with gcc, so configuring glibc
2033 # with a fresh cross-compiler works.
2034 # On the NeXT, cc -E runs the code through the compiler's parser,
2035 # not just through cpp. "Syntax error" is here to catch this case.
2036 cat >conftest.
$ac_ext <<_ACEOF
2037 #line 2037 "configure"
2038 #include "confdefs.h"
2042 if { (eval echo "$as_me:2042: \"$ac_cpp conftest.$ac_ext\"") >&5
2043 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2045 egrep -v '^ *\+' conftest.er1
>conftest.err
2047 cat conftest.err
>&5
2048 echo "$as_me:2048: \$? = $ac_status" >&5
2049 (exit $ac_status); } >/dev
/null
; then
2050 if test -s conftest.err
; then
2051 ac_cpp_err
=$ac_c_preproc_warn_flag
2058 if test -z "$ac_cpp_err"; then
2061 echo "$as_me: failed program was:" >&5
2062 cat conftest.
$ac_ext >&5
2063 # Broken: fails on valid input.
2066 rm -f conftest.err conftest.
$ac_ext
2068 # OK, works on sane cases. Now check whether non-existent headers
2069 # can be detected and how.
2070 cat >conftest.
$ac_ext <<_ACEOF
2071 #line 2071 "configure"
2072 #include "confdefs.h"
2073 #include <ac_nonexistent.h>
2075 if { (eval echo "$as_me:2075: \"$ac_cpp conftest.$ac_ext\"") >&5
2076 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2078 egrep -v '^ *\+' conftest.er1
>conftest.err
2080 cat conftest.err
>&5
2081 echo "$as_me:2081: \$? = $ac_status" >&5
2082 (exit $ac_status); } >/dev
/null
; then
2083 if test -s conftest.err
; then
2084 ac_cpp_err
=$ac_c_preproc_warn_flag
2091 if test -z "$ac_cpp_err"; then
2092 # Broken: success on invalid input.
2095 echo "$as_me: failed program was:" >&5
2096 cat conftest.
$ac_ext >&5
2097 # Passes both tests.
2101 rm -f conftest.err conftest.
$ac_ext
2104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2105 rm -f conftest.err conftest.
$ac_ext
2106 if $ac_preproc_ok; then
2109 { { echo "$as_me:2109: error: C preprocessor \"$CPP\" fails sanity check" >&5
2110 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2111 { (exit 1); exit 1; }; }
2115 ac_cpp
='$CPP $CPPFLAGS'
2116 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2117 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2118 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2120 echo "$as_me:2120: checking for minix/config.h" >&5
2121 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2122 if test "${ac_cv_header_minix_config_h+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 cat >conftest.
$ac_ext <<_ACEOF
2126 #line 2126 "configure"
2127 #include "confdefs.h"
2128 #include <minix/config.h>
2130 if { (eval echo "$as_me:2130: \"$ac_cpp conftest.$ac_ext\"") >&5
2131 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2133 egrep -v '^ *\+' conftest.er1
>conftest.err
2135 cat conftest.err
>&5
2136 echo "$as_me:2136: \$? = $ac_status" >&5
2137 (exit $ac_status); } >/dev
/null
; then
2138 if test -s conftest.err
; then
2139 ac_cpp_err
=$ac_c_preproc_warn_flag
2146 if test -z "$ac_cpp_err"; then
2147 ac_cv_header_minix_config_h
=yes
2149 echo "$as_me: failed program was:" >&5
2150 cat conftest.
$ac_ext >&5
2151 ac_cv_header_minix_config_h
=no
2153 rm -f conftest.err conftest.
$ac_ext
2155 echo "$as_me:2155: result: $ac_cv_header_minix_config_h" >&5
2156 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2157 if test $ac_cv_header_minix_config_h = yes; then
2163 if test "$MINIX" = yes; then
2165 cat >>confdefs.h
<<\EOF
2166 #define _POSIX_SOURCE 1
2169 cat >>confdefs.h
<<\EOF
2170 #define _POSIX_1_SOURCE 2
2173 cat >>confdefs.h
<<\EOF
2179 echo "$as_me:2179: checking for strerror in -lcposix" >&5
2180 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2181 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 ac_check_lib_save_LIBS
=$LIBS
2185 LIBS
="-lcposix $LIBS"
2186 cat >conftest.
$ac_ext <<_ACEOF
2187 #line 2187 "configure"
2188 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2194 /* We use char because int might match the return type of a gcc2
2195 builtin and then its argument prototype would still apply. */
2205 rm -f conftest.
$ac_objext conftest
$ac_exeext
2206 if { (eval echo "$as_me:2206: \"$ac_link\"") >&5
2207 (eval $ac_link) 2>&5
2209 echo "$as_me:2209: \$? = $ac_status" >&5
2210 (exit $ac_status); } &&
2211 { ac_try
='test -s conftest$ac_exeext'
2212 { (eval echo "$as_me:2212: \"$ac_try\"") >&5
2215 echo "$as_me:2215: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 ac_cv_lib_cposix_strerror
=yes
2219 echo "$as_me: failed program was:" >&5
2220 cat conftest.
$ac_ext >&5
2221 ac_cv_lib_cposix_strerror
=no
2223 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2224 LIBS
=$ac_check_lib_save_LIBS
2226 echo "$as_me:2226: result: $ac_cv_lib_cposix_strerror" >&5
2227 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2228 if test $ac_cv_lib_cposix_strerror = yes; then
2229 LIBS
="$LIBS -lcposix"
2232 echo "$as_me:2232: checking for ${CC-cc} option to accept ANSI C" >&5
2233 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2234 if test "${am_cv_prog_cc_stdc+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 am_cv_prog_cc_stdc
=no
2239 # Don't try gcc -ansi; that turns off useful extensions and
2240 # breaks some systems' header files.
2241 # AIX -qlanglvl=ansi
2242 # Ultrix and OSF/1 -std1
2243 # HP-UX -Aa -D_HPUX_SOURCE
2244 # SVR4 -Xc -D__EXTENSIONS__
2245 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2247 CC
="$ac_save_CC $ac_arg"
2248 cat >conftest.
$ac_ext <<_ACEOF
2249 #line 2249 "configure"
2250 #include "confdefs.h"
2253 #include <sys/types.h>
2254 #include <sys/stat.h>
2255 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2256 struct buf { int x; };
2257 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2258 static char *e (p, i)
2264 static char *f (char * (*g) (char **, int), char **p, ...)
2269 s = g (p, va_arg (v,int));
2273 int test (int i, double x);
2274 struct s1 {int (*f) (int a);};
2275 struct s2 {int (*f) (double a);};
2276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2284 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2290 rm -f conftest.
$ac_objext
2291 if { (eval echo "$as_me:2291: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>&5
2294 echo "$as_me:2294: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try
='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:2297: \"$ac_try\"") >&5
2300 echo "$as_me:2300: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2302 am_cv_prog_cc_stdc
="$ac_arg"; break
2304 echo "$as_me: failed program was:" >&5
2305 cat conftest.
$ac_ext >&5
2307 rm -f conftest.
$ac_objext conftest.
$ac_ext
2313 if test -z "$am_cv_prog_cc_stdc"; then
2314 echo "$as_me:2314: result: none needed" >&5
2315 echo "${ECHO_T}none needed" >&6
2317 echo "$as_me:2317: result: $am_cv_prog_cc_stdc" >&5
2318 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2320 case "x$am_cv_prog_cc_stdc" in
2322 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2325 if test -n "$ac_tool_prefix"; then
2326 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2327 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2328 echo "$as_me:2328: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_RANLIB+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 if test -n "$RANLIB"; then
2334 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2336 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2338 for ac_dir
in $ac_dummy; do
2340 test -z "$ac_dir" && ac_dir
=.
2341 $as_executable_p "$ac_dir/$ac_word" || continue
2342 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2343 echo "$as_me:2343: found $ac_dir/$ac_word" >&5
2349 RANLIB
=$ac_cv_prog_RANLIB
2350 if test -n "$RANLIB"; then
2351 echo "$as_me:2351: result: $RANLIB" >&5
2352 echo "${ECHO_T}$RANLIB" >&6
2354 echo "$as_me:2354: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2359 if test -z "$ac_cv_prog_RANLIB"; then
2360 ac_ct_RANLIB
=$RANLIB
2361 # Extract the first word of "ranlib", so it can be a program name with args.
2362 set dummy ranlib
; ac_word
=$2
2363 echo "$as_me:2363: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 if test -n "$ac_ct_RANLIB"; then
2369 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2371 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2373 for ac_dir
in $ac_dummy; do
2375 test -z "$ac_dir" && ac_dir
=.
2376 $as_executable_p "$ac_dir/$ac_word" || continue
2377 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2378 echo "$as_me:2378: found $ac_dir/$ac_word" >&5
2382 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2385 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2386 if test -n "$ac_ct_RANLIB"; then
2387 echo "$as_me:2387: result: $ac_ct_RANLIB" >&5
2388 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2390 echo "$as_me:2390: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2394 RANLIB
=$ac_ct_RANLIB
2396 RANLIB
="$ac_cv_prog_RANLIB"
2399 # GNU M4 is needed to build the testsuite.
2400 for ac_prog
in gm4 gnum4
m4
2402 # Extract the first word of "$ac_prog", so it can be a program name with args.
2403 set dummy
$ac_prog; ac_word
=$2
2404 echo "$as_me:2404: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2406 if test "${ac_cv_path_M4+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 ac_cv_path_M4
="$M4" # Let the user override the test with a path.
2414 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2416 for ac_dir
in $ac_dummy; do
2418 test -z "$ac_dir" && ac_dir
=.
2419 if $as_executable_p "$ac_dir/$ac_word"; then
2420 ac_cv_path_M4
="$ac_dir/$ac_word"
2421 echo "$as_me:2421: found $ac_dir/$ac_word" >&5
2431 if test -n "$M4"; then
2432 echo "$as_me:2432: result: $M4" >&5
2433 echo "${ECHO_T}$M4" >&6
2435 echo "$as_me:2435: result: no" >&5
2436 echo "${ECHO_T}no" >&6
2439 test -n "$M4" && break
2441 test -n "$M4" || M4
="m4"
2443 echo "$as_me:2443: checking whether m4 supports frozen files" >&5
2444 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
2445 if test "${ac_cv_prog_gnu_m4+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 ac_cv_prog_gnu_m4
=no
2449 if test x
"$M4" != x
; then
2450 case `$M4 --help < /dev/null 2>&1` in
2451 *reload
-state*) ac_cv_prog_gnu_m4
=yes ;;
2455 echo "$as_me:2455: result: $ac_cv_prog_gnu_m4" >&5
2456 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
2458 if test "$ac_cv_prog_gnu_m4" != yes; then
2459 missing_dir
=`cd $ac_aux_dir && pwd`
2460 M4
="$missing_dir/missing m4"
2463 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
2464 if test "${enable_gcc_warnings+set}" = set; then
2465 enableval
="$enable_gcc_warnings"
2466 case "${enableval}" in
2468 *) { { echo "$as_me:2468: error: bad value ${enableval} for gcc-warnings option" >&5
2469 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
2470 { (exit 1); exit 1; }; } ;;
2475 if test "${enableval}" = yes; then
2476 echo "$as_me:2476: checking whether compiler accepts -Wall" >&5
2477 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
2479 ac_save_CFLAGS
="$CFLAGS"
2480 CFLAGS
="$CFLAGS -Wall"
2481 cat >conftest.
$ac_ext <<_ACEOF
2482 #line 2482 "configure"
2483 #include "confdefs.h"
2493 rm -f conftest.
$ac_objext
2494 if { (eval echo "$as_me:2494: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>&5
2497 echo "$as_me:2497: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
2499 { ac_try
='test -s conftest.$ac_objext'
2500 { (eval echo "$as_me:2500: \"$ac_try\"") >&5
2503 echo "$as_me:2503: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2505 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
2506 echo "$as_me:2506: result: yes" >&5
2507 echo "${ECHO_T}yes" >&6
2509 echo "$as_me: failed program was:" >&5
2510 cat conftest.
$ac_ext >&5
2511 echo "$as_me:2511: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2514 rm -f conftest.
$ac_objext conftest.
$ac_ext
2515 CFLAGS
="$ac_save_CFLAGS"
2516 echo "$as_me:2516: checking whether compiler accepts -W" >&5
2517 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
2519 ac_save_CFLAGS
="$CFLAGS"
2521 cat >conftest.
$ac_ext <<_ACEOF
2522 #line 2522 "configure"
2523 #include "confdefs.h"
2533 rm -f conftest.
$ac_objext
2534 if { (eval echo "$as_me:2534: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>&5
2537 echo "$as_me:2537: \$? = $ac_status" >&5
2538 (exit $ac_status); } &&
2539 { ac_try
='test -s conftest.$ac_objext'
2540 { (eval echo "$as_me:2540: \"$ac_try\"") >&5
2543 echo "$as_me:2543: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2545 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
2546 echo "$as_me:2546: result: yes" >&5
2547 echo "${ECHO_T}yes" >&6
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2551 echo "$as_me:2551: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2554 rm -f conftest.
$ac_objext conftest.
$ac_ext
2555 CFLAGS
="$ac_save_CFLAGS"
2556 echo "$as_me:2556: checking whether compiler accepts -Wbad-function-cast" >&5
2557 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
2559 ac_save_CFLAGS
="$CFLAGS"
2560 CFLAGS
="$CFLAGS -Wbad-function-cast"
2561 cat >conftest.
$ac_ext <<_ACEOF
2562 #line 2562 "configure"
2563 #include "confdefs.h"
2573 rm -f conftest.
$ac_objext
2574 if { (eval echo "$as_me:2574: \"$ac_compile\"") >&5
2575 (eval $ac_compile) 2>&5
2577 echo "$as_me:2577: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try
='test -s conftest.$ac_objext'
2580 { (eval echo "$as_me:2580: \"$ac_try\"") >&5
2583 echo "$as_me:2583: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2585 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
2586 echo "$as_me:2586: result: yes" >&5
2587 echo "${ECHO_T}yes" >&6
2589 echo "$as_me: failed program was:" >&5
2590 cat conftest.
$ac_ext >&5
2591 echo "$as_me:2591: result: no" >&5
2592 echo "${ECHO_T}no" >&6
2594 rm -f conftest.
$ac_objext conftest.
$ac_ext
2595 CFLAGS
="$ac_save_CFLAGS"
2596 echo "$as_me:2596: checking whether compiler accepts -Wcast-align" >&5
2597 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
2599 ac_save_CFLAGS
="$CFLAGS"
2600 CFLAGS
="$CFLAGS -Wcast-align"
2601 cat >conftest.
$ac_ext <<_ACEOF
2602 #line 2602 "configure"
2603 #include "confdefs.h"
2613 rm -f conftest.
$ac_objext
2614 if { (eval echo "$as_me:2614: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>&5
2617 echo "$as_me:2617: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try
='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:2620: \"$ac_try\"") >&5
2623 echo "$as_me:2623: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
2626 echo "$as_me:2626: result: yes" >&5
2627 echo "${ECHO_T}yes" >&6
2629 echo "$as_me: failed program was:" >&5
2630 cat conftest.
$ac_ext >&5
2631 echo "$as_me:2631: result: no" >&5
2632 echo "${ECHO_T}no" >&6
2634 rm -f conftest.
$ac_objext conftest.
$ac_ext
2635 CFLAGS
="$ac_save_CFLAGS"
2636 echo "$as_me:2636: checking whether compiler accepts -Wcast-qual" >&5
2637 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
2639 ac_save_CFLAGS
="$CFLAGS"
2640 CFLAGS
="$CFLAGS -Wcast-qual"
2641 cat >conftest.
$ac_ext <<_ACEOF
2642 #line 2642 "configure"
2643 #include "confdefs.h"
2653 rm -f conftest.
$ac_objext
2654 if { (eval echo "$as_me:2654: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>&5
2657 echo "$as_me:2657: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try
='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:2660: \"$ac_try\"") >&5
2663 echo "$as_me:2663: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
2666 echo "$as_me:2666: result: yes" >&5
2667 echo "${ECHO_T}yes" >&6
2669 echo "$as_me: failed program was:" >&5
2670 cat conftest.
$ac_ext >&5
2671 echo "$as_me:2671: result: no" >&5
2672 echo "${ECHO_T}no" >&6
2674 rm -f conftest.
$ac_objext conftest.
$ac_ext
2675 CFLAGS
="$ac_save_CFLAGS"
2676 echo "$as_me:2676: checking whether compiler accepts -Wmissing-declarations" >&5
2677 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
2679 ac_save_CFLAGS
="$CFLAGS"
2680 CFLAGS
="$CFLAGS -Wmissing-declarations"
2681 cat >conftest.
$ac_ext <<_ACEOF
2682 #line 2682 "configure"
2683 #include "confdefs.h"
2693 rm -f conftest.
$ac_objext
2694 if { (eval echo "$as_me:2694: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>&5
2697 echo "$as_me:2697: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try
='test -s conftest.$ac_objext'
2700 { (eval echo "$as_me:2700: \"$ac_try\"") >&5
2703 echo "$as_me:2703: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2705 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
2706 echo "$as_me:2706: result: yes" >&5
2707 echo "${ECHO_T}yes" >&6
2709 echo "$as_me: failed program was:" >&5
2710 cat conftest.
$ac_ext >&5
2711 echo "$as_me:2711: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2714 rm -f conftest.
$ac_objext conftest.
$ac_ext
2715 CFLAGS
="$ac_save_CFLAGS"
2716 echo "$as_me:2716: checking whether compiler accepts -Wmissing-prototypes" >&5
2717 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
2719 ac_save_CFLAGS
="$CFLAGS"
2720 CFLAGS
="$CFLAGS -Wmissing-prototypes"
2721 cat >conftest.
$ac_ext <<_ACEOF
2722 #line 2722 "configure"
2723 #include "confdefs.h"
2733 rm -f conftest.
$ac_objext
2734 if { (eval echo "$as_me:2734: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>&5
2737 echo "$as_me:2737: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try
='test -s conftest.$ac_objext'
2740 { (eval echo "$as_me:2740: \"$ac_try\"") >&5
2743 echo "$as_me:2743: \$? = $ac_status" >&5
2744 (exit $ac_status); }; }; then
2745 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
2746 echo "$as_me:2746: result: yes" >&5
2747 echo "${ECHO_T}yes" >&6
2749 echo "$as_me: failed program was:" >&5
2750 cat conftest.
$ac_ext >&5
2751 echo "$as_me:2751: result: no" >&5
2752 echo "${ECHO_T}no" >&6
2754 rm -f conftest.
$ac_objext conftest.
$ac_ext
2755 CFLAGS
="$ac_save_CFLAGS"
2756 echo "$as_me:2756: checking whether compiler accepts -Wnested-externs" >&5
2757 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
2759 ac_save_CFLAGS
="$CFLAGS"
2760 CFLAGS
="$CFLAGS -Wnested-externs"
2761 cat >conftest.
$ac_ext <<_ACEOF
2762 #line 2762 "configure"
2763 #include "confdefs.h"
2773 rm -f conftest.
$ac_objext
2774 if { (eval echo "$as_me:2774: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>&5
2777 echo "$as_me:2777: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try
='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:2780: \"$ac_try\"") >&5
2783 echo "$as_me:2783: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
2786 echo "$as_me:2786: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6
2789 echo "$as_me: failed program was:" >&5
2790 cat conftest.
$ac_ext >&5
2791 echo "$as_me:2791: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2794 rm -f conftest.
$ac_objext conftest.
$ac_ext
2795 CFLAGS
="$ac_save_CFLAGS"
2796 echo "$as_me:2796: checking whether compiler accepts -Wshadow" >&5
2797 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
2799 ac_save_CFLAGS
="$CFLAGS"
2800 CFLAGS
="$CFLAGS -Wshadow"
2801 cat >conftest.
$ac_ext <<_ACEOF
2802 #line 2802 "configure"
2803 #include "confdefs.h"
2813 rm -f conftest.
$ac_objext
2814 if { (eval echo "$as_me:2814: \"$ac_compile\"") >&5
2815 (eval $ac_compile) 2>&5
2817 echo "$as_me:2817: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try
='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:2820: \"$ac_try\"") >&5
2823 echo "$as_me:2823: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
2826 echo "$as_me:2826: result: yes" >&5
2827 echo "${ECHO_T}yes" >&6
2829 echo "$as_me: failed program was:" >&5
2830 cat conftest.
$ac_ext >&5
2831 echo "$as_me:2831: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2834 rm -f conftest.
$ac_objext conftest.
$ac_ext
2835 CFLAGS
="$ac_save_CFLAGS"
2836 echo "$as_me:2836: checking whether compiler accepts -Wstrict-prototypes" >&5
2837 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
2839 ac_save_CFLAGS
="$CFLAGS"
2840 CFLAGS
="$CFLAGS -Wstrict-prototypes"
2841 cat >conftest.
$ac_ext <<_ACEOF
2842 #line 2842 "configure"
2843 #include "confdefs.h"
2853 rm -f conftest.
$ac_objext
2854 if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5
2855 (eval $ac_compile) 2>&5
2857 echo "$as_me:2857: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try
='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:2860: \"$ac_try\"") >&5
2863 echo "$as_me:2863: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
2866 echo "$as_me:2866: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6
2869 echo "$as_me: failed program was:" >&5
2870 cat conftest.
$ac_ext >&5
2871 echo "$as_me:2871: result: no" >&5
2872 echo "${ECHO_T}no" >&6
2874 rm -f conftest.
$ac_objext conftest.
$ac_ext
2875 CFLAGS
="$ac_save_CFLAGS"
2876 echo "$as_me:2876: checking whether compiler accepts -Wwrite-strings" >&5
2877 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
2879 ac_save_CFLAGS
="$CFLAGS"
2880 CFLAGS
="$CFLAGS -Wwrite-strings"
2881 cat >conftest.
$ac_ext <<_ACEOF
2882 #line 2882 "configure"
2883 #include "confdefs.h"
2893 rm -f conftest.
$ac_objext
2894 if { (eval echo "$as_me:2894: \"$ac_compile\"") >&5
2895 (eval $ac_compile) 2>&5
2897 echo "$as_me:2897: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try
='test -s conftest.$ac_objext'
2900 { (eval echo "$as_me:2900: \"$ac_try\"") >&5
2903 echo "$as_me:2903: \$? = $ac_status" >&5
2904 (exit $ac_status); }; }; then
2905 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
2906 echo "$as_me:2906: result: yes" >&5
2907 echo "${ECHO_T}yes" >&6
2909 echo "$as_me: failed program was:" >&5
2910 cat conftest.
$ac_ext >&5
2911 echo "$as_me:2911: result: no" >&5
2912 echo "${ECHO_T}no" >&6
2914 rm -f conftest.
$ac_objext conftest.
$ac_ext
2915 CFLAGS
="$ac_save_CFLAGS"
2916 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
2919 # Checks for libraries.
2921 cat >>confdefs.h
<<\EOF
2922 #define _GNU_SOURCE 1
2925 # Checks for header files.
2926 echo "$as_me:2926: checking for ANSI C header files" >&5
2927 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2928 if test "${ac_cv_header_stdc+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 cat >conftest.
$ac_ext <<_ACEOF
2932 #line 2932 "configure"
2933 #include "confdefs.h"
2940 if { (eval echo "$as_me:2940: \"$ac_cpp conftest.$ac_ext\"") >&5
2941 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2943 egrep -v '^ *\+' conftest.er1
>conftest.err
2945 cat conftest.err
>&5
2946 echo "$as_me:2946: \$? = $ac_status" >&5
2947 (exit $ac_status); } >/dev
/null
; then
2948 if test -s conftest.err
; then
2949 ac_cpp_err
=$ac_c_preproc_warn_flag
2956 if test -z "$ac_cpp_err"; then
2957 ac_cv_header_stdc
=yes
2959 echo "$as_me: failed program was:" >&5
2960 cat conftest.
$ac_ext >&5
2961 ac_cv_header_stdc
=no
2963 rm -f conftest.err conftest.
$ac_ext
2965 if test $ac_cv_header_stdc = yes; then
2966 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2967 cat >conftest.
$ac_ext <<_ACEOF
2968 #line 2968 "configure"
2969 #include "confdefs.h"
2973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2974 egrep "memchr" >/dev
/null
2>&1; then
2977 ac_cv_header_stdc
=no
2983 if test $ac_cv_header_stdc = yes; then
2984 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2985 cat >conftest.
$ac_ext <<_ACEOF
2986 #line 2986 "configure"
2987 #include "confdefs.h"
2991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2992 egrep "free" >/dev
/null
2>&1; then
2995 ac_cv_header_stdc
=no
3001 if test $ac_cv_header_stdc = yes; then
3002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3003 if test "$cross_compiling" = yes; then
3006 cat >conftest.
$ac_ext <<_ACEOF
3007 #line 3007 "configure"
3008 #include "confdefs.h"
3010 #if ((' ' & 0x0FF) == 0x020)
3011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3014 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3015 || ('j' <= (c) && (c) <= 'r') \
3016 || ('s' <= (c) && (c) <= 'z'))
3017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3025 for (i = 0; i < 256; i++)
3026 if (XOR (islower (i), ISLOWER (i))
3027 || toupper (i) != TOUPPER (i))
3032 rm -f conftest
$ac_exeext
3033 if { (eval echo "$as_me:3033: \"$ac_link\"") >&5
3034 (eval $ac_link) 2>&5
3036 echo "$as_me:3036: \$? = $ac_status" >&5
3037 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3038 { (eval echo "$as_me:3038: \"$ac_try\"") >&5
3041 echo "$as_me:3041: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3045 echo "$as_me: program exited with status $ac_status" >&5
3046 echo "$as_me: failed program was:" >&5
3047 cat conftest.
$ac_ext >&5
3048 ac_cv_header_stdc
=no
3050 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
3054 echo "$as_me:3054: result: $ac_cv_header_stdc" >&5
3055 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3056 if test $ac_cv_header_stdc = yes; then
3058 cat >>confdefs.h
<<\EOF
3059 #define STDC_HEADERS 1
3064 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3066 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3067 echo "$as_me:3067: checking for $ac_header" >&5
3068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3069 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 cat >conftest.
$ac_ext <<_ACEOF
3073 #line 3073 "configure"
3074 #include "confdefs.h"
3075 #include <$ac_header>
3077 if { (eval echo "$as_me:3077: \"$ac_cpp conftest.$ac_ext\"") >&5
3078 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3080 egrep -v '^ *\+' conftest.er1
>conftest.err
3082 cat conftest.err
>&5
3083 echo "$as_me:3083: \$? = $ac_status" >&5
3084 (exit $ac_status); } >/dev
/null
; then
3085 if test -s conftest.err
; then
3086 ac_cpp_err
=$ac_c_preproc_warn_flag
3093 if test -z "$ac_cpp_err"; then
3094 eval "$ac_ac_Header=yes"
3096 echo "$as_me: failed program was:" >&5
3097 cat conftest.
$ac_ext >&5
3098 eval "$ac_ac_Header=no"
3100 rm -f conftest.err conftest.
$ac_ext
3102 echo "$as_me:3102: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3103 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3104 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3105 cat >>confdefs.h
<<EOF
3106 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3112 # Checks for typedefs.
3114 # Checks for structures.
3116 # Checks for compiler characteristics.
3117 echo "$as_me:3117: checking for $CC option to accept ANSI C" >&5
3118 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3119 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 ac_cv_prog_cc_stdc
=no
3124 cat >conftest.
$ac_ext <<_ACEOF
3125 #line 3125 "configure"
3126 #include "confdefs.h"
3129 #include <sys/types.h>
3130 #include <sys/stat.h>
3131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3132 struct buf { int x; };
3133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3134 static char *e (p, i)
3140 static char *f (char * (*g) (char **, int), char **p, ...)
3145 s = g (p, va_arg (v,int));
3149 int test (int i, double x);
3150 struct s1 {int (*f) (int a);};
3151 struct s2 {int (*f) (double a);};
3152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3163 # Don't try gcc -ansi; that turns off useful extensions and
3164 # breaks some systems' header files.
3165 # AIX -qlanglvl=ansi
3166 # Ultrix and OSF/1 -std1
3167 # HP-UX 10.20 and later -Ae
3168 # HP-UX older versions -Aa -D_HPUX_SOURCE
3169 # SVR4 -Xc -D__EXTENSIONS__
3170 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3172 CC
="$ac_save_CC $ac_arg"
3173 rm -f conftest.
$ac_objext
3174 if { (eval echo "$as_me:3174: \"$ac_compile\"") >&5
3175 (eval $ac_compile) 2>&5
3177 echo "$as_me:3177: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try
='test -s conftest.$ac_objext'
3180 { (eval echo "$as_me:3180: \"$ac_try\"") >&5
3183 echo "$as_me:3183: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 ac_cv_prog_cc_stdc
=$ac_arg
3188 echo "$as_me: failed program was:" >&5
3189 cat conftest.
$ac_ext >&5
3191 rm -f conftest.
$ac_objext
3193 rm -f conftest.
$ac_ext conftest.
$ac_objext
3198 case "x$ac_cv_prog_cc_stdc" in
3200 echo "$as_me:3200: result: none needed" >&5
3201 echo "${ECHO_T}none needed" >&6 ;;
3203 echo "$as_me:3203: result: $ac_cv_prog_cc_stdc" >&5
3204 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3205 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3208 echo "$as_me:3208: checking for an ANSI C-conforming const" >&5
3209 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3210 if test "${ac_cv_c_const+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 cat >conftest.
$ac_ext <<_ACEOF
3214 #line 3214 "configure"
3215 #include "confdefs.h"
3220 /* FIXME: Include the comments suggested by Paul. */
3222 /* Ultrix mips cc rejects this. */
3223 typedef int charset[2];
3225 /* SunOS 4.1.1 cc rejects this. */
3226 char const *const *ccp;
3228 /* NEC SVR4.0.2 mips cc rejects this. */
3229 struct point {int x, y;};
3230 static struct point const zero = {0,0};
3231 /* AIX XL C 1.02.0.0 rejects this.
3232 It does not let you subtract one const X* pointer from another in
3233 an arm of an if-expression whose if-part is not a constant
3235 const char *g = "string";
3236 ccp = &g + (g ? g-g : 0);
3237 /* HPUX 7.0 cc rejects these. */
3240 ccp = (char const *const *) p;
3241 { /* SCO 3.2v4 cc rejects this. */
3243 char const *s = 0 ? (char *) 0 : (char const *) 0;
3247 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3249 const int *foo = &x[0];
3252 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3253 typedef const int *iptr;
3257 { /* AIX XL C 1.02.0.0 rejects this saying
3258 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3259 struct s { int j; const int *ap[3]; };
3260 struct s *b; b->j = 5;
3262 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3271 rm -f conftest.
$ac_objext
3272 if { (eval echo "$as_me:3272: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>&5
3275 echo "$as_me:3275: \$? = $ac_status" >&5
3276 (exit $ac_status); } &&
3277 { ac_try
='test -s conftest.$ac_objext'
3278 { (eval echo "$as_me:3278: \"$ac_try\"") >&5
3281 echo "$as_me:3281: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3285 echo "$as_me: failed program was:" >&5
3286 cat conftest.
$ac_ext >&5
3289 rm -f conftest.
$ac_objext conftest.
$ac_ext
3291 echo "$as_me:3291: result: $ac_cv_c_const" >&5
3292 echo "${ECHO_T}$ac_cv_c_const" >&6
3293 if test $ac_cv_c_const = no
; then
3295 cat >>confdefs.h
<<\EOF
3301 echo "$as_me:3301: checking for inline" >&5
3302 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3303 if test "${ac_cv_c_inline+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 for ac_kw
in inline __inline__ __inline
; do
3308 cat >conftest.
$ac_ext <<_ACEOF
3309 #line 3309 "configure"
3310 #include "confdefs.h"
3312 static $ac_kw int static_foo () {return 0; }
3313 $ac_kw int foo () {return 0; }
3317 rm -f conftest.
$ac_objext
3318 if { (eval echo "$as_me:3318: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>&5
3321 echo "$as_me:3321: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try
='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:3324: \"$ac_try\"") >&5
3327 echo "$as_me:3327: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 ac_cv_c_inline
=$ac_kw; break
3331 echo "$as_me: failed program was:" >&5
3332 cat conftest.
$ac_ext >&5
3334 rm -f conftest.
$ac_objext conftest.
$ac_ext
3338 echo "$as_me:3338: result: $ac_cv_c_inline" >&5
3339 echo "${ECHO_T}$ac_cv_c_inline" >&6
3340 case $ac_cv_c_inline in
3343 cat >>confdefs.h
<<\EOF
3347 *) cat >>confdefs.h
<<EOF
3348 #define inline $ac_cv_c_inline
3353 echo "$as_me:3353: checking for function prototypes" >&5
3354 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3355 if test "$am_cv_prog_cc_stdc" != no
; then
3356 echo "$as_me:3356: result: yes" >&5
3357 echo "${ECHO_T}yes" >&6
3359 cat >>confdefs.h
<<\EOF
3360 #define PROTOTYPES 1
3365 echo "$as_me:3365: result: no" >&5
3366 echo "${ECHO_T}no" >&6
3367 U
=_ ANSI2KNR
=.
/ansi2knr
3368 # Ensure some checks needed by ansi2knr itself.
3369 echo "$as_me:3369: checking for ANSI C header files" >&5
3370 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3371 if test "${ac_cv_header_stdc+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 cat >conftest.
$ac_ext <<_ACEOF
3375 #line 3375 "configure"
3376 #include "confdefs.h"
3383 if { (eval echo "$as_me:3383: \"$ac_cpp conftest.$ac_ext\"") >&5
3384 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3386 egrep -v '^ *\+' conftest.er1
>conftest.err
3388 cat conftest.err
>&5
3389 echo "$as_me:3389: \$? = $ac_status" >&5
3390 (exit $ac_status); } >/dev
/null
; then
3391 if test -s conftest.err
; then
3392 ac_cpp_err
=$ac_c_preproc_warn_flag
3399 if test -z "$ac_cpp_err"; then
3400 ac_cv_header_stdc
=yes
3402 echo "$as_me: failed program was:" >&5
3403 cat conftest.
$ac_ext >&5
3404 ac_cv_header_stdc
=no
3406 rm -f conftest.err conftest.
$ac_ext
3408 if test $ac_cv_header_stdc = yes; then
3409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3410 cat >conftest.
$ac_ext <<_ACEOF
3411 #line 3411 "configure"
3412 #include "confdefs.h"
3416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3417 egrep "memchr" >/dev
/null
2>&1; then
3420 ac_cv_header_stdc
=no
3426 if test $ac_cv_header_stdc = yes; then
3427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3428 cat >conftest.
$ac_ext <<_ACEOF
3429 #line 3429 "configure"
3430 #include "confdefs.h"
3434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3435 egrep "free" >/dev
/null
2>&1; then
3438 ac_cv_header_stdc
=no
3444 if test $ac_cv_header_stdc = yes; then
3445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3446 if test "$cross_compiling" = yes; then
3449 cat >conftest.
$ac_ext <<_ACEOF
3450 #line 3450 "configure"
3451 #include "confdefs.h"
3453 #if ((' ' & 0x0FF) == 0x020)
3454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3457 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3458 || ('j' <= (c) && (c) <= 'r') \
3459 || ('s' <= (c) && (c) <= 'z'))
3460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3468 for (i = 0; i < 256; i++)
3469 if (XOR (islower (i), ISLOWER (i))
3470 || toupper (i) != TOUPPER (i))
3475 rm -f conftest
$ac_exeext
3476 if { (eval echo "$as_me:3476: \"$ac_link\"") >&5
3477 (eval $ac_link) 2>&5
3479 echo "$as_me:3479: \$? = $ac_status" >&5
3480 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3481 { (eval echo "$as_me:3481: \"$ac_try\"") >&5
3484 echo "$as_me:3484: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3488 echo "$as_me: program exited with status $ac_status" >&5
3489 echo "$as_me: failed program was:" >&5
3490 cat conftest.
$ac_ext >&5
3491 ac_cv_header_stdc
=no
3493 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
3497 echo "$as_me:3497: result: $ac_cv_header_stdc" >&5
3498 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3499 if test $ac_cv_header_stdc = yes; then
3501 cat >>confdefs.h
<<\EOF
3502 #define STDC_HEADERS 1
3507 for ac_header
in string.h
3509 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3510 echo "$as_me:3510: checking for $ac_header" >&5
3511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3512 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 cat >conftest.
$ac_ext <<_ACEOF
3516 #line 3516 "configure"
3517 #include "confdefs.h"
3518 #include <$ac_header>
3520 if { (eval echo "$as_me:3520: \"$ac_cpp conftest.$ac_ext\"") >&5
3521 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3523 egrep -v '^ *\+' conftest.er1
>conftest.err
3525 cat conftest.err
>&5
3526 echo "$as_me:3526: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev
/null
; then
3528 if test -s conftest.err
; then
3529 ac_cpp_err
=$ac_c_preproc_warn_flag
3536 if test -z "$ac_cpp_err"; then
3537 eval "$ac_ac_Header=yes"
3539 echo "$as_me: failed program was:" >&5
3540 cat conftest.
$ac_ext >&5
3541 eval "$ac_ac_Header=no"
3543 rm -f conftest.err conftest.
$ac_ext
3545 echo "$as_me:3545: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3546 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3547 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3548 cat >>confdefs.h
<<EOF
3549 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3557 # Checks for library functions.
3558 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3559 # for constant arguments. Useless!
3560 echo "$as_me:3560: checking for working alloca.h" >&5
3561 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3562 if test "${ac_cv_working_alloca_h+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 cat >conftest.
$ac_ext <<_ACEOF
3566 #line 3566 "configure"
3567 #include "confdefs.h"
3572 char *p = (char *) alloca (2 * sizeof (int));
3577 rm -f conftest.
$ac_objext conftest
$ac_exeext
3578 if { (eval echo "$as_me:3578: \"$ac_link\"") >&5
3579 (eval $ac_link) 2>&5
3581 echo "$as_me:3581: \$? = $ac_status" >&5
3582 (exit $ac_status); } &&
3583 { ac_try
='test -s conftest$ac_exeext'
3584 { (eval echo "$as_me:3584: \"$ac_try\"") >&5
3587 echo "$as_me:3587: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 ac_cv_working_alloca_h
=yes
3591 echo "$as_me: failed program was:" >&5
3592 cat conftest.
$ac_ext >&5
3593 ac_cv_working_alloca_h
=no
3595 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3597 echo "$as_me:3597: result: $ac_cv_working_alloca_h" >&5
3598 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3599 if test $ac_cv_working_alloca_h = yes; then
3601 cat >>confdefs.h
<<\EOF
3602 #define HAVE_ALLOCA_H 1
3607 echo "$as_me:3607: checking for alloca" >&5
3608 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3609 if test "${ac_cv_func_alloca_works+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 cat >conftest.
$ac_ext <<_ACEOF
3613 #line 3613 "configure"
3614 #include "confdefs.h"
3616 # define alloca __builtin_alloca
3619 # include <malloc.h>
3620 # define alloca _alloca
3623 # include <alloca.h>
3628 # ifndef alloca /* predefined by HP cc +Olibcalls */
3639 char *p = (char *) alloca (1);
3644 rm -f conftest.
$ac_objext conftest
$ac_exeext
3645 if { (eval echo "$as_me:3645: \"$ac_link\"") >&5
3646 (eval $ac_link) 2>&5
3648 echo "$as_me:3648: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
3650 { ac_try
='test -s conftest$ac_exeext'
3651 { (eval echo "$as_me:3651: \"$ac_try\"") >&5
3654 echo "$as_me:3654: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 ac_cv_func_alloca_works
=yes
3658 echo "$as_me: failed program was:" >&5
3659 cat conftest.
$ac_ext >&5
3660 ac_cv_func_alloca_works
=no
3662 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3664 echo "$as_me:3664: result: $ac_cv_func_alloca_works" >&5
3665 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3667 if test $ac_cv_func_alloca_works = yes; then
3669 cat >>confdefs.h
<<\EOF
3670 #define HAVE_ALLOCA 1
3674 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3675 # that cause trouble. Some versions do not even contain alloca or
3676 # contain a buggy version. If you still want to use their alloca,
3677 # use ar to extract alloca.o from them instead of compiling alloca.c.
3679 ALLOCA
=alloca.
$ac_objext
3681 cat >>confdefs.h
<<\EOF
3685 echo "$as_me:3685: checking whether \`alloca.c' needs Cray hooks" >&5
3686 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3687 if test "${ac_cv_os_cray+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 cat >conftest.
$ac_ext <<_ACEOF
3691 #line 3691 "configure"
3692 #include "confdefs.h"
3693 #if defined(CRAY) && ! defined(CRAY2)
3700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3701 egrep "webecray" >/dev
/null
2>&1; then
3709 echo "$as_me:3709: result: $ac_cv_os_cray" >&5
3710 echo "${ECHO_T}$ac_cv_os_cray" >&6
3711 if test $ac_cv_os_cray = yes; then
3712 for ac_func
in _getb67 GETB67 getb67
; do
3713 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3714 echo "$as_me:3714: checking for $ac_func" >&5
3715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3716 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 cat >conftest.
$ac_ext <<_ACEOF
3720 #line 3720 "configure"
3721 #include "confdefs.h"
3722 /* System header to define __stub macros and hopefully few prototypes,
3723 which can conflict with char $ac_func (); below. */
3725 /* Override any gcc2 internal prototype to avoid an error. */
3729 /* We use char because int might match the return type of a gcc2
3730 builtin and then its argument prototype would still apply. */
3737 /* The GNU C library defines this for functions which it implements
3738 to always fail with ENOSYS. Some functions are actually named
3739 something starting with __ and the normal name is an alias. */
3740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3750 rm -f conftest.
$ac_objext conftest
$ac_exeext
3751 if { (eval echo "$as_me:3751: \"$ac_link\"") >&5
3752 (eval $ac_link) 2>&5
3754 echo "$as_me:3754: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try
='test -s conftest$ac_exeext'
3757 { (eval echo "$as_me:3757: \"$ac_try\"") >&5
3760 echo "$as_me:3760: \$? = $ac_status" >&5
3761 (exit $ac_status); }; }; then
3762 eval "$ac_ac_var=yes"
3764 echo "$as_me: failed program was:" >&5
3765 cat conftest.
$ac_ext >&5
3766 eval "$ac_ac_var=no"
3768 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3770 echo "$as_me:3770: result: `eval echo '${'$ac_ac_var'}'`" >&5
3771 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3772 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3774 cat >>confdefs.h
<<EOF
3775 #define CRAY_STACKSEG_END $ac_func
3784 echo "$as_me:3784: checking stack direction for C alloca" >&5
3785 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3786 if test "${ac_cv_c_stack_direction+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if test "$cross_compiling" = yes; then
3790 ac_cv_c_stack_direction
=0
3792 cat >conftest.
$ac_ext <<_ACEOF
3793 #line 3793 "configure"
3794 #include "confdefs.h"
3796 find_stack_direction ()
3798 static char *addr = 0;
3803 return find_stack_direction ();
3806 return (&dummy > addr) ? 1 : -1;
3812 exit (find_stack_direction () < 0);
3815 rm -f conftest
$ac_exeext
3816 if { (eval echo "$as_me:3816: \"$ac_link\"") >&5
3817 (eval $ac_link) 2>&5
3819 echo "$as_me:3819: \$? = $ac_status" >&5
3820 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3821 { (eval echo "$as_me:3821: \"$ac_try\"") >&5
3824 echo "$as_me:3824: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 ac_cv_c_stack_direction
=1
3828 echo "$as_me: program exited with status $ac_status" >&5
3829 echo "$as_me: failed program was:" >&5
3830 cat conftest.
$ac_ext >&5
3831 ac_cv_c_stack_direction
=-1
3833 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
3836 echo "$as_me:3836: result: $ac_cv_c_stack_direction" >&5
3837 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3839 cat >>confdefs.h
<<EOF
3840 #define STACK_DIRECTION $ac_cv_c_stack_direction
3845 for ac_func
in mkstemp setlocale
3847 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3848 echo "$as_me:3848: checking for $ac_func" >&5
3849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3850 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 cat >conftest.
$ac_ext <<_ACEOF
3854 #line 3854 "configure"
3855 #include "confdefs.h"
3856 /* System header to define __stub macros and hopefully few prototypes,
3857 which can conflict with char $ac_func (); below. */
3859 /* Override any gcc2 internal prototype to avoid an error. */
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */
3871 /* The GNU C library defines this for functions which it implements
3872 to always fail with ENOSYS. Some functions are actually named
3873 something starting with __ and the normal name is an alias. */
3874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3884 rm -f conftest.
$ac_objext conftest
$ac_exeext
3885 if { (eval echo "$as_me:3885: \"$ac_link\"") >&5
3886 (eval $ac_link) 2>&5
3888 echo "$as_me:3888: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try
='test -s conftest$ac_exeext'
3891 { (eval echo "$as_me:3891: \"$ac_try\"") >&5
3894 echo "$as_me:3894: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 eval "$ac_ac_var=yes"
3898 echo "$as_me: failed program was:" >&5
3899 cat conftest.
$ac_ext >&5
3900 eval "$ac_ac_var=no"
3902 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3904 echo "$as_me:3904: result: `eval echo '${'$ac_ac_var'}'`" >&5
3905 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3906 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3907 cat >>confdefs.h
<<EOF
3908 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3914 for ac_header
in stdlib.h string.h memory.h
strings.h inttypes.h unistd.h
3916 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3917 echo "$as_me:3917: checking for $ac_header" >&5
3918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3919 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 cat >conftest.
$ac_ext <<_ACEOF
3923 #line 3923 "configure"
3924 #include "confdefs.h"
3925 #include <$ac_header>
3927 if { (eval echo "$as_me:3927: \"$ac_cpp conftest.$ac_ext\"") >&5
3928 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3930 egrep -v '^ *\+' conftest.er1
>conftest.err
3932 cat conftest.err
>&5
3933 echo "$as_me:3933: \$? = $ac_status" >&5
3934 (exit $ac_status); } >/dev
/null
; then
3935 if test -s conftest.err
; then
3936 ac_cpp_err
=$ac_c_preproc_warn_flag
3943 if test -z "$ac_cpp_err"; then
3944 eval "$ac_ac_Header=yes"
3946 echo "$as_me: failed program was:" >&5
3947 cat conftest.
$ac_ext >&5
3948 eval "$ac_ac_Header=no"
3950 rm -f conftest.err conftest.
$ac_ext
3952 echo "$as_me:3952: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3953 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3954 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3955 cat >>confdefs.h
<<EOF
3956 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3962 echo "$as_me:3962: checking whether stpcpy is declared" >&5
3963 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
3964 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 cat >conftest.
$ac_ext <<_ACEOF
3968 #line 3968 "configure"
3969 #include "confdefs.h"
3970 $ac_includes_default
3975 char *p = (char *) stpcpy;
3982 rm -f conftest.
$ac_objext
3983 if { (eval echo "$as_me:3983: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>&5
3986 echo "$as_me:3986: \$? = $ac_status" >&5
3987 (exit $ac_status); } &&
3988 { ac_try
='test -s conftest.$ac_objext'
3989 { (eval echo "$as_me:3989: \"$ac_try\"") >&5
3992 echo "$as_me:3992: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_cv_have_decl_stpcpy
=yes
3996 echo "$as_me: failed program was:" >&5
3997 cat conftest.
$ac_ext >&5
3998 ac_cv_have_decl_stpcpy
=no
4000 rm -f conftest.
$ac_objext conftest.
$ac_ext
4002 echo "$as_me:4002: result: $ac_cv_have_decl_stpcpy" >&5
4003 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4004 if test $ac_cv_have_decl_stpcpy = yes; then
4006 cat >>confdefs.h
<<EOF
4007 #define HAVE_DECL_STPCPY 1
4011 cat >>confdefs.h
<<EOF
4012 #define HAVE_DECL_STPCPY 0
4016 echo "$as_me:4016: checking whether strndup is declared" >&5
4017 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4018 if test "${ac_cv_have_decl_strndup+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 cat >conftest.
$ac_ext <<_ACEOF
4022 #line 4022 "configure"
4023 #include "confdefs.h"
4024 $ac_includes_default
4029 char *p = (char *) strndup;
4036 rm -f conftest.
$ac_objext
4037 if { (eval echo "$as_me:4037: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>&5
4040 echo "$as_me:4040: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try
='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:4043: \"$ac_try\"") >&5
4046 echo "$as_me:4046: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 ac_cv_have_decl_strndup
=yes
4050 echo "$as_me: failed program was:" >&5
4051 cat conftest.
$ac_ext >&5
4052 ac_cv_have_decl_strndup
=no
4054 rm -f conftest.
$ac_objext conftest.
$ac_ext
4056 echo "$as_me:4056: result: $ac_cv_have_decl_strndup" >&5
4057 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4058 if test $ac_cv_have_decl_strndup = yes; then
4060 cat >>confdefs.h
<<EOF
4061 #define HAVE_DECL_STRNDUP 1
4065 cat >>confdefs.h
<<EOF
4066 #define HAVE_DECL_STRNDUP 0
4070 echo "$as_me:4070: checking whether strnlen is declared" >&5
4071 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4072 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 cat >conftest.
$ac_ext <<_ACEOF
4076 #line 4076 "configure"
4077 #include "confdefs.h"
4078 $ac_includes_default
4083 char *p = (char *) strnlen;
4090 rm -f conftest.
$ac_objext
4091 if { (eval echo "$as_me:4091: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>&5
4094 echo "$as_me:4094: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try
='test -s conftest.$ac_objext'
4097 { (eval echo "$as_me:4097: \"$ac_try\"") >&5
4100 echo "$as_me:4100: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_have_decl_strnlen
=yes
4104 echo "$as_me: failed program was:" >&5
4105 cat conftest.
$ac_ext >&5
4106 ac_cv_have_decl_strnlen
=no
4108 rm -f conftest.
$ac_objext conftest.
$ac_ext
4110 echo "$as_me:4110: result: $ac_cv_have_decl_strnlen" >&5
4111 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4112 if test $ac_cv_have_decl_strnlen = yes; then
4114 cat >>confdefs.h
<<EOF
4115 #define HAVE_DECL_STRNLEN 1
4119 cat >>confdefs.h
<<EOF
4120 #define HAVE_DECL_STRNLEN 0
4124 echo "$as_me:4124: checking whether memchr is declared" >&5
4125 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4126 if test "${ac_cv_have_decl_memchr+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 cat >conftest.
$ac_ext <<_ACEOF
4130 #line 4130 "configure"
4131 #include "confdefs.h"
4132 $ac_includes_default
4137 char *p = (char *) memchr;
4144 rm -f conftest.
$ac_objext
4145 if { (eval echo "$as_me:4145: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>&5
4148 echo "$as_me:4148: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try
='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:4151: \"$ac_try\"") >&5
4154 echo "$as_me:4154: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_have_decl_memchr
=yes
4158 echo "$as_me: failed program was:" >&5
4159 cat conftest.
$ac_ext >&5
4160 ac_cv_have_decl_memchr
=no
4162 rm -f conftest.
$ac_objext conftest.
$ac_ext
4164 echo "$as_me:4164: result: $ac_cv_have_decl_memchr" >&5
4165 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
4166 if test $ac_cv_have_decl_memchr = yes; then
4168 cat >>confdefs.h
<<EOF
4169 #define HAVE_DECL_MEMCHR 1
4173 cat >>confdefs.h
<<EOF
4174 #define HAVE_DECL_MEMCHR 0
4179 for ac_func
in stpcpy strndup strnlen memchr
4181 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4182 echo "$as_me:4182: checking for $ac_func" >&5
4183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4184 if eval "test \"\${$ac_ac_var+set}\" = set"; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 cat >conftest.
$ac_ext <<_ACEOF
4188 #line 4188 "configure"
4189 #include "confdefs.h"
4190 /* System header to define __stub macros and hopefully few prototypes,
4191 which can conflict with char $ac_func (); below. */
4193 /* Override any gcc2 internal prototype to avoid an error. */
4197 /* We use char because int might match the return type of a gcc2
4198 builtin and then its argument prototype would still apply. */
4205 /* The GNU C library defines this for functions which it implements
4206 to always fail with ENOSYS. Some functions are actually named
4207 something starting with __ and the normal name is an alias. */
4208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4218 rm -f conftest.
$ac_objext conftest
$ac_exeext
4219 if { (eval echo "$as_me:4219: \"$ac_link\"") >&5
4220 (eval $ac_link) 2>&5
4222 echo "$as_me:4222: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try
='test -s conftest$ac_exeext'
4225 { (eval echo "$as_me:4225: \"$ac_try\"") >&5
4228 echo "$as_me:4228: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 eval "$ac_ac_var=yes"
4232 echo "$as_me: failed program was:" >&5
4233 cat conftest.
$ac_ext >&5
4234 eval "$ac_ac_var=no"
4236 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4238 echo "$as_me:4238: result: `eval echo '${'$ac_ac_var'}'`" >&5
4239 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4240 if test `eval echo '${'$ac_ac_var'}'` = yes; then
4241 cat >>confdefs.h
<<EOF
4242 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4246 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
4250 cat >>confdefs.h
<<EOF
4251 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
4254 echo "$as_me:4254: checking for working malloc" >&5
4255 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
4256 if test "${jm_cv_func_working_malloc+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 if test "$cross_compiling" = yes; then
4260 jm_cv_func_working_malloc
=no
4262 cat >conftest.
$ac_ext <<_ACEOF
4263 #line 4263 "configure"
4264 #include "confdefs.h"
4270 exit (malloc (0) ? 0 : 1);
4274 rm -f conftest
$ac_exeext
4275 if { (eval echo "$as_me:4275: \"$ac_link\"") >&5
4276 (eval $ac_link) 2>&5
4278 echo "$as_me:4278: \$? = $ac_status" >&5
4279 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4280 { (eval echo "$as_me:4280: \"$ac_try\"") >&5
4283 echo "$as_me:4283: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 jm_cv_func_working_malloc
=yes
4287 echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 cat conftest.
$ac_ext >&5
4290 jm_cv_func_working_malloc
=no
4292 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
4296 echo "$as_me:4296: result: $jm_cv_func_working_malloc" >&5
4297 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
4298 if test $jm_cv_func_working_malloc = no
; then
4300 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
4302 cat >>confdefs.h
<<EOF
4303 #define malloc rpl_malloc
4308 cat >>confdefs.h
<<EOF
4309 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
4312 echo "$as_me:4312: checking for working realloc" >&5
4313 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
4314 if test "${jm_cv_func_working_realloc+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 if test "$cross_compiling" = yes; then
4318 jm_cv_func_working_realloc
=no
4320 cat >conftest.
$ac_ext <<_ACEOF
4321 #line 4321 "configure"
4322 #include "confdefs.h"
4328 exit (realloc (0, 0) ? 0 : 1);
4332 rm -f conftest
$ac_exeext
4333 if { (eval echo "$as_me:4333: \"$ac_link\"") >&5
4334 (eval $ac_link) 2>&5
4336 echo "$as_me:4336: \$? = $ac_status" >&5
4337 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4338 { (eval echo "$as_me:4338: \"$ac_try\"") >&5
4341 echo "$as_me:4341: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 jm_cv_func_working_realloc
=yes
4345 echo "$as_me: program exited with status $ac_status" >&5
4346 echo "$as_me: failed program was:" >&5
4347 cat conftest.
$ac_ext >&5
4348 jm_cv_func_working_realloc
=no
4350 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
4354 echo "$as_me:4354: result: $jm_cv_func_working_realloc" >&5
4355 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
4356 if test $jm_cv_func_working_realloc = no
; then
4358 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
4360 cat >>confdefs.h
<<EOF
4361 #define realloc rpl_realloc
4366 for ac_func
in isascii iswprint mbrtowc
4368 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4369 echo "$as_me:4369: checking for $ac_func" >&5
4370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4371 if eval "test \"\${$ac_ac_var+set}\" = set"; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 cat >conftest.
$ac_ext <<_ACEOF
4375 #line 4375 "configure"
4376 #include "confdefs.h"
4377 /* System header to define __stub macros and hopefully few prototypes,
4378 which can conflict with char $ac_func (); below. */
4380 /* Override any gcc2 internal prototype to avoid an error. */
4384 /* We use char because int might match the return type of a gcc2
4385 builtin and then its argument prototype would still apply. */
4392 /* The GNU C library defines this for functions which it implements
4393 to always fail with ENOSYS. Some functions are actually named
4394 something starting with __ and the normal name is an alias. */
4395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4405 rm -f conftest.
$ac_objext conftest
$ac_exeext
4406 if { (eval echo "$as_me:4406: \"$ac_link\"") >&5
4407 (eval $ac_link) 2>&5
4409 echo "$as_me:4409: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try
='test -s conftest$ac_exeext'
4412 { (eval echo "$as_me:4412: \"$ac_try\"") >&5
4415 echo "$as_me:4415: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 eval "$ac_ac_var=yes"
4419 echo "$as_me: failed program was:" >&5
4420 cat conftest.
$ac_ext >&5
4421 eval "$ac_ac_var=no"
4423 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4425 echo "$as_me:4425: result: `eval echo '${'$ac_ac_var'}'`" >&5
4426 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4427 if test `eval echo '${'$ac_ac_var'}'` = yes; then
4428 cat >>confdefs.h
<<EOF
4429 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4435 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
4437 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4438 echo "$as_me:4438: checking for $ac_header" >&5
4439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 cat >conftest.
$ac_ext <<_ACEOF
4444 #line 4444 "configure"
4445 #include "confdefs.h"
4446 #include <$ac_header>
4448 if { (eval echo "$as_me:4448: \"$ac_cpp conftest.$ac_ext\"") >&5
4449 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4451 egrep -v '^ *\+' conftest.er1
>conftest.err
4453 cat conftest.err
>&5
4454 echo "$as_me:4454: \$? = $ac_status" >&5
4455 (exit $ac_status); } >/dev
/null
; then
4456 if test -s conftest.err
; then
4457 ac_cpp_err
=$ac_c_preproc_warn_flag
4464 if test -z "$ac_cpp_err"; then
4465 eval "$ac_ac_Header=yes"
4467 echo "$as_me: failed program was:" >&5
4468 cat conftest.
$ac_ext >&5
4469 eval "$ac_ac_Header=no"
4471 rm -f conftest.err conftest.
$ac_ext
4473 echo "$as_me:4473: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4474 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4475 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4476 cat >>confdefs.h
<<EOF
4477 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4483 echo "$as_me:4483: checking for ANSI C header files" >&5
4484 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4485 if test "${ac_cv_header_stdc+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 cat >conftest.
$ac_ext <<_ACEOF
4489 #line 4489 "configure"
4490 #include "confdefs.h"
4497 if { (eval echo "$as_me:4497: \"$ac_cpp conftest.$ac_ext\"") >&5
4498 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4500 egrep -v '^ *\+' conftest.er1
>conftest.err
4502 cat conftest.err
>&5
4503 echo "$as_me:4503: \$? = $ac_status" >&5
4504 (exit $ac_status); } >/dev
/null
; then
4505 if test -s conftest.err
; then
4506 ac_cpp_err
=$ac_c_preproc_warn_flag
4513 if test -z "$ac_cpp_err"; then
4514 ac_cv_header_stdc
=yes
4516 echo "$as_me: failed program was:" >&5
4517 cat conftest.
$ac_ext >&5
4518 ac_cv_header_stdc
=no
4520 rm -f conftest.err conftest.
$ac_ext
4522 if test $ac_cv_header_stdc = yes; then
4523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4524 cat >conftest.
$ac_ext <<_ACEOF
4525 #line 4525 "configure"
4526 #include "confdefs.h"
4530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4531 egrep "memchr" >/dev
/null
2>&1; then
4534 ac_cv_header_stdc
=no
4540 if test $ac_cv_header_stdc = yes; then
4541 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4542 cat >conftest.
$ac_ext <<_ACEOF
4543 #line 4543 "configure"
4544 #include "confdefs.h"
4548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4549 egrep "free" >/dev
/null
2>&1; then
4552 ac_cv_header_stdc
=no
4558 if test $ac_cv_header_stdc = yes; then
4559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4560 if test "$cross_compiling" = yes; then
4563 cat >conftest.
$ac_ext <<_ACEOF
4564 #line 4564 "configure"
4565 #include "confdefs.h"
4567 #if ((' ' & 0x0FF) == 0x020)
4568 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4569 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4571 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4572 || ('j' <= (c) && (c) <= 'r') \
4573 || ('s' <= (c) && (c) <= 'z'))
4574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4582 for (i = 0; i < 256; i++)
4583 if (XOR (islower (i), ISLOWER (i))
4584 || toupper (i) != TOUPPER (i))
4589 rm -f conftest
$ac_exeext
4590 if { (eval echo "$as_me:4590: \"$ac_link\"") >&5
4591 (eval $ac_link) 2>&5
4593 echo "$as_me:4593: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4595 { (eval echo "$as_me:4595: \"$ac_try\"") >&5
4598 echo "$as_me:4598: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4602 echo "$as_me: program exited with status $ac_status" >&5
4603 echo "$as_me: failed program was:" >&5
4604 cat conftest.
$ac_ext >&5
4605 ac_cv_header_stdc
=no
4607 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
4611 echo "$as_me:4611: result: $ac_cv_header_stdc" >&5
4612 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4613 if test $ac_cv_header_stdc = yes; then
4615 cat >>confdefs.h
<<\EOF
4616 #define STDC_HEADERS 1
4621 echo "$as_me:4621: checking whether backslash-a works in strings" >&5
4622 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
4623 if test "${ac_cv_c_backslash_a+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 cat >conftest.
$ac_ext <<_ACEOF
4627 #line 4627 "configure"
4628 #include "confdefs.h"
4637 char buf['\a' == 'a' ? -1 : 1];
4639 return buf[0] != "\a"[0];
4645 rm -f conftest.
$ac_objext
4646 if { (eval echo "$as_me:4646: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>&5
4649 echo "$as_me:4649: \$? = $ac_status" >&5
4650 (exit $ac_status); } &&
4651 { ac_try
='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:4652: \"$ac_try\"") >&5
4655 echo "$as_me:4655: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_c_backslash_a
=yes
4659 echo "$as_me: failed program was:" >&5
4660 cat conftest.
$ac_ext >&5
4661 ac_cv_c_backslash_a
=no
4663 rm -f conftest.
$ac_objext conftest.
$ac_ext
4665 echo "$as_me:4665: result: $ac_cv_c_backslash_a" >&5
4666 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
4667 if test $ac_cv_c_backslash_a = yes; then
4669 cat >>confdefs.h
<<\EOF
4670 #define HAVE_C_BACKSLASH_A 1
4675 for ac_header
in stdlib.h
4677 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4678 echo "$as_me:4678: checking for $ac_header" >&5
4679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4680 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 cat >conftest.
$ac_ext <<_ACEOF
4684 #line 4684 "configure"
4685 #include "confdefs.h"
4686 #include <$ac_header>
4688 if { (eval echo "$as_me:4688: \"$ac_cpp conftest.$ac_ext\"") >&5
4689 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4691 egrep -v '^ *\+' conftest.er1
>conftest.err
4693 cat conftest.err
>&5
4694 echo "$as_me:4694: \$? = $ac_status" >&5
4695 (exit $ac_status); } >/dev
/null
; then
4696 if test -s conftest.err
; then
4697 ac_cpp_err
=$ac_c_preproc_warn_flag
4704 if test -z "$ac_cpp_err"; then
4705 eval "$ac_ac_Header=yes"
4707 echo "$as_me: failed program was:" >&5
4708 cat conftest.
$ac_ext >&5
4709 eval "$ac_ac_Header=no"
4711 rm -f conftest.err conftest.
$ac_ext
4713 echo "$as_me:4713: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4714 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4715 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4716 cat >>confdefs.h
<<EOF
4717 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4723 echo "$as_me:4723: checking for mbstate_t" >&5
4724 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
4725 if test "${ac_cv_type_mbstate_t+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 cat >conftest.
$ac_ext <<_ACEOF
4729 #line 4729 "configure"
4730 #include "confdefs.h"
4733 # include <stdlib.h>
4739 mbstate_t x; return sizeof x;
4744 rm -f conftest.
$ac_objext
4745 if { (eval echo "$as_me:4745: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>&5
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try
='test -s conftest.$ac_objext'
4751 { (eval echo "$as_me:4751: \"$ac_try\"") >&5
4754 echo "$as_me:4754: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 ac_cv_type_mbstate_t
=yes
4758 echo "$as_me: failed program was:" >&5
4759 cat conftest.
$ac_ext >&5
4760 ac_cv_type_mbstate_t
=no
4762 rm -f conftest.
$ac_objext conftest.
$ac_ext
4764 echo "$as_me:4764: result: $ac_cv_type_mbstate_t" >&5
4765 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
4766 if test $ac_cv_type_mbstate_t = no
; then
4768 cat >>confdefs.h
<<\EOF
4769 #define mbstate_t int
4774 echo "$as_me:4774: checking for function prototypes" >&5
4775 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4776 if test "$am_cv_prog_cc_stdc" != no
; then
4777 echo "$as_me:4777: result: yes" >&5
4778 echo "${ECHO_T}yes" >&6
4780 cat >>confdefs.h
<<\EOF
4781 #define PROTOTYPES 1
4786 echo "$as_me:4786: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788 U
=_ ANSI2KNR
=.
/ansi2knr
4789 # Ensure some checks needed by ansi2knr itself.
4790 echo "$as_me:4790: checking for ANSI C header files" >&5
4791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4792 if test "${ac_cv_header_stdc+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 cat >conftest.
$ac_ext <<_ACEOF
4796 #line 4796 "configure"
4797 #include "confdefs.h"
4804 if { (eval echo "$as_me:4804: \"$ac_cpp conftest.$ac_ext\"") >&5
4805 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4807 egrep -v '^ *\+' conftest.er1
>conftest.err
4809 cat conftest.err
>&5
4810 echo "$as_me:4810: \$? = $ac_status" >&5
4811 (exit $ac_status); } >/dev
/null
; then
4812 if test -s conftest.err
; then
4813 ac_cpp_err
=$ac_c_preproc_warn_flag
4820 if test -z "$ac_cpp_err"; then
4821 ac_cv_header_stdc
=yes
4823 echo "$as_me: failed program was:" >&5
4824 cat conftest.
$ac_ext >&5
4825 ac_cv_header_stdc
=no
4827 rm -f conftest.err conftest.
$ac_ext
4829 if test $ac_cv_header_stdc = yes; then
4830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4831 cat >conftest.
$ac_ext <<_ACEOF
4832 #line 4832 "configure"
4833 #include "confdefs.h"
4837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838 egrep "memchr" >/dev
/null
2>&1; then
4841 ac_cv_header_stdc
=no
4847 if test $ac_cv_header_stdc = yes; then
4848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4849 cat >conftest.
$ac_ext <<_ACEOF
4850 #line 4850 "configure"
4851 #include "confdefs.h"
4855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4856 egrep "free" >/dev
/null
2>&1; then
4859 ac_cv_header_stdc
=no
4865 if test $ac_cv_header_stdc = yes; then
4866 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4867 if test "$cross_compiling" = yes; then
4870 cat >conftest.
$ac_ext <<_ACEOF
4871 #line 4871 "configure"
4872 #include "confdefs.h"
4874 #if ((' ' & 0x0FF) == 0x020)
4875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4878 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4879 || ('j' <= (c) && (c) <= 'r') \
4880 || ('s' <= (c) && (c) <= 'z'))
4881 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4884 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4889 for (i = 0; i < 256; i++)
4890 if (XOR (islower (i), ISLOWER (i))
4891 || toupper (i) != TOUPPER (i))
4896 rm -f conftest
$ac_exeext
4897 if { (eval echo "$as_me:4897: \"$ac_link\"") >&5
4898 (eval $ac_link) 2>&5
4900 echo "$as_me:4900: \$? = $ac_status" >&5
4901 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4902 { (eval echo "$as_me:4902: \"$ac_try\"") >&5
4905 echo "$as_me:4905: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4909 echo "$as_me: program exited with status $ac_status" >&5
4910 echo "$as_me: failed program was:" >&5
4911 cat conftest.
$ac_ext >&5
4912 ac_cv_header_stdc
=no
4914 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
4918 echo "$as_me:4918: result: $ac_cv_header_stdc" >&5
4919 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4920 if test $ac_cv_header_stdc = yes; then
4922 cat >>confdefs.h
<<\EOF
4923 #define STDC_HEADERS 1
4928 for ac_header
in string.h
4930 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4931 echo "$as_me:4931: checking for $ac_header" >&5
4932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4933 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 cat >conftest.
$ac_ext <<_ACEOF
4937 #line 4937 "configure"
4938 #include "confdefs.h"
4939 #include <$ac_header>
4941 if { (eval echo "$as_me:4941: \"$ac_cpp conftest.$ac_ext\"") >&5
4942 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4944 egrep -v '^ *\+' conftest.er1
>conftest.err
4946 cat conftest.err
>&5
4947 echo "$as_me:4947: \$? = $ac_status" >&5
4948 (exit $ac_status); } >/dev
/null
; then
4949 if test -s conftest.err
; then
4950 ac_cpp_err
=$ac_c_preproc_warn_flag
4957 if test -z "$ac_cpp_err"; then
4958 eval "$ac_ac_Header=yes"
4960 echo "$as_me: failed program was:" >&5
4961 cat conftest.
$ac_ext >&5
4962 eval "$ac_ac_Header=no"
4964 rm -f conftest.err conftest.
$ac_ext
4966 echo "$as_me:4966: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4967 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4968 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4969 cat >>confdefs.h
<<EOF
4970 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4978 for ac_func
in strerror strerror_r vprintf doprnt
4980 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4981 echo "$as_me:4981: checking for $ac_func" >&5
4982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4983 if eval "test \"\${$ac_ac_var+set}\" = set"; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 cat >conftest.
$ac_ext <<_ACEOF
4987 #line 4987 "configure"
4988 #include "confdefs.h"
4989 /* System header to define __stub macros and hopefully few prototypes,
4990 which can conflict with char $ac_func (); below. */
4992 /* Override any gcc2 internal prototype to avoid an error. */
4996 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */
5004 /* The GNU C library defines this for functions which it implements
5005 to always fail with ENOSYS. Some functions are actually named
5006 something starting with __ and the normal name is an alias. */
5007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5017 rm -f conftest.
$ac_objext conftest
$ac_exeext
5018 if { (eval echo "$as_me:5018: \"$ac_link\"") >&5
5019 (eval $ac_link) 2>&5
5021 echo "$as_me:5021: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try
='test -s conftest$ac_exeext'
5024 { (eval echo "$as_me:5024: \"$ac_try\"") >&5
5027 echo "$as_me:5027: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 eval "$ac_ac_var=yes"
5031 echo "$as_me: failed program was:" >&5
5032 cat conftest.
$ac_ext >&5
5033 eval "$ac_ac_var=no"
5035 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5037 echo "$as_me:5037: result: `eval echo '${'$ac_ac_var'}'`" >&5
5038 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5039 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5040 cat >>confdefs.h
<<EOF
5041 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5047 echo "$as_me:5047: checking for ANSI C header files" >&5
5048 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5049 if test "${ac_cv_header_stdc+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 cat >conftest.
$ac_ext <<_ACEOF
5053 #line 5053 "configure"
5054 #include "confdefs.h"
5061 if { (eval echo "$as_me:5061: \"$ac_cpp conftest.$ac_ext\"") >&5
5062 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5064 egrep -v '^ *\+' conftest.er1
>conftest.err
5066 cat conftest.err
>&5
5067 echo "$as_me:5067: \$? = $ac_status" >&5
5068 (exit $ac_status); } >/dev
/null
; then
5069 if test -s conftest.err
; then
5070 ac_cpp_err
=$ac_c_preproc_warn_flag
5077 if test -z "$ac_cpp_err"; then
5078 ac_cv_header_stdc
=yes
5080 echo "$as_me: failed program was:" >&5
5081 cat conftest.
$ac_ext >&5
5082 ac_cv_header_stdc
=no
5084 rm -f conftest.err conftest.
$ac_ext
5086 if test $ac_cv_header_stdc = yes; then
5087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5088 cat >conftest.
$ac_ext <<_ACEOF
5089 #line 5089 "configure"
5090 #include "confdefs.h"
5094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5095 egrep "memchr" >/dev
/null
2>&1; then
5098 ac_cv_header_stdc
=no
5104 if test $ac_cv_header_stdc = yes; then
5105 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5106 cat >conftest.
$ac_ext <<_ACEOF
5107 #line 5107 "configure"
5108 #include "confdefs.h"
5112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5113 egrep "free" >/dev
/null
2>&1; then
5116 ac_cv_header_stdc
=no
5122 if test $ac_cv_header_stdc = yes; then
5123 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5124 if test "$cross_compiling" = yes; then
5127 cat >conftest.
$ac_ext <<_ACEOF
5128 #line 5128 "configure"
5129 #include "confdefs.h"
5131 #if ((' ' & 0x0FF) == 0x020)
5132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5135 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5136 || ('j' <= (c) && (c) <= 'r') \
5137 || ('s' <= (c) && (c) <= 'z'))
5138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5146 for (i = 0; i < 256; i++)
5147 if (XOR (islower (i), ISLOWER (i))
5148 || toupper (i) != TOUPPER (i))
5153 rm -f conftest
$ac_exeext
5154 if { (eval echo "$as_me:5154: \"$ac_link\"") >&5
5155 (eval $ac_link) 2>&5
5157 echo "$as_me:5157: \$? = $ac_status" >&5
5158 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5159 { (eval echo "$as_me:5159: \"$ac_try\"") >&5
5162 echo "$as_me:5162: \$? = $ac_status" >&5
5163 (exit $ac_status); }; }; then
5166 echo "$as_me: program exited with status $ac_status" >&5
5167 echo "$as_me: failed program was:" >&5
5168 cat conftest.
$ac_ext >&5
5169 ac_cv_header_stdc
=no
5171 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
5175 echo "$as_me:5175: result: $ac_cv_header_stdc" >&5
5176 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5177 if test $ac_cv_header_stdc = yes; then
5179 cat >>confdefs.h
<<\EOF
5180 #define STDC_HEADERS 1
5185 echo "$as_me:5185: checking whether strerror_r is declared" >&5
5186 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
5187 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 cat >conftest.
$ac_ext <<_ACEOF
5191 #line 5191 "configure"
5192 #include "confdefs.h"
5193 $ac_includes_default
5198 char *p = (char *) strerror_r;
5205 rm -f conftest.
$ac_objext
5206 if { (eval echo "$as_me:5206: \"$ac_compile\"") >&5
5207 (eval $ac_compile) 2>&5
5209 echo "$as_me:5209: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try
='test -s conftest.$ac_objext'
5212 { (eval echo "$as_me:5212: \"$ac_try\"") >&5
5215 echo "$as_me:5215: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5217 ac_cv_have_decl_strerror_r
=yes
5219 echo "$as_me: failed program was:" >&5
5220 cat conftest.
$ac_ext >&5
5221 ac_cv_have_decl_strerror_r
=no
5223 rm -f conftest.
$ac_objext conftest.
$ac_ext
5225 echo "$as_me:5225: result: $ac_cv_have_decl_strerror_r" >&5
5226 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
5227 if test $ac_cv_have_decl_strerror_r = yes; then
5229 cat >>confdefs.h
<<EOF
5230 #define HAVE_DECL_STRERROR_R 1
5234 cat >>confdefs.h
<<EOF
5235 #define HAVE_DECL_STRERROR_R 0
5240 for ac_func
in strerror_r
5242 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5243 echo "$as_me:5243: checking for $ac_func" >&5
5244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5245 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 cat >conftest.
$ac_ext <<_ACEOF
5249 #line 5249 "configure"
5250 #include "confdefs.h"
5251 /* System header to define __stub macros and hopefully few prototypes,
5252 which can conflict with char $ac_func (); below. */
5254 /* Override any gcc2 internal prototype to avoid an error. */
5258 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5266 /* The GNU C library defines this for functions which it implements
5267 to always fail with ENOSYS. Some functions are actually named
5268 something starting with __ and the normal name is an alias. */
5269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5279 rm -f conftest.
$ac_objext conftest
$ac_exeext
5280 if { (eval echo "$as_me:5280: \"$ac_link\"") >&5
5281 (eval $ac_link) 2>&5
5283 echo "$as_me:5283: \$? = $ac_status" >&5
5284 (exit $ac_status); } &&
5285 { ac_try
='test -s conftest$ac_exeext'
5286 { (eval echo "$as_me:5286: \"$ac_try\"") >&5
5289 echo "$as_me:5289: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 eval "$ac_ac_var=yes"
5293 echo "$as_me: failed program was:" >&5
5294 cat conftest.
$ac_ext >&5
5295 eval "$ac_ac_var=no"
5297 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5299 echo "$as_me:5299: result: `eval echo '${'$ac_ac_var'}'`" >&5
5300 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5301 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5302 cat >>confdefs.h
<<EOF
5303 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5309 if test $ac_cv_func_strerror_r = yes; then
5311 for ac_header
in string.h
5313 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5314 echo "$as_me:5314: checking for $ac_header" >&5
5315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5316 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 cat >conftest.
$ac_ext <<_ACEOF
5320 #line 5320 "configure"
5321 #include "confdefs.h"
5322 #include <$ac_header>
5324 if { (eval echo "$as_me:5324: \"$ac_cpp conftest.$ac_ext\"") >&5
5325 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5327 egrep -v '^ *\+' conftest.er1
>conftest.err
5329 cat conftest.err
>&5
5330 echo "$as_me:5330: \$? = $ac_status" >&5
5331 (exit $ac_status); } >/dev
/null
; then
5332 if test -s conftest.err
; then
5333 ac_cpp_err
=$ac_c_preproc_warn_flag
5340 if test -z "$ac_cpp_err"; then
5341 eval "$ac_ac_Header=yes"
5343 echo "$as_me: failed program was:" >&5
5344 cat conftest.
$ac_ext >&5
5345 eval "$ac_ac_Header=no"
5347 rm -f conftest.err conftest.
$ac_ext
5349 echo "$as_me:5349: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5350 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5351 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5352 cat >>confdefs.h
<<EOF
5353 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5359 echo "$as_me:5359: checking for working strerror_r" >&5
5360 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
5361 if test "${ac_cv_func_strerror_r_works+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 cat >conftest.
$ac_ext <<_ACEOF
5366 #line 5366 "configure"
5367 #include "confdefs.h"
5371 # include <string.h>
5379 char x = *strerror_r (0, buf, sizeof buf);
5385 rm -f conftest.
$ac_objext
5386 if { (eval echo "$as_me:5386: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>&5
5389 echo "$as_me:5389: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try
='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:5392: \"$ac_try\"") >&5
5395 echo "$as_me:5395: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 ac_cv_func_strerror_r_works
=yes
5399 echo "$as_me: failed program was:" >&5
5400 cat conftest.
$ac_ext >&5
5401 ac_cv_func_strerror_r_works
=no
5404 rm -f conftest.
$ac_objext conftest.
$ac_ext
5405 if test $ac_cv_func_strerror_r_works = no
; then
5406 # strerror_r seems not to work, but now we have to choose between
5407 # systems that have relatively inaccessible declarations for the
5408 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5409 # former has a strerror_r that returns char*, while the latter
5410 # has a strerror_r that returns `int'.
5411 # This test should segfault on the DEC system.
5412 if test "$cross_compiling" = yes; then
5413 ac_cv_func_strerror_r_works
=no
5415 cat >conftest.
$ac_ext <<_ACEOF
5416 #line 5416 "configure"
5417 #include "confdefs.h"
5420 # include <string.h>
5423 extern char *strerror_r ();
5429 char x = *strerror_r (0, buf, sizeof buf);
5430 exit (!isalpha (x));
5434 rm -f conftest
$ac_exeext
5435 if { (eval echo "$as_me:5435: \"$ac_link\"") >&5
5436 (eval $ac_link) 2>&5
5438 echo "$as_me:5438: \$? = $ac_status" >&5
5439 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5440 { (eval echo "$as_me:5440: \"$ac_try\"") >&5
5443 echo "$as_me:5443: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_cv_func_strerror_r_works
=yes
5447 echo "$as_me: program exited with status $ac_status" >&5
5448 echo "$as_me: failed program was:" >&5
5449 cat conftest.
$ac_ext >&5
5450 ac_cv_func_strerror_r_works
=no
5452 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
5457 echo "$as_me:5457: result: $ac_cv_func_strerror_r_works" >&5
5458 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
5459 if test $ac_cv_func_strerror_r_works = yes; then
5461 cat >>confdefs.h
<<EOF
5462 #define HAVE_WORKING_STRERROR_R 1
5468 ALL_LINGUAS
="de es et fr ja nl ru"
5469 # Make sure we can run config.sub.
5470 $ac_config_sub sun4
>/dev
/null
2>&1 ||
5471 { { echo "$as_me:5471: error: cannot run $ac_config_sub" >&5
5472 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5473 { (exit 1); exit 1; }; }
5475 echo "$as_me:5475: checking build system type" >&5
5476 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5477 if test "${ac_cv_build+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 ac_cv_build_alias
=$build_alias
5481 test -z "$ac_cv_build_alias" &&
5482 ac_cv_build_alias
=`$ac_config_guess`
5483 test -z "$ac_cv_build_alias" &&
5484 { { echo "$as_me:5484: error: cannot guess build type; you must specify one" >&5
5485 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5486 { (exit 1); exit 1; }; }
5487 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
5488 { { echo "$as_me:5488: error: $ac_config_sub $ac_cv_build_alias failed." >&5
5489 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
5490 { (exit 1); exit 1; }; }
5493 echo "$as_me:5493: result: $ac_cv_build" >&5
5494 echo "${ECHO_T}$ac_cv_build" >&6
5496 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5497 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5498 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5500 echo "$as_me:5500: checking host system type" >&5
5501 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5502 if test "${ac_cv_host+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 ac_cv_host_alias
=$host_alias
5506 test -z "$ac_cv_host_alias" &&
5507 ac_cv_host_alias
=$ac_cv_build_alias
5508 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
5509 { { echo "$as_me:5509: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5510 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5511 { (exit 1); exit 1; }; }
5514 echo "$as_me:5514: result: $ac_cv_host" >&5
5515 echo "${ECHO_T}$ac_cv_host" >&6
5517 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5518 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5519 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5521 echo "$as_me:5521: checking for off_t" >&5
5522 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5523 if test "${ac_cv_type_off_t+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 cat >conftest.
$ac_ext <<_ACEOF
5527 #line 5527 "configure"
5528 #include "confdefs.h"
5529 $ac_includes_default
5541 rm -f conftest.
$ac_objext
5542 if { (eval echo "$as_me:5542: \"$ac_compile\"") >&5
5543 (eval $ac_compile) 2>&5
5545 echo "$as_me:5545: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try
='test -s conftest.$ac_objext'
5548 { (eval echo "$as_me:5548: \"$ac_try\"") >&5
5551 echo "$as_me:5551: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_cv_type_off_t
=yes
5555 echo "$as_me: failed program was:" >&5
5556 cat conftest.
$ac_ext >&5
5559 rm -f conftest.
$ac_objext conftest.
$ac_ext
5561 echo "$as_me:5561: result: $ac_cv_type_off_t" >&5
5562 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5563 if test $ac_cv_type_off_t = yes; then
5567 cat >>confdefs.h
<<EOF
5573 echo "$as_me:5573: checking for size_t" >&5
5574 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5575 if test "${ac_cv_type_size_t+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 cat >conftest.
$ac_ext <<_ACEOF
5579 #line 5579 "configure"
5580 #include "confdefs.h"
5581 $ac_includes_default
5587 if (sizeof (size_t))
5593 rm -f conftest.
$ac_objext
5594 if { (eval echo "$as_me:5594: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>&5
5597 echo "$as_me:5597: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try
='test -s conftest.$ac_objext'
5600 { (eval echo "$as_me:5600: \"$ac_try\"") >&5
5603 echo "$as_me:5603: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_type_size_t
=yes
5607 echo "$as_me: failed program was:" >&5
5608 cat conftest.
$ac_ext >&5
5609 ac_cv_type_size_t
=no
5611 rm -f conftest.
$ac_objext conftest.
$ac_ext
5613 echo "$as_me:5613: result: $ac_cv_type_size_t" >&5
5614 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5615 if test $ac_cv_type_size_t = yes; then
5619 cat >>confdefs.h
<<EOF
5620 #define size_t unsigned
5625 for ac_header
in stdlib.h unistd.h
5627 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5628 echo "$as_me:5628: checking for $ac_header" >&5
5629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5630 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 cat >conftest.
$ac_ext <<_ACEOF
5634 #line 5634 "configure"
5635 #include "confdefs.h"
5636 #include <$ac_header>
5638 if { (eval echo "$as_me:5638: \"$ac_cpp conftest.$ac_ext\"") >&5
5639 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5641 egrep -v '^ *\+' conftest.er1
>conftest.err
5643 cat conftest.err
>&5
5644 echo "$as_me:5644: \$? = $ac_status" >&5
5645 (exit $ac_status); } >/dev
/null
; then
5646 if test -s conftest.err
; then
5647 ac_cpp_err
=$ac_c_preproc_warn_flag
5654 if test -z "$ac_cpp_err"; then
5655 eval "$ac_ac_Header=yes"
5657 echo "$as_me: failed program was:" >&5
5658 cat conftest.
$ac_ext >&5
5659 eval "$ac_ac_Header=no"
5661 rm -f conftest.err conftest.
$ac_ext
5663 echo "$as_me:5663: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5664 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5665 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5666 cat >>confdefs.h
<<EOF
5667 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5673 for ac_func
in getpagesize
5675 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5676 echo "$as_me:5676: checking for $ac_func" >&5
5677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5678 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 cat >conftest.
$ac_ext <<_ACEOF
5682 #line 5682 "configure"
5683 #include "confdefs.h"
5684 /* System header to define __stub macros and hopefully few prototypes,
5685 which can conflict with char $ac_func (); below. */
5687 /* Override any gcc2 internal prototype to avoid an error. */
5691 /* We use char because int might match the return type of a gcc2
5692 builtin and then its argument prototype would still apply. */
5699 /* The GNU C library defines this for functions which it implements
5700 to always fail with ENOSYS. Some functions are actually named
5701 something starting with __ and the normal name is an alias. */
5702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5712 rm -f conftest.
$ac_objext conftest
$ac_exeext
5713 if { (eval echo "$as_me:5713: \"$ac_link\"") >&5
5714 (eval $ac_link) 2>&5
5716 echo "$as_me:5716: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try
='test -s conftest$ac_exeext'
5719 { (eval echo "$as_me:5719: \"$ac_try\"") >&5
5722 echo "$as_me:5722: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 eval "$ac_ac_var=yes"
5726 echo "$as_me: failed program was:" >&5
5727 cat conftest.
$ac_ext >&5
5728 eval "$ac_ac_var=no"
5730 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5732 echo "$as_me:5732: result: `eval echo '${'$ac_ac_var'}'`" >&5
5733 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5734 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5735 cat >>confdefs.h
<<EOF
5736 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5742 echo "$as_me:5742: checking for working mmap" >&5
5743 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5744 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 if test "$cross_compiling" = yes; then
5748 ac_cv_func_mmap_fixed_mapped
=no
5750 cat >conftest.
$ac_ext <<_ACEOF
5751 #line 5751 "configure"
5752 #include "confdefs.h"
5753 /* Thanks to Mike Haertel and Jim Avera for this test.
5754 Here is a matrix of mmap possibilities:
5755 mmap private not fixed
5756 mmap private fixed at somewhere currently unmapped
5757 mmap private fixed at somewhere already mapped
5758 mmap shared not fixed
5759 mmap shared fixed at somewhere currently unmapped
5760 mmap shared fixed at somewhere already mapped
5761 For private mappings, we should verify that changes cannot be read()
5762 back from the file, nor mmap's back from the file at a different
5763 address. (There have been systems where private was not correctly
5764 implemented like the infamous i386 svr4.0, and systems where the
5765 VM page cache was not coherent with the file system buffer cache
5766 like early versions of FreeBSD and possibly contemporary NetBSD.)
5767 For shared mappings, we should conversely verify that changes get
5768 propogated back to all the places they're supposed to be.
5770 Grep wants private fixed already mapped.
5771 The main things grep needs to know about mmap are:
5772 * does it exist and is it safe to write into the mmap'd area
5773 * how to use it (BSD variants) */
5774 #include <sys/types.h>
5776 #include <sys/mman.h>
5778 #if STDC_HEADERS || HAVE_STDLIB_H
5779 # include <stdlib.h>
5784 # include <unistd.h>
5786 #include <sys/stat.h>
5788 /* This mess was copied from the GNU getpagesize.h. */
5789 #if !HAVE_GETPAGESIZE
5790 /* Assume that all systems that can run configure have sys/param.h. */
5791 # if !HAVE_SYS_PARAM_H
5792 # define HAVE_SYS_PARAM_H 1
5795 # ifdef _SC_PAGESIZE
5796 # define getpagesize() sysconf(_SC_PAGESIZE)
5797 # else /* no _SC_PAGESIZE */
5798 # if HAVE_SYS_PARAM_H
5799 # include <sys/param.h>
5800 # ifdef EXEC_PAGESIZE
5801 # define getpagesize() EXEC_PAGESIZE
5802 # else /* no EXEC_PAGESIZE */
5804 # define getpagesize() NBPG * CLSIZE
5807 # endif /* no CLSIZE */
5808 # else /* no NBPG */
5810 # define getpagesize() NBPC
5811 # else /* no NBPC */
5813 # define getpagesize() PAGESIZE
5814 # endif /* PAGESIZE */
5815 # endif /* no NBPC */
5816 # endif /* no NBPG */
5817 # endif /* no EXEC_PAGESIZE */
5818 # else /* no HAVE_SYS_PARAM_H */
5819 # define getpagesize() 8192 /* punt totally */
5820 # endif /* no HAVE_SYS_PARAM_H */
5821 # endif /* no _SC_PAGESIZE */
5823 #endif /* no HAVE_GETPAGESIZE */
5828 char *data, *data2, *data3;
5832 pagesize = getpagesize ();
5834 /* First, make a file with some known garbage in it. */
5835 data = (char *) malloc (pagesize);
5838 for (i = 0; i < pagesize; ++i)
5839 *(data + i) = rand ();
5841 fd = creat ("conftest.mmap", 0600);
5844 if (write (fd, data, pagesize) != pagesize)
5848 /* Next, try to mmap the file at a fixed address which already has
5849 something else allocated at it. If we can, also make sure that
5850 we see the same garbage. */
5851 fd = open ("conftest.mmap", O_RDWR);
5854 data2 = (char *) malloc (2 * pagesize);
5857 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5858 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5859 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5861 for (i = 0; i < pagesize; ++i)
5862 if (*(data + i) != *(data2 + i))
5865 /* Finally, make sure that changes to the mapped area do not
5866 percolate back to the file as seen by read(). (This is a bug on
5867 some variants of i386 svr4.0.) */
5868 for (i = 0; i < pagesize; ++i)
5869 *(data2 + i) = *(data2 + i) + 1;
5870 data3 = (char *) malloc (pagesize);
5873 if (read (fd, data3, pagesize) != pagesize)
5875 for (i = 0; i < pagesize; ++i)
5876 if (*(data + i) != *(data3 + i))
5882 rm -f conftest
$ac_exeext
5883 if { (eval echo "$as_me:5883: \"$ac_link\"") >&5
5884 (eval $ac_link) 2>&5
5886 echo "$as_me:5886: \$? = $ac_status" >&5
5887 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5888 { (eval echo "$as_me:5888: \"$ac_try\"") >&5
5891 echo "$as_me:5891: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 ac_cv_func_mmap_fixed_mapped
=yes
5895 echo "$as_me: program exited with status $ac_status" >&5
5896 echo "$as_me: failed program was:" >&5
5897 cat conftest.
$ac_ext >&5
5898 ac_cv_func_mmap_fixed_mapped
=no
5900 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
5903 echo "$as_me:5903: result: $ac_cv_func_mmap_fixed_mapped" >&5
5904 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5905 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5907 cat >>confdefs.h
<<\EOF
5914 echo "$as_me:5914: checking whether we are using the GNU C Library 2.1 or newer" >&5
5915 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5916 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 cat >conftest.
$ac_ext <<_ACEOF
5920 #line 5920 "configure"
5921 #include "confdefs.h"
5923 #include <features.h>
5924 #ifdef __GNU_LIBRARY__
5925 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5932 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5933 ac_cv_gnu_library_2_1
=yes
5935 ac_cv_gnu_library_2_1
=no
5940 echo "$as_me:5940: result: $ac_cv_gnu_library_2_1" >&5
5941 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5943 GLIBC21
="$ac_cv_gnu_library_2_1"
5945 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5946 stdlib.h string.h unistd.h sys
/param.h
5948 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5949 echo "$as_me:5949: checking for $ac_header" >&5
5950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5951 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 cat >conftest.
$ac_ext <<_ACEOF
5955 #line 5955 "configure"
5956 #include "confdefs.h"
5957 #include <$ac_header>
5959 if { (eval echo "$as_me:5959: \"$ac_cpp conftest.$ac_ext\"") >&5
5960 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5962 egrep -v '^ *\+' conftest.er1
>conftest.err
5964 cat conftest.err
>&5
5965 echo "$as_me:5965: \$? = $ac_status" >&5
5966 (exit $ac_status); } >/dev
/null
; then
5967 if test -s conftest.err
; then
5968 ac_cpp_err
=$ac_c_preproc_warn_flag
5975 if test -z "$ac_cpp_err"; then
5976 eval "$ac_ac_Header=yes"
5978 echo "$as_me: failed program was:" >&5
5979 cat conftest.
$ac_ext >&5
5980 eval "$ac_ac_Header=no"
5982 rm -f conftest.err conftest.
$ac_ext
5984 echo "$as_me:5984: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5985 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5986 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5987 cat >>confdefs.h
<<EOF
5988 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5994 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5995 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5996 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5998 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5999 echo "$as_me:5999: checking for $ac_func" >&5
6000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6001 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 cat >conftest.
$ac_ext <<_ACEOF
6005 #line 6005 "configure"
6006 #include "confdefs.h"
6007 /* System header to define __stub macros and hopefully few prototypes,
6008 which can conflict with char $ac_func (); below. */
6010 /* Override any gcc2 internal prototype to avoid an error. */
6014 /* We use char because int might match the return type of a gcc2
6015 builtin and then its argument prototype would still apply. */
6022 /* The GNU C library defines this for functions which it implements
6023 to always fail with ENOSYS. Some functions are actually named
6024 something starting with __ and the normal name is an alias. */
6025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6035 rm -f conftest.
$ac_objext conftest
$ac_exeext
6036 if { (eval echo "$as_me:6036: \"$ac_link\"") >&5
6037 (eval $ac_link) 2>&5
6039 echo "$as_me:6039: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try
='test -s conftest$ac_exeext'
6042 { (eval echo "$as_me:6042: \"$ac_try\"") >&5
6045 echo "$as_me:6045: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 eval "$ac_ac_var=yes"
6049 echo "$as_me: failed program was:" >&5
6050 cat conftest.
$ac_ext >&5
6051 eval "$ac_ac_var=no"
6053 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6055 echo "$as_me:6055: result: `eval echo '${'$ac_ac_var'}'`" >&5
6056 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6057 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6058 cat >>confdefs.h
<<EOF
6059 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6065 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6066 if test "${with_libiconv_prefix+set}" = set; then
6067 withval
="$with_libiconv_prefix"
6069 for dir
in `echo "$withval" | tr : ' '`; do
6070 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
6071 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
6076 echo "$as_me:6076: checking for iconv" >&5
6077 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6078 if test "${am_cv_func_iconv+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 am_cv_func_iconv
="no, consider installing GNU libiconv"
6084 cat >conftest.
$ac_ext <<_ACEOF
6085 #line 6085 "configure"
6086 #include "confdefs.h"
6092 iconv_t cd = iconv_open("","");
6093 iconv(cd,NULL,NULL,NULL,NULL);
6099 rm -f conftest.
$ac_objext conftest
$ac_exeext
6100 if { (eval echo "$as_me:6100: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>&5
6103 echo "$as_me:6103: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try
='test -s conftest$ac_exeext'
6106 { (eval echo "$as_me:6106: \"$ac_try\"") >&5
6109 echo "$as_me:6109: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 am_cv_func_iconv
=yes
6113 echo "$as_me: failed program was:" >&5
6114 cat conftest.
$ac_ext >&5
6116 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6117 if test "$am_cv_func_iconv" != yes; then
6118 am_save_LIBS
="$LIBS"
6119 LIBS
="$LIBS -liconv"
6120 cat >conftest.
$ac_ext <<_ACEOF
6121 #line 6121 "configure"
6122 #include "confdefs.h"
6128 iconv_t cd = iconv_open("","");
6129 iconv(cd,NULL,NULL,NULL,NULL);
6135 rm -f conftest.
$ac_objext conftest
$ac_exeext
6136 if { (eval echo "$as_me:6136: \"$ac_link\"") >&5
6137 (eval $ac_link) 2>&5
6139 echo "$as_me:6139: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try
='test -s conftest$ac_exeext'
6142 { (eval echo "$as_me:6142: \"$ac_try\"") >&5
6145 echo "$as_me:6145: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6148 am_cv_func_iconv
=yes
6150 echo "$as_me: failed program was:" >&5
6151 cat conftest.
$ac_ext >&5
6153 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6154 LIBS
="$am_save_LIBS"
6158 echo "$as_me:6158: result: $am_cv_func_iconv" >&5
6159 echo "${ECHO_T}$am_cv_func_iconv" >&6
6160 if test "$am_cv_func_iconv" = yes; then
6162 cat >>confdefs.h
<<\EOF
6163 #define HAVE_ICONV 1
6166 echo "$as_me:6166: checking for iconv declaration" >&5
6167 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6168 if test "${am_cv_proto_iconv+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 cat >conftest.
$ac_ext <<_ACEOF
6173 #line 6173 "configure"
6174 #include "confdefs.h"
6182 #if defined(__STDC__) || defined(__cplusplus)
6183 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6196 rm -f conftest.
$ac_objext
6197 if { (eval echo "$as_me:6197: \"$ac_compile\"") >&5
6198 (eval $ac_compile) 2>&5
6200 echo "$as_me:6200: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try
='test -s conftest.$ac_objext'
6203 { (eval echo "$as_me:6203: \"$ac_try\"") >&5
6206 echo "$as_me:6206: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 am_cv_proto_iconv_arg1
=""
6210 echo "$as_me: failed program was:" >&5
6211 cat conftest.
$ac_ext >&5
6212 am_cv_proto_iconv_arg1
="const"
6214 rm -f conftest.
$ac_objext conftest.
$ac_ext
6215 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6218 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6219 echo "$as_me:6219: result: ${ac_t:-
6220 }$am_cv_proto_iconv" >&5
6221 echo "${ECHO_T}${ac_t:-
6222 }$am_cv_proto_iconv" >&6
6224 cat >>confdefs.h
<<EOF
6225 #define ICONV_CONST $am_cv_proto_iconv_arg1
6230 if test "$am_cv_lib_iconv" = yes; then
6234 echo "$as_me:6234: checking for nl_langinfo and CODESET" >&5
6235 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6236 if test "${am_cv_langinfo_codeset+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 cat >conftest.
$ac_ext <<_ACEOF
6240 #line 6240 "configure"
6241 #include "confdefs.h"
6242 #include <langinfo.h>
6246 char* cs = nl_langinfo(CODESET);
6251 rm -f conftest.
$ac_objext conftest
$ac_exeext
6252 if { (eval echo "$as_me:6252: \"$ac_link\"") >&5
6253 (eval $ac_link) 2>&5
6255 echo "$as_me:6255: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try
='test -s conftest$ac_exeext'
6258 { (eval echo "$as_me:6258: \"$ac_try\"") >&5
6261 echo "$as_me:6261: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 am_cv_langinfo_codeset
=yes
6265 echo "$as_me: failed program was:" >&5
6266 cat conftest.
$ac_ext >&5
6267 am_cv_langinfo_codeset
=no
6269 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6272 echo "$as_me:6272: result: $am_cv_langinfo_codeset" >&5
6273 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6274 if test $am_cv_langinfo_codeset = yes; then
6276 cat >>confdefs.h
<<\EOF
6277 #define HAVE_LANGINFO_CODESET 1
6282 if test $ac_cv_header_locale_h = yes; then
6283 echo "$as_me:6283: checking for LC_MESSAGES" >&5
6284 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6285 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 cat >conftest.
$ac_ext <<_ACEOF
6289 #line 6289 "configure"
6290 #include "confdefs.h"
6300 rm -f conftest.
$ac_objext conftest
$ac_exeext
6301 if { (eval echo "$as_me:6301: \"$ac_link\"") >&5
6302 (eval $ac_link) 2>&5
6304 echo "$as_me:6304: \$? = $ac_status" >&5
6305 (exit $ac_status); } &&
6306 { ac_try
='test -s conftest$ac_exeext'
6307 { (eval echo "$as_me:6307: \"$ac_try\"") >&5
6310 echo "$as_me:6310: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
6312 am_cv_val_LC_MESSAGES
=yes
6314 echo "$as_me: failed program was:" >&5
6315 cat conftest.
$ac_ext >&5
6316 am_cv_val_LC_MESSAGES
=no
6318 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6320 echo "$as_me:6320: result: $am_cv_val_LC_MESSAGES" >&5
6321 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6322 if test $am_cv_val_LC_MESSAGES = yes; then
6324 cat >>confdefs.h
<<\EOF
6325 #define HAVE_LC_MESSAGES 1
6330 echo "$as_me:6330: checking whether NLS is requested" >&5
6331 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6332 # Check whether --enable-nls or --disable-nls was given.
6333 if test "${enable_nls+set}" = set; then
6334 enableval
="$enable_nls"
6339 echo "$as_me:6339: result: $USE_NLS" >&5
6340 echo "${ECHO_T}$USE_NLS" >&6
6342 BUILD_INCLUDED_LIBINTL
=no
6343 USE_INCLUDED_LIBINTL
=no
6346 if test "$USE_NLS" = "yes"; then
6348 cat >>confdefs.h
<<\EOF
6349 #define ENABLE_NLS 1
6352 echo "$as_me:6352: checking whether included gettext is requested" >&5
6353 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6355 # Check whether --with-included-gettext or --without-included-gettext was given.
6356 if test "${with_included_gettext+set}" = set; then
6357 withval
="$with_included_gettext"
6358 nls_cv_force_use_gnu_gettext
=$withval
6360 nls_cv_force_use_gnu_gettext
=no
6362 echo "$as_me:6362: result: $nls_cv_force_use_gnu_gettext" >&5
6363 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6365 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
6366 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6369 echo "$as_me:6369: checking for libintl.h" >&5
6370 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6371 if test "${ac_cv_header_libintl_h+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 cat >conftest.
$ac_ext <<_ACEOF
6375 #line 6375 "configure"
6376 #include "confdefs.h"
6377 #include <libintl.h>
6379 if { (eval echo "$as_me:6379: \"$ac_cpp conftest.$ac_ext\"") >&5
6380 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6382 egrep -v '^ *\+' conftest.er1
>conftest.err
6384 cat conftest.err
>&5
6385 echo "$as_me:6385: \$? = $ac_status" >&5
6386 (exit $ac_status); } >/dev
/null
; then
6387 if test -s conftest.err
; then
6388 ac_cpp_err
=$ac_c_preproc_warn_flag
6395 if test -z "$ac_cpp_err"; then
6396 ac_cv_header_libintl_h
=yes
6398 echo "$as_me: failed program was:" >&5
6399 cat conftest.
$ac_ext >&5
6400 ac_cv_header_libintl_h
=no
6402 rm -f conftest.err conftest.
$ac_ext
6404 echo "$as_me:6404: result: $ac_cv_header_libintl_h" >&5
6405 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6406 if test $ac_cv_header_libintl_h = yes; then
6407 echo "$as_me:6407: checking for GNU gettext in libc" >&5
6408 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6409 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 cat >conftest.
$ac_ext <<_ACEOF
6413 #line 6413 "configure"
6414 #include "confdefs.h"
6415 #include <libintl.h>
6416 extern int _nl_msg_cat_cntr;
6420 bindtextdomain ("", "");
6421 return (int) gettext ("") + _nl_msg_cat_cntr
6426 rm -f conftest.
$ac_objext conftest
$ac_exeext
6427 if { (eval echo "$as_me:6427: \"$ac_link\"") >&5
6428 (eval $ac_link) 2>&5
6430 echo "$as_me:6430: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try
='test -s conftest$ac_exeext'
6433 { (eval echo "$as_me:6433: \"$ac_try\"") >&5
6436 echo "$as_me:6436: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 gt_cv_func_gnugettext1_libc
=yes
6440 echo "$as_me: failed program was:" >&5
6441 cat conftest.
$ac_ext >&5
6442 gt_cv_func_gnugettext1_libc
=no
6444 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6446 echo "$as_me:6446: result: $gt_cv_func_gnugettext1_libc" >&5
6447 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6449 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6450 echo "$as_me:6450: checking for GNU gettext in libintl" >&5
6451 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6452 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 gt_save_LIBS
="$LIBS"
6456 LIBS
="$LIBS -lintl $LIBICONV"
6457 cat >conftest.
$ac_ext <<_ACEOF
6458 #line 6458 "configure"
6459 #include "confdefs.h"
6460 #include <libintl.h>
6461 extern int _nl_msg_cat_cntr;
6465 bindtextdomain ("", "");
6466 return (int) gettext ("") + _nl_msg_cat_cntr
6471 rm -f conftest.
$ac_objext conftest
$ac_exeext
6472 if { (eval echo "$as_me:6472: \"$ac_link\"") >&5
6473 (eval $ac_link) 2>&5
6475 echo "$as_me:6475: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try
='test -s conftest$ac_exeext'
6478 { (eval echo "$as_me:6478: \"$ac_try\"") >&5
6481 echo "$as_me:6481: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 gt_cv_func_gnugettext1_libintl
=yes
6485 echo "$as_me: failed program was:" >&5
6486 cat conftest.
$ac_ext >&5
6487 gt_cv_func_gnugettext1_libintl
=no
6489 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6490 LIBS
="$gt_save_LIBS"
6492 echo "$as_me:6492: result: $gt_cv_func_gnugettext1_libintl" >&5
6493 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6496 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6497 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6498 && test "$PACKAGE" != gettext; }; then
6500 cat >>confdefs.h
<<\EOF
6501 #define HAVE_GETTEXT 1
6504 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6505 INTLLIBS
="-lintl $LIBICONV"
6508 gt_save_LIBS
="$LIBS"
6509 LIBS
="$LIBS $INTLLIBS"
6511 for ac_func
in dcgettext
6513 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6514 echo "$as_me:6514: checking for $ac_func" >&5
6515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6516 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 cat >conftest.
$ac_ext <<_ACEOF
6520 #line 6520 "configure"
6521 #include "confdefs.h"
6522 /* System header to define __stub macros and hopefully few prototypes,
6523 which can conflict with char $ac_func (); below. */
6525 /* Override any gcc2 internal prototype to avoid an error. */
6529 /* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */
6537 /* The GNU C library defines this for functions which it implements
6538 to always fail with ENOSYS. Some functions are actually named
6539 something starting with __ and the normal name is an alias. */
6540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6550 rm -f conftest.
$ac_objext conftest
$ac_exeext
6551 if { (eval echo "$as_me:6551: \"$ac_link\"") >&5
6552 (eval $ac_link) 2>&5
6554 echo "$as_me:6554: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try
='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:6557: \"$ac_try\"") >&5
6560 echo "$as_me:6560: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 eval "$ac_ac_var=yes"
6564 echo "$as_me: failed program was:" >&5
6565 cat conftest.
$ac_ext >&5
6566 eval "$ac_ac_var=no"
6568 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6570 echo "$as_me:6570: result: `eval echo '${'$ac_ac_var'}'`" >&5
6571 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6572 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6573 cat >>confdefs.h
<<EOF
6574 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6580 LIBS
="$gt_save_LIBS"
6582 # Extract the first word of "msgfmt", so it can be a program name with args.
6583 set dummy msgfmt
; ac_word
=$2
6584 echo "$as_me:6584: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6586 if test "${ac_cv_path_MSGFMT+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6594 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6595 for ac_dir
in $PATH; do
6596 test -z "$ac_dir" && ac_dir
=.
6597 if test -f $ac_dir/$ac_word; then
6598 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6599 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6605 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
6609 MSGFMT
="$ac_cv_path_MSGFMT"
6610 if test -n "$MSGFMT"; then
6611 echo "$as_me:6611: result: $MSGFMT" >&5
6612 echo "${ECHO_T}$MSGFMT" >&6
6614 echo "$as_me:6614: result: no" >&5
6615 echo "${ECHO_T}no" >&6
6617 if test "$MSGFMT" != "no"; then
6618 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6619 set dummy gmsgfmt
; ac_word
=$2
6620 echo "$as_me:6620: checking for $ac_word" >&5
6621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6622 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6630 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
6632 for ac_dir
in $ac_dummy; do
6634 test -z "$ac_dir" && ac_dir
=.
6635 if $as_executable_p "$ac_dir/$ac_word"; then
6636 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6637 echo "$as_me:6637: found $ac_dir/$ac_word" >&5
6642 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6646 GMSGFMT
=$ac_cv_path_GMSGFMT
6648 if test -n "$GMSGFMT"; then
6649 echo "$as_me:6649: result: $GMSGFMT" >&5
6650 echo "${ECHO_T}$GMSGFMT" >&6
6652 echo "$as_me:6652: result: no" >&5
6653 echo "${ECHO_T}no" >&6
6658 # Extract the first word of "xgettext", so it can be a program name with args.
6659 set dummy xgettext
; ac_word
=$2
6660 echo "$as_me:6660: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6662 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6670 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6671 for ac_dir
in $PATH; do
6672 test -z "$ac_dir" && ac_dir
=.
6673 if test -f $ac_dir/$ac_word; then
6674 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6675 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6681 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6685 XGETTEXT
="$ac_cv_path_XGETTEXT"
6686 if test -n "$XGETTEXT"; then
6687 echo "$as_me:6687: result: $XGETTEXT" >&5
6688 echo "${ECHO_T}$XGETTEXT" >&6
6690 echo "$as_me:6690: result: no" >&5
6691 echo "${ECHO_T}no" >&6
6699 if test "$CATOBJEXT" = "NONE"; then
6700 nls_cv_use_gnu_gettext
=yes
6704 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6705 INTLOBJS
="\$(GETTOBJS)"
6706 # Extract the first word of "msgfmt", so it can be a program name with args.
6707 set dummy msgfmt
; ac_word
=$2
6708 echo "$as_me:6708: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6710 if test "${ac_cv_path_MSGFMT+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6718 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6719 for ac_dir
in $PATH; do
6720 test -z "$ac_dir" && ac_dir
=.
6721 if test -f $ac_dir/$ac_word; then
6722 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6723 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6729 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
6733 MSGFMT
="$ac_cv_path_MSGFMT"
6734 if test -n "$MSGFMT"; then
6735 echo "$as_me:6735: result: $MSGFMT" >&5
6736 echo "${ECHO_T}$MSGFMT" >&6
6738 echo "$as_me:6738: result: no" >&5
6739 echo "${ECHO_T}no" >&6
6742 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6743 set dummy gmsgfmt
; ac_word
=$2
6744 echo "$as_me:6744: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6746 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6754 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
6756 for ac_dir
in $ac_dummy; do
6758 test -z "$ac_dir" && ac_dir
=.
6759 if $as_executable_p "$ac_dir/$ac_word"; then
6760 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6761 echo "$as_me:6761: found $ac_dir/$ac_word" >&5
6766 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6770 GMSGFMT
=$ac_cv_path_GMSGFMT
6772 if test -n "$GMSGFMT"; then
6773 echo "$as_me:6773: result: $GMSGFMT" >&5
6774 echo "${ECHO_T}$GMSGFMT" >&6
6776 echo "$as_me:6776: result: no" >&5
6777 echo "${ECHO_T}no" >&6
6780 # Extract the first word of "xgettext", so it can be a program name with args.
6781 set dummy xgettext
; ac_word
=$2
6782 echo "$as_me:6782: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6784 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6792 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6793 for ac_dir
in $PATH; do
6794 test -z "$ac_dir" && ac_dir
=.
6795 if test -f $ac_dir/$ac_word; then
6796 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6797 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6803 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6807 XGETTEXT
="$ac_cv_path_XGETTEXT"
6808 if test -n "$XGETTEXT"; then
6809 echo "$as_me:6809: result: $XGETTEXT" >&5
6810 echo "${ECHO_T}$XGETTEXT" >&6
6812 echo "$as_me:6812: result: no" >&5
6813 echo "${ECHO_T}no" >&6
6816 BUILD_INCLUDED_LIBINTL
=yes
6817 USE_INCLUDED_LIBINTL
=yes
6819 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6820 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6823 if test "$XGETTEXT" != ":"; then
6824 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
6827 echo "$as_me:6827: result: found xgettext program is not GNU xgettext; ignore it" >&5
6828 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6835 ac_config_commands
="$ac_config_commands default-2"
6837 if test "$PACKAGE" = gettext; then
6838 BUILD_INCLUDED_LIBINTL
=yes
6841 for ac_prog
in bison
6843 # Extract the first word of "$ac_prog", so it can be a program name with args.
6844 set dummy
$ac_prog; ac_word
=$2
6845 echo "$as_me:6845: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6847 if test "${ac_cv_prog_INTLBISON+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 if test -n "$INTLBISON"; then
6851 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6853 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
6855 for ac_dir
in $ac_dummy; do
6857 test -z "$ac_dir" && ac_dir
=.
6858 $as_executable_p "$ac_dir/$ac_word" || continue
6859 ac_cv_prog_INTLBISON
="$ac_prog"
6860 echo "$as_me:6860: found $ac_dir/$ac_word" >&5
6866 INTLBISON
=$ac_cv_prog_INTLBISON
6867 if test -n "$INTLBISON"; then
6868 echo "$as_me:6868: result: $INTLBISON" >&5
6869 echo "${ECHO_T}$INTLBISON" >&6
6871 echo "$as_me:6871: result: no" >&5
6872 echo "${ECHO_T}no" >&6
6875 test -n "$INTLBISON" && break
6878 if test -z "$INTLBISON"; then
6881 echo "$as_me:6881: checking version of bison" >&5
6882 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6883 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6884 case $ac_prog_version in
6885 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6886 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
6887 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6888 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6890 echo "$as_me:6890: result: $ac_prog_version" >&5
6891 echo "${ECHO_T}$ac_prog_version" >&6
6893 if test $ac_verc_fail = yes; then
6897 for lang
in $ALL_LINGUAS; do
6898 GMOFILES
="$GMOFILES $lang.gmo"
6899 POFILES
="$POFILES $lang.po"
6903 nls_cv_header_libgt
=
6911 if test "x$CATOBJEXT" != "x"; then
6912 if test "x$ALL_LINGUAS" = "x"; then
6915 echo "$as_me:6915: checking for catalogs to be installed" >&5
6916 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6918 for presentlang
in $ALL_LINGUAS; do
6920 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
6921 # Use the presentlang catalog if desiredlang is
6922 # a. equal to presentlang, or
6923 # b. a variant of presentlang (because in this case,
6924 # presentlang can be used as a fallback for messages
6925 # which are not translated in the desiredlang catalog).
6926 case "$desiredlang" in
6927 "$presentlang"*) useit
=yes;;
6930 if test $useit = yes; then
6931 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
6934 LINGUAS
=$NEW_LINGUAS
6935 echo "$as_me:6935: result: $LINGUAS" >&5
6936 echo "${ECHO_T}$LINGUAS" >&6
6939 if test -n "$LINGUAS"; then
6940 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
6945 if test -n "$ac_aux_dir"; then
6946 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6948 if test -z "$MKINSTALLDIRS"; then
6949 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6952 INTL_LIBTOOL_SUFFIX_PREFIX
=
6954 # This is necessary so that .o files in LIBOBJS are also built via
6955 # the ANSI2KNR-filtering rules.
6956 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
6958 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile tests/atconfig"
6959 cat >confcache
<<\_ACEOF
6960 # This file is a shell script that caches the results of configure
6961 # tests run on this system so they can be shared between configure
6962 # scripts and configure runs, see configure's option --config-cache.
6963 # It is not useful on other systems. If it contains results you don't
6964 # want to keep, you may remove or edit it.
6966 # config.status only pays attention to the cache file if you give it
6967 # the --recheck option to rerun configure.
6969 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6975 # The following way of writing the cache mishandles newlines in values,
6976 # but we know of no workaround that is simple, portable, and efficient.
6977 # So, don't put newlines in cache variables' values.
6978 # Ultrix sh set writes to stderr and can't be redirected directly,
6979 # and sets the high bit in the cache file unless we assign to the vars.
6982 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6984 # `set' does not quote correctly, so add quotes (double-quote
6985 # substitution turns \\\\ into \\, and sed turns \\ into \).
6988 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6991 # `set' quotes correctly as required by POSIX, so do not add quotes.
6993 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7002 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7004 if cmp -s $cache_file confcache
; then :; else
7005 if test -w $cache_file; then
7006 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7007 cat confcache
>$cache_file
7009 echo "not updating unwritable cache $cache_file"
7014 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7015 # Let make expand exec_prefix.
7016 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7018 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7019 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7020 # trailing colons and then remove the whole line if VPATH becomes empty
7021 # (actually we leave an empty line to preserve line numbers).
7022 if test "x$srcdir" = x.
; then
7023 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7024 s/:*\$(srcdir):*/:/;
7025 s/:*\${srcdir}:*/:/;
7027 s/^\([^=]*=[ ]*\):*/\1/;
7033 DEFS
=-DHAVE_CONFIG_H
7035 : ${CONFIG_STATUS=./config.status}
7036 ac_clean_files_save
=$ac_clean_files
7037 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7038 { echo "$as_me:7038: creating $CONFIG_STATUS" >&5
7039 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7040 cat >$CONFIG_STATUS <<_ACEOF
7042 # Generated automatically by configure.
7043 # Run this file to recreate the current configuration.
7044 # Compiler output produced by configure, useful for debugging
7045 # configure, is in config.log if it exists.
7048 SHELL=\${CONFIG_SHELL-$SHELL}
7049 ac_cs_invocation="\$0 \$@"
7053 cat >>$CONFIG_STATUS <<\_ACEOF
7054 # Be Bourne compatible
7055 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7058 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7062 # Name of the executable.
7063 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
7065 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7071 rm -f conf$$ conf$$.exe conf$$.
file
7073 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7074 # We could just check for DJGPP; but this test a) works b) is more generic
7075 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7076 if test -f conf$$.exe
; then
7077 # Don't use ln at all; we don't have any links
7082 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7087 rm -f conf$$ conf$$.exe conf$$.
file
7089 as_executable_p
="test -f"
7091 # Support unset when possible.
7092 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
7099 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
7100 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
7101 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
7102 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
7103 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
7104 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
7105 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
7106 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
7109 # We need space, tab and new line, in precisely that order.
7115 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=:; export CDPATH
; }
7121 # Files that config.status was made for.
7122 if test -n "$ac_config_files"; then
7123 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7126 if test -n "$ac_config_headers"; then
7127 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7130 if test -n "$ac_config_links"; then
7131 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7134 if test -n "$ac_config_commands"; then
7135 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7138 cat >>$CONFIG_STATUS <<\EOF
7141 \`$as_me' instantiates files from templates according to the
7142 current configuration.
7144 Usage: $0 [OPTIONS] [FILE]...
7146 -h, --help print this help, then exit
7147 -V, --version print version number, then exit
7148 -d, --debug don't remove temporary files
7149 --recheck update $as_me by reconfiguring in the same conditions
7150 --file=FILE[:TEMPLATE]
7151 instantiate the configuration file FILE
7152 --header=FILE[:TEMPLATE]
7153 instantiate the configuration header FILE
7155 Configuration files:
7158 Configuration headers:
7161 Configuration commands:
7164 Report bugs to <bug-autoconf@gnu.org>."
7167 cat >>$CONFIG_STATUS <<EOF
7169 bison config.status 1.28a
7170 configured by $0, generated by GNU Autoconf 2.50,
7171 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7173 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7174 Free Software Foundation, Inc.
7175 This config.status script is free software; the Free Software Foundation
7176 gives unlimited permission to copy, distribute and modify it."
7181 cat >>$CONFIG_STATUS <<\EOF
7182 # If no file are specified by the user, then we need to provide default
7183 # value. By we need to know if files were specified by the user.
7189 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7190 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7192 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
7196 *) # This is not an option, so the user has probably given explicit
7198 ac_need_defaults
=false
;;
7202 # Handling of the options.
7204 cat >>$CONFIG_STATUS <<EOF
7205 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7206 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7207 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7209 cat >>$CONFIG_STATUS <<\EOF
7210 --version | --vers* | -V )
7211 echo "$ac_cs_version"; exit 0 ;;
7213 # Conflict between --help and --header
7214 { { echo "$as_me:7214: error: ambiguous option: $1
7215 Try \`$0 --help' for more information." >&5
7216 echo "$as_me: error: ambiguous option: $1
7217 Try \`$0 --help' for more information." >&2;}
7218 { (exit 1); exit 1; }; };;
7219 --help | --hel | -h )
7220 echo "$ac_cs_usage"; exit 0 ;;
7221 --debug | --d* | -d )
7223 --file | --fil | --fi | --f )
7225 CONFIG_FILES
="$CONFIG_FILES $1"
7226 ac_need_defaults
=false
;;
7227 --header | --heade | --head | --hea )
7229 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
7230 ac_need_defaults
=false
;;
7232 # Handling of arguments.
7233 'Makefile' ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7234 'config/Makefile' ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
7235 'intl/Makefile' ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
7236 'po/Makefile.in' ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
7237 'lib/Makefile' ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
7238 'src/Makefile' ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
7239 'doc/Makefile' ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
7240 'm4/Makefile' ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
7241 'tests/Makefile' ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
7242 'tests/atconfig' ) CONFIG_FILES
="$CONFIG_FILES tests/atconfig" ;;
7243 'default-1' ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
7244 'default-2' ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
7245 'config.h' ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
7248 -*) { { echo "$as_me:7248: error: unrecognized option: $1
7249 Try \`$0 --help' for more information." >&5
7250 echo "$as_me: error: unrecognized option: $1
7251 Try \`$0 --help' for more information." >&2;}
7252 { (exit 1); exit 1; }; } ;;
7253 *) { { echo "$as_me:7253: error: invalid argument: $1" >&5
7254 echo "$as_me: error: invalid argument: $1" >&2;}
7255 { (exit 1); exit 1; }; };;
7263 ## ----------------------- ##
7264 ## Running config.status. ##
7265 ## ----------------------- ##
7267 This file was extended by $as_me (bison 1.28a) 2.50, executed with
7269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7274 cat >>$CONFIG_STATUS <<\EOF
7275 # If the user did not use the arguments to specify the items to instantiate,
7276 # then the envvar interface is used. Set only those that are not.
7277 # We use the long form for the default assignment because of an extremely
7278 # bizarre bug on SunOS 4.1.3.
7279 if $ac_need_defaults; then
7280 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7281 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7282 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7285 # Create a temporary directory, and hook for its removal unless debugging.
7288 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7289 trap '{ (exit $?); exit $?; }' 1 2 13 15
7292 # Create a (secure) tmp directory for tmp files.
7295 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7296 test -n "$tmp" && test -d "$tmp"
7299 tmp
=$TMPDIR/cs$$
-$RANDOM
7300 (umask 077 && mkdir $tmp)
7303 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7304 { (exit 1); exit 1; }
7309 cat >>$CONFIG_STATUS <<EOF
7311 # INIT-COMMANDS section.
7316 cat >>$CONFIG_STATUS <<EOF
7319 # CONFIG_FILES section.
7322 # No need to generate the scripts if there are no CONFIG_FILES.
7323 # This happens for instance when ./config.status config.h
7324 if test -n "\$CONFIG_FILES"; then
7325 # Protect against being on the right side of a sed subst in config.status.
7326 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7327 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7328 s,@SHELL@,$SHELL,;t t
7329 s,@exec_prefix@,$exec_prefix,;t t
7330 s,@prefix@,$prefix,;t t
7331 s,@program_transform_name@,$program_transform_name,;t t
7332 s,@bindir@,$bindir,;t t
7333 s,@sbindir@,$sbindir,;t t
7334 s,@libexecdir@,$libexecdir,;t t
7335 s,@datadir@,$datadir,;t t
7336 s,@sysconfdir@,$sysconfdir,;t t
7337 s,@sharedstatedir@,$sharedstatedir,;t t
7338 s,@localstatedir@,$localstatedir,;t t
7339 s,@libdir@,$libdir,;t t
7340 s,@includedir@,$includedir,;t t
7341 s,@oldincludedir@,$oldincludedir,;t t
7342 s,@infodir@,$infodir,;t t
7343 s,@mandir@,$mandir,;t t
7344 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7345 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7346 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7347 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7348 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7349 s,@ECHO_C@,$ECHO_C,;t t
7350 s,@ECHO_N@,$ECHO_N,;t t
7351 s,@ECHO_T@,$ECHO_T,;t t
7352 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7355 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7356 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7357 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7358 s,@PACKAGE@,$PACKAGE,;t t
7359 s,@VERSION@,$VERSION,;t t
7360 s,@ACLOCAL@,$ACLOCAL,;t t
7361 s,@AUTOCONF@,$AUTOCONF,;t t
7362 s,@AUTOMAKE@,$AUTOMAKE,;t t
7363 s,@AUTOHEADER@,$AUTOHEADER,;t t
7364 s,@MAKEINFO@,$MAKEINFO,;t t
7365 s,@SET_MAKE@,$SET_MAKE,;t t
7366 s,@AT_TESTPATH@,$AT_TESTPATH,;t t
7368 s,@CFLAGS@,$CFLAGS,;t t
7369 s,@LDFLAGS@,$LDFLAGS,;t t
7370 s,@CPPFLAGS@,$CPPFLAGS,;t t
7371 s,@ac_ct_CC@,$ac_ct_CC,;t t
7372 s,@EXEEXT@,$EXEEXT,;t t
7373 s,@OBJEXT@,$OBJEXT,;t t
7375 s,@RANLIB@,$RANLIB,;t t
7376 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7378 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
7380 s,@ANSI2KNR@,$ANSI2KNR,;t t
7381 s,@ALLOCA@,$ALLOCA,;t t
7382 s,@LIBOBJS@,$LIBOBJS,;t t
7383 s,@build@,$build,;t t
7384 s,@build_cpu@,$build_cpu,;t t
7385 s,@build_vendor@,$build_vendor,;t t
7386 s,@build_os@,$build_os,;t t
7388 s,@host_cpu@,$host_cpu,;t t
7389 s,@host_vendor@,$host_vendor,;t t
7390 s,@host_os@,$host_os,;t t
7391 s,@GLIBC21@,$GLIBC21,;t t
7392 s,@LIBICONV@,$LIBICONV,;t t
7393 s,@USE_NLS@,$USE_NLS,;t t
7394 s,@MSGFMT@,$MSGFMT,;t t
7395 s,@GMSGFMT@,$GMSGFMT,;t t
7396 s,@XGETTEXT@,$XGETTEXT,;t t
7397 s,@INTLBISON@,$INTLBISON,;t t
7398 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
7399 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7400 s,@CATALOGS@,$CATALOGS,;t t
7401 s,@CATOBJEXT@,$CATOBJEXT,;t t
7402 s,@GMOFILES@,$GMOFILES,;t t
7403 s,@INTLLIBS@,$INTLLIBS,;t t
7404 s,@INTLOBJS@,$INTLOBJS,;t t
7405 s,@POFILES@,$POFILES,;t t
7406 s,@POSUB@,$POSUB,;t t
7407 s,@DATADIRNAME@,$DATADIRNAME,;t t
7408 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7409 s,@GENCAT@,$GENCAT,;t t
7410 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7411 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
7416 cat >>$CONFIG_STATUS <<\EOF
7417 # Split the substitutions into bite-sized pieces for seds with
7418 # small command number limits, like on Digital OSF/1 and HP-UX.
7420 ac_sed_frag
=1 # Number of current file.
7421 ac_beg
=1 # First line for current file.
7422 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7425 while $ac_more_lines; do
7426 if test $ac_beg -gt 1; then
7427 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7429 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7431 if test ! -s $tmp/subs.frag
; then
7434 # The purpose of the label and of the branching condition is to
7435 # speed up the sed processing (if there are no `@' at all, there
7436 # is no need to browse any of the substitutions).
7437 # These are the two extra sed commands mentioned above.
7439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
7440 if test -z "$ac_sed_cmds"; then
7441 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7443 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7445 ac_sed_frag
=`expr $ac_sed_frag + 1`
7447 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7450 if test -z "$ac_sed_cmds"; then
7453 fi # test -n "$CONFIG_FILES"
7456 cat >>$CONFIG_STATUS <<\EOF
7457 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7458 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7460 - | *:- | *:-:* ) # input from stdin
7462 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7463 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7464 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7465 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7466 * ) ac_file_in
=$ac_file.
in ;;
7469 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7470 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7471 X"$ac_file" : 'X\(//\)[^/]' \| \
7472 X"$ac_file" : 'X\(//\)$' \| \
7473 X"$ac_file" : 'X\(/\)' \| \
7474 . : '\(.\)' 2>/dev/null ||
7476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7478 /^X\(\/\/\)$/{ s//\1/; q; }
7479 /^X\(\/\).*/{ s//\1/; q; }
7481 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7483 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
7487 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7488 case $as_mkdir_dir in
7489 # Skip DOS drivespec
7490 ?
:) as_incr_dir
=$as_mkdir_dir ;;
7492 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
7493 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7498 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
7499 # A "../" for each directory in $ac_dir_suffix.
7500 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7502 ac_dir_suffix
= ac_dots
=
7507 if test -z "$ac_dots"; then
7510 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
7513 ac_srcdir
=$srcdir$ac_dir_suffix;
7514 ac_top_srcdir
=$srcdir ;;
7516 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
7517 ac_top_srcdir
=$ac_dots$srcdir ;;
7521 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7522 *) ac_INSTALL
=$ac_dots$INSTALL ;;
7525 if test x
"$ac_file" != x
-; then
7526 { echo "$as_me:7526: creating $ac_file" >&5
7527 echo "$as_me: creating $ac_file" >&6;}
7530 # Let's still pretend it is `configure' which instantiates (i.e., don't
7531 # use $as_me), people would be surprised to read:
7532 # /* config.h. Generated automatically by config.status. */
7533 configure_input
="Generated automatically from `echo $ac_file_in |
7534 sed 's,.*/,,'` by configure."
7536 # First look for the input files in the build tree, otherwise in the
7538 ac_file_inputs
=`IFS=:
7539 for f in $ac_file_in; do
7541 -) echo $tmp/stdin ;;
7543 # Absolute (can't be DOS-style, as IFS=:)
7544 test -f "$f" || { { echo "$as_me:7544: error: cannot find input file: $f" >&5
7545 echo "$as_me: error: cannot find input file: $f" >&2;}
7546 { (exit 1); exit 1; }; }
7549 if test -f "$f"; then
7552 elif test -f "$srcdir/$f"; then
7557 { { echo "$as_me:7557: error: cannot find input file: $f" >&5
7558 echo "$as_me: error: cannot find input file: $f" >&2;}
7559 { (exit 1); exit 1; }; }
7562 done` || { (exit 1); exit 1; }
7564 cat >>$CONFIG_STATUS <<EOF
7568 cat >>$CONFIG_STATUS <<\EOF
7570 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
7571 s
,@configure_input@
,$configure_input,;t t
7572 s
,@srcdir@
,$ac_srcdir,;t t
7573 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7574 s
,@INSTALL@
,$ac_INSTALL,;t t
7575 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7577 if test x"$ac_file" != x-; then
7578 mv $tmp/out $ac_file
7586 cat >>$CONFIG_STATUS <<\EOF
7589 # CONFIG_HEADER section.
7592 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7593 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7595 # ac_d sets the value in "#define NAME VALUE" lines.
7596 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7597 ac_dB
='[ ].*$,\1#\2'
7600 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7601 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7602 ac_uB
='$,\1#\2define\3'
7606 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7607 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7609 - | *:- | *:-:* ) # input from stdin
7611 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7612 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7613 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7614 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7615 * ) ac_file_in
=$ac_file.
in ;;
7618 test x
"$ac_file" != x
- && { echo "$as_me:7618: creating $ac_file" >&5
7619 echo "$as_me: creating $ac_file" >&6;}
7621 # First look for the input files in the build tree, otherwise in the
7623 ac_file_inputs
=`IFS=:
7624 for f in $ac_file_in; do
7626 -) echo $tmp/stdin ;;
7628 # Absolute (can't be DOS-style, as IFS=:)
7629 test -f "$f" || { { echo "$as_me:7629: error: cannot find input file: $f" >&5
7630 echo "$as_me: error: cannot find input file: $f" >&2;}
7631 { (exit 1); exit 1; }; }
7634 if test -f "$f"; then
7637 elif test -f "$srcdir/$f"; then
7642 { { echo "$as_me:7642: error: cannot find input file: $f" >&5
7643 echo "$as_me: error: cannot find input file: $f" >&2;}
7644 { (exit 1); exit 1; }; }
7647 done` || { (exit 1); exit 1; }
7648 # Remove the trailing spaces.
7649 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7653 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7654 # `conftest.undefs', that substitutes the proper values into
7655 # config.h.in to produce config.h. The first handles `#define'
7656 # templates, and the second `#undef' templates.
7657 # And first: Protect against being on the right side of a sed subst in
7658 # config.status. Protect against being in an unquoted here document
7660 rm -f conftest.defines conftest.undefs
7661 # Using a here document instead of a string reduces the quoting nightmare.
7662 # Putting comments in sed scripts is not portable.
7664 # `end' is used to avoid that the second main sed command (meant for
7665 # 0-ary CPP macros) applies to n-ary macro definitions.
7666 # See the Autoconf documentation for `clear'.
7667 cat >confdef2sed.
sed <<\EOF
7672 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7674 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7677 # If some macros were called several times there might be several times
7678 # the same #defines, which is useless. Nevertheless, we may not want to
7679 # sort them, since we want the *last* AC-DEFINE to be honored.
7680 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7681 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7682 rm -f confdef2sed.sed
7684 # This sed command replaces #undef with comments. This is necessary, for
7685 # example, in the case of _POSIX_SOURCE, which is predefined and required
7686 # on some systems where configure will not decide to define it.
7687 cat >>conftest.undefs <<\EOF
7688 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7691 # Break up conftest.defines because some shells have a limit on the size
7692 # of here documents, and old seds have small limits too (100 cmds).
7693 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7694 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7695 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7696 echo ' :' >>$CONFIG_STATUS
7698 while grep . conftest.defines >/dev/null
7700 # Write a limited-size here document to $tmp/defines.sed.
7701 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7702 # Speed up: don't consider the non `#define' lines.
7703 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7704 # Work around the forget-to-reset-the-flag bug.
7705 echo 't clr' >>$CONFIG_STATUS
7706 echo ': clr' >>$CONFIG_STATUS
7707 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7709 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7713 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7714 rm -f conftest.defines
7715 mv conftest.
tail conftest.defines
7717 rm -f conftest.defines
7718 echo ' fi # egrep' >>$CONFIG_STATUS
7719 echo >>$CONFIG_STATUS
7721 # Break up conftest.undefs because some shells have a limit on the size
7722 # of here documents, and old seds have small limits too (100 cmds).
7723 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7725 while grep . conftest.undefs
>/dev
/null
7727 # Write a limited-size here document to $tmp/undefs.sed.
7728 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7729 # Speed up: don't consider the non
`#undef'
7730 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7731 # Work around the forget-to-reset-the-flag bug.
7732 echo 't clr' >>$CONFIG_STATUS
7733 echo ': clr' >>$CONFIG_STATUS
7734 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7736 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7740 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7741 rm -f conftest.undefs
7742 mv conftest.tail conftest.undefs
7744 rm -f conftest.undefs
7746 cat >>$CONFIG_STATUS <<\EOF
7747 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7748 # use $as_me), people would be surprised to read:
7749 # /* config.h. Generated automatically by config.status. */
7750 if test x
"$ac_file" = x
-; then
7751 echo "/* Generated automatically by configure. */" >$tmp/config.h
7753 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7755 cat $tmp/in >>$tmp/config.h
7757 if test x
"$ac_file" != x
-; then
7758 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
7759 { echo "$as_me:7759: $ac_file is unchanged" >&5
7760 echo "$as_me: $ac_file is unchanged" >&6;}
7762 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7763 X"$ac_file" : 'X\(//\)[^/]' \| \
7764 X"$ac_file" : 'X\(//\)$' \| \
7765 X"$ac_file" : 'X\(/\)' \| \
7766 . : '\(.\)' 2>/dev/null ||
7768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7770 /^X\(\/\/\)$/{ s//\1/; q; }
7771 /^X\(\/\).*/{ s//\1/; q; }
7773 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7775 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
7779 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7780 case $as_mkdir_dir in
7781 # Skip DOS drivespec
7782 ?
:) as_incr_dir
=$as_mkdir_dir ;;
7784 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
7785 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7792 mv $tmp/config.h
$ac_file
7800 cat >>$CONFIG_STATUS <<\EOF
7803 # CONFIG_COMMANDS section.
7805 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
7806 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7807 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7810 default
-1 ) test -z "$CONFIG_HEADERS" || echo timestamp
> stamp
-h ;;
7811 default
-2 ) for ac_file
in $CONFIG_FILES; do
7812 # Support "outfile[:infile[:infile...]]"
7814 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7816 # PO directories have a Makefile.in generated from Makefile.in.in.
7817 case "$ac_file" in */Makefile.
in)
7818 # Adjust a relative srcdir.
7819 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7820 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
7821 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7822 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
7823 case "$ac_given_srcdir" in
7824 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
7825 /*) top_srcdir
="$ac_given_srcdir" ;;
7826 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7828 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7829 rm -f "$ac_dir/POTFILES"
7830 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7831 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
7832 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7833 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7842 cat >>$CONFIG_STATUS <<\EOF
7844 { (exit 0); exit 0; }
7846 chmod +x
$CONFIG_STATUS
7847 ac_clean_files
=$ac_clean_files_save
7849 # configure is writing to config.log, and then calls config.status.
7850 # config.status does its own redirection, appending to config.log.
7851 # Unfortunately, on DOS this fails, as config.log is still kept open
7852 # by configure, so config.status won't be able to write to it; its
7853 # output is simply discarded. So we exec the FD to /dev/null,
7854 # effectively closing config.log, so it can be properly (re)opened and
7855 # appended to by config.status. When coming back to configure, we
7856 # need to make the FD available again.
7857 if test "$no_create" != yes; then
7860 $SHELL $CONFIG_STATUS || ac_cs_success
=false
7862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7863 # would make configure fail if this is the last instruction.
7864 $ac_cs_success || { (exit 1); exit 1; }