2 # From configure.in for Bash 3.0, version 3.166, from autoconf version AC_ACVERSION.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for bash 3.0-release.
6 # Report bugs to <bug-bash@gnu.org>.
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
271 PACKAGE_TARNAME='bash'
272 PACKAGE_VERSION='3.0-release'
273 PACKAGE_STRING='bash 3.0-release'
274 PACKAGE_BUGREPORT='bug-bash@gnu.org'
276 ac_unique_file="shell.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os EMACS lispdir DEBUGGER_START_FILE TESTSCRIPT PURIFY MALLOC_TARGET MALLOC_SRC MALLOC_LIB MALLOC_LIBRARY MALLOC_LDFLAGS MALLOC_DEP htmldir HELPDIR HELPDIRDEFINE HELPINSTALL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP SIGNAMES_H CC_FOR_BUILD STATIC_LD CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD RL_VERSION RL_MAJOR RL_MINOR READLINE_LIB READLINE_DEP RL_LIBDIR RL_INCLUDEDIR RL_INCLUDE HISTORY_LIB HISTORY_DEP HIST_LIBDIR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB YACC SET_MAKE MAKE_SHELL MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS INTL_DEP INTL_INC LIBINTL_H SIGLIST_O TERMCAP_LIB TERMCAP_DEP JOBS_O SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS PROFILE_FLAGS incdir BUILD_DIR ARFLAGS BASHVERS RELSTATUS DEBUG MALLOC_DEBUG LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
756 ac_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
757 ac_cv_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
758 ac_cv_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
759 ac_env_CC_set=${CC+set}
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
781 # Report the --help message.
783 if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
787 \`configure' configures bash 3.0-release to adapt to many kinds of systems.
789 Usage: $0 [OPTION]... [VAR=VALUE]...
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
794 Defaults for the options are specified in brackets.
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810 Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
821 For better control, use the options below.
823 Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 if test -n "$ac_init_help"; then
847 case $ac_init_help in
848 short | recursive ) echo "Configuration of bash 3.0-release:";;
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --enable-minimal-config a minimal sh-like configuration
856 --enable-alias enable shell aliases
857 --enable-arith-for-command
858 enable arithmetic for command
859 --enable-array-variables
860 include shell array variables
861 --enable-bang-history turn on csh-style history substitution
862 --enable-brace-expansion
863 include brace expansion
864 --enable-command-timing enable the time reserved word and command timing
865 --enable-cond-command enable the conditional command
866 --enable-cond-regexp enable extgended regular expression matching in
868 --enable-debugger enable support for bash debugger
869 --enable-directory-stack
870 enable builtins pushd/popd/dirs
871 --enable-disabled-builtins
872 allow disabled builtins to still be invoked
873 --enable-dparen-arithmetic
874 include ((...)) command
875 --enable-extended-glob include ksh-style extended pattern matching
876 --enable-help-builtin include the help builtin
877 --enable-history turn on command history
878 --enable-job-control enable job control features
879 --enable-multibyte enable multibyte characters if OS supports them
880 --enable-net-redirections
881 enable /dev/tcp/host/port redirection
882 --enable-process-substitution
883 enable process substitution
884 --enable-progcomp enable programmable completion and the complete
886 --enable-prompt-string-decoding
887 turn on escape character decoding in prompts
888 --enable-readline turn on command line editing
889 --enable-restricted enable a restricted shell
890 --enable-select include select command
891 --enable-separate-helpfiles
892 use external files for help builtin documentation
893 --enable-usg-echo-default
894 a synonym for --enable-xpg-echo-default
895 --enable-xpg-echo-default
896 make the echo builtin expand escape sequences by
898 --enable-mem-scramble scramble memory on calls to malloc and free
899 --enable-profiling allow profiling with gprof
900 --enable-static-link link bash statically, for use as a root shell
901 --disable-largefile omit support for large files
902 --disable-nls do not use Native Language Support
903 --disable-rpath do not hardcode runtime library paths
906 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
907 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
908 --with-lispdir override the default lisp directory
909 --with-afs if you are running AFS
910 --with-bash-malloc use the Bash version of malloc
911 --with-curses use the curses library instead of the termcap
913 --with-gnu-malloc synonym for --with-bash-malloc
914 --with-installed-readline
915 use a version of the readline library that is
917 --with-purecov configure to postprocess with pure coverage
918 --with-purify configure to postprocess with purify
919 --with-gnu-ld assume the C compiler uses GNU ld default=no
920 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
921 --without-libiconv-prefix don't search for libiconv in includedir and libdir
922 --with-included-gettext use the GNU gettext library included here
923 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
924 --without-libintl-prefix don't search for libintl in includedir and libdir
926 Some influential environment variables:
928 location of bash debugger initialization file
929 CC C compiler command
930 CFLAGS C compiler flags
931 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
932 nonstandard directory <lib dir>
933 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
934 headers in a nonstandard directory <include dir>
937 Use these variables to override the choices made by `configure' or to help
938 it to find libraries and programs with nonstandard names/locations.
940 Report bugs to <bug-bash@gnu.org>.
944 if test "$ac_init_help" = "recursive"; then
945 # If there are subdirs, report their specific --help.
947 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
948 test -d $ac_dir || continue
951 if test "$ac_dir" != .; then
952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
953 # A "../" for each directory in $ac_dir_suffix.
954 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
956 ac_dir_suffix= ac_top_builddir=
960 .) # No --srcdir option. We are building in place.
962 if test -z "$ac_top_builddir"; then
965 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
967 [\\/]* | ?:[\\/]* ) # Absolute path.
968 ac_srcdir=$srcdir$ac_dir_suffix;
969 ac_top_srcdir=$srcdir ;;
971 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
972 ac_top_srcdir=$ac_top_builddir$srcdir ;;
974 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
976 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
977 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
978 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
979 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
982 # Check for guested configure; otherwise get Cygnus style configure.
983 if test -f $ac_srcdir/configure.gnu; then
985 $SHELL $ac_srcdir/configure.gnu --help=recursive
986 elif test -f $ac_srcdir/configure; then
988 $SHELL $ac_srcdir/configure --help=recursive
989 elif test -f $ac_srcdir/configure.ac ||
990 test -f $ac_srcdir/configure.in; then
994 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1000 test -n "$ac_init_help" && exit 0
1001 if $ac_init_version; then
1003 bash configure 3.0-release
1004 generated by GNU Autoconf 2.57
1006 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1007 Free Software Foundation, Inc.
1008 This configure script is free software; the Free Software Foundation
1009 gives unlimited permission to copy, distribute and modify it.
1015 This file contains any messages produced by compilers while
1016 running configure, to aid debugging if configure makes a mistake.
1018 It was created by bash $as_me 3.0-release, which was
1019 generated by GNU Autoconf 2.57. Invocation command line was
1030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1039 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1040 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1043 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1044 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1045 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053 test -z "$as_dir" && as_dir=.
1054 echo "PATH: $as_dir"
1069 # Keep a trace of the command line.
1070 # Strip out --no-create and --no-recursion so they do not pile up.
1071 # Strip out --silent because we don't want to record it for future runs.
1072 # Also quote any args containing shell meta-characters.
1073 # Make two passes to allow for proper duplicate-argument suppression.
1078 ac_must_keep_next=false
1084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1088 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1092 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1094 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095 if test $ac_must_keep_next = true; then
1096 ac_must_keep_next=false # Got value, back to normal.
1099 *=* | --config-cache | -C | -disable-* | --disable-* \
1100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102 | -with-* | --with-* | -without-* | --without-* | --x)
1103 case "$ac_configure_args0 " in
1104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1107 -* ) ac_must_keep_next=true ;;
1110 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111 # Get rid of the leading space.
1117 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1120 # When interrupted or exit'd, cleanup temporary files, and complete
1121 # config.log. We remove comments because anyway the quotes in there
1122 # would cause problems or look ugly.
1123 # WARNING: Be sure not to use single quotes in there, as some shells,
1124 # such as our DU 5.0 friend, will then `close' the trap.
1125 trap 'exit_status=$?
1126 # Save into config.log some information that might help in debugging.
1131 ## ---------------- ##
1132 ## Cache variables. ##
1133 ## ---------------- ##
1136 # The following way of writing the cache mishandles newlines in values,
1139 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1142 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1154 ## ----------------- ##
1155 ## Output variables. ##
1156 ## ----------------- ##
1159 for ac_var in $ac_subst_vars
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -n "$ac_subst_files"; then
1173 for ac_var in $ac_subst_files
1175 eval ac_val=$`echo $ac_var`
1176 echo "$ac_var='"'"'$ac_val'"'"'"
1181 if test -s confdefs.h; then
1188 sed "/^$/d" confdefs.h | sort
1191 test "$ac_signal" != 0 &&
1192 echo "$as_me: caught signal $ac_signal"
1193 echo "$as_me: exit $exit_status"
1195 rm -f core core.* *.core &&
1196 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1199 for ac_signal in 1 2 13 15; do
1200 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1204 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1205 rm -rf conftest* confdefs.h
1206 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1209 # Predefined preprocessor variables.
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_NAME "$PACKAGE_NAME"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_STRING "$PACKAGE_STRING"
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236 # Let the site file select an alternate cache file if it wants to.
1237 # Prefer explicitly selected file to automatically selected ones.
1238 if test -z "$CONFIG_SITE"; then
1239 if test "x$prefix" != xNONE; then
1240 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1242 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1245 for ac_site_file in $CONFIG_SITE; do
1246 if test -r "$ac_site_file"; then
1247 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248 echo "$as_me: loading site script $ac_site_file" >&6;}
1249 sed 's/^/| /' "$ac_site_file" >&5
1254 if test -r "$cache_file"; then
1255 # Some versions of bash will fail to source /dev/null (special
1256 # files actually), so we avoid doing that.
1257 if test -f "$cache_file"; then
1258 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259 echo "$as_me: loading cache $cache_file" >&6;}
1261 [\\/]* | ?:[\\/]* ) . $cache_file;;
1262 *) . ./$cache_file;;
1266 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267 echo "$as_me: creating cache $cache_file" >&6;}
1271 # Check that the precious variables saved in the cache have kept the same
1273 ac_cache_corrupted=false
1274 for ac_var in `(set) 2>&1 |
1275 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277 eval ac_new_set=\$ac_env_${ac_var}_set
1278 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279 eval ac_new_val="\$ac_env_${ac_var}_value"
1280 case $ac_old_set,$ac_new_set in
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1291 if test "x$ac_old_val" != "x$ac_new_val"; then
1292 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1295 echo "$as_me: former value: $ac_old_val" >&2;}
1296 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1297 echo "$as_me: current value: $ac_new_val" >&2;}
1298 ac_cache_corrupted=:
1301 # Pass precious variables to config.status.
1302 if test "$ac_new_set" = set; then
1304 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306 *) ac_arg=$ac_var=$ac_new_val ;;
1308 case " $ac_configure_args " in
1309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1310 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1314 if $ac_cache_corrupted; then
1315 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319 { (exit 1); exit 1; }; }
1323 ac_cpp='$CPP $CPPFLAGS'
1324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1359 for ac_dir in ./support $srcdir/./support; do
1360 if test -f $ac_dir/install-sh; then
1362 ac_install_sh="$ac_aux_dir/install-sh -c"
1364 elif test -f $ac_dir/install.sh; then
1366 ac_install_sh="$ac_aux_dir/install.sh -c"
1368 elif test -f $ac_dir/shtool; then
1370 ac_install_sh="$ac_aux_dir/shtool install -c"
1374 if test -z "$ac_aux_dir"; then
1375 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1376 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1377 { (exit 1); exit 1; }; }
1379 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1380 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1381 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1383 ac_config_headers="$ac_config_headers config.h"
1389 case "$RELSTATUS" in
1390 alp*|bet*|dev*|rc*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1391 *) DEBUG= MALLOC_DEBUG= ;;
1394 # Make sure we can run config.sub.
1395 $ac_config_sub sun4 >/dev/null 2>&1 ||
1396 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1397 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1398 { (exit 1); exit 1; }; }
1400 echo "$as_me:$LINENO: checking build system type" >&5
1401 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1402 if test "${ac_cv_build+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 ac_cv_build_alias=$build_alias
1406 test -z "$ac_cv_build_alias" &&
1407 ac_cv_build_alias=`$ac_config_guess`
1408 test -z "$ac_cv_build_alias" &&
1409 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1410 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1411 { (exit 1); exit 1; }; }
1412 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1413 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1414 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1415 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1419 echo "${ECHO_T}$ac_cv_build" >&6
1421 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426 echo "$as_me:$LINENO: checking host system type" >&5
1427 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1428 if test "${ac_cv_host+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 ac_cv_host_alias=$host_alias
1432 test -z "$ac_cv_host_alias" &&
1433 ac_cv_host_alias=$ac_cv_build_alias
1434 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1435 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1436 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1437 { (exit 1); exit 1; }; }
1440 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1441 echo "${ECHO_T}$ac_cv_host" >&6
1443 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 opt_with_installed_readline=no
1458 case "${host_cpu}-${host_os}" in
1459 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
1460 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
1461 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
1462 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
1463 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
1464 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
1465 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
1466 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
1467 *-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
1468 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
1469 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
1470 *-aix*) opt_bash_malloc=no ;; # AIX machines
1471 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
1472 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
1473 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
1474 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
1475 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
1476 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2
1477 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
1478 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1479 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
1480 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
1481 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
1484 # memory scrambling on free()
1485 case "${host_os}" in
1486 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
1487 *) opt_memscramble=yes ;;
1491 # Check whether --with-lispdir or --without-lispdir was given.
1492 if test "${with_lispdir+set}" = set; then
1493 withval="$with_lispdir"
1495 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1496 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1497 echo "$as_me:$LINENO: result: $lispdir" >&5
1498 echo "${ECHO_T}$lispdir" >&6
1501 # If set to t, that means we are running in a shell under Emacs.
1502 # If you have an Emacs named "t", then use the full path.
1503 test x"$EMACS" = xt && EMACS=
1504 for ac_prog in emacs xemacs
1506 # Extract the first word of "$ac_prog", so it can be a program name with args.
1507 set dummy $ac_prog; ac_word=$2
1508 echo "$as_me:$LINENO: checking for $ac_word" >&5
1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510 if test "${ac_cv_prog_EMACS+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 if test -n "$EMACS"; then
1514 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 test -z "$as_dir" && as_dir=.
1521 for ac_exec_ext in '' $ac_executable_extensions; do
1522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523 ac_cv_prog_EMACS="$ac_prog"
1524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532 EMACS=$ac_cv_prog_EMACS
1533 if test -n "$EMACS"; then
1534 echo "$as_me:$LINENO: result: $EMACS" >&5
1535 echo "${ECHO_T}$EMACS" >&6
1537 echo "$as_me:$LINENO: result: no" >&5
1538 echo "${ECHO_T}no" >&6
1541 test -n "$EMACS" && break
1543 test -n "$EMACS" || EMACS="no"
1545 if test $EMACS != "no"; then
1546 if test x${lispdir+set} != xset; then
1547 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1548 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1549 if test "${am_cv_lispdir+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'`
1553 if test -z "$am_cv_lispdir"; then
1554 am_cv_lispdir='${datadir}/emacs/site-lisp'
1558 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
1559 echo "${ECHO_T}$am_cv_lispdir" >&6
1560 lispdir="$am_cv_lispdir"
1570 # Check whether --with-afs or --without-afs was given.
1571 if test "${with_afs+set}" = set; then
1576 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1577 if test "${with_bash_malloc+set}" = set; then
1578 withval="$with_bash_malloc"
1579 opt_bash_malloc=$withval
1582 # Check whether --with-curses or --without-curses was given.
1583 if test "${with_curses+set}" = set; then
1584 withval="$with_curses"
1588 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1589 if test "${with_gnu_malloc+set}" = set; then
1590 withval="$with_gnu_malloc"
1591 opt_bash_malloc=$withval
1594 # Check whether --with-installed-readline or --without-installed-readline was given.
1595 if test "${with_installed_readline+set}" = set; then
1596 withval="$with_installed_readline"
1597 opt_with_installed_readline=$withval
1600 # Check whether --with-purecov or --without-purecov was given.
1601 if test "${with_purecov+set}" = set; then
1602 withval="$with_purecov"
1603 opt_purecov=$withval
1606 # Check whether --with-purify or --without-purify was given.
1607 if test "${with_purify+set}" = set; then
1608 withval="$with_purify"
1612 if test "$opt_bash_malloc" = yes; then
1613 MALLOC_TARGET=malloc
1616 MALLOC_LIB='-lmalloc'
1617 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1618 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1619 MALLOC_DEP='$(MALLOC_LIBRARY)'
1621 cat >>confdefs.h <<\_ACEOF
1622 #define USING_BASH_MALLOC 1
1632 if test "$opt_purify" = yes; then
1634 cat >>confdefs.h <<\_ACEOF
1635 #define DISABLE_MALLOC_WRAPPERS 1
1642 if test "$opt_purecov" = yes; then
1643 PURIFY="${PURIFY}purecov"
1646 if test "$opt_afs" = yes; then
1647 cat >>confdefs.h <<\_ACEOF
1653 if test "$opt_curses" = yes; then
1657 if test -z "${DEBUGGER_START_FILE}"; then
1658 DEBUGGER_START_FILE=${ac_default_prefix}/lib/bashdb/bashdb-main.inc
1661 opt_minimal_config=no
1667 opt_bang_history=yes
1670 opt_process_subst=yes
1671 opt_prompt_decoding=yes
1674 opt_array_variables=yes
1675 opt_dparen_arith=yes
1676 opt_extended_glob=yes
1677 opt_brace_expansion=yes
1678 opt_disabled_builtins=no
1679 opt_command_timing=yes
1681 opt_cond_command=yes
1683 opt_arith_for_command=yes
1686 opt_separate_help=no
1693 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1694 if test "${enable_minimal_config+set}" = set; then
1695 enableval="$enable_minimal_config"
1696 opt_minimal_config=$enableval
1699 if test $opt_minimal_config = yes; then
1700 opt_job_control=no opt_alias=no opt_readline=no
1701 opt_history=no opt_bang_history=no opt_dirstack=no
1702 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1703 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1704 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1705 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1706 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
1707 opt_multibyte=yes opt_cond_regexp=no
1710 # Check whether --enable-alias or --disable-alias was given.
1711 if test "${enable_alias+set}" = set; then
1712 enableval="$enable_alias"
1713 opt_alias=$enableval
1715 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1716 if test "${enable_arith_for_command+set}" = set; then
1717 enableval="$enable_arith_for_command"
1718 opt_arith_for_command=$enableval
1720 # Check whether --enable-array-variables or --disable-array-variables was given.
1721 if test "${enable_array_variables+set}" = set; then
1722 enableval="$enable_array_variables"
1723 opt_array_variables=$enableval
1725 # Check whether --enable-bang-history or --disable-bang-history was given.
1726 if test "${enable_bang_history+set}" = set; then
1727 enableval="$enable_bang_history"
1728 opt_bang_history=$enableval
1730 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1731 if test "${enable_brace_expansion+set}" = set; then
1732 enableval="$enable_brace_expansion"
1733 opt_brace_expansion=$enableval
1735 # Check whether --enable-command-timing or --disable-command-timing was given.
1736 if test "${enable_command_timing+set}" = set; then
1737 enableval="$enable_command_timing"
1738 opt_command_timing=$enableval
1740 # Check whether --enable-cond-command or --disable-cond-command was given.
1741 if test "${enable_cond_command+set}" = set; then
1742 enableval="$enable_cond_command"
1743 opt_cond_command=$enableval
1745 # Check whether --enable-cond-regexp or --disable-cond-regexp was given.
1746 if test "${enable_cond_regexp+set}" = set; then
1747 enableval="$enable_cond_regexp"
1748 opt_cond_regexp=$enableval
1750 # Check whether --enable-debugger or --disable-debugger was given.
1751 if test "${enable_debugger+set}" = set; then
1752 enableval="$enable_debugger"
1753 opt_debugger=$enableval
1755 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1756 if test "${enable_directory_stack+set}" = set; then
1757 enableval="$enable_directory_stack"
1758 opt_dirstack=$enableval
1760 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1761 if test "${enable_disabled_builtins+set}" = set; then
1762 enableval="$enable_disabled_builtins"
1763 opt_disabled_builtins=$enableval
1765 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1766 if test "${enable_dparen_arithmetic+set}" = set; then
1767 enableval="$enable_dparen_arithmetic"
1768 opt_dparen_arith=$enableval
1770 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1771 if test "${enable_extended_glob+set}" = set; then
1772 enableval="$enable_extended_glob"
1773 opt_extended_glob=$enableval
1775 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1776 if test "${enable_help_builtin+set}" = set; then
1777 enableval="$enable_help_builtin"
1780 # Check whether --enable-history or --disable-history was given.
1781 if test "${enable_history+set}" = set; then
1782 enableval="$enable_history"
1783 opt_history=$enableval
1785 # Check whether --enable-job-control or --disable-job-control was given.
1786 if test "${enable_job_control+set}" = set; then
1787 enableval="$enable_job_control"
1788 opt_job_control=$enableval
1790 # Check whether --enable-multibyte or --disable-multibyte was given.
1791 if test "${enable_multibyte+set}" = set; then
1792 enableval="$enable_multibyte"
1793 opt_multibyte=$enableval
1795 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1796 if test "${enable_net_redirections+set}" = set; then
1797 enableval="$enable_net_redirections"
1798 opt_net_redirs=$enableval
1800 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1801 if test "${enable_process_substitution+set}" = set; then
1802 enableval="$enable_process_substitution"
1803 opt_process_subst=$enableval
1805 # Check whether --enable-progcomp or --disable-progcomp was given.
1806 if test "${enable_progcomp+set}" = set; then
1807 enableval="$enable_progcomp"
1808 opt_progcomp=$enableval
1810 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1811 if test "${enable_prompt_string_decoding+set}" = set; then
1812 enableval="$enable_prompt_string_decoding"
1813 opt_prompt_decoding=$enableval
1815 # Check whether --enable-readline or --disable-readline was given.
1816 if test "${enable_readline+set}" = set; then
1817 enableval="$enable_readline"
1818 opt_readline=$enableval
1820 # Check whether --enable-restricted or --disable-restricted was given.
1821 if test "${enable_restricted+set}" = set; then
1822 enableval="$enable_restricted"
1823 opt_restricted=$enableval
1825 # Check whether --enable-select or --disable-select was given.
1826 if test "${enable_select+set}" = set; then
1827 enableval="$enable_select"
1828 opt_select=$enableval
1830 # Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1831 if test "${enable_separate_helpfiles+set}" = set; then
1832 enableval="$enable_separate_helpfiles"
1833 opt_separate_help=$enableval
1835 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1836 if test "${enable_usg_echo_default+set}" = set; then
1837 enableval="$enable_usg_echo_default"
1838 opt_xpg_echo=$enableval
1840 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1841 if test "${enable_xpg_echo_default+set}" = set; then
1842 enableval="$enable_xpg_echo_default"
1843 opt_xpg_echo=$enableval
1846 # Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1847 if test "${enable_mem_scramble+set}" = set; then
1848 enableval="$enable_mem_scramble"
1849 opt_memscramble=$enableval
1851 # Check whether --enable-profiling or --disable-profiling was given.
1852 if test "${enable_profiling+set}" = set; then
1853 enableval="$enable_profiling"
1854 opt_profiling=$enableval
1856 # Check whether --enable-static-link or --disable-static-link was given.
1857 if test "${enable_static_link+set}" = set; then
1858 enableval="$enable_static_link"
1859 opt_static_link=$enableval
1864 if test $opt_alias = yes; then
1865 cat >>confdefs.h <<\_ACEOF
1870 if test $opt_dirstack = yes; then
1871 cat >>confdefs.h <<\_ACEOF
1872 #define PUSHD_AND_POPD 1
1876 if test $opt_restricted = yes; then
1877 cat >>confdefs.h <<\_ACEOF
1878 #define RESTRICTED_SHELL 1
1882 if test $opt_process_subst = yes; then
1883 cat >>confdefs.h <<\_ACEOF
1884 #define PROCESS_SUBSTITUTION 1
1888 if test $opt_prompt_decoding = yes; then
1889 cat >>confdefs.h <<\_ACEOF
1890 #define PROMPT_STRING_DECODE 1
1894 if test $opt_select = yes; then
1895 cat >>confdefs.h <<\_ACEOF
1896 #define SELECT_COMMAND 1
1900 if test $opt_help = yes; then
1901 cat >>confdefs.h <<\_ACEOF
1902 #define HELP_BUILTIN 1
1906 if test $opt_array_variables = yes; then
1907 cat >>confdefs.h <<\_ACEOF
1908 #define ARRAY_VARS 1
1912 if test $opt_dparen_arith = yes; then
1913 cat >>confdefs.h <<\_ACEOF
1914 #define DPAREN_ARITHMETIC 1
1918 if test $opt_brace_expansion = yes; then
1919 cat >>confdefs.h <<\_ACEOF
1920 #define BRACE_EXPANSION 1
1924 if test $opt_disabled_builtins = yes; then
1925 cat >>confdefs.h <<\_ACEOF
1926 #define DISABLED_BUILTINS 1
1930 if test $opt_command_timing = yes; then
1931 cat >>confdefs.h <<\_ACEOF
1932 #define COMMAND_TIMING 1
1936 if test $opt_xpg_echo = yes ; then
1937 cat >>confdefs.h <<\_ACEOF
1938 #define DEFAULT_ECHO_TO_XPG 1
1942 if test $opt_extended_glob = yes ; then
1943 cat >>confdefs.h <<\_ACEOF
1944 #define EXTENDED_GLOB 1
1948 if test $opt_cond_command = yes ; then
1949 cat >>confdefs.h <<\_ACEOF
1950 #define COND_COMMAND 1
1954 if test $opt_cond_regexp = yes ; then
1955 cat >>confdefs.h <<\_ACEOF
1956 #define COND_REGEXP 1
1960 if test $opt_arith_for_command = yes; then
1961 cat >>confdefs.h <<\_ACEOF
1962 #define ARITH_FOR_COMMAND 1
1966 if test $opt_net_redirs = yes; then
1967 cat >>confdefs.h <<\_ACEOF
1968 #define NETWORK_REDIRECTIONS 1
1972 if test $opt_progcomp = yes; then
1973 cat >>confdefs.h <<\_ACEOF
1974 #define PROGRAMMABLE_COMPLETION 1
1978 if test $opt_multibyte = no; then
1979 cat >>confdefs.h <<\_ACEOF
1980 #define NO_MULTIBYTE_SUPPORT 1
1984 if test $opt_debugger = yes; then
1985 cat >>confdefs.h <<\_ACEOF
1991 if test $opt_memscramble = yes; then
1992 cat >>confdefs.h <<\_ACEOF
1993 #define MEMSCRAMBLE 1
1998 if test "$opt_minimal_config" = yes; then
1999 TESTSCRIPT=run-minimal
2004 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2005 if test "$opt_separate_help" != no; then
2006 if test "$opt_separate_help" = "yes" ; then
2007 HELPDIR='${datadir}/bash'
2009 HELPDIR=$opt_separate_help
2011 HELPDIRDEFINE='-H ${HELPDIR}'
2012 HELPINSTALL='install-help'
2032 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 if test -n "$ac_tool_prefix"; then
2041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC="$CC" # Let the user override the test.
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 if test -n "$CC"; then
2069 echo "$as_me:$LINENO: result: $CC" >&5
2070 echo "${ECHO_T}$CC" >&6
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2077 if test -z "$ac_cv_prog_CC"; then
2079 # Extract the first word of "gcc", so it can be a program name with args.
2080 set dummy gcc; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_ac_ct_CC="gcc"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2119 if test -z "$CC"; then
2120 if test -n "$ac_tool_prefix"; then
2121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2122 set dummy ${ac_tool_prefix}cc; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 if test -n "$CC"; then
2129 ac_cv_prog_CC="$CC" # Let the user override the test.
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_CC="${ac_tool_prefix}cc"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 if test -n "$CC"; then
2149 echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2157 if test -z "$ac_cv_prog_CC"; then
2159 # Extract the first word of "cc", so it can be a program name with args.
2160 set dummy cc; ac_word=$2
2161 echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 if test -n "$ac_ct_CC"; then
2167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 test -z "$as_dir" && as_dir=.
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176 ac_cv_prog_ac_ct_CC="cc"
2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2186 if test -n "$ac_ct_CC"; then
2187 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2188 echo "${ECHO_T}$ac_ct_CC" >&6
2190 echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6
2200 if test -z "$CC"; then
2201 # Extract the first word of "cc", so it can be a program name with args.
2202 set dummy cc; ac_word=$2
2203 echo "$as_me:$LINENO: checking for $ac_word" >&5
2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2205 if test "${ac_cv_prog_CC+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2220 ac_prog_rejected=yes
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 if test $ac_prog_rejected = yes; then
2231 # We found a bogon in the path, so make sure we never use it.
2232 set dummy $ac_cv_prog_CC
2234 if test $# != 0; then
2235 # We chose a different compiler from the bogus one.
2236 # However, it has the same basename, so the bogon will be chosen
2237 # first if we set CC to just the basename; use the full file name.
2239 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2245 if test -n "$CC"; then
2246 echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6
2249 echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2254 if test -z "$CC"; then
2255 if test -n "$ac_tool_prefix"; then
2258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 if test -n "$CC"; then
2266 ac_cv_prog_CC="$CC" # Let the user override the test.
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 if test -n "$CC"; then
2286 echo "$as_me:$LINENO: result: $CC" >&5
2287 echo "${ECHO_T}$CC" >&6
2289 echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2293 test -n "$CC" && break
2296 if test -z "$CC"; then
2300 # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 if test -n "$ac_ct_CC"; then
2308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 test -z "$as_dir" && as_dir=.
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2317 ac_cv_prog_ac_ct_CC="$ac_prog"
2318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2327 if test -n "$ac_ct_CC"; then
2328 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2329 echo "${ECHO_T}$ac_ct_CC" >&6
2331 echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6
2335 test -n "$ac_ct_CC" && break
2344 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: no acceptable C compiler found in \$PATH
2347 See \`config.log' for more details." >&2;}
2348 { (exit 1); exit 1; }; }
2350 # Provide some information about the compiler.
2351 echo "$as_me:$LINENO:" \
2352 "checking for C compiler version" >&5
2353 ac_compiler=`set X $ac_compile; echo $2`
2354 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2355 (eval $ac_compiler --version </dev/null >&5) 2>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }
2359 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2360 (eval $ac_compiler -v </dev/null >&5) 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }
2364 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2365 (eval $ac_compiler -V </dev/null >&5) 2>&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }
2370 cat >conftest.$ac_ext <<_ACEOF
2371 #line $LINENO "configure"
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2386 ac_clean_files_save=$ac_clean_files
2387 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2388 # Try to create an executable without -o first, disregard a.out.
2389 # It will help us diagnose broken compilers, and finding out an intuition
2391 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2392 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2393 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2395 (eval $ac_link_default) 2>&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; then
2399 # Find the output, starting from the most likely. This scheme is
2400 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2403 # Be careful to initialize this variable, since it used to be cached.
2404 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2406 # b.out is created by i960 compilers.
2407 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2409 test -f "$ac_file" || continue
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2414 # This is the source file.
2417 # We found the default executable, but exeext='' is most
2421 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422 # FIXME: I believe we export ac_cv_exeext for Libtool,
2423 # but it would be cool to find out if it's true. Does anybody
2424 # maintain Libtool? --akim.
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: C compiler cannot create executables
2438 See \`config.log' for more details." >&2;}
2439 { (exit 77); exit 77; }; }
2442 ac_exeext=$ac_cv_exeext
2443 echo "$as_me:$LINENO: result: $ac_file" >&5
2444 echo "${ECHO_T}$ac_file" >&6
2446 # Check the compiler produces executables we can run. If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2449 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2450 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2451 # If not cross compiling, check that we can run a simple program.
2452 if test "$cross_compiling" != yes; then
2453 if { ac_try='./$ac_file'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2461 if test "$cross_compiling" = maybe; then
2464 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&5
2467 echo "$as_me: error: cannot run C compiled programs.
2468 If you meant to cross compile, use \`--host'.
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2474 echo "$as_me:$LINENO: result: yes" >&5
2475 echo "${ECHO_T}yes" >&6
2477 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2478 ac_clean_files=$ac_clean_files_save
2479 # Check the compiler produces executables we can run. If not, either
2480 # the compiler is broken, or we cross compile.
2481 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2482 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2483 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2484 echo "${ECHO_T}$cross_compiling" >&6
2486 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2487 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2489 (eval $ac_link) 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; then
2493 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2494 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2495 # work properly (i.e., refer to `conftest.exe'), while it won't with
2497 for ac_file in conftest.exe conftest conftest.*; do
2498 test -f "$ac_file" || continue
2500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2508 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2511 See \`config.log' for more details." >&2;}
2512 { (exit 1); exit 1; }; }
2515 rm -f conftest$ac_cv_exeext
2516 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2517 echo "${ECHO_T}$ac_cv_exeext" >&6
2519 rm -f conftest.$ac_ext
2520 EXEEXT=$ac_cv_exeext
2522 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2523 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2524 if test "${ac_cv_objext+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 cat >conftest.$ac_ext <<_ACEOF
2579 #line $LINENO "configure"
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2620 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2622 GCC=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CFLAGS=${CFLAGS+set}
2624 ac_save_CFLAGS=$CFLAGS
2626 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2627 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cc_g+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2666 rm -f conftest.$ac_objext conftest.$ac_ext
2668 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2669 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2670 if test "$ac_test_CFLAGS" = set; then
2671 CFLAGS=$ac_save_CFLAGS
2672 elif test $ac_cv_prog_cc_g = yes; then
2673 if test "$GCC" = yes; then
2679 if test "$GCC" = yes; then
2685 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2686 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2687 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 ac_cv_prog_cc_stdc=no
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line $LINENO "configure"
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2701 #include <sys/types.h>
2702 #include <sys/stat.h>
2703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2704 struct buf { int x; };
2705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2706 static char *e (p, i)
2712 static char *f (char * (*g) (char **, int), char **p, ...)
2717 s = g (p, va_arg (v,int));
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2735 # Don't try gcc -ansi; that turns off useful extensions and
2736 # breaks some systems' header files.
2737 # AIX -qlanglvl=ansi
2738 # Ultrix and OSF/1 -std1
2739 # HP-UX 10.20 and later -Ae
2740 # HP-UX older versions -Aa -D_HPUX_SOURCE
2741 # SVR4 -Xc -D__EXTENSIONS__
2742 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2744 CC="$ac_save_CC $ac_arg"
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 ac_cv_prog_cc_stdc=$ac_arg
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2764 rm -f conftest.$ac_objext
2766 rm -f conftest.$ac_ext conftest.$ac_objext
2771 case "x$ac_cv_prog_cc_stdc" in
2773 echo "$as_me:$LINENO: result: none needed" >&5
2774 echo "${ECHO_T}none needed" >&6 ;;
2776 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2778 CC="$CC $ac_cv_prog_cc_stdc" ;;
2781 # Some people use a C++ compiler to compile C. Since we use `exit',
2782 # in C++ we need to declare it. In case someone uses the same compiler
2783 # for both compiling C and C++ we need to have the C++ compiler decide
2784 # the declaration of exit, since it's the most demanding environment.
2785 cat >conftest.$ac_ext <<_ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 for ac_declaration in \
2804 '#include <stdlib.h>' \
2805 'extern "C" void std::exit (int) throw (); using std::exit;' \
2806 'extern "C" void std::exit (int); using std::exit;' \
2807 'extern "C" void exit (int) throw ();' \
2808 'extern "C" void exit (int);' \
2811 cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2847 rm -f conftest.$ac_objext conftest.$ac_ext
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2882 rm -f conftest.$ac_objext conftest.$ac_ext
2885 if test -n "$ac_declaration"; then
2886 echo '#ifdef __cplusplus' >>confdefs.h
2887 echo $ac_declaration >>confdefs.h
2888 echo '#endif' >>confdefs.h
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2896 rm -f conftest.$ac_objext conftest.$ac_ext
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2906 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2907 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2908 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 ac_check_lib_save_LIBS=$LIBS
2912 LIBS="-lcposix $LIBS"
2913 cat >conftest.$ac_ext <<_ACEOF
2914 #line $LINENO "configure"
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2921 /* Override any gcc2 internal prototype to avoid an error. */
2925 /* We use char because int might match the return type of a gcc2
2926 builtin and then its argument prototype would still apply. */
2936 rm -f conftest.$ac_objext conftest$ac_exeext
2937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2938 (eval $ac_link) 2>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -s conftest$ac_exeext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 ac_cv_lib_cposix_strerror=yes
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 ac_cv_lib_cposix_strerror=no
2955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2956 LIBS=$ac_check_lib_save_LIBS
2958 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2959 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2960 if test $ac_cv_lib_cposix_strerror = yes; then
2961 LIBS="$LIBS -lcposix"
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2972 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2973 # On Suns, sometimes $CPP names a directory.
2974 if test -n "$CPP" && test -d "$CPP"; then
2977 if test -z "$CPP"; then
2978 if test "${ac_cv_prog_CPP+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 # Double quotes because CPP needs to be expanded
2982 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2985 for ac_c_preproc_warn_flag in '' yes
2987 # Use a header file that comes with gcc, so configuring glibc
2988 # with a fresh cross-compiler works.
2989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2990 # <limits.h> exists even on freestanding compilers.
2991 # On the NeXT, cc -E runs the code through the compiler's parser,
2992 # not just through cpp. "Syntax error" is here to catch this case.
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line $LINENO "configure"
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3001 # include <limits.h>
3003 # include <assert.h>
3007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } >/dev/null; then
3015 if test -s conftest.err; then
3016 ac_cpp_err=$ac_c_preproc_warn_flag
3023 if test -z "$ac_cpp_err"; then
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3029 # Broken: fails on valid input.
3032 rm -f conftest.err conftest.$ac_ext
3034 # OK, works on sane cases. Now check whether non-existent headers
3035 # can be detected and how.
3036 cat >conftest.$ac_ext <<_ACEOF
3037 #line $LINENO "configure"
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h. */
3043 #include <ac_nonexistent.h>
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev/null; then
3053 if test -s conftest.err; then
3054 ac_cpp_err=$ac_c_preproc_warn_flag
3061 if test -z "$ac_cpp_err"; then
3062 # Broken: success on invalid input.
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 # Passes both tests.
3072 rm -f conftest.err conftest.$ac_ext
3075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3076 rm -f conftest.err conftest.$ac_ext
3077 if $ac_preproc_ok; then
3089 echo "$as_me:$LINENO: result: $CPP" >&5
3090 echo "${ECHO_T}$CPP" >&6
3092 for ac_c_preproc_warn_flag in '' yes
3094 # Use a header file that comes with gcc, so configuring glibc
3095 # with a fresh cross-compiler works.
3096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3097 # <limits.h> exists even on freestanding compilers.
3098 # On the NeXT, cc -E runs the code through the compiler's parser,
3099 # not just through cpp. "Syntax error" is here to catch this case.
3100 cat >conftest.$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3108 # include <limits.h>
3110 # include <assert.h>
3114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } >/dev/null; then
3122 if test -s conftest.err; then
3123 ac_cpp_err=$ac_c_preproc_warn_flag
3130 if test -z "$ac_cpp_err"; then
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 # Broken: fails on valid input.
3139 rm -f conftest.err conftest.$ac_ext
3141 # OK, works on sane cases. Now check whether non-existent headers
3142 # can be detected and how.
3143 cat >conftest.$ac_ext <<_ACEOF
3144 #line $LINENO "configure"
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 #include <ac_nonexistent.h>
3152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } >/dev/null; then
3160 if test -s conftest.err; then
3161 ac_cpp_err=$ac_c_preproc_warn_flag
3168 if test -z "$ac_cpp_err"; then
3169 # Broken: success on invalid input.
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 # Passes both tests.
3179 rm -f conftest.err conftest.$ac_ext
3182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3183 rm -f conftest.err conftest.$ac_ext
3184 if $ac_preproc_ok; then
3187 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3188 See \`config.log' for more details." >&5
3189 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3190 See \`config.log' for more details." >&2;}
3191 { (exit 1); exit 1; }; }
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 echo "$as_me:$LINENO: checking for egrep" >&5
3202 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3203 if test "${ac_cv_prog_egrep+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3207 then ac_cv_prog_egrep='grep -E'
3208 else ac_cv_prog_egrep='egrep'
3211 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3212 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3213 EGREP=$ac_cv_prog_egrep
3216 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3217 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3218 if test "${ac_cv_header_stdc+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #line $LINENO "configure"
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -s conftest.$ac_objext'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 ac_cv_header_stdc=yes
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 ac_cv_header_stdc=no
3260 rm -f conftest.$ac_objext conftest.$ac_ext
3262 if test $ac_cv_header_stdc = yes; then
3263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3264 cat >conftest.$ac_ext <<_ACEOF
3265 #line $LINENO "configure"
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3275 $EGREP "memchr" >/dev/null 2>&1; then
3278 ac_cv_header_stdc=no
3284 if test $ac_cv_header_stdc = yes; then
3285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3286 cat >conftest.$ac_ext <<_ACEOF
3287 #line $LINENO "configure"
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 $EGREP "free" >/dev/null 2>&1; then
3300 ac_cv_header_stdc=no
3306 if test $ac_cv_header_stdc = yes; then
3307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3308 if test "$cross_compiling" = yes; then
3311 cat >conftest.$ac_ext <<_ACEOF
3312 #line $LINENO "configure"
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3319 #if ((' ' & 0x0FF) == 0x020)
3320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3323 # define ISLOWER(c) \
3324 (('a' <= (c) && (c) <= 'i') \
3325 || ('j' <= (c) && (c) <= 'r') \
3326 || ('s' <= (c) && (c) <= 'z'))
3327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3335 for (i = 0; i < 256; i++)
3336 if (XOR (islower (i), ISLOWER (i))
3337 || toupper (i) != TOUPPER (i))
3342 rm -f conftest$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344 (eval $ac_link) 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3355 echo "$as_me: program exited with status $ac_status" >&5
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3360 ac_cv_header_stdc=no
3362 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3366 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3367 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3368 if test $ac_cv_header_stdc = yes; then
3370 cat >>confdefs.h <<\_ACEOF
3371 #define STDC_HEADERS 1
3376 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3386 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3387 inttypes.h stdint.h unistd.h
3389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3390 echo "$as_me:$LINENO: checking for $ac_header" >&5
3391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 cat >conftest.$ac_ext <<_ACEOF
3396 #line $LINENO "configure"
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 $ac_includes_default
3404 #include <$ac_header>
3406 rm -f conftest.$ac_objext
3407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3408 (eval $ac_compile) 2>&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -s conftest.$ac_objext'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; }; then
3418 eval "$as_ac_Header=yes"
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 eval "$as_ac_Header=no"
3425 rm -f conftest.$ac_objext conftest.$ac_ext
3427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3430 cat >>confdefs.h <<_ACEOF
3431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3439 if test "${ac_cv_header_minix_config_h+set}" = set; then
3440 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3441 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3442 if test "${ac_cv_header_minix_config_h+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3446 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3448 # Is the header compilable?
3449 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3450 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3451 cat >conftest.$ac_ext <<_ACEOF
3452 #line $LINENO "configure"
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458 $ac_includes_default
3459 #include <minix/config.h>
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_header_compiler=yes
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 ac_header_compiler=no
3480 rm -f conftest.$ac_objext conftest.$ac_ext
3481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3482 echo "${ECHO_T}$ac_header_compiler" >&6
3484 # Is the header present?
3485 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3486 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3487 cat >conftest.$ac_ext <<_ACEOF
3488 #line $LINENO "configure"
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 #include <minix/config.h>
3496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3499 grep -v '^ *+' conftest.er1 >conftest.err
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } >/dev/null; then
3504 if test -s conftest.err; then
3505 ac_cpp_err=$ac_c_preproc_warn_flag
3512 if test -z "$ac_cpp_err"; then
3513 ac_header_preproc=yes
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 ac_header_preproc=no
3520 rm -f conftest.err conftest.$ac_ext
3521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3522 echo "${ECHO_T}$ac_header_preproc" >&6
3524 # So? What about this header?
3525 case $ac_header_compiler:$ac_header_preproc in
3527 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3528 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3529 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3530 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3533 ## ------------------------------------ ##
3534 ## Report this to bug-autoconf@gnu.org. ##
3535 ## ------------------------------------ ##
3538 sed "s/^/$as_me: WARNING: /" >&2
3541 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3542 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3543 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3544 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3545 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3546 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3549 ## ------------------------------------ ##
3550 ## Report this to bug-autoconf@gnu.org. ##
3551 ## ------------------------------------ ##
3554 sed "s/^/$as_me: WARNING: /" >&2
3557 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3558 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3559 if test "${ac_cv_header_minix_config_h+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 ac_cv_header_minix_config_h=$ac_header_preproc
3564 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3565 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3568 if test $ac_cv_header_minix_config_h = yes; then
3575 if test "$MINIX" = yes; then
3577 cat >>confdefs.h <<\_ACEOF
3578 #define _POSIX_SOURCE 1
3582 cat >>confdefs.h <<\_ACEOF
3583 #define _POSIX_1_SOURCE 2
3587 cat >>confdefs.h <<\_ACEOF
3596 *cygwin* ) CYGWIN=yes;;
3602 *mingw32* ) MINGW32=yes;;
3607 # Check whether --enable-largefile or --disable-largefile was given.
3608 if test "${enable_largefile+set}" = set; then
3609 enableval="$enable_largefile"
3612 if test "$enable_largefile" != no; then
3614 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3615 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3616 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 ac_cv_sys_largefile_CC=no
3620 if test "$GCC" != yes; then
3623 # IRIX 6.2 and later do not support large files by default,
3624 # so use the C compiler's -n32 option if that helps.
3625 cat >conftest.$ac_ext <<_ACEOF
3626 #line $LINENO "configure"
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <sys/types.h>
3633 /* Check that off_t can represent 2**63 - 1 correctly.
3634 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3635 since some C++ compilers masquerading as C compilers
3636 incorrectly reject 9223372036854775807. */
3637 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3638 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3639 && LARGE_OFF_T % 2147483647 == 1)
3649 rm -f conftest.$ac_objext
3650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3651 (eval $ac_compile) 2>&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try='test -s conftest.$ac_objext'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3663 echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3667 rm -f conftest.$ac_objext
3669 rm -f conftest.$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_sys_largefile_CC=' -n32'; break
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3687 rm -f conftest.$ac_objext
3691 rm -f conftest.$ac_ext
3694 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3695 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3696 if test "$ac_cv_sys_largefile_CC" != no; then
3697 CC=$CC$ac_cv_sys_largefile_CC
3700 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3701 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3702 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 ac_cv_sys_file_offset_bits=no
3707 cat >conftest.$ac_ext <<_ACEOF
3708 #line $LINENO "configure"
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3714 #include <sys/types.h>
3715 /* Check that off_t can represent 2**63 - 1 correctly.
3716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3717 since some C++ compilers masquerading as C compilers
3718 incorrectly reject 9223372036854775807. */
3719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3721 && LARGE_OFF_T % 2147483647 == 1)
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } &&
3737 { ac_try='test -s conftest.$ac_objext'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3749 rm -f conftest.$ac_objext conftest.$ac_ext
3750 cat >conftest.$ac_ext <<_ACEOF
3751 #line $LINENO "configure"
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 #define _FILE_OFFSET_BITS 64
3758 #include <sys/types.h>
3759 /* Check that off_t can represent 2**63 - 1 correctly.
3760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3761 since some C++ compilers masquerading as C compilers
3762 incorrectly reject 9223372036854775807. */
3763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3765 && LARGE_OFF_T % 2147483647 == 1)
3775 rm -f conftest.$ac_objext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777 (eval $ac_compile) 2>&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } &&
3781 { ac_try='test -s conftest.$ac_objext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_cv_sys_file_offset_bits=64; break
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3793 rm -f conftest.$ac_objext conftest.$ac_ext
3797 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3798 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3799 if test "$ac_cv_sys_file_offset_bits" != no; then
3801 cat >>confdefs.h <<_ACEOF
3802 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3807 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3808 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3809 if test "${ac_cv_sys_large_files+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 ac_cv_sys_large_files=no
3814 cat >conftest.$ac_ext <<_ACEOF
3815 #line $LINENO "configure"
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 #include <sys/types.h>
3822 /* Check that off_t can represent 2**63 - 1 correctly.
3823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3824 since some C++ compilers masquerading as C compilers
3825 incorrectly reject 9223372036854775807. */
3826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3828 && LARGE_OFF_T % 2147483647 == 1)
3838 rm -f conftest.$ac_objext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3840 (eval $ac_compile) 2>&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3856 rm -f conftest.$ac_objext conftest.$ac_ext
3857 cat >conftest.$ac_ext <<_ACEOF
3858 #line $LINENO "configure"
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3864 #define _LARGE_FILES 1
3865 #include <sys/types.h>
3866 /* Check that off_t can represent 2**63 - 1 correctly.
3867 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3868 since some C++ compilers masquerading as C compilers
3869 incorrectly reject 9223372036854775807. */
3870 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3871 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3872 && LARGE_OFF_T % 2147483647 == 1)
3882 rm -f conftest.$ac_objext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884 (eval $ac_compile) 2>&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } &&
3888 { ac_try='test -s conftest.$ac_objext'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3894 ac_cv_sys_large_files=1; break
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3900 rm -f conftest.$ac_objext conftest.$ac_ext
3904 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3905 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3906 if test "$ac_cv_sys_large_files" != no; then
3908 cat >>confdefs.h <<_ACEOF
3909 #define _LARGE_FILES $ac_cv_sys_large_files
3918 SIGNAMES_H=lsignames.h
3922 if test "x$cross_compiling" = "xyes"; then
3925 cross_cache=${srcdir}/cross-build/cygwin32.cache
3926 SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
3929 cross_cache=${srcdir}/cross-build/x86-beos.cache
3930 SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
3932 *) echo "configure: cross-compiling for $host is not supported" >&2
3935 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
3936 echo "loading cross-build cache file ${cross_cache}"
3943 if test -z "$CC_FOR_BUILD"; then
3944 if test "x$cross_compiling" = "xno"; then
3945 CC_FOR_BUILD='$(CC)'
3953 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
3955 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
3957 if test "$opt_profiling" = "yes"; then
3961 *) opt_static_link=yes ;;
3963 DEBUG= MALLOC_DEBUG=
3966 if test "$opt_static_link" = yes; then
3967 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
3968 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
3972 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
3977 if test "X$cross_compiling" = "Xno"; then
3978 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
3979 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
3981 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
3982 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
3985 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
3996 if test $ac_cv_c_compiler_gnu = yes; then
3997 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3998 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3999 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 ac_pattern="Autoconf.*'x'"
4003 cat >conftest.$ac_ext <<_ACEOF
4004 #line $LINENO "configure"
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4015 ac_cv_prog_gcc_traditional=yes
4017 ac_cv_prog_gcc_traditional=no
4022 if test $ac_cv_prog_gcc_traditional = no; then
4023 cat >conftest.$ac_ext <<_ACEOF
4024 #line $LINENO "configure"
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4034 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4035 ac_cv_prog_gcc_traditional=yes
4041 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4042 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4043 if test $ac_cv_prog_gcc_traditional = yes; then
4044 CC="$CC -traditional"
4050 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
4052 # If the user specified --with-installed-readline=PREFIX and PREFIX
4053 # is not `yes', set ac_cv_rl_prefix to PREFIX
4054 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
4057 if test "X$bash_cv_termcap_lib" = "X"; then
4060 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4061 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4064 if test "${bash_cv_termcap_lib+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 echo "$as_me:$LINENO: checking for tgetent" >&5
4068 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
4069 if test "${ac_cv_func_tgetent+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 cat >conftest.$ac_ext <<_ACEOF
4073 #line $LINENO "configure"
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 /* System header to define __stub macros and hopefully few prototypes,
4080 which can conflict with char tgetent (); below.
4081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082 <limits.h> exists even on freestanding compilers. */
4084 # include <limits.h>
4086 # include <assert.h>
4088 /* Override any gcc2 internal prototype to avoid an error. */
4093 /* We use char because int might match the return type of a gcc2
4094 builtin and then its argument prototype would still apply. */
4096 /* The GNU C library defines this for functions which it implements
4097 to always fail with ENOSYS. Some functions are actually named
4098 something starting with __ and the normal name is an alias. */
4099 #if defined (__stub_tgetent) || defined (__stub___tgetent)
4102 char (*f) () = tgetent;
4111 return f != tgetent;
4116 rm -f conftest.$ac_objext conftest$ac_exeext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4118 (eval $ac_link) 2>&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -s conftest$ac_exeext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_func_tgetent=yes
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 ac_cv_func_tgetent=no
4135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4137 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
4138 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
4139 if test $ac_cv_func_tgetent = yes; then
4140 bash_cv_termcap_lib=libc
4142 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
4143 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4144 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 ac_check_lib_save_LIBS=$LIBS
4148 LIBS="-ltermcap $LIBS"
4149 cat >conftest.$ac_ext <<_ACEOF
4150 #line $LINENO "configure"
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4157 /* Override any gcc2 internal prototype to avoid an error. */
4161 /* We use char because int might match the return type of a gcc2
4162 builtin and then its argument prototype would still apply. */
4172 rm -f conftest.$ac_objext conftest$ac_exeext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4174 (eval $ac_link) 2>&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -s conftest$ac_exeext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_lib_termcap_tgetent=yes
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4189 ac_cv_lib_termcap_tgetent=no
4191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4192 LIBS=$ac_check_lib_save_LIBS
4194 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
4195 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4196 if test $ac_cv_lib_termcap_tgetent = yes; then
4197 bash_cv_termcap_lib=libtermcap
4199 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
4200 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
4201 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 ac_check_lib_save_LIBS=$LIBS
4205 LIBS="-ltinfo $LIBS"
4206 cat >conftest.$ac_ext <<_ACEOF
4207 #line $LINENO "configure"
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4214 /* Override any gcc2 internal prototype to avoid an error. */
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231 (eval $ac_link) 2>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -s conftest$ac_exeext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 ac_cv_lib_tinfo_tgetent=yes
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4246 ac_cv_lib_tinfo_tgetent=no
4248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4249 LIBS=$ac_check_lib_save_LIBS
4251 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
4252 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
4253 if test $ac_cv_lib_tinfo_tgetent = yes; then
4254 bash_cv_termcap_lib=libtinfo
4256 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
4257 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
4258 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 ac_check_lib_save_LIBS=$LIBS
4262 LIBS="-lcurses $LIBS"
4263 cat >conftest.$ac_ext <<_ACEOF
4264 #line $LINENO "configure"
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4271 /* Override any gcc2 internal prototype to avoid an error. */
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4286 rm -f conftest.$ac_objext conftest$ac_exeext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -s conftest$ac_exeext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_cv_lib_curses_tgetent=yes
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4303 ac_cv_lib_curses_tgetent=no
4305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4306 LIBS=$ac_check_lib_save_LIBS
4308 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
4309 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4310 if test $ac_cv_lib_curses_tgetent = yes; then
4311 bash_cv_termcap_lib=libcurses
4313 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4314 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4315 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 ac_check_lib_save_LIBS=$LIBS
4319 LIBS="-lncurses $LIBS"
4320 cat >conftest.$ac_ext <<_ACEOF
4321 #line $LINENO "configure"
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4328 /* Override any gcc2 internal prototype to avoid an error. */
4332 /* We use char because int might match the return type of a gcc2
4333 builtin and then its argument prototype would still apply. */
4343 rm -f conftest.$ac_objext conftest$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345 (eval $ac_link) 2>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -s conftest$ac_exeext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 ac_cv_lib_ncurses_tgetent=yes
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 ac_cv_lib_ncurses_tgetent=no
4362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4363 LIBS=$ac_check_lib_save_LIBS
4365 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4366 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4367 if test $ac_cv_lib_ncurses_tgetent = yes; then
4368 bash_cv_termcap_lib=libncurses
4370 bash_cv_termcap_lib=gnutermcap
4383 if test "X$_bash_needmsg" = "Xyes"; then
4384 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4385 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4387 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
4388 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
4389 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
4390 LDFLAGS="$LDFLAGS -L./lib/termcap"
4391 TERMCAP_LIB="./lib/termcap/libtermcap.a"
4392 TERMCAP_DEP="./lib/termcap/libtermcap.a"
4393 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
4394 TERMCAP_LIB=-ltermcap
4396 elif test $bash_cv_termcap_lib = libtinfo; then
4399 elif test $bash_cv_termcap_lib = libncurses; then
4400 TERMCAP_LIB=-lncurses
4402 elif test $bash_cv_termcap_lib = libc; then
4406 TERMCAP_LIB=-lcurses
4413 echo "$as_me:$LINENO: checking version of installed readline library" >&5
4414 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
4416 # What a pain in the ass this is.
4418 # save cpp and ld options
4419 _save_CFLAGS="$CFLAGS"
4420 _save_LDFLAGS="$LDFLAGS"
4423 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
4424 # allows the caller to do something like $_rl_prefix=$withval if the user
4425 # specifies --with-installed-readline=PREFIX as an argument to configure
4427 if test -z "$ac_cv_rl_prefix"; then
4428 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
4431 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
4432 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
4434 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
4435 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
4436 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
4438 if test "${ac_cv_rl_version+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 if test "$cross_compiling" = yes; then
4442 ac_cv_rl_version='4.2'
4444 cat >conftest.$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4453 #include <readline/readline.h>
4458 fp = fopen("conftest.rlv", "w");
4459 if (fp == 0) exit(1);
4460 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
4466 rm -f conftest$ac_exeext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468 (eval $ac_link) 2>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_cv_rl_version=`cat conftest.rlv`
4479 echo "$as_me: program exited with status $ac_status" >&5
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4484 ac_cv_rl_version='0.0'
4486 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4491 CFLAGS="$_save_CFLAGS"
4492 LDFLAGS="$_save_LDFLAGS"
4499 case "$ac_cv_rl_version" in
4500 2*|3*|4*|5*|6*|7*|8*|9*)
4501 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
4502 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
4508 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
4509 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
4515 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
4516 [0-9]) _RL_MINOR=0$RL_MINOR ;;
4520 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
4522 # Readline versions greater than 4.2 have these defines in readline.h
4524 if test $ac_cv_rl_version = '0.0' ; then
4525 { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
4526 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
4527 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
4528 # set these for use by the caller
4529 RL_PREFIX=$ac_cv_rl_prefix
4530 RL_LIBDIR=$ac_cv_rl_libdir
4531 RL_INCLUDEDIR=$ac_cv_rl_includedir
4532 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4533 echo "${ECHO_T}$ac_cv_rl_version" >&6
4537 cat >>confdefs.h <<_ACEOF
4538 #define RL_READLINE_VERSION $RL_VERSION
4542 cat >>confdefs.h <<_ACEOF
4543 #define RL_VERSION_MAJOR $RL_MAJOR
4547 cat >>confdefs.h <<_ACEOF
4548 #define RL_VERSION_MINOR $RL_MINOR
4556 # set these for use by the caller
4557 RL_PREFIX=$ac_cv_rl_prefix
4558 RL_LIBDIR=$ac_cv_rl_libdir
4559 RL_INCLUDEDIR=$ac_cv_rl_includedir
4561 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4562 echo "${ECHO_T}$ac_cv_rl_version" >&6
4567 case "$ac_cv_rl_version" in
4569 *) opt_with_installed_readline=no
4570 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
4571 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
4572 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
4573 echo "$as_me: WARNING: using private bash version" >&2;}
4578 if test $opt_readline = yes; then
4579 cat >>confdefs.h <<\_ACEOF
4583 READLINE_LIB=-lreadline
4584 if test "$opt_with_installed_readline" != "no" ; then
4585 case "$opt_with_installed_readline" in
4587 *) case "$RL_INCLUDEDIR" in
4589 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4595 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4596 READLINE_DEP='$(READLINE_LIBRARY)'
4599 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4600 READLINE_LIB= READLINE_DEP=
4602 if test $opt_history = yes || test $opt_bang_history = yes; then
4603 if test $opt_history = yes; then
4604 cat >>confdefs.h <<\_ACEOF
4609 if test $opt_bang_history = yes; then
4610 cat >>confdefs.h <<\_ACEOF
4611 #define BANG_HISTORY 1
4615 HISTORY_LIB=-lhistory
4616 if test "$opt_with_installed_readline" != "no"; then
4617 HIST_LIBDIR=$RL_LIBDIR
4619 case "$opt_with_installed_readline" in
4621 *) case "$RL_INCLUDEDIR" in
4623 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4628 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4629 HISTORY_DEP='$(HISTORY_LIBRARY)'
4632 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4633 HISTORY_LIB= HISTORY_DEP=
4645 # Find a good install program. We prefer a C program (faster),
4646 # so one script is as good as another. But avoid the broken or
4647 # incompatible versions:
4648 # SysV /etc/install, /usr/sbin/install
4649 # SunOS /usr/etc/install
4650 # IRIX /sbin/install
4652 # AmigaOS /C/install, which installs bootblocks on floppy discs
4653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4656 # ./install, which can be erroneously created by make from ./install.sh.
4657 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4658 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4659 if test -z "$INSTALL"; then
4660 if test "${ac_cv_path_install+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 # Account for people who put trailing slashes in PATH elements.
4670 ./ | .// | /cC/* | \
4671 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4674 # OSF1 and SCO ODT 3.0 have their own names for install.
4675 # Don't use installbsd from OSF since it installs stuff as root
4677 for ac_prog in ginstall scoinst install; do
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4680 if test $ac_prog = install &&
4681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4682 # AIX install. It has an incompatible calling convention.
4684 elif test $ac_prog = install &&
4685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4686 # program-specific install script used by HP pwplus--don't use.
4689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4701 if test "${ac_cv_path_install+set}" = set; then
4702 INSTALL=$ac_cv_path_install
4704 # As a last resort, use the slow shell script. We don't cache a
4705 # path for INSTALL within a source directory, because that will
4706 # break other packages using the cache if that directory is
4707 # removed, or if the path is relative.
4708 INSTALL=$ac_install_sh
4711 echo "$as_me:$LINENO: result: $INSTALL" >&5
4712 echo "${ECHO_T}$INSTALL" >&6
4714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4715 # It thinks the first close brace ends the variable substitution.
4716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4720 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4722 # Extract the first word of "ar", so it can be a program name with args.
4723 set dummy ar; ac_word=$2
4724 echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4726 if test "${ac_cv_prog_AR+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 if test -n "$AR"; then
4730 ac_cv_prog_AR="$AR" # Let the user override the test.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
4750 if test -n "$AR"; then
4751 echo "$as_me:$LINENO: result: $AR" >&5
4752 echo "${ECHO_T}$AR" >&6
4754 echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6
4758 test -n "$ARFLAGS" || ARFLAGS="cr"
4759 if test -n "$ac_tool_prefix"; then
4760 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4761 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4762 echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764 if test "${ac_cv_prog_RANLIB+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 if test -n "$RANLIB"; then
4768 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 RANLIB=$ac_cv_prog_RANLIB
4787 if test -n "$RANLIB"; then
4788 echo "$as_me:$LINENO: result: $RANLIB" >&5
4789 echo "${ECHO_T}$RANLIB" >&6
4791 echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4796 if test -z "$ac_cv_prog_RANLIB"; then
4797 ac_ct_RANLIB=$RANLIB
4798 # Extract the first word of "ranlib", so it can be a program name with args.
4799 set dummy ranlib; ac_word=$2
4800 echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4802 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 if test -n "$ac_ct_RANLIB"; then
4806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815 ac_cv_prog_ac_ct_RANLIB="ranlib"
4816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4825 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4826 if test -n "$ac_ct_RANLIB"; then
4827 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4828 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4830 echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6
4834 RANLIB=$ac_ct_RANLIB
4836 RANLIB="$ac_cv_prog_RANLIB"
4839 for ac_prog in 'bison -y' byacc
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4845 if test "${ac_cv_prog_YACC+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 if test -n "$YACC"; then
4849 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_YACC="$ac_prog"
4859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 YACC=$ac_cv_prog_YACC
4868 if test -n "$YACC"; then
4869 echo "$as_me:$LINENO: result: $YACC" >&5
4870 echo "${ECHO_T}$YACC" >&6
4872 echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6
4876 test -n "$YACC" && break
4878 test -n "$YACC" || YACC="yacc"
4880 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4881 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4882 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4883 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 cat >conftest.make <<\_ACEOF
4888 @echo 'ac_maketemp="$(MAKE)"'
4890 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4891 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4892 if test -n "$ac_maketemp"; then
4893 eval ac_cv_prog_make_${ac_make}_set=yes
4895 eval ac_cv_prog_make_${ac_make}_set=no
4899 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4900 echo "$as_me:$LINENO: result: yes" >&5
4901 echo "${ECHO_T}yes" >&6
4904 echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6
4906 SET_MAKE="MAKE=${MAKE-make}"
4911 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
4912 *) MAKE_SHELL=/bin/sh ;;
4916 cat >>confdefs.h <<\_ACEOF
4917 #define _GNU_SOURCE 1
4921 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4922 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4923 if test "${ac_cv_c_const+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 cat >conftest.$ac_ext <<_ACEOF
4927 #line $LINENO "configure"
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4937 /* FIXME: Include the comments suggested by Paul. */
4939 /* Ultrix mips cc rejects this. */
4940 typedef int charset[2];
4942 /* SunOS 4.1.1 cc rejects this. */
4943 char const *const *ccp;
4945 /* NEC SVR4.0.2 mips cc rejects this. */
4946 struct point {int x, y;};
4947 static struct point const zero = {0,0};
4948 /* AIX XL C 1.02.0.0 rejects this.
4949 It does not let you subtract one const X* pointer from another in
4950 an arm of an if-expression whose if-part is not a constant
4952 const char *g = "string";
4953 ccp = &g + (g ? g-g : 0);
4954 /* HPUX 7.0 cc rejects these. */
4957 ccp = (char const *const *) p;
4958 { /* SCO 3.2v4 cc rejects this. */
4960 char const *s = 0 ? (char *) 0 : (char const *) 0;
4964 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4966 const int *foo = &x[0];
4969 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4970 typedef const int *iptr;
4974 { /* AIX XL C 1.02.0.0 rejects this saying
4975 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4976 struct s { int j; const int *ap[3]; };
4977 struct s *b; b->j = 5;
4979 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5007 rm -f conftest.$ac_objext conftest.$ac_ext
5009 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5010 echo "${ECHO_T}$ac_cv_c_const" >&6
5011 if test $ac_cv_c_const = no; then
5013 cat >>confdefs.h <<\_ACEOF
5019 echo "$as_me:$LINENO: checking for inline" >&5
5020 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5021 if test "${ac_cv_c_inline+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 for ac_kw in inline __inline__ __inline; do
5026 cat >conftest.$ac_ext <<_ACEOF
5027 #line $LINENO "configure"
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5035 static $ac_kw foo_t static_foo () {return 0; }
5036 $ac_kw foo_t foo () {return 0; }
5040 rm -f conftest.$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -s conftest.$ac_objext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_c_inline=$ac_kw; break
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5058 rm -f conftest.$ac_objext conftest.$ac_ext
5062 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5063 echo "${ECHO_T}$ac_cv_c_inline" >&6
5064 case $ac_cv_c_inline in
5067 cat >>confdefs.h <<\_ACEOF
5071 *) cat >>confdefs.h <<_ACEOF
5072 #define inline $ac_cv_c_inline
5077 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5078 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5079 if test "${ac_cv_c_bigendian+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 # See if sys/param.h defines the BYTE_ORDER macro.
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 #include <sys/types.h>
5091 #include <sys/param.h>
5096 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5104 rm -f conftest.$ac_objext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106 (eval $ac_compile) 2>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 # It does; now see whether it defined to BIG_ENDIAN or not.
5117 cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5124 #include <sys/types.h>
5125 #include <sys/param.h>
5130 #if BYTE_ORDER != BIG_ENDIAN
5138 rm -f conftest.$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } &&
5144 { ac_try='test -s conftest.$ac_objext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_cv_c_bigendian=yes
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5155 ac_cv_c_bigendian=no
5157 rm -f conftest.$ac_objext conftest.$ac_ext
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5162 # It does not; compile a test program.
5163 if test "$cross_compiling" = yes; then
5164 # try to guess the endianness by grepping values into an object file
5165 ac_cv_c_bigendian=unknown
5166 cat >conftest.$ac_ext <<_ACEOF
5167 #line $LINENO "configure"
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5174 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5175 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5176 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5177 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5178 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5182 _ascii (); _ebcdic ();
5187 rm -f conftest.$ac_objext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5189 (eval $ac_compile) 2>&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -s conftest.$ac_objext'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5200 ac_cv_c_bigendian=yes
5202 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5203 if test "$ac_cv_c_bigendian" = unknown; then
5204 ac_cv_c_bigendian=no
5206 # finding both strings is unlikely to happen, but who knows?
5207 ac_cv_c_bigendian=unknown
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5215 rm -f conftest.$ac_objext conftest.$ac_ext
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5227 /* Are we little or big endian? From Harbison&Steele. */
5231 char c[sizeof (long)];
5234 exit (u.c[sizeof (long) - 1] == 1);
5237 rm -f conftest$ac_exeext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239 (eval $ac_link) 2>&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_cv_c_bigendian=no
5250 echo "$as_me: program exited with status $ac_status" >&5
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5255 ac_cv_c_bigendian=yes
5257 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5260 rm -f conftest.$ac_objext conftest.$ac_ext
5262 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5263 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5264 case $ac_cv_c_bigendian in
5267 cat >>confdefs.h <<\_ACEOF
5268 #define WORDS_BIGENDIAN 1
5274 { { echo "$as_me:$LINENO: error: unknown endianness
5275 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5276 echo "$as_me: error: unknown endianness
5277 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5278 { (exit 1); exit 1; }; } ;;
5281 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5282 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
5283 if test "${ac_cv_c_stringize+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 cat >conftest.$ac_ext <<_ACEOF
5287 #line $LINENO "configure"
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5295 char *s = x(teststring);
5297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298 $EGREP "#teststring" >/dev/null 2>&1; then
5299 ac_cv_c_stringize=no
5301 ac_cv_c_stringize=yes
5306 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5307 echo "${ECHO_T}$ac_cv_c_stringize" >&6
5308 if test $ac_cv_c_stringize = yes; then
5310 cat >>confdefs.h <<\_ACEOF
5311 #define HAVE_STRINGIZE 1
5316 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5317 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5318 if test "${ac_cv_c_long_double+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5329 long double foo = 0.0;
5333 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5334 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5335 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5342 rm -f conftest.$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344 (eval $ac_compile) 2>&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_c_long_double=yes
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 ac_cv_c_long_double=no
5361 rm -f conftest.$ac_objext conftest.$ac_ext
5363 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5364 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5365 if test $ac_cv_c_long_double = yes; then
5367 cat >>confdefs.h <<\_ACEOF
5368 #define HAVE_LONG_DOUBLE 1
5373 echo "$as_me:$LINENO: checking for function prototypes" >&5
5374 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5375 if test "$ac_cv_prog_cc_stdc" != no; then
5376 echo "$as_me:$LINENO: result: yes" >&5
5377 echo "${ECHO_T}yes" >&6
5379 cat >>confdefs.h <<\_ACEOF
5380 #define PROTOTYPES 1
5384 cat >>confdefs.h <<\_ACEOF
5385 #define __PROTOTYPES 1
5389 echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6
5394 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5395 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5396 if test "${ac_cv_c_char_unsigned+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 cat >conftest.$ac_ext <<_ACEOF
5400 #line $LINENO "configure"
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5406 $ac_includes_default
5410 static int test_array [1 - 2 * !(((char) -1) < 0)];
5417 rm -f conftest.$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419 (eval $ac_compile) 2>&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } &&
5423 { ac_try='test -s conftest.$ac_objext'
5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5429 ac_cv_c_char_unsigned=no
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5434 ac_cv_c_char_unsigned=yes
5436 rm -f conftest.$ac_objext conftest.$ac_ext
5438 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5439 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5440 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5441 cat >>confdefs.h <<\_ACEOF
5442 #define __CHAR_UNSIGNED__ 1
5450 if test -n "$ac_aux_dir"; then
5451 case "$ac_aux_dir" in
5452 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5453 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5456 if test -z "$MKINSTALLDIRS"; then
5457 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5462 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5463 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5464 # Check whether --enable-nls or --disable-nls was given.
5465 if test "${enable_nls+set}" = set; then
5466 enableval="$enable_nls"
5471 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5472 echo "${ECHO_T}$USE_NLS" >&6
5479 # Prepare PATH_SEPARATOR.
5480 # The user is always right.
5481 if test "${PATH_SEPARATOR+set}" != set; then
5482 echo "#! /bin/sh" >conf$$.sh
5483 echo "exit 0" >>conf$$.sh
5485 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5493 # Find out how to test for executable files. Don't use a zero-byte file,
5494 # as systems may use methods other than mode bits to determine executability.
5495 cat >conf$$.file <<_ASEOF
5499 chmod +x conf$$.file
5500 if test -x conf$$.file >/dev/null 2>&1; then
5501 ac_executable_p="test -x"
5503 ac_executable_p="test -f"
5507 # Extract the first word of "msgfmt", so it can be a program name with args.
5508 set dummy msgfmt; ac_word=$2
5509 echo "$as_me:$LINENO: checking for $ac_word" >&5
5510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5511 if test "${ac_cv_path_MSGFMT+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5519 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5520 for ac_dir in $PATH; do
5522 test -z "$ac_dir" && ac_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5525 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5526 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5527 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5534 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5538 MSGFMT="$ac_cv_path_MSGFMT"
5539 if test "$MSGFMT" != ":"; then
5540 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5541 echo "${ECHO_T}$MSGFMT" >&6
5543 echo "$as_me:$LINENO: result: no" >&5
5544 echo "${ECHO_T}no" >&6
5547 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5548 set dummy gmsgfmt; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5577 GMSGFMT=$ac_cv_path_GMSGFMT
5579 if test -n "$GMSGFMT"; then
5580 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5581 echo "${ECHO_T}$GMSGFMT" >&6
5583 echo "$as_me:$LINENO: result: no" >&5
5584 echo "${ECHO_T}no" >&6
5589 # Prepare PATH_SEPARATOR.
5590 # The user is always right.
5591 if test "${PATH_SEPARATOR+set}" != set; then
5592 echo "#! /bin/sh" >conf$$.sh
5593 echo "exit 0" >>conf$$.sh
5595 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5603 # Find out how to test for executable files. Don't use a zero-byte file,
5604 # as systems may use methods other than mode bits to determine executability.
5605 cat >conf$$.file <<_ASEOF
5609 chmod +x conf$$.file
5610 if test -x conf$$.file >/dev/null 2>&1; then
5611 ac_executable_p="test -x"
5613 ac_executable_p="test -f"
5617 # Extract the first word of "xgettext", so it can be a program name with args.
5618 set dummy xgettext; ac_word=$2
5619 echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5629 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5630 for ac_dir in $PATH; do
5632 test -z "$ac_dir" && ac_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5635 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5636 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5637 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5644 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5648 XGETTEXT="$ac_cv_path_XGETTEXT"
5649 if test "$XGETTEXT" != ":"; then
5650 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5651 echo "${ECHO_T}$XGETTEXT" >&6
5653 echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5660 # Prepare PATH_SEPARATOR.
5661 # The user is always right.
5662 if test "${PATH_SEPARATOR+set}" != set; then
5663 echo "#! /bin/sh" >conf$$.sh
5664 echo "exit 0" >>conf$$.sh
5666 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5674 # Find out how to test for executable files. Don't use a zero-byte file,
5675 # as systems may use methods other than mode bits to determine executability.
5676 cat >conf$$.file <<_ASEOF
5680 chmod +x conf$$.file
5681 if test -x conf$$.file >/dev/null 2>&1; then
5682 ac_executable_p="test -x"
5684 ac_executable_p="test -f"
5688 # Extract the first word of "msgmerge", so it can be a program name with args.
5689 set dummy msgmerge; ac_word=$2
5690 echo "$as_me:$LINENO: checking for $ac_word" >&5
5691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5692 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5700 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5701 for ac_dir in $PATH; do
5703 test -z "$ac_dir" && ac_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5706 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5707 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5714 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5718 MSGMERGE="$ac_cv_path_MSGMERGE"
5719 if test "$MSGMERGE" != ":"; then
5720 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5721 echo "${ECHO_T}$MSGMERGE" >&6
5723 echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6
5728 if test "$GMSGFMT" != ":"; then
5729 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5730 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5733 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5734 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5735 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5740 if test "$XGETTEXT" != ":"; then
5741 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5742 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5745 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5746 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5752 ac_config_commands="$ac_config_commands default-1"
5755 echo "$as_me:$LINENO: checking for off_t" >&5
5756 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5757 if test "${ac_cv_type_off_t+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 $ac_includes_default
5779 rm -f conftest.$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -s conftest.$ac_objext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_cv_type_off_t=yes
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5798 rm -f conftest.$ac_objext conftest.$ac_ext
5800 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5801 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5802 if test $ac_cv_type_off_t = yes; then
5806 cat >>confdefs.h <<_ACEOF
5812 echo "$as_me:$LINENO: checking for size_t" >&5
5813 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5814 if test "${ac_cv_type_size_t+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 cat >conftest.$ac_ext <<_ACEOF
5818 #line $LINENO "configure"
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 $ac_includes_default
5830 if (sizeof (size_t))
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } &&
5842 { ac_try='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_cv_type_size_t=yes
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 ac_cv_type_size_t=no
5855 rm -f conftest.$ac_objext conftest.$ac_ext
5857 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5858 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5859 if test $ac_cv_type_size_t = yes; then
5863 cat >>confdefs.h <<_ACEOF
5864 #define size_t unsigned
5869 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5870 # for constant arguments. Useless!
5871 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5872 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5873 if test "${ac_cv_working_alloca_h+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 cat >conftest.$ac_ext <<_ACEOF
5877 #line $LINENO "configure"
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5887 char *p = (char *) alloca (2 * sizeof (int));
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894 (eval $ac_link) 2>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try='test -s conftest$ac_exeext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_cv_working_alloca_h=yes
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5909 ac_cv_working_alloca_h=no
5911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5913 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5914 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5915 if test $ac_cv_working_alloca_h = yes; then
5917 cat >>confdefs.h <<\_ACEOF
5918 #define HAVE_ALLOCA_H 1
5923 echo "$as_me:$LINENO: checking for alloca" >&5
5924 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5925 if test "${ac_cv_func_alloca_works+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 cat >conftest.$ac_ext <<_ACEOF
5929 #line $LINENO "configure"
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5936 # define alloca __builtin_alloca
5939 # include <malloc.h>
5940 # define alloca _alloca
5943 # include <alloca.h>
5948 # ifndef alloca /* predefined by HP cc +Olibcalls */
5959 char *p = (char *) alloca (1);
5964 rm -f conftest.$ac_objext conftest$ac_exeext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966 (eval $ac_link) 2>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } &&
5970 { ac_try='test -s conftest$ac_exeext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_cv_func_alloca_works=yes
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 ac_cv_func_alloca_works=no
5983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5986 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5988 if test $ac_cv_func_alloca_works = yes; then
5990 cat >>confdefs.h <<\_ACEOF
5991 #define HAVE_ALLOCA 1
5995 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5996 # that cause trouble. Some versions do not even contain alloca or
5997 # contain a buggy version. If you still want to use their alloca,
5998 # use ar to extract alloca.o from them instead of compiling alloca.c.
6000 ALLOCA=alloca.$ac_objext
6002 cat >>confdefs.h <<\_ACEOF
6007 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6008 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6009 if test "${ac_cv_os_cray+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 cat >conftest.$ac_ext <<_ACEOF
6013 #line $LINENO "configure"
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 #if defined(CRAY) && ! defined(CRAY2)
6026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027 $EGREP "webecray" >/dev/null 2>&1; then
6035 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6036 echo "${ECHO_T}$ac_cv_os_cray" >&6
6037 if test $ac_cv_os_cray = yes; then
6038 for ac_func in _getb67 GETB67 getb67; do
6039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6040 echo "$as_me:$LINENO: checking for $ac_func" >&5
6041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6042 if eval "test \"\${$as_ac_var+set}\" = set"; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 cat >conftest.$ac_ext <<_ACEOF
6046 #line $LINENO "configure"
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 /* System header to define __stub macros and hopefully few prototypes,
6053 which can conflict with char $ac_func (); below.
6054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6055 <limits.h> exists even on freestanding compilers. */
6057 # include <limits.h>
6059 # include <assert.h>
6061 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6069 /* The GNU C library defines this for functions which it implements
6070 to always fail with ENOSYS. Some functions are actually named
6071 something starting with __ and the normal name is an alias. */
6072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6075 char (*f) () = $ac_func;
6084 return f != $ac_func;
6089 rm -f conftest.$ac_objext conftest$ac_exeext
6090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6091 (eval $ac_link) 2>&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try='test -s conftest$ac_exeext'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }; then
6101 eval "$as_ac_var=yes"
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6106 eval "$as_ac_var=no"
6108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6112 if test `eval echo '${'$as_ac_var'}'` = yes; then
6114 cat >>confdefs.h <<_ACEOF
6115 #define CRAY_STACKSEG_END $ac_func
6124 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6125 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6126 if test "${ac_cv_c_stack_direction+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 if test "$cross_compiling" = yes; then
6130 ac_cv_c_stack_direction=0
6132 cat >conftest.$ac_ext <<_ACEOF
6133 #line $LINENO "configure"
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6140 find_stack_direction ()
6142 static char *addr = 0;
6147 return find_stack_direction ();
6150 return (&dummy > addr) ? 1 : -1;
6156 exit (find_stack_direction () < 0);
6159 rm -f conftest$ac_exeext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6161 (eval $ac_link) 2>&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_c_stack_direction=1
6172 echo "$as_me: program exited with status $ac_status" >&5
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6177 ac_cv_c_stack_direction=-1
6179 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6182 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6183 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6185 cat >>confdefs.h <<_ACEOF
6186 #define STACK_DIRECTION $ac_cv_c_stack_direction
6194 for ac_header in stdlib.h unistd.h
6196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6198 echo "$as_me:$LINENO: checking for $ac_header" >&5
6199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6206 # Is the header compilable?
6207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6209 cat >conftest.$ac_ext <<_ACEOF
6210 #line $LINENO "configure"
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6216 $ac_includes_default
6217 #include <$ac_header>
6219 rm -f conftest.$ac_objext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221 (eval $ac_compile) 2>&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_header_compiler=yes
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6236 ac_header_compiler=no
6238 rm -f conftest.$ac_objext conftest.$ac_ext
6239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6240 echo "${ECHO_T}$ac_header_compiler" >&6
6242 # Is the header present?
6243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6245 cat >conftest.$ac_ext <<_ACEOF
6246 #line $LINENO "configure"
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 #include <$ac_header>
6254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6257 grep -v '^ *+' conftest.er1 >conftest.err
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } >/dev/null; then
6262 if test -s conftest.err; then
6263 ac_cpp_err=$ac_c_preproc_warn_flag
6270 if test -z "$ac_cpp_err"; then
6271 ac_header_preproc=yes
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6276 ac_header_preproc=no
6278 rm -f conftest.err conftest.$ac_ext
6279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6280 echo "${ECHO_T}$ac_header_preproc" >&6
6282 # So? What about this header?
6283 case $ac_header_compiler:$ac_header_preproc in
6285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6291 ## ------------------------------------ ##
6292 ## Report this to bug-autoconf@gnu.org. ##
6293 ## ------------------------------------ ##
6296 sed "s/^/$as_me: WARNING: /" >&2
6299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6307 ## ------------------------------------ ##
6308 ## Report this to bug-autoconf@gnu.org. ##
6309 ## ------------------------------------ ##
6312 sed "s/^/$as_me: WARNING: /" >&2
6315 echo "$as_me:$LINENO: checking for $ac_header" >&5
6316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 eval "$as_ac_Header=$ac_header_preproc"
6322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6327 cat >>confdefs.h <<_ACEOF
6328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6336 for ac_func in getpagesize
6338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6339 echo "$as_me:$LINENO: checking for $ac_func" >&5
6340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6341 if eval "test \"\${$as_ac_var+set}\" = set"; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 cat >conftest.$ac_ext <<_ACEOF
6345 #line $LINENO "configure"
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 /* System header to define __stub macros and hopefully few prototypes,
6352 which can conflict with char $ac_func (); below.
6353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6354 <limits.h> exists even on freestanding compilers. */
6356 # include <limits.h>
6358 # include <assert.h>
6360 /* Override any gcc2 internal prototype to avoid an error. */
6365 /* We use char because int might match the return type of a gcc2
6366 builtin and then its argument prototype would still apply. */
6368 /* The GNU C library defines this for functions which it implements
6369 to always fail with ENOSYS. Some functions are actually named
6370 something starting with __ and the normal name is an alias. */
6371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6374 char (*f) () = $ac_func;
6383 return f != $ac_func;
6388 rm -f conftest.$ac_objext conftest$ac_exeext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6390 (eval $ac_link) 2>&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -s conftest$ac_exeext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 eval "$as_ac_var=yes"
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 eval "$as_ac_var=no"
6407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6411 if test `eval echo '${'$as_ac_var'}'` = yes; then
6412 cat >>confdefs.h <<_ACEOF
6413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6419 echo "$as_me:$LINENO: checking for working mmap" >&5
6420 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6421 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 if test "$cross_compiling" = yes; then
6425 ac_cv_func_mmap_fixed_mapped=no
6427 cat >conftest.$ac_ext <<_ACEOF
6428 #line $LINENO "configure"
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 $ac_includes_default
6435 /* malloc might have been renamed as rpl_malloc. */
6438 /* Thanks to Mike Haertel and Jim Avera for this test.
6439 Here is a matrix of mmap possibilities:
6440 mmap private not fixed
6441 mmap private fixed at somewhere currently unmapped
6442 mmap private fixed at somewhere already mapped
6443 mmap shared not fixed
6444 mmap shared fixed at somewhere currently unmapped
6445 mmap shared fixed at somewhere already mapped
6446 For private mappings, we should verify that changes cannot be read()
6447 back from the file, nor mmap's back from the file at a different
6448 address. (There have been systems where private was not correctly
6449 implemented like the infamous i386 svr4.0, and systems where the
6450 VM page cache was not coherent with the file system buffer cache
6451 like early versions of FreeBSD and possibly contemporary NetBSD.)
6452 For shared mappings, we should conversely verify that changes get
6453 propagated back to all the places they're supposed to be.
6455 Grep wants private fixed already mapped.
6456 The main things grep needs to know about mmap are:
6457 * does it exist and is it safe to write into the mmap'd area
6458 * how to use it (BSD variants) */
6461 #include <sys/mman.h>
6463 #if !STDC_HEADERS && !HAVE_STDLIB_H
6467 /* This mess was copied from the GNU getpagesize.h. */
6468 #if !HAVE_GETPAGESIZE
6469 /* Assume that all systems that can run configure have sys/param.h. */
6470 # if !HAVE_SYS_PARAM_H
6471 # define HAVE_SYS_PARAM_H 1
6474 # ifdef _SC_PAGESIZE
6475 # define getpagesize() sysconf(_SC_PAGESIZE)
6476 # else /* no _SC_PAGESIZE */
6477 # if HAVE_SYS_PARAM_H
6478 # include <sys/param.h>
6479 # ifdef EXEC_PAGESIZE
6480 # define getpagesize() EXEC_PAGESIZE
6481 # else /* no EXEC_PAGESIZE */
6483 # define getpagesize() NBPG * CLSIZE
6486 # endif /* no CLSIZE */
6487 # else /* no NBPG */
6489 # define getpagesize() NBPC
6490 # else /* no NBPC */
6492 # define getpagesize() PAGESIZE
6493 # endif /* PAGESIZE */
6494 # endif /* no NBPC */
6495 # endif /* no NBPG */
6496 # endif /* no EXEC_PAGESIZE */
6497 # else /* no HAVE_SYS_PARAM_H */
6498 # define getpagesize() 8192 /* punt totally */
6499 # endif /* no HAVE_SYS_PARAM_H */
6500 # endif /* no _SC_PAGESIZE */
6502 #endif /* no HAVE_GETPAGESIZE */
6507 char *data, *data2, *data3;
6511 pagesize = getpagesize ();
6513 /* First, make a file with some known garbage in it. */
6514 data = (char *) malloc (pagesize);
6517 for (i = 0; i < pagesize; ++i)
6518 *(data + i) = rand ();
6520 fd = creat ("conftest.mmap", 0600);
6523 if (write (fd, data, pagesize) != pagesize)
6527 /* Next, try to mmap the file at a fixed address which already has
6528 something else allocated at it. If we can, also make sure that
6529 we see the same garbage. */
6530 fd = open ("conftest.mmap", O_RDWR);
6533 data2 = (char *) malloc (2 * pagesize);
6536 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6537 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6538 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6540 for (i = 0; i < pagesize; ++i)
6541 if (*(data + i) != *(data2 + i))
6544 /* Finally, make sure that changes to the mapped area do not
6545 percolate back to the file as seen by read(). (This is a bug on
6546 some variants of i386 svr4.0.) */
6547 for (i = 0; i < pagesize; ++i)
6548 *(data2 + i) = *(data2 + i) + 1;
6549 data3 = (char *) malloc (pagesize);
6552 if (read (fd, data3, pagesize) != pagesize)
6554 for (i = 0; i < pagesize; ++i)
6555 if (*(data + i) != *(data3 + i))
6561 rm -f conftest$ac_exeext
6562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6563 (eval $ac_link) 2>&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 ac_cv_func_mmap_fixed_mapped=yes
6574 echo "$as_me: program exited with status $ac_status" >&5
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6579 ac_cv_func_mmap_fixed_mapped=no
6581 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6585 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6586 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6588 cat >>confdefs.h <<\_ACEOF
6596 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6597 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6598 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 cat >conftest.$ac_ext <<_ACEOF
6602 #line $LINENO "configure"
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6609 #include <features.h>
6610 #ifdef __GNU_LIBRARY__
6611 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6618 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6619 ac_cv_gnu_library_2_1=yes
6621 ac_cv_gnu_library_2_1=no
6628 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6629 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6631 GLIBC21="$ac_cv_gnu_library_2_1"
6636 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6637 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
6638 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 if test "$cross_compiling" = yes; then
6644 # Guess based on the CPU.
6646 alpha* | i3456786 | m68k | s390*)
6647 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6649 gt_cv_int_divbyzero_sigfpe="guessing no";;
6653 cat >conftest.$ac_ext <<_ACEOF
6654 #line $LINENO "configure"
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6666 sigfpe_handler (int sig)
6668 sigfpe_handler (sig) int sig;
6671 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6672 exit (sig != SIGFPE);
6682 signal (SIGFPE, sigfpe_handler);
6683 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6684 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6685 signal (SIGTRAP, sigfpe_handler);
6687 /* Linux/SPARC yields signal SIGILL. */
6688 #if defined (__sparc__) && defined (__linux__)
6689 signal (SIGILL, sigfpe_handler);
6698 rm -f conftest$ac_exeext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700 (eval $ac_link) 2>&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; }; then
6709 gt_cv_int_divbyzero_sigfpe=yes
6711 echo "$as_me: program exited with status $ac_status" >&5
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6716 gt_cv_int_divbyzero_sigfpe=no
6718 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6722 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6723 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
6724 case "$gt_cv_int_divbyzero_sigfpe" in
6729 cat >>confdefs.h <<_ACEOF
6730 #define INTDIV0_RAISES_SIGFPE $value
6735 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6736 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6737 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 cat >conftest.$ac_ext <<_ACEOF
6741 #line $LINENO "configure"
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6747 #include <sys/types.h>
6748 #include <inttypes.h>
6752 uintmax_t i = (uintmax_t) -1;
6757 rm -f conftest.$ac_objext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759 (eval $ac_compile) 2>&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try='test -s conftest.$ac_objext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 jm_ac_cv_header_inttypes_h=yes
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 jm_ac_cv_header_inttypes_h=no
6776 rm -f conftest.$ac_objext conftest.$ac_ext
6778 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6779 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6780 if test $jm_ac_cv_header_inttypes_h = yes; then
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6789 echo "$as_me:$LINENO: checking for stdint.h" >&5
6790 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6791 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 cat >conftest.$ac_ext <<_ACEOF
6795 #line $LINENO "configure"
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <sys/types.h>
6806 uintmax_t i = (uintmax_t) -1;
6811 rm -f conftest.$ac_objext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6813 (eval $ac_compile) 2>&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try='test -s conftest.$ac_objext'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6823 jm_ac_cv_header_stdint_h=yes
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6828 jm_ac_cv_header_stdint_h=no
6830 rm -f conftest.$ac_objext conftest.$ac_ext
6832 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6833 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6834 if test $jm_ac_cv_header_stdint_h = yes; then
6836 cat >>confdefs.h <<_ACEOF
6837 #define HAVE_STDINT_H_WITH_UINTMAX 1
6843 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6844 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6845 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 cat >conftest.$ac_ext <<_ACEOF
6849 #line $LINENO "configure"
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 unsigned long long ull = 1; int i = 63;
6859 unsigned long long ullmax = (unsigned long long) -1;
6860 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6865 rm -f conftest.$ac_objext conftest$ac_exeext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867 (eval $ac_link) 2>&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } &&
6871 { ac_try='test -s conftest$ac_exeext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 ac_cv_type_unsigned_long_long=yes
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6882 ac_cv_type_unsigned_long_long=no
6884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6886 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6887 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6888 if test $ac_cv_type_unsigned_long_long = yes; then
6890 cat >>confdefs.h <<\_ACEOF
6891 #define HAVE_UNSIGNED_LONG_LONG 1
6899 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6901 test $ac_cv_type_unsigned_long_long = yes \
6902 && ac_type='unsigned long long' \
6903 || ac_type='unsigned long'
6905 cat >>confdefs.h <<_ACEOF
6906 #define uintmax_t $ac_type
6911 cat >>confdefs.h <<\_ACEOF
6912 #define HAVE_UINTMAX_T 1
6918 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6919 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6920 if test "${gt_cv_header_inttypes_h+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 cat >conftest.$ac_ext <<_ACEOF
6925 #line $LINENO "configure"
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <sys/types.h>
6932 #include <inttypes.h>
6941 rm -f conftest.$ac_objext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943 (eval $ac_compile) 2>&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -s conftest.$ac_objext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 gt_cv_header_inttypes_h=yes
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 gt_cv_header_inttypes_h=no
6960 rm -f conftest.$ac_objext conftest.$ac_ext
6963 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6964 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6965 if test $gt_cv_header_inttypes_h = yes; then
6967 cat >>confdefs.h <<_ACEOF
6968 #define HAVE_INTTYPES_H 1
6975 if test $gt_cv_header_inttypes_h = yes; then
6976 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6977 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6978 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 cat >conftest.$ac_ext <<_ACEOF
6983 #line $LINENO "configure"
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <inttypes.h>
7002 rm -f conftest.$ac_objext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7004 (eval $ac_compile) 2>&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -s conftest.$ac_objext'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7014 gt_cv_inttypes_pri_broken=no
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7019 gt_cv_inttypes_pri_broken=yes
7021 rm -f conftest.$ac_objext conftest.$ac_ext
7024 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7025 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7027 if test "$gt_cv_inttypes_pri_broken" = yes; then
7029 cat >>confdefs.h <<_ACEOF
7030 #define PRI_MACROS_BROKEN 1
7036 if test "X$prefix" = "XNONE"; then
7037 acl_final_prefix="$ac_default_prefix"
7039 acl_final_prefix="$prefix"
7041 if test "X$exec_prefix" = "XNONE"; then
7042 acl_final_exec_prefix='${prefix}'
7044 acl_final_exec_prefix="$exec_prefix"
7046 acl_save_prefix="$prefix"
7047 prefix="$acl_final_prefix"
7048 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7049 prefix="$acl_save_prefix"
7052 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7053 if test "${with_gnu_ld+set}" = set; then
7054 withval="$with_gnu_ld"
7055 test "$withval" = no || with_gnu_ld=yes
7059 # Prepare PATH_SEPARATOR.
7060 # The user is always right.
7061 if test "${PATH_SEPARATOR+set}" != set; then
7062 echo "#! /bin/sh" >conf$$.sh
7063 echo "exit 0" >>conf$$.sh
7065 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7073 if test "$GCC" = yes; then
7074 # Check if gcc -print-prog-name=ld gives a path.
7075 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7076 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7079 # gcc leaves a trailing carriage return which upsets mingw
7080 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7082 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7085 # Accept absolute paths.
7086 [\\/]* | [A-Za-z]:[\\/]*)
7087 re_direlt='/[^/][^/]*/\.\./'
7088 # Canonicalize the path of ld
7089 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7090 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7091 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7093 test -z "$LD" && LD="$ac_prog"
7096 # If it fails, then pretend we aren't using GCC.
7100 # If it is relative, then search for the first ld in PATH.
7104 elif test "$with_gnu_ld" = yes; then
7105 echo "$as_me:$LINENO: checking for GNU ld" >&5
7106 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7108 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7109 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7111 if test "${acl_cv_path_LD+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 if test -z "$LD"; then
7115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7116 for ac_dir in $PATH; do
7117 test -z "$ac_dir" && ac_dir=.
7118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7119 acl_cv_path_LD="$ac_dir/$ac_prog"
7120 # Check to see if the program is GNU ld. I'd rather use --version,
7121 # but apparently some GNU ld's only accept -v.
7122 # Break only if it was the GNU/non-GNU ld that we prefer.
7123 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7124 test "$with_gnu_ld" != no && break
7126 test "$with_gnu_ld" != yes && break
7132 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7136 LD="$acl_cv_path_LD"
7137 if test -n "$LD"; then
7138 echo "$as_me:$LINENO: result: $LD" >&5
7139 echo "${ECHO_T}$LD" >&6
7141 echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6
7144 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7145 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7146 { (exit 1); exit 1; }; }
7147 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7148 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7149 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7153 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7154 acl_cv_prog_gnu_ld=yes
7156 acl_cv_prog_gnu_ld=no
7159 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7160 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7161 with_gnu_ld=$acl_cv_prog_gnu_ld
7165 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7166 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7167 if test "${acl_cv_rpath+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7172 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7178 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7179 echo "${ECHO_T}$acl_cv_rpath" >&6
7181 libext="$acl_cv_libext"
7182 shlibext="$acl_cv_shlibext"
7183 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7184 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7185 hardcode_direct="$acl_cv_hardcode_direct"
7186 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7187 # Check whether --enable-rpath or --disable-rpath was given.
7188 if test "${enable_rpath+set}" = set; then
7189 enableval="$enable_rpath"
7203 acl_save_prefix="$prefix"
7204 prefix="$acl_final_prefix"
7205 acl_save_exec_prefix="$exec_prefix"
7206 exec_prefix="$acl_final_exec_prefix"
7208 eval additional_includedir=\"$includedir\"
7209 eval additional_libdir=\"$libdir\"
7211 exec_prefix="$acl_save_exec_prefix"
7212 prefix="$acl_save_prefix"
7215 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7216 if test "${with_libiconv_prefix+set}" = set; then
7217 withval="$with_libiconv_prefix"
7219 if test "X$withval" = "Xno"; then
7222 if test "X$withval" = "X"; then
7224 acl_save_prefix="$prefix"
7225 prefix="$acl_final_prefix"
7226 acl_save_exec_prefix="$exec_prefix"
7227 exec_prefix="$acl_final_exec_prefix"
7229 eval additional_includedir=\"$includedir\"
7230 eval additional_libdir=\"$libdir\"
7232 exec_prefix="$acl_save_exec_prefix"
7233 prefix="$acl_save_prefix"
7236 additional_includedir="$withval/include"
7237 additional_libdir="$withval/lib"
7247 names_already_handled=
7248 names_next_round='iconv '
7249 while test -n "$names_next_round"; do
7250 names_this_round="$names_next_round"
7252 for name in $names_this_round; do
7254 for n in $names_already_handled; do
7255 if test "$n" = "$name"; then
7260 if test -z "$already_handled"; then
7261 names_already_handled="$names_already_handled $name"
7262 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7263 eval value=\"\$HAVE_LIB$uppername\"
7264 if test -n "$value"; then
7265 if test "$value" = yes; then
7266 eval value=\"\$LIB$uppername\"
7267 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7268 eval value=\"\$LTLIB$uppername\"
7269 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7278 if test $use_additional = yes; then
7279 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7280 found_dir="$additional_libdir"
7281 found_so="$additional_libdir/lib$name.$shlibext"
7282 if test -f "$additional_libdir/lib$name.la"; then
7283 found_la="$additional_libdir/lib$name.la"
7286 if test -f "$additional_libdir/lib$name.$libext"; then
7287 found_dir="$additional_libdir"
7288 found_a="$additional_libdir/lib$name.$libext"
7289 if test -f "$additional_libdir/lib$name.la"; then
7290 found_la="$additional_libdir/lib$name.la"
7295 if test "X$found_dir" = "X"; then
7296 for x in $LDFLAGS $LTLIBICONV; do
7298 acl_save_prefix="$prefix"
7299 prefix="$acl_final_prefix"
7300 acl_save_exec_prefix="$exec_prefix"
7301 exec_prefix="$acl_final_exec_prefix"
7303 exec_prefix="$acl_save_exec_prefix"
7304 prefix="$acl_save_prefix"
7308 dir=`echo "X$x" | sed -e 's/^X-L//'`
7309 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7311 found_so="$dir/lib$name.$shlibext"
7312 if test -f "$dir/lib$name.la"; then
7313 found_la="$dir/lib$name.la"
7316 if test -f "$dir/lib$name.$libext"; then
7318 found_a="$dir/lib$name.$libext"
7319 if test -f "$dir/lib$name.la"; then
7320 found_la="$dir/lib$name.la"
7326 if test "X$found_dir" != "X"; then
7331 if test "X$found_dir" != "X"; then
7332 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7333 if test "X$found_so" != "X"; then
7334 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7335 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7338 for x in $ltrpathdirs; do
7339 if test "X$x" = "X$found_dir"; then
7344 if test -z "$haveit"; then
7345 ltrpathdirs="$ltrpathdirs $found_dir"
7347 if test "$hardcode_direct" = yes; then
7348 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7350 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7351 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7353 for x in $rpathdirs; do
7354 if test "X$x" = "X$found_dir"; then
7359 if test -z "$haveit"; then
7360 rpathdirs="$rpathdirs $found_dir"
7364 for x in $LDFLAGS $LIBICONV; do
7366 acl_save_prefix="$prefix"
7367 prefix="$acl_final_prefix"
7368 acl_save_exec_prefix="$exec_prefix"
7369 exec_prefix="$acl_final_exec_prefix"
7371 exec_prefix="$acl_save_exec_prefix"
7372 prefix="$acl_save_prefix"
7374 if test "X$x" = "X-L$found_dir"; then
7379 if test -z "$haveit"; then
7380 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7382 if test "$hardcode_minus_L" != no; then
7383 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7385 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7391 if test "X$found_a" != "X"; then
7392 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7394 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7397 additional_includedir=
7398 case "$found_dir" in
7400 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7401 additional_includedir="$basedir/include"
7404 if test "X$additional_includedir" != "X"; then
7405 if test "X$additional_includedir" != "X/usr/include"; then
7407 if test "X$additional_includedir" = "X/usr/local/include"; then
7408 if test -n "$GCC"; then
7410 linux*) haveit=yes;;
7414 if test -z "$haveit"; then
7415 for x in $CPPFLAGS $INCICONV; do
7417 acl_save_prefix="$prefix"
7418 prefix="$acl_final_prefix"
7419 acl_save_exec_prefix="$exec_prefix"
7420 exec_prefix="$acl_final_exec_prefix"
7422 exec_prefix="$acl_save_exec_prefix"
7423 prefix="$acl_save_prefix"
7425 if test "X$x" = "X-I$additional_includedir"; then
7430 if test -z "$haveit"; then
7431 if test -d "$additional_includedir"; then
7432 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7438 if test -n "$found_la"; then
7439 save_libdir="$libdir"
7441 */* | *\\*) . "$found_la" ;;
7442 *) . "./$found_la" ;;
7444 libdir="$save_libdir"
7445 for dep in $dependency_libs; do
7448 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7449 if test "X$additional_libdir" != "X/usr/lib"; then
7451 if test "X$additional_libdir" = "X/usr/local/lib"; then
7452 if test -n "$GCC"; then
7454 linux*) haveit=yes;;
7458 if test -z "$haveit"; then
7460 for x in $LDFLAGS $LIBICONV; do
7462 acl_save_prefix="$prefix"
7463 prefix="$acl_final_prefix"
7464 acl_save_exec_prefix="$exec_prefix"
7465 exec_prefix="$acl_final_exec_prefix"
7467 exec_prefix="$acl_save_exec_prefix"
7468 prefix="$acl_save_prefix"
7470 if test "X$x" = "X-L$additional_libdir"; then
7475 if test -z "$haveit"; then
7476 if test -d "$additional_libdir"; then
7477 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7481 for x in $LDFLAGS $LTLIBICONV; do
7483 acl_save_prefix="$prefix"
7484 prefix="$acl_final_prefix"
7485 acl_save_exec_prefix="$exec_prefix"
7486 exec_prefix="$acl_final_exec_prefix"
7488 exec_prefix="$acl_save_exec_prefix"
7489 prefix="$acl_save_prefix"
7491 if test "X$x" = "X-L$additional_libdir"; then
7496 if test -z "$haveit"; then
7497 if test -d "$additional_libdir"; then
7498 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7505 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7506 if test "$enable_rpath" != no; then
7508 for x in $rpathdirs; do
7509 if test "X$x" = "X$dir"; then
7514 if test -z "$haveit"; then
7515 rpathdirs="$rpathdirs $dir"
7518 for x in $ltrpathdirs; do
7519 if test "X$x" = "X$dir"; then
7524 if test -z "$haveit"; then
7525 ltrpathdirs="$ltrpathdirs $dir"
7530 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7533 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7536 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7537 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7543 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7544 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7550 if test "X$rpathdirs" != "X"; then
7551 if test -n "$hardcode_libdir_separator"; then
7553 for found_dir in $rpathdirs; do
7554 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7556 acl_save_libdir="$libdir"
7558 eval flag=\"$hardcode_libdir_flag_spec\"
7559 libdir="$acl_save_libdir"
7560 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7562 for found_dir in $rpathdirs; do
7563 acl_save_libdir="$libdir"
7565 eval flag=\"$hardcode_libdir_flag_spec\"
7566 libdir="$acl_save_libdir"
7567 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7571 if test "X$ltrpathdirs" != "X"; then
7572 for found_dir in $ltrpathdirs; do
7573 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7590 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7591 stdlib.h string.h unistd.h sys/param.h
7593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7595 echo "$as_me:$LINENO: checking for $ac_header" >&5
7596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7603 # Is the header compilable?
7604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7606 cat >conftest.$ac_ext <<_ACEOF
7607 #line $LINENO "configure"
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7614 #include <$ac_header>
7616 rm -f conftest.$ac_objext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7618 (eval $ac_compile) 2>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest.$ac_objext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_header_compiler=yes
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 ac_header_compiler=no
7635 rm -f conftest.$ac_objext conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7637 echo "${ECHO_T}$ac_header_compiler" >&6
7639 # Is the header present?
7640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7642 cat >conftest.$ac_ext <<_ACEOF
7643 #line $LINENO "configure"
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 #include <$ac_header>
7651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7654 grep -v '^ *+' conftest.er1 >conftest.err
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } >/dev/null; then
7659 if test -s conftest.err; then
7660 ac_cpp_err=$ac_c_preproc_warn_flag
7667 if test -z "$ac_cpp_err"; then
7668 ac_header_preproc=yes
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7673 ac_header_preproc=no
7675 rm -f conftest.err conftest.$ac_ext
7676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7677 echo "${ECHO_T}$ac_header_preproc" >&6
7679 # So? What about this header?
7680 case $ac_header_compiler:$ac_header_preproc in
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7688 ## ------------------------------------ ##
7689 ## Report this to bug-autoconf@gnu.org. ##
7690 ## ------------------------------------ ##
7693 sed "s/^/$as_me: WARNING: /" >&2
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7704 ## ------------------------------------ ##
7705 ## Report this to bug-autoconf@gnu.org. ##
7706 ## ------------------------------------ ##
7709 sed "s/^/$as_me: WARNING: /" >&2
7712 echo "$as_me:$LINENO: checking for $ac_header" >&5
7713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 eval "$as_ac_Header=$ac_header_preproc"
7719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7724 cat >>confdefs.h <<_ACEOF
7725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7754 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
7755 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
7756 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
7759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7760 echo "$as_me:$LINENO: checking for $ac_func" >&5
7761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7762 if eval "test \"\${$as_ac_var+set}\" = set"; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 cat >conftest.$ac_ext <<_ACEOF
7766 #line $LINENO "configure"
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7772 /* System header to define __stub macros and hopefully few prototypes,
7773 which can conflict with char $ac_func (); below.
7774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7775 <limits.h> exists even on freestanding compilers. */
7777 # include <limits.h>
7779 # include <assert.h>
7781 /* Override any gcc2 internal prototype to avoid an error. */
7786 /* We use char because int might match the return type of a gcc2
7787 builtin and then its argument prototype would still apply. */
7789 /* The GNU C library defines this for functions which it implements
7790 to always fail with ENOSYS. Some functions are actually named
7791 something starting with __ and the normal name is an alias. */
7792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7795 char (*f) () = $ac_func;
7804 return f != $ac_func;
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811 (eval $ac_link) 2>&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } &&
7815 { ac_try='test -s conftest$ac_exeext'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7821 eval "$as_ac_var=yes"
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7826 eval "$as_ac_var=no"
7828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7832 if test `eval echo '${'$as_ac_var'}'` = yes; then
7833 cat >>confdefs.h <<_ACEOF
7834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7846 am_save_CPPFLAGS="$CPPFLAGS"
7848 for element in $INCICONV; do
7850 for x in $CPPFLAGS; do
7852 acl_save_prefix="$prefix"
7853 prefix="$acl_final_prefix"
7854 acl_save_exec_prefix="$exec_prefix"
7855 exec_prefix="$acl_final_exec_prefix"
7857 exec_prefix="$acl_save_exec_prefix"
7858 prefix="$acl_save_prefix"
7860 if test "X$x" = "X$element"; then
7865 if test -z "$haveit"; then
7866 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7871 echo "$as_me:$LINENO: checking for iconv" >&5
7872 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7873 if test "${am_cv_func_iconv+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 am_cv_func_iconv="no, consider installing GNU libiconv"
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7891 iconv_t cd = iconv_open("","");
7892 iconv(cd,NULL,NULL,NULL,NULL);
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900 (eval $ac_link) 2>&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -s conftest$ac_exeext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 am_cv_func_iconv=yes
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7917 if test "$am_cv_func_iconv" != yes; then
7918 am_save_LIBS="$LIBS"
7919 LIBS="$LIBS $LIBICONV"
7920 cat >conftest.$ac_ext <<_ACEOF
7921 #line $LINENO "configure"
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7932 iconv_t cd = iconv_open("","");
7933 iconv(cd,NULL,NULL,NULL,NULL);
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -s conftest$ac_exeext'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7952 am_cv_func_iconv=yes
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7959 LIBS="$am_save_LIBS"
7963 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7964 echo "${ECHO_T}$am_cv_func_iconv" >&6
7965 if test "$am_cv_func_iconv" = yes; then
7967 cat >>confdefs.h <<\_ACEOF
7968 #define HAVE_ICONV 1
7972 if test "$am_cv_lib_iconv" = yes; then
7973 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7974 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7975 echo "$as_me:$LINENO: result: $LIBICONV" >&5
7976 echo "${ECHO_T}$LIBICONV" >&6
7978 CPPFLAGS="$am_save_CPPFLAGS"
7985 if test "$am_cv_func_iconv" = yes; then
7986 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7987 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7988 if test "${am_cv_proto_iconv+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 cat >conftest.$ac_ext <<_ACEOF
7993 #line $LINENO "configure"
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
8006 #if defined(__STDC__) || defined(__cplusplus)
8007 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8020 rm -f conftest.$ac_objext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8022 (eval $ac_compile) 2>&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -s conftest.$ac_objext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 am_cv_proto_iconv_arg1=""
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 am_cv_proto_iconv_arg1="const"
8039 rm -f conftest.$ac_objext conftest.$ac_ext
8040 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);"
8043 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8044 echo "$as_me:$LINENO: result: ${ac_t:-
8045 }$am_cv_proto_iconv" >&5
8046 echo "${ECHO_T}${ac_t:-
8047 }$am_cv_proto_iconv" >&6
8049 cat >>confdefs.h <<_ACEOF
8050 #define ICONV_CONST $am_cv_proto_iconv_arg1
8056 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8057 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8058 if test "${am_cv_langinfo_codeset+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 cat >conftest.$ac_ext <<_ACEOF
8062 #line $LINENO "configure"
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 #include <langinfo.h>
8072 char* cs = nl_langinfo(CODESET);
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079 (eval $ac_link) 2>&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -s conftest$ac_exeext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 am_cv_langinfo_codeset=yes
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 am_cv_langinfo_codeset=no
8096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8099 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8100 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8101 if test $am_cv_langinfo_codeset = yes; then
8103 cat >>confdefs.h <<\_ACEOF
8104 #define HAVE_LANGINFO_CODESET 1
8109 if test $ac_cv_header_locale_h = yes; then
8111 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8112 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8113 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 cat >conftest.$ac_ext <<_ACEOF
8117 #line $LINENO "configure"
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 am_cv_val_LC_MESSAGES=yes
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 am_cv_val_LC_MESSAGES=no
8151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8153 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8154 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8155 if test $am_cv_val_LC_MESSAGES = yes; then
8157 cat >>confdefs.h <<\_ACEOF
8158 #define HAVE_LC_MESSAGES 1
8165 for ac_prog in bison
8167 # Extract the first word of "$ac_prog", so it can be a program name with args.
8168 set dummy $ac_prog; ac_word=$2
8169 echo "$as_me:$LINENO: checking for $ac_word" >&5
8170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8171 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 if test -n "$INTLBISON"; then
8175 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8184 ac_cv_prog_INTLBISON="$ac_prog"
8185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 INTLBISON=$ac_cv_prog_INTLBISON
8194 if test -n "$INTLBISON"; then
8195 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8196 echo "${ECHO_T}$INTLBISON" >&6
8198 echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6
8202 test -n "$INTLBISON" && break
8205 if test -z "$INTLBISON"; then
8208 echo "$as_me:$LINENO: checking version of bison" >&5
8209 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8210 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8211 case $ac_prog_version in
8212 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8213 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8214 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8215 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8217 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8218 echo "${ECHO_T}$ac_prog_version" >&6
8220 if test $ac_verc_fail = yes; then
8239 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8240 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8241 # Check whether --enable-nls or --disable-nls was given.
8242 if test "${enable_nls+set}" = set; then
8243 enableval="$enable_nls"
8248 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8249 echo "${ECHO_T}$USE_NLS" >&6
8254 BUILD_INCLUDED_LIBINTL=no
8255 USE_INCLUDED_LIBINTL=no
8261 if test "$USE_NLS" = "yes"; then
8262 gt_use_preinstalled_gnugettext=no
8264 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8265 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8267 # Check whether --with-included-gettext or --without-included-gettext was given.
8268 if test "${with_included_gettext+set}" = set; then
8269 withval="$with_included_gettext"
8270 nls_cv_force_use_gnu_gettext=$withval
8272 nls_cv_force_use_gnu_gettext=no
8274 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8275 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8277 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8278 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8285 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8286 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8287 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 cat >conftest.$ac_ext <<_ACEOF
8291 #line $LINENO "configure"
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 #include <libintl.h>
8298 extern int _nl_msg_cat_cntr;
8299 extern int *_nl_domain_bindings;
8303 bindtextdomain ("", "");
8304 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try='test -s conftest$ac_exeext'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 gt_cv_func_gnugettext2_libc=yes
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8326 gt_cv_func_gnugettext2_libc=no
8328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8330 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8331 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8333 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8339 acl_save_prefix="$prefix"
8340 prefix="$acl_final_prefix"
8341 acl_save_exec_prefix="$exec_prefix"
8342 exec_prefix="$acl_final_exec_prefix"
8344 eval additional_includedir=\"$includedir\"
8345 eval additional_libdir=\"$libdir\"
8347 exec_prefix="$acl_save_exec_prefix"
8348 prefix="$acl_save_prefix"
8351 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8352 if test "${with_libintl_prefix+set}" = set; then
8353 withval="$with_libintl_prefix"
8355 if test "X$withval" = "Xno"; then
8358 if test "X$withval" = "X"; then
8360 acl_save_prefix="$prefix"
8361 prefix="$acl_final_prefix"
8362 acl_save_exec_prefix="$exec_prefix"
8363 exec_prefix="$acl_final_exec_prefix"
8365 eval additional_includedir=\"$includedir\"
8366 eval additional_libdir=\"$libdir\"
8368 exec_prefix="$acl_save_exec_prefix"
8369 prefix="$acl_save_prefix"
8372 additional_includedir="$withval/include"
8373 additional_libdir="$withval/lib"
8383 names_already_handled=
8384 names_next_round='intl '
8385 while test -n "$names_next_round"; do
8386 names_this_round="$names_next_round"
8388 for name in $names_this_round; do
8390 for n in $names_already_handled; do
8391 if test "$n" = "$name"; then
8396 if test -z "$already_handled"; then
8397 names_already_handled="$names_already_handled $name"
8398 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8399 eval value=\"\$HAVE_LIB$uppername\"
8400 if test -n "$value"; then
8401 if test "$value" = yes; then
8402 eval value=\"\$LIB$uppername\"
8403 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8404 eval value=\"\$LTLIB$uppername\"
8405 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8414 if test $use_additional = yes; then
8415 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8416 found_dir="$additional_libdir"
8417 found_so="$additional_libdir/lib$name.$shlibext"
8418 if test -f "$additional_libdir/lib$name.la"; then
8419 found_la="$additional_libdir/lib$name.la"
8422 if test -f "$additional_libdir/lib$name.$libext"; then
8423 found_dir="$additional_libdir"
8424 found_a="$additional_libdir/lib$name.$libext"
8425 if test -f "$additional_libdir/lib$name.la"; then
8426 found_la="$additional_libdir/lib$name.la"
8431 if test "X$found_dir" = "X"; then
8432 for x in $LDFLAGS $LTLIBINTL; do
8434 acl_save_prefix="$prefix"
8435 prefix="$acl_final_prefix"
8436 acl_save_exec_prefix="$exec_prefix"
8437 exec_prefix="$acl_final_exec_prefix"
8439 exec_prefix="$acl_save_exec_prefix"
8440 prefix="$acl_save_prefix"
8444 dir=`echo "X$x" | sed -e 's/^X-L//'`
8445 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8447 found_so="$dir/lib$name.$shlibext"
8448 if test -f "$dir/lib$name.la"; then
8449 found_la="$dir/lib$name.la"
8452 if test -f "$dir/lib$name.$libext"; then
8454 found_a="$dir/lib$name.$libext"
8455 if test -f "$dir/lib$name.la"; then
8456 found_la="$dir/lib$name.la"
8462 if test "X$found_dir" != "X"; then
8467 if test "X$found_dir" != "X"; then
8468 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8469 if test "X$found_so" != "X"; then
8470 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8471 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8474 for x in $ltrpathdirs; do
8475 if test "X$x" = "X$found_dir"; then
8480 if test -z "$haveit"; then
8481 ltrpathdirs="$ltrpathdirs $found_dir"
8483 if test "$hardcode_direct" = yes; then
8484 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8486 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8487 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8489 for x in $rpathdirs; do
8490 if test "X$x" = "X$found_dir"; then
8495 if test -z "$haveit"; then
8496 rpathdirs="$rpathdirs $found_dir"
8500 for x in $LDFLAGS $LIBINTL; do
8502 acl_save_prefix="$prefix"
8503 prefix="$acl_final_prefix"
8504 acl_save_exec_prefix="$exec_prefix"
8505 exec_prefix="$acl_final_exec_prefix"
8507 exec_prefix="$acl_save_exec_prefix"
8508 prefix="$acl_save_prefix"
8510 if test "X$x" = "X-L$found_dir"; then
8515 if test -z "$haveit"; then
8516 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8518 if test "$hardcode_minus_L" != no; then
8519 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8521 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8527 if test "X$found_a" != "X"; then
8528 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8530 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8533 additional_includedir=
8534 case "$found_dir" in
8536 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8537 additional_includedir="$basedir/include"
8540 if test "X$additional_includedir" != "X"; then
8541 if test "X$additional_includedir" != "X/usr/include"; then
8543 if test "X$additional_includedir" = "X/usr/local/include"; then
8544 if test -n "$GCC"; then
8546 linux*) haveit=yes;;
8550 if test -z "$haveit"; then
8551 for x in $CPPFLAGS $INCINTL; do
8553 acl_save_prefix="$prefix"
8554 prefix="$acl_final_prefix"
8555 acl_save_exec_prefix="$exec_prefix"
8556 exec_prefix="$acl_final_exec_prefix"
8558 exec_prefix="$acl_save_exec_prefix"
8559 prefix="$acl_save_prefix"
8561 if test "X$x" = "X-I$additional_includedir"; then
8566 if test -z "$haveit"; then
8567 if test -d "$additional_includedir"; then
8568 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8574 if test -n "$found_la"; then
8575 save_libdir="$libdir"
8577 */* | *\\*) . "$found_la" ;;
8578 *) . "./$found_la" ;;
8580 libdir="$save_libdir"
8581 for dep in $dependency_libs; do
8584 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8585 if test "X$additional_libdir" != "X/usr/lib"; then
8587 if test "X$additional_libdir" = "X/usr/local/lib"; then
8588 if test -n "$GCC"; then
8590 linux*) haveit=yes;;
8594 if test -z "$haveit"; then
8596 for x in $LDFLAGS $LIBINTL; do
8598 acl_save_prefix="$prefix"
8599 prefix="$acl_final_prefix"
8600 acl_save_exec_prefix="$exec_prefix"
8601 exec_prefix="$acl_final_exec_prefix"
8603 exec_prefix="$acl_save_exec_prefix"
8604 prefix="$acl_save_prefix"
8606 if test "X$x" = "X-L$additional_libdir"; then
8611 if test -z "$haveit"; then
8612 if test -d "$additional_libdir"; then
8613 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8617 for x in $LDFLAGS $LTLIBINTL; do
8619 acl_save_prefix="$prefix"
8620 prefix="$acl_final_prefix"
8621 acl_save_exec_prefix="$exec_prefix"
8622 exec_prefix="$acl_final_exec_prefix"
8624 exec_prefix="$acl_save_exec_prefix"
8625 prefix="$acl_save_prefix"
8627 if test "X$x" = "X-L$additional_libdir"; then
8632 if test -z "$haveit"; then
8633 if test -d "$additional_libdir"; then
8634 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8641 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8642 if test "$enable_rpath" != no; then
8644 for x in $rpathdirs; do
8645 if test "X$x" = "X$dir"; then
8650 if test -z "$haveit"; then
8651 rpathdirs="$rpathdirs $dir"
8654 for x in $ltrpathdirs; do
8655 if test "X$x" = "X$dir"; then
8660 if test -z "$haveit"; then
8661 ltrpathdirs="$ltrpathdirs $dir"
8666 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8669 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8672 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8673 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8679 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8680 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8686 if test "X$rpathdirs" != "X"; then
8687 if test -n "$hardcode_libdir_separator"; then
8689 for found_dir in $rpathdirs; do
8690 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8692 acl_save_libdir="$libdir"
8694 eval flag=\"$hardcode_libdir_flag_spec\"
8695 libdir="$acl_save_libdir"
8696 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8698 for found_dir in $rpathdirs; do
8699 acl_save_libdir="$libdir"
8701 eval flag=\"$hardcode_libdir_flag_spec\"
8702 libdir="$acl_save_libdir"
8703 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8707 if test "X$ltrpathdirs" != "X"; then
8708 for found_dir in $ltrpathdirs; do
8709 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8713 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8714 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8715 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 gt_save_CPPFLAGS="$CPPFLAGS"
8719 CPPFLAGS="$CPPFLAGS $INCINTL"
8720 gt_save_LIBS="$LIBS"
8721 LIBS="$LIBS $LIBINTL"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8729 #include <libintl.h>
8730 extern int _nl_msg_cat_cntr;
8735 const char *_nl_expand_alias ();
8739 bindtextdomain ("", "");
8740 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -s conftest$ac_exeext'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 gt_cv_func_gnugettext2_libintl=yes
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8762 gt_cv_func_gnugettext2_libintl=no
8764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8765 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
8766 LIBS="$LIBS $LIBICONV"
8767 cat >conftest.$ac_ext <<_ACEOF
8768 #line $LINENO "configure"
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 #include <libintl.h>
8775 extern int _nl_msg_cat_cntr;
8780 const char *_nl_expand_alias ();
8784 bindtextdomain ("", "");
8785 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8790 rm -f conftest.$ac_objext conftest$ac_exeext
8791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8792 (eval $ac_link) 2>&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -s conftest$ac_exeext'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; }; then
8802 LIBINTL="$LIBINTL $LIBICONV"
8803 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8804 gt_cv_func_gnugettext2_libintl=yes
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8813 CPPFLAGS="$gt_save_CPPFLAGS"
8814 LIBS="$gt_save_LIBS"
8816 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
8817 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
8820 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8821 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8822 && test "$PACKAGE" != gettext-runtime \
8823 && test "$PACKAGE" != gettext-tools; }; then
8824 gt_use_preinstalled_gnugettext=yes
8832 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8833 nls_cv_use_gnu_gettext=yes
8837 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8838 BUILD_INCLUDED_LIBINTL=yes
8839 USE_INCLUDED_LIBINTL=yes
8840 LIBINTL="lib/intl/libintl.a $LIBICONV"
8841 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
8842 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8845 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8846 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8851 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8852 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8854 cat >>confdefs.h <<\_ACEOF
8855 #define ENABLE_NLS 1
8863 echo "$as_me:$LINENO: checking whether to use NLS" >&5
8864 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
8865 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8866 echo "${ECHO_T}$USE_NLS" >&6
8867 if test "$USE_NLS" = "yes"; then
8868 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
8869 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
8870 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8871 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8872 gt_source="external libintl"
8877 gt_source="included intl directory"
8879 echo "$as_me:$LINENO: result: $gt_source" >&5
8880 echo "${ECHO_T}$gt_source" >&6
8883 if test "$USE_NLS" = "yes"; then
8885 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8886 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8887 echo "$as_me:$LINENO: checking how to link with libintl" >&5
8888 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
8889 echo "$as_me:$LINENO: result: $LIBINTL" >&5
8890 echo "${ECHO_T}$LIBINTL" >&6
8892 for element in $INCINTL; do
8894 for x in $CPPFLAGS; do
8896 acl_save_prefix="$prefix"
8897 prefix="$acl_final_prefix"
8898 acl_save_exec_prefix="$exec_prefix"
8899 exec_prefix="$acl_final_exec_prefix"
8901 exec_prefix="$acl_save_exec_prefix"
8902 prefix="$acl_save_prefix"
8904 if test "X$x" = "X$element"; then
8909 if test -z "$haveit"; then
8910 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_GETTEXT 1
8922 cat >>confdefs.h <<\_ACEOF
8923 #define HAVE_DCGETTEXT 1
8932 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
8933 BUILD_INCLUDED_LIBINTL=yes
8941 nls_cv_header_libgt=
8952 if test "$USE_INCLUDED_LIBINTL" = yes; then
8953 INTLOBJS="\$(GETTOBJS)"
8957 INTL_LIBTOOL_SUFFIX_PREFIX=
8975 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8976 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8977 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8978 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8983 #line $LINENO "configure"
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 #include <sys/types.h>
9001 rm -f conftest.$ac_objext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9003 (eval $ac_compile) 2>&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -s conftest.$ac_objext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 eval "$as_ac_Header=yes"
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9018 eval "$as_ac_Header=no"
9020 rm -f conftest.$ac_objext conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9025 cat >>confdefs.h <<_ACEOF
9026 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9029 ac_header_dirent=$ac_hdr; break
9033 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9034 if test $ac_header_dirent = dirent.h; then
9035 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9036 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9037 if test "${ac_cv_search_opendir+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 ac_func_search_save_LIBS=$LIBS
9041 ac_cv_search_opendir=no
9042 cat >conftest.$ac_ext <<_ACEOF
9043 #line $LINENO "configure"
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9050 /* Override any gcc2 internal prototype to avoid an error. */
9054 /* We use char because int might match the return type of a gcc2
9055 builtin and then its argument prototype would still apply. */
9065 rm -f conftest.$ac_objext conftest$ac_exeext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9067 (eval $ac_link) 2>&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -s conftest$ac_exeext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 ac_cv_search_opendir="none required"
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9084 if test "$ac_cv_search_opendir" = no; then
9085 for ac_lib in dir; do
9086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9095 /* Override any gcc2 internal prototype to avoid an error. */
9099 /* We use char because int might match the return type of a gcc2
9100 builtin and then its argument prototype would still apply. */
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112 (eval $ac_link) 2>&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } &&
9116 { ac_try='test -s conftest$ac_exeext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 ac_cv_search_opendir="-l$ac_lib"
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9132 LIBS=$ac_func_search_save_LIBS
9134 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9135 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9136 if test "$ac_cv_search_opendir" != no; then
9137 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9142 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9143 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9144 if test "${ac_cv_search_opendir+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 ac_func_search_save_LIBS=$LIBS
9148 ac_cv_search_opendir=no
9149 cat >conftest.$ac_ext <<_ACEOF
9150 #line $LINENO "configure"
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9157 /* Override any gcc2 internal prototype to avoid an error. */
9161 /* We use char because int might match the return type of a gcc2
9162 builtin and then its argument prototype would still apply. */
9172 rm -f conftest.$ac_objext conftest$ac_exeext
9173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9174 (eval $ac_link) 2>&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } &&
9178 { ac_try='test -s conftest$ac_exeext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 ac_cv_search_opendir="none required"
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9191 if test "$ac_cv_search_opendir" = no; then
9193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9194 cat >conftest.$ac_ext <<_ACEOF
9195 #line $LINENO "configure"
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9202 /* Override any gcc2 internal prototype to avoid an error. */
9206 /* We use char because int might match the return type of a gcc2
9207 builtin and then its argument prototype would still apply. */
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_cv_search_opendir="-l$ac_lib"
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9239 LIBS=$ac_func_search_save_LIBS
9241 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9242 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9243 if test "$ac_cv_search_opendir" != no; then
9244 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9250 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9251 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9252 if test "${ac_cv_header_time+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 cat >conftest.$ac_ext <<_ACEOF
9256 #line $LINENO "configure"
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9262 #include <sys/types.h>
9263 #include <sys/time.h>
9269 if ((struct tm *) 0)
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277 (eval $ac_compile) 2>&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -s conftest.$ac_objext'
9282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); }; }; then
9287 ac_cv_header_time=yes
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9292 ac_cv_header_time=no
9294 rm -f conftest.$ac_objext conftest.$ac_ext
9296 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9297 echo "${ECHO_T}$ac_cv_header_time" >&6
9298 if test $ac_cv_header_time = yes; then
9300 cat >>confdefs.h <<\_ACEOF
9301 #define TIME_WITH_SYS_TIME 1
9309 for ac_header in inttypes.h
9311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9313 echo "$as_me:$LINENO: checking for $ac_header" >&5
9314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9321 # Is the header compilable?
9322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9324 cat >conftest.$ac_ext <<_ACEOF
9325 #line $LINENO "configure"
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 $ac_includes_default
9332 #include <$ac_header>
9334 rm -f conftest.$ac_objext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9336 (eval $ac_compile) 2>&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } &&
9340 { ac_try='test -s conftest.$ac_objext'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 ac_header_compiler=yes
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9351 ac_header_compiler=no
9353 rm -f conftest.$ac_objext conftest.$ac_ext
9354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9355 echo "${ECHO_T}$ac_header_compiler" >&6
9357 # Is the header present?
9358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9360 cat >conftest.$ac_ext <<_ACEOF
9361 #line $LINENO "configure"
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 #include <$ac_header>
9369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9372 grep -v '^ *+' conftest.er1 >conftest.err
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } >/dev/null; then
9377 if test -s conftest.err; then
9378 ac_cpp_err=$ac_c_preproc_warn_flag
9385 if test -z "$ac_cpp_err"; then
9386 ac_header_preproc=yes
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_header_preproc=no
9393 rm -f conftest.err conftest.$ac_ext
9394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9395 echo "${ECHO_T}$ac_header_preproc" >&6
9397 # So? What about this header?
9398 case $ac_header_compiler:$ac_header_preproc in
9400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9406 ## ------------------------------------ ##
9407 ## Report this to bug-autoconf@gnu.org. ##
9408 ## ------------------------------------ ##
9411 sed "s/^/$as_me: WARNING: /" >&2
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9422 ## ------------------------------------ ##
9423 ## Report this to bug-autoconf@gnu.org. ##
9424 ## ------------------------------------ ##
9427 sed "s/^/$as_me: WARNING: /" >&2
9430 echo "$as_me:$LINENO: checking for $ac_header" >&5
9431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 eval "$as_ac_Header=$ac_header_preproc"
9437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9442 cat >>confdefs.h <<_ACEOF
9443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9470 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
9471 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
9472 stddef.h stdint.h netdb.h grp.h strings.h regex.h
9474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9476 echo "$as_me:$LINENO: checking for $ac_header" >&5
9477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9484 # Is the header compilable?
9485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9487 cat >conftest.$ac_ext <<_ACEOF
9488 #line $LINENO "configure"
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 $ac_includes_default
9495 #include <$ac_header>
9497 rm -f conftest.$ac_objext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9499 (eval $ac_compile) 2>&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } &&
9503 { ac_try='test -s conftest.$ac_objext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 ac_header_compiler=yes
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 ac_header_compiler=no
9516 rm -f conftest.$ac_objext conftest.$ac_ext
9517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9518 echo "${ECHO_T}$ac_header_compiler" >&6
9520 # Is the header present?
9521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9523 cat >conftest.$ac_ext <<_ACEOF
9524 #line $LINENO "configure"
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 #include <$ac_header>
9532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9535 grep -v '^ *+' conftest.er1 >conftest.err
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } >/dev/null; then
9540 if test -s conftest.err; then
9541 ac_cpp_err=$ac_c_preproc_warn_flag
9548 if test -z "$ac_cpp_err"; then
9549 ac_header_preproc=yes
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_header_preproc=no
9556 rm -f conftest.err conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9558 echo "${ECHO_T}$ac_header_preproc" >&6
9560 # So? What about this header?
9561 case $ac_header_compiler:$ac_header_preproc in
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9569 ## ------------------------------------ ##
9570 ## Report this to bug-autoconf@gnu.org. ##
9571 ## ------------------------------------ ##
9574 sed "s/^/$as_me: WARNING: /" >&2
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9585 ## ------------------------------------ ##
9586 ## Report this to bug-autoconf@gnu.org. ##
9587 ## ------------------------------------ ##
9590 sed "s/^/$as_me: WARNING: /" >&2
9593 echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 eval "$as_ac_Header=$ac_header_preproc"
9600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9605 cat >>confdefs.h <<_ACEOF
9606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9626 for ac_header in sys/ptem.h sys/pte.h sys/stream.h sys/select.h sys/file.h \
9627 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
9628 sys/time.h sys/times.h sys/types.h sys/wait.h
9630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9632 echo "$as_me:$LINENO: checking for $ac_header" >&5
9633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9640 # Is the header compilable?
9641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9643 cat >conftest.$ac_ext <<_ACEOF
9644 #line $LINENO "configure"
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650 $ac_includes_default
9651 #include <$ac_header>
9653 rm -f conftest.$ac_objext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9655 (eval $ac_compile) 2>&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -s conftest.$ac_objext'
9660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 ac_header_compiler=yes
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 ac_header_compiler=no
9672 rm -f conftest.$ac_objext conftest.$ac_ext
9673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9674 echo "${ECHO_T}$ac_header_compiler" >&6
9676 # Is the header present?
9677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9679 cat >conftest.$ac_ext <<_ACEOF
9680 #line $LINENO "configure"
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9686 #include <$ac_header>
9688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9691 grep -v '^ *+' conftest.er1 >conftest.err
9693 cat conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } >/dev/null; then
9696 if test -s conftest.err; then
9697 ac_cpp_err=$ac_c_preproc_warn_flag
9704 if test -z "$ac_cpp_err"; then
9705 ac_header_preproc=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_header_preproc=no
9712 rm -f conftest.err conftest.$ac_ext
9713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9714 echo "${ECHO_T}$ac_header_preproc" >&6
9716 # So? What about this header?
9717 case $ac_header_compiler:$ac_header_preproc in
9719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9725 ## ------------------------------------ ##
9726 ## Report this to bug-autoconf@gnu.org. ##
9727 ## ------------------------------------ ##
9730 sed "s/^/$as_me: WARNING: /" >&2
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9741 ## ------------------------------------ ##
9742 ## Report this to bug-autoconf@gnu.org. ##
9743 ## ------------------------------------ ##
9746 sed "s/^/$as_me: WARNING: /" >&2
9749 echo "$as_me:$LINENO: checking for $ac_header" >&5
9750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 eval "$as_ac_Header=$ac_header_preproc"
9756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9761 cat >>confdefs.h <<_ACEOF
9762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9771 for ac_header in netinet/in.h arpa/inet.h
9773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9775 echo "$as_me:$LINENO: checking for $ac_header" >&5
9776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9783 # Is the header compilable?
9784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9786 cat >conftest.$ac_ext <<_ACEOF
9787 #line $LINENO "configure"
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 $ac_includes_default
9794 #include <$ac_header>
9796 rm -f conftest.$ac_objext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9798 (eval $ac_compile) 2>&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
9802 { ac_try='test -s conftest.$ac_objext'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9808 ac_header_compiler=yes
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9813 ac_header_compiler=no
9815 rm -f conftest.$ac_objext conftest.$ac_ext
9816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9817 echo "${ECHO_T}$ac_header_compiler" >&6
9819 # Is the header present?
9820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9822 cat >conftest.$ac_ext <<_ACEOF
9823 #line $LINENO "configure"
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 #include <$ac_header>
9831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } >/dev/null; then
9839 if test -s conftest.err; then
9840 ac_cpp_err=$ac_c_preproc_warn_flag
9847 if test -z "$ac_cpp_err"; then
9848 ac_header_preproc=yes
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9853 ac_header_preproc=no
9855 rm -f conftest.err conftest.$ac_ext
9856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9857 echo "${ECHO_T}$ac_header_preproc" >&6
9859 # So? What about this header?
9860 case $ac_header_compiler:$ac_header_preproc in
9862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9868 ## ------------------------------------ ##
9869 ## Report this to bug-autoconf@gnu.org. ##
9870 ## ------------------------------------ ##
9873 sed "s/^/$as_me: WARNING: /" >&2
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9884 ## ------------------------------------ ##
9885 ## Report this to bug-autoconf@gnu.org. ##
9886 ## ------------------------------------ ##
9889 sed "s/^/$as_me: WARNING: /" >&2
9892 echo "$as_me:$LINENO: checking for $ac_header" >&5
9893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 eval "$as_ac_Header=$ac_header_preproc"
9899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9904 cat >>confdefs.h <<_ACEOF
9905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9913 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9914 # for constant arguments. Useless!
9915 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9916 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9917 if test "${ac_cv_working_alloca_h+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 cat >conftest.$ac_ext <<_ACEOF
9921 #line $LINENO "configure"
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9931 char *p = (char *) alloca (2 * sizeof (int));
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } &&
9942 { ac_try='test -s conftest$ac_exeext'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 ac_cv_working_alloca_h=yes
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 ac_cv_working_alloca_h=no
9955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9957 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9958 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9959 if test $ac_cv_working_alloca_h = yes; then
9961 cat >>confdefs.h <<\_ACEOF
9962 #define HAVE_ALLOCA_H 1
9967 echo "$as_me:$LINENO: checking for alloca" >&5
9968 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9969 if test "${ac_cv_func_alloca_works+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 cat >conftest.$ac_ext <<_ACEOF
9973 #line $LINENO "configure"
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9980 # define alloca __builtin_alloca
9983 # include <malloc.h>
9984 # define alloca _alloca
9987 # include <alloca.h>
9992 # ifndef alloca /* predefined by HP cc +Olibcalls */
10003 char *p = (char *) alloca (1);
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010 (eval $ac_link) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try='test -s conftest$ac_exeext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 ac_cv_func_alloca_works=yes
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_cv_func_alloca_works=no
10027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10029 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10030 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10032 if test $ac_cv_func_alloca_works = yes; then
10034 cat >>confdefs.h <<\_ACEOF
10035 #define HAVE_ALLOCA 1
10039 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10040 # that cause trouble. Some versions do not even contain alloca or
10041 # contain a buggy version. If you still want to use their alloca,
10042 # use ar to extract alloca.o from them instead of compiling alloca.c.
10044 ALLOCA=alloca.$ac_objext
10046 cat >>confdefs.h <<\_ACEOF
10051 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10052 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10053 if test "${ac_cv_os_cray+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 cat >conftest.$ac_ext <<_ACEOF
10057 #line $LINENO "configure"
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 #if defined(CRAY) && ! defined(CRAY2)
10070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10071 $EGREP "webecray" >/dev/null 2>&1; then
10079 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10080 echo "${ECHO_T}$ac_cv_os_cray" >&6
10081 if test $ac_cv_os_cray = yes; then
10082 for ac_func in _getb67 GETB67 getb67; do
10083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10084 echo "$as_me:$LINENO: checking for $ac_func" >&5
10085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10086 if eval "test \"\${$as_ac_var+set}\" = set"; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 cat >conftest.$ac_ext <<_ACEOF
10090 #line $LINENO "configure"
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096 /* System header to define __stub macros and hopefully few prototypes,
10097 which can conflict with char $ac_func (); below.
10098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10099 <limits.h> exists even on freestanding compilers. */
10101 # include <limits.h>
10103 # include <assert.h>
10105 /* Override any gcc2 internal prototype to avoid an error. */
10110 /* We use char because int might match the return type of a gcc2
10111 builtin and then its argument prototype would still apply. */
10113 /* The GNU C library defines this for functions which it implements
10114 to always fail with ENOSYS. Some functions are actually named
10115 something starting with __ and the normal name is an alias. */
10116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10119 char (*f) () = $ac_func;
10128 return f != $ac_func;
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10135 (eval $ac_link) 2>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } &&
10139 { ac_try='test -s conftest$ac_exeext'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; }; then
10145 eval "$as_ac_var=yes"
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 eval "$as_ac_var=no"
10152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10156 if test `eval echo '${'$as_ac_var'}'` = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159 #define CRAY_STACKSEG_END $ac_func
10168 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10169 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10170 if test "${ac_cv_c_stack_direction+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 if test "$cross_compiling" = yes; then
10174 ac_cv_c_stack_direction=0
10176 cat >conftest.$ac_ext <<_ACEOF
10177 #line $LINENO "configure"
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10184 find_stack_direction ()
10186 static char *addr = 0;
10191 return find_stack_direction ();
10194 return (&dummy > addr) ? 1 : -1;
10200 exit (find_stack_direction () < 0);
10203 rm -f conftest$ac_exeext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205 (eval $ac_link) 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_c_stack_direction=1
10216 echo "$as_me: program exited with status $ac_status" >&5
10217 echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10220 ( exit $ac_status )
10221 ac_cv_c_stack_direction=-1
10223 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10226 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10227 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10229 cat >>confdefs.h <<_ACEOF
10230 #define STACK_DIRECTION $ac_cv_c_stack_direction
10236 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
10237 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
10238 if test "${ac_cv_func_getpgrp_void+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 # Use it with a single arg.
10242 cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 $ac_includes_default
10258 rm -f conftest.$ac_objext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260 (eval $ac_compile) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try='test -s conftest.$ac_objext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_func_getpgrp_void=no
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_cv_func_getpgrp_void=yes
10277 rm -f conftest.$ac_objext conftest.$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
10281 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
10282 if test $ac_cv_func_getpgrp_void = yes; then
10284 cat >>confdefs.h <<\_ACEOF
10285 #define GETPGRP_VOID 1
10290 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10291 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10292 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 ac_cv_func_setvbuf_reversed=no
10296 cat >conftest.$ac_ext <<_ACEOF
10297 #line $LINENO "configure"
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10305 int (setvbuf) (FILE *, int, char *, size_t);
10310 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317 (eval $ac_link) 2>&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try='test -s conftest$ac_exeext'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; }; then
10327 cat >conftest.$ac_ext <<_ACEOF
10328 #line $LINENO "configure"
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10336 int (setvbuf) (FILE *, int, char *, size_t);
10341 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10346 rm -f conftest.$ac_objext conftest$ac_exeext
10347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348 (eval $ac_link) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -s conftest$ac_exeext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 # It compiles and links either way, so it must not be declared
10359 # with a prototype and most likely this is a K&R C compiler.
10361 if test "$cross_compiling" = yes; then
10362 : # Assume setvbuf is not reversed when cross-compiling.
10364 cat >conftest.$ac_ext <<_ACEOF
10365 #line $LINENO "configure"
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10375 /* This call has the arguments reversed.
10376 A reversed system may check and see that the address of buf
10377 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
10379 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10382 exit (0); /* Non-reversed systems SEGV here. */
10387 rm -f conftest$ac_exeext
10388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10389 (eval $ac_link) 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394 (eval $ac_try) 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; }; then
10398 ac_cv_func_setvbuf_reversed=yes
10400 echo "$as_me: program exited with status $ac_status" >&5
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10404 ( exit $ac_status )
10405 rm -f core core.* *.core
10407 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10409 ac_cv_func_setvbuf_reversed=yes
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10423 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10424 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10425 if test $ac_cv_func_setvbuf_reversed = yes; then
10427 cat >>confdefs.h <<\_ACEOF
10428 #define SETVBUF_REVERSED 1
10434 for ac_func in vprintf
10436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10437 echo "$as_me:$LINENO: checking for $ac_func" >&5
10438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10439 if eval "test \"\${$as_ac_var+set}\" = set"; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 cat >conftest.$ac_ext <<_ACEOF
10443 #line $LINENO "configure"
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449 /* System header to define __stub macros and hopefully few prototypes,
10450 which can conflict with char $ac_func (); below.
10451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10452 <limits.h> exists even on freestanding compilers. */
10454 # include <limits.h>
10456 # include <assert.h>
10458 /* Override any gcc2 internal prototype to avoid an error. */
10463 /* We use char because int might match the return type of a gcc2
10464 builtin and then its argument prototype would still apply. */
10466 /* The GNU C library defines this for functions which it implements
10467 to always fail with ENOSYS. Some functions are actually named
10468 something starting with __ and the normal name is an alias. */
10469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10472 char (*f) () = $ac_func;
10481 return f != $ac_func;
10486 rm -f conftest.$ac_objext conftest$ac_exeext
10487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10488 (eval $ac_link) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } &&
10492 { ac_try='test -s conftest$ac_exeext'
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; }; then
10498 eval "$as_ac_var=yes"
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 eval "$as_ac_var=no"
10505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10509 if test `eval echo '${'$as_ac_var'}'` = yes; then
10510 cat >>confdefs.h <<_ACEOF
10511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10514 echo "$as_me:$LINENO: checking for _doprnt" >&5
10515 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10516 if test "${ac_cv_func__doprnt+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10519 cat >conftest.$ac_ext <<_ACEOF
10520 #line $LINENO "configure"
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 /* System header to define __stub macros and hopefully few prototypes,
10527 which can conflict with char _doprnt (); below.
10528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10529 <limits.h> exists even on freestanding compilers. */
10531 # include <limits.h>
10533 # include <assert.h>
10535 /* Override any gcc2 internal prototype to avoid an error. */
10540 /* We use char because int might match the return type of a gcc2
10541 builtin and then its argument prototype would still apply. */
10543 /* The GNU C library defines this for functions which it implements
10544 to always fail with ENOSYS. Some functions are actually named
10545 something starting with __ and the normal name is an alias. */
10546 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10549 char (*f) () = _doprnt;
10558 return f != _doprnt;
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -s conftest$ac_exeext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_func__doprnt=yes
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 ac_cv_func__doprnt=no
10582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10584 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10585 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10586 if test $ac_cv_func__doprnt = yes; then
10588 cat >>confdefs.h <<\_ACEOF
10589 #define HAVE_DOPRNT 1
10598 echo "$as_me:$LINENO: checking for working strcoll" >&5
10599 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
10600 if test "${ac_cv_func_strcoll_works+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 if test "$cross_compiling" = yes; then
10604 ac_cv_func_strcoll_works=no
10606 cat >conftest.$ac_ext <<_ACEOF
10607 #line $LINENO "configure"
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 $ac_includes_default
10617 exit (strcoll ("abc", "def") >= 0 ||
10618 strcoll ("ABC", "DEF") >= 0 ||
10619 strcoll ("123", "456") >= 0)
10624 rm -f conftest$ac_exeext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10626 (eval $ac_link) 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_func_strcoll_works=yes
10637 echo "$as_me: program exited with status $ac_status" >&5
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10641 ( exit $ac_status )
10642 ac_cv_func_strcoll_works=no
10644 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10647 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
10648 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
10649 if test $ac_cv_func_strcoll_works = yes; then
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_STRCOLL 1
10659 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
10660 MALLOC_TARGET=alloca
10661 MALLOC_SRC=alloca.c
10663 MALLOC_LIB='-lmalloc'
10664 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
10665 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
10666 MALLOC_DEP='$(MALLOC_LIBRARY)'
10669 if test "$ac_cv_func_vprintf" = no; then
10670 echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
10671 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
10672 cat >conftest.$ac_ext <<_ACEOF
10673 #line $LINENO "configure"
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10683 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
10684 ac_cv_func_vprintf=yes
10688 echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
10689 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
10690 if test $ac_cv_func_vprintf = yes; then
10691 cat >>confdefs.h <<\_ACEOF
10692 #define HAVE_VPRINTF 1
10698 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
10699 LIBOBJS="$LIBOBJS vprint.$ac_objext"
10702 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10703 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10704 if test "${ac_cv_type_signal+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 cat >conftest.$ac_ext <<_ACEOF
10708 #line $LINENO "configure"
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714 #include <sys/types.h>
10715 #include <signal.h>
10720 extern "C" void (*signal (int, void (*)(int)))(int);
10722 void (*signal ()) ();
10733 rm -f conftest.$ac_objext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10735 (eval $ac_compile) 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } &&
10739 { ac_try='test -s conftest.$ac_objext'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; }; then
10745 ac_cv_type_signal=void
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 ac_cv_type_signal=int
10752 rm -f conftest.$ac_objext conftest.$ac_ext
10754 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10755 echo "${ECHO_T}$ac_cv_type_signal" >&6
10757 cat >>confdefs.h <<_ACEOF
10758 #define RETSIGTYPE $ac_cv_type_signal
10763 echo "$as_me:$LINENO: checking for __setostype" >&5
10764 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
10765 if test "${ac_cv_func___setostype+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 cat >conftest.$ac_ext <<_ACEOF
10769 #line $LINENO "configure"
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 /* System header to define __stub macros and hopefully few prototypes,
10776 which can conflict with char __setostype (); below.
10777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10778 <limits.h> exists even on freestanding compilers. */
10780 # include <limits.h>
10782 # include <assert.h>
10784 /* Override any gcc2 internal prototype to avoid an error. */
10789 /* We use char because int might match the return type of a gcc2
10790 builtin and then its argument prototype would still apply. */
10791 char __setostype ();
10792 /* The GNU C library defines this for functions which it implements
10793 to always fail with ENOSYS. Some functions are actually named
10794 something starting with __ and the normal name is an alias. */
10795 #if defined (__stub___setostype) || defined (__stub_____setostype)
10798 char (*f) () = __setostype;
10807 return f != __setostype;
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10814 (eval $ac_link) 2>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -s conftest$ac_exeext'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
10824 ac_cv_func___setostype=yes
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 ac_cv_func___setostype=no
10831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10833 echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
10834 echo "${ECHO_T}$ac_cv_func___setostype" >&6
10835 if test $ac_cv_func___setostype = yes; then
10836 cat >>confdefs.h <<\_ACEOF
10837 #define HAVE_SETOSTYPE 1
10842 echo "$as_me:$LINENO: checking for wait3" >&5
10843 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
10844 if test "${ac_cv_func_wait3+set}" = set; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 cat >conftest.$ac_ext <<_ACEOF
10848 #line $LINENO "configure"
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10854 /* System header to define __stub macros and hopefully few prototypes,
10855 which can conflict with char wait3 (); below.
10856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10857 <limits.h> exists even on freestanding compilers. */
10859 # include <limits.h>
10861 # include <assert.h>
10863 /* Override any gcc2 internal prototype to avoid an error. */
10868 /* We use char because int might match the return type of a gcc2
10869 builtin and then its argument prototype would still apply. */
10871 /* The GNU C library defines this for functions which it implements
10872 to always fail with ENOSYS. Some functions are actually named
10873 something starting with __ and the normal name is an alias. */
10874 #if defined (__stub_wait3) || defined (__stub___wait3)
10877 char (*f) () = wait3;
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893 (eval $ac_link) 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try='test -s conftest$ac_exeext'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 ac_cv_func_wait3=yes
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 ac_cv_func_wait3=no
10910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10912 echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
10913 echo "${ECHO_T}$ac_cv_func_wait3" >&6
10914 if test $ac_cv_func_wait3 = yes; then
10915 cat >>confdefs.h <<\_ACEOF
10916 #define HAVE_WAIT3 1
10921 echo "$as_me:$LINENO: checking for isinf" >&5
10922 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10923 if test "${ac_cv_func_isinf+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 cat >conftest.$ac_ext <<_ACEOF
10927 #line $LINENO "configure"
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933 /* System header to define __stub macros and hopefully few prototypes,
10934 which can conflict with char isinf (); below.
10935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10936 <limits.h> exists even on freestanding compilers. */
10938 # include <limits.h>
10940 # include <assert.h>
10942 /* Override any gcc2 internal prototype to avoid an error. */
10947 /* We use char because int might match the return type of a gcc2
10948 builtin and then its argument prototype would still apply. */
10950 /* The GNU C library defines this for functions which it implements
10951 to always fail with ENOSYS. Some functions are actually named
10952 something starting with __ and the normal name is an alias. */
10953 #if defined (__stub_isinf) || defined (__stub___isinf)
10956 char (*f) () = isinf;
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10972 (eval $ac_link) 2>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -s conftest$ac_exeext'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; }; then
10982 ac_cv_func_isinf=yes
10984 echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10987 ac_cv_func_isinf=no
10989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10991 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10992 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10993 if test $ac_cv_func_isinf = yes; then
10994 cat >>confdefs.h <<\_ACEOF
10995 #define HAVE_ISINF_IN_LIBC 1
11001 echo "$as_me:$LINENO: checking for mkfifo" >&5
11002 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
11003 if test "${ac_cv_func_mkfifo+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 cat >conftest.$ac_ext <<_ACEOF
11007 #line $LINENO "configure"
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 /* System header to define __stub macros and hopefully few prototypes,
11014 which can conflict with char mkfifo (); below.
11015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11016 <limits.h> exists even on freestanding compilers. */
11018 # include <limits.h>
11020 # include <assert.h>
11022 /* Override any gcc2 internal prototype to avoid an error. */
11027 /* We use char because int might match the return type of a gcc2
11028 builtin and then its argument prototype would still apply. */
11030 /* The GNU C library defines this for functions which it implements
11031 to always fail with ENOSYS. Some functions are actually named
11032 something starting with __ and the normal name is an alias. */
11033 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
11036 char (*f) () = mkfifo;
11045 return f != mkfifo;
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11052 (eval $ac_link) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try='test -s conftest$ac_exeext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_func_mkfifo=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_cv_func_mkfifo=no
11069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11071 echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
11072 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
11073 if test $ac_cv_func_mkfifo = yes; then
11074 cat >>confdefs.h <<\_ACEOF
11075 #define HAVE_MKFIFO 1
11079 cat >>confdefs.h <<\_ACEOF
11080 #define MKFIFO_MISSING 1
11103 for ac_func in dup2 select getdtablesize getgroups gethostname \
11104 setdtablesize getpagesize killpg lstat getpeername sbrk \
11105 getrlimit getrusage gettimeofday waitpid tcgetpgrp \
11108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11109 echo "$as_me:$LINENO: checking for $ac_func" >&5
11110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11111 if eval "test \"\${$as_ac_var+set}\" = set"; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 cat >conftest.$ac_ext <<_ACEOF
11115 #line $LINENO "configure"
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 /* System header to define __stub macros and hopefully few prototypes,
11122 which can conflict with char $ac_func (); below.
11123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11124 <limits.h> exists even on freestanding compilers. */
11126 # include <limits.h>
11128 # include <assert.h>
11130 /* Override any gcc2 internal prototype to avoid an error. */
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11138 /* The GNU C library defines this for functions which it implements
11139 to always fail with ENOSYS. Some functions are actually named
11140 something starting with __ and the normal name is an alias. */
11141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11144 char (*f) () = $ac_func;
11153 return f != $ac_func;
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } &&
11164 { ac_try='test -s conftest$ac_exeext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 eval "$as_ac_var=yes"
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11175 eval "$as_ac_var=no"
11177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11181 if test `eval echo '${'$as_ac_var'}'` = yes; then
11182 cat >>confdefs.h <<_ACEOF
11183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11190 for ac_func in rename
11192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11193 echo "$as_me:$LINENO: checking for $ac_func" >&5
11194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11195 if eval "test \"\${$as_ac_var+set}\" = set"; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 cat >conftest.$ac_ext <<_ACEOF
11199 #line $LINENO "configure"
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 /* System header to define __stub macros and hopefully few prototypes,
11206 which can conflict with char $ac_func (); below.
11207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11208 <limits.h> exists even on freestanding compilers. */
11210 # include <limits.h>
11212 # include <assert.h>
11214 /* Override any gcc2 internal prototype to avoid an error. */
11219 /* We use char because int might match the return type of a gcc2
11220 builtin and then its argument prototype would still apply. */
11222 /* The GNU C library defines this for functions which it implements
11223 to always fail with ENOSYS. Some functions are actually named
11224 something starting with __ and the normal name is an alias. */
11225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11228 char (*f) () = $ac_func;
11237 return f != $ac_func;
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244 (eval $ac_link) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try='test -s conftest$ac_exeext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 eval "$as_ac_var=yes"
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 eval "$as_ac_var=no"
11261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11265 if test `eval echo '${'$as_ac_var'}'` = yes; then
11266 cat >>confdefs.h <<_ACEOF
11267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11271 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11309 for ac_func in bcopy bzero confstr sysconf pathconf setenv putenv unsetenv \
11310 setlinebuf setvbuf setlocale strchr tcgetattr uname \
11311 ulimit tzset siginterrupt memmove ttyname times \
11312 getaddrinfo gethostbyname getservbyname getservent inet_aton \
11313 vsnprintf snprintf vasprintf asprintf fnmatch regcomp regexec
11315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11316 echo "$as_me:$LINENO: checking for $ac_func" >&5
11317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11318 if eval "test \"\${$as_ac_var+set}\" = set"; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 cat >conftest.$ac_ext <<_ACEOF
11322 #line $LINENO "configure"
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 /* System header to define __stub macros and hopefully few prototypes,
11329 which can conflict with char $ac_func (); below.
11330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11331 <limits.h> exists even on freestanding compilers. */
11333 # include <limits.h>
11335 # include <assert.h>
11337 /* Override any gcc2 internal prototype to avoid an error. */
11342 /* We use char because int might match the return type of a gcc2
11343 builtin and then its argument prototype would still apply. */
11345 /* The GNU C library defines this for functions which it implements
11346 to always fail with ENOSYS. Some functions are actually named
11347 something starting with __ and the normal name is an alias. */
11348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11351 char (*f) () = $ac_func;
11360 return f != $ac_func;
11365 rm -f conftest.$ac_objext conftest$ac_exeext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11367 (eval $ac_link) 2>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } &&
11371 { ac_try='test -s conftest$ac_exeext'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; }; then
11377 eval "$as_ac_var=yes"
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11382 eval "$as_ac_var=no"
11384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11388 if test `eval echo '${'$as_ac_var'}'` = yes; then
11389 cat >>confdefs.h <<_ACEOF
11390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11402 for ac_func in isascii isblank isgraph isprint isspace isxdigit
11404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11405 echo "$as_me:$LINENO: checking for $ac_func" >&5
11406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_var+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 cat >conftest.$ac_ext <<_ACEOF
11411 #line $LINENO "configure"
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 /* System header to define __stub macros and hopefully few prototypes,
11418 which can conflict with char $ac_func (); below.
11419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11420 <limits.h> exists even on freestanding compilers. */
11422 # include <limits.h>
11424 # include <assert.h>
11426 /* Override any gcc2 internal prototype to avoid an error. */
11431 /* We use char because int might match the return type of a gcc2
11432 builtin and then its argument prototype would still apply. */
11434 /* The GNU C library defines this for functions which it implements
11435 to always fail with ENOSYS. Some functions are actually named
11436 something starting with __ and the normal name is an alias. */
11437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11440 char (*f) () = $ac_func;
11449 return f != $ac_func;
11454 rm -f conftest.$ac_objext conftest$ac_exeext
11455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11456 (eval $ac_link) 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -s conftest$ac_exeext'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 eval "$as_ac_var=yes"
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 eval "$as_ac_var=no"
11473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11477 if test `eval echo '${'$as_ac_var'}'` = yes; then
11478 cat >>confdefs.h <<_ACEOF
11479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11492 for ac_func in getcwd strcasecmp strerror strftime strpbrk memset strstr
11494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11495 echo "$as_me:$LINENO: checking for $ac_func" >&5
11496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11497 if eval "test \"\${$as_ac_var+set}\" = set"; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 cat >conftest.$ac_ext <<_ACEOF
11501 #line $LINENO "configure"
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 /* System header to define __stub macros and hopefully few prototypes,
11508 which can conflict with char $ac_func (); below.
11509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510 <limits.h> exists even on freestanding compilers. */
11512 # include <limits.h>
11514 # include <assert.h>
11516 /* Override any gcc2 internal prototype to avoid an error. */
11521 /* We use char because int might match the return type of a gcc2
11522 builtin and then its argument prototype would still apply. */
11524 /* The GNU C library defines this for functions which it implements
11525 to always fail with ENOSYS. Some functions are actually named
11526 something starting with __ and the normal name is an alias. */
11527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11530 char (*f) () = $ac_func;
11539 return f != $ac_func;
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11546 (eval $ac_link) 2>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } &&
11550 { ac_try='test -s conftest$ac_exeext'
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; }; then
11556 eval "$as_ac_var=yes"
11558 echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11561 eval "$as_ac_var=no"
11563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11567 if test `eval echo '${'$as_ac_var'}'` = yes; then
11568 cat >>confdefs.h <<_ACEOF
11569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11573 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11585 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
11587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11588 echo "$as_me:$LINENO: checking for $ac_func" >&5
11589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11590 if eval "test \"\${$as_ac_var+set}\" = set"; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 cat >conftest.$ac_ext <<_ACEOF
11594 #line $LINENO "configure"
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 /* System header to define __stub macros and hopefully few prototypes,
11601 which can conflict with char $ac_func (); below.
11602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11603 <limits.h> exists even on freestanding compilers. */
11605 # include <limits.h>
11607 # include <assert.h>
11609 /* Override any gcc2 internal prototype to avoid an error. */
11614 /* We use char because int might match the return type of a gcc2
11615 builtin and then its argument prototype would still apply. */
11617 /* The GNU C library defines this for functions which it implements
11618 to always fail with ENOSYS. Some functions are actually named
11619 something starting with __ and the normal name is an alias. */
11620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11623 char (*f) () = $ac_func;
11632 return f != $ac_func;
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -s conftest$ac_exeext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 eval "$as_ac_var=yes"
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 eval "$as_ac_var=no"
11656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11660 if test `eval echo '${'$as_ac_var'}'` = yes; then
11661 cat >>confdefs.h <<_ACEOF
11662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11666 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11672 echo "$as_me:$LINENO: checking whether confstr is declared" >&5
11673 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
11674 if test "${ac_cv_have_decl_confstr+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 cat >conftest.$ac_ext <<_ACEOF
11678 #line $LINENO "configure"
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 $ac_includes_default
11689 char *p = (char *) confstr;
11696 rm -f conftest.$ac_objext
11697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11698 (eval $ac_compile) 2>&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } &&
11702 { ac_try='test -s conftest.$ac_objext'
11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; }; then
11708 ac_cv_have_decl_confstr=yes
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11713 ac_cv_have_decl_confstr=no
11715 rm -f conftest.$ac_objext conftest.$ac_ext
11717 echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
11718 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
11719 if test $ac_cv_have_decl_confstr = yes; then
11721 cat >>confdefs.h <<_ACEOF
11722 #define HAVE_DECL_CONFSTR 1
11727 cat >>confdefs.h <<_ACEOF
11728 #define HAVE_DECL_CONFSTR 0
11735 echo "$as_me:$LINENO: checking whether printf is declared" >&5
11736 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
11737 if test "${ac_cv_have_decl_printf+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 cat >conftest.$ac_ext <<_ACEOF
11741 #line $LINENO "configure"
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 $ac_includes_default
11752 char *p = (char *) printf;
11759 rm -f conftest.$ac_objext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11761 (eval $ac_compile) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_have_decl_printf=yes
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 ac_cv_have_decl_printf=no
11778 rm -f conftest.$ac_objext conftest.$ac_ext
11780 echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
11781 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
11782 if test $ac_cv_have_decl_printf = yes; then
11784 cat >>confdefs.h <<_ACEOF
11785 #define HAVE_DECL_PRINTF 1
11790 cat >>confdefs.h <<_ACEOF
11791 #define HAVE_DECL_PRINTF 0
11798 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
11799 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
11800 if test "${ac_cv_have_decl_sbrk+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 $ac_includes_default
11815 char *p = (char *) sbrk;
11822 rm -f conftest.$ac_objext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11824 (eval $ac_compile) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 ac_cv_have_decl_sbrk=yes
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 ac_cv_have_decl_sbrk=no
11841 rm -f conftest.$ac_objext conftest.$ac_ext
11843 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
11844 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
11845 if test $ac_cv_have_decl_sbrk = yes; then
11847 cat >>confdefs.h <<_ACEOF
11848 #define HAVE_DECL_SBRK 1
11853 cat >>confdefs.h <<_ACEOF
11854 #define HAVE_DECL_SBRK 0
11861 echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
11862 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
11863 if test "${ac_cv_have_decl_strcpy+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 cat >conftest.$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 $ac_includes_default
11878 char *p = (char *) strcpy;
11885 rm -f conftest.$ac_objext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887 (eval $ac_compile) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try='test -s conftest.$ac_objext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_cv_have_decl_strcpy=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_cv_have_decl_strcpy=no
11904 rm -f conftest.$ac_objext conftest.$ac_ext
11906 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
11907 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
11908 if test $ac_cv_have_decl_strcpy = yes; then
11910 cat >>confdefs.h <<_ACEOF
11911 #define HAVE_DECL_STRCPY 1
11916 cat >>confdefs.h <<_ACEOF
11917 #define HAVE_DECL_STRCPY 0
11924 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
11925 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
11926 if test "${ac_cv_have_decl_strsignal+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 cat >conftest.$ac_ext <<_ACEOF
11930 #line $LINENO "configure"
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11936 $ac_includes_default
11941 char *p = (char *) strsignal;
11948 rm -f conftest.$ac_objext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11950 (eval $ac_compile) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } &&
11954 { ac_try='test -s conftest.$ac_objext'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 ac_cv_have_decl_strsignal=yes
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 ac_cv_have_decl_strsignal=no
11967 rm -f conftest.$ac_objext conftest.$ac_ext
11969 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
11970 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
11971 if test $ac_cv_have_decl_strsignal = yes; then
11973 cat >>confdefs.h <<_ACEOF
11974 #define HAVE_DECL_STRSIGNAL 1
11979 cat >>confdefs.h <<_ACEOF
11980 #define HAVE_DECL_STRSIGNAL 0
11988 echo "$as_me:$LINENO: checking whether strtold is declared" >&5
11989 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
11990 if test "${ac_cv_have_decl_strtold+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 cat >conftest.$ac_ext <<_ACEOF
11994 #line $LINENO "configure"
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 $ac_includes_default
12005 char *p = (char *) strtold;
12012 rm -f conftest.$ac_objext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12014 (eval $ac_compile) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try='test -s conftest.$ac_objext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 ac_cv_have_decl_strtold=yes
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12029 ac_cv_have_decl_strtold=no
12031 rm -f conftest.$ac_objext conftest.$ac_ext
12033 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
12034 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
12035 if test $ac_cv_have_decl_strtold = yes; then
12037 cat >>confdefs.h <<_ACEOF
12038 #define HAVE_DECL_STRTOLD 1
12042 echo "$as_me:$LINENO: checking for broken strtold" >&5
12043 echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6
12044 if test "${bash_cv_strtold_broken+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 cat >conftest.$ac_ext <<_ACEOF
12048 #line $LINENO "configure"
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 #include <stdlib.h>
12058 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
12063 rm -f conftest.$ac_objext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12065 (eval $ac_compile) 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -s conftest.$ac_objext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 bash_cv_strtold_broken=no
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 bash_cv_strtold_broken=yes
12082 rm -f conftest.$ac_objext conftest.$ac_ext
12087 echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
12088 echo "${ECHO_T}$bash_cv_strtold_broken" >&6
12089 if test "$bash_cv_strtold_broken" = "yes" ; then
12090 cat >>confdefs.h <<\_ACEOF
12091 #define STRTOLD_BROKEN 1
12097 cat >>confdefs.h <<_ACEOF
12098 #define HAVE_DECL_STRTOLD 0
12110 echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
12111 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
12112 if test "${bash_cv_decl_strtoimax+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 cat >conftest.$ac_ext <<_ACEOF
12116 #line $LINENO "configure"
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12124 # include <stdlib.h>
12126 #if HAVE_INTTYPES_H
12127 # include <inttypes.h>
12138 rm -f conftest.$ac_objext conftest$ac_exeext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12140 (eval $ac_link) 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -s conftest$ac_exeext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 bash_cv_decl_strtoimax=yes
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 bash_cv_decl_strtoimax=no
12157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12159 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
12160 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
12161 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12162 if test $bash_cv_decl_strtoimax = yes; then
12163 cat >>confdefs.h <<_ACEOF
12164 #define $bash_tr_func 1
12168 cat >>confdefs.h <<_ACEOF
12169 #define $bash_tr_func 0
12177 echo "$as_me:$LINENO: checking for declaration of strtol" >&5
12178 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
12179 if test "${bash_cv_decl_strtol+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 cat >conftest.$ac_ext <<_ACEOF
12183 #line $LINENO "configure"
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12191 # include <stdlib.h>
12193 #if HAVE_INTTYPES_H
12194 # include <inttypes.h>
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12207 (eval $ac_link) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -s conftest$ac_exeext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 bash_cv_decl_strtol=yes
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 bash_cv_decl_strtol=no
12224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12226 echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
12227 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
12228 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12229 if test $bash_cv_decl_strtol = yes; then
12230 cat >>confdefs.h <<_ACEOF
12231 #define $bash_tr_func 1
12235 cat >>confdefs.h <<_ACEOF
12236 #define $bash_tr_func 0
12244 echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
12245 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
12246 if test "${bash_cv_decl_strtoll+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12249 cat >conftest.$ac_ext <<_ACEOF
12250 #line $LINENO "configure"
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12258 # include <stdlib.h>
12260 #if HAVE_INTTYPES_H
12261 # include <inttypes.h>
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -s conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 bash_cv_decl_strtoll=yes
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 bash_cv_decl_strtoll=no
12291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12293 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
12294 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
12295 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12296 if test $bash_cv_decl_strtoll = yes; then
12297 cat >>confdefs.h <<_ACEOF
12298 #define $bash_tr_func 1
12302 cat >>confdefs.h <<_ACEOF
12303 #define $bash_tr_func 0
12311 echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
12312 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
12313 if test "${bash_cv_decl_strtoul+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 cat >conftest.$ac_ext <<_ACEOF
12317 #line $LINENO "configure"
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12325 # include <stdlib.h>
12327 #if HAVE_INTTYPES_H
12328 # include <inttypes.h>
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341 (eval $ac_link) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -s conftest$ac_exeext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 bash_cv_decl_strtoul=yes
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12356 bash_cv_decl_strtoul=no
12358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12360 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
12361 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
12362 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12363 if test $bash_cv_decl_strtoul = yes; then
12364 cat >>confdefs.h <<_ACEOF
12365 #define $bash_tr_func 1
12369 cat >>confdefs.h <<_ACEOF
12370 #define $bash_tr_func 0
12378 echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
12379 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
12380 if test "${bash_cv_decl_strtoull+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 cat >conftest.$ac_ext <<_ACEOF
12384 #line $LINENO "configure"
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12392 # include <stdlib.h>
12394 #if HAVE_INTTYPES_H
12395 # include <inttypes.h>
12406 rm -f conftest.$ac_objext conftest$ac_exeext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12408 (eval $ac_link) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -s conftest$ac_exeext'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; }; then
12418 bash_cv_decl_strtoull=yes
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12423 bash_cv_decl_strtoull=no
12425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12427 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
12428 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
12429 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12430 if test $bash_cv_decl_strtoull = yes; then
12431 cat >>confdefs.h <<_ACEOF
12432 #define $bash_tr_func 1
12436 cat >>confdefs.h <<_ACEOF
12437 #define $bash_tr_func 0
12445 echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
12446 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
12447 if test "${bash_cv_decl_strtoumax+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 cat >conftest.$ac_ext <<_ACEOF
12451 #line $LINENO "configure"
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12459 # include <stdlib.h>
12461 #if HAVE_INTTYPES_H
12462 # include <inttypes.h>
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12475 (eval $ac_link) 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } &&
12479 { ac_try='test -s conftest$ac_exeext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 bash_cv_decl_strtoumax=yes
12487 echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12490 bash_cv_decl_strtoumax=no
12492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12494 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
12495 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
12496 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12497 if test $bash_cv_decl_strtoumax = yes; then
12498 cat >>confdefs.h <<_ACEOF
12499 #define $bash_tr_func 1
12503 cat >>confdefs.h <<_ACEOF
12504 #define $bash_tr_func 0
12512 for ac_header in sys/time.h unistd.h
12514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12516 echo "$as_me:$LINENO: checking for $ac_header" >&5
12517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12524 # Is the header compilable?
12525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12527 cat >conftest.$ac_ext <<_ACEOF
12528 #line $LINENO "configure"
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12534 $ac_includes_default
12535 #include <$ac_header>
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539 (eval $ac_compile) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } &&
12543 { ac_try='test -s conftest.$ac_objext'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 ac_header_compiler=yes
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 ac_header_compiler=no
12556 rm -f conftest.$ac_objext conftest.$ac_ext
12557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12558 echo "${ECHO_T}$ac_header_compiler" >&6
12560 # Is the header present?
12561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12563 cat >conftest.$ac_ext <<_ACEOF
12564 #line $LINENO "configure"
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 #include <$ac_header>
12572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12575 grep -v '^ *+' conftest.er1 >conftest.err
12577 cat conftest.err >&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } >/dev/null; then
12580 if test -s conftest.err; then
12581 ac_cpp_err=$ac_c_preproc_warn_flag
12588 if test -z "$ac_cpp_err"; then
12589 ac_header_preproc=yes
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 ac_header_preproc=no
12596 rm -f conftest.err conftest.$ac_ext
12597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12598 echo "${ECHO_T}$ac_header_preproc" >&6
12600 # So? What about this header?
12601 case $ac_header_compiler:$ac_header_preproc in
12603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12609 ## ------------------------------------ ##
12610 ## Report this to bug-autoconf@gnu.org. ##
12611 ## ------------------------------------ ##
12614 sed "s/^/$as_me: WARNING: /" >&2
12617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12625 ## ------------------------------------ ##
12626 ## Report this to bug-autoconf@gnu.org. ##
12627 ## ------------------------------------ ##
12630 sed "s/^/$as_me: WARNING: /" >&2
12633 echo "$as_me:$LINENO: checking for $ac_header" >&5
12634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 eval "$as_ac_Header=$ac_header_preproc"
12640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12645 cat >>confdefs.h <<_ACEOF
12646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12654 for ac_func in alarm
12656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12657 echo "$as_me:$LINENO: checking for $ac_func" >&5
12658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12659 if eval "test \"\${$as_ac_var+set}\" = set"; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 cat >conftest.$ac_ext <<_ACEOF
12663 #line $LINENO "configure"
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12669 /* System header to define __stub macros and hopefully few prototypes,
12670 which can conflict with char $ac_func (); below.
12671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12672 <limits.h> exists even on freestanding compilers. */
12674 # include <limits.h>
12676 # include <assert.h>
12678 /* Override any gcc2 internal prototype to avoid an error. */
12683 /* We use char because int might match the return type of a gcc2
12684 builtin and then its argument prototype would still apply. */
12686 /* The GNU C library defines this for functions which it implements
12687 to always fail with ENOSYS. Some functions are actually named
12688 something starting with __ and the normal name is an alias. */
12689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12692 char (*f) () = $ac_func;
12701 return f != $ac_func;
12706 rm -f conftest.$ac_objext conftest$ac_exeext
12707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12708 (eval $ac_link) 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } &&
12712 { ac_try='test -s conftest$ac_exeext'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12718 eval "$as_ac_var=yes"
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12723 eval "$as_ac_var=no"
12725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12729 if test `eval echo '${'$as_ac_var'}'` = yes; then
12730 cat >>confdefs.h <<_ACEOF
12731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12737 echo "$as_me:$LINENO: checking for working mktime" >&5
12738 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
12739 if test "${ac_cv_func_working_mktime+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 if test "$cross_compiling" = yes; then
12743 ac_cv_func_working_mktime=no
12745 cat >conftest.$ac_ext <<_ACEOF
12746 #line $LINENO "configure"
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 /* Test program from Paul Eggert and Tony Leneis. */
12753 #if TIME_WITH_SYS_TIME
12754 # include <sys/time.h>
12757 # if HAVE_SYS_TIME_H
12758 # include <sys/time.h>
12765 # include <unistd.h>
12769 # define alarm(X) /* empty */
12772 /* Work around redefinition to rpl_putenv by other config tests. */
12775 static time_t time_t_max;
12777 /* Values we'll use to set the TZ environment variable. */
12778 static const char *const tz_strings[] = {
12779 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12780 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12782 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12784 /* Fail if mktime fails to convert a date in the spring-forward gap.
12785 Based on a problem report from Andreas Jaeger. */
12787 spring_forward_gap ()
12789 /* glibc (up to about 1998-10-07) failed this test. */
12792 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12793 instead of "TZ=America/Vancouver" in order to detect the bug even
12794 on systems that don't support the Olson extension, or don't have the
12795 full zoneinfo tables installed. */
12796 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12805 if (mktime (&tm) == (time_t)-1)
12814 if ((lt = localtime (&now)) && mktime (lt) != now)
12816 now = time_t_max - now;
12817 if ((lt = localtime (&now)) && mktime (lt) != now)
12824 /* Based on code from Ariel Faigon. */
12834 if (tm.tm_mon != 2 || tm.tm_mday != 31)
12844 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12845 now = mktime (&tm);
12846 if (now != (time_t) -1)
12848 struct tm *lt = localtime (&now);
12850 && lt->tm_year == tm.tm_year
12851 && lt->tm_mon == tm.tm_mon
12852 && lt->tm_mday == tm.tm_mday
12853 && lt->tm_hour == tm.tm_hour
12854 && lt->tm_min == tm.tm_min
12855 && lt->tm_sec == tm.tm_sec
12856 && lt->tm_yday == tm.tm_yday
12857 && lt->tm_wday == tm.tm_wday
12858 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12859 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12870 /* This test makes some buggy mktime implementations loop.
12871 Give up after 60 seconds; a mktime slower than that
12872 isn't worth using anyway. */
12875 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12878 delta = time_t_max / 997; /* a suitable prime number */
12879 for (i = 0; i < N_STRINGS; i++)
12882 putenv (tz_strings[i]);
12884 for (t = 0; t <= time_t_max - delta; t += delta)
12886 mktime_test ((time_t) 60 * 60);
12887 mktime_test ((time_t) 60 * 60 * 24);
12889 for (j = 1; 0 < j; j *= 2)
12891 bigtime_test (j - 1);
12894 spring_forward_gap ();
12898 rm -f conftest$ac_exeext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12900 (eval $ac_link) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_cv_func_working_mktime=yes
12911 echo "$as_me: program exited with status $ac_status" >&5
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 ( exit $ac_status )
12916 ac_cv_func_working_mktime=no
12918 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12921 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12922 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12923 if test $ac_cv_func_working_mktime = no; then
12924 LIBOBJS="$LIBOBJS mktime.$ac_objext"
12934 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
12936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12938 echo "$as_me:$LINENO: checking for $ac_header" >&5
12939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12946 # Is the header compilable?
12947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12949 cat >conftest.$ac_ext <<_ACEOF
12950 #line $LINENO "configure"
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12956 $ac_includes_default
12957 #include <$ac_header>
12959 rm -f conftest.$ac_objext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961 (eval $ac_compile) 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); } &&
12965 { ac_try='test -s conftest.$ac_objext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 ac_header_compiler=yes
12973 echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12976 ac_header_compiler=no
12978 rm -f conftest.$ac_objext conftest.$ac_ext
12979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12980 echo "${ECHO_T}$ac_header_compiler" >&6
12982 # Is the header present?
12983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12985 cat >conftest.$ac_ext <<_ACEOF
12986 #line $LINENO "configure"
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h. */
12992 #include <$ac_header>
12994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12997 grep -v '^ *+' conftest.er1 >conftest.err
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } >/dev/null; then
13002 if test -s conftest.err; then
13003 ac_cpp_err=$ac_c_preproc_warn_flag
13010 if test -z "$ac_cpp_err"; then
13011 ac_header_preproc=yes
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13016 ac_header_preproc=no
13018 rm -f conftest.err conftest.$ac_ext
13019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13020 echo "${ECHO_T}$ac_header_preproc" >&6
13022 # So? What about this header?
13023 case $ac_header_compiler:$ac_header_preproc in
13025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13031 ## ------------------------------------ ##
13032 ## Report this to bug-autoconf@gnu.org. ##
13033 ## ------------------------------------ ##
13036 sed "s/^/$as_me: WARNING: /" >&2
13039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13047 ## ------------------------------------ ##
13048 ## Report this to bug-autoconf@gnu.org. ##
13049 ## ------------------------------------ ##
13052 sed "s/^/$as_me: WARNING: /" >&2
13055 echo "$as_me:$LINENO: checking for $ac_header" >&5
13056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 eval "$as_ac_Header=$ac_header_preproc"
13062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13067 cat >>confdefs.h <<_ACEOF
13068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13078 for ac_header in stdlib.h unistd.h
13080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13082 echo "$as_me:$LINENO: checking for $ac_header" >&5
13083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13090 # Is the header compilable?
13091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13093 cat >conftest.$ac_ext <<_ACEOF
13094 #line $LINENO "configure"
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 $ac_includes_default
13101 #include <$ac_header>
13103 rm -f conftest.$ac_objext
13104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13105 (eval $ac_compile) 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
13109 { ac_try='test -s conftest.$ac_objext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_header_compiler=yes
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13120 ac_header_compiler=no
13122 rm -f conftest.$ac_objext conftest.$ac_ext
13123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13124 echo "${ECHO_T}$ac_header_compiler" >&6
13126 # Is the header present?
13127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13129 cat >conftest.$ac_ext <<_ACEOF
13130 #line $LINENO "configure"
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13136 #include <$ac_header>
13138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13141 grep -v '^ *+' conftest.er1 >conftest.err
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } >/dev/null; then
13146 if test -s conftest.err; then
13147 ac_cpp_err=$ac_c_preproc_warn_flag
13154 if test -z "$ac_cpp_err"; then
13155 ac_header_preproc=yes
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13160 ac_header_preproc=no
13162 rm -f conftest.err conftest.$ac_ext
13163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13164 echo "${ECHO_T}$ac_header_preproc" >&6
13166 # So? What about this header?
13167 case $ac_header_compiler:$ac_header_preproc in
13169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13175 ## ------------------------------------ ##
13176 ## Report this to bug-autoconf@gnu.org. ##
13177 ## ------------------------------------ ##
13180 sed "s/^/$as_me: WARNING: /" >&2
13183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13191 ## ------------------------------------ ##
13192 ## Report this to bug-autoconf@gnu.org. ##
13193 ## ------------------------------------ ##
13196 sed "s/^/$as_me: WARNING: /" >&2
13199 echo "$as_me:$LINENO: checking for $ac_header" >&5
13200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 eval "$as_ac_Header=$ac_header_preproc"
13206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13211 cat >>confdefs.h <<_ACEOF
13212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13220 for ac_func in getpagesize
13222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13223 echo "$as_me:$LINENO: checking for $ac_func" >&5
13224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13225 if eval "test \"\${$as_ac_var+set}\" = set"; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 cat >conftest.$ac_ext <<_ACEOF
13229 #line $LINENO "configure"
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h. */
13235 /* System header to define __stub macros and hopefully few prototypes,
13236 which can conflict with char $ac_func (); below.
13237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13238 <limits.h> exists even on freestanding compilers. */
13240 # include <limits.h>
13242 # include <assert.h>
13244 /* Override any gcc2 internal prototype to avoid an error. */
13249 /* We use char because int might match the return type of a gcc2
13250 builtin and then its argument prototype would still apply. */
13252 /* The GNU C library defines this for functions which it implements
13253 to always fail with ENOSYS. Some functions are actually named
13254 something starting with __ and the normal name is an alias. */
13255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13258 char (*f) () = $ac_func;
13267 return f != $ac_func;
13272 rm -f conftest.$ac_objext conftest$ac_exeext
13273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13274 (eval $ac_link) 2>&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } &&
13278 { ac_try='test -s conftest$ac_exeext'
13279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280 (eval $ac_try) 2>&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
13284 eval "$as_ac_var=yes"
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 eval "$as_ac_var=no"
13291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13295 if test `eval echo '${'$as_ac_var'}'` = yes; then
13296 cat >>confdefs.h <<_ACEOF
13297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13303 echo "$as_me:$LINENO: checking for working mmap" >&5
13304 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13305 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 if test "$cross_compiling" = yes; then
13309 ac_cv_func_mmap_fixed_mapped=no
13311 cat >conftest.$ac_ext <<_ACEOF
13312 #line $LINENO "configure"
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13318 $ac_includes_default
13319 /* malloc might have been renamed as rpl_malloc. */
13322 /* Thanks to Mike Haertel and Jim Avera for this test.
13323 Here is a matrix of mmap possibilities:
13324 mmap private not fixed
13325 mmap private fixed at somewhere currently unmapped
13326 mmap private fixed at somewhere already mapped
13327 mmap shared not fixed
13328 mmap shared fixed at somewhere currently unmapped
13329 mmap shared fixed at somewhere already mapped
13330 For private mappings, we should verify that changes cannot be read()
13331 back from the file, nor mmap's back from the file at a different
13332 address. (There have been systems where private was not correctly
13333 implemented like the infamous i386 svr4.0, and systems where the
13334 VM page cache was not coherent with the file system buffer cache
13335 like early versions of FreeBSD and possibly contemporary NetBSD.)
13336 For shared mappings, we should conversely verify that changes get
13337 propagated back to all the places they're supposed to be.
13339 Grep wants private fixed already mapped.
13340 The main things grep needs to know about mmap are:
13341 * does it exist and is it safe to write into the mmap'd area
13342 * how to use it (BSD variants) */
13345 #include <sys/mman.h>
13347 #if !STDC_HEADERS && !HAVE_STDLIB_H
13351 /* This mess was copied from the GNU getpagesize.h. */
13352 #if !HAVE_GETPAGESIZE
13353 /* Assume that all systems that can run configure have sys/param.h. */
13354 # if !HAVE_SYS_PARAM_H
13355 # define HAVE_SYS_PARAM_H 1
13358 # ifdef _SC_PAGESIZE
13359 # define getpagesize() sysconf(_SC_PAGESIZE)
13360 # else /* no _SC_PAGESIZE */
13361 # if HAVE_SYS_PARAM_H
13362 # include <sys/param.h>
13363 # ifdef EXEC_PAGESIZE
13364 # define getpagesize() EXEC_PAGESIZE
13365 # else /* no EXEC_PAGESIZE */
13367 # define getpagesize() NBPG * CLSIZE
13370 # endif /* no CLSIZE */
13371 # else /* no NBPG */
13373 # define getpagesize() NBPC
13374 # else /* no NBPC */
13376 # define getpagesize() PAGESIZE
13377 # endif /* PAGESIZE */
13378 # endif /* no NBPC */
13379 # endif /* no NBPG */
13380 # endif /* no EXEC_PAGESIZE */
13381 # else /* no HAVE_SYS_PARAM_H */
13382 # define getpagesize() 8192 /* punt totally */
13383 # endif /* no HAVE_SYS_PARAM_H */
13384 # endif /* no _SC_PAGESIZE */
13386 #endif /* no HAVE_GETPAGESIZE */
13391 char *data, *data2, *data3;
13395 pagesize = getpagesize ();
13397 /* First, make a file with some known garbage in it. */
13398 data = (char *) malloc (pagesize);
13401 for (i = 0; i < pagesize; ++i)
13402 *(data + i) = rand ();
13404 fd = creat ("conftest.mmap", 0600);
13407 if (write (fd, data, pagesize) != pagesize)
13411 /* Next, try to mmap the file at a fixed address which already has
13412 something else allocated at it. If we can, also make sure that
13413 we see the same garbage. */
13414 fd = open ("conftest.mmap", O_RDWR);
13417 data2 = (char *) malloc (2 * pagesize);
13420 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
13421 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13422 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13424 for (i = 0; i < pagesize; ++i)
13425 if (*(data + i) != *(data2 + i))
13428 /* Finally, make sure that changes to the mapped area do not
13429 percolate back to the file as seen by read(). (This is a bug on
13430 some variants of i386 svr4.0.) */
13431 for (i = 0; i < pagesize; ++i)
13432 *(data2 + i) = *(data2 + i) + 1;
13433 data3 = (char *) malloc (pagesize);
13436 if (read (fd, data3, pagesize) != pagesize)
13438 for (i = 0; i < pagesize; ++i)
13439 if (*(data + i) != *(data3 + i))
13445 rm -f conftest$ac_exeext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13447 (eval $ac_link) 2>&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 ac_cv_func_mmap_fixed_mapped=yes
13458 echo "$as_me: program exited with status $ac_status" >&5
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 ( exit $ac_status )
13463 ac_cv_func_mmap_fixed_mapped=no
13465 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13468 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13469 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13470 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13472 cat >>confdefs.h <<\_ACEOF
13473 #define HAVE_MMAP 1
13477 rm -f conftest.mmap
13488 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
13489 munmap stpcpy strcspn strdup
13491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13492 echo "$as_me:$LINENO: checking for $ac_func" >&5
13493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13494 if eval "test \"\${$as_ac_var+set}\" = set"; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 cat >conftest.$ac_ext <<_ACEOF
13498 #line $LINENO "configure"
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13504 /* System header to define __stub macros and hopefully few prototypes,
13505 which can conflict with char $ac_func (); below.
13506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13507 <limits.h> exists even on freestanding compilers. */
13509 # include <limits.h>
13511 # include <assert.h>
13513 /* Override any gcc2 internal prototype to avoid an error. */
13518 /* We use char because int might match the return type of a gcc2
13519 builtin and then its argument prototype would still apply. */
13521 /* The GNU C library defines this for functions which it implements
13522 to always fail with ENOSYS. Some functions are actually named
13523 something starting with __ and the normal name is an alias. */
13524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13527 char (*f) () = $ac_func;
13536 return f != $ac_func;
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13543 (eval $ac_link) 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
13547 { ac_try='test -s conftest$ac_exeext'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; }; then
13553 eval "$as_ac_var=yes"
13555 echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13558 eval "$as_ac_var=no"
13560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13564 if test `eval echo '${'$as_ac_var'}'` = yes; then
13565 cat >>confdefs.h <<_ACEOF
13566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13573 INTL_DEP= INTL_INC= LIBINTL_H=
13574 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
13575 INTL_DEP='${INTL_LIBDIR}/libintl.a'
13576 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
13577 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
13586 for ac_header in wctype.h
13588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13590 echo "$as_me:$LINENO: checking for $ac_header" >&5
13591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13598 # Is the header compilable?
13599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13601 cat >conftest.$ac_ext <<_ACEOF
13602 #line $LINENO "configure"
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13608 $ac_includes_default
13609 #include <$ac_header>
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -s conftest.$ac_objext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_header_compiler=yes
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_header_compiler=no
13630 rm -f conftest.$ac_objext conftest.$ac_ext
13631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13632 echo "${ECHO_T}$ac_header_compiler" >&6
13634 # Is the header present?
13635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13637 cat >conftest.$ac_ext <<_ACEOF
13638 #line $LINENO "configure"
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 #include <$ac_header>
13646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13649 grep -v '^ *+' conftest.er1 >conftest.err
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } >/dev/null; then
13654 if test -s conftest.err; then
13655 ac_cpp_err=$ac_c_preproc_warn_flag
13662 if test -z "$ac_cpp_err"; then
13663 ac_header_preproc=yes
13665 echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13668 ac_header_preproc=no
13670 rm -f conftest.err conftest.$ac_ext
13671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13672 echo "${ECHO_T}$ac_header_preproc" >&6
13674 # So? What about this header?
13675 case $ac_header_compiler:$ac_header_preproc in
13677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13683 ## ------------------------------------ ##
13684 ## Report this to bug-autoconf@gnu.org. ##
13685 ## ------------------------------------ ##
13688 sed "s/^/$as_me: WARNING: /" >&2
13691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13699 ## ------------------------------------ ##
13700 ## Report this to bug-autoconf@gnu.org. ##
13701 ## ------------------------------------ ##
13704 sed "s/^/$as_me: WARNING: /" >&2
13707 echo "$as_me:$LINENO: checking for $ac_header" >&5
13708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 eval "$as_ac_Header=$ac_header_preproc"
13714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13719 cat >>confdefs.h <<_ACEOF
13720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13728 for ac_header in wchar.h
13730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13732 echo "$as_me:$LINENO: checking for $ac_header" >&5
13733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13740 # Is the header compilable?
13741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13743 cat >conftest.$ac_ext <<_ACEOF
13744 #line $LINENO "configure"
13747 cat confdefs.h >>conftest.$ac_ext
13748 cat >>conftest.$ac_ext <<_ACEOF
13749 /* end confdefs.h. */
13750 $ac_includes_default
13751 #include <$ac_header>
13753 rm -f conftest.$ac_objext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755 (eval $ac_compile) 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } &&
13759 { ac_try='test -s conftest.$ac_objext'
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 (eval $ac_try) 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; }; then
13765 ac_header_compiler=yes
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13770 ac_header_compiler=no
13772 rm -f conftest.$ac_objext conftest.$ac_ext
13773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13774 echo "${ECHO_T}$ac_header_compiler" >&6
13776 # Is the header present?
13777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13779 cat >conftest.$ac_ext <<_ACEOF
13780 #line $LINENO "configure"
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 #include <$ac_header>
13788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13791 grep -v '^ *+' conftest.er1 >conftest.err
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } >/dev/null; then
13796 if test -s conftest.err; then
13797 ac_cpp_err=$ac_c_preproc_warn_flag
13804 if test -z "$ac_cpp_err"; then
13805 ac_header_preproc=yes
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13810 ac_header_preproc=no
13812 rm -f conftest.err conftest.$ac_ext
13813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13814 echo "${ECHO_T}$ac_header_preproc" >&6
13816 # So? What about this header?
13817 case $ac_header_compiler:$ac_header_preproc in
13819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13825 ## ------------------------------------ ##
13826 ## Report this to bug-autoconf@gnu.org. ##
13827 ## ------------------------------------ ##
13830 sed "s/^/$as_me: WARNING: /" >&2
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13841 ## ------------------------------------ ##
13842 ## Report this to bug-autoconf@gnu.org. ##
13843 ## ------------------------------------ ##
13846 sed "s/^/$as_me: WARNING: /" >&2
13849 echo "$as_me:$LINENO: checking for $ac_header" >&5
13850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 eval "$as_ac_Header=$ac_header_preproc"
13856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13861 cat >>confdefs.h <<_ACEOF
13862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13870 for ac_header in langinfo.h
13872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13874 echo "$as_me:$LINENO: checking for $ac_header" >&5
13875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13882 # Is the header compilable?
13883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13885 cat >conftest.$ac_ext <<_ACEOF
13886 #line $LINENO "configure"
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 $ac_includes_default
13893 #include <$ac_header>
13895 rm -f conftest.$ac_objext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13897 (eval $ac_compile) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -s conftest.$ac_objext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 ac_header_compiler=yes
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 ac_header_compiler=no
13914 rm -f conftest.$ac_objext conftest.$ac_ext
13915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13916 echo "${ECHO_T}$ac_header_compiler" >&6
13918 # Is the header present?
13919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13921 cat >conftest.$ac_ext <<_ACEOF
13922 #line $LINENO "configure"
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 #include <$ac_header>
13930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13933 grep -v '^ *+' conftest.er1 >conftest.err
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } >/dev/null; then
13938 if test -s conftest.err; then
13939 ac_cpp_err=$ac_c_preproc_warn_flag
13946 if test -z "$ac_cpp_err"; then
13947 ac_header_preproc=yes
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_header_preproc=no
13954 rm -f conftest.err conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13956 echo "${ECHO_T}$ac_header_preproc" >&6
13958 # So? What about this header?
13959 case $ac_header_compiler:$ac_header_preproc in
13961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13967 ## ------------------------------------ ##
13968 ## Report this to bug-autoconf@gnu.org. ##
13969 ## ------------------------------------ ##
13972 sed "s/^/$as_me: WARNING: /" >&2
13975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13983 ## ------------------------------------ ##
13984 ## Report this to bug-autoconf@gnu.org. ##
13985 ## ------------------------------------ ##
13988 sed "s/^/$as_me: WARNING: /" >&2
13991 echo "$as_me:$LINENO: checking for $ac_header" >&5
13992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 eval "$as_ac_Header=$ac_header_preproc"
13998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14003 cat >>confdefs.h <<_ACEOF
14004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14012 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
14013 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
14014 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 cat >conftest.$ac_ext <<_ACEOF
14018 #line $LINENO "configure"
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14024 /* System header to define __stub macros and hopefully few prototypes,
14025 which can conflict with char mbsrtowcs (); below.
14026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14027 <limits.h> exists even on freestanding compilers. */
14029 # include <limits.h>
14031 # include <assert.h>
14033 /* Override any gcc2 internal prototype to avoid an error. */
14038 /* We use char because int might match the return type of a gcc2
14039 builtin and then its argument prototype would still apply. */
14041 /* The GNU C library defines this for functions which it implements
14042 to always fail with ENOSYS. Some functions are actually named
14043 something starting with __ and the normal name is an alias. */
14044 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
14047 char (*f) () = mbsrtowcs;
14056 return f != mbsrtowcs;
14061 rm -f conftest.$ac_objext conftest$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063 (eval $ac_link) 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try='test -s conftest$ac_exeext'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14073 ac_cv_func_mbsrtowcs=yes
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14078 ac_cv_func_mbsrtowcs=no
14080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14082 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
14083 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
14084 if test $ac_cv_func_mbsrtowcs = yes; then
14085 cat >>confdefs.h <<\_ACEOF
14086 #define HAVE_MBSRTOWCS 1
14091 echo "$as_me:$LINENO: checking for mbrtowc" >&5
14092 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
14093 if test "${ac_cv_func_mbrtowc+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 cat >conftest.$ac_ext <<_ACEOF
14097 #line $LINENO "configure"
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14103 /* System header to define __stub macros and hopefully few prototypes,
14104 which can conflict with char mbrtowc (); below.
14105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14106 <limits.h> exists even on freestanding compilers. */
14108 # include <limits.h>
14110 # include <assert.h>
14112 /* Override any gcc2 internal prototype to avoid an error. */
14117 /* We use char because int might match the return type of a gcc2
14118 builtin and then its argument prototype would still apply. */
14120 /* The GNU C library defines this for functions which it implements
14121 to always fail with ENOSYS. Some functions are actually named
14122 something starting with __ and the normal name is an alias. */
14123 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
14126 char (*f) () = mbrtowc;
14135 return f != mbrtowc;
14140 rm -f conftest.$ac_objext conftest$ac_exeext
14141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14142 (eval $ac_link) 2>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
14146 { ac_try='test -s conftest$ac_exeext'
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }; then
14152 ac_cv_func_mbrtowc=yes
14154 echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14157 ac_cv_func_mbrtowc=no
14159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14161 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
14162 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
14163 if test $ac_cv_func_mbrtowc = yes; then
14164 cat >>confdefs.h <<\_ACEOF
14165 #define HAVE_MBRTOWC 1
14170 echo "$as_me:$LINENO: checking for mbrlen" >&5
14171 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
14172 if test "${ac_cv_func_mbrlen+set}" = set; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 cat >conftest.$ac_ext <<_ACEOF
14176 #line $LINENO "configure"
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 /* System header to define __stub macros and hopefully few prototypes,
14183 which can conflict with char mbrlen (); below.
14184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14185 <limits.h> exists even on freestanding compilers. */
14187 # include <limits.h>
14189 # include <assert.h>
14191 /* Override any gcc2 internal prototype to avoid an error. */
14196 /* We use char because int might match the return type of a gcc2
14197 builtin and then its argument prototype would still apply. */
14199 /* The GNU C library defines this for functions which it implements
14200 to always fail with ENOSYS. Some functions are actually named
14201 something starting with __ and the normal name is an alias. */
14202 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
14205 char (*f) () = mbrlen;
14214 return f != mbrlen;
14219 rm -f conftest.$ac_objext conftest$ac_exeext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221 (eval $ac_link) 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -s conftest$ac_exeext'
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; }; then
14231 ac_cv_func_mbrlen=yes
14233 echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14236 ac_cv_func_mbrlen=no
14238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14240 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
14241 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
14242 if test $ac_cv_func_mbrlen = yes; then
14243 cat >>confdefs.h <<\_ACEOF
14244 #define HAVE_MBRLEN 1
14249 echo "$as_me:$LINENO: checking for wctomb" >&5
14250 echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
14251 if test "${ac_cv_func_wctomb+set}" = set; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 cat >conftest.$ac_ext <<_ACEOF
14255 #line $LINENO "configure"
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14261 /* System header to define __stub macros and hopefully few prototypes,
14262 which can conflict with char wctomb (); below.
14263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14264 <limits.h> exists even on freestanding compilers. */
14266 # include <limits.h>
14268 # include <assert.h>
14270 /* Override any gcc2 internal prototype to avoid an error. */
14275 /* We use char because int might match the return type of a gcc2
14276 builtin and then its argument prototype would still apply. */
14278 /* The GNU C library defines this for functions which it implements
14279 to always fail with ENOSYS. Some functions are actually named
14280 something starting with __ and the normal name is an alias. */
14281 #if defined (__stub_wctomb) || defined (__stub___wctomb)
14284 char (*f) () = wctomb;
14293 return f != wctomb;
14298 rm -f conftest.$ac_objext conftest$ac_exeext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14300 (eval $ac_link) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } &&
14304 { ac_try='test -s conftest$ac_exeext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_func_wctomb=yes
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14315 ac_cv_func_wctomb=no
14317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14319 echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
14320 echo "${ECHO_T}$ac_cv_func_wctomb" >&6
14321 if test $ac_cv_func_wctomb = yes; then
14322 cat >>confdefs.h <<\_ACEOF
14323 #define HAVE_WCTOMB 1
14328 echo "$as_me:$LINENO: checking for wcwidth" >&5
14329 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
14330 if test "${ac_cv_func_wcwidth+set}" = set; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 cat >conftest.$ac_ext <<_ACEOF
14334 #line $LINENO "configure"
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 /* System header to define __stub macros and hopefully few prototypes,
14341 which can conflict with char wcwidth (); below.
14342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14343 <limits.h> exists even on freestanding compilers. */
14345 # include <limits.h>
14347 # include <assert.h>
14349 /* Override any gcc2 internal prototype to avoid an error. */
14354 /* We use char because int might match the return type of a gcc2
14355 builtin and then its argument prototype would still apply. */
14357 /* The GNU C library defines this for functions which it implements
14358 to always fail with ENOSYS. Some functions are actually named
14359 something starting with __ and the normal name is an alias. */
14360 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
14363 char (*f) () = wcwidth;
14372 return f != wcwidth;
14377 rm -f conftest.$ac_objext conftest$ac_exeext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14379 (eval $ac_link) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -s conftest$ac_exeext'
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
14389 ac_cv_func_wcwidth=yes
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ac_cv_func_wcwidth=no
14396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14398 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
14399 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
14400 if test $ac_cv_func_wcwidth = yes; then
14401 cat >>confdefs.h <<\_ACEOF
14402 #define HAVE_WCWIDTH 1
14407 echo "$as_me:$LINENO: checking for wcsdup" >&5
14408 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
14409 if test "${ac_cv_func_wcsdup+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 cat >conftest.$ac_ext <<_ACEOF
14413 #line $LINENO "configure"
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h. */
14419 /* System header to define __stub macros and hopefully few prototypes,
14420 which can conflict with char wcsdup (); below.
14421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14422 <limits.h> exists even on freestanding compilers. */
14424 # include <limits.h>
14426 # include <assert.h>
14428 /* Override any gcc2 internal prototype to avoid an error. */
14433 /* We use char because int might match the return type of a gcc2
14434 builtin and then its argument prototype would still apply. */
14436 /* The GNU C library defines this for functions which it implements
14437 to always fail with ENOSYS. Some functions are actually named
14438 something starting with __ and the normal name is an alias. */
14439 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
14442 char (*f) () = wcsdup;
14451 return f != wcsdup;
14456 rm -f conftest.$ac_objext conftest$ac_exeext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14458 (eval $ac_link) 2>&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
14462 { ac_try='test -s conftest$ac_exeext'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14468 ac_cv_func_wcsdup=yes
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ac_cv_func_wcsdup=no
14475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14477 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
14478 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
14479 if test $ac_cv_func_wcsdup = yes; then
14480 cat >>confdefs.h <<\_ACEOF
14481 #define HAVE_WCSDUP 1
14487 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14488 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14489 if test "${bash_cv_have_mbstate_t+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 cat >conftest.$ac_ext <<_ACEOF
14493 #line $LINENO "configure"
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14507 psp = (mbstate_t *)0;
14513 rm -f conftest.$ac_objext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14515 (eval $ac_compile) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -s conftest.$ac_objext'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14525 bash_cv_have_mbstate_t=yes
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 bash_cv_have_mbstate_t=no
14532 rm -f conftest.$ac_objext conftest.$ac_ext
14534 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
14535 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
14536 if test $bash_cv_have_mbstate_t = yes; then
14537 cat >>confdefs.h <<\_ACEOF
14538 #define HAVE_MBSTATE_T 1
14543 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
14544 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
14545 if test "${bash_cv_langinfo_codeset+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 cat >conftest.$ac_ext <<_ACEOF
14549 #line $LINENO "configure"
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h. */
14555 #include <langinfo.h>
14559 char* cs = nl_langinfo(CODESET);
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14566 (eval $ac_link) 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
14570 { ac_try='test -s conftest$ac_exeext'
14571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572 (eval $ac_try) 2>&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; }; then
14576 bash_cv_langinfo_codeset=yes
14578 echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14581 bash_cv_langinfo_codeset=no
14583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14585 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
14586 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
14587 if test $bash_cv_langinfo_codeset = yes; then
14588 cat >>confdefs.h <<\_ACEOF
14589 #define HAVE_LANGINFO_CODESET 1
14596 if test "$opt_static_link" != yes; then
14598 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14599 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14600 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14603 ac_check_lib_save_LIBS=$LIBS
14605 cat >conftest.$ac_ext <<_ACEOF
14606 #line $LINENO "configure"
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14613 /* Override any gcc2 internal prototype to avoid an error. */
14617 /* We use char because int might match the return type of a gcc2
14618 builtin and then its argument prototype would still apply. */
14628 rm -f conftest.$ac_objext conftest$ac_exeext
14629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14630 (eval $ac_link) 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -s conftest$ac_exeext'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14640 ac_cv_lib_dl_dlopen=yes
14642 echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14645 ac_cv_lib_dl_dlopen=no
14647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14648 LIBS=$ac_check_lib_save_LIBS
14650 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14651 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14652 if test $ac_cv_lib_dl_dlopen = yes; then
14653 cat >>confdefs.h <<_ACEOF
14654 #define HAVE_LIBDL 1
14664 for ac_func in dlopen dlclose dlsym
14666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14667 echo "$as_me:$LINENO: checking for $ac_func" >&5
14668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14669 if eval "test \"\${$as_ac_var+set}\" = set"; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 cat >conftest.$ac_ext <<_ACEOF
14673 #line $LINENO "configure"
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 /* System header to define __stub macros and hopefully few prototypes,
14680 which can conflict with char $ac_func (); below.
14681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14682 <limits.h> exists even on freestanding compilers. */
14684 # include <limits.h>
14686 # include <assert.h>
14688 /* Override any gcc2 internal prototype to avoid an error. */
14693 /* We use char because int might match the return type of a gcc2
14694 builtin and then its argument prototype would still apply. */
14696 /* The GNU C library defines this for functions which it implements
14697 to always fail with ENOSYS. Some functions are actually named
14698 something starting with __ and the normal name is an alias. */
14699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14702 char (*f) () = $ac_func;
14711 return f != $ac_func;
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14718 (eval $ac_link) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } &&
14722 { ac_try='test -s conftest$ac_exeext'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
14728 eval "$as_ac_var=yes"
14730 echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14733 eval "$as_ac_var=no"
14735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14739 if test `eval echo '${'$as_ac_var'}'` = yes; then
14740 cat >>confdefs.h <<_ACEOF
14741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14749 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
14750 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
14751 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 cat >conftest.$ac_ext <<_ACEOF
14755 #line $LINENO "configure"
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14761 $ac_includes_default
14765 #ifndef sys_siglist
14766 char *p = (char *) sys_siglist;
14773 rm -f conftest.$ac_objext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775 (eval $ac_compile) 2>&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
14779 { ac_try='test -s conftest.$ac_objext'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
14785 ac_cv_have_decl_sys_siglist=yes
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14790 ac_cv_have_decl_sys_siglist=no
14792 rm -f conftest.$ac_objext conftest.$ac_ext
14794 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
14795 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
14796 if test $ac_cv_have_decl_sys_siglist = yes; then
14798 cat >>confdefs.h <<_ACEOF
14799 #define HAVE_DECL_SYS_SIGLIST 1
14804 cat >>confdefs.h <<_ACEOF
14805 #define HAVE_DECL_SYS_SIGLIST 0
14814 if test "$ac_cv_func_inet_aton" != 'yes'; then
14816 echo "$as_me:$LINENO: checking for inet_aton" >&5
14817 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14818 if test "${bash_cv_func_inet_aton+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 cat >conftest.$ac_ext <<_ACEOF
14822 #line $LINENO "configure"
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14829 #include <sys/types.h>
14830 #include <netinet/in.h>
14831 #include <arpa/inet.h>
14836 inet_aton("127.0.0.1", &ap);
14841 rm -f conftest.$ac_objext conftest$ac_exeext
14842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14843 (eval $ac_link) 2>&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
14847 { ac_try='test -s conftest$ac_exeext'
14848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; }; then
14853 bash_cv_func_inet_aton=yes
14855 echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14858 bash_cv_func_inet_aton=no
14860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14862 echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
14863 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
14864 if test $bash_cv_func_inet_aton = yes; then
14865 cat >>confdefs.h <<\_ACEOF
14866 #define HAVE_INET_ATON 1
14870 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
14877 echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
14878 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
14879 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 ac_check_lib_save_LIBS=$LIBS
14884 cat >conftest.$ac_ext <<_ACEOF
14885 #line $LINENO "configure"
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14892 /* Override any gcc2 internal prototype to avoid an error. */
14896 /* We use char because int might match the return type of a gcc2
14897 builtin and then its argument prototype would still apply. */
14907 rm -f conftest.$ac_objext conftest$ac_exeext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14909 (eval $ac_link) 2>&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
14913 { ac_try='test -s conftest$ac_exeext'
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; }; then
14919 ac_cv_lib_sun_getpwent=yes
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14924 ac_cv_lib_sun_getpwent=no
14926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14927 LIBS=$ac_check_lib_save_LIBS
14929 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
14930 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
14931 if test $ac_cv_lib_sun_getpwent = yes; then
14932 cat >>confdefs.h <<_ACEOF
14933 #define HAVE_LIBSUN 1
14942 if test "$ac_cv_func_getpeername" = no; then
14944 if test "X$bash_cv_have_socklib" = "X"; then
14947 echo "$as_me:$LINENO: checking for socket library" >&5
14948 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
14951 if test "${bash_cv_have_socklib+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14954 echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
14955 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
14956 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 ac_check_lib_save_LIBS=$LIBS
14960 LIBS="-lsocket -lnsl $LIBS"
14961 cat >conftest.$ac_ext <<_ACEOF
14962 #line $LINENO "configure"
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14969 /* Override any gcc2 internal prototype to avoid an error. */
14973 /* We use char because int might match the return type of a gcc2
14974 builtin and then its argument prototype would still apply. */
14975 char getpeername ();
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986 (eval $ac_link) 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -s conftest$ac_exeext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 ac_cv_lib_socket_getpeername=yes
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 ac_cv_lib_socket_getpeername=no
15003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15004 LIBS=$ac_check_lib_save_LIBS
15006 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
15007 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
15008 if test $ac_cv_lib_socket_getpeername = yes; then
15009 bash_cv_have_socklib=yes
15011 bash_cv_have_socklib=no
15016 if test "X$_bash_needmsg" = Xyes; then
15017 echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
15018 echo "${ECHO_T}$bash_cv_have_socklib" >&6
15021 if test $bash_cv_have_socklib = yes; then
15022 # check for libnsl, add it to LIBS if present
15023 if test "X$bash_cv_have_libnsl" = "X"; then
15026 echo "$as_me:$LINENO: checking for libnsl" >&5
15027 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
15030 if test "${bash_cv_have_libnsl+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15034 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
15035 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 ac_check_lib_save_LIBS=$LIBS
15040 cat >conftest.$ac_ext <<_ACEOF
15041 #line $LINENO "configure"
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15048 /* Override any gcc2 internal prototype to avoid an error. */
15052 /* We use char because int might match the return type of a gcc2
15053 builtin and then its argument prototype would still apply. */
15063 rm -f conftest.$ac_objext conftest$ac_exeext
15064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15065 (eval $ac_link) 2>&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } &&
15069 { ac_try='test -s conftest$ac_exeext'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; }; then
15075 ac_cv_lib_nsl_t_open=yes
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15080 ac_cv_lib_nsl_t_open=no
15082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15083 LIBS=$ac_check_lib_save_LIBS
15085 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15086 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
15087 if test $ac_cv_lib_nsl_t_open = yes; then
15088 bash_cv_have_libnsl=yes
15090 bash_cv_have_libnsl=no
15095 if test "X$_bash_needmsg" = Xyes; then
15096 echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
15097 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
15100 if test $bash_cv_have_libnsl = yes; then
15101 LIBS="-lsocket -lnsl $LIBS"
15103 LIBS="-lsocket $LIBS"
15105 cat >>confdefs.h <<\_ACEOF
15106 #define HAVE_LIBSOCKET 1
15109 cat >>confdefs.h <<\_ACEOF
15110 #define HAVE_GETPEERNAME 1
15116 if test "$ac_cv_func_gethostbyname" = no; then
15117 if test "X$bash_cv_have_gethostbyname" = "X"; then
15120 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
15121 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
15124 if test "${bash_cv_have_gethostbyname+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15138 struct hostent *hp;
15139 hp = gethostbyname("localhost");
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15147 (eval $ac_link) 2>&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -s conftest$ac_exeext'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15157 bash_cv_have_gethostbyname=yes
15159 echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15162 bash_cv_have_gethostbyname=no
15164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15168 if test "X$_bash_needmsg" = Xyes; then
15169 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
15170 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
15172 echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
15173 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
15174 if test "$bash_cv_have_gethostbyname" = yes; then
15175 cat >>confdefs.h <<\_ACEOF
15176 #define HAVE_GETHOSTBYNAME 1
15183 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15184 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15185 if test "${ac_cv_type_uid_t+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 cat >conftest.$ac_ext <<_ACEOF
15189 #line $LINENO "configure"
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15195 #include <sys/types.h>
15198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15199 $EGREP "uid_t" >/dev/null 2>&1; then
15200 ac_cv_type_uid_t=yes
15202 ac_cv_type_uid_t=no
15207 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15208 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15209 if test $ac_cv_type_uid_t = no; then
15211 cat >>confdefs.h <<\_ACEOF
15216 cat >>confdefs.h <<\_ACEOF
15222 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
15223 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
15224 if test "${ac_cv_type_getgroups+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 if test "$cross_compiling" = yes; then
15228 ac_cv_type_getgroups=cross
15230 cat >conftest.$ac_ext <<_ACEOF
15231 #line $LINENO "configure"
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 /* Thanks to Mike Rendell for this test. */
15238 #include <sys/types.h>
15241 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15246 gid_t gidset[NGID];
15248 union { gid_t gval; long lval; } val;
15251 for (i = 0; i < NGID; i++)
15252 gidset[i] = val.gval;
15253 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15255 /* Exit non-zero if getgroups seems to require an array of ints. This
15256 happens when gid_t is short but getgroups modifies an array of ints. */
15257 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
15260 rm -f conftest$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262 (eval $ac_link) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }; then
15271 ac_cv_type_getgroups=gid_t
15273 echo "$as_me: program exited with status $ac_status" >&5
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 ( exit $ac_status )
15278 ac_cv_type_getgroups=int
15280 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15282 if test $ac_cv_type_getgroups = cross; then
15283 cat >conftest.$ac_ext <<_ACEOF
15284 #line $LINENO "configure"
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <unistd.h>
15293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15294 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
15295 ac_cv_type_getgroups=gid_t
15297 ac_cv_type_getgroups=int
15303 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
15304 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
15306 cat >>confdefs.h <<_ACEOF
15307 #define GETGROUPS_T $ac_cv_type_getgroups
15311 echo "$as_me:$LINENO: checking for off_t" >&5
15312 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15313 if test "${ac_cv_type_off_t+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 cat >conftest.$ac_ext <<_ACEOF
15317 #line $LINENO "configure"
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 $ac_includes_default
15329 if (sizeof (off_t))
15335 rm -f conftest.$ac_objext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15337 (eval $ac_compile) 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -s conftest.$ac_objext'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15347 ac_cv_type_off_t=yes
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15352 ac_cv_type_off_t=no
15354 rm -f conftest.$ac_objext conftest.$ac_ext
15356 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15357 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15358 if test $ac_cv_type_off_t = yes; then
15362 cat >>confdefs.h <<_ACEOF
15368 echo "$as_me:$LINENO: checking for mode_t" >&5
15369 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15370 if test "${ac_cv_type_mode_t+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 cat >conftest.$ac_ext <<_ACEOF
15374 #line $LINENO "configure"
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15380 $ac_includes_default
15386 if (sizeof (mode_t))
15392 rm -f conftest.$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394 (eval $ac_compile) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
15398 { ac_try='test -s conftest.$ac_objext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 ac_cv_type_mode_t=yes
15406 echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15409 ac_cv_type_mode_t=no
15411 rm -f conftest.$ac_objext conftest.$ac_ext
15413 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15414 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15415 if test $ac_cv_type_mode_t = yes; then
15419 cat >>confdefs.h <<_ACEOF
15425 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15426 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15427 if test "${ac_cv_type_uid_t+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 cat >conftest.$ac_ext <<_ACEOF
15431 #line $LINENO "configure"
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h. */
15437 #include <sys/types.h>
15440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15441 $EGREP "uid_t" >/dev/null 2>&1; then
15442 ac_cv_type_uid_t=yes
15444 ac_cv_type_uid_t=no
15449 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15450 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15451 if test $ac_cv_type_uid_t = no; then
15453 cat >>confdefs.h <<\_ACEOF
15458 cat >>confdefs.h <<\_ACEOF
15464 echo "$as_me:$LINENO: checking for pid_t" >&5
15465 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15466 if test "${ac_cv_type_pid_t+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15469 cat >conftest.$ac_ext <<_ACEOF
15470 #line $LINENO "configure"
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 $ac_includes_default
15482 if (sizeof (pid_t))
15488 rm -f conftest.$ac_objext
15489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15490 (eval $ac_compile) 2>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try='test -s conftest.$ac_objext'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_cv_type_pid_t=yes
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_cv_type_pid_t=no
15507 rm -f conftest.$ac_objext conftest.$ac_ext
15509 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15510 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15511 if test $ac_cv_type_pid_t = yes; then
15515 cat >>confdefs.h <<_ACEOF
15521 echo "$as_me:$LINENO: checking for size_t" >&5
15522 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15523 if test "${ac_cv_type_size_t+set}" = set; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 cat >conftest.$ac_ext <<_ACEOF
15527 #line $LINENO "configure"
15530 cat confdefs.h >>conftest.$ac_ext
15531 cat >>conftest.$ac_ext <<_ACEOF
15532 /* end confdefs.h. */
15533 $ac_includes_default
15539 if (sizeof (size_t))
15545 rm -f conftest.$ac_objext
15546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15547 (eval $ac_compile) 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } &&
15551 { ac_try='test -s conftest.$ac_objext'
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15557 ac_cv_type_size_t=yes
15559 echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15562 ac_cv_type_size_t=no
15564 rm -f conftest.$ac_objext conftest.$ac_ext
15566 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15567 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15568 if test $ac_cv_type_size_t = yes; then
15572 cat >>confdefs.h <<_ACEOF
15573 #define size_t unsigned
15578 echo "$as_me:$LINENO: checking for ssize_t" >&5
15579 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15580 if test "${ac_cv_type_ssize_t+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 cat >conftest.$ac_ext <<_ACEOF
15584 #line $LINENO "configure"
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15590 $ac_includes_default
15596 if (sizeof (ssize_t))
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try='test -s conftest.$ac_objext'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 ac_cv_type_ssize_t=yes
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 ac_cv_type_ssize_t=no
15621 rm -f conftest.$ac_objext conftest.$ac_ext
15623 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15624 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15625 if test $ac_cv_type_ssize_t = yes; then
15629 cat >>confdefs.h <<_ACEOF
15630 #define ssize_t int
15635 echo "$as_me:$LINENO: checking for time_t" >&5
15636 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
15637 if test "${ac_cv_type_time_t+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 cat >conftest.$ac_ext <<_ACEOF
15641 #line $LINENO "configure"
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15647 $ac_includes_default
15653 if (sizeof (time_t))
15659 rm -f conftest.$ac_objext
15660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15661 (eval $ac_compile) 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -s conftest.$ac_objext'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 ac_cv_type_time_t=yes
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ac_cv_type_time_t=no
15678 rm -f conftest.$ac_objext conftest.$ac_ext
15680 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
15681 echo "${ECHO_T}$ac_cv_type_time_t" >&6
15682 if test $ac_cv_type_time_t = yes; then
15686 cat >>confdefs.h <<_ACEOF
15687 #define time_t long
15694 echo "$as_me:$LINENO: checking for long long" >&5
15695 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15696 if test "${bash_cv_type_long_long+set}" = set; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15699 cat >conftest.$ac_ext <<_ACEOF
15700 #line $LINENO "configure"
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15707 long long ll = 1; int i = 63;
15712 long long llm = (long long) -1;
15713 return ll << i | ll >> i | llm / ll | llm % ll;
15719 rm -f conftest.$ac_objext conftest$ac_exeext
15720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15721 (eval $ac_link) 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -s conftest$ac_exeext'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15731 bash_cv_type_long_long='long long'
15733 echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15736 bash_cv_type_long_long='long'
15738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15740 echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
15741 echo "${ECHO_T}$bash_cv_type_long_long" >&6
15742 if test "$bash_cv_type_long_long" = 'long long'; then
15743 cat >>confdefs.h <<\_ACEOF
15744 #define HAVE_LONG_LONG 1
15750 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15751 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15752 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 cat >conftest.$ac_ext <<_ACEOF
15756 #line $LINENO "configure"
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15763 unsigned long long ull = 1; int i = 63;
15768 unsigned long long ullmax = (unsigned long long) -1;
15769 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15775 rm -f conftest.$ac_objext conftest$ac_exeext
15776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15777 (eval $ac_link) 2>&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
15781 { ac_try='test -s conftest$ac_exeext'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15787 bash_cv_type_unsigned_long_long='unsigned long long'
15789 echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15792 bash_cv_type_unsigned_long_long='unsigned long'
15794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15796 echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
15797 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
15798 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
15799 cat >>confdefs.h <<\_ACEOF
15800 #define HAVE_UNSIGNED_LONG_LONG 1
15806 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15807 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15808 if test "${ac_cv_type_signal+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 cat >conftest.$ac_ext <<_ACEOF
15812 #line $LINENO "configure"
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 #include <sys/types.h>
15819 #include <signal.h>
15824 extern "C" void (*signal (int, void (*)(int)))(int);
15826 void (*signal ()) ();
15837 rm -f conftest.$ac_objext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15839 (eval $ac_compile) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try='test -s conftest.$ac_objext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_cv_type_signal=void
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15854 ac_cv_type_signal=int
15856 rm -f conftest.$ac_objext conftest.$ac_ext
15858 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15859 echo "${ECHO_T}$ac_cv_type_signal" >&6
15861 cat >>confdefs.h <<_ACEOF
15862 #define RETSIGTYPE $ac_cv_type_signal
15867 echo "$as_me:$LINENO: checking for char" >&5
15868 echo $ECHO_N "checking for char... $ECHO_C" >&6
15869 if test "${ac_cv_type_char+set}" = set; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 cat >conftest.$ac_ext <<_ACEOF
15873 #line $LINENO "configure"
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h. */
15879 $ac_includes_default
15891 rm -f conftest.$ac_objext
15892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15893 (eval $ac_compile) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } &&
15897 { ac_try='test -s conftest.$ac_objext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 ac_cv_type_char=yes
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15910 rm -f conftest.$ac_objext conftest.$ac_ext
15912 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15913 echo "${ECHO_T}$ac_cv_type_char" >&6
15915 echo "$as_me:$LINENO: checking size of char" >&5
15916 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15917 if test "${ac_cv_sizeof_char+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 if test "$ac_cv_type_char" = yes; then
15921 # The cast to unsigned long works around a bug in the HP C Compiler
15922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15924 # This bug is HP SR number 8606223364.
15925 if test "$cross_compiling" = yes; then
15926 # Depending upon the size, compute the lo and hi bounds.
15927 cat >conftest.$ac_ext <<_ACEOF
15928 #line $LINENO "configure"
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 $ac_includes_default
15938 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15945 rm -f conftest.$ac_objext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15947 (eval $ac_compile) 2>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -s conftest.$ac_objext'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15959 cat >conftest.$ac_ext <<_ACEOF
15960 #line $LINENO "configure"
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 $ac_includes_default
15970 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
15983 { ac_try='test -s conftest.$ac_objext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15989 ac_hi=$ac_mid; break
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 ac_lo=`expr $ac_mid + 1`
15995 if test $ac_lo -le $ac_mid; then
15999 ac_mid=`expr 2 '*' $ac_mid + 1`
16001 rm -f conftest.$ac_objext conftest.$ac_ext
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16007 cat >conftest.$ac_ext <<_ACEOF
16008 #line $LINENO "configure"
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 $ac_includes_default
16018 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16025 rm -f conftest.$ac_objext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027 (eval $ac_compile) 2>&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } &&
16031 { ac_try='test -s conftest.$ac_objext'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; }; then
16039 cat >conftest.$ac_ext <<_ACEOF
16040 #line $LINENO "configure"
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 $ac_includes_default
16050 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16057 rm -f conftest.$ac_objext
16058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16059 (eval $ac_compile) 2>&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } &&
16063 { ac_try='test -s conftest.$ac_objext'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; }; then
16069 ac_lo=$ac_mid; break
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16074 ac_hi=`expr '(' $ac_mid ')' - 1`
16075 if test $ac_mid -le $ac_hi; then
16079 ac_mid=`expr 2 '*' $ac_mid`
16081 rm -f conftest.$ac_objext conftest.$ac_ext
16084 echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16089 rm -f conftest.$ac_objext conftest.$ac_ext
16091 rm -f conftest.$ac_objext conftest.$ac_ext
16092 # Binary search between lo and hi bounds.
16093 while test "x$ac_lo" != "x$ac_hi"; do
16094 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16095 cat >conftest.$ac_ext <<_ACEOF
16096 #line $LINENO "configure"
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16102 $ac_includes_default
16106 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16113 rm -f conftest.$ac_objext
16114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16115 (eval $ac_compile) 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
16119 { ac_try='test -s conftest.$ac_objext'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16130 ac_lo=`expr '(' $ac_mid ')' + 1`
16132 rm -f conftest.$ac_objext conftest.$ac_ext
16135 ?*) ac_cv_sizeof_char=$ac_lo;;
16136 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16137 See \`config.log' for more details." >&5
16138 echo "$as_me: error: cannot compute sizeof (char), 77
16139 See \`config.log' for more details." >&2;}
16140 { (exit 1); exit 1; }; } ;;
16143 if test "$cross_compiling" = yes; then
16144 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16145 See \`config.log' for more details." >&5
16146 echo "$as_me: error: cannot run test program while cross compiling
16147 See \`config.log' for more details." >&2;}
16148 { (exit 1); exit 1; }; }
16150 cat >conftest.$ac_ext <<_ACEOF
16151 #line $LINENO "configure"
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 $ac_includes_default
16158 long longval () { return (long) (sizeof (char)); }
16159 unsigned long ulongval () { return (long) (sizeof (char)); }
16161 #include <stdlib.h>
16166 FILE *f = fopen ("conftest.val", "w");
16169 if (((long) (sizeof (char))) < 0)
16171 long i = longval ();
16172 if (i != ((long) (sizeof (char))))
16174 fprintf (f, "%ld\n", i);
16178 unsigned long i = ulongval ();
16179 if (i != ((long) (sizeof (char))))
16181 fprintf (f, "%lu\n", i);
16183 exit (ferror (f) || fclose (f) != 0);
16189 rm -f conftest$ac_exeext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16191 (eval $ac_link) 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; }; then
16200 ac_cv_sizeof_char=`cat conftest.val`
16202 echo "$as_me: program exited with status $ac_status" >&5
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16206 ( exit $ac_status )
16207 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16208 See \`config.log' for more details." >&5
16209 echo "$as_me: error: cannot compute sizeof (char), 77
16210 See \`config.log' for more details." >&2;}
16211 { (exit 1); exit 1; }; }
16213 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16218 ac_cv_sizeof_char=0
16221 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16222 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16223 cat >>confdefs.h <<_ACEOF
16224 #define SIZEOF_CHAR $ac_cv_sizeof_char
16228 echo "$as_me:$LINENO: checking for short" >&5
16229 echo $ECHO_N "checking for short... $ECHO_C" >&6
16230 if test "${ac_cv_type_short+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 cat >conftest.$ac_ext <<_ACEOF
16234 #line $LINENO "configure"
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16240 $ac_includes_default
16246 if (sizeof (short))
16252 rm -f conftest.$ac_objext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254 (eval $ac_compile) 2>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
16258 { ac_try='test -s conftest.$ac_objext'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264 ac_cv_type_short=yes
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16269 ac_cv_type_short=no
16271 rm -f conftest.$ac_objext conftest.$ac_ext
16273 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16274 echo "${ECHO_T}$ac_cv_type_short" >&6
16276 echo "$as_me:$LINENO: checking size of short" >&5
16277 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16278 if test "${ac_cv_sizeof_short+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 if test "$ac_cv_type_short" = yes; then
16282 # The cast to unsigned long works around a bug in the HP C Compiler
16283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16285 # This bug is HP SR number 8606223364.
16286 if test "$cross_compiling" = yes; then
16287 # Depending upon the size, compute the lo and hi bounds.
16288 cat >conftest.$ac_ext <<_ACEOF
16289 #line $LINENO "configure"
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295 $ac_includes_default
16299 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16306 rm -f conftest.$ac_objext
16307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16308 (eval $ac_compile) 2>&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -s conftest.$ac_objext'
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16320 cat >conftest.$ac_ext <<_ACEOF
16321 #line $LINENO "configure"
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 $ac_includes_default
16331 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16338 rm -f conftest.$ac_objext
16339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16340 (eval $ac_compile) 2>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -s conftest.$ac_objext'
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 ac_hi=$ac_mid; break
16352 echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.$ac_ext >&5
16355 ac_lo=`expr $ac_mid + 1`
16356 if test $ac_lo -le $ac_mid; then
16360 ac_mid=`expr 2 '*' $ac_mid + 1`
16362 rm -f conftest.$ac_objext conftest.$ac_ext
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16368 cat >conftest.$ac_ext <<_ACEOF
16369 #line $LINENO "configure"
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 $ac_includes_default
16379 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16386 rm -f conftest.$ac_objext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16388 (eval $ac_compile) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -s conftest.$ac_objext'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16400 cat >conftest.$ac_ext <<_ACEOF
16401 #line $LINENO "configure"
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 $ac_includes_default
16411 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16418 rm -f conftest.$ac_objext
16419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16420 (eval $ac_compile) 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } &&
16424 { ac_try='test -s conftest.$ac_objext'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_lo=$ac_mid; break
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 ac_hi=`expr '(' $ac_mid ')' - 1`
16436 if test $ac_mid -le $ac_hi; then
16440 ac_mid=`expr 2 '*' $ac_mid`
16442 rm -f conftest.$ac_objext conftest.$ac_ext
16445 echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16450 rm -f conftest.$ac_objext conftest.$ac_ext
16452 rm -f conftest.$ac_objext conftest.$ac_ext
16453 # Binary search between lo and hi bounds.
16454 while test "x$ac_lo" != "x$ac_hi"; do
16455 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16456 cat >conftest.$ac_ext <<_ACEOF
16457 #line $LINENO "configure"
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 $ac_includes_default
16467 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16474 rm -f conftest.$ac_objext
16475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16476 (eval $ac_compile) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -s conftest.$ac_objext'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16491 ac_lo=`expr '(' $ac_mid ')' + 1`
16493 rm -f conftest.$ac_objext conftest.$ac_ext
16496 ?*) ac_cv_sizeof_short=$ac_lo;;
16497 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16498 See \`config.log' for more details." >&5
16499 echo "$as_me: error: cannot compute sizeof (short), 77
16500 See \`config.log' for more details." >&2;}
16501 { (exit 1); exit 1; }; } ;;
16504 if test "$cross_compiling" = yes; then
16505 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16506 See \`config.log' for more details." >&5
16507 echo "$as_me: error: cannot run test program while cross compiling
16508 See \`config.log' for more details." >&2;}
16509 { (exit 1); exit 1; }; }
16511 cat >conftest.$ac_ext <<_ACEOF
16512 #line $LINENO "configure"
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 $ac_includes_default
16519 long longval () { return (long) (sizeof (short)); }
16520 unsigned long ulongval () { return (long) (sizeof (short)); }
16522 #include <stdlib.h>
16527 FILE *f = fopen ("conftest.val", "w");
16530 if (((long) (sizeof (short))) < 0)
16532 long i = longval ();
16533 if (i != ((long) (sizeof (short))))
16535 fprintf (f, "%ld\n", i);
16539 unsigned long i = ulongval ();
16540 if (i != ((long) (sizeof (short))))
16542 fprintf (f, "%lu\n", i);
16544 exit (ferror (f) || fclose (f) != 0);
16550 rm -f conftest$ac_exeext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16552 (eval $ac_link) 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 ac_cv_sizeof_short=`cat conftest.val`
16563 echo "$as_me: program exited with status $ac_status" >&5
16564 echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16567 ( exit $ac_status )
16568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16569 See \`config.log' for more details." >&5
16570 echo "$as_me: error: cannot compute sizeof (short), 77
16571 See \`config.log' for more details." >&2;}
16572 { (exit 1); exit 1; }; }
16574 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16579 ac_cv_sizeof_short=0
16582 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16583 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16584 cat >>confdefs.h <<_ACEOF
16585 #define SIZEOF_SHORT $ac_cv_sizeof_short
16589 echo "$as_me:$LINENO: checking for int" >&5
16590 echo $ECHO_N "checking for int... $ECHO_C" >&6
16591 if test "${ac_cv_type_int+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 cat >conftest.$ac_ext <<_ACEOF
16595 #line $LINENO "configure"
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 $ac_includes_default
16613 rm -f conftest.$ac_objext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615 (eval $ac_compile) 2>&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
16619 { ac_try='test -s conftest.$ac_objext'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16632 rm -f conftest.$ac_objext conftest.$ac_ext
16634 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16635 echo "${ECHO_T}$ac_cv_type_int" >&6
16637 echo "$as_me:$LINENO: checking size of int" >&5
16638 echo $ECHO_N "checking size of int... $ECHO_C" >&6
16639 if test "${ac_cv_sizeof_int+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 if test "$ac_cv_type_int" = yes; then
16643 # The cast to unsigned long works around a bug in the HP C Compiler
16644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16646 # This bug is HP SR number 8606223364.
16647 if test "$cross_compiling" = yes; then
16648 # Depending upon the size, compute the lo and hi bounds.
16649 cat >conftest.$ac_ext <<_ACEOF
16650 #line $LINENO "configure"
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 $ac_includes_default
16660 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16667 rm -f conftest.$ac_objext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669 (eval $ac_compile) 2>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } &&
16673 { ac_try='test -s conftest.$ac_objext'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16681 cat >conftest.$ac_ext <<_ACEOF
16682 #line $LINENO "configure"
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 $ac_includes_default
16692 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16699 rm -f conftest.$ac_objext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16701 (eval $ac_compile) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -s conftest.$ac_objext'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16711 ac_hi=$ac_mid; break
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 ac_lo=`expr $ac_mid + 1`
16717 if test $ac_lo -le $ac_mid; then
16721 ac_mid=`expr 2 '*' $ac_mid + 1`
16723 rm -f conftest.$ac_objext conftest.$ac_ext
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 cat >conftest.$ac_ext <<_ACEOF
16730 #line $LINENO "configure"
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h. */
16736 $ac_includes_default
16740 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16747 rm -f conftest.$ac_objext
16748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16749 (eval $ac_compile) 2>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } &&
16753 { ac_try='test -s conftest.$ac_objext'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16761 cat >conftest.$ac_ext <<_ACEOF
16762 #line $LINENO "configure"
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 $ac_includes_default
16772 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16779 rm -f conftest.$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -s conftest.$ac_objext'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791 ac_lo=$ac_mid; break
16793 echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16796 ac_hi=`expr '(' $ac_mid ')' - 1`
16797 if test $ac_mid -le $ac_hi; then
16801 ac_mid=`expr 2 '*' $ac_mid`
16803 rm -f conftest.$ac_objext conftest.$ac_ext
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16811 rm -f conftest.$ac_objext conftest.$ac_ext
16813 rm -f conftest.$ac_objext conftest.$ac_ext
16814 # Binary search between lo and hi bounds.
16815 while test "x$ac_lo" != "x$ac_hi"; do
16816 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16817 cat >conftest.$ac_ext <<_ACEOF
16818 #line $LINENO "configure"
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h. */
16824 $ac_includes_default
16828 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16835 rm -f conftest.$ac_objext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16837 (eval $ac_compile) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -s conftest.$ac_objext'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16852 ac_lo=`expr '(' $ac_mid ')' + 1`
16854 rm -f conftest.$ac_objext conftest.$ac_ext
16857 ?*) ac_cv_sizeof_int=$ac_lo;;
16858 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16859 See \`config.log' for more details." >&5
16860 echo "$as_me: error: cannot compute sizeof (int), 77
16861 See \`config.log' for more details." >&2;}
16862 { (exit 1); exit 1; }; } ;;
16865 if test "$cross_compiling" = yes; then
16866 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16867 See \`config.log' for more details." >&5
16868 echo "$as_me: error: cannot run test program while cross compiling
16869 See \`config.log' for more details." >&2;}
16870 { (exit 1); exit 1; }; }
16872 cat >conftest.$ac_ext <<_ACEOF
16873 #line $LINENO "configure"
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 $ac_includes_default
16880 long longval () { return (long) (sizeof (int)); }
16881 unsigned long ulongval () { return (long) (sizeof (int)); }
16883 #include <stdlib.h>
16888 FILE *f = fopen ("conftest.val", "w");
16891 if (((long) (sizeof (int))) < 0)
16893 long i = longval ();
16894 if (i != ((long) (sizeof (int))))
16896 fprintf (f, "%ld\n", i);
16900 unsigned long i = ulongval ();
16901 if (i != ((long) (sizeof (int))))
16903 fprintf (f, "%lu\n", i);
16905 exit (ferror (f) || fclose (f) != 0);
16911 rm -f conftest$ac_exeext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913 (eval $ac_link) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_cv_sizeof_int=`cat conftest.val`
16924 echo "$as_me: program exited with status $ac_status" >&5
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16928 ( exit $ac_status )
16929 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16930 See \`config.log' for more details." >&5
16931 echo "$as_me: error: cannot compute sizeof (int), 77
16932 See \`config.log' for more details." >&2;}
16933 { (exit 1); exit 1; }; }
16935 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16943 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16944 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16945 cat >>confdefs.h <<_ACEOF
16946 #define SIZEOF_INT $ac_cv_sizeof_int
16950 echo "$as_me:$LINENO: checking for long" >&5
16951 echo $ECHO_N "checking for long... $ECHO_C" >&6
16952 if test "${ac_cv_type_long+set}" = set; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16955 cat >conftest.$ac_ext <<_ACEOF
16956 #line $LINENO "configure"
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16962 $ac_includes_default
16974 rm -f conftest.$ac_objext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16976 (eval $ac_compile) 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
16980 { ac_try='test -s conftest.$ac_objext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_type_long=yes
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16993 rm -f conftest.$ac_objext conftest.$ac_ext
16995 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16996 echo "${ECHO_T}$ac_cv_type_long" >&6
16998 echo "$as_me:$LINENO: checking size of long" >&5
16999 echo $ECHO_N "checking size of long... $ECHO_C" >&6
17000 if test "${ac_cv_sizeof_long+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 if test "$ac_cv_type_long" = yes; then
17004 # The cast to unsigned long works around a bug in the HP C Compiler
17005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17007 # This bug is HP SR number 8606223364.
17008 if test "$cross_compiling" = yes; then
17009 # Depending upon the size, compute the lo and hi bounds.
17010 cat >conftest.$ac_ext <<_ACEOF
17011 #line $LINENO "configure"
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h. */
17017 $ac_includes_default
17021 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17028 rm -f conftest.$ac_objext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17030 (eval $ac_compile) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try='test -s conftest.$ac_objext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17042 cat >conftest.$ac_ext <<_ACEOF
17043 #line $LINENO "configure"
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h. */
17049 $ac_includes_default
17053 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17060 rm -f conftest.$ac_objext
17061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17062 (eval $ac_compile) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } &&
17066 { ac_try='test -s conftest.$ac_objext'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_hi=$ac_mid; break
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 ac_lo=`expr $ac_mid + 1`
17078 if test $ac_lo -le $ac_mid; then
17082 ac_mid=`expr 2 '*' $ac_mid + 1`
17084 rm -f conftest.$ac_objext conftest.$ac_ext
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17090 cat >conftest.$ac_ext <<_ACEOF
17091 #line $LINENO "configure"
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 $ac_includes_default
17101 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17108 rm -f conftest.$ac_objext
17109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17110 (eval $ac_compile) 2>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -s conftest.$ac_objext'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
17122 cat >conftest.$ac_ext <<_ACEOF
17123 #line $LINENO "configure"
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h. */
17129 $ac_includes_default
17133 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17140 rm -f conftest.$ac_objext
17141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17142 (eval $ac_compile) 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
17146 { ac_try='test -s conftest.$ac_objext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 ac_lo=$ac_mid; break
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17157 ac_hi=`expr '(' $ac_mid ')' - 1`
17158 if test $ac_mid -le $ac_hi; then
17162 ac_mid=`expr 2 '*' $ac_mid`
17164 rm -f conftest.$ac_objext conftest.$ac_ext
17167 echo "$as_me: failed program was:" >&5
17168 sed 's/^/| /' conftest.$ac_ext >&5
17172 rm -f conftest.$ac_objext conftest.$ac_ext
17174 rm -f conftest.$ac_objext conftest.$ac_ext
17175 # Binary search between lo and hi bounds.
17176 while test "x$ac_lo" != "x$ac_hi"; do
17177 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17178 cat >conftest.$ac_ext <<_ACEOF
17179 #line $LINENO "configure"
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17185 $ac_includes_default
17189 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17196 rm -f conftest.$ac_objext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198 (eval $ac_compile) 2>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -s conftest.$ac_objext'
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17210 echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17213 ac_lo=`expr '(' $ac_mid ')' + 1`
17215 rm -f conftest.$ac_objext conftest.$ac_ext
17218 ?*) ac_cv_sizeof_long=$ac_lo;;
17219 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17220 See \`config.log' for more details." >&5
17221 echo "$as_me: error: cannot compute sizeof (long), 77
17222 See \`config.log' for more details." >&2;}
17223 { (exit 1); exit 1; }; } ;;
17226 if test "$cross_compiling" = yes; then
17227 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17228 See \`config.log' for more details." >&5
17229 echo "$as_me: error: cannot run test program while cross compiling
17230 See \`config.log' for more details." >&2;}
17231 { (exit 1); exit 1; }; }
17233 cat >conftest.$ac_ext <<_ACEOF
17234 #line $LINENO "configure"
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 $ac_includes_default
17241 long longval () { return (long) (sizeof (long)); }
17242 unsigned long ulongval () { return (long) (sizeof (long)); }
17244 #include <stdlib.h>
17249 FILE *f = fopen ("conftest.val", "w");
17252 if (((long) (sizeof (long))) < 0)
17254 long i = longval ();
17255 if (i != ((long) (sizeof (long))))
17257 fprintf (f, "%ld\n", i);
17261 unsigned long i = ulongval ();
17262 if (i != ((long) (sizeof (long))))
17264 fprintf (f, "%lu\n", i);
17266 exit (ferror (f) || fclose (f) != 0);
17272 rm -f conftest$ac_exeext
17273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17274 (eval $ac_link) 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; }; then
17283 ac_cv_sizeof_long=`cat conftest.val`
17285 echo "$as_me: program exited with status $ac_status" >&5
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17289 ( exit $ac_status )
17290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17291 See \`config.log' for more details." >&5
17292 echo "$as_me: error: cannot compute sizeof (long), 77
17293 See \`config.log' for more details." >&2;}
17294 { (exit 1); exit 1; }; }
17296 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17301 ac_cv_sizeof_long=0
17304 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17305 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17306 cat >>confdefs.h <<_ACEOF
17307 #define SIZEOF_LONG $ac_cv_sizeof_long
17311 echo "$as_me:$LINENO: checking for char *" >&5
17312 echo $ECHO_N "checking for char *... $ECHO_C" >&6
17313 if test "${ac_cv_type_char_p+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17316 cat >conftest.$ac_ext <<_ACEOF
17317 #line $LINENO "configure"
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h. */
17323 $ac_includes_default
17329 if (sizeof (char *))
17335 rm -f conftest.$ac_objext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337 (eval $ac_compile) 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
17341 { ac_try='test -s conftest.$ac_objext'
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; }; then
17347 ac_cv_type_char_p=yes
17349 echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17352 ac_cv_type_char_p=no
17354 rm -f conftest.$ac_objext conftest.$ac_ext
17356 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
17357 echo "${ECHO_T}$ac_cv_type_char_p" >&6
17359 echo "$as_me:$LINENO: checking size of char *" >&5
17360 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
17361 if test "${ac_cv_sizeof_char_p+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 if test "$ac_cv_type_char_p" = yes; then
17365 # The cast to unsigned long works around a bug in the HP C Compiler
17366 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17367 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17368 # This bug is HP SR number 8606223364.
17369 if test "$cross_compiling" = yes; then
17370 # Depending upon the size, compute the lo and hi bounds.
17371 cat >conftest.$ac_ext <<_ACEOF
17372 #line $LINENO "configure"
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 $ac_includes_default
17382 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
17389 rm -f conftest.$ac_objext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17391 (eval $ac_compile) 2>&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -s conftest.$ac_objext'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; }; then
17403 cat >conftest.$ac_ext <<_ACEOF
17404 #line $LINENO "configure"
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 $ac_includes_default
17414 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
17421 rm -f conftest.$ac_objext
17422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17423 (eval $ac_compile) 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } &&
17427 { ac_try='test -s conftest.$ac_objext'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
17433 ac_hi=$ac_mid; break
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 ac_lo=`expr $ac_mid + 1`
17439 if test $ac_lo -le $ac_mid; then
17443 ac_mid=`expr 2 '*' $ac_mid + 1`
17445 rm -f conftest.$ac_objext conftest.$ac_ext
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 cat >conftest.$ac_ext <<_ACEOF
17452 #line $LINENO "configure"
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17458 $ac_includes_default
17462 static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
17469 rm -f conftest.$ac_objext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17471 (eval $ac_compile) 2>&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
17475 { ac_try='test -s conftest.$ac_objext'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17483 cat >conftest.$ac_ext <<_ACEOF
17484 #line $LINENO "configure"
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17490 $ac_includes_default
17494 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
17501 rm -f conftest.$ac_objext
17502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17503 (eval $ac_compile) 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try='test -s conftest.$ac_objext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ac_lo=$ac_mid; break
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 ac_hi=`expr '(' $ac_mid ')' - 1`
17519 if test $ac_mid -le $ac_hi; then
17523 ac_mid=`expr 2 '*' $ac_mid`
17525 rm -f conftest.$ac_objext conftest.$ac_ext
17528 echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17533 rm -f conftest.$ac_objext conftest.$ac_ext
17535 rm -f conftest.$ac_objext conftest.$ac_ext
17536 # Binary search between lo and hi bounds.
17537 while test "x$ac_lo" != "x$ac_hi"; do
17538 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17539 cat >conftest.$ac_ext <<_ACEOF
17540 #line $LINENO "configure"
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 $ac_includes_default
17550 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
17557 rm -f conftest.$ac_objext
17558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17559 (eval $ac_compile) 2>&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
17563 { ac_try='test -s conftest.$ac_objext'
17564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565 (eval $ac_try) 2>&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }; }; then
17571 echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 ac_lo=`expr '(' $ac_mid ')' + 1`
17576 rm -f conftest.$ac_objext conftest.$ac_ext
17579 ?*) ac_cv_sizeof_char_p=$ac_lo;;
17580 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
17581 See \`config.log' for more details." >&5
17582 echo "$as_me: error: cannot compute sizeof (char *), 77
17583 See \`config.log' for more details." >&2;}
17584 { (exit 1); exit 1; }; } ;;
17587 if test "$cross_compiling" = yes; then
17588 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17589 See \`config.log' for more details." >&5
17590 echo "$as_me: error: cannot run test program while cross compiling
17591 See \`config.log' for more details." >&2;}
17592 { (exit 1); exit 1; }; }
17594 cat >conftest.$ac_ext <<_ACEOF
17595 #line $LINENO "configure"
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17601 $ac_includes_default
17602 long longval () { return (long) (sizeof (char *)); }
17603 unsigned long ulongval () { return (long) (sizeof (char *)); }
17605 #include <stdlib.h>
17610 FILE *f = fopen ("conftest.val", "w");
17613 if (((long) (sizeof (char *))) < 0)
17615 long i = longval ();
17616 if (i != ((long) (sizeof (char *))))
17618 fprintf (f, "%ld\n", i);
17622 unsigned long i = ulongval ();
17623 if (i != ((long) (sizeof (char *))))
17625 fprintf (f, "%lu\n", i);
17627 exit (ferror (f) || fclose (f) != 0);
17633 rm -f conftest$ac_exeext
17634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17635 (eval $ac_link) 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 ac_cv_sizeof_char_p=`cat conftest.val`
17646 echo "$as_me: program exited with status $ac_status" >&5
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17650 ( exit $ac_status )
17651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
17652 See \`config.log' for more details." >&5
17653 echo "$as_me: error: cannot compute sizeof (char *), 77
17654 See \`config.log' for more details." >&2;}
17655 { (exit 1); exit 1; }; }
17657 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17662 ac_cv_sizeof_char_p=0
17665 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
17666 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
17667 cat >>confdefs.h <<_ACEOF
17668 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
17672 echo "$as_me:$LINENO: checking for double" >&5
17673 echo $ECHO_N "checking for double... $ECHO_C" >&6
17674 if test "${ac_cv_type_double+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17677 cat >conftest.$ac_ext <<_ACEOF
17678 #line $LINENO "configure"
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 $ac_includes_default
17690 if (sizeof (double))
17696 rm -f conftest.$ac_objext
17697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17698 (eval $ac_compile) 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
17702 { ac_try='test -s conftest.$ac_objext'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 ac_cv_type_double=yes
17710 echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17713 ac_cv_type_double=no
17715 rm -f conftest.$ac_objext conftest.$ac_ext
17717 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
17718 echo "${ECHO_T}$ac_cv_type_double" >&6
17720 echo "$as_me:$LINENO: checking size of double" >&5
17721 echo $ECHO_N "checking size of double... $ECHO_C" >&6
17722 if test "${ac_cv_sizeof_double+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 if test "$ac_cv_type_double" = yes; then
17726 # The cast to unsigned long works around a bug in the HP C Compiler
17727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17729 # This bug is HP SR number 8606223364.
17730 if test "$cross_compiling" = yes; then
17731 # Depending upon the size, compute the lo and hi bounds.
17732 cat >conftest.$ac_ext <<_ACEOF
17733 #line $LINENO "configure"
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 $ac_includes_default
17743 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
17750 rm -f conftest.$ac_objext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17752 (eval $ac_compile) 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } &&
17756 { ac_try='test -s conftest.$ac_objext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17764 cat >conftest.$ac_ext <<_ACEOF
17765 #line $LINENO "configure"
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17771 $ac_includes_default
17775 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
17782 rm -f conftest.$ac_objext
17783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17784 (eval $ac_compile) 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } &&
17788 { ac_try='test -s conftest.$ac_objext'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 ac_hi=$ac_mid; break
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799 ac_lo=`expr $ac_mid + 1`
17800 if test $ac_lo -le $ac_mid; then
17804 ac_mid=`expr 2 '*' $ac_mid + 1`
17806 rm -f conftest.$ac_objext conftest.$ac_ext
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 cat >conftest.$ac_ext <<_ACEOF
17813 #line $LINENO "configure"
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17819 $ac_includes_default
17823 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
17830 rm -f conftest.$ac_objext
17831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17832 (eval $ac_compile) 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
17836 { ac_try='test -s conftest.$ac_objext'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17844 cat >conftest.$ac_ext <<_ACEOF
17845 #line $LINENO "configure"
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17851 $ac_includes_default
17855 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
17862 rm -f conftest.$ac_objext
17863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17864 (eval $ac_compile) 2>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } &&
17868 { ac_try='test -s conftest.$ac_objext'
17869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870 (eval $ac_try) 2>&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; }; then
17874 ac_lo=$ac_mid; break
17876 echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17879 ac_hi=`expr '(' $ac_mid ')' - 1`
17880 if test $ac_mid -le $ac_hi; then
17884 ac_mid=`expr 2 '*' $ac_mid`
17886 rm -f conftest.$ac_objext conftest.$ac_ext
17889 echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17894 rm -f conftest.$ac_objext conftest.$ac_ext
17896 rm -f conftest.$ac_objext conftest.$ac_ext
17897 # Binary search between lo and hi bounds.
17898 while test "x$ac_lo" != "x$ac_hi"; do
17899 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17900 cat >conftest.$ac_ext <<_ACEOF
17901 #line $LINENO "configure"
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 $ac_includes_default
17911 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
17918 rm -f conftest.$ac_objext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920 (eval $ac_compile) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try='test -s conftest.$ac_objext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17932 echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17935 ac_lo=`expr '(' $ac_mid ')' + 1`
17937 rm -f conftest.$ac_objext conftest.$ac_ext
17940 ?*) ac_cv_sizeof_double=$ac_lo;;
17941 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
17942 See \`config.log' for more details." >&5
17943 echo "$as_me: error: cannot compute sizeof (double), 77
17944 See \`config.log' for more details." >&2;}
17945 { (exit 1); exit 1; }; } ;;
17948 if test "$cross_compiling" = yes; then
17949 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17950 See \`config.log' for more details." >&5
17951 echo "$as_me: error: cannot run test program while cross compiling
17952 See \`config.log' for more details." >&2;}
17953 { (exit 1); exit 1; }; }
17955 cat >conftest.$ac_ext <<_ACEOF
17956 #line $LINENO "configure"
17959 cat confdefs.h >>conftest.$ac_ext
17960 cat >>conftest.$ac_ext <<_ACEOF
17961 /* end confdefs.h. */
17962 $ac_includes_default
17963 long longval () { return (long) (sizeof (double)); }
17964 unsigned long ulongval () { return (long) (sizeof (double)); }
17966 #include <stdlib.h>
17971 FILE *f = fopen ("conftest.val", "w");
17974 if (((long) (sizeof (double))) < 0)
17976 long i = longval ();
17977 if (i != ((long) (sizeof (double))))
17979 fprintf (f, "%ld\n", i);
17983 unsigned long i = ulongval ();
17984 if (i != ((long) (sizeof (double))))
17986 fprintf (f, "%lu\n", i);
17988 exit (ferror (f) || fclose (f) != 0);
17994 rm -f conftest$ac_exeext
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 ac_cv_sizeof_double=`cat conftest.val`
18007 echo "$as_me: program exited with status $ac_status" >&5
18008 echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18011 ( exit $ac_status )
18012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
18013 See \`config.log' for more details." >&5
18014 echo "$as_me: error: cannot compute sizeof (double), 77
18015 See \`config.log' for more details." >&2;}
18016 { (exit 1); exit 1; }; }
18018 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18023 ac_cv_sizeof_double=0
18026 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
18027 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
18028 cat >>confdefs.h <<_ACEOF
18029 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
18033 echo "$as_me:$LINENO: checking for long long" >&5
18034 echo $ECHO_N "checking for long long... $ECHO_C" >&6
18035 if test "${ac_cv_type_long_long+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 cat >conftest.$ac_ext <<_ACEOF
18039 #line $LINENO "configure"
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18045 $ac_includes_default
18049 if ((long long *) 0)
18051 if (sizeof (long long))
18057 rm -f conftest.$ac_objext
18058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18059 (eval $ac_compile) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } &&
18063 { ac_try='test -s conftest.$ac_objext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_cv_type_long_long=yes
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 ac_cv_type_long_long=no
18076 rm -f conftest.$ac_objext conftest.$ac_ext
18078 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18079 echo "${ECHO_T}$ac_cv_type_long_long" >&6
18081 echo "$as_me:$LINENO: checking size of long long" >&5
18082 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18083 if test "${ac_cv_sizeof_long_long+set}" = set; then
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18086 if test "$ac_cv_type_long_long" = yes; then
18087 # The cast to unsigned long works around a bug in the HP C Compiler
18088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18090 # This bug is HP SR number 8606223364.
18091 if test "$cross_compiling" = yes; then
18092 # Depending upon the size, compute the lo and hi bounds.
18093 cat >conftest.$ac_ext <<_ACEOF
18094 #line $LINENO "configure"
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100 $ac_includes_default
18104 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18111 rm -f conftest.$ac_objext
18112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18113 (eval $ac_compile) 2>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
18117 { ac_try='test -s conftest.$ac_objext'
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; }; then
18125 cat >conftest.$ac_ext <<_ACEOF
18126 #line $LINENO "configure"
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18132 $ac_includes_default
18136 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18143 rm -f conftest.$ac_objext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145 (eval $ac_compile) 2>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 { ac_try='test -s conftest.$ac_objext'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 ac_hi=$ac_mid; break
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 ac_lo=`expr $ac_mid + 1`
18161 if test $ac_lo -le $ac_mid; then
18165 ac_mid=`expr 2 '*' $ac_mid + 1`
18167 rm -f conftest.$ac_objext conftest.$ac_ext
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 cat >conftest.$ac_ext <<_ACEOF
18174 #line $LINENO "configure"
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 $ac_includes_default
18184 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18191 rm -f conftest.$ac_objext
18192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18193 (eval $ac_compile) 2>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -s conftest.$ac_objext'
18198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199 (eval $ac_try) 2>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; }; then
18205 cat >conftest.$ac_ext <<_ACEOF
18206 #line $LINENO "configure"
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18212 $ac_includes_default
18216 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18223 rm -f conftest.$ac_objext
18224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18225 (eval $ac_compile) 2>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
18229 { ac_try='test -s conftest.$ac_objext'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 ac_lo=$ac_mid; break
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18240 ac_hi=`expr '(' $ac_mid ')' - 1`
18241 if test $ac_mid -le $ac_hi; then
18245 ac_mid=`expr 2 '*' $ac_mid`
18247 rm -f conftest.$ac_objext conftest.$ac_ext
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18255 rm -f conftest.$ac_objext conftest.$ac_ext
18257 rm -f conftest.$ac_objext conftest.$ac_ext
18258 # Binary search between lo and hi bounds.
18259 while test "x$ac_lo" != "x$ac_hi"; do
18260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18261 cat >conftest.$ac_ext <<_ACEOF
18262 #line $LINENO "configure"
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h. */
18268 $ac_includes_default
18272 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18279 rm -f conftest.$ac_objext
18280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18281 (eval $ac_compile) 2>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } &&
18285 { ac_try='test -s conftest.$ac_objext'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 ac_lo=`expr '(' $ac_mid ')' + 1`
18298 rm -f conftest.$ac_objext conftest.$ac_ext
18301 ?*) ac_cv_sizeof_long_long=$ac_lo;;
18302 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18303 See \`config.log' for more details." >&5
18304 echo "$as_me: error: cannot compute sizeof (long long), 77
18305 See \`config.log' for more details." >&2;}
18306 { (exit 1); exit 1; }; } ;;
18309 if test "$cross_compiling" = yes; then
18310 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18311 See \`config.log' for more details." >&5
18312 echo "$as_me: error: cannot run test program while cross compiling
18313 See \`config.log' for more details." >&2;}
18314 { (exit 1); exit 1; }; }
18316 cat >conftest.$ac_ext <<_ACEOF
18317 #line $LINENO "configure"
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h. */
18323 $ac_includes_default
18324 long longval () { return (long) (sizeof (long long)); }
18325 unsigned long ulongval () { return (long) (sizeof (long long)); }
18327 #include <stdlib.h>
18332 FILE *f = fopen ("conftest.val", "w");
18335 if (((long) (sizeof (long long))) < 0)
18337 long i = longval ();
18338 if (i != ((long) (sizeof (long long))))
18340 fprintf (f, "%ld\n", i);
18344 unsigned long i = ulongval ();
18345 if (i != ((long) (sizeof (long long))))
18347 fprintf (f, "%lu\n", i);
18349 exit (ferror (f) || fclose (f) != 0);
18355 rm -f conftest$ac_exeext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18357 (eval $ac_link) 2>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18366 ac_cv_sizeof_long_long=`cat conftest.val`
18368 echo "$as_me: program exited with status $ac_status" >&5
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18372 ( exit $ac_status )
18373 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18374 See \`config.log' for more details." >&5
18375 echo "$as_me: error: cannot compute sizeof (long long), 77
18376 See \`config.log' for more details." >&2;}
18377 { (exit 1); exit 1; }; }
18379 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18384 ac_cv_sizeof_long_long=0
18387 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18388 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18389 cat >>confdefs.h <<_ACEOF
18390 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18395 echo "$as_me:$LINENO: checking for u_int" >&5
18396 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
18397 if test "${ac_cv_type_u_int+set}" = set; then
18398 echo $ECHO_N "(cached) $ECHO_C" >&6
18400 cat >conftest.$ac_ext <<_ACEOF
18401 #line $LINENO "configure"
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18407 $ac_includes_default
18413 if (sizeof (u_int))
18419 rm -f conftest.$ac_objext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18421 (eval $ac_compile) 2>&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
18425 { ac_try='test -s conftest.$ac_objext'
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 ac_cv_type_u_int=yes
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18436 ac_cv_type_u_int=no
18438 rm -f conftest.$ac_objext conftest.$ac_ext
18440 echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
18441 echo "${ECHO_T}$ac_cv_type_u_int" >&6
18442 if test $ac_cv_type_u_int = yes; then
18446 cat >>confdefs.h <<_ACEOF
18447 #define u_int unsigned int
18452 echo "$as_me:$LINENO: checking for u_long" >&5
18453 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
18454 if test "${ac_cv_type_u_long+set}" = set; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
18457 cat >conftest.$ac_ext <<_ACEOF
18458 #line $LINENO "configure"
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 $ac_includes_default
18470 if (sizeof (u_long))
18476 rm -f conftest.$ac_objext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18478 (eval $ac_compile) 2>&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } &&
18482 { ac_try='test -s conftest.$ac_objext'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 ac_cv_type_u_long=yes
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 ac_cv_type_u_long=no
18495 rm -f conftest.$ac_objext conftest.$ac_ext
18497 echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
18498 echo "${ECHO_T}$ac_cv_type_u_long" >&6
18499 if test $ac_cv_type_u_long = yes; then
18503 cat >>confdefs.h <<_ACEOF
18504 #define u_long unsigned long
18511 if test "$ac_cv_sizeof_short" = 2; then
18512 echo "$as_me:$LINENO: checking for bits16_t" >&5
18513 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
18514 if test "${ac_cv_type_bits16_t+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 cat >conftest.$ac_ext <<_ACEOF
18518 #line $LINENO "configure"
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18524 $ac_includes_default
18528 if ((bits16_t *) 0)
18530 if (sizeof (bits16_t))
18536 rm -f conftest.$ac_objext
18537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18538 (eval $ac_compile) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -s conftest.$ac_objext'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548 ac_cv_type_bits16_t=yes
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18553 ac_cv_type_bits16_t=no
18555 rm -f conftest.$ac_objext conftest.$ac_ext
18557 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
18558 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
18559 if test $ac_cv_type_bits16_t = yes; then
18563 cat >>confdefs.h <<_ACEOF
18564 #define bits16_t short
18569 elif test "$ac_cv_sizeof_char" = 2; then
18570 echo "$as_me:$LINENO: checking for bits16_t" >&5
18571 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
18572 if test "${ac_cv_type_bits16_t+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 cat >conftest.$ac_ext <<_ACEOF
18576 #line $LINENO "configure"
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 $ac_includes_default
18586 if ((bits16_t *) 0)
18588 if (sizeof (bits16_t))
18594 rm -f conftest.$ac_objext
18595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18596 (eval $ac_compile) 2>&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } &&
18600 { ac_try='test -s conftest.$ac_objext'
18601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602 (eval $ac_try) 2>&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; }; then
18606 ac_cv_type_bits16_t=yes
18608 echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18611 ac_cv_type_bits16_t=no
18613 rm -f conftest.$ac_objext conftest.$ac_ext
18615 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
18616 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
18617 if test $ac_cv_type_bits16_t = yes; then
18621 cat >>confdefs.h <<_ACEOF
18622 #define bits16_t char
18628 echo "$as_me:$LINENO: checking for bits16_t" >&5
18629 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
18630 if test "${ac_cv_type_bits16_t+set}" = set; then
18631 echo $ECHO_N "(cached) $ECHO_C" >&6
18633 cat >conftest.$ac_ext <<_ACEOF
18634 #line $LINENO "configure"
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18640 $ac_includes_default
18644 if ((bits16_t *) 0)
18646 if (sizeof (bits16_t))
18652 rm -f conftest.$ac_objext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18654 (eval $ac_compile) 2>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } &&
18658 { ac_try='test -s conftest.$ac_objext'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; }; then
18664 ac_cv_type_bits16_t=yes
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18669 ac_cv_type_bits16_t=no
18671 rm -f conftest.$ac_objext conftest.$ac_ext
18673 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
18674 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
18675 if test $ac_cv_type_bits16_t = yes; then
18679 cat >>confdefs.h <<_ACEOF
18680 #define bits16_t short
18688 if test "$ac_cv_sizeof_short" = 2; then
18689 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
18690 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
18691 if test "${ac_cv_type_u_bits16_t+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18694 cat >conftest.$ac_ext <<_ACEOF
18695 #line $LINENO "configure"
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h. */
18701 $ac_includes_default
18705 if ((u_bits16_t *) 0)
18707 if (sizeof (u_bits16_t))
18713 rm -f conftest.$ac_objext
18714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18715 (eval $ac_compile) 2>&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } &&
18719 { ac_try='test -s conftest.$ac_objext'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18725 ac_cv_type_u_bits16_t=yes
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 ac_cv_type_u_bits16_t=no
18732 rm -f conftest.$ac_objext conftest.$ac_ext
18734 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
18735 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
18736 if test $ac_cv_type_u_bits16_t = yes; then
18740 cat >>confdefs.h <<_ACEOF
18741 #define u_bits16_t unsigned short
18746 elif test "$ac_cv_sizeof_char" = 2; then
18747 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
18748 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
18749 if test "${ac_cv_type_u_bits16_t+set}" = set; then
18750 echo $ECHO_N "(cached) $ECHO_C" >&6
18752 cat >conftest.$ac_ext <<_ACEOF
18753 #line $LINENO "configure"
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h. */
18759 $ac_includes_default
18763 if ((u_bits16_t *) 0)
18765 if (sizeof (u_bits16_t))
18771 rm -f conftest.$ac_objext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18773 (eval $ac_compile) 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } &&
18777 { ac_try='test -s conftest.$ac_objext'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_type_u_bits16_t=yes
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18788 ac_cv_type_u_bits16_t=no
18790 rm -f conftest.$ac_objext conftest.$ac_ext
18792 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
18793 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
18794 if test $ac_cv_type_u_bits16_t = yes; then
18798 cat >>confdefs.h <<_ACEOF
18799 #define u_bits16_t unsigned char
18805 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
18806 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
18807 if test "${ac_cv_type_u_bits16_t+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18810 cat >conftest.$ac_ext <<_ACEOF
18811 #line $LINENO "configure"
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18817 $ac_includes_default
18821 if ((u_bits16_t *) 0)
18823 if (sizeof (u_bits16_t))
18829 rm -f conftest.$ac_objext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18831 (eval $ac_compile) 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } &&
18835 { ac_try='test -s conftest.$ac_objext'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 ac_cv_type_u_bits16_t=yes
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_cv_type_u_bits16_t=no
18848 rm -f conftest.$ac_objext conftest.$ac_ext
18850 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
18851 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
18852 if test $ac_cv_type_u_bits16_t = yes; then
18856 cat >>confdefs.h <<_ACEOF
18857 #define u_bits16_t unsigned short
18865 if test "$ac_cv_sizeof_int" = 4; then
18866 echo "$as_me:$LINENO: checking for bits32_t" >&5
18867 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
18868 if test "${ac_cv_type_bits32_t+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 cat >conftest.$ac_ext <<_ACEOF
18872 #line $LINENO "configure"
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 $ac_includes_default
18882 if ((bits32_t *) 0)
18884 if (sizeof (bits32_t))
18890 rm -f conftest.$ac_objext
18891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892 (eval $ac_compile) 2>&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } &&
18896 { ac_try='test -s conftest.$ac_objext'
18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18902 ac_cv_type_bits32_t=yes
18904 echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18907 ac_cv_type_bits32_t=no
18909 rm -f conftest.$ac_objext conftest.$ac_ext
18911 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
18912 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
18913 if test $ac_cv_type_bits32_t = yes; then
18917 cat >>confdefs.h <<_ACEOF
18918 #define bits32_t int
18923 elif test "$ac_cv_sizeof_long" = 4; then
18924 echo "$as_me:$LINENO: checking for bits32_t" >&5
18925 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
18926 if test "${ac_cv_type_bits32_t+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 cat >conftest.$ac_ext <<_ACEOF
18930 #line $LINENO "configure"
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 $ac_includes_default
18940 if ((bits32_t *) 0)
18942 if (sizeof (bits32_t))
18948 rm -f conftest.$ac_objext
18949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18950 (eval $ac_compile) 2>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try='test -s conftest.$ac_objext'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_cv_type_bits32_t=yes
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 ac_cv_type_bits32_t=no
18967 rm -f conftest.$ac_objext conftest.$ac_ext
18969 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
18970 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
18971 if test $ac_cv_type_bits32_t = yes; then
18975 cat >>confdefs.h <<_ACEOF
18976 #define bits32_t long
18982 echo "$as_me:$LINENO: checking for bits32_t" >&5
18983 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
18984 if test "${ac_cv_type_bits32_t+set}" = set; then
18985 echo $ECHO_N "(cached) $ECHO_C" >&6
18987 cat >conftest.$ac_ext <<_ACEOF
18988 #line $LINENO "configure"
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 $ac_includes_default
18998 if ((bits32_t *) 0)
19000 if (sizeof (bits32_t))
19006 rm -f conftest.$ac_objext
19007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19008 (eval $ac_compile) 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); } &&
19012 { ac_try='test -s conftest.$ac_objext'
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; }; then
19018 ac_cv_type_bits32_t=yes
19020 echo "$as_me: failed program was:" >&5
19021 sed 's/^/| /' conftest.$ac_ext >&5
19023 ac_cv_type_bits32_t=no
19025 rm -f conftest.$ac_objext conftest.$ac_ext
19027 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
19028 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
19029 if test $ac_cv_type_bits32_t = yes; then
19033 cat >>confdefs.h <<_ACEOF
19034 #define bits32_t int
19042 if test "$ac_cv_sizeof_int" = 4; then
19043 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
19044 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
19045 if test "${ac_cv_type_u_bits32_t+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 cat >conftest.$ac_ext <<_ACEOF
19049 #line $LINENO "configure"
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055 $ac_includes_default
19059 if ((u_bits32_t *) 0)
19061 if (sizeof (u_bits32_t))
19067 rm -f conftest.$ac_objext
19068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19069 (eval $ac_compile) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
19073 { ac_try='test -s conftest.$ac_objext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_type_u_bits32_t=yes
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 ac_cv_type_u_bits32_t=no
19086 rm -f conftest.$ac_objext conftest.$ac_ext
19088 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
19089 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
19090 if test $ac_cv_type_u_bits32_t = yes; then
19094 cat >>confdefs.h <<_ACEOF
19095 #define u_bits32_t unsigned int
19100 elif test "$ac_cv_sizeof_long" = 4; then
19101 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
19102 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
19103 if test "${ac_cv_type_u_bits32_t+set}" = set; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 cat >conftest.$ac_ext <<_ACEOF
19107 #line $LINENO "configure"
19110 cat confdefs.h >>conftest.$ac_ext
19111 cat >>conftest.$ac_ext <<_ACEOF
19112 /* end confdefs.h. */
19113 $ac_includes_default
19117 if ((u_bits32_t *) 0)
19119 if (sizeof (u_bits32_t))
19125 rm -f conftest.$ac_objext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19127 (eval $ac_compile) 2>&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } &&
19131 { ac_try='test -s conftest.$ac_objext'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 ac_cv_type_u_bits32_t=yes
19139 echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19142 ac_cv_type_u_bits32_t=no
19144 rm -f conftest.$ac_objext conftest.$ac_ext
19146 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
19147 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
19148 if test $ac_cv_type_u_bits32_t = yes; then
19152 cat >>confdefs.h <<_ACEOF
19153 #define u_bits32_t unsigned long
19159 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
19160 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
19161 if test "${ac_cv_type_u_bits32_t+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 cat >conftest.$ac_ext <<_ACEOF
19165 #line $LINENO "configure"
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19171 $ac_includes_default
19175 if ((u_bits32_t *) 0)
19177 if (sizeof (u_bits32_t))
19183 rm -f conftest.$ac_objext
19184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19185 (eval $ac_compile) 2>&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } &&
19189 { ac_try='test -s conftest.$ac_objext'
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_cv_type_u_bits32_t=yes
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 ac_cv_type_u_bits32_t=no
19202 rm -f conftest.$ac_objext conftest.$ac_ext
19204 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
19205 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
19206 if test $ac_cv_type_u_bits32_t = yes; then
19210 cat >>confdefs.h <<_ACEOF
19211 #define u_bits32_t unsigned int
19219 if test "$ac_cv_sizeof_char_p" = 8; then
19220 echo "$as_me:$LINENO: checking for bits64_t" >&5
19221 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
19222 if test "${ac_cv_type_bits64_t+set}" = set; then
19223 echo $ECHO_N "(cached) $ECHO_C" >&6
19225 cat >conftest.$ac_ext <<_ACEOF
19226 #line $LINENO "configure"
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 $ac_includes_default
19236 if ((bits64_t *) 0)
19238 if (sizeof (bits64_t))
19244 rm -f conftest.$ac_objext
19245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19246 (eval $ac_compile) 2>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try='test -s conftest.$ac_objext'
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; }; then
19256 ac_cv_type_bits64_t=yes
19258 echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19261 ac_cv_type_bits64_t=no
19263 rm -f conftest.$ac_objext conftest.$ac_ext
19265 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
19266 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
19267 if test $ac_cv_type_bits64_t = yes; then
19271 cat >>confdefs.h <<_ACEOF
19272 #define bits64_t char *
19277 elif test "$ac_cv_sizeof_double" = 8; then
19278 echo "$as_me:$LINENO: checking for bits64_t" >&5
19279 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
19280 if test "${ac_cv_type_bits64_t+set}" = set; then
19281 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 cat >conftest.$ac_ext <<_ACEOF
19284 #line $LINENO "configure"
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 $ac_includes_default
19294 if ((bits64_t *) 0)
19296 if (sizeof (bits64_t))
19302 rm -f conftest.$ac_objext
19303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19304 (eval $ac_compile) 2>&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } &&
19308 { ac_try='test -s conftest.$ac_objext'
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; }; then
19314 ac_cv_type_bits64_t=yes
19316 echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19319 ac_cv_type_bits64_t=no
19321 rm -f conftest.$ac_objext conftest.$ac_ext
19323 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
19324 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
19325 if test $ac_cv_type_bits64_t = yes; then
19329 cat >>confdefs.h <<_ACEOF
19330 #define bits64_t double
19335 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
19336 echo "$as_me:$LINENO: checking for bits64_t" >&5
19337 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
19338 if test "${ac_cv_type_bits64_t+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19341 cat >conftest.$ac_ext <<_ACEOF
19342 #line $LINENO "configure"
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19348 $ac_includes_default
19352 if ((bits64_t *) 0)
19354 if (sizeof (bits64_t))
19360 rm -f conftest.$ac_objext
19361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19362 (eval $ac_compile) 2>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -s conftest.$ac_objext'
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
19372 ac_cv_type_bits64_t=yes
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_cv_type_bits64_t=no
19379 rm -f conftest.$ac_objext conftest.$ac_ext
19381 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
19382 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
19383 if test $ac_cv_type_bits64_t = yes; then
19387 cat >>confdefs.h <<_ACEOF
19388 #define bits64_t long long
19393 elif test "$ac_cv_sizeof_long" = 8; then
19394 echo "$as_me:$LINENO: checking for bits64_t" >&5
19395 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
19396 if test "${ac_cv_type_bits64_t+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 cat >conftest.$ac_ext <<_ACEOF
19400 #line $LINENO "configure"
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19406 $ac_includes_default
19410 if ((bits64_t *) 0)
19412 if (sizeof (bits64_t))
19418 rm -f conftest.$ac_objext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19420 (eval $ac_compile) 2>&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try='test -s conftest.$ac_objext'
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; }; then
19430 ac_cv_type_bits64_t=yes
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 ac_cv_type_bits64_t=no
19437 rm -f conftest.$ac_objext conftest.$ac_ext
19439 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
19440 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
19441 if test $ac_cv_type_bits64_t = yes; then
19445 cat >>confdefs.h <<_ACEOF
19446 #define bits64_t long
19452 echo "$as_me:$LINENO: checking for bits64_t" >&5
19453 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
19454 if test "${ac_cv_type_bits64_t+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 cat >conftest.$ac_ext <<_ACEOF
19458 #line $LINENO "configure"
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 $ac_includes_default
19468 if ((bits64_t *) 0)
19470 if (sizeof (bits64_t))
19476 rm -f conftest.$ac_objext
19477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19478 (eval $ac_compile) 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } &&
19482 { ac_try='test -s conftest.$ac_objext'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 ac_cv_type_bits64_t=yes
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19493 ac_cv_type_bits64_t=no
19495 rm -f conftest.$ac_objext conftest.$ac_ext
19497 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
19498 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
19499 if test $ac_cv_type_bits64_t = yes; then
19503 cat >>confdefs.h <<_ACEOF
19504 #define bits64_t double
19513 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
19514 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19515 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19516 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19517 echo $ECHO_N "(cached) $ECHO_C" >&6
19519 cat >conftest.$ac_ext <<_ACEOF
19520 #line $LINENO "configure"
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19526 $ac_includes_default
19530 if ((ptrdiff_t *) 0)
19532 if (sizeof (ptrdiff_t))
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } &&
19544 { ac_try='test -s conftest.$ac_objext'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
19550 ac_cv_type_ptrdiff_t=yes
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 ac_cv_type_ptrdiff_t=no
19557 rm -f conftest.$ac_objext conftest.$ac_ext
19559 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19560 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19561 if test $ac_cv_type_ptrdiff_t = yes; then
19565 cat >>confdefs.h <<_ACEOF
19566 #define ptrdiff_t int
19571 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
19572 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19573 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19574 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 cat >conftest.$ac_ext <<_ACEOF
19578 #line $LINENO "configure"
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 $ac_includes_default
19588 if ((ptrdiff_t *) 0)
19590 if (sizeof (ptrdiff_t))
19596 rm -f conftest.$ac_objext
19597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598 (eval $ac_compile) 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 ac_cv_type_ptrdiff_t=yes
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19613 ac_cv_type_ptrdiff_t=no
19615 rm -f conftest.$ac_objext conftest.$ac_ext
19617 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19618 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19619 if test $ac_cv_type_ptrdiff_t = yes; then
19623 cat >>confdefs.h <<_ACEOF
19624 #define ptrdiff_t long
19629 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
19630 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19631 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19632 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19633 echo $ECHO_N "(cached) $ECHO_C" >&6
19635 cat >conftest.$ac_ext <<_ACEOF
19636 #line $LINENO "configure"
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19642 $ac_includes_default
19646 if ((ptrdiff_t *) 0)
19648 if (sizeof (ptrdiff_t))
19654 rm -f conftest.$ac_objext
19655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19656 (eval $ac_compile) 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
19660 { ac_try='test -s conftest.$ac_objext'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 ac_cv_type_ptrdiff_t=yes
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19671 ac_cv_type_ptrdiff_t=no
19673 rm -f conftest.$ac_objext conftest.$ac_ext
19675 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19676 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19677 if test $ac_cv_type_ptrdiff_t = yes; then
19681 cat >>confdefs.h <<_ACEOF
19682 #define ptrdiff_t long long
19688 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19689 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19690 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19693 cat >conftest.$ac_ext <<_ACEOF
19694 #line $LINENO "configure"
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19700 $ac_includes_default
19704 if ((ptrdiff_t *) 0)
19706 if (sizeof (ptrdiff_t))
19712 rm -f conftest.$ac_objext
19713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19714 (eval $ac_compile) 2>&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
19718 { ac_try='test -s conftest.$ac_objext'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19724 ac_cv_type_ptrdiff_t=yes
19726 echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19729 ac_cv_type_ptrdiff_t=no
19731 rm -f conftest.$ac_objext conftest.$ac_ext
19733 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19734 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19735 if test $ac_cv_type_ptrdiff_t = yes; then
19739 cat >>confdefs.h <<_ACEOF
19740 #define ptrdiff_t int
19748 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19749 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19750 if test "${ac_cv_header_stat_broken+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 cat >conftest.$ac_ext <<_ACEOF
19754 #line $LINENO "configure"
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19760 #include <sys/types.h>
19761 #include <sys/stat.h>
19763 #if defined(S_ISBLK) && defined(S_IFDIR)
19764 # if S_ISBLK (S_IFDIR)
19769 #if defined(S_ISBLK) && defined(S_IFCHR)
19770 # if S_ISBLK (S_IFCHR)
19775 #if defined(S_ISLNK) && defined(S_IFREG)
19776 # if S_ISLNK (S_IFREG)
19781 #if defined(S_ISSOCK) && defined(S_IFREG)
19782 # if S_ISSOCK (S_IFREG)
19788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19789 $EGREP "You lose" >/dev/null 2>&1; then
19790 ac_cv_header_stat_broken=yes
19792 ac_cv_header_stat_broken=no
19797 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19798 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19799 if test $ac_cv_header_stat_broken = yes; then
19801 cat >>confdefs.h <<\_ACEOF
19802 #define STAT_MACROS_BROKEN 1
19808 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
19809 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
19810 if test "${ac_cv_sys_interpreter+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
19818 if test $? -ne 69; then
19819 ac_cv_sys_interpreter=yes
19821 ac_cv_sys_interpreter=no
19825 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
19826 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
19827 interpval=$ac_cv_sys_interpreter
19829 if test $ac_cv_sys_interpreter = yes; then
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_HASH_BANG_EXEC 1
19836 if test "$ac_cv_func_lstat" = "no"; then
19837 echo "$as_me:$LINENO: checking for lstat" >&5
19838 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
19839 if test "${bash_cv_func_lstat+set}" = set; then
19840 echo $ECHO_N "(cached) $ECHO_C" >&6
19842 cat >conftest.$ac_ext <<_ACEOF
19843 #line $LINENO "configure"
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19850 #include <sys/types.h>
19851 #include <sys/stat.h>
19856 lstat(".",(struct stat *)0);
19861 rm -f conftest.$ac_objext conftest$ac_exeext
19862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19863 (eval $ac_link) 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -s conftest$ac_exeext'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 bash_cv_func_lstat=yes
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19878 bash_cv_func_lstat=no
19880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19882 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
19883 echo "${ECHO_T}$bash_cv_func_lstat" >&6
19884 if test $bash_cv_func_lstat = yes; then
19885 cat >>confdefs.h <<\_ACEOF
19886 #define HAVE_LSTAT 1
19894 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
19895 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
19896 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 if test "$cross_compiling" = yes; then
19900 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
19901 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
19902 bash_cv_func_ctype_nonascii=no
19905 cat >conftest.$ac_ext <<_ACEOF
19906 #line $LINENO "configure"
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19913 #ifdef HAVE_LOCALE_H
19914 #include <locale.h>
19927 #ifdef HAVE_SETLOCALE
19928 /* We take a shot here. If that locale is not known, try the
19929 system default. We try this one because '\342' (226) is
19930 known to be a printable character in that locale. */
19931 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
19932 if (deflocale == 0)
19933 deflocale = setlocale(LC_ALL, "");
19940 exit (r1 == 0 || r2 == 0);
19944 rm -f conftest$ac_exeext
19945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19946 (eval $ac_link) 2>&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; }; then
19955 bash_cv_func_ctype_nonascii=yes
19957 echo "$as_me: program exited with status $ac_status" >&5
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19961 ( exit $ac_status )
19962 bash_cv_func_ctype_nonascii=no
19964 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19968 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
19969 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
19970 if test $bash_cv_func_ctype_nonascii = yes; then
19971 cat >>confdefs.h <<\_ACEOF
19972 #define CTYPE_NON_ASCII 1
19977 echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
19978 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
19979 if test "${bash_cv_dup2_broken+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 if test "$cross_compiling" = yes; then
19983 { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
19984 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
19985 bash_cv_dup2_broken=no
19987 cat >conftest.$ac_ext <<_ACEOF
19988 #line $LINENO "configure"
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19995 #include <sys/types.h>
20000 fd1 = open("/dev/null", 2);
20001 if (fcntl(fd1, 2, 1) < 0)
20003 fd2 = dup2(fd1, 1);
20006 fl = fcntl(fd2, 1, 0);
20007 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
20012 rm -f conftest$ac_exeext
20013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20014 (eval $ac_link) 2>&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019 (eval $ac_try) 2>&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; }; then
20023 bash_cv_dup2_broken=yes
20025 echo "$as_me: program exited with status $ac_status" >&5
20026 echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20029 ( exit $ac_status )
20030 bash_cv_dup2_broken=no
20032 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20037 echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
20038 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
20039 if test $bash_cv_dup2_broken = yes; then
20040 cat >>confdefs.h <<\_ACEOF
20041 #define DUP2_BROKEN 1
20047 echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
20048 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
20049 if test "${bash_cv_pgrp_pipe+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 if test "$cross_compiling" = yes; then
20053 { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
20054 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
20055 bash_cv_pgrp_pipe=no
20057 cat >conftest.$ac_ext <<_ACEOF
20058 #line $LINENO "configure"
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20065 #ifdef HAVE_UNISTD_H
20066 # include <unistd.h>
20070 # ifdef GETPGRP_VOID
20071 # define getpgID() getpgrp()
20073 # define getpgID() getpgrp(0)
20074 # define setpgid(x,y) setpgrp(x,y)
20076 int pid1, pid2, fds[2];
20080 switch (pid1 = fork()) {
20084 setpgid(0, getpid());
20087 setpgid(pid1, pid1);
20089 sleep(2); /* let first child die */
20094 switch (pid2 = fork()) {
20099 ok = getpgID() == pid1;
20100 write(fds[1], &ok, 1);
20103 setpgid(pid2, pid1);
20106 if (read(fds[0], &ok, 1) != 1)
20114 rm -f conftest$ac_exeext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116 (eval $ac_link) 2>&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20125 bash_cv_pgrp_pipe=no
20127 echo "$as_me: program exited with status $ac_status" >&5
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20131 ( exit $ac_status )
20132 bash_cv_pgrp_pipe=yes
20134 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20139 echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
20140 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
20141 if test $bash_cv_pgrp_pipe = yes; then
20142 cat >>confdefs.h <<\_ACEOF
20143 #define PGRP_PIPE 1
20149 echo "$as_me:$LINENO: checking for type of signal functions" >&5
20150 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
20151 if test "${bash_cv_signal_vintage+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 cat >conftest.$ac_ext <<_ACEOF
20156 #line $LINENO "configure"
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20162 #include <signal.h>
20168 struct sigaction sa;
20169 sigemptyset(&ss); sigsuspend(&ss);
20170 sigaction(SIGINT, &sa, (struct sigaction *) 0);
20171 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20179 (eval $ac_link) 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
20183 { ac_try='test -s conftest$ac_exeext'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
20189 bash_cv_signal_vintage=posix
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20195 cat >conftest.$ac_ext <<_ACEOF
20196 #line $LINENO "configure"
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20202 #include <signal.h>
20207 int mask = sigmask(SIGINT);
20208 sigsetmask(mask); sigblock(mask); sigpause(mask);
20214 rm -f conftest.$ac_objext conftest$ac_exeext
20215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20216 (eval $ac_link) 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } &&
20220 { ac_try='test -s conftest$ac_exeext'
20221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222 (eval $ac_try) 2>&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; }; then
20226 bash_cv_signal_vintage=4.2bsd
20228 echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20232 cat >conftest.$ac_ext <<_ACEOF
20233 #line $LINENO "configure"
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20240 #include <signal.h>
20241 RETSIGTYPE foo() { }
20246 int mask = sigmask(SIGINT);
20247 sigset(SIGINT, foo); sigrelse(SIGINT);
20248 sighold(SIGINT); sigpause(SIGINT);
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20256 (eval $ac_link) 2>&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } &&
20260 { ac_try='test -s conftest$ac_exeext'
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; }; then
20266 bash_cv_signal_vintage=svr3
20268 echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20271 bash_cv_signal_vintage=v7
20274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20284 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
20285 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
20286 if test "$bash_cv_signal_vintage" = posix; then
20287 cat >>confdefs.h <<\_ACEOF
20288 #define HAVE_POSIX_SIGNALS 1
20291 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
20292 cat >>confdefs.h <<\_ACEOF
20293 #define HAVE_BSD_SIGNALS 1
20296 elif test "$bash_cv_signal_vintage" = svr3; then
20297 cat >>confdefs.h <<\_ACEOF
20298 #define HAVE_USG_SIGHOLD 1
20304 echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
20305 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
20306 if test "${bash_cv_sys_errlist+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20309 cat >conftest.$ac_ext <<_ACEOF
20310 #line $LINENO "configure"
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20320 extern char *sys_errlist[];
20321 extern int sys_nerr;
20322 char *msg = sys_errlist[sys_nerr - 1];
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20329 (eval $ac_link) 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } &&
20333 { ac_try='test -s conftest$ac_exeext'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 bash_cv_sys_errlist=yes
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 bash_cv_sys_errlist=no
20346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20348 echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
20349 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
20350 if test $bash_cv_sys_errlist = yes; then
20351 cat >>confdefs.h <<\_ACEOF
20352 #define HAVE_SYS_ERRLIST 1
20358 echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
20359 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
20360 if test "${bash_cv_sys_siglist+set}" = set; then
20361 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 if test "$cross_compiling" = yes; then
20364 { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
20365 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
20366 bash_cv_sys_siglist=no
20368 cat >conftest.$ac_ext <<_ACEOF
20369 #line $LINENO "configure"
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20376 #include <sys/types.h>
20377 #include <signal.h>
20378 #ifdef HAVE_UNISTD_H
20379 #include <unistd.h>
20381 #ifndef SYS_SIGLIST_DECLARED
20382 extern char *sys_siglist[];
20386 char *msg = sys_siglist[2];
20390 rm -f conftest$ac_exeext
20391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20392 (eval $ac_link) 2>&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
20401 bash_cv_sys_siglist=yes
20403 echo "$as_me: program exited with status $ac_status" >&5
20404 echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20407 ( exit $ac_status )
20408 bash_cv_sys_siglist=no
20410 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20414 echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
20415 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
20416 if test $bash_cv_sys_siglist = yes; then
20417 cat >>confdefs.h <<\_ACEOF
20418 #define HAVE_SYS_SIGLIST 1
20423 echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
20424 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
20425 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20428 cat >conftest.$ac_ext <<_ACEOF
20429 #line $LINENO "configure"
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20436 #include <sys/types.h>
20437 #include <signal.h>
20438 #ifdef HAVE_UNISTD_H
20439 #include <unistd.h>
20444 char *msg = _sys_siglist[2];
20449 rm -f conftest.$ac_objext
20450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20451 (eval $ac_compile) 2>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } &&
20455 { ac_try='test -s conftest.$ac_objext'
20456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457 (eval $ac_try) 2>&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; }; then
20461 bash_cv_decl_under_sys_siglist=yes
20463 echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20466 bash_cv_decl_under_sys_siglist=no
20468 rm -f conftest.$ac_objext conftest.$ac_ext
20470 echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
20471 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
20472 if test $bash_cv_decl_under_sys_siglist = yes; then
20473 cat >>confdefs.h <<\_ACEOF
20474 #define UNDER_SYS_SIGLIST_DECLARED 1
20480 echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
20481 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
20482 if test "${bash_cv_under_sys_siglist+set}" = set; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20485 if test "$cross_compiling" = yes; then
20486 { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
20487 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
20488 bash_cv_under_sys_siglist=no
20490 cat >conftest.$ac_ext <<_ACEOF
20491 #line $LINENO "configure"
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20498 #include <sys/types.h>
20499 #include <signal.h>
20500 #ifdef HAVE_UNISTD_H
20501 #include <unistd.h>
20503 #ifndef UNDER_SYS_SIGLIST_DECLARED
20504 extern char *_sys_siglist[];
20508 char *msg = (char *)_sys_siglist[2];
20512 rm -f conftest$ac_exeext
20513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20514 (eval $ac_link) 2>&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519 (eval $ac_try) 2>&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; }; then
20523 bash_cv_under_sys_siglist=yes
20525 echo "$as_me: program exited with status $ac_status" >&5
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20529 ( exit $ac_status )
20530 bash_cv_under_sys_siglist=no
20532 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20536 echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
20537 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
20538 if test $bash_cv_under_sys_siglist = yes; then
20539 cat >>confdefs.h <<\_ACEOF
20540 #define HAVE_UNDER_SYS_SIGLIST 1
20546 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
20547 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
20548 if test "${bash_cv_void_sighandler+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 cat >conftest.$ac_ext <<_ACEOF
20552 #line $LINENO "configure"
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 #include <sys/types.h>
20559 #include <signal.h>
20566 void (*signal ()) ();
20575 rm -f conftest.$ac_objext
20576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20577 (eval $ac_compile) 2>&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -s conftest.$ac_objext'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
20587 bash_cv_void_sighandler=yes
20589 echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20592 bash_cv_void_sighandler=no
20594 rm -f conftest.$ac_objext conftest.$ac_ext
20596 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
20597 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
20598 if test $bash_cv_void_sighandler = yes; then
20599 cat >>confdefs.h <<\_ACEOF
20600 #define VOID_SIGHANDLER 1
20607 echo "$as_me:$LINENO: checking for clock_t" >&5
20608 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
20609 if test "${bash_cv_type_clock_t+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 cat >conftest.$ac_ext <<_ACEOF
20613 #line $LINENO "configure"
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20619 #include <sys/types.h>
20621 #include <stdlib.h>
20622 #include <stddef.h>
20624 #if HAVE_INTTYPES_H
20625 #include <inttypes.h>
20627 #include <sys/times.h>
20630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20631 $EGREP "clock_t" >/dev/null 2>&1; then
20632 bash_cv_type_clock_t=yes
20634 bash_cv_type_clock_t=no
20640 echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
20641 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
20643 if test $bash_cv_type_clock_t = no; then
20644 cat >>confdefs.h <<_ACEOF
20645 #define clock_t long
20652 echo "$as_me:$LINENO: checking for sigset_t" >&5
20653 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
20654 if test "${bash_cv_type_sigset_t+set}" = set; then
20655 echo $ECHO_N "(cached) $ECHO_C" >&6
20657 cat >conftest.$ac_ext <<_ACEOF
20658 #line $LINENO "configure"
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20664 #include <sys/types.h>
20666 #include <stdlib.h>
20667 #include <stddef.h>
20669 #if HAVE_INTTYPES_H
20670 #include <inttypes.h>
20672 #include <signal.h>
20675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20676 $EGREP "sigset_t" >/dev/null 2>&1; then
20677 bash_cv_type_sigset_t=yes
20679 bash_cv_type_sigset_t=no
20685 echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
20686 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
20688 if test $bash_cv_type_sigset_t = no; then
20689 cat >>confdefs.h <<_ACEOF
20690 #define sigset_t int
20697 echo "$as_me:$LINENO: checking for quad_t" >&5
20698 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
20699 if test "${bash_cv_type_quad_t+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20702 cat >conftest.$ac_ext <<_ACEOF
20703 #line $LINENO "configure"
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20709 #include <sys/types.h>
20711 #include <stdlib.h>
20712 #include <stddef.h>
20714 #if HAVE_INTTYPES_H
20715 #include <inttypes.h>
20720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20721 $EGREP "quad_t" >/dev/null 2>&1; then
20722 bash_cv_type_quad_t=yes
20724 bash_cv_type_quad_t=no
20730 echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
20731 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
20732 if test $bash_cv_type_quad_t = yes; then
20733 cat >>confdefs.h <<\_ACEOF
20734 #define HAVE_QUAD_T 1
20738 if test $bash_cv_type_quad_t = no; then
20739 cat >>confdefs.h <<_ACEOF
20740 #define quad_t long
20747 echo "$as_me:$LINENO: checking for intmax_t" >&5
20748 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
20749 if test "${bash_cv_type_intmax_t+set}" = set; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
20752 cat >conftest.$ac_ext <<_ACEOF
20753 #line $LINENO "configure"
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h. */
20759 #include <sys/types.h>
20761 #include <stdlib.h>
20762 #include <stddef.h>
20764 #if HAVE_INTTYPES_H
20765 #include <inttypes.h>
20770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20771 $EGREP "intmax_t" >/dev/null 2>&1; then
20772 bash_cv_type_intmax_t=yes
20774 bash_cv_type_intmax_t=no
20780 echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
20781 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
20783 if test $bash_cv_type_intmax_t = no; then
20784 cat >>confdefs.h <<_ACEOF
20785 #define intmax_t $bash_cv_type_long_long
20792 echo "$as_me:$LINENO: checking for uintmax_t" >&5
20793 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
20794 if test "${bash_cv_type_uintmax_t+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20797 cat >conftest.$ac_ext <<_ACEOF
20798 #line $LINENO "configure"
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 #include <sys/types.h>
20806 #include <stdlib.h>
20807 #include <stddef.h>
20809 #if HAVE_INTTYPES_H
20810 #include <inttypes.h>
20815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20816 $EGREP "uintmax_t" >/dev/null 2>&1; then
20817 bash_cv_type_uintmax_t=yes
20819 bash_cv_type_uintmax_t=no
20825 echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
20826 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
20828 if test $bash_cv_type_uintmax_t = no; then
20829 cat >>confdefs.h <<_ACEOF
20830 #define uintmax_t $bash_cv_type_unsigned_long_long
20835 if test "$ac_cv_header_sys_socket_h" = "yes"; then
20838 echo "$as_me:$LINENO: checking for socklen_t" >&5
20839 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20840 if test "${bash_cv_type_socklen_t+set}" = set; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 cat >conftest.$ac_ext <<_ACEOF
20844 #line $LINENO "configure"
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 #include <sys/types.h>
20852 #include <stdlib.h>
20853 #include <stddef.h>
20855 #if HAVE_INTTYPES_H
20856 #include <inttypes.h>
20858 #include <sys/socket.h>
20861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20862 $EGREP "socklen_t" >/dev/null 2>&1; then
20863 bash_cv_type_socklen_t=yes
20865 bash_cv_type_socklen_t=no
20871 echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
20872 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
20873 if test $bash_cv_type_socklen_t = yes; then
20874 cat >>confdefs.h <<\_ACEOF
20875 #define HAVE_SOCKLEN_T 1
20879 if test $bash_cv_type_socklen_t = no; then
20880 cat >>confdefs.h <<_ACEOF
20881 #define socklen_t int
20887 echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
20888 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
20889 if test "${bash_cv_type_rlimit+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20892 cat >conftest.$ac_ext <<_ACEOF
20893 #line $LINENO "configure"
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 #include <sys/types.h>
20900 #include <sys/resource.h>
20909 rm -f conftest.$ac_objext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20911 (eval $ac_compile) 2>&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -s conftest.$ac_objext'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; }; then
20921 bash_cv_type_rlimit=rlim_t
20923 echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20927 if test "$cross_compiling" = yes; then
20928 { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
20929 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
20930 bash_cv_type_rlimit=long
20932 cat >conftest.$ac_ext <<_ACEOF
20933 #line $LINENO "configure"
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20940 #include <sys/types.h>
20941 #include <sys/time.h>
20942 #include <sys/resource.h>
20947 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
20953 rm -f conftest$ac_exeext
20954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20955 (eval $ac_link) 2>&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 bash_cv_type_rlimit=quad_t
20966 echo "$as_me: program exited with status $ac_status" >&5
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20970 ( exit $ac_status )
20971 bash_cv_type_rlimit=long
20973 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20976 rm -f conftest.$ac_objext conftest.$ac_ext
20980 echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
20981 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
20982 if test $bash_cv_type_rlimit = quad_t; then
20983 cat >>confdefs.h <<\_ACEOF
20984 #define RLIMTYPE quad_t
20987 elif test $bash_cv_type_rlimit = rlim_t; then
20988 cat >>confdefs.h <<\_ACEOF
20989 #define RLIMTYPE rlim_t
20996 echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
20997 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
20998 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
20999 echo $ECHO_N "(cached) $ECHO_C" >&6
21001 cat >conftest.$ac_ext <<_ACEOF
21002 #line $LINENO "configure"
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21009 #include <sys/types.h>
21010 #include <termios.h>
21016 static struct termios ac_aggr;
21017 if (ac_aggr.c_line)
21023 rm -f conftest.$ac_objext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21025 (eval $ac_compile) 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
21029 { ac_try='test -s conftest.$ac_objext'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 ac_cv_member_struct_termios_c_line=yes
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21040 cat >conftest.$ac_ext <<_ACEOF
21041 #line $LINENO "configure"
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21048 #include <sys/types.h>
21049 #include <termios.h>
21055 static struct termios ac_aggr;
21056 if (sizeof ac_aggr.c_line)
21062 rm -f conftest.$ac_objext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21064 (eval $ac_compile) 2>&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try='test -s conftest.$ac_objext'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 ac_cv_member_struct_termios_c_line=yes
21076 echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21079 ac_cv_member_struct_termios_c_line=no
21081 rm -f conftest.$ac_objext conftest.$ac_ext
21083 rm -f conftest.$ac_objext conftest.$ac_ext
21085 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
21086 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
21087 if test $ac_cv_member_struct_termios_c_line = yes; then
21088 cat >>confdefs.h <<\_ACEOF
21089 #define TERMIOS_LDISC 1
21096 echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
21097 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
21098 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
21099 echo $ECHO_N "(cached) $ECHO_C" >&6
21101 cat >conftest.$ac_ext <<_ACEOF
21102 #line $LINENO "configure"
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h. */
21109 #include <sys/types.h>
21110 #include <termio.h>
21116 static struct termio ac_aggr;
21117 if (ac_aggr.c_line)
21123 rm -f conftest.$ac_objext
21124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21125 (eval $ac_compile) 2>&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } &&
21129 { ac_try='test -s conftest.$ac_objext'
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135 ac_cv_member_struct_termio_c_line=yes
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 cat >conftest.$ac_ext <<_ACEOF
21141 #line $LINENO "configure"
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21148 #include <sys/types.h>
21149 #include <termio.h>
21155 static struct termio ac_aggr;
21156 if (sizeof ac_aggr.c_line)
21162 rm -f conftest.$ac_objext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21164 (eval $ac_compile) 2>&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try='test -s conftest.$ac_objext'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; }; then
21174 ac_cv_member_struct_termio_c_line=yes
21176 echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21179 ac_cv_member_struct_termio_c_line=no
21181 rm -f conftest.$ac_objext conftest.$ac_ext
21183 rm -f conftest.$ac_objext conftest.$ac_ext
21185 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
21186 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
21187 if test $ac_cv_member_struct_termio_c_line = yes; then
21188 cat >>confdefs.h <<\_ACEOF
21189 #define TERMIO_LDISC 1
21196 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
21197 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
21198 if test "${bash_cv_dirent_has_dino+set}" = set; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21201 cat >conftest.$ac_ext <<_ACEOF
21202 #line $LINENO "configure"
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h. */
21210 #include <sys/types.h>
21211 #ifdef HAVE_UNISTD_H
21212 # include <unistd.h>
21213 #endif /* HAVE_UNISTD_H */
21214 #if defined(HAVE_DIRENT_H)
21215 # include <dirent.h>
21217 # define dirent direct
21218 # ifdef HAVE_SYS_NDIR_H
21219 # include <sys/ndir.h>
21220 # endif /* SYSNDIR */
21221 # ifdef HAVE_SYS_DIR_H
21222 # include <sys/dir.h>
21223 # endif /* SYSDIR */
21224 # ifdef HAVE_NDIR_H
21227 #endif /* HAVE_DIRENT_H */
21233 struct dirent d; int z; z = d.d_ino;
21239 rm -f conftest.$ac_objext
21240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21241 (eval $ac_compile) 2>&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
21245 { ac_try='test -s conftest.$ac_objext'
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 bash_cv_dirent_has_dino=yes
21253 echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21256 bash_cv_dirent_has_dino=no
21258 rm -f conftest.$ac_objext conftest.$ac_ext
21261 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
21262 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
21263 if test $bash_cv_dirent_has_dino = yes; then
21264 cat >>confdefs.h <<\_ACEOF
21265 #define HAVE_STRUCT_DIRENT_D_INO 1
21271 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
21272 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
21273 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 cat >conftest.$ac_ext <<_ACEOF
21277 #line $LINENO "configure"
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h. */
21285 #include <sys/types.h>
21286 #ifdef HAVE_UNISTD_H
21287 # include <unistd.h>
21288 #endif /* HAVE_UNISTD_H */
21289 #if defined(HAVE_DIRENT_H)
21290 # include <dirent.h>
21292 # define dirent direct
21293 # ifdef HAVE_SYS_NDIR_H
21294 # include <sys/ndir.h>
21295 # endif /* SYSNDIR */
21296 # ifdef HAVE_SYS_DIR_H
21297 # include <sys/dir.h>
21298 # endif /* SYSDIR */
21299 # ifdef HAVE_NDIR_H
21302 #endif /* HAVE_DIRENT_H */
21308 struct dirent d; int z; z = d.d_fileno;
21314 rm -f conftest.$ac_objext
21315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21316 (eval $ac_compile) 2>&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); } &&
21320 { ac_try='test -s conftest.$ac_objext'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; }; then
21326 bash_cv_dirent_has_d_fileno=yes
21328 echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21331 bash_cv_dirent_has_d_fileno=no
21333 rm -f conftest.$ac_objext conftest.$ac_ext
21336 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
21337 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
21338 if test $bash_cv_dirent_has_d_fileno = yes; then
21339 cat >>confdefs.h <<\_ACEOF
21340 #define HAVE_STRUCT_DIRENT_D_FILENO 1
21346 echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
21347 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
21348 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21351 cat >conftest.$ac_ext <<_ACEOF
21352 #line $LINENO "configure"
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21360 #include <sys/types.h>
21361 #ifdef HAVE_UNISTD_H
21362 # include <unistd.h>
21363 #endif /* HAVE_UNISTD_H */
21364 #if defined(HAVE_DIRENT_H)
21365 # include <dirent.h>
21367 # define dirent direct
21368 # ifdef HAVE_SYS_NDIR_H
21369 # include <sys/ndir.h>
21370 # endif /* SYSNDIR */
21371 # ifdef HAVE_SYS_DIR_H
21372 # include <sys/dir.h>
21373 # endif /* SYSDIR */
21374 # ifdef HAVE_NDIR_H
21377 #endif /* HAVE_DIRENT_H */
21383 struct dirent d; int z; z = d.d_namlen;
21389 rm -f conftest.$ac_objext
21390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21391 (eval $ac_compile) 2>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } &&
21395 { ac_try='test -s conftest.$ac_objext'
21396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397 (eval $ac_try) 2>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); }; }; then
21401 bash_cv_dirent_has_d_namlen=yes
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 bash_cv_dirent_has_d_namlen=no
21408 rm -f conftest.$ac_objext conftest.$ac_ext
21411 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
21412 echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6
21413 if test $bash_cv_dirent_has_d_namlen = yes; then
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
21420 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
21421 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
21422 if test "${bash_cv_struct_winsize_header+set}" = set; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 cat >conftest.$ac_ext <<_ACEOF
21426 #line $LINENO "configure"
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 #include <sys/types.h>
21433 #include <sys/ioctl.h>
21442 rm -f conftest.$ac_objext
21443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21444 (eval $ac_compile) 2>&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } &&
21448 { ac_try='test -s conftest.$ac_objext'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 bash_cv_struct_winsize_header=ioctl_h
21456 echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21459 cat >conftest.$ac_ext <<_ACEOF
21460 #line $LINENO "configure"
21463 cat confdefs.h >>conftest.$ac_ext
21464 cat >>conftest.$ac_ext <<_ACEOF
21465 /* end confdefs.h. */
21466 #include <sys/types.h>
21467 #include <termios.h>
21476 rm -f conftest.$ac_objext
21477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21478 (eval $ac_compile) 2>&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } &&
21482 { ac_try='test -s conftest.$ac_objext'
21483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484 (eval $ac_try) 2>&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; }; then
21488 bash_cv_struct_winsize_header=termios_h
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21493 bash_cv_struct_winsize_header=other
21495 rm -f conftest.$ac_objext conftest.$ac_ext
21498 rm -f conftest.$ac_objext conftest.$ac_ext
21501 if test $bash_cv_struct_winsize_header = ioctl_h; then
21502 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
21503 echo "${ECHO_T}sys/ioctl.h" >&6
21504 cat >>confdefs.h <<\_ACEOF
21505 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
21508 elif test $bash_cv_struct_winsize_header = termios_h; then
21509 echo "$as_me:$LINENO: result: termios.h" >&5
21510 echo "${ECHO_T}termios.h" >&6
21511 cat >>confdefs.h <<\_ACEOF
21512 #define STRUCT_WINSIZE_IN_TERMIOS 1
21516 echo "$as_me:$LINENO: result: not found" >&5
21517 echo "${ECHO_T}not found" >&6
21520 echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
21521 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
21522 if test "${bash_cv_struct_timeval+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 cat >conftest.$ac_ext <<_ACEOF
21527 #line $LINENO "configure"
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 #include <sys/time.h>
21536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21537 $EGREP "struct timeval" >/dev/null 2>&1; then
21538 bash_cv_struct_timeval=yes
21540 cat >conftest.$ac_ext <<_ACEOF
21541 #line $LINENO "configure"
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h. */
21550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21551 $EGREP "struct timeval" >/dev/null 2>&1; then
21552 bash_cv_struct_timeval=yes
21554 bash_cv_struct_timeval=no
21564 echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
21565 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
21566 if test $bash_cv_struct_timeval = yes; then
21567 cat >>confdefs.h <<\_ACEOF
21568 #define HAVE_TIMEVAL 1
21573 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21574 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
21575 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 cat >conftest.$ac_ext <<_ACEOF
21579 #line $LINENO "configure"
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 $ac_includes_default
21589 static struct stat ac_aggr;
21590 if (ac_aggr.st_blocks)
21596 rm -f conftest.$ac_objext
21597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21598 (eval $ac_compile) 2>&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } &&
21602 { ac_try='test -s conftest.$ac_objext'
21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604 (eval $ac_try) 2>&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; }; then
21608 ac_cv_member_struct_stat_st_blocks=yes
21610 echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21613 cat >conftest.$ac_ext <<_ACEOF
21614 #line $LINENO "configure"
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 $ac_includes_default
21624 static struct stat ac_aggr;
21625 if (sizeof ac_aggr.st_blocks)
21631 rm -f conftest.$ac_objext
21632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21633 (eval $ac_compile) 2>&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); } &&
21637 { ac_try='test -s conftest.$ac_objext'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 ac_cv_member_struct_stat_st_blocks=yes
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21648 ac_cv_member_struct_stat_st_blocks=no
21650 rm -f conftest.$ac_objext conftest.$ac_ext
21652 rm -f conftest.$ac_objext conftest.$ac_ext
21654 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21655 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
21656 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21658 cat >>confdefs.h <<_ACEOF
21659 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21665 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21666 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21667 if test "${ac_cv_struct_tm+set}" = set; then
21668 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 cat >conftest.$ac_ext <<_ACEOF
21671 #line $LINENO "configure"
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h. */
21677 #include <sys/types.h>
21683 struct tm *tp; tp->tm_sec;
21688 rm -f conftest.$ac_objext
21689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21690 (eval $ac_compile) 2>&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); } &&
21694 { ac_try='test -s conftest.$ac_objext'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; }; then
21700 ac_cv_struct_tm=time.h
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21705 ac_cv_struct_tm=sys/time.h
21707 rm -f conftest.$ac_objext conftest.$ac_ext
21709 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21710 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21711 if test $ac_cv_struct_tm = sys/time.h; then
21713 cat >>confdefs.h <<\_ACEOF
21714 #define TM_IN_SYS_TIME 1
21719 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21720 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21721 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21724 cat >conftest.$ac_ext <<_ACEOF
21725 #line $LINENO "configure"
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 #include <sys/types.h>
21732 #include <$ac_cv_struct_tm>
21738 static struct tm ac_aggr;
21739 if (ac_aggr.tm_zone)
21745 rm -f conftest.$ac_objext
21746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21747 (eval $ac_compile) 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } &&
21751 { ac_try='test -s conftest.$ac_objext'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; }; then
21757 ac_cv_member_struct_tm_tm_zone=yes
21759 echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21762 cat >conftest.$ac_ext <<_ACEOF
21763 #line $LINENO "configure"
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21769 #include <sys/types.h>
21770 #include <$ac_cv_struct_tm>
21776 static struct tm ac_aggr;
21777 if (sizeof ac_aggr.tm_zone)
21783 rm -f conftest.$ac_objext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21785 (eval $ac_compile) 2>&5
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); } &&
21789 { ac_try='test -s conftest.$ac_objext'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21795 ac_cv_member_struct_tm_tm_zone=yes
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21800 ac_cv_member_struct_tm_tm_zone=no
21802 rm -f conftest.$ac_objext conftest.$ac_ext
21804 rm -f conftest.$ac_objext conftest.$ac_ext
21806 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21807 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21808 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21810 cat >>confdefs.h <<_ACEOF
21811 #define HAVE_STRUCT_TM_TM_ZONE 1
21817 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21819 cat >>confdefs.h <<\_ACEOF
21820 #define HAVE_TM_ZONE 1
21824 echo "$as_me:$LINENO: checking for tzname" >&5
21825 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21826 if test "${ac_cv_var_tzname+set}" = set; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21829 cat >conftest.$ac_ext <<_ACEOF
21830 #line $LINENO "configure"
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h. */
21837 #ifndef tzname /* For SGI. */
21838 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21851 (eval $ac_link) 2>&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } &&
21855 { ac_try='test -s conftest$ac_exeext'
21856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857 (eval $ac_try) 2>&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); }; }; then
21861 ac_cv_var_tzname=yes
21863 echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21866 ac_cv_var_tzname=no
21868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21870 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21871 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21872 if test $ac_cv_var_tzname = yes; then
21874 cat >>confdefs.h <<\_ACEOF
21875 #define HAVE_TZNAME 1
21881 echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
21882 echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6
21883 if test "${bash_cv_struct_timezone+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21887 cat >conftest.$ac_ext <<_ACEOF
21888 #line $LINENO "configure"
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 #include <sys/time.h>
21897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21898 $EGREP "struct timezone" >/dev/null 2>&1; then
21899 bash_cv_struct_timezone=yes
21901 cat >conftest.$ac_ext <<_ACEOF
21902 #line $LINENO "configure"
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21912 $EGREP "struct timezone" >/dev/null 2>&1; then
21913 bash_cv_struct_timezone=yes
21915 bash_cv_struct_timezone=no
21925 echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
21926 echo "${ECHO_T}$bash_cv_struct_timezone" >&6
21927 if test $bash_cv_struct_timezone = yes; then
21928 cat >>confdefs.h <<\_ACEOF
21929 #define HAVE_STRUCT_TIMEZONE 1
21935 echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
21936 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
21937 if test "${bash_cv_have_strsignal+set}" = set; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21940 cat >conftest.$ac_ext <<_ACEOF
21941 #line $LINENO "configure"
21944 cat confdefs.h >>conftest.$ac_ext
21945 cat >>conftest.$ac_ext <<_ACEOF
21946 /* end confdefs.h. */
21947 #include <sys/types.h>
21948 #include <signal.h>
21952 char *s = (char *)strsignal(2);
21957 rm -f conftest.$ac_objext conftest$ac_exeext
21958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21959 (eval $ac_link) 2>&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } &&
21963 { ac_try='test -s conftest$ac_exeext'
21964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965 (eval $ac_try) 2>&5
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; }; then
21969 bash_cv_have_strsignal=yes
21971 echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21974 bash_cv_have_strsignal=no
21976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21979 echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
21980 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
21981 if test $bash_cv_have_strsignal = yes; then
21982 cat >>confdefs.h <<\_ACEOF
21983 #define HAVE_STRSIGNAL 1
21988 echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
21989 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
21990 if test "${bash_cv_opendir_not_robust+set}" = set; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 if test "$cross_compiling" = yes; then
21994 { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
21995 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
21996 bash_cv_opendir_not_robust=no
21999 cat >conftest.$ac_ext <<_ACEOF
22000 #line $LINENO "configure"
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22008 #include <sys/types.h>
22010 #ifdef HAVE_UNISTD_H
22011 # include <unistd.h>
22012 #endif /* HAVE_UNISTD_H */
22013 #if defined(HAVE_DIRENT_H)
22014 # include <dirent.h>
22016 # define dirent direct
22017 # ifdef HAVE_SYS_NDIR_H
22018 # include <sys/ndir.h>
22019 # endif /* SYSNDIR */
22020 # ifdef HAVE_SYS_DIR_H
22021 # include <sys/dir.h>
22022 # endif /* SYSDIR */
22023 # ifdef HAVE_NDIR_H
22026 #endif /* HAVE_DIRENT_H */
22031 err = mkdir("/tmp/bash-aclocal", 0700);
22036 unlink("/tmp/bash-aclocal/not_a_directory");
22037 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
22038 write(fd, "\n", 1);
22040 dir = opendir("/tmp/bash-aclocal/not_a_directory");
22041 unlink("/tmp/bash-aclocal/not_a_directory");
22042 rmdir("/tmp/bash-aclocal");
22046 rm -f conftest$ac_exeext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22048 (eval $ac_link) 2>&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; }; then
22057 bash_cv_opendir_not_robust=yes
22059 echo "$as_me: program exited with status $ac_status" >&5
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22063 ( exit $ac_status )
22064 bash_cv_opendir_not_robust=no
22066 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22070 echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
22071 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
22072 if test $bash_cv_opendir_not_robust = yes; then
22073 cat >>confdefs.h <<\_ACEOF
22074 #define OPENDIR_NOT_ROBUST 1
22079 echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
22080 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
22081 if test "${bash_cv_ulimit_maxfds+set}" = set; then
22082 echo $ECHO_N "(cached) $ECHO_C" >&6
22084 if test "$cross_compiling" = yes; then
22085 { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
22086 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
22087 bash_cv_ulimit_maxfds=no
22090 cat >conftest.$ac_ext <<_ACEOF
22091 #line $LINENO "configure"
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h. */
22100 long maxfds = ulimit(4, 0L);
22101 exit (maxfds == -1L);
22105 rm -f conftest$ac_exeext
22106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22107 (eval $ac_link) 2>&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112 (eval $ac_try) 2>&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; }; then
22116 bash_cv_ulimit_maxfds=yes
22118 echo "$as_me: program exited with status $ac_status" >&5
22119 echo "$as_me: failed program was:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22122 ( exit $ac_status )
22123 bash_cv_ulimit_maxfds=no
22125 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22129 echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
22130 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
22131 if test $bash_cv_ulimit_maxfds = yes; then
22132 cat >>confdefs.h <<\_ACEOF
22133 #define ULIMIT_MAXFDS 1
22138 echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
22139 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
22140 if test "${bash_cv_getenv_redef+set}" = set; then
22141 echo $ECHO_N "(cached) $ECHO_C" >&6
22143 if test "$cross_compiling" = yes; then
22144 { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
22145 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
22146 bash_cv_getenv_redef=yes
22149 cat >conftest.$ac_ext <<_ACEOF
22150 #line $LINENO "configure"
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22157 #ifdef HAVE_UNISTD_H
22158 # include <unistd.h>
22167 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
22171 #endif /* !__linux__ && !__bsdi__ && !convex */
22178 /* The next allows this program to run, but does not allow bash to link
22179 when it redefines getenv. I'm not really interested in figuring out
22184 s = getenv("ABCDE");
22185 exit(s == 0); /* force optimizer to leave getenv in */
22189 rm -f conftest$ac_exeext
22190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22191 (eval $ac_link) 2>&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 (eval $ac_try) 2>&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; }; then
22200 bash_cv_getenv_redef=yes
22202 echo "$as_me: program exited with status $ac_status" >&5
22203 echo "$as_me: failed program was:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22206 ( exit $ac_status )
22207 bash_cv_getenv_redef=no
22209 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22213 echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
22214 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
22215 if test $bash_cv_getenv_redef = yes; then
22216 cat >>confdefs.h <<\_ACEOF
22217 #define CAN_REDEFINE_GETENV 1
22222 if test "$ac_cv_func_getcwd" = "yes"; then
22223 echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5
22224 echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6
22225 if test "${bash_cv_getcwd_malloc+set}" = set; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22228 if test "$cross_compiling" = yes; then
22229 { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
22230 echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
22231 bash_cv_getcwd_malloc=no
22234 cat >conftest.$ac_ext <<_ACEOF
22235 #line $LINENO "configure"
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22243 #ifdef HAVE_UNISTD_H
22244 #include <unistd.h>
22250 xpwd = getcwd(0, 0);
22255 rm -f conftest$ac_exeext
22256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22257 (eval $ac_link) 2>&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; }; then
22266 bash_cv_getcwd_malloc=yes
22268 echo "$as_me: program exited with status $ac_status" >&5
22269 echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22272 ( exit $ac_status )
22273 bash_cv_getcwd_malloc=no
22275 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22279 echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
22280 echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6
22281 if test $bash_cv_getcwd_malloc = no; then
22282 cat >>confdefs.h <<\_ACEOF
22283 #define GETCWD_BROKEN 1
22286 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
22291 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
22292 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
22293 if test "${bash_cv_func_sigsetjmp+set}" = set; then
22294 echo $ECHO_N "(cached) $ECHO_C" >&6
22296 if test "$cross_compiling" = yes; then
22297 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
22298 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
22299 bash_cv_func_sigsetjmp=missing
22302 cat >conftest.$ac_ext <<_ACEOF
22303 #line $LINENO "configure"
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22310 #ifdef HAVE_UNISTD_H
22311 #include <unistd.h>
22313 #include <sys/types.h>
22314 #include <signal.h>
22315 #include <setjmp.h>
22319 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
22324 sigset_t set, oset;
22329 sigemptyset(&oset);
22330 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
22331 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
22334 code = sigsetjmp(xx, 1);
22336 exit(0); /* could get sigmask and compare to oset here. */
22339 sigaddset(&set, SIGINT);
22340 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
22342 /* and siglongjmp */
22343 siglongjmp(xx, 10);
22348 rm -f conftest$ac_exeext
22349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22350 (eval $ac_link) 2>&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; }; then
22359 bash_cv_func_sigsetjmp=present
22361 echo "$as_me: program exited with status $ac_status" >&5
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22365 ( exit $ac_status )
22366 bash_cv_func_sigsetjmp=missing
22368 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22372 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
22373 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
22374 if test $bash_cv_func_sigsetjmp = present; then
22375 cat >>confdefs.h <<\_ACEOF
22376 #define HAVE_POSIX_SIGSETJMP 1
22382 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
22383 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
22384 if test "${bash_cv_func_strcoll_broken+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22387 if test "$cross_compiling" = yes; then
22388 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
22389 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
22390 bash_cv_func_strcoll_broken=no
22393 cat >conftest.$ac_ext <<_ACEOF
22394 #line $LINENO "configure"
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22402 #if defined (HAVE_LOCALE_H)
22403 #include <locale.h>
22411 char *deflocale, *defcoll;
22413 #ifdef HAVE_SETLOCALE
22414 deflocale = setlocale(LC_ALL, "");
22415 defcoll = setlocale(LC_COLLATE, "");
22418 #ifdef HAVE_STRCOLL
22419 /* These two values are taken from tests/glob-test. */
22420 r1 = strcoll("abd", "aXd");
22424 r2 = strcmp("abd", "aXd");
22426 /* These two should both be greater than 0. It is permissible for
22427 a system to return different values, as long as the sign is the
22430 /* Exit with 1 (failure) if these two values are both > 0, since
22431 this tests whether strcoll(3) is broken with respect to strcmp(3)
22432 in the default locale. */
22433 exit (r1 > 0 && r2 > 0);
22437 rm -f conftest$ac_exeext
22438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22439 (eval $ac_link) 2>&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; }; then
22448 bash_cv_func_strcoll_broken=yes
22450 echo "$as_me: program exited with status $ac_status" >&5
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22454 ( exit $ac_status )
22455 bash_cv_func_strcoll_broken=no
22457 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22461 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
22462 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
22463 if test $bash_cv_func_strcoll_broken = yes; then
22464 cat >>confdefs.h <<\_ACEOF
22465 #define STRCOLL_BROKEN 1
22472 if test "$ac_cv_func_putenv" = "yes"; then
22476 echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
22477 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
22478 if test "${bash_cv_std_putenv+set}" = set; then
22479 echo $ECHO_N "(cached) $ECHO_C" >&6
22481 cat >conftest.$ac_ext <<_ACEOF
22482 #line $LINENO "configure"
22485 cat confdefs.h >>conftest.$ac_ext
22486 cat >>conftest.$ac_ext <<_ACEOF
22487 /* end confdefs.h. */
22490 #include <stdlib.h>
22491 #include <stddef.h>
22499 extern int putenv (char *);
22501 extern int putenv ();
22507 return (putenv == 0);
22512 rm -f conftest.$ac_objext conftest$ac_exeext
22513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22514 (eval $ac_link) 2>&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); } &&
22518 { ac_try='test -s conftest$ac_exeext'
22519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520 (eval $ac_try) 2>&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); }; }; then
22524 bash_cv_std_putenv=yes
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22529 bash_cv_std_putenv=no
22532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22534 echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
22535 echo "${ECHO_T}$bash_cv_std_putenv" >&6
22536 if test $bash_cv_std_putenv = yes; then
22537 cat >>confdefs.h <<\_ACEOF
22538 #define HAVE_STD_PUTENV 1
22544 cat >>confdefs.h <<\_ACEOF
22545 #define HAVE_STD_PUTENV 1
22549 if test "$ac_cv_func_unsetenv" = "yes"; then
22553 echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
22554 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
22555 if test "${bash_cv_std_unsetenv+set}" = set; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22558 cat >conftest.$ac_ext <<_ACEOF
22559 #line $LINENO "configure"
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22567 #include <stdlib.h>
22568 #include <stddef.h>
22576 extern int unsetenv (const char *);
22578 extern int unsetenv ();
22584 return (unsetenv == 0);
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22591 (eval $ac_link) 2>&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } &&
22595 { ac_try='test -s conftest$ac_exeext'
22596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597 (eval $ac_try) 2>&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; }; then
22601 bash_cv_std_unsetenv=yes
22603 echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22606 bash_cv_std_unsetenv=no
22609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22611 echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
22612 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
22613 if test $bash_cv_std_unsetenv = yes; then
22614 cat >>confdefs.h <<\_ACEOF
22615 #define HAVE_STD_UNSETENV 1
22621 cat >>confdefs.h <<\_ACEOF
22622 #define HAVE_STD_UNSETENV 1
22627 echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
22628 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
22629 if test "${bash_cv_printf_a_format+set}" = set; then
22630 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 if test "$cross_compiling" = yes; then
22633 { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
22634 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
22635 bash_cv_printf_a_format=no
22638 cat >conftest.$ac_ext <<_ACEOF
22639 #line $LINENO "configure"
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22647 #include <string.h>
22655 sprintf(abuf, "%A", y);
22656 exit(strchr(abuf, 'P') == (char *)0);
22660 rm -f conftest$ac_exeext
22661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22662 (eval $ac_link) 2>&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667 (eval $ac_try) 2>&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); }; }; then
22671 bash_cv_printf_a_format=yes
22673 echo "$as_me: program exited with status $ac_status" >&5
22674 echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22677 ( exit $ac_status )
22678 bash_cv_printf_a_format=no
22680 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22684 echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
22685 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
22686 if test $bash_cv_printf_a_format = yes; then
22687 cat >>confdefs.h <<\_ACEOF
22688 #define HAVE_PRINTF_A_FORMAT 1
22696 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
22697 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
22698 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22701 if test "$cross_compiling" = yes; then
22702 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
22703 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
22704 bash_cv_must_reinstall_sighandlers=no
22707 cat >conftest.$ac_ext <<_ACEOF
22708 #line $LINENO "configure"
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22715 #include <signal.h>
22716 #ifdef HAVE_UNISTD_H
22717 #include <unistd.h>
22720 typedef RETSIGTYPE sigfunc();
22724 #ifdef HAVE_POSIX_SIGNALS
22726 set_signal_handler(sig, handler)
22730 struct sigaction act, oact;
22731 act.sa_handler = handler;
22733 sigemptyset (&act.sa_mask);
22734 sigemptyset (&oact.sa_mask);
22735 sigaction (sig, &act, &oact);
22736 return (oact.sa_handler);
22739 #define set_signal_handler(s, h) signal(s, h)
22752 set_signal_handler(SIGINT, sigint);
22753 kill((int)getpid(), SIGINT);
22754 kill((int)getpid(), SIGINT);
22755 exit(nsigint != 2);
22759 rm -f conftest$ac_exeext
22760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22761 (eval $ac_link) 2>&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766 (eval $ac_try) 2>&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; }; then
22770 bash_cv_must_reinstall_sighandlers=no
22772 echo "$as_me: program exited with status $ac_status" >&5
22773 echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22776 ( exit $ac_status )
22777 bash_cv_must_reinstall_sighandlers=yes
22779 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22783 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
22784 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
22785 if test $bash_cv_must_reinstall_sighandlers = yes; then
22786 cat >>confdefs.h <<\_ACEOF
22787 #define MUST_REINSTALL_SIGHANDLERS 1
22793 echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
22794 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
22795 if test "${bash_cv_job_control_missing+set}" = set; then
22796 echo $ECHO_N "(cached) $ECHO_C" >&6
22798 if test "$cross_compiling" = yes; then
22799 { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
22800 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
22801 bash_cv_job_control_missing=missing
22804 cat >conftest.$ac_ext <<_ACEOF
22805 #line $LINENO "configure"
22808 cat confdefs.h >>conftest.$ac_ext
22809 cat >>conftest.$ac_ext <<_ACEOF
22810 /* end confdefs.h. */
22812 #include <sys/types.h>
22813 #ifdef HAVE_SYS_WAIT_H
22814 #include <sys/wait.h>
22816 #ifdef HAVE_UNISTD_H
22817 #include <unistd.h>
22819 #include <signal.h>
22821 /* Add more tests in here as appropriate. */
22825 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
22829 /* signals and tty control. */
22830 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
22834 /* process control */
22835 #if !defined (WNOHANG) || !defined (WUNTRACED)
22839 /* Posix systems have tcgetpgrp and waitpid. */
22840 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
22844 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
22848 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
22849 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
22856 rm -f conftest$ac_exeext
22857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22858 (eval $ac_link) 2>&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863 (eval $ac_try) 2>&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); }; }; then
22867 bash_cv_job_control_missing=present
22869 echo "$as_me: program exited with status $ac_status" >&5
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 ( exit $ac_status )
22874 bash_cv_job_control_missing=missing
22876 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22880 echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
22881 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
22882 if test $bash_cv_job_control_missing = missing; then
22883 cat >>confdefs.h <<\_ACEOF
22884 #define JOB_CONTROL_MISSING 1
22889 echo "$as_me:$LINENO: checking for presence of named pipes" >&5
22890 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
22891 if test "${bash_cv_sys_named_pipes+set}" = set; then
22892 echo $ECHO_N "(cached) $ECHO_C" >&6
22894 if test "$cross_compiling" = yes; then
22895 { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
22896 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
22897 bash_cv_sys_named_pipes=missing
22900 cat >conftest.$ac_ext <<_ACEOF
22901 #line $LINENO "configure"
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h. */
22908 #include <sys/types.h>
22909 #include <sys/stat.h>
22910 #ifdef HAVE_UNISTD_H
22911 #include <unistd.h>
22914 /* Add more tests in here as appropriate. */
22919 #if defined (HAVE_MKFIFO)
22923 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
22930 err = mkdir("/tmp/bash-aclocal", 0700);
22935 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
22937 rmdir ("/tmp/bash-aclocal");
22941 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
22942 rmdir ("/tmp/bash-aclocal");
22946 rm -f conftest$ac_exeext
22947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22948 (eval $ac_link) 2>&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; }; then
22957 bash_cv_sys_named_pipes=present
22959 echo "$as_me: program exited with status $ac_status" >&5
22960 echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22963 ( exit $ac_status )
22964 bash_cv_sys_named_pipes=missing
22966 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22970 echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
22971 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
22972 if test $bash_cv_sys_named_pipes = missing; then
22973 cat >>confdefs.h <<\_ACEOF
22974 #define NAMED_PIPES_MISSING 1
22980 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
22981 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
22982 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
22983 echo $ECHO_N "(cached) $ECHO_C" >&6
22985 cat >conftest.$ac_ext <<_ACEOF
22986 #line $LINENO "configure"
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22992 #include <sys/types.h>
22993 #include <termios.h>
22999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23000 $EGREP "yes" >/dev/null 2>&1; then
23001 ac_cv_sys_tiocgwinsz_in_termios_h=yes
23003 ac_cv_sys_tiocgwinsz_in_termios_h=no
23008 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23009 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23011 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23012 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23013 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23014 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23017 cat >conftest.$ac_ext <<_ACEOF
23018 #line $LINENO "configure"
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 #include <sys/types.h>
23025 #include <sys/ioctl.h>
23031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23032 $EGREP "yes" >/dev/null 2>&1; then
23033 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
23035 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
23040 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
23041 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
23043 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
23045 cat >>confdefs.h <<\_ACEOF
23046 #define GWINSZ_IN_SYS_IOCTL 1
23052 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
23053 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
23054 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
23055 echo $ECHO_N "(cached) $ECHO_C" >&6
23057 cat >conftest.$ac_ext <<_ACEOF
23058 #line $LINENO "configure"
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h. */
23064 #include <sys/types.h>
23065 #include <sys/ioctl.h>
23074 rm -f conftest.$ac_objext
23075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23076 (eval $ac_compile) 2>&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } &&
23080 { ac_try='test -s conftest.$ac_objext'
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
23086 bash_cv_tiocstat_in_ioctl=yes
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23091 bash_cv_tiocstat_in_ioctl=no
23093 rm -f conftest.$ac_objext conftest.$ac_ext
23096 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
23097 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
23098 if test $bash_cv_tiocstat_in_ioctl = yes; then
23099 cat >>confdefs.h <<\_ACEOF
23100 #define TIOCSTAT_IN_SYS_IOCTL 1
23105 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
23106 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
23107 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
23108 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 cat >conftest.$ac_ext <<_ACEOF
23111 #line $LINENO "configure"
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23117 #include <sys/types.h>
23118 #include <sys/ioctl.h>
23127 rm -f conftest.$ac_objext
23128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23129 (eval $ac_compile) 2>&5
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); } &&
23133 { ac_try='test -s conftest.$ac_objext'
23134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23135 (eval $ac_try) 2>&5
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); }; }; then
23139 bash_cv_fionread_in_ioctl=yes
23141 echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23144 bash_cv_fionread_in_ioctl=no
23146 rm -f conftest.$ac_objext conftest.$ac_ext
23149 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
23150 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
23151 if test $bash_cv_fionread_in_ioctl = yes; then
23152 cat >>confdefs.h <<\_ACEOF
23153 #define FIONREAD_IN_SYS_IOCTL 1
23159 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
23160 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
23161 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
23162 echo $ECHO_N "(cached) $ECHO_C" >&6
23164 cat >conftest.$ac_ext <<_ACEOF
23165 #line $LINENO "configure"
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h. */
23171 #include <sys/types.h>
23180 rm -f conftest.$ac_objext
23181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23182 (eval $ac_compile) 2>&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } &&
23186 { ac_try='test -s conftest.$ac_objext'
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; }; then
23192 bash_cv_speed_t_in_sys_types=yes
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 bash_cv_speed_t_in_sys_types=no
23199 rm -f conftest.$ac_objext conftest.$ac_ext
23202 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
23203 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
23204 if test $bash_cv_speed_t_in_sys_types = yes; then
23205 cat >>confdefs.h <<\_ACEOF
23206 #define SPEED_T_IN_SYS_TYPES 1
23211 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
23212 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
23213 if test "${bash_cv_getpw_declared+set}" = set; then
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
23216 cat >conftest.$ac_ext <<_ACEOF
23217 #line $LINENO "configure"
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h. */
23224 #include <sys/types.h>
23225 #ifdef HAVE_UNISTD_H
23226 # include <unistd.h>
23231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23232 $EGREP "getpwuid" >/dev/null 2>&1; then
23233 bash_cv_getpw_declared=yes
23235 bash_cv_getpw_declared=no
23241 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
23242 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
23243 if test $bash_cv_getpw_declared = yes; then
23244 cat >>confdefs.h <<\_ACEOF
23245 #define HAVE_GETPW_DECLS 1
23250 echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
23251 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
23252 if test "${bash_cv_unusable_rtsigs+set}" = set; then
23253 echo $ECHO_N "(cached) $ECHO_C" >&6
23255 if test "$cross_compiling" = yes; then
23256 { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
23257 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
23258 bash_cv_unusable_rtsigs=yes
23261 cat >conftest.$ac_ext <<_ACEOF
23262 #line $LINENO "configure"
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h. */
23269 #include <sys/types.h>
23270 #include <signal.h>
23278 int n_sigs = 2 * NSIG;
23280 int rtmin = SIGRTMIN;
23285 exit(rtmin < n_sigs);
23288 rm -f conftest$ac_exeext
23289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23290 (eval $ac_link) 2>&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; }; then
23299 bash_cv_unusable_rtsigs=yes
23301 echo "$as_me: program exited with status $ac_status" >&5
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23305 ( exit $ac_status )
23306 bash_cv_unusable_rtsigs=no
23308 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23312 echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
23313 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
23314 if test $bash_cv_unusable_rtsigs = yes; then
23315 cat >>confdefs.h <<\_ACEOF
23316 #define UNUSABLE_RT_SIGNALS 1
23325 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
23326 SIGLIST_O=siglist.o
23334 hpux*) echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
23335 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
23336 if test "${bash_cv_kernel_rlimit+set}" = set; then
23337 echo $ECHO_N "(cached) $ECHO_C" >&6
23339 cat >conftest.$ac_ext <<_ACEOF
23340 #line $LINENO "configure"
23343 cat confdefs.h >>conftest.$ac_ext
23344 cat >>conftest.$ac_ext <<_ACEOF
23345 /* end confdefs.h. */
23347 #include <sys/types.h>
23348 #include <sys/resource.h>
23361 rm -f conftest.$ac_objext
23362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23363 (eval $ac_compile) 2>&5
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); } &&
23367 { ac_try='test -s conftest.$ac_objext'
23368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369 (eval $ac_try) 2>&5
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); }; }; then
23373 bash_cv_kernel_rlimit=no
23375 echo "$as_me: failed program was:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23378 cat >conftest.$ac_ext <<_ACEOF
23379 #line $LINENO "configure"
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23386 #include <sys/types.h>
23388 #include <sys/resource.h>
23402 rm -f conftest.$ac_objext
23403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23404 (eval $ac_compile) 2>&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } &&
23408 { ac_try='test -s conftest.$ac_objext'
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; }; then
23414 bash_cv_kernel_rlimit=yes
23416 echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23419 bash_cv_kernel_rlimit=no
23421 rm -f conftest.$ac_objext conftest.$ac_ext
23424 rm -f conftest.$ac_objext conftest.$ac_ext
23427 echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
23428 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
23429 if test $bash_cv_kernel_rlimit = yes; then
23430 cat >>confdefs.h <<\_ACEOF
23431 #define RLIMIT_NEEDS_KERNEL 1
23438 if test "$opt_readline" = yes; then
23440 aix*) prefer_curses=yes ;;
23443 if test "X$bash_cv_termcap_lib" = "X"; then
23446 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
23447 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
23450 if test "${bash_cv_termcap_lib+set}" = set; then
23451 echo $ECHO_N "(cached) $ECHO_C" >&6
23453 echo "$as_me:$LINENO: checking for tgetent" >&5
23454 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
23455 if test "${ac_cv_func_tgetent+set}" = set; then
23456 echo $ECHO_N "(cached) $ECHO_C" >&6
23458 cat >conftest.$ac_ext <<_ACEOF
23459 #line $LINENO "configure"
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h. */
23465 /* System header to define __stub macros and hopefully few prototypes,
23466 which can conflict with char tgetent (); below.
23467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23468 <limits.h> exists even on freestanding compilers. */
23470 # include <limits.h>
23472 # include <assert.h>
23474 /* Override any gcc2 internal prototype to avoid an error. */
23479 /* We use char because int might match the return type of a gcc2
23480 builtin and then its argument prototype would still apply. */
23482 /* The GNU C library defines this for functions which it implements
23483 to always fail with ENOSYS. Some functions are actually named
23484 something starting with __ and the normal name is an alias. */
23485 #if defined (__stub_tgetent) || defined (__stub___tgetent)
23488 char (*f) () = tgetent;
23497 return f != tgetent;
23502 rm -f conftest.$ac_objext conftest$ac_exeext
23503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23504 (eval $ac_link) 2>&5
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } &&
23508 { ac_try='test -s conftest$ac_exeext'
23509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23510 (eval $ac_try) 2>&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; }; then
23514 ac_cv_func_tgetent=yes
23516 echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23519 ac_cv_func_tgetent=no
23521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23523 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
23524 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
23525 if test $ac_cv_func_tgetent = yes; then
23526 bash_cv_termcap_lib=libc
23528 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
23529 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
23530 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23533 ac_check_lib_save_LIBS=$LIBS
23534 LIBS="-ltermcap $LIBS"
23535 cat >conftest.$ac_ext <<_ACEOF
23536 #line $LINENO "configure"
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23543 /* Override any gcc2 internal prototype to avoid an error. */
23547 /* We use char because int might match the return type of a gcc2
23548 builtin and then its argument prototype would still apply. */
23558 rm -f conftest.$ac_objext conftest$ac_exeext
23559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23560 (eval $ac_link) 2>&5
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); } &&
23564 { ac_try='test -s conftest$ac_exeext'
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; }; then
23570 ac_cv_lib_termcap_tgetent=yes
23572 echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23575 ac_cv_lib_termcap_tgetent=no
23577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23578 LIBS=$ac_check_lib_save_LIBS
23580 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
23581 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
23582 if test $ac_cv_lib_termcap_tgetent = yes; then
23583 bash_cv_termcap_lib=libtermcap
23585 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
23586 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
23587 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
23588 echo $ECHO_N "(cached) $ECHO_C" >&6
23590 ac_check_lib_save_LIBS=$LIBS
23591 LIBS="-ltinfo $LIBS"
23592 cat >conftest.$ac_ext <<_ACEOF
23593 #line $LINENO "configure"
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h. */
23600 /* Override any gcc2 internal prototype to avoid an error. */
23604 /* We use char because int might match the return type of a gcc2
23605 builtin and then its argument prototype would still apply. */
23615 rm -f conftest.$ac_objext conftest$ac_exeext
23616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23617 (eval $ac_link) 2>&5
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); } &&
23621 { ac_try='test -s conftest$ac_exeext'
23622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623 (eval $ac_try) 2>&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; }; then
23627 ac_cv_lib_tinfo_tgetent=yes
23629 echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23632 ac_cv_lib_tinfo_tgetent=no
23634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23635 LIBS=$ac_check_lib_save_LIBS
23637 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
23638 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
23639 if test $ac_cv_lib_tinfo_tgetent = yes; then
23640 bash_cv_termcap_lib=libtinfo
23642 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
23643 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
23644 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
23645 echo $ECHO_N "(cached) $ECHO_C" >&6
23647 ac_check_lib_save_LIBS=$LIBS
23648 LIBS="-lcurses $LIBS"
23649 cat >conftest.$ac_ext <<_ACEOF
23650 #line $LINENO "configure"
23653 cat confdefs.h >>conftest.$ac_ext
23654 cat >>conftest.$ac_ext <<_ACEOF
23655 /* end confdefs.h. */
23657 /* Override any gcc2 internal prototype to avoid an error. */
23661 /* We use char because int might match the return type of a gcc2
23662 builtin and then its argument prototype would still apply. */
23672 rm -f conftest.$ac_objext conftest$ac_exeext
23673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23674 (eval $ac_link) 2>&5
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } &&
23678 { ac_try='test -s conftest$ac_exeext'
23679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23680 (eval $ac_try) 2>&5
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); }; }; then
23684 ac_cv_lib_curses_tgetent=yes
23686 echo "$as_me: failed program was:" >&5
23687 sed 's/^/| /' conftest.$ac_ext >&5
23689 ac_cv_lib_curses_tgetent=no
23691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23692 LIBS=$ac_check_lib_save_LIBS
23694 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
23695 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
23696 if test $ac_cv_lib_curses_tgetent = yes; then
23697 bash_cv_termcap_lib=libcurses
23699 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
23700 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
23701 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23704 ac_check_lib_save_LIBS=$LIBS
23705 LIBS="-lncurses $LIBS"
23706 cat >conftest.$ac_ext <<_ACEOF
23707 #line $LINENO "configure"
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h. */
23714 /* Override any gcc2 internal prototype to avoid an error. */
23718 /* We use char because int might match the return type of a gcc2
23719 builtin and then its argument prototype would still apply. */
23729 rm -f conftest.$ac_objext conftest$ac_exeext
23730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23731 (eval $ac_link) 2>&5
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); } &&
23735 { ac_try='test -s conftest$ac_exeext'
23736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737 (eval $ac_try) 2>&5
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); }; }; then
23741 ac_cv_lib_ncurses_tgetent=yes
23743 echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23746 ac_cv_lib_ncurses_tgetent=no
23748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23749 LIBS=$ac_check_lib_save_LIBS
23751 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
23752 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
23753 if test $ac_cv_lib_ncurses_tgetent = yes; then
23754 bash_cv_termcap_lib=libncurses
23756 bash_cv_termcap_lib=gnutermcap
23769 if test "X$_bash_needmsg" = "Xyes"; then
23770 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
23771 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
23773 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
23774 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
23775 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
23776 LDFLAGS="$LDFLAGS -L./lib/termcap"
23777 TERMCAP_LIB="./lib/termcap/libtermcap.a"
23778 TERMCAP_DEP="./lib/termcap/libtermcap.a"
23779 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
23780 TERMCAP_LIB=-ltermcap
23782 elif test $bash_cv_termcap_lib = libtinfo; then
23783 TERMCAP_LIB=-ltinfo
23785 elif test $bash_cv_termcap_lib = libncurses; then
23786 TERMCAP_LIB=-lncurses
23788 elif test $bash_cv_termcap_lib = libc; then
23792 TERMCAP_LIB=-lcurses
23800 echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
23801 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
23802 if test "${bash_cv_dev_fd+set}" = set; then
23803 echo $ECHO_N "(cached) $ECHO_C" >&6
23805 if test -d /dev/fd && test -r /dev/fd/0 < /dev/null; then
23806 bash_cv_dev_fd=standard
23807 elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
23808 bash_cv_dev_fd=whacky
23810 bash_cv_dev_fd=absent
23815 echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
23816 echo "${ECHO_T}$bash_cv_dev_fd" >&6
23817 if test $bash_cv_dev_fd = "standard"; then
23818 cat >>confdefs.h <<\_ACEOF
23819 #define HAVE_DEV_FD 1
23822 cat >>confdefs.h <<\_ACEOF
23823 #define DEV_FD_PREFIX "/dev/fd/"
23826 elif test $bash_cv_dev_fd = "whacky"; then
23827 cat >>confdefs.h <<\_ACEOF
23828 #define HAVE_DEV_FD 1
23831 cat >>confdefs.h <<\_ACEOF
23832 #define DEV_FD_PREFIX "/proc/self/fd/"
23837 echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
23838 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
23839 if test "${bash_cv_dev_stdin+set}" = set; then
23840 echo $ECHO_N "(cached) $ECHO_C" >&6
23842 if test -d /dev/fd && test -r /dev/stdin < /dev/null; then
23843 bash_cv_dev_stdin=present
23844 elif test -d /proc/self/fd && test -r /dev/stdin < /dev/null; then
23845 bash_cv_dev_stdin=present
23847 bash_cv_dev_stdin=absent
23852 echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
23853 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
23854 if test $bash_cv_dev_stdin = "present"; then
23855 cat >>confdefs.h <<\_ACEOF
23856 #define HAVE_DEV_STDIN 1
23861 echo "$as_me:$LINENO: checking for default mail directory" >&5
23862 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
23863 if test "${bash_cv_mail_dir+set}" = set; then
23864 echo $ECHO_N "(cached) $ECHO_C" >&6
23866 if test -d /var/mail; then
23867 bash_cv_mail_dir=/var/mail
23868 elif test -d /var/spool/mail; then
23869 bash_cv_mail_dir=/var/spool/mail
23870 elif test -d /usr/mail; then
23871 bash_cv_mail_dir=/usr/mail
23872 elif test -d /usr/spool/mail; then
23873 bash_cv_mail_dir=/usr/spool/mail
23875 bash_cv_mail_dir=unknown
23880 echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
23881 echo "${ECHO_T}$bash_cv_mail_dir" >&6
23882 cat >>confdefs.h <<_ACEOF
23883 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
23888 if test "$bash_cv_job_control_missing" = missing; then
23892 if test "$opt_job_control" = yes; then
23893 cat >>confdefs.h <<\_ACEOF
23894 #define JOB_CONTROL 1
23908 case "${host_os}" in
23909 sysv4.2*) cat >>confdefs.h <<\_ACEOF
23913 cat >>confdefs.h <<\_ACEOF
23917 sysv4*) cat >>confdefs.h <<\_ACEOF
23921 sysv5*) cat >>confdefs.h <<\_ACEOF
23925 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
23926 hpux*) LOCAL_CFLAGS=-DHPUX ;;
23927 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
23928 isc*) LOCAL_CFLAGS=-Disc386 ;;
23929 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
23930 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
23931 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
23932 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
23933 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
23934 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
23935 solaris2.5*) LOCAL_CFLAGS=-DSunOS5 ;;
23936 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
23937 linux*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
23938 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
23939 powerux*) LOCAL_LIBS="-lgen" ;;
23940 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
23941 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO" ;;
23944 case "${host_os}-${CC}" in
23945 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
23946 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
23947 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
23950 case "${host_os}" in
23952 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
23953 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
23955 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
23958 case "$host_cpu" in
23959 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
23962 case "$host_cpu-$host_os" in
23963 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
23966 case "$host_cpu-$host_vendor-$host_os" in
23967 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
23968 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
23972 # Shared object configuration section. These values are generated by
23973 # ${srcdir}/support/shobj-conf
23975 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
23977 echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
23978 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
23979 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
23987 echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
23988 echo "${ECHO_T}$SHOBJ_STATUS" >&6
23991 # try to create a directory tree if the source is elsewhere
23992 # this should be packaged into a script accessible via ${srcdir}/support
23995 *) for d in doc tests support lib examples; do # dirs
23996 test -d $d || mkdir $d
23998 for ld in readline glob tilde malloc sh termcap; do # libdirs
23999 test -d lib/$ld || mkdir lib/$ld
24001 test -d examples/loadables || mkdir examples/loadables # loadable builtins
24002 test -d examples/loadables/perl || mkdir examples/loadables/perl
24031 #AC_SUBST(ALLOCA_SOURCE)
24032 #AC_SUBST(ALLOCA_OBJECT)
24034 ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile pathnames.h"
24035 ac_config_commands="$ac_config_commands default"
24036 cat >confcache <<\_ACEOF
24037 # This file is a shell script that caches the results of configure
24038 # tests run on this system so they can be shared between configure
24039 # scripts and configure runs, see configure's option --config-cache.
24040 # It is not useful on other systems. If it contains results you don't
24041 # want to keep, you may remove or edit it.
24043 # config.status only pays attention to the cache file if you give it
24044 # the --recheck option to rerun configure.
24046 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24047 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24048 # following values.
24052 # The following way of writing the cache mishandles newlines in values,
24053 # but we know of no workaround that is simple, portable, and efficient.
24054 # So, don't put newlines in cache variables' values.
24055 # Ultrix sh set writes to stderr and can't be redirected directly,
24056 # and sets the high bit in the cache file unless we assign to the vars.
24059 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24061 # `set' does not quote correctly, so add quotes (double-quote
24062 # substitution turns \\\\ into \\, and sed turns \\ into \).
24065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24068 # `set' quotes correctly as required by POSIX, so do not add quotes.
24070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24079 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24082 if test -w $cache_file; then
24083 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24084 cat confcache >$cache_file
24086 echo "not updating unwritable cache $cache_file"
24091 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24092 # Let make expand exec_prefix.
24093 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24095 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24096 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24097 # trailing colons and then remove the whole line if VPATH becomes empty
24098 # (actually we leave an empty line to preserve line numbers).
24099 if test "x$srcdir" = x.; then
24100 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24101 s/:*\$(srcdir):*/:/;
24102 s/:*\${srcdir}:*/:/;
24104 s/^\([^=]*=[ ]*\):*/\1/;
24110 DEFS=-DHAVE_CONFIG_H
24114 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24115 # 1. Remove the extension, and $U if already installed.
24116 ac_i=`echo "$ac_i" |
24117 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24119 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24120 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24122 LIBOBJS=$ac_libobjs
24124 LTLIBOBJS=$ac_ltlibobjs
24128 : ${CONFIG_STATUS=./config.status}
24129 ac_clean_files_save=$ac_clean_files
24130 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24131 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24132 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24133 cat >$CONFIG_STATUS <<_ACEOF
24135 # Generated by $as_me.
24136 # Run this file to recreate the current configuration.
24137 # Compiler output produced by configure, useful for debugging
24138 # configure, is in config.log if it exists.
24141 ac_cs_recheck=false
24143 SHELL=\${CONFIG_SHELL-$SHELL}
24146 cat >>$CONFIG_STATUS <<\_ACEOF
24147 ## --------------------- ##
24148 ## M4sh Initialization. ##
24149 ## --------------------- ##
24151 # Be Bourne compatible
24152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24155 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24156 # is contrary to our usage. Disable this feature.
24157 alias -g '${1+"$@"}'='"$@"'
24158 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24162 # Support unset when possible.
24163 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24170 # Work around bugs in pre-3.0 UWIN ksh.
24171 $as_unset ENV MAIL MAILPATH
24178 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24179 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24180 LC_TELEPHONE LC_TIME
24182 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
24183 eval $as_var=C; export $as_var
24189 # Required to use basename.
24190 if expr a : '\(a\)' >/dev/null 2>&1; then
24196 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24197 as_basename=basename
24203 # Name of the executable.
24204 as_me=`$as_basename "$0" ||
24205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24206 X"$0" : 'X\(//\)$' \| \
24207 X"$0" : 'X\(/\)$' \| \
24208 . : '\(.\)' 2>/dev/null ||
24210 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24211 /^X\/\(\/\/\)$/{ s//\1/; q; }
24212 /^X\/\(\/\).*/{ s//\1/; q; }
24216 # PATH needs CR, and LINENO needs CR and PATH.
24217 # Avoid depending upon Character Ranges.
24218 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24219 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24220 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24221 as_cr_digits='0123456789'
24222 as_cr_alnum=$as_cr_Letters$as_cr_digits
24224 # The user is always right.
24225 if test "${PATH_SEPARATOR+set}" != set; then
24226 echo "#! /bin/sh" >conf$$.sh
24227 echo "exit 0" >>conf$$.sh
24229 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24238 as_lineno_1=$LINENO
24239 as_lineno_2=$LINENO
24240 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24241 test "x$as_lineno_1" != "x$as_lineno_2" &&
24242 test "x$as_lineno_3" = "x$as_lineno_2" || {
24243 # Find who we are. Look in the path if we contain no path at all
24246 *[\\/]* ) as_myself=$0 ;;
24247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24248 for as_dir in $PATH
24251 test -z "$as_dir" && as_dir=.
24252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24257 # We did not find ourselves, most probably we were run as `sh COMMAND'
24258 # in which case we are not to be found in the path.
24259 if test "x$as_myself" = x; then
24262 if test ! -f "$as_myself"; then
24263 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24264 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24265 { (exit 1); exit 1; }; }
24267 case $CONFIG_SHELL in
24269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24270 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24273 test -z "$as_dir" && as_dir=.
24274 for as_base in sh bash ksh sh5; do
24277 if ("$as_dir/$as_base" -c '
24278 as_lineno_1=$LINENO
24279 as_lineno_2=$LINENO
24280 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24281 test "x$as_lineno_1" != "x$as_lineno_2" &&
24282 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24283 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24284 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24285 CONFIG_SHELL=$as_dir/$as_base
24286 export CONFIG_SHELL
24287 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24295 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24296 # uniformly replaced by the line number. The first 'sed' inserts a
24297 # line-number line before each line; the second 'sed' does the real
24298 # work. The second script uses 'N' to pair each line-number line
24299 # with the numbered line, and appends trailing '-' during
24300 # substitution so that $LINENO is not a special case at line end.
24301 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24302 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24303 sed '=' <$as_myself |
24308 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24311 s,^['$as_cr_digits']*\n,,
24312 ' >$as_me.lineno &&
24313 chmod +x $as_me.lineno ||
24314 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24315 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24316 { (exit 1); exit 1; }; }
24318 # Don't try to exec as it changes $[0], causing all sort of problems
24319 # (the dirname of $[0] is not the place where we might find the
24320 # original and so on. Autoconf is especially sensible to this).
24322 # Exit status is that of the last command.
24327 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24328 *c*,-n*) ECHO_N= ECHO_C='
24330 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24331 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24334 if expr a : '\(a\)' >/dev/null 2>&1; then
24340 rm -f conf$$ conf$$.exe conf$$.file
24342 if ln -s conf$$.file conf$$ 2>/dev/null; then
24343 # We could just check for DJGPP; but this test a) works b) is more generic
24344 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24345 if test -f conf$$.exe; then
24346 # Don't use ln at all; we don't have any links
24351 elif ln conf$$.file conf$$ 2>/dev/null; then
24356 rm -f conf$$ conf$$.exe conf$$.file
24358 if mkdir -p . 2>/dev/null; then
24364 as_executable_p="test -f"
24366 # Sed expression to map a string onto a valid CPP name.
24367 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24369 # Sed expression to map a string onto a valid variable name.
24370 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24374 # We need space, tab and new line, in precisely that order.
24384 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24385 # report actual input values of CONFIG_FILES etc. instead of their
24386 # values after options handling. Logging --version etc. is OK.
24390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24391 ## Running $as_me. ##
24396 This file was extended by bash $as_me 3.0-release, which was
24397 generated by GNU Autoconf 2.57. Invocation command line was
24399 CONFIG_FILES = $CONFIG_FILES
24400 CONFIG_HEADERS = $CONFIG_HEADERS
24401 CONFIG_LINKS = $CONFIG_LINKS
24402 CONFIG_COMMANDS = $CONFIG_COMMANDS
24406 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24410 # Files that config.status was made for.
24411 if test -n "$ac_config_files"; then
24412 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24415 if test -n "$ac_config_headers"; then
24416 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24419 if test -n "$ac_config_links"; then
24420 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24423 if test -n "$ac_config_commands"; then
24424 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24427 cat >>$CONFIG_STATUS <<\_ACEOF
24430 \`$as_me' instantiates files from templates according to the
24431 current configuration.
24433 Usage: $0 [OPTIONS] [FILE]...
24435 -h, --help print this help, then exit
24436 -V, --version print version number, then exit
24437 -q, --quiet do not print progress messages
24438 -d, --debug don't remove temporary files
24439 --recheck update $as_me by reconfiguring in the same conditions
24440 --file=FILE[:TEMPLATE]
24441 instantiate the configuration file FILE
24442 --header=FILE[:TEMPLATE]
24443 instantiate the configuration header FILE
24445 Configuration files:
24448 Configuration headers:
24451 Configuration commands:
24454 Report bugs to <bug-autoconf@gnu.org>."
24457 cat >>$CONFIG_STATUS <<_ACEOF
24459 bash config.status 3.0-release
24460 configured by $0, generated by GNU Autoconf 2.57,
24461 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24463 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
24464 Free Software Foundation, Inc.
24465 This config.status script is free software; the Free Software Foundation
24466 gives unlimited permission to copy, distribute and modify it."
24471 cat >>$CONFIG_STATUS <<\_ACEOF
24472 # If no file are specified by the user, then we need to provide default
24473 # value. By we need to know if files were specified by the user.
24479 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24480 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24488 *) # This is not an option, so the user has probably given explicit
24491 ac_need_defaults=false;;
24495 # Handling of the options.
24497 cat >>$CONFIG_STATUS <<\_ACEOF
24498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24500 --version | --vers* | -V )
24501 echo "$ac_cs_version"; exit 0 ;;
24503 # Conflict between --help and --header
24504 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24505 Try \`$0 --help' for more information." >&5
24506 echo "$as_me: error: ambiguous option: $1
24507 Try \`$0 --help' for more information." >&2;}
24508 { (exit 1); exit 1; }; };;
24509 --help | --hel | -h )
24510 echo "$ac_cs_usage"; exit 0 ;;
24511 --debug | --d* | -d )
24513 --file | --fil | --fi | --f )
24515 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24516 ac_need_defaults=false;;
24517 --header | --heade | --head | --hea )
24519 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24520 ac_need_defaults=false;;
24521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24522 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24525 # This is an error.
24526 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24527 Try \`$0 --help' for more information." >&5
24528 echo "$as_me: error: unrecognized option: $1
24529 Try \`$0 --help' for more information." >&2;}
24530 { (exit 1); exit 1; }; } ;;
24532 *) ac_config_targets="$ac_config_targets $1" ;;
24538 ac_configure_extra_args=
24540 if $ac_cs_silent; then
24542 ac_configure_extra_args="$ac_configure_extra_args --silent"
24546 cat >>$CONFIG_STATUS <<_ACEOF
24547 if \$ac_cs_recheck; then
24548 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24549 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24554 cat >>$CONFIG_STATUS <<_ACEOF
24556 # INIT-COMMANDS section.
24559 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24560 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
24562 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24563 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24564 LINGUAS="${LINGUAS-%UNSET%}"
24571 cat >>$CONFIG_STATUS <<\_ACEOF
24572 for ac_config_target in $ac_config_targets
24574 case "$ac_config_target" in
24575 # Handling of arguments.
24576 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24577 "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
24578 "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
24579 "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
24580 "lib/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
24581 "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
24582 "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
24583 "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
24584 "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
24585 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24586 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
24587 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24588 "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
24589 "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
24590 "pathnames.h" ) CONFIG_FILES="$CONFIG_FILES pathnames.h" ;;
24591 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24592 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24593 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24595 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24596 { (exit 1); exit 1; }; };;
24600 # If the user did not use the arguments to specify the items to instantiate,
24601 # then the envvar interface is used. Set only those that are not.
24602 # We use the long form for the default assignment because of an extremely
24603 # bizarre bug on SunOS 4.1.3.
24604 if $ac_need_defaults; then
24605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24610 # Have a temporary directory for convenience. Make it in the build tree
24611 # simply because there is no reason to put it here, and in addition,
24612 # creating and moving files from /tmp can sometimes cause problems.
24613 # Create a temporary directory, and hook for its removal unless debugging.
24616 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24617 trap '{ (exit 1); exit 1; }' 1 2 13 15
24620 # Create a (secure) tmp directory for tmp files.
24623 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24624 test -n "$tmp" && test -d "$tmp"
24627 tmp=./confstat$$-$RANDOM
24628 (umask 077 && mkdir $tmp)
24631 echo "$me: cannot create a temporary directory in ." >&2
24632 { (exit 1); exit 1; }
24637 cat >>$CONFIG_STATUS <<_ACEOF
24640 # CONFIG_FILES section.
24643 # No need to generate the scripts if there are no CONFIG_FILES.
24644 # This happens for instance when ./config.status config.h
24645 if test -n "\$CONFIG_FILES"; then
24646 # Protect against being on the right side of a sed subst in config.status.
24647 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24648 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24649 s,@SHELL@,$SHELL,;t t
24650 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24651 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24652 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24653 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24654 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24655 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24656 s,@exec_prefix@,$exec_prefix,;t t
24657 s,@prefix@,$prefix,;t t
24658 s,@program_transform_name@,$program_transform_name,;t t
24659 s,@bindir@,$bindir,;t t
24660 s,@sbindir@,$sbindir,;t t
24661 s,@libexecdir@,$libexecdir,;t t
24662 s,@datadir@,$datadir,;t t
24663 s,@sysconfdir@,$sysconfdir,;t t
24664 s,@sharedstatedir@,$sharedstatedir,;t t
24665 s,@localstatedir@,$localstatedir,;t t
24666 s,@libdir@,$libdir,;t t
24667 s,@includedir@,$includedir,;t t
24668 s,@oldincludedir@,$oldincludedir,;t t
24669 s,@infodir@,$infodir,;t t
24670 s,@mandir@,$mandir,;t t
24671 s,@build_alias@,$build_alias,;t t
24672 s,@host_alias@,$host_alias,;t t
24673 s,@target_alias@,$target_alias,;t t
24674 s,@DEFS@,$DEFS,;t t
24675 s,@ECHO_C@,$ECHO_C,;t t
24676 s,@ECHO_N@,$ECHO_N,;t t
24677 s,@ECHO_T@,$ECHO_T,;t t
24678 s,@LIBS@,$LIBS,;t t
24679 s,@build@,$build,;t t
24680 s,@build_cpu@,$build_cpu,;t t
24681 s,@build_vendor@,$build_vendor,;t t
24682 s,@build_os@,$build_os,;t t
24683 s,@host@,$host,;t t
24684 s,@host_cpu@,$host_cpu,;t t
24685 s,@host_vendor@,$host_vendor,;t t
24686 s,@host_os@,$host_os,;t t
24687 s,@EMACS@,$EMACS,;t t
24688 s,@lispdir@,$lispdir,;t t
24689 s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t
24690 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
24691 s,@PURIFY@,$PURIFY,;t t
24692 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
24693 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
24694 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
24695 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
24696 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
24697 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
24698 s,@htmldir@,$htmldir,;t t
24699 s,@HELPDIR@,$HELPDIR,;t t
24700 s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
24701 s,@HELPINSTALL@,$HELPINSTALL,;t t
24703 s,@CFLAGS@,$CFLAGS,;t t
24704 s,@LDFLAGS@,$LDFLAGS,;t t
24705 s,@CPPFLAGS@,$CPPFLAGS,;t t
24706 s,@ac_ct_CC@,$ac_ct_CC,;t t
24707 s,@EXEEXT@,$EXEEXT,;t t
24708 s,@OBJEXT@,$OBJEXT,;t t
24710 s,@EGREP@,$EGREP,;t t
24711 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
24712 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24713 s,@STATIC_LD@,$STATIC_LD,;t t
24714 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
24715 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
24716 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
24717 s,@RL_VERSION@,$RL_VERSION,;t t
24718 s,@RL_MAJOR@,$RL_MAJOR,;t t
24719 s,@RL_MINOR@,$RL_MINOR,;t t
24720 s,@READLINE_LIB@,$READLINE_LIB,;t t
24721 s,@READLINE_DEP@,$READLINE_DEP,;t t
24722 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
24723 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
24724 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
24725 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
24726 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
24727 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
24728 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24729 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24730 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24732 s,@RANLIB@,$RANLIB,;t t
24733 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24734 s,@YACC@,$YACC,;t t
24735 s,@SET_MAKE@,$SET_MAKE,;t t
24736 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
24737 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24738 s,@USE_NLS@,$USE_NLS,;t t
24739 s,@MSGFMT@,$MSGFMT,;t t
24740 s,@GMSGFMT@,$GMSGFMT,;t t
24741 s,@XGETTEXT@,$XGETTEXT,;t t
24742 s,@MSGMERGE@,$MSGMERGE,;t t
24743 s,@ALLOCA@,$ALLOCA,;t t
24744 s,@GLIBC21@,$GLIBC21,;t t
24745 s,@LIBICONV@,$LIBICONV,;t t
24746 s,@LTLIBICONV@,$LTLIBICONV,;t t
24747 s,@INTLBISON@,$INTLBISON,;t t
24748 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
24749 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
24750 s,@CATOBJEXT@,$CATOBJEXT,;t t
24751 s,@DATADIRNAME@,$DATADIRNAME,;t t
24752 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24753 s,@GENCAT@,$GENCAT,;t t
24754 s,@INTLOBJS@,$INTLOBJS,;t t
24755 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
24756 s,@INTLLIBS@,$INTLLIBS,;t t
24757 s,@LIBINTL@,$LIBINTL,;t t
24758 s,@LTLIBINTL@,$LTLIBINTL,;t t
24759 s,@POSUB@,$POSUB,;t t
24760 s,@LIBOBJS@,$LIBOBJS,;t t
24761 s,@INTL_DEP@,$INTL_DEP,;t t
24762 s,@INTL_INC@,$INTL_INC,;t t
24763 s,@LIBINTL_H@,$LIBINTL_H,;t t
24764 s,@SIGLIST_O@,$SIGLIST_O,;t t
24765 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
24766 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
24767 s,@JOBS_O@,$JOBS_O,;t t
24768 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
24769 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
24770 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
24771 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
24772 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
24773 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
24774 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
24775 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
24776 s,@incdir@,$incdir,;t t
24777 s,@BUILD_DIR@,$BUILD_DIR,;t t
24778 s,@ARFLAGS@,$ARFLAGS,;t t
24779 s,@BASHVERS@,$BASHVERS,;t t
24780 s,@RELSTATUS@,$RELSTATUS,;t t
24781 s,@DEBUG@,$DEBUG,;t t
24782 s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
24783 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24784 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24785 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24786 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24787 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24792 cat >>$CONFIG_STATUS <<\_ACEOF
24793 # Split the substitutions into bite-sized pieces for seds with
24794 # small command number limits, like on Digital OSF/1 and HP-UX.
24795 ac_max_sed_lines=48
24796 ac_sed_frag=1 # Number of current file.
24797 ac_beg=1 # First line for current file.
24798 ac_end=$ac_max_sed_lines # Line after last line for current file.
24801 while $ac_more_lines; do
24802 if test $ac_beg -gt 1; then
24803 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24805 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24807 if test ! -s $tmp/subs.frag; then
24808 ac_more_lines=false
24810 # The purpose of the label and of the branching condition is to
24811 # speed up the sed processing (if there are no `@' at all, there
24812 # is no need to browse any of the substitutions).
24813 # These are the two extra sed commands mentioned above.
24815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24816 if test -z "$ac_sed_cmds"; then
24817 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24819 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24821 ac_sed_frag=`expr $ac_sed_frag + 1`
24823 ac_end=`expr $ac_end + $ac_max_sed_lines`
24826 if test -z "$ac_sed_cmds"; then
24829 fi # test -n "$CONFIG_FILES"
24832 cat >>$CONFIG_STATUS <<\_ACEOF
24833 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24834 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24836 - | *:- | *:-:* ) # input from stdin
24838 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24839 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24840 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24841 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24842 * ) ac_file_in=$ac_file.in ;;
24845 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24846 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24848 X"$ac_file" : 'X\(//\)[^/]' \| \
24849 X"$ac_file" : 'X\(//\)$' \| \
24850 X"$ac_file" : 'X\(/\)' \| \
24851 . : '\(.\)' 2>/dev/null ||
24853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24855 /^X\(\/\/\)$/{ s//\1/; q; }
24856 /^X\(\/\).*/{ s//\1/; q; }
24858 { if $as_mkdir_p; then
24863 while test ! -d "$as_dir"; do
24864 as_dirs="$as_dir $as_dirs"
24865 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24867 X"$as_dir" : 'X\(//\)[^/]' \| \
24868 X"$as_dir" : 'X\(//\)$' \| \
24869 X"$as_dir" : 'X\(/\)' \| \
24870 . : '\(.\)' 2>/dev/null ||
24872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24874 /^X\(\/\/\)$/{ s//\1/; q; }
24875 /^X\(\/\).*/{ s//\1/; q; }
24878 test ! -n "$as_dirs" || mkdir $as_dirs
24879 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24881 { (exit 1); exit 1; }; }; }
24885 if test "$ac_dir" != .; then
24886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24887 # A "../" for each directory in $ac_dir_suffix.
24888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24890 ac_dir_suffix= ac_top_builddir=
24894 .) # No --srcdir option. We are building in place.
24896 if test -z "$ac_top_builddir"; then
24899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24901 [\\/]* | ?:[\\/]* ) # Absolute path.
24902 ac_srcdir=$srcdir$ac_dir_suffix;
24903 ac_top_srcdir=$srcdir ;;
24904 *) # Relative path.
24905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24908 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24910 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24911 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24912 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24913 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24918 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24921 if test x"$ac_file" != x-; then
24922 { echo "$as_me:$LINENO: creating $ac_file" >&5
24923 echo "$as_me: creating $ac_file" >&6;}
24926 # Let's still pretend it is `configure' which instantiates (i.e., don't
24927 # use $as_me), people would be surprised to read:
24928 # /* config.h. Generated by config.status. */
24929 if test x"$ac_file" = x-; then
24932 configure_input="$ac_file. "
24934 configure_input=$configure_input"Generated from `echo $ac_file_in |
24935 sed 's,.*/,,'` by configure."
24937 # First look for the input files in the build tree, otherwise in the
24939 ac_file_inputs=`IFS=:
24940 for f in $ac_file_in; do
24942 -) echo $tmp/stdin ;;
24944 # Absolute (can't be DOS-style, as IFS=:)
24945 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24946 echo "$as_me: error: cannot find input file: $f" >&2;}
24947 { (exit 1); exit 1; }; }
24950 if test -f "$f"; then
24953 elif test -f "$srcdir/$f"; then
24958 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24959 echo "$as_me: error: cannot find input file: $f" >&2;}
24960 { (exit 1); exit 1; }; }
24963 done` || { (exit 1); exit 1; }
24965 cat >>$CONFIG_STATUS <<_ACEOF
24969 cat >>$CONFIG_STATUS <<\_ACEOF
24971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24972 s,@configure_input@,$configure_input,;t t
24973 s,@srcdir@,$ac_srcdir,;t t
24974 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24975 s,@top_srcdir@,$ac_top_srcdir,;t t
24976 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24977 s,@builddir@,$ac_builddir,;t t
24978 s,@abs_builddir@,$ac_abs_builddir,;t t
24979 s,@top_builddir@,$ac_top_builddir,;t t
24980 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24981 s,@INSTALL@,$ac_INSTALL,;t t
24982 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24984 if test x"$ac_file" != x-; then
24985 mv $tmp/out $ac_file
24993 cat >>$CONFIG_STATUS <<\_ACEOF
24996 # CONFIG_HEADER section.
24999 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25000 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25002 # ac_d sets the value in "#define NAME VALUE" lines.
25003 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25004 ac_dB='[ ].*$,\1#\2'
25007 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25008 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25009 ac_uB='$,\1#\2define\3'
25013 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25014 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25016 - | *:- | *:-:* ) # input from stdin
25018 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25019 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25020 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25021 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25022 * ) ac_file_in=$ac_file.in ;;
25025 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25026 echo "$as_me: creating $ac_file" >&6;}
25028 # First look for the input files in the build tree, otherwise in the
25030 ac_file_inputs=`IFS=:
25031 for f in $ac_file_in; do
25033 -) echo $tmp/stdin ;;
25035 # Absolute (can't be DOS-style, as IFS=:)
25036 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25037 echo "$as_me: error: cannot find input file: $f" >&2;}
25038 { (exit 1); exit 1; }; }
25041 if test -f "$f"; then
25044 elif test -f "$srcdir/$f"; then
25049 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25050 echo "$as_me: error: cannot find input file: $f" >&2;}
25051 { (exit 1); exit 1; }; }
25054 done` || { (exit 1); exit 1; }
25055 # Remove the trailing spaces.
25056 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25060 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25061 # `conftest.undefs', that substitutes the proper values into
25062 # config.h.in to produce config.h. The first handles `#define'
25063 # templates, and the second `#undef' templates.
25064 # And first: Protect against being on the right side of a sed subst in
25065 # config.status. Protect against being in an unquoted here document
25066 # in config.status.
25067 rm -f conftest.defines conftest.undefs
25068 # Using a here document instead of a string reduces the quoting nightmare.
25069 # Putting comments in sed scripts is not portable.
25071 # `end' is used to avoid that the second main sed command (meant for
25072 # 0-ary CPP macros) applies to n-ary macro definitions.
25073 # See the Autoconf documentation for `clear'.
25074 cat >confdef2sed.sed <<\_ACEOF
25079 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25081 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25084 # If some macros were called several times there might be several times
25085 # the same #defines, which is useless. Nevertheless, we may not want to
25086 # sort them, since we want the *last* AC-DEFINE to be honored.
25087 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25088 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25089 rm -f confdef2sed.sed
25091 # This sed command replaces #undef with comments. This is necessary, for
25092 # example, in the case of _POSIX_SOURCE, which is predefined and required
25093 # on some systems where configure will not decide to define it.
25094 cat >>conftest.undefs <<\_ACEOF
25095 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25098 # Break up conftest.defines because some shells have a limit on the size
25099 # of here documents, and old seds have small limits too (100 cmds).
25100 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25101 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25102 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25103 echo ' :' >>$CONFIG_STATUS
25104 rm -f conftest.tail
25105 while grep . conftest.defines >/dev/null
25107 # Write a limited-size here document to $tmp/defines.sed.
25108 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25109 # Speed up: don't consider the non `#define' lines.
25110 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25111 # Work around the forget-to-reset-the-flag bug.
25112 echo 't clr' >>$CONFIG_STATUS
25113 echo ': clr' >>$CONFIG_STATUS
25114 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25116 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25118 mv $tmp/out $tmp/in
25120 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25121 rm -f conftest.defines
25122 mv conftest.tail conftest.defines
25124 rm -f conftest.defines
25125 echo ' fi # grep' >>$CONFIG_STATUS
25126 echo >>$CONFIG_STATUS
25128 # Break up conftest.undefs because some shells have a limit on the size
25129 # of here documents, and old seds have small limits too (100 cmds).
25130 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25131 rm -f conftest.tail
25132 while grep . conftest.undefs >/dev/null
25134 # Write a limited-size here document to $tmp/undefs.sed.
25135 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25136 # Speed up: don't consider the non `#undef'
25137 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25138 # Work around the forget-to-reset-the-flag bug.
25139 echo 't clr' >>$CONFIG_STATUS
25140 echo ': clr' >>$CONFIG_STATUS
25141 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25143 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25145 mv $tmp/out $tmp/in
25147 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25148 rm -f conftest.undefs
25149 mv conftest.tail conftest.undefs
25151 rm -f conftest.undefs
25153 cat >>$CONFIG_STATUS <<\_ACEOF
25154 # Let's still pretend it is `configure' which instantiates (i.e., don't
25155 # use $as_me), people would be surprised to read:
25156 # /* config.h. Generated by config.status. */
25157 if test x"$ac_file" = x-; then
25158 echo "/* Generated by configure. */" >$tmp/config.h
25160 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25162 cat $tmp/in >>$tmp/config.h
25164 if test x"$ac_file" != x-; then
25165 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25166 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25167 echo "$as_me: $ac_file is unchanged" >&6;}
25169 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25171 X"$ac_file" : 'X\(//\)[^/]' \| \
25172 X"$ac_file" : 'X\(//\)$' \| \
25173 X"$ac_file" : 'X\(/\)' \| \
25174 . : '\(.\)' 2>/dev/null ||
25176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25178 /^X\(\/\/\)$/{ s//\1/; q; }
25179 /^X\(\/\).*/{ s//\1/; q; }
25181 { if $as_mkdir_p; then
25186 while test ! -d "$as_dir"; do
25187 as_dirs="$as_dir $as_dirs"
25188 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25190 X"$as_dir" : 'X\(//\)[^/]' \| \
25191 X"$as_dir" : 'X\(//\)$' \| \
25192 X"$as_dir" : 'X\(/\)' \| \
25193 . : '\(.\)' 2>/dev/null ||
25195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25197 /^X\(\/\/\)$/{ s//\1/; q; }
25198 /^X\(\/\).*/{ s//\1/; q; }
25201 test ! -n "$as_dirs" || mkdir $as_dirs
25202 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25203 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25204 { (exit 1); exit 1; }; }; }
25207 mv $tmp/config.h $ac_file
25211 rm -f $tmp/config.h
25215 cat >>$CONFIG_STATUS <<\_ACEOF
25218 # CONFIG_COMMANDS section.
25220 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25221 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25222 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25223 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25224 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25225 X"$ac_dest" : 'X\(//\)[^/]' \| \
25226 X"$ac_dest" : 'X\(//\)$' \| \
25227 X"$ac_dest" : 'X\(/\)' \| \
25228 . : '\(.\)' 2>/dev/null ||
25230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25232 /^X\(\/\/\)$/{ s//\1/; q; }
25233 /^X\(\/\).*/{ s//\1/; q; }
25237 if test "$ac_dir" != .; then
25238 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25239 # A "../" for each directory in $ac_dir_suffix.
25240 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25242 ac_dir_suffix= ac_top_builddir=
25246 .) # No --srcdir option. We are building in place.
25248 if test -z "$ac_top_builddir"; then
25251 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25253 [\\/]* | ?:[\\/]* ) # Absolute path.
25254 ac_srcdir=$srcdir$ac_dir_suffix;
25255 ac_top_srcdir=$srcdir ;;
25256 *) # Relative path.
25257 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25258 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25260 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25262 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25263 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25264 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25265 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25268 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25269 echo "$as_me: executing $ac_dest commands" >&6;}
25272 for ac_file in $CONFIG_FILES; do
25273 # Support "outfile[:infile[:infile...]]"
25275 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25277 # PO directories have a Makefile.in generated from Makefile.in.in.
25278 case "$ac_file" in */Makefile.in)
25279 # Adjust a relative srcdir.
25280 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25281 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25282 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25283 # In autoconf-2.13 it is called $ac_given_srcdir.
25284 # In autoconf-2.50 it is called $srcdir.
25285 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25286 case "$ac_given_srcdir" in
25287 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25288 /*) top_srcdir="$ac_given_srcdir" ;;
25289 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25291 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25292 rm -f "$ac_dir/POTFILES"
25293 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25294 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25295 POMAKEFILEDEPS="POTFILES.in"
25296 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
25297 # on $ac_dir but don't depend on user-specified configuration
25299 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25300 # The LINGUAS file contains the set of available languages.
25301 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25302 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25304 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25305 # Hide the ALL_LINGUAS assigment from automake.
25306 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25307 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25309 # The set of available languages was given in configure.in.
25310 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25312 case "$ac_given_srcdir" in
25314 *) srcdirpre='$(srcdir)/' ;;
25320 for lang in $ALL_LINGUAS; do
25321 POFILES="$POFILES $srcdirpre$lang.po"
25322 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25323 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25324 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25326 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25327 # environment variable.
25329 if test -n "$ALL_LINGUAS"; then
25330 for presentlang in $ALL_LINGUAS; do
25332 if test "%UNSET%" != "$LINGUAS"; then
25333 desiredlanguages="$LINGUAS"
25335 desiredlanguages="$ALL_LINGUAS"
25337 for desiredlang in $desiredlanguages; do
25338 # Use the presentlang catalog if desiredlang is
25339 # a. equal to presentlang, or
25340 # b. a variant of presentlang (because in this case,
25341 # presentlang can be used as a fallback for messages
25342 # which are not translated in the desiredlang catalog).
25343 case "$desiredlang" in
25344 "$presentlang"*) useit=yes;;
25347 if test $useit = yes; then
25348 INST_LINGUAS="$INST_LINGUAS $presentlang"
25353 if test -n "$INST_LINGUAS"; then
25354 for lang in $INST_LINGUAS; do
25355 CATALOGS="$CATALOGS $lang.gmo"
25358 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25359 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
25360 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25361 if test -f "$f"; then
25363 *.orig | *.bak | *~) ;;
25364 *) cat "$f" >> "$ac_dir/Makefile" ;;
25373 # Makefile uses this timestamp file to record whether config.h is up to date.
25374 echo timestamp > stamp-h
25380 cat >>$CONFIG_STATUS <<\_ACEOF
25382 { (exit 0); exit 0; }
25384 chmod +x $CONFIG_STATUS
25385 ac_clean_files=$ac_clean_files_save
25388 # configure is writing to config.log, and then calls config.status.
25389 # config.status does its own redirection, appending to config.log.
25390 # Unfortunately, on DOS this fails, as config.log is still kept open
25391 # by configure, so config.status won't be able to write to it; its
25392 # output is simply discarded. So we exec the FD to /dev/null,
25393 # effectively closing config.log, so it can be properly (re)opened and
25394 # appended to by config.status. When coming back to configure, we
25395 # need to make the FD available again.
25396 if test "$no_create" != yes; then
25398 ac_config_status_args=
25399 test "$silent" = yes &&
25400 ac_config_status_args="$ac_config_status_args --quiet"
25402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25405 # would make configure fail if this is the last instruction.
25406 $ac_cs_success || { (exit 1); exit 1; }