2 @%:@ From configure.in for Bash 3.2, version 3.186.
3 @%:@ Guess values for system-dependent variables and create Makefiles.
4 @%:@ Generated by GNU Autoconf 2.59 for bash 3.2-devel.
6 @%:@ Report bugs to <bug-bash@gnu.org>.
8 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
9 @%:@ This configure script is free software; the Free Software Foundation
10 @%:@ gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
272 PACKAGE_TARNAME='bash'
273 PACKAGE_VERSION='3.2-devel'
274 PACKAGE_STRING='bash 3.2-devel'
275 PACKAGE_BUGREPORT='bug-bash@gnu.org'
277 ac_unique_file="shell.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 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 HELPSTRINGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CROSS_COMPILE SIGNAMES_H SIGNAMES_O 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 TILDE_LIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB YACC SET_MAKE MAKE_SHELL SIZE 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 LIB@&t@OBJS 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'
318 # Initialize some variables set by options.
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name=s,x,x,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
433 -help | --help | --hel | --he | -h)
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 # Obsolete; use --without-fp.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
563 -site=* | --site=* | --sit=*)
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 -version | --version | --versio | --versi | --vers | -V)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
757 ac_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
758 ac_cv_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
759 ac_cv_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
760 ac_env_CC_set=${CC+set}
762 ac_cv_env_CC_set=${CC+set}
763 ac_cv_env_CC_value=$CC
764 ac_env_CFLAGS_set=${CFLAGS+set}
765 ac_env_CFLAGS_value=$CFLAGS
766 ac_cv_env_CFLAGS_set=${CFLAGS+set}
767 ac_cv_env_CFLAGS_value=$CFLAGS
768 ac_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_env_LDFLAGS_value=$LDFLAGS
770 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
771 ac_cv_env_LDFLAGS_value=$LDFLAGS
772 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_env_CPPFLAGS_value=$CPPFLAGS
774 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
775 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures bash 3.2-devel to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive ) echo "Configuration of bash 3.2-devel:";;
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-minimal-config a minimal sh-like configuration
857 --enable-alias enable shell aliases
858 --enable-arith-for-command
859 enable arithmetic for command
860 --enable-array-variables
861 include shell array variables
862 --enable-bang-history turn on csh-style history substitution
863 --enable-brace-expansion
864 include brace expansion
865 --enable-command-timing enable the time reserved word and command timing
866 --enable-cond-command enable the conditional command
867 --enable-cond-regexp enable extgended regular expression matching in
869 --enable-debugger enable support for bash debugger
870 --enable-directory-stack
871 enable builtins pushd/popd/dirs
872 --enable-disabled-builtins
873 allow disabled builtins to still be invoked
874 --enable-dparen-arithmetic
875 include ((...)) command
876 --enable-extended-glob include ksh-style extended pattern matching
877 --enable-help-builtin include the help builtin
878 --enable-history turn on command history
879 --enable-job-control enable job control features
880 --enable-multibyte enable multibyte characters if OS supports them
881 --enable-net-redirections
882 enable /dev/tcp/host/port redirection
883 --enable-process-substitution
884 enable process substitution
885 --enable-progcomp enable programmable completion and the complete
887 --enable-prompt-string-decoding
888 turn on escape character decoding in prompts
889 --enable-readline turn on command line editing
890 --enable-restricted enable a restricted shell
891 --enable-select include select command
892 --enable-separate-helpfiles
893 use external files for help builtin documentation
894 --enable-single-help-strings
895 store help documentation as a single string to ease
897 --enable-strict-posix-default
898 configure bash to be posix-conformant by default
899 --enable-usg-echo-default
900 a synonym for --enable-xpg-echo-default
901 --enable-xpg-echo-default
902 make the echo builtin expand escape sequences by
904 --enable-mem-scramble scramble memory on calls to malloc and free
905 --enable-profiling allow profiling with gprof
906 --enable-static-link link bash statically, for use as a root shell
907 --disable-largefile omit support for large files
908 --disable-nls do not use Native Language Support
909 --disable-rpath do not hardcode runtime library paths
912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
914 --with-lispdir override the default lisp directory
915 --with-afs if you are running AFS
916 --with-bash-malloc use the Bash version of malloc
917 --with-curses use the curses library instead of the termcap
919 --with-gnu-malloc synonym for --with-bash-malloc
920 --with-installed-readline
921 use a version of the readline library that is
923 --with-purecov configure to postprocess with pure coverage
924 --with-purify configure to postprocess with purify
925 --with-gnu-ld assume the C compiler uses GNU ld default=no
926 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
927 --without-libiconv-prefix don't search for libiconv in includedir and libdir
928 --with-included-gettext use the GNU gettext library included here
929 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
930 --without-libintl-prefix don't search for libintl in includedir and libdir
932 Some influential environment variables:
934 location of bash debugger initialization file
935 CC C compiler command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
938 nonstandard directory <lib dir>
939 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
940 headers in a nonstandard directory <include dir>
943 Use these variables to override the choices made by `configure' or to help
944 it to find libraries and programs with nonstandard names/locations.
946 Report bugs to <bug-bash@gnu.org>.
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
962 ac_dir_suffix= ac_top_builddir=
966 .) # No --srcdir option. We are building in place.
968 if test -z "$ac_top_builddir"; then
971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
981 # Do not use `cd foo && pwd` to compute absolute paths, because
982 # the directories may not exist.
984 .) ac_abs_builddir="$ac_dir";;
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1031 $ac_configure --help
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1042 bash configure 3.2-devel
1043 generated by GNU Autoconf 2.59
1045 Copyright (C) 2003 Free Software Foundation, Inc.
1046 This configure script is free software; the Free Software Foundation
1047 gives unlimited permission to copy, distribute and modify it.
1053 This file contains any messages produced by compilers while
1054 running configure, to aid debugging if configure makes a mistake.
1056 It was created by bash $as_me 3.2-devel, which was
1057 generated by GNU Autoconf 2.59. Invocation command line was
1064 @%:@@%:@ --------- @%:@@%:@
1065 @%:@@%:@ Platform. @%:@@%:@
1066 @%:@@%:@ --------- @%:@@%:@
1068 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1069 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1070 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1071 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1072 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1074 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1075 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1077 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1078 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1079 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1080 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1081 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1082 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1083 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1091 test -z "$as_dir" && as_dir=.
1092 echo "PATH: $as_dir"
1100 @%:@@%:@ ----------- @%:@@%:@
1101 @%:@@%:@ Core tests. @%:@@%:@
1102 @%:@@%:@ ----------- @%:@@%:@
1107 # Keep a trace of the command line.
1108 # Strip out --no-create and --no-recursion so they do not pile up.
1109 # Strip out --silent because we don't want to record it for future runs.
1110 # Also quote any args containing shell meta-characters.
1111 # Make two passes to allow for proper duplicate-argument suppression.
1116 ac_must_keep_next=false
1122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1126 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1127 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1130 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1132 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1133 if test $ac_must_keep_next = true; then
1134 ac_must_keep_next=false # Got value, back to normal.
1137 *=* | --config-cache | -C | -disable-* | --disable-* \
1138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1140 | -with-* | --with-* | -without-* | --without-* | --x)
1141 case "$ac_configure_args0 " in
1142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1145 -* ) ac_must_keep_next=true ;;
1148 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1149 # Get rid of the leading space.
1155 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1156 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1158 # When interrupted or exit'd, cleanup temporary files, and complete
1159 # config.log. We remove comments because anyway the quotes in there
1160 # would cause problems or look ugly.
1161 # WARNING: Be sure not to use single quotes in there, as some shells,
1162 # such as our DU 5.0 friend, will then `close' the trap.
1163 trap 'exit_status=$?
1164 # Save into config.log some information that might help in debugging.
1169 @%:@@%:@ ---------------- @%:@@%:@
1170 @%:@@%:@ Cache variables. @%:@@%:@
1171 @%:@@%:@ ---------------- @%:@@%:@
1174 # The following way of writing the cache mishandles newlines in values,
1177 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1180 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1185 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1192 @%:@@%:@ ----------------- @%:@@%:@
1193 @%:@@%:@ Output variables. @%:@@%:@
1194 @%:@@%:@ ----------------- @%:@@%:@
1197 for ac_var in $ac_subst_vars
1199 eval ac_val=$`echo $ac_var`
1200 echo "$ac_var='"'"'$ac_val'"'"'"
1204 if test -n "$ac_subst_files"; then
1206 @%:@@%:@ ------------- @%:@@%:@
1207 @%:@@%:@ Output files. @%:@@%:@
1208 @%:@@%:@ ------------- @%:@@%:@
1211 for ac_var in $ac_subst_files
1213 eval ac_val=$`echo $ac_var`
1214 echo "$ac_var='"'"'$ac_val'"'"'"
1219 if test -s confdefs.h; then
1221 @%:@@%:@ ----------- @%:@@%:@
1222 @%:@@%:@ confdefs.h. @%:@@%:@
1223 @%:@@%:@ ----------- @%:@@%:@
1226 sed "/^$/d" confdefs.h | sort
1229 test "$ac_signal" != 0 &&
1230 echo "$as_me: caught signal $ac_signal"
1231 echo "$as_me: exit $exit_status"
1233 rm -f core *.core &&
1234 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1237 for ac_signal in 1 2 13 15; do
1238 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1242 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1243 rm -rf conftest* confdefs.h
1244 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1247 # Predefined preprocessor variables.
1249 cat >>confdefs.h <<_ACEOF
1250 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1254 cat >>confdefs.h <<_ACEOF
1255 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1259 cat >>confdefs.h <<_ACEOF
1260 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1264 cat >>confdefs.h <<_ACEOF
1265 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1269 cat >>confdefs.h <<_ACEOF
1270 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1274 # Let the site file select an alternate cache file if it wants to.
1275 # Prefer explicitly selected file to automatically selected ones.
1276 if test -z "$CONFIG_SITE"; then
1277 if test "x$prefix" != xNONE; then
1278 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1280 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1283 for ac_site_file in $CONFIG_SITE; do
1284 if test -r "$ac_site_file"; then
1285 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1286 echo "$as_me: loading site script $ac_site_file" >&6;}
1287 sed 's/^/| /' "$ac_site_file" >&5
1292 if test -r "$cache_file"; then
1293 # Some versions of bash will fail to source /dev/null (special
1294 # files actually), so we avoid doing that.
1295 if test -f "$cache_file"; then
1296 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1297 echo "$as_me: loading cache $cache_file" >&6;}
1299 [\\/]* | ?:[\\/]* ) . $cache_file;;
1300 *) . ./$cache_file;;
1304 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1305 echo "$as_me: creating cache $cache_file" >&6;}
1309 # Check that the precious variables saved in the cache have kept the same
1311 ac_cache_corrupted=false
1312 for ac_var in `(set) 2>&1 |
1313 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1314 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1315 eval ac_new_set=\$ac_env_${ac_var}_set
1316 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1317 eval ac_new_val="\$ac_env_${ac_var}_value"
1318 case $ac_old_set,$ac_new_set in
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1324 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1325 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1326 ac_cache_corrupted=: ;;
1329 if test "x$ac_old_val" != "x$ac_new_val"; then
1330 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1331 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1332 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1333 echo "$as_me: former value: $ac_old_val" >&2;}
1334 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1335 echo "$as_me: current value: $ac_new_val" >&2;}
1336 ac_cache_corrupted=:
1339 # Pass precious variables to config.status.
1340 if test "$ac_new_set" = set; then
1342 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1343 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1344 *) ac_arg=$ac_var=$ac_new_val ;;
1346 case " $ac_configure_args " in
1347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1348 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1352 if $ac_cache_corrupted; then
1353 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1354 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1355 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1356 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1357 { (exit 1); exit 1; }; }
1361 ac_cpp='$CPP $CPPFLAGS'
1362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397 for ac_dir in ./support $srcdir/./support; do
1398 if test -f $ac_dir/install-sh; then
1400 ac_install_sh="$ac_aux_dir/install-sh -c"
1402 elif test -f $ac_dir/install.sh; then
1404 ac_install_sh="$ac_aux_dir/install.sh -c"
1406 elif test -f $ac_dir/shtool; then
1408 ac_install_sh="$ac_aux_dir/shtool install -c"
1412 if test -z "$ac_aux_dir"; then
1413 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1414 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1415 { (exit 1); exit 1; }; }
1417 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1421 ac_config_headers="$ac_config_headers config.h"
1427 case "$RELSTATUS" in
1428 alp*|bet*|dev*|rc*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1429 *) DEBUG= MALLOC_DEBUG= ;;
1432 # Make sure we can run config.sub.
1433 $ac_config_sub sun4 >/dev/null 2>&1 ||
1434 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1435 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1436 { (exit 1); exit 1; }; }
1438 echo "$as_me:$LINENO: checking build system type" >&5
1439 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1440 if test "${ac_cv_build+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 ac_cv_build_alias=$build_alias
1444 test -z "$ac_cv_build_alias" &&
1445 ac_cv_build_alias=`$ac_config_guess`
1446 test -z "$ac_cv_build_alias" &&
1447 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1448 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1449 { (exit 1); exit 1; }; }
1450 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1451 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1453 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1457 echo "${ECHO_T}$ac_cv_build" >&6
1459 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464 echo "$as_me:$LINENO: checking host system type" >&5
1465 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1466 if test "${ac_cv_host+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_host_alias=$host_alias
1470 test -z "$ac_cv_host_alias" &&
1471 ac_cv_host_alias=$ac_cv_build_alias
1472 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1473 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1475 { (exit 1); exit 1; }; }
1478 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1479 echo "${ECHO_T}$ac_cv_host" >&6
1481 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1492 opt_with_installed_readline=no
1496 case "${host_cpu}-${host_os}" in
1497 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
1498 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
1499 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
1500 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
1501 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
1502 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
1503 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
1504 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
1505 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
1506 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
1507 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
1508 *-aix*) opt_bash_malloc=no ;; # AIX machines
1509 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
1510 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
1511 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
1512 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
1513 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
1514 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
1515 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
1516 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1517 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
1518 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
1519 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
1522 # memory scrambling on free()
1523 case "${host_os}" in
1524 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
1525 *) opt_memscramble=yes ;;
1529 # Check whether --with-lispdir or --without-lispdir was given.
1530 if test "${with_lispdir+set}" = set; then
1531 withval="$with_lispdir"
1533 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1534 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1535 echo "$as_me:$LINENO: result: $lispdir" >&5
1536 echo "${ECHO_T}$lispdir" >&6
1539 # If set to t, that means we are running in a shell under Emacs.
1540 # If you have an Emacs named "t", then use the full path.
1541 test x"$EMACS" = xt && EMACS=
1542 for ac_prog in emacs xemacs
1544 # Extract the first word of "$ac_prog", so it can be a program name with args.
1545 set dummy $ac_prog; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_EMACS+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 if test -n "$EMACS"; then
1552 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_EMACS="$ac_prog"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 EMACS=$ac_cv_prog_EMACS
1571 if test -n "$EMACS"; then
1572 echo "$as_me:$LINENO: result: $EMACS" >&5
1573 echo "${ECHO_T}$EMACS" >&6
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1579 test -n "$EMACS" && break
1581 test -n "$EMACS" || EMACS="no"
1583 if test $EMACS != "no"; then
1584 if test x${lispdir+set} != xset; then
1585 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1586 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1587 if test "${am_cv_lispdir+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 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;}'`
1591 if test -z "$am_cv_lispdir"; then
1592 am_cv_lispdir='${datadir}/emacs/site-lisp'
1596 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
1597 echo "${ECHO_T}$am_cv_lispdir" >&6
1598 lispdir="$am_cv_lispdir"
1608 # Check whether --with-afs or --without-afs was given.
1609 if test "${with_afs+set}" = set; then
1614 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1615 if test "${with_bash_malloc+set}" = set; then
1616 withval="$with_bash_malloc"
1617 opt_bash_malloc=$withval
1620 # Check whether --with-curses or --without-curses was given.
1621 if test "${with_curses+set}" = set; then
1622 withval="$with_curses"
1626 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1627 if test "${with_gnu_malloc+set}" = set; then
1628 withval="$with_gnu_malloc"
1629 opt_bash_malloc=$withval
1632 # Check whether --with-installed-readline or --without-installed-readline was given.
1633 if test "${with_installed_readline+set}" = set; then
1634 withval="$with_installed_readline"
1635 opt_with_installed_readline=$withval
1638 # Check whether --with-purecov or --without-purecov was given.
1639 if test "${with_purecov+set}" = set; then
1640 withval="$with_purecov"
1641 opt_purecov=$withval
1644 # Check whether --with-purify or --without-purify was given.
1645 if test "${with_purify+set}" = set; then
1646 withval="$with_purify"
1650 if test "$opt_bash_malloc" = yes; then
1651 MALLOC_TARGET=malloc
1654 MALLOC_LIB='-lmalloc'
1655 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1656 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1657 MALLOC_DEP='$(MALLOC_LIBRARY)'
1659 cat >>confdefs.h <<\_ACEOF
1660 @%:@define USING_BASH_MALLOC 1
1670 if test "$opt_purify" = yes; then
1672 cat >>confdefs.h <<\_ACEOF
1673 @%:@define DISABLE_MALLOC_WRAPPERS 1
1680 if test "$opt_purecov" = yes; then
1681 PURIFY="${PURIFY}purecov"
1684 if test "$opt_afs" = yes; then
1685 cat >>confdefs.h <<\_ACEOF
1691 if test "$opt_curses" = yes; then
1695 if test -z "${DEBUGGER_START_FILE}"; then
1696 DEBUGGER_START_FILE=${ac_default_prefix}/lib/bashdb/bashdb-main.inc
1699 opt_minimal_config=no
1705 opt_bang_history=yes
1708 opt_process_subst=yes
1709 opt_prompt_decoding=yes
1712 opt_array_variables=yes
1713 opt_dparen_arith=yes
1714 opt_extended_glob=yes
1715 opt_brace_expansion=yes
1716 opt_disabled_builtins=no
1717 opt_command_timing=yes
1720 opt_cond_command=yes
1722 opt_arith_for_command=yes
1725 opt_separate_help=no
1728 opt_single_longdoc_strings=yes
1733 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1734 if test "${enable_minimal_config+set}" = set; then
1735 enableval="$enable_minimal_config"
1736 opt_minimal_config=$enableval
1739 if test $opt_minimal_config = yes; then
1740 opt_job_control=no opt_alias=no opt_readline=no
1741 opt_history=no opt_bang_history=no opt_dirstack=no
1742 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1743 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1744 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1745 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1746 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
1747 opt_multibyte=yes opt_cond_regexp=no
1750 # Check whether --enable-alias or --disable-alias was given.
1751 if test "${enable_alias+set}" = set; then
1752 enableval="$enable_alias"
1753 opt_alias=$enableval
1755 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1756 if test "${enable_arith_for_command+set}" = set; then
1757 enableval="$enable_arith_for_command"
1758 opt_arith_for_command=$enableval
1760 # Check whether --enable-array-variables or --disable-array-variables was given.
1761 if test "${enable_array_variables+set}" = set; then
1762 enableval="$enable_array_variables"
1763 opt_array_variables=$enableval
1765 # Check whether --enable-bang-history or --disable-bang-history was given.
1766 if test "${enable_bang_history+set}" = set; then
1767 enableval="$enable_bang_history"
1768 opt_bang_history=$enableval
1770 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1771 if test "${enable_brace_expansion+set}" = set; then
1772 enableval="$enable_brace_expansion"
1773 opt_brace_expansion=$enableval
1775 # Check whether --enable-command-timing or --disable-command-timing was given.
1776 if test "${enable_command_timing+set}" = set; then
1777 enableval="$enable_command_timing"
1778 opt_command_timing=$enableval
1780 # Check whether --enable-cond-command or --disable-cond-command was given.
1781 if test "${enable_cond_command+set}" = set; then
1782 enableval="$enable_cond_command"
1783 opt_cond_command=$enableval
1785 # Check whether --enable-cond-regexp or --disable-cond-regexp was given.
1786 if test "${enable_cond_regexp+set}" = set; then
1787 enableval="$enable_cond_regexp"
1788 opt_cond_regexp=$enableval
1790 # Check whether --enable-debugger or --disable-debugger was given.
1791 if test "${enable_debugger+set}" = set; then
1792 enableval="$enable_debugger"
1793 opt_debugger=$enableval
1795 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1796 if test "${enable_directory_stack+set}" = set; then
1797 enableval="$enable_directory_stack"
1798 opt_dirstack=$enableval
1800 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1801 if test "${enable_disabled_builtins+set}" = set; then
1802 enableval="$enable_disabled_builtins"
1803 opt_disabled_builtins=$enableval
1805 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1806 if test "${enable_dparen_arithmetic+set}" = set; then
1807 enableval="$enable_dparen_arithmetic"
1808 opt_dparen_arith=$enableval
1810 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1811 if test "${enable_extended_glob+set}" = set; then
1812 enableval="$enable_extended_glob"
1813 opt_extended_glob=$enableval
1815 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1816 if test "${enable_help_builtin+set}" = set; then
1817 enableval="$enable_help_builtin"
1820 # Check whether --enable-history or --disable-history was given.
1821 if test "${enable_history+set}" = set; then
1822 enableval="$enable_history"
1823 opt_history=$enableval
1825 # Check whether --enable-job-control or --disable-job-control was given.
1826 if test "${enable_job_control+set}" = set; then
1827 enableval="$enable_job_control"
1828 opt_job_control=$enableval
1830 # Check whether --enable-multibyte or --disable-multibyte was given.
1831 if test "${enable_multibyte+set}" = set; then
1832 enableval="$enable_multibyte"
1833 opt_multibyte=$enableval
1835 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1836 if test "${enable_net_redirections+set}" = set; then
1837 enableval="$enable_net_redirections"
1838 opt_net_redirs=$enableval
1840 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1841 if test "${enable_process_substitution+set}" = set; then
1842 enableval="$enable_process_substitution"
1843 opt_process_subst=$enableval
1845 # Check whether --enable-progcomp or --disable-progcomp was given.
1846 if test "${enable_progcomp+set}" = set; then
1847 enableval="$enable_progcomp"
1848 opt_progcomp=$enableval
1850 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1851 if test "${enable_prompt_string_decoding+set}" = set; then
1852 enableval="$enable_prompt_string_decoding"
1853 opt_prompt_decoding=$enableval
1855 # Check whether --enable-readline or --disable-readline was given.
1856 if test "${enable_readline+set}" = set; then
1857 enableval="$enable_readline"
1858 opt_readline=$enableval
1860 # Check whether --enable-restricted or --disable-restricted was given.
1861 if test "${enable_restricted+set}" = set; then
1862 enableval="$enable_restricted"
1863 opt_restricted=$enableval
1865 # Check whether --enable-select or --disable-select was given.
1866 if test "${enable_select+set}" = set; then
1867 enableval="$enable_select"
1868 opt_select=$enableval
1870 # Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1871 if test "${enable_separate_helpfiles+set}" = set; then
1872 enableval="$enable_separate_helpfiles"
1873 opt_separate_help=$enableval
1875 # Check whether --enable-single-help-strings or --disable-single-help-strings was given.
1876 if test "${enable_single_help_strings+set}" = set; then
1877 enableval="$enable_single_help_strings"
1878 opt_single_longdoc_strings=$enableval
1880 # Check whether --enable-strict-posix-default or --disable-strict-posix-default was given.
1881 if test "${enable_strict_posix_default+set}" = set; then
1882 enableval="$enable_strict_posix_default"
1883 opt_strict_posix=$enableval
1885 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1886 if test "${enable_usg_echo_default+set}" = set; then
1887 enableval="$enable_usg_echo_default"
1888 opt_xpg_echo=$enableval
1890 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1891 if test "${enable_xpg_echo_default+set}" = set; then
1892 enableval="$enable_xpg_echo_default"
1893 opt_xpg_echo=$enableval
1896 # Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1897 if test "${enable_mem_scramble+set}" = set; then
1898 enableval="$enable_mem_scramble"
1899 opt_memscramble=$enableval
1901 # Check whether --enable-profiling or --disable-profiling was given.
1902 if test "${enable_profiling+set}" = set; then
1903 enableval="$enable_profiling"
1904 opt_profiling=$enableval
1906 # Check whether --enable-static-link or --disable-static-link was given.
1907 if test "${enable_static_link+set}" = set; then
1908 enableval="$enable_static_link"
1909 opt_static_link=$enableval
1914 if test $opt_alias = yes; then
1915 cat >>confdefs.h <<\_ACEOF
1920 if test $opt_dirstack = yes; then
1921 cat >>confdefs.h <<\_ACEOF
1922 @%:@define PUSHD_AND_POPD 1
1926 if test $opt_restricted = yes; then
1927 cat >>confdefs.h <<\_ACEOF
1928 @%:@define RESTRICTED_SHELL 1
1932 if test $opt_process_subst = yes; then
1933 cat >>confdefs.h <<\_ACEOF
1934 @%:@define PROCESS_SUBSTITUTION 1
1938 if test $opt_prompt_decoding = yes; then
1939 cat >>confdefs.h <<\_ACEOF
1940 @%:@define PROMPT_STRING_DECODE 1
1944 if test $opt_select = yes; then
1945 cat >>confdefs.h <<\_ACEOF
1946 @%:@define SELECT_COMMAND 1
1950 if test $opt_help = yes; then
1951 cat >>confdefs.h <<\_ACEOF
1952 @%:@define HELP_BUILTIN 1
1956 if test $opt_array_variables = yes; then
1957 cat >>confdefs.h <<\_ACEOF
1958 @%:@define ARRAY_VARS 1
1962 if test $opt_dparen_arith = yes; then
1963 cat >>confdefs.h <<\_ACEOF
1964 @%:@define DPAREN_ARITHMETIC 1
1968 if test $opt_brace_expansion = yes; then
1969 cat >>confdefs.h <<\_ACEOF
1970 @%:@define BRACE_EXPANSION 1
1974 if test $opt_disabled_builtins = yes; then
1975 cat >>confdefs.h <<\_ACEOF
1976 @%:@define DISABLED_BUILTINS 1
1980 if test $opt_command_timing = yes; then
1981 cat >>confdefs.h <<\_ACEOF
1982 @%:@define COMMAND_TIMING 1
1986 if test $opt_xpg_echo = yes ; then
1987 cat >>confdefs.h <<\_ACEOF
1988 @%:@define DEFAULT_ECHO_TO_XPG 1
1992 if test $opt_strict_posix = yes; then
1993 cat >>confdefs.h <<\_ACEOF
1994 @%:@define STRICT_POSIX 1
1998 if test $opt_extended_glob = yes ; then
1999 cat >>confdefs.h <<\_ACEOF
2000 @%:@define EXTENDED_GLOB 1
2004 if test $opt_cond_command = yes ; then
2005 cat >>confdefs.h <<\_ACEOF
2006 @%:@define COND_COMMAND 1
2010 if test $opt_cond_regexp = yes ; then
2011 cat >>confdefs.h <<\_ACEOF
2012 @%:@define COND_REGEXP 1
2016 if test $opt_arith_for_command = yes; then
2017 cat >>confdefs.h <<\_ACEOF
2018 @%:@define ARITH_FOR_COMMAND 1
2022 if test $opt_net_redirs = yes; then
2023 cat >>confdefs.h <<\_ACEOF
2024 @%:@define NETWORK_REDIRECTIONS 1
2028 if test $opt_progcomp = yes; then
2029 cat >>confdefs.h <<\_ACEOF
2030 @%:@define PROGRAMMABLE_COMPLETION 1
2034 if test $opt_multibyte = no; then
2035 cat >>confdefs.h <<\_ACEOF
2036 @%:@define NO_MULTIBYTE_SUPPORT 1
2040 if test $opt_debugger = yes; then
2041 cat >>confdefs.h <<\_ACEOF
2042 @%:@define DEBUGGER 1
2047 if test $opt_memscramble = yes; then
2048 cat >>confdefs.h <<\_ACEOF
2049 @%:@define MEMSCRAMBLE 1
2054 if test "$opt_minimal_config" = yes; then
2055 TESTSCRIPT=run-minimal
2060 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2061 if test "$opt_separate_help" != no; then
2062 if test "$opt_separate_help" = "yes" ; then
2063 HELPDIR='${datadir}/bash'
2065 HELPDIR=$opt_separate_help
2067 HELPDIRDEFINE='-H ${HELPDIR}'
2068 HELPINSTALL='install-help'
2071 if test "$opt_single_longdoc_strings" != "yes"; then
2093 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 if test -n "$ac_tool_prefix"; then
2102 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2104 echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106 if test "${ac_cv_prog_CC+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 if test -n "$CC"; then
2110 ac_cv_prog_CC="$CC" # Let the user override the test.
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 if test -n "$CC"; then
2130 echo "$as_me:$LINENO: result: $CC" >&5
2131 echo "${ECHO_T}$CC" >&6
2133 echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6
2138 if test -z "$ac_cv_prog_CC"; then
2140 # Extract the first word of "gcc", so it can be a program name with args.
2141 set dummy gcc; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$ac_ct_CC"; then
2148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_ac_ct_CC="gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2167 if test -n "$ac_ct_CC"; then
2168 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169 echo "${ECHO_T}$ac_ct_CC" >&6
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2180 if test -z "$CC"; then
2181 if test -n "$ac_tool_prefix"; then
2182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2183 set dummy ${ac_tool_prefix}cc; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_CC="${ac_tool_prefix}cc"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209 if test -n "$CC"; then
2210 echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2213 echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2218 if test -z "$ac_cv_prog_CC"; then
2220 # Extract the first word of "cc", so it can be a program name with args.
2221 set dummy cc; ac_word=$2
2222 echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 if test -n "$ac_ct_CC"; then
2228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237 ac_cv_prog_ac_ct_CC="cc"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2247 if test -n "$ac_ct_CC"; then
2248 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2249 echo "${ECHO_T}$ac_ct_CC" >&6
2251 echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2261 if test -z "$CC"; then
2262 # Extract the first word of "cc", so it can be a program name with args.
2263 set dummy cc; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_prog_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 if test -n "$CC"; then
2270 ac_cv_prog_CC="$CC" # Let the user override the test.
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2281 ac_prog_rejected=yes
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 if test $ac_prog_rejected = yes; then
2292 # We found a bogon in the path, so make sure we never use it.
2293 set dummy $ac_cv_prog_CC
2295 if test $@%:@ != 0; then
2296 # We chose a different compiler from the bogus one.
2297 # However, it has the same basename, so the bogon will be chosen
2298 # first if we set CC to just the basename; use the full file name.
2300 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2306 if test -n "$CC"; then
2307 echo "$as_me:$LINENO: result: $CC" >&5
2308 echo "${ECHO_T}$CC" >&6
2310 echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6
2315 if test -z "$CC"; then
2316 if test -n "$ac_tool_prefix"; then
2319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_CC+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 if test -n "$CC"; then
2327 ac_cv_prog_CC="$CC" # Let the user override the test.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 if test -n "$CC"; then
2347 echo "$as_me:$LINENO: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6
2350 echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2354 test -n "$CC" && break
2357 if test -z "$CC"; then
2361 # Extract the first word of "$ac_prog", so it can be a program name with args.
2362 set dummy $ac_prog; ac_word=$2
2363 echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_ac_ct_CC="$ac_prog"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6
2392 echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6
2396 test -n "$ac_ct_CC" && break
2405 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: no acceptable C compiler found in \$PATH
2408 See \`config.log' for more details." >&2;}
2409 { (exit 1); exit 1; }; }
2411 # Provide some information about the compiler.
2412 echo "$as_me:$LINENO:" \
2413 "checking for C compiler version" >&5
2414 ac_compiler=`set X $ac_compile; echo $2`
2415 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2416 (eval $ac_compiler --version </dev/null >&5) 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }
2420 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2421 (eval $ac_compiler -v </dev/null >&5) 2>&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }
2425 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2426 (eval $ac_compiler -V </dev/null >&5) 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }
2431 cat >conftest.$ac_ext <<_ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2446 ac_clean_files_save=$ac_clean_files
2447 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2448 # Try to create an executable without -o first, disregard a.out.
2449 # It will help us diagnose broken compilers, and finding out an intuition
2451 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2452 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2453 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2454 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2455 (eval $ac_link_default) 2>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 # Find the output, starting from the most likely. This scheme is
2460 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2463 # Be careful to initialize this variable, since it used to be cached.
2464 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2466 # b.out is created by i960 compilers.
2467 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2469 test -f "$ac_file" || continue
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2474 # This is the source file.
2477 # We found the default executable, but exeext='' is most
2481 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2482 # FIXME: I believe we export ac_cv_exeext for Libtool,
2483 # but it would be cool to find out if it's true. Does anybody
2484 # maintain Libtool? --akim.
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2495 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: C compiler cannot create executables
2498 See \`config.log' for more details." >&2;}
2499 { (exit 77); exit 77; }; }
2502 ac_exeext=$ac_cv_exeext
2503 echo "$as_me:$LINENO: result: $ac_file" >&5
2504 echo "${ECHO_T}$ac_file" >&6
2506 # Check the compiler produces executables we can run. If not, either
2507 # the compiler is broken, or we cross compile.
2508 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2509 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2510 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2511 # If not cross compiling, check that we can run a simple program.
2512 if test "$cross_compiling" != yes; then
2513 if { ac_try='./$ac_file'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2521 if test "$cross_compiling" = maybe; then
2524 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot run C compiled programs.
2528 If you meant to cross compile, use \`--host'.
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2534 echo "$as_me:$LINENO: result: yes" >&5
2535 echo "${ECHO_T}yes" >&6
2537 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2538 ac_clean_files=$ac_clean_files_save
2539 # Check the compiler produces executables we can run. If not, either
2540 # the compiler is broken, or we cross compile.
2541 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2542 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2543 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2544 echo "${ECHO_T}$cross_compiling" >&6
2546 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2547 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2549 (eval $ac_link) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; then
2553 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2554 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2555 # work properly (i.e., refer to `conftest.exe'), while it won't with
2557 for ac_file in conftest.exe conftest conftest.*; do
2558 test -f "$ac_file" || continue
2560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2561 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2568 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2571 See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2575 rm -f conftest$ac_cv_exeext
2576 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2577 echo "${ECHO_T}$ac_cv_exeext" >&6
2579 rm -f conftest.$ac_ext
2580 EXEEXT=$ac_cv_exeext
2582 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2583 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2584 if test "${ac_cv_objext+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 cat >conftest.$ac_ext <<_ACEOF
2590 cat confdefs.h >>conftest.$ac_ext
2591 cat >>conftest.$ac_ext <<_ACEOF
2592 /* end confdefs.h. */
2602 rm -f conftest.o conftest.obj
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; then
2608 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2611 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2619 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2620 See \`config.log' for more details." >&5
2621 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2622 See \`config.log' for more details." >&2;}
2623 { (exit 1); exit 1; }; }
2626 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2628 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2629 echo "${ECHO_T}$ac_cv_objext" >&6
2630 OBJEXT=$ac_cv_objext
2632 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2633 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2634 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 cat >conftest.$ac_ext <<_ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2659 grep -v '^ *+' conftest.er1 >conftest.err
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2688 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2689 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2690 GCC=`test $ac_compiler_gnu = yes && echo yes`
2691 ac_test_CFLAGS=${CFLAGS+set}
2692 ac_save_CFLAGS=$CFLAGS
2694 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2695 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2696 if test "${ac_cv_prog_cc_g+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 cat >conftest.$ac_ext <<_ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>conftest.er1
2718 grep -v '^ *+' conftest.er1 >conftest.err
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -z "$ac_c_werror_flag"
2724 || test ! -s conftest.err'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2747 if test "$ac_test_CFLAGS" = set; then
2748 CFLAGS=$ac_save_CFLAGS
2749 elif test $ac_cv_prog_cc_g = yes; then
2750 if test "$GCC" = yes; then
2756 if test "$GCC" = yes; then
2762 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2763 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2764 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 ac_cv_prog_cc_stdc=no
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2777 #include <sys/types.h>
2778 #include <sys/stat.h>
2779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2780 struct buf { int x; };
2781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782 static char *e (p, i)
2788 static char *f (char * (*g) (char **, int), char **p, ...)
2793 s = g (p, va_arg (v,int));
2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2799 function prototypes and stuff, but not '\xHH' hex character constants.
2800 These don't provoke an error unfortunately, instead are silently treated
2801 as 'x'. The following induces an error, until -std1 is added to get
2802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2803 array size at least. It's necessary to write '\x00'==0 to get something
2804 that's true only with -std1. */
2805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2807 int test (int i, double x);
2808 struct s1 {int (*f) (int a);};
2809 struct s2 {int (*f) (double a);};
2810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2821 # Don't try gcc -ansi; that turns off useful extensions and
2822 # breaks some systems' header files.
2823 # AIX -qlanglvl=ansi
2824 # Ultrix and OSF/1 -std1
2825 # HP-UX 10.20 and later -Ae
2826 # HP-UX older versions -Aa -D_HPUX_SOURCE
2827 # SVR4 -Xc -D__EXTENSIONS__
2828 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2830 CC="$ac_save_CC $ac_arg"
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_prog_cc_stdc=$ac_arg
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.err conftest.$ac_objext
2862 rm -f conftest.$ac_ext conftest.$ac_objext
2867 case "x$ac_cv_prog_cc_stdc" in
2869 echo "$as_me:$LINENO: result: none needed" >&5
2870 echo "${ECHO_T}none needed" >&6 ;;
2872 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2874 CC="$CC $ac_cv_prog_cc_stdc" ;;
2877 # Some people use a C++ compiler to compile C. Since we use `exit',
2878 # in C++ we need to declare it. In case someone uses the same compiler
2879 # for both compiling C and C++ we need to have the C++ compiler decide
2880 # the declaration of exit, since it's the most demanding environment.
2881 cat >conftest.$ac_ext <<_ACEOF
2882 @%:@ifndef __cplusplus
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -z "$ac_c_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 for ac_declaration in \
2910 'extern "C" void std::exit (int) throw (); using std::exit;' \
2911 'extern "C" void std::exit (int); using std::exit;' \
2912 'extern "C" void exit (int) throw ();' \
2913 'extern "C" void exit (int);' \
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2923 @%:@include <stdlib.h>
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_c_werror_flag"
2942 || test ! -s conftest.err'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 cat >conftest.$ac_ext <<_ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>conftest.er1
2981 grep -v '^ *+' conftest.er1 >conftest.err
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3008 if test -n "$ac_declaration"; then
3009 echo '#ifdef __cplusplus' >>confdefs.h
3010 echo $ac_declaration >>confdefs.h
3011 echo '#endif' >>confdefs.h
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3030 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3031 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 ac_check_lib_save_LIBS=$LIBS
3035 LIBS="-lcposix $LIBS"
3036 cat >conftest.$ac_ext <<_ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3043 /* Override any gcc2 internal prototype to avoid an error. */
3047 /* We use char because int might match the return type of a gcc2
3048 builtin and then its argument prototype would still apply. */
3058 rm -f conftest.$ac_objext conftest$ac_exeext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3060 (eval $ac_link) 2>conftest.er1
3062 grep -v '^ *+' conftest.er1 >conftest.err
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag"
3068 || test ! -s conftest.err'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest$ac_exeext'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 ac_cv_lib_cposix_strerror=yes
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 ac_cv_lib_cposix_strerror=no
3087 rm -f conftest.err conftest.$ac_objext \
3088 conftest$ac_exeext conftest.$ac_ext
3089 LIBS=$ac_check_lib_save_LIBS
3091 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3092 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3093 if test $ac_cv_lib_cposix_strerror = yes; then
3094 LIBS="$LIBS -lcposix"
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3105 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3106 # On Suns, sometimes $CPP names a directory.
3107 if test -n "$CPP" && test -d "$CPP"; then
3110 if test -z "$CPP"; then
3111 if test "${ac_cv_prog_CPP+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 # Double quotes because CPP needs to be expanded
3115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3118 for ac_c_preproc_warn_flag in '' yes
3120 # Use a header file that comes with gcc, so configuring glibc
3121 # with a fresh cross-compiler works.
3122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123 # <limits.h> exists even on freestanding compilers.
3124 # On the NeXT, cc -E runs the code through the compiler's parser,
3125 # not just through cpp. "Syntax error" is here to catch this case.
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3133 @%:@ include <limits.h>
3135 @%:@ include <assert.h>
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null; then
3147 if test -s conftest.err; then
3148 ac_cpp_err=$ac_c_preproc_warn_flag
3149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3156 if test -z "$ac_cpp_err"; then
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 # Broken: fails on valid input.
3165 rm -f conftest.err conftest.$ac_ext
3167 # OK, works on sane cases. Now check whether non-existent headers
3168 # can be detected and how.
3169 cat >conftest.$ac_ext <<_ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3175 @%:@include <ac_nonexistent.h>
3177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } >/dev/null; then
3185 if test -s conftest.err; then
3186 ac_cpp_err=$ac_c_preproc_warn_flag
3187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3194 if test -z "$ac_cpp_err"; then
3195 # Broken: success on invalid input.
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 # Passes both tests.
3205 rm -f conftest.err conftest.$ac_ext
3208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3209 rm -f conftest.err conftest.$ac_ext
3210 if $ac_preproc_ok; then
3222 echo "$as_me:$LINENO: result: $CPP" >&5
3223 echo "${ECHO_T}$CPP" >&6
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 @%:@ include <limits.h>
3242 @%:@ include <assert.h>
3246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3249 grep -v '^ *+' conftest.er1 >conftest.err
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } >/dev/null; then
3254 if test -s conftest.err; then
3255 ac_cpp_err=$ac_c_preproc_warn_flag
3256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263 if test -z "$ac_cpp_err"; then
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 # Broken: fails on valid input.
3272 rm -f conftest.err conftest.$ac_ext
3274 # OK, works on sane cases. Now check whether non-existent headers
3275 # can be detected and how.
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 @%:@include <ac_nonexistent.h>
3284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301 if test -z "$ac_cpp_err"; then
3302 # Broken: success on invalid input.
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 # Passes both tests.
3312 rm -f conftest.err conftest.$ac_ext
3315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3316 rm -f conftest.err conftest.$ac_ext
3317 if $ac_preproc_ok; then
3320 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3321 See \`config.log' for more details." >&5
3322 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3323 See \`config.log' for more details." >&2;}
3324 { (exit 1); exit 1; }; }
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 echo "$as_me:$LINENO: checking for egrep" >&5
3335 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3336 if test "${ac_cv_prog_egrep+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3340 then ac_cv_prog_egrep='grep -E'
3341 else ac_cv_prog_egrep='egrep'
3344 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3345 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3346 EGREP=$ac_cv_prog_egrep
3349 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3351 if test "${ac_cv_header_stdc+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 cat >conftest.$ac_ext <<_ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 ac_cv_header_stdc=yes
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 ac_cv_header_stdc=no
3402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3404 if test $ac_cv_header_stdc = yes; then
3405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 $EGREP "memchr" >/dev/null 2>&1; then
3419 ac_cv_header_stdc=no
3425 if test $ac_cv_header_stdc = yes; then
3426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3437 $EGREP "free" >/dev/null 2>&1; then
3440 ac_cv_header_stdc=no
3446 if test $ac_cv_header_stdc = yes; then
3447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3448 if test "$cross_compiling" = yes; then
3451 cat >conftest.$ac_ext <<_ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3458 #if ((' ' & 0x0FF) == 0x020)
3459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3462 # define ISLOWER(c) \
3463 (('a' <= (c) && (c) <= 'i') \
3464 || ('j' <= (c) && (c) <= 'r') \
3465 || ('s' <= (c) && (c) <= 'z'))
3466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3474 for (i = 0; i < 256; i++)
3475 if (XOR (islower (i), ISLOWER (i))
3476 || toupper (i) != TOUPPER (i))
3481 rm -f conftest$ac_exeext
3482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3483 (eval $ac_link) 2>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3494 echo "$as_me: program exited with status $ac_status" >&5
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3499 ac_cv_header_stdc=no
3501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3505 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3506 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3507 if test $ac_cv_header_stdc = yes; then
3509 cat >>confdefs.h <<\_ACEOF
3510 @%:@define STDC_HEADERS 1
3515 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3525 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3526 inttypes.h stdint.h unistd.h
3528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3529 echo "$as_me:$LINENO: checking for $ac_header" >&5
3530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 cat >conftest.$ac_ext <<_ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3540 $ac_includes_default
3542 @%:@include <$ac_header>
3544 rm -f conftest.$ac_objext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546 (eval $ac_compile) 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
3553 { ac_try='test -z "$ac_c_werror_flag"
3554 || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566 eval "$as_ac_Header=yes"
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 eval "$as_ac_Header=no"
3573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3578 cat >>confdefs.h <<_ACEOF
3579 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3587 if test "${ac_cv_header_minix_config_h+set}" = set; then
3588 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3589 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3590 if test "${ac_cv_header_minix_config_h+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3594 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3596 # Is the header compilable?
3597 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3598 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 $ac_includes_default
3606 @%:@include <minix/config.h>
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3612 grep -v '^ *+' conftest.er1 >conftest.err
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_header_compiler=yes
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_header_compiler=no
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3639 echo "${ECHO_T}$ac_header_compiler" >&6
3641 # Is the header present?
3642 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3643 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3644 cat >conftest.$ac_ext <<_ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 @%:@include <minix/config.h>
3652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3655 grep -v '^ *+' conftest.er1 >conftest.err
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } >/dev/null; then
3660 if test -s conftest.err; then
3661 ac_cpp_err=$ac_c_preproc_warn_flag
3662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3669 if test -z "$ac_cpp_err"; then
3670 ac_header_preproc=yes
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 ac_header_preproc=no
3677 rm -f conftest.err conftest.$ac_ext
3678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3679 echo "${ECHO_T}$ac_header_preproc" >&6
3681 # So? What about this header?
3682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3684 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3685 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3686 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3687 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3688 ac_header_preproc=yes
3691 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3692 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3693 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3694 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3695 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3696 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3698 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3700 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3702 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3705 @%:@@%:@ ------------------------------- @%:@@%:@
3706 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
3707 @%:@@%:@ ------------------------------- @%:@@%:@
3710 sed "s/^/$as_me: WARNING: /" >&2
3713 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3714 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3715 if test "${ac_cv_header_minix_config_h+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 ac_cv_header_minix_config_h=$ac_header_preproc
3720 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3721 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3724 if test $ac_cv_header_minix_config_h = yes; then
3731 if test "$MINIX" = yes; then
3733 cat >>confdefs.h <<\_ACEOF
3734 @%:@define _POSIX_SOURCE 1
3738 cat >>confdefs.h <<\_ACEOF
3739 @%:@define _POSIX_1_SOURCE 2
3743 cat >>confdefs.h <<\_ACEOF
3750 # Check whether --enable-largefile or --disable-largefile was given.
3751 if test "${enable_largefile+set}" = set; then
3752 enableval="$enable_largefile"
3755 if test "$enable_largefile" != no; then
3757 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3758 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3759 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 ac_cv_sys_largefile_CC=no
3763 if test "$GCC" != yes; then
3766 # IRIX 6.2 and later do not support large files by default,
3767 # so use the C compiler's -n32 option if that helps.
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 @%:@include <sys/types.h>
3775 /* Check that off_t can represent 2**63 - 1 correctly.
3776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3777 since some C++ compilers masquerading as C compilers
3778 incorrectly reject 9223372036854775807. */
3779 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3781 && LARGE_OFF_T % 2147483647 == 1)
3791 rm -f conftest.$ac_objext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793 (eval $ac_compile) 2>conftest.er1
3795 grep -v '^ *+' conftest.er1 >conftest.err
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } &&
3800 { ac_try='test -z "$ac_c_werror_flag"
3801 || test ! -s conftest.err'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; } &&
3807 { ac_try='test -s conftest.$ac_objext'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3819 rm -f conftest.err conftest.$ac_objext
3821 rm -f conftest.$ac_objext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823 (eval $ac_compile) 2>conftest.er1
3825 grep -v '^ *+' conftest.er1 >conftest.err
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -z "$ac_c_werror_flag"
3831 || test ! -s conftest.err'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 ac_cv_sys_largefile_CC=' -n32'; break
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3849 rm -f conftest.err conftest.$ac_objext
3853 rm -f conftest.$ac_ext
3856 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3857 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3858 if test "$ac_cv_sys_largefile_CC" != no; then
3859 CC=$CC$ac_cv_sys_largefile_CC
3862 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3863 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3864 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 ac_cv_sys_file_offset_bits=no
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 @%:@include <sys/types.h>
3876 /* Check that off_t can represent 2**63 - 1 correctly.
3877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3878 since some C++ compilers masquerading as C compilers
3879 incorrectly reject 9223372036854775807. */
3880 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3882 && LARGE_OFF_T % 2147483647 == 1)
3892 rm -f conftest.$ac_objext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>conftest.er1
3896 grep -v '^ *+' conftest.er1 >conftest.err
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_c_werror_flag"
3902 || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest.$ac_objext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3921 cat >conftest.$ac_ext <<_ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3927 @%:@define _FILE_OFFSET_BITS 64
3928 @%:@include <sys/types.h>
3929 /* Check that off_t can represent 2**63 - 1 correctly.
3930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3931 since some C++ compilers masquerading as C compilers
3932 incorrectly reject 9223372036854775807. */
3933 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3935 && LARGE_OFF_T % 2147483647 == 1)
3945 rm -f conftest.$ac_objext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947 (eval $ac_compile) 2>conftest.er1
3949 grep -v '^ *+' conftest.er1 >conftest.err
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try='test -z "$ac_c_werror_flag"
3955 || test ! -s conftest.err'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try='test -s conftest.$ac_objext'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3967 ac_cv_sys_file_offset_bits=64; break
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3977 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3978 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3979 if test "$ac_cv_sys_file_offset_bits" != no; then
3981 cat >>confdefs.h <<_ACEOF
3982 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3987 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3988 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3989 if test "${ac_cv_sys_large_files+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 ac_cv_sys_large_files=no
3994 cat >conftest.$ac_ext <<_ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4000 @%:@include <sys/types.h>
4001 /* Check that off_t can represent 2**63 - 1 correctly.
4002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4003 since some C++ compilers masquerading as C compilers
4004 incorrectly reject 9223372036854775807. */
4005 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4007 && LARGE_OFF_T % 2147483647 == 1)
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 @%:@define _LARGE_FILES 1
4053 @%:@include <sys/types.h>
4054 /* Check that off_t can represent 2**63 - 1 correctly.
4055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4056 since some C++ compilers masquerading as C compilers
4057 incorrectly reject 9223372036854775807. */
4058 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4060 && LARGE_OFF_T % 2147483647 == 1)
4070 rm -f conftest.$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>conftest.er1
4074 grep -v '^ *+' conftest.er1 >conftest.err
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -z "$ac_c_werror_flag"
4080 || test ! -s conftest.err'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 ac_cv_sys_large_files=1; break
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4102 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4103 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4104 if test "$ac_cv_sys_large_files" != no; then
4106 cat >>confdefs.h <<_ACEOF
4107 @%:@define _LARGE_FILES $ac_cv_sys_large_files
4117 SIGNAMES_H=lsignames.h
4121 if test "x$cross_compiling" = "xyes"; then
4124 cross_cache=${srcdir}/cross-build/cygwin32.cache
4127 cross_cache=${srcdir}/cross-build/cygwin32.cache
4130 cross_cache=${srcdir}/cross-build/x86-beos.cache
4132 *) echo "configure: cross-compiling for $host is not supported" >&2
4135 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4136 echo "loading cross-build cache file ${cross_cache}"
4140 SIGNAMES_O='signames.o'
4141 CROSS_COMPILE='-DCROSS_COMPILING'
4147 if test -z "$CC_FOR_BUILD"; then
4148 if test "x$cross_compiling" = "xno"; then
4149 CC_FOR_BUILD='$(CC)'
4157 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
4159 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
4161 if test "$opt_profiling" = "yes"; then
4165 *) opt_static_link=yes ;;
4167 DEBUG= MALLOC_DEBUG=
4170 if test "$opt_static_link" = yes; then
4171 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4172 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
4176 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
4181 if test "X$cross_compiling" = "Xno"; then
4182 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
4183 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4185 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
4186 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
4189 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
4200 if test $ac_cv_c_compiler_gnu = yes; then
4201 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4202 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4203 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 ac_pattern="Autoconf.*'x'"
4207 cat >conftest.$ac_ext <<_ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4218 ac_cv_prog_gcc_traditional=yes
4220 ac_cv_prog_gcc_traditional=no
4225 if test $ac_cv_prog_gcc_traditional = no; then
4226 cat >conftest.$ac_ext <<_ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4236 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4237 ac_cv_prog_gcc_traditional=yes
4243 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4244 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4245 if test $ac_cv_prog_gcc_traditional = yes; then
4246 CC="$CC -traditional"
4252 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
4254 # If the user specified --with-installed-readline=PREFIX and PREFIX
4255 # is not `yes', set ac_cv_rl_prefix to PREFIX
4256 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
4259 if test "X$bash_cv_termcap_lib" = "X"; then
4262 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4263 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4266 if test "${bash_cv_termcap_lib+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 echo "$as_me:$LINENO: checking for tgetent" >&5
4270 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
4271 if test "${ac_cv_func_tgetent+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 cat >conftest.$ac_ext <<_ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
4281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4282 #define tgetent innocuous_tgetent
4284 /* System header to define __stub macros and hopefully few prototypes,
4285 which can conflict with char tgetent (); below.
4286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287 <limits.h> exists even on freestanding compilers. */
4290 # include <limits.h>
4292 # include <assert.h>
4297 /* Override any gcc2 internal prototype to avoid an error. */
4302 /* We use char because int might match the return type of a gcc2
4303 builtin and then its argument prototype would still apply. */
4305 /* The GNU C library defines this for functions which it implements
4306 to always fail with ENOSYS. Some functions are actually named
4307 something starting with __ and the normal name is an alias. */
4308 #if defined (__stub_tgetent) || defined (__stub___tgetent)
4311 char (*f) () = tgetent;
4320 return f != tgetent;
4325 rm -f conftest.$ac_objext conftest$ac_exeext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4327 (eval $ac_link) 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try='test -z "$ac_c_werror_flag"
4335 || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_func_tgetent=yes
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 ac_cv_func_tgetent=no
4354 rm -f conftest.err conftest.$ac_objext \
4355 conftest$ac_exeext conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
4358 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
4359 if test $ac_cv_func_tgetent = yes; then
4360 bash_cv_termcap_lib=libc
4362 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
4363 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4364 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 ac_check_lib_save_LIBS=$LIBS
4368 LIBS="-ltermcap $LIBS"
4369 cat >conftest.$ac_ext <<_ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4376 /* Override any gcc2 internal prototype to avoid an error. */
4380 /* We use char because int might match the return type of a gcc2
4381 builtin and then its argument prototype would still apply. */
4391 rm -f conftest.$ac_objext conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>conftest.er1
4395 grep -v '^ *+' conftest.er1 >conftest.err
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -z "$ac_c_werror_flag"
4401 || test ! -s conftest.err'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try='test -s conftest$ac_exeext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 ac_cv_lib_termcap_tgetent=yes
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4418 ac_cv_lib_termcap_tgetent=no
4420 rm -f conftest.err conftest.$ac_objext \
4421 conftest$ac_exeext conftest.$ac_ext
4422 LIBS=$ac_check_lib_save_LIBS
4424 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
4425 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4426 if test $ac_cv_lib_termcap_tgetent = yes; then
4427 bash_cv_termcap_lib=libtermcap
4429 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
4430 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
4431 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 ac_check_lib_save_LIBS=$LIBS
4435 LIBS="-ltinfo $LIBS"
4436 cat >conftest.$ac_ext <<_ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4443 /* Override any gcc2 internal prototype to avoid an error. */
4447 /* We use char because int might match the return type of a gcc2
4448 builtin and then its argument prototype would still apply. */
4458 rm -f conftest.$ac_objext conftest$ac_exeext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4460 (eval $ac_link) 2>conftest.er1
4462 grep -v '^ *+' conftest.er1 >conftest.err
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -z "$ac_c_werror_flag"
4468 || test ! -s conftest.err'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; } &&
4474 { ac_try='test -s conftest$ac_exeext'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4480 ac_cv_lib_tinfo_tgetent=yes
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 ac_cv_lib_tinfo_tgetent=no
4487 rm -f conftest.err conftest.$ac_objext \
4488 conftest$ac_exeext conftest.$ac_ext
4489 LIBS=$ac_check_lib_save_LIBS
4491 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
4492 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
4493 if test $ac_cv_lib_tinfo_tgetent = yes; then
4494 bash_cv_termcap_lib=libtinfo
4496 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
4497 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
4498 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 ac_check_lib_save_LIBS=$LIBS
4502 LIBS="-lcurses $LIBS"
4503 cat >conftest.$ac_ext <<_ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4510 /* Override any gcc2 internal prototype to avoid an error. */
4514 /* We use char because int might match the return type of a gcc2
4515 builtin and then its argument prototype would still apply. */
4525 rm -f conftest.$ac_objext conftest$ac_exeext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527 (eval $ac_link) 2>conftest.er1
4529 grep -v '^ *+' conftest.er1 >conftest.err
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_c_werror_flag"
4535 || test ! -s conftest.err'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; } &&
4541 { ac_try='test -s conftest$ac_exeext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 ac_cv_lib_curses_tgetent=yes
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 ac_cv_lib_curses_tgetent=no
4554 rm -f conftest.err conftest.$ac_objext \
4555 conftest$ac_exeext conftest.$ac_ext
4556 LIBS=$ac_check_lib_save_LIBS
4558 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
4559 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4560 if test $ac_cv_lib_curses_tgetent = yes; then
4561 bash_cv_termcap_lib=libcurses
4563 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4564 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4565 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 ac_check_lib_save_LIBS=$LIBS
4569 LIBS="-lncurses $LIBS"
4570 cat >conftest.$ac_ext <<_ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4577 /* Override any gcc2 internal prototype to avoid an error. */
4581 /* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */
4592 rm -f conftest.$ac_objext conftest$ac_exeext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4594 (eval $ac_link) 2>conftest.er1
4596 grep -v '^ *+' conftest.er1 >conftest.err
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -z "$ac_c_werror_flag"
4602 || test ! -s conftest.err'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try='test -s conftest$ac_exeext'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_cv_lib_ncurses_tgetent=yes
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4619 ac_cv_lib_ncurses_tgetent=no
4621 rm -f conftest.err conftest.$ac_objext \
4622 conftest$ac_exeext conftest.$ac_ext
4623 LIBS=$ac_check_lib_save_LIBS
4625 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4626 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4627 if test $ac_cv_lib_ncurses_tgetent = yes; then
4628 bash_cv_termcap_lib=libncurses
4630 bash_cv_termcap_lib=gnutermcap
4643 if test "X$_bash_needmsg" = "Xyes"; then
4644 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4645 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4647 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
4648 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
4649 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
4650 LDFLAGS="$LDFLAGS -L./lib/termcap"
4651 TERMCAP_LIB="./lib/termcap/libtermcap.a"
4652 TERMCAP_DEP="./lib/termcap/libtermcap.a"
4653 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
4654 TERMCAP_LIB=-ltermcap
4656 elif test $bash_cv_termcap_lib = libtinfo; then
4659 elif test $bash_cv_termcap_lib = libncurses; then
4660 TERMCAP_LIB=-lncurses
4662 elif test $bash_cv_termcap_lib = libc; then
4666 TERMCAP_LIB=-lcurses
4673 echo "$as_me:$LINENO: checking version of installed readline library" >&5
4674 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
4676 # What a pain in the ass this is.
4678 # save cpp and ld options
4679 _save_CFLAGS="$CFLAGS"
4680 _save_LDFLAGS="$LDFLAGS"
4683 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
4684 # allows the caller to do something like $_rl_prefix=$withval if the user
4685 # specifies --with-installed-readline=PREFIX as an argument to configure
4687 if test -z "$ac_cv_rl_prefix"; then
4688 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
4691 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
4692 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
4694 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
4695 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
4696 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
4698 if test "${ac_cv_rl_version+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 if test "$cross_compiling" = yes; then
4702 ac_cv_rl_version='4.2'
4704 cat >conftest.$ac_ext <<_ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4712 #include <readline/readline.h>
4714 extern int rl_gnu_readline_p;
4719 fp = fopen("conftest.rlv", "w");
4722 if (rl_gnu_readline_p != 1)
4723 fprintf(fp, "0.0\n");
4725 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
4731 rm -f conftest$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733 (eval $ac_link) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_cv_rl_version=`cat conftest.rlv`
4744 echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4749 ac_cv_rl_version='0.0'
4751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4756 CFLAGS="$_save_CFLAGS"
4757 LDFLAGS="$_save_LDFLAGS"
4764 case "$ac_cv_rl_version" in
4765 2*|3*|4*|5*|6*|7*|8*|9*)
4766 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
4767 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
4773 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
4774 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
4780 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
4781 [0-9]) _RL_MINOR=0$RL_MINOR ;;
4785 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
4787 # Readline versions greater than 4.2 have these defines in readline.h
4789 if test $ac_cv_rl_version = '0.0' ; then
4790 { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
4791 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
4792 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
4793 # set these for use by the caller
4794 RL_PREFIX=$ac_cv_rl_prefix
4795 RL_LIBDIR=$ac_cv_rl_libdir
4796 RL_INCLUDEDIR=$ac_cv_rl_includedir
4797 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4798 echo "${ECHO_T}$ac_cv_rl_version" >&6
4802 cat >>confdefs.h <<_ACEOF
4803 @%:@define RL_READLINE_VERSION $RL_VERSION
4807 cat >>confdefs.h <<_ACEOF
4808 @%:@define RL_VERSION_MAJOR $RL_MAJOR
4812 cat >>confdefs.h <<_ACEOF
4813 @%:@define RL_VERSION_MINOR $RL_MINOR
4821 # set these for use by the caller
4822 RL_PREFIX=$ac_cv_rl_prefix
4823 RL_LIBDIR=$ac_cv_rl_libdir
4824 RL_INCLUDEDIR=$ac_cv_rl_includedir
4826 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4827 echo "${ECHO_T}$ac_cv_rl_version" >&6
4832 case "$ac_cv_rl_version" in
4834 *) opt_with_installed_readline=no
4835 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
4836 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
4837 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
4838 echo "$as_me: WARNING: using private bash version" >&2;}
4844 if test $opt_readline = yes; then
4845 cat >>confdefs.h <<\_ACEOF
4846 @%:@define READLINE 1
4849 if test "$opt_with_installed_readline" != "no" ; then
4850 case "$opt_with_installed_readline" in
4852 *) case "$RL_INCLUDEDIR" in
4854 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4859 READLINE_LIB=-lreadline
4860 # section for OS versions that don't allow unresolved symbols
4861 # to be compiled into dynamic libraries.
4863 cygwin*) TILDE_LIB= ;;
4866 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4867 READLINE_DEP='$(READLINE_LIBRARY)'
4868 # section for OS versions that ship an older/broken version of
4869 # readline as a standard dynamic library and don't allow a
4870 # static version specified as -llibname to override the
4872 case "${host_os}" in
4873 darwin8*) READLINE_LIB='${READLINE_LIBRARY}' ;;
4874 *) READLINE_LIB=-lreadline ;;
4878 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4879 READLINE_LIB= READLINE_DEP=
4881 if test $opt_history = yes || test $opt_bang_history = yes; then
4882 if test $opt_history = yes; then
4883 cat >>confdefs.h <<\_ACEOF
4884 @%:@define HISTORY 1
4888 if test $opt_bang_history = yes; then
4889 cat >>confdefs.h <<\_ACEOF
4890 @%:@define BANG_HISTORY 1
4894 if test "$opt_with_installed_readline" != "no"; then
4895 HIST_LIBDIR=$RL_LIBDIR
4897 HISTORY_LIB=-lhistory
4898 case "$opt_with_installed_readline" in
4900 *) case "$RL_INCLUDEDIR" in
4902 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4907 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4908 HISTORY_DEP='$(HISTORY_LIBRARY)'
4909 # section for OS versions that ship an older version of
4910 # readline as a standard dynamic library and don't allow a
4911 # static version specified as -llibname to override the
4913 case "${host_os}" in
4914 darwin8*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
4915 *) HISTORY_LIB=-lhistory ;;
4919 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4920 HISTORY_LIB= HISTORY_DEP=
4933 # Find a good install program. We prefer a C program (faster),
4934 # so one script is as good as another. But avoid the broken or
4935 # incompatible versions:
4936 # SysV /etc/install, /usr/sbin/install
4937 # SunOS /usr/etc/install
4938 # IRIX /sbin/install
4940 # AmigaOS /C/install, which installs bootblocks on floppy discs
4941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4944 # OS/2's system install, which has a completely different semantic
4945 # ./install, which can be erroneously created by make from ./install.sh.
4946 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4947 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4948 if test -z "$INSTALL"; then
4949 if test "${ac_cv_path_install+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 test -z "$as_dir" && as_dir=.
4957 # Account for people who put trailing slashes in PATH elements.
4959 ./ | .// | /cC/* | \
4960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4961 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4964 # OSF1 and SCO ODT 3.0 have their own names for install.
4965 # Don't use installbsd from OSF since it installs stuff as root
4967 for ac_prog in ginstall scoinst install; do
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4970 if test $ac_prog = install &&
4971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4972 # AIX install. It has an incompatible calling convention.
4974 elif test $ac_prog = install &&
4975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4976 # program-specific install script used by HP pwplus--don't use.
4979 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4991 if test "${ac_cv_path_install+set}" = set; then
4992 INSTALL=$ac_cv_path_install
4994 # As a last resort, use the slow shell script. We don't cache a
4995 # path for INSTALL within a source directory, because that will
4996 # break other packages using the cache if that directory is
4997 # removed, or if the path is relative.
4998 INSTALL=$ac_install_sh
5001 echo "$as_me:$LINENO: result: $INSTALL" >&5
5002 echo "${ECHO_T}$INSTALL" >&6
5004 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5005 # It thinks the first close brace ends the variable substitution.
5006 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5008 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5012 # Extract the first word of "ar", so it can be a program name with args.
5013 set dummy ar; ac_word=$2
5014 echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5016 if test "${ac_cv_prog_AR+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 if test -n "$AR"; then
5020 ac_cv_prog_AR="$AR" # Let the user override the test.
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5040 if test -n "$AR"; then
5041 echo "$as_me:$LINENO: result: $AR" >&5
5042 echo "${ECHO_T}$AR" >&6
5044 echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5048 test -n "$ARFLAGS" || ARFLAGS="cr"
5049 if test -n "$ac_tool_prefix"; then
5050 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5051 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5052 echo "$as_me:$LINENO: checking for $ac_word" >&5
5053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5054 if test "${ac_cv_prog_RANLIB+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 if test -n "$RANLIB"; then
5058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 RANLIB=$ac_cv_prog_RANLIB
5077 if test -n "$RANLIB"; then
5078 echo "$as_me:$LINENO: result: $RANLIB" >&5
5079 echo "${ECHO_T}$RANLIB" >&6
5081 echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6
5086 if test -z "$ac_cv_prog_RANLIB"; then
5087 ac_ct_RANLIB=$RANLIB
5088 # Extract the first word of "ranlib", so it can be a program name with args.
5089 set dummy ranlib; ac_word=$2
5090 echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5092 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 if test -n "$ac_ct_RANLIB"; then
5096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_ac_ct_RANLIB="ranlib"
5106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5115 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5116 if test -n "$ac_ct_RANLIB"; then
5117 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5118 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5120 echo "$as_me:$LINENO: result: no" >&5
5121 echo "${ECHO_T}no" >&6
5124 RANLIB=$ac_ct_RANLIB
5126 RANLIB="$ac_cv_prog_RANLIB"
5129 for ac_prog in 'bison -y' byacc
5131 # Extract the first word of "$ac_prog", so it can be a program name with args.
5132 set dummy $ac_prog; ac_word=$2
5133 echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135 if test "${ac_cv_prog_YACC+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 if test -n "$YACC"; then
5139 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_YACC="$ac_prog"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 YACC=$ac_cv_prog_YACC
5158 if test -n "$YACC"; then
5159 echo "$as_me:$LINENO: result: $YACC" >&5
5160 echo "${ECHO_T}$YACC" >&6
5162 echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5166 test -n "$YACC" && break
5168 test -n "$YACC" || YACC="yacc"
5170 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5171 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5172 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5173 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 cat >conftest.make <<\_ACEOF
5178 @echo 'ac_maketemp="$(MAKE)"'
5180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5181 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5182 if test -n "$ac_maketemp"; then
5183 eval ac_cv_prog_make_${ac_make}_set=yes
5185 eval ac_cv_prog_make_${ac_make}_set=no
5189 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5190 echo "$as_me:$LINENO: result: yes" >&5
5191 echo "${ECHO_T}yes" >&6
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5196 SET_MAKE="MAKE=${MAKE-make}"
5201 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
5202 *) MAKE_SHELL=/bin/sh ;;
5206 if test x$SIZE = x; then
5207 if test x$ac_tool_prefix = x; then
5210 SIZE=${ac_tool_prefix}size
5211 save_IFS=$IFS ; IFS=:
5213 for dir in $PATH; do
5214 if test -x $dir/$SIZE ; then
5219 if test $size_found -eq 0; then
5227 cat >>confdefs.h <<\_ACEOF
5228 @%:@define _GNU_SOURCE 1
5232 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5233 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5234 if test "${ac_cv_c_const+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 cat >conftest.$ac_ext <<_ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5247 /* FIXME: Include the comments suggested by Paul. */
5249 /* Ultrix mips cc rejects this. */
5250 typedef int charset[2];
5252 /* SunOS 4.1.1 cc rejects this. */
5253 char const *const *ccp;
5255 /* NEC SVR4.0.2 mips cc rejects this. */
5256 struct point {int x, y;};
5257 static struct point const zero = {0,0};
5258 /* AIX XL C 1.02.0.0 rejects this.
5259 It does not let you subtract one const X* pointer from another in
5260 an arm of an if-expression whose if-part is not a constant
5262 const char *g = "string";
5263 ccp = &g + (g ? g-g : 0);
5264 /* HPUX 7.0 cc rejects these. */
5267 ccp = (char const *const *) p;
5268 { /* SCO 3.2v4 cc rejects this. */
5270 char const *s = 0 ? (char *) 0 : (char const *) 0;
5274 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5276 const int *foo = &x[0];
5279 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5280 typedef const int *iptr;
5284 { /* AIX XL C 1.02.0.0 rejects this saying
5285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5286 struct s { int j; const int *ap[3]; };
5287 struct s *b; b->j = 5;
5289 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1 >conftest.err
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5330 echo "${ECHO_T}$ac_cv_c_const" >&6
5331 if test $ac_cv_c_const = no; then
5333 cat >>confdefs.h <<\_ACEOF
5339 echo "$as_me:$LINENO: checking for inline" >&5
5340 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5341 if test "${ac_cv_c_inline+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 for ac_kw in inline __inline__ __inline; do
5346 cat >conftest.$ac_ext <<_ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5354 static $ac_kw foo_t static_foo () {return 0; }
5355 $ac_kw foo_t foo () {return 0; }
5359 rm -f conftest.$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>conftest.er1
5363 grep -v '^ *+' conftest.er1 >conftest.err
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } &&
5368 { ac_try='test -z "$ac_c_werror_flag"
5369 || test ! -s conftest.err'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; } &&
5375 { ac_try='test -s conftest.$ac_objext'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5381 ac_cv_c_inline=$ac_kw; break
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5391 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5392 echo "${ECHO_T}$ac_cv_c_inline" >&6
5395 case $ac_cv_c_inline in
5398 case $ac_cv_c_inline in
5400 *) ac_val=$ac_cv_c_inline;;
5402 cat >>confdefs.h <<_ACEOF
5404 #define inline $ac_val
5410 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5411 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5412 if test "${ac_cv_c_bigendian+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 # See if sys/param.h defines the BYTE_ORDER macro.
5416 cat >conftest.$ac_ext <<_ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <sys/types.h>
5423 #include <sys/param.h>
5428 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5436 rm -f conftest.$ac_objext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5438 (eval $ac_compile) 2>conftest.er1
5440 grep -v '^ *+' conftest.er1 >conftest.err
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try='test -z "$ac_c_werror_flag"
5446 || test ! -s conftest.err'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; } &&
5452 { ac_try='test -s conftest.$ac_objext'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
5458 # It does; now see whether it defined to BIG_ENDIAN or not.
5459 cat >conftest.$ac_ext <<_ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #include <sys/types.h>
5466 #include <sys/param.h>
5471 #if BYTE_ORDER != BIG_ENDIAN
5479 rm -f conftest.$ac_objext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>conftest.er1
5483 grep -v '^ *+' conftest.er1 >conftest.err
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try='test -z "$ac_c_werror_flag"
5489 || test ! -s conftest.err'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; } &&
5495 { ac_try='test -s conftest.$ac_objext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_cv_c_bigendian=yes
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_cv_c_bigendian=no
5508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 # It does not; compile a test program.
5514 if test "$cross_compiling" = yes; then
5515 # try to guess the endianness by grepping values into an object file
5516 ac_cv_c_bigendian=unknown
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5524 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5525 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5526 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5527 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5528 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5532 _ascii (); _ebcdic ();
5537 rm -f conftest.$ac_objext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>conftest.er1
5541 grep -v '^ *+' conftest.er1 >conftest.err
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -z "$ac_c_werror_flag"
5547 || test ! -s conftest.err'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try='test -s conftest.$ac_objext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5560 ac_cv_c_bigendian=yes
5562 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5563 if test "$ac_cv_c_bigendian" = unknown; then
5564 ac_cv_c_bigendian=no
5566 # finding both strings is unlikely to happen, but who knows?
5567 ac_cv_c_bigendian=unknown
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5577 cat >conftest.$ac_ext <<_ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5586 /* Are we little or big endian? From Harbison&Steele. */
5590 char c[sizeof (long)];
5593 exit (u.c[sizeof (long) - 1] == 1);
5596 rm -f conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 ac_cv_c_bigendian=no
5609 echo "$as_me: program exited with status $ac_status" >&5
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5614 ac_cv_c_bigendian=yes
5616 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5621 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5622 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5623 case $ac_cv_c_bigendian in
5626 cat >>confdefs.h <<\_ACEOF
5627 @%:@define WORDS_BIGENDIAN 1
5633 { { echo "$as_me:$LINENO: error: unknown endianness
5634 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5635 echo "$as_me: error: unknown endianness
5636 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5637 { (exit 1); exit 1; }; } ;;
5640 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5641 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
5642 if test "${ac_cv_c_stringize+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 cat >conftest.$ac_ext <<_ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5653 char *s = x(teststring);
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656 $EGREP "@%:@teststring" >/dev/null 2>&1; then
5657 ac_cv_c_stringize=no
5659 ac_cv_c_stringize=yes
5664 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5665 echo "${ECHO_T}$ac_cv_c_stringize" >&6
5666 if test $ac_cv_c_stringize = yes; then
5668 cat >>confdefs.h <<\_ACEOF
5669 @%:@define HAVE_STRINGIZE 1
5674 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5675 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5676 if test "${ac_cv_c_long_double+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 cat >conftest.$ac_ext <<_ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5686 long double foo = 0.0;
5690 static int test_array @<:@1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5691 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5692 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))@:>@;
5693 test_array @<:@0@:>@ = 0
5699 rm -f conftest.$ac_objext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701 (eval $ac_compile) 2>conftest.er1
5703 grep -v '^ *+' conftest.er1 >conftest.err
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try='test -z "$ac_c_werror_flag"
5709 || test ! -s conftest.err'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; } &&
5715 { ac_try='test -s conftest.$ac_objext'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; }; then
5721 ac_cv_c_long_double=yes
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 ac_cv_c_long_double=no
5728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5730 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5731 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5732 if test $ac_cv_c_long_double = yes; then
5734 cat >>confdefs.h <<\_ACEOF
5735 @%:@define HAVE_LONG_DOUBLE 1
5740 echo "$as_me:$LINENO: checking for function prototypes" >&5
5741 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5742 if test "$ac_cv_prog_cc_stdc" != no; then
5743 echo "$as_me:$LINENO: result: yes" >&5
5744 echo "${ECHO_T}yes" >&6
5746 cat >>confdefs.h <<\_ACEOF
5747 @%:@define PROTOTYPES 1
5751 cat >>confdefs.h <<\_ACEOF
5752 @%:@define __PROTOTYPES 1
5756 echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5761 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5762 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5763 if test "${ac_cv_c_char_unsigned+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 cat >conftest.$ac_ext <<_ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 $ac_includes_default
5776 static int test_array @<:@1 - 2 * !(((char) -1) < 0)@:>@;
5777 test_array @<:@0@:>@ = 0
5783 rm -f conftest.$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>conftest.er1
5787 grep -v '^ *+' conftest.er1 >conftest.err
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag"
5793 || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 ac_cv_c_char_unsigned=no
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5810 ac_cv_c_char_unsigned=yes
5812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5815 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5816 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5817 cat >>confdefs.h <<\_ACEOF
5818 @%:@define __CHAR_UNSIGNED__ 1
5826 if test -n "$ac_aux_dir"; then
5827 case "$ac_aux_dir" in
5828 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5829 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5832 if test -z "$MKINSTALLDIRS"; then
5833 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5838 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5839 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5840 # Check whether --enable-nls or --disable-nls was given.
5841 if test "${enable_nls+set}" = set; then
5842 enableval="$enable_nls"
5847 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5848 echo "${ECHO_T}$USE_NLS" >&6
5855 # Prepare PATH_SEPARATOR.
5856 # The user is always right.
5857 if test "${PATH_SEPARATOR+set}" != set; then
5858 echo "#! /bin/sh" >conf$$.sh
5859 echo "exit 0" >>conf$$.sh
5861 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5869 # Find out how to test for executable files. Don't use a zero-byte file,
5870 # as systems may use methods other than mode bits to determine executability.
5871 cat >conf$$.file <<_ASEOF
5875 chmod +x conf$$.file
5876 if test -x conf$$.file >/dev/null 2>&1; then
5877 ac_executable_p="test -x"
5879 ac_executable_p="test -f"
5883 # Extract the first word of "msgfmt", so it can be a program name with args.
5884 set dummy msgfmt; ac_word=$2
5885 echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5887 if test "${ac_cv_path_MSGFMT+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5895 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5896 for ac_dir in $PATH; do
5898 test -z "$ac_dir" && ac_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5901 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5902 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5903 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5910 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5914 MSGFMT="$ac_cv_path_MSGFMT"
5915 if test "$MSGFMT" != ":"; then
5916 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5917 echo "${ECHO_T}$MSGFMT" >&6
5919 echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5923 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5924 set dummy gmsgfmt; ac_word=$2
5925 echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5927 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5953 GMSGFMT=$ac_cv_path_GMSGFMT
5955 if test -n "$GMSGFMT"; then
5956 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5957 echo "${ECHO_T}$GMSGFMT" >&6
5959 echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5965 # Prepare PATH_SEPARATOR.
5966 # The user is always right.
5967 if test "${PATH_SEPARATOR+set}" != set; then
5968 echo "#! /bin/sh" >conf$$.sh
5969 echo "exit 0" >>conf$$.sh
5971 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5979 # Find out how to test for executable files. Don't use a zero-byte file,
5980 # as systems may use methods other than mode bits to determine executability.
5981 cat >conf$$.file <<_ASEOF
5985 chmod +x conf$$.file
5986 if test -x conf$$.file >/dev/null 2>&1; then
5987 ac_executable_p="test -x"
5989 ac_executable_p="test -f"
5993 # Extract the first word of "xgettext", so it can be a program name with args.
5994 set dummy xgettext; ac_word=$2
5995 echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5997 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6005 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6006 for ac_dir in $PATH; do
6008 test -z "$ac_dir" && ac_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6011 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6012 (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
6013 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6020 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6024 XGETTEXT="$ac_cv_path_XGETTEXT"
6025 if test "$XGETTEXT" != ":"; then
6026 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6027 echo "${ECHO_T}$XGETTEXT" >&6
6029 echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6
6036 # Prepare PATH_SEPARATOR.
6037 # The user is always right.
6038 if test "${PATH_SEPARATOR+set}" != set; then
6039 echo "#! /bin/sh" >conf$$.sh
6040 echo "exit 0" >>conf$$.sh
6042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6050 # Find out how to test for executable files. Don't use a zero-byte file,
6051 # as systems may use methods other than mode bits to determine executability.
6052 cat >conf$$.file <<_ASEOF
6056 chmod +x conf$$.file
6057 if test -x conf$$.file >/dev/null 2>&1; then
6058 ac_executable_p="test -x"
6060 ac_executable_p="test -f"
6064 # Extract the first word of "msgmerge", so it can be a program name with args.
6065 set dummy msgmerge; ac_word=$2
6066 echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6076 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6077 for ac_dir in $PATH; do
6079 test -z "$ac_dir" && ac_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6082 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6083 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6090 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6094 MSGMERGE="$ac_cv_path_MSGMERGE"
6095 if test "$MSGMERGE" != ":"; then
6096 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6097 echo "${ECHO_T}$MSGMERGE" >&6
6099 echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6
6104 if test "$GMSGFMT" != ":"; then
6105 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6106 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6109 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6110 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6111 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6116 if test "$XGETTEXT" != ":"; then
6117 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6118 (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
6121 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6122 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6128 ac_config_commands="$ac_config_commands default-1"
6131 echo "$as_me:$LINENO: checking for off_t" >&5
6132 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6133 if test "${ac_cv_type_off_t+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 cat >conftest.$ac_ext <<_ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 $ac_includes_default
6154 rm -f conftest.$ac_objext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 (eval $ac_compile) 2>conftest.er1
6158 grep -v '^ *+' conftest.er1 >conftest.err
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag"
6164 || test ! -s conftest.err'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; } &&
6170 { ac_try='test -s conftest.$ac_objext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_type_off_t=yes
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6185 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6186 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6187 if test $ac_cv_type_off_t = yes; then
6191 cat >>confdefs.h <<_ACEOF
6192 @%:@define off_t long
6197 echo "$as_me:$LINENO: checking for size_t" >&5
6198 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6199 if test "${ac_cv_type_size_t+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 cat >conftest.$ac_ext <<_ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 $ac_includes_default
6214 if (sizeof (size_t))
6220 rm -f conftest.$ac_objext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>conftest.er1
6224 grep -v '^ *+' conftest.er1 >conftest.err
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -z "$ac_c_werror_flag"
6230 || test ! -s conftest.err'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; } &&
6236 { ac_try='test -s conftest.$ac_objext'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_cv_type_size_t=yes
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6247 ac_cv_type_size_t=no
6249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6251 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6252 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6253 if test $ac_cv_type_size_t = yes; then
6257 cat >>confdefs.h <<_ACEOF
6258 @%:@define size_t unsigned
6263 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6264 # for constant arguments. Useless!
6265 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6266 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6267 if test "${ac_cv_working_alloca_h+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 cat >conftest.$ac_ext <<_ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 @%:@include <alloca.h>
6280 char *p = (char *) alloca (2 * sizeof (int));
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>conftest.er1
6289 grep -v '^ *+' conftest.er1 >conftest.err
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try='test -z "$ac_c_werror_flag"
6295 || test ! -s conftest.err'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest$ac_exeext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_working_alloca_h=yes
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 ac_cv_working_alloca_h=no
6314 rm -f conftest.err conftest.$ac_objext \
6315 conftest$ac_exeext conftest.$ac_ext
6317 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6318 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6319 if test $ac_cv_working_alloca_h = yes; then
6321 cat >>confdefs.h <<\_ACEOF
6322 @%:@define HAVE_ALLOCA_H 1
6327 echo "$as_me:$LINENO: checking for alloca" >&5
6328 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6329 if test "${ac_cv_func_alloca_works+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6339 # define alloca __builtin_alloca
6342 # include <malloc.h>
6343 # define alloca _alloca
6346 # include <alloca.h>
6351 # ifndef alloca /* predefined by HP cc +Olibcalls */
6362 char *p = (char *) alloca (1);
6367 rm -f conftest.$ac_objext conftest$ac_exeext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369 (eval $ac_link) 2>conftest.er1
6371 grep -v '^ *+' conftest.er1 >conftest.err
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -z "$ac_c_werror_flag"
6377 || test ! -s conftest.err'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; } &&
6383 { ac_try='test -s conftest$ac_exeext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 ac_cv_func_alloca_works=yes
6391 echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6394 ac_cv_func_alloca_works=no
6396 rm -f conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6399 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6400 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6402 if test $ac_cv_func_alloca_works = yes; then
6404 cat >>confdefs.h <<\_ACEOF
6405 @%:@define HAVE_ALLOCA 1
6409 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6410 # that cause trouble. Some versions do not even contain alloca or
6411 # contain a buggy version. If you still want to use their alloca,
6412 # use ar to extract alloca.o from them instead of compiling alloca.c.
6414 ALLOCA=alloca.$ac_objext
6416 cat >>confdefs.h <<\_ACEOF
6417 @%:@define C_ALLOCA 1
6421 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6422 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6423 if test "${ac_cv_os_cray+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 cat >conftest.$ac_ext <<_ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 #if defined(CRAY) && ! defined(CRAY2)
6439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6440 $EGREP "webecray" >/dev/null 2>&1; then
6448 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6449 echo "${ECHO_T}$ac_cv_os_cray" >&6
6450 if test $ac_cv_os_cray = yes; then
6451 for ac_func in _getb67 GETB67 getb67; do
6452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6453 echo "$as_me:$LINENO: checking for $ac_func" >&5
6454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6455 if eval "test \"\${$as_ac_var+set}\" = set"; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6466 #define $ac_func innocuous_$ac_func
6468 /* System header to define __stub macros and hopefully few prototypes,
6469 which can conflict with char $ac_func (); below.
6470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6471 <limits.h> exists even on freestanding compilers. */
6474 # include <limits.h>
6476 # include <assert.h>
6481 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6489 /* The GNU C library defines this for functions which it implements
6490 to always fail with ENOSYS. Some functions are actually named
6491 something starting with __ and the normal name is an alias. */
6492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6495 char (*f) () = $ac_func;
6504 return f != $ac_func;
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>conftest.er1
6513 grep -v '^ *+' conftest.er1 >conftest.err
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_c_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest$ac_exeext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 eval "$as_ac_var=yes"
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 eval "$as_ac_var=no"
6538 rm -f conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6543 if test `eval echo '${'$as_ac_var'}'` = yes; then
6545 cat >>confdefs.h <<_ACEOF
6546 @%:@define CRAY_STACKSEG_END $ac_func
6555 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6556 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6557 if test "${ac_cv_c_stack_direction+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 if test "$cross_compiling" = yes; then
6561 ac_cv_c_stack_direction=0
6563 cat >conftest.$ac_ext <<_ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6570 find_stack_direction ()
6572 static char *addr = 0;
6577 return find_stack_direction ();
6580 return (&dummy > addr) ? 1 : -1;
6586 exit (find_stack_direction () < 0);
6589 rm -f conftest$ac_exeext
6590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6591 (eval $ac_link) 2>&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_c_stack_direction=1
6602 echo "$as_me: program exited with status $ac_status" >&5
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_cv_c_stack_direction=-1
6609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6612 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6613 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6615 cat >>confdefs.h <<_ACEOF
6616 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
6624 for ac_header in stdlib.h unistd.h
6626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6628 echo "$as_me:$LINENO: checking for $ac_header" >&5
6629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6636 # Is the header compilable?
6637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6639 cat >conftest.$ac_ext <<_ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 $ac_includes_default
6646 @%:@include <$ac_header>
6648 rm -f conftest.$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>conftest.er1
6652 grep -v '^ *+' conftest.er1 >conftest.err
6654 cat conftest.err >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -z "$ac_c_werror_flag"
6658 || test ! -s conftest.err'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; } &&
6664 { ac_try='test -s conftest.$ac_objext'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; }; then
6670 ac_header_compiler=yes
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6675 ac_header_compiler=no
6677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6679 echo "${ECHO_T}$ac_header_compiler" >&6
6681 # Is the header present?
6682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 @%:@include <$ac_header>
6692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6695 grep -v '^ *+' conftest.er1 >conftest.err
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } >/dev/null; then
6700 if test -s conftest.err; then
6701 ac_cpp_err=$ac_c_preproc_warn_flag
6702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6709 if test -z "$ac_cpp_err"; then
6710 ac_header_preproc=yes
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 ac_header_preproc=no
6717 rm -f conftest.err conftest.$ac_ext
6718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6719 echo "${ECHO_T}$ac_header_preproc" >&6
6721 # So? What about this header?
6722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6728 ac_header_preproc=yes
6731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6745 @%:@@%:@ ------------------------------- @%:@@%:@
6746 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
6747 @%:@@%:@ ------------------------------- @%:@@%:@
6750 sed "s/^/$as_me: WARNING: /" >&2
6753 echo "$as_me:$LINENO: checking for $ac_header" >&5
6754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 eval "$as_ac_Header=\$ac_header_preproc"
6760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6765 cat >>confdefs.h <<_ACEOF
6766 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6774 for ac_func in getpagesize
6776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6777 echo "$as_me:$LINENO: checking for $ac_func" >&5
6778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6779 if eval "test \"\${$as_ac_var+set}\" = set"; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 cat >conftest.$ac_ext <<_ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6790 #define $ac_func innocuous_$ac_func
6792 /* System header to define __stub macros and hopefully few prototypes,
6793 which can conflict with char $ac_func (); below.
6794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6795 <limits.h> exists even on freestanding compilers. */
6798 # include <limits.h>
6800 # include <assert.h>
6805 /* Override any gcc2 internal prototype to avoid an error. */
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6813 /* The GNU C library defines this for functions which it implements
6814 to always fail with ENOSYS. Some functions are actually named
6815 something starting with __ and the normal name is an alias. */
6816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6819 char (*f) () = $ac_func;
6828 return f != $ac_func;
6833 rm -f conftest.$ac_objext conftest$ac_exeext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6835 (eval $ac_link) 2>conftest.er1
6837 grep -v '^ *+' conftest.er1 >conftest.err
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try='test -z "$ac_c_werror_flag"
6843 || test ! -s conftest.err'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; } &&
6849 { ac_try='test -s conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 eval "$as_ac_var=yes"
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6860 eval "$as_ac_var=no"
6862 rm -f conftest.err conftest.$ac_objext \
6863 conftest$ac_exeext conftest.$ac_ext
6865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6867 if test `eval echo '${'$as_ac_var'}'` = yes; then
6868 cat >>confdefs.h <<_ACEOF
6869 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6875 echo "$as_me:$LINENO: checking for working mmap" >&5
6876 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6877 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 if test "$cross_compiling" = yes; then
6881 ac_cv_func_mmap_fixed_mapped=no
6883 cat >conftest.$ac_ext <<_ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 $ac_includes_default
6890 /* malloc might have been renamed as rpl_malloc. */
6893 /* Thanks to Mike Haertel and Jim Avera for this test.
6894 Here is a matrix of mmap possibilities:
6895 mmap private not fixed
6896 mmap private fixed at somewhere currently unmapped
6897 mmap private fixed at somewhere already mapped
6898 mmap shared not fixed
6899 mmap shared fixed at somewhere currently unmapped
6900 mmap shared fixed at somewhere already mapped
6901 For private mappings, we should verify that changes cannot be read()
6902 back from the file, nor mmap's back from the file at a different
6903 address. (There have been systems where private was not correctly
6904 implemented like the infamous i386 svr4.0, and systems where the
6905 VM page cache was not coherent with the file system buffer cache
6906 like early versions of FreeBSD and possibly contemporary NetBSD.)
6907 For shared mappings, we should conversely verify that changes get
6908 propagated back to all the places they're supposed to be.
6910 Grep wants private fixed already mapped.
6911 The main things grep needs to know about mmap are:
6912 * does it exist and is it safe to write into the mmap'd area
6913 * how to use it (BSD variants) */
6916 #include <sys/mman.h>
6918 #if !STDC_HEADERS && !HAVE_STDLIB_H
6922 /* This mess was copied from the GNU getpagesize.h. */
6923 #if !HAVE_GETPAGESIZE
6924 /* Assume that all systems that can run configure have sys/param.h. */
6925 # if !HAVE_SYS_PARAM_H
6926 # define HAVE_SYS_PARAM_H 1
6929 # ifdef _SC_PAGESIZE
6930 # define getpagesize() sysconf(_SC_PAGESIZE)
6931 # else /* no _SC_PAGESIZE */
6932 # if HAVE_SYS_PARAM_H
6933 # include <sys/param.h>
6934 # ifdef EXEC_PAGESIZE
6935 # define getpagesize() EXEC_PAGESIZE
6936 # else /* no EXEC_PAGESIZE */
6938 # define getpagesize() NBPG * CLSIZE
6941 # endif /* no CLSIZE */
6942 # else /* no NBPG */
6944 # define getpagesize() NBPC
6945 # else /* no NBPC */
6947 # define getpagesize() PAGESIZE
6948 # endif /* PAGESIZE */
6949 # endif /* no NBPC */
6950 # endif /* no NBPG */
6951 # endif /* no EXEC_PAGESIZE */
6952 # else /* no HAVE_SYS_PARAM_H */
6953 # define getpagesize() 8192 /* punt totally */
6954 # endif /* no HAVE_SYS_PARAM_H */
6955 # endif /* no _SC_PAGESIZE */
6957 #endif /* no HAVE_GETPAGESIZE */
6962 char *data, *data2, *data3;
6966 pagesize = getpagesize ();
6968 /* First, make a file with some known garbage in it. */
6969 data = (char *) malloc (pagesize);
6972 for (i = 0; i < pagesize; ++i)
6973 *(data + i) = rand ();
6975 fd = creat ("conftest.mmap", 0600);
6978 if (write (fd, data, pagesize) != pagesize)
6982 /* Next, try to mmap the file at a fixed address which already has
6983 something else allocated at it. If we can, also make sure that
6984 we see the same garbage. */
6985 fd = open ("conftest.mmap", O_RDWR);
6988 data2 = (char *) malloc (2 * pagesize);
6991 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6992 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6993 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6995 for (i = 0; i < pagesize; ++i)
6996 if (*(data + i) != *(data2 + i))
6999 /* Finally, make sure that changes to the mapped area do not
7000 percolate back to the file as seen by read(). (This is a bug on
7001 some variants of i386 svr4.0.) */
7002 for (i = 0; i < pagesize; ++i)
7003 *(data2 + i) = *(data2 + i) + 1;
7004 data3 = (char *) malloc (pagesize);
7007 if (read (fd, data3, pagesize) != pagesize)
7009 for (i = 0; i < pagesize; ++i)
7010 if (*(data + i) != *(data3 + i))
7016 rm -f conftest$ac_exeext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018 (eval $ac_link) 2>&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_func_mmap_fixed_mapped=yes
7029 echo "$as_me: program exited with status $ac_status" >&5
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7034 ac_cv_func_mmap_fixed_mapped=no
7036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7039 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7040 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7041 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7043 cat >>confdefs.h <<\_ACEOF
7044 @%:@define HAVE_MMAP 1
7051 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7052 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7053 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 cat >conftest.$ac_ext <<_ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7063 #include <features.h>
7064 #ifdef __GNU_LIBRARY__
7065 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7072 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7073 ac_cv_gnu_library_2_1=yes
7075 ac_cv_gnu_library_2_1=no
7082 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7083 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7085 GLIBC21="$ac_cv_gnu_library_2_1"
7090 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7091 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
7092 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 if test "$cross_compiling" = yes; then
7098 # Guess based on the CPU.
7100 alpha* | i3456786 | m68k | s390*)
7101 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7103 gt_cv_int_divbyzero_sigfpe="guessing no";;
7107 cat >conftest.$ac_ext <<_ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7119 sigfpe_handler (int sig)
7121 sigfpe_handler (sig) int sig;
7124 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7125 exit (sig != SIGFPE);
7135 signal (SIGFPE, sigfpe_handler);
7136 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7137 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7138 signal (SIGTRAP, sigfpe_handler);
7140 /* Linux/SPARC yields signal SIGILL. */
7141 #if defined (__sparc__) && defined (__linux__)
7142 signal (SIGILL, sigfpe_handler);
7151 rm -f conftest$ac_exeext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7153 (eval $ac_link) 2>&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 gt_cv_int_divbyzero_sigfpe=yes
7164 echo "$as_me: program exited with status $ac_status" >&5
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7169 gt_cv_int_divbyzero_sigfpe=no
7171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7175 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7176 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
7177 case "$gt_cv_int_divbyzero_sigfpe" in
7182 cat >>confdefs.h <<_ACEOF
7183 @%:@define INTDIV0_RAISES_SIGFPE $value
7188 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7189 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7190 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 #include <sys/types.h>
7200 #include <inttypes.h>
7204 uintmax_t i = (uintmax_t) -1;
7209 rm -f conftest.$ac_objext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211 (eval $ac_compile) 2>conftest.er1
7213 grep -v '^ *+' conftest.er1 >conftest.err
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } &&
7218 { ac_try='test -z "$ac_c_werror_flag"
7219 || test ! -s conftest.err'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; } &&
7225 { ac_try='test -s conftest.$ac_objext'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; }; then
7231 jm_ac_cv_header_inttypes_h=yes
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7236 jm_ac_cv_header_inttypes_h=no
7238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7240 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
7241 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
7242 if test $jm_ac_cv_header_inttypes_h = yes; then
7244 cat >>confdefs.h <<_ACEOF
7245 @%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
7251 echo "$as_me:$LINENO: checking for stdint.h" >&5
7252 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7253 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 cat >conftest.$ac_ext <<_ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 #include <sys/types.h>
7267 uintmax_t i = (uintmax_t) -1;
7272 rm -f conftest.$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>conftest.er1
7276 grep -v '^ *+' conftest.er1 >conftest.err
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try='test -z "$ac_c_werror_flag"
7282 || test ! -s conftest.err'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; } &&
7288 { ac_try='test -s conftest.$ac_objext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 jm_ac_cv_header_stdint_h=yes
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 jm_ac_cv_header_stdint_h=no
7301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7303 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
7304 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
7305 if test $jm_ac_cv_header_stdint_h = yes; then
7307 cat >>confdefs.h <<_ACEOF
7308 @%:@define HAVE_STDINT_H_WITH_UINTMAX 1
7314 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7315 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7316 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 unsigned long long ull = 1; int i = 63;
7329 unsigned long long ullmax = (unsigned long long) -1;
7330 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7335 rm -f conftest.$ac_objext conftest$ac_exeext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7337 (eval $ac_link) 2>conftest.er1
7339 grep -v '^ *+' conftest.er1 >conftest.err
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try='test -z "$ac_c_werror_flag"
7345 || test ! -s conftest.err'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; } &&
7351 { ac_try='test -s conftest$ac_exeext'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; }; then
7357 ac_cv_type_unsigned_long_long=yes
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 ac_cv_type_unsigned_long_long=no
7364 rm -f conftest.err conftest.$ac_objext \
7365 conftest$ac_exeext conftest.$ac_ext
7367 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7368 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7369 if test $ac_cv_type_unsigned_long_long = yes; then
7371 cat >>confdefs.h <<\_ACEOF
7372 @%:@define HAVE_UNSIGNED_LONG_LONG 1
7380 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7382 test $ac_cv_type_unsigned_long_long = yes \
7383 && ac_type='unsigned long long' \
7384 || ac_type='unsigned long'
7386 cat >>confdefs.h <<_ACEOF
7387 @%:@define uintmax_t $ac_type
7392 cat >>confdefs.h <<\_ACEOF
7393 @%:@define HAVE_UINTMAX_T 1
7399 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7400 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7401 if test "${gt_cv_header_inttypes_h+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 #include <sys/types.h>
7412 #include <inttypes.h>
7421 rm -f conftest.$ac_objext
7422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7423 (eval $ac_compile) 2>conftest.er1
7425 grep -v '^ *+' conftest.er1 >conftest.err
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } &&
7430 { ac_try='test -z "$ac_c_werror_flag"
7431 || test ! -s conftest.err'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; } &&
7437 { ac_try='test -s conftest.$ac_objext'
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; }; then
7443 gt_cv_header_inttypes_h=yes
7445 echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7448 gt_cv_header_inttypes_h=no
7450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7453 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7454 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
7455 if test $gt_cv_header_inttypes_h = yes; then
7457 cat >>confdefs.h <<_ACEOF
7458 @%:@define HAVE_INTTYPES_H 1
7465 if test $gt_cv_header_inttypes_h = yes; then
7466 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7467 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
7468 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 #include <inttypes.h>
7491 rm -f conftest.$ac_objext
7492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7493 (eval $ac_compile) 2>conftest.er1
7495 grep -v '^ *+' conftest.er1 >conftest.err
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } &&
7500 { ac_try='test -z "$ac_c_werror_flag"
7501 || test ! -s conftest.err'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; } &&
7507 { ac_try='test -s conftest.$ac_objext'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513 gt_cv_inttypes_pri_broken=no
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 gt_cv_inttypes_pri_broken=yes
7520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7523 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7524 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7526 if test "$gt_cv_inttypes_pri_broken" = yes; then
7528 cat >>confdefs.h <<_ACEOF
7529 @%:@define PRI_MACROS_BROKEN 1
7535 if test "X$prefix" = "XNONE"; then
7536 acl_final_prefix="$ac_default_prefix"
7538 acl_final_prefix="$prefix"
7540 if test "X$exec_prefix" = "XNONE"; then
7541 acl_final_exec_prefix='${prefix}'
7543 acl_final_exec_prefix="$exec_prefix"
7545 acl_save_prefix="$prefix"
7546 prefix="$acl_final_prefix"
7547 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7548 prefix="$acl_save_prefix"
7551 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7552 if test "${with_gnu_ld+set}" = set; then
7553 withval="$with_gnu_ld"
7554 test "$withval" = no || with_gnu_ld=yes
7558 # Prepare PATH_SEPARATOR.
7559 # The user is always right.
7560 if test "${PATH_SEPARATOR+set}" != set; then
7561 echo "#! /bin/sh" >conf$$.sh
7562 echo "exit 0" >>conf$$.sh
7564 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7572 if test "$GCC" = yes; then
7573 # Check if gcc -print-prog-name=ld gives a path.
7574 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7575 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7578 # gcc leaves a trailing carriage return which upsets mingw
7579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7584 # Accept absolute paths.
7585 [\\/]* | [A-Za-z]:[\\/]*)
7586 re_direlt='/[^/][^/]*/\.\./'
7587 # Canonicalize the path of ld
7588 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7589 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7590 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7592 test -z "$LD" && LD="$ac_prog"
7595 # If it fails, then pretend we aren't using GCC.
7599 # If it is relative, then search for the first ld in PATH.
7603 elif test "$with_gnu_ld" = yes; then
7604 echo "$as_me:$LINENO: checking for GNU ld" >&5
7605 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7607 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7608 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7610 if test "${acl_cv_path_LD+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 if test -z "$LD"; then
7614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7615 for ac_dir in $PATH; do
7616 test -z "$ac_dir" && ac_dir=.
7617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7618 acl_cv_path_LD="$ac_dir/$ac_prog"
7619 # Check to see if the program is GNU ld. I'd rather use --version,
7620 # but apparently some GNU ld's only accept -v.
7621 # Break only if it was the GNU/non-GNU ld that we prefer.
7622 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7623 test "$with_gnu_ld" != no && break
7625 test "$with_gnu_ld" != yes && break
7631 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7635 LD="$acl_cv_path_LD"
7636 if test -n "$LD"; then
7637 echo "$as_me:$LINENO: result: $LD" >&5
7638 echo "${ECHO_T}$LD" >&6
7640 echo "$as_me:$LINENO: result: no" >&5
7641 echo "${ECHO_T}no" >&6
7643 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7644 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7645 { (exit 1); exit 1; }; }
7646 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7647 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7648 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7652 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7653 acl_cv_prog_gnu_ld=yes
7655 acl_cv_prog_gnu_ld=no
7658 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7659 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7660 with_gnu_ld=$acl_cv_prog_gnu_ld
7664 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7665 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7666 if test "${acl_cv_rpath+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7671 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7677 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7678 echo "${ECHO_T}$acl_cv_rpath" >&6
7680 libext="$acl_cv_libext"
7681 shlibext="$acl_cv_shlibext"
7682 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7683 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7684 hardcode_direct="$acl_cv_hardcode_direct"
7685 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7686 # Check whether --enable-rpath or --disable-rpath was given.
7687 if test "${enable_rpath+set}" = set; then
7688 enableval="$enable_rpath"
7702 acl_save_prefix="$prefix"
7703 prefix="$acl_final_prefix"
7704 acl_save_exec_prefix="$exec_prefix"
7705 exec_prefix="$acl_final_exec_prefix"
7707 eval additional_includedir=\"$includedir\"
7708 eval additional_libdir=\"$libdir\"
7710 exec_prefix="$acl_save_exec_prefix"
7711 prefix="$acl_save_prefix"
7714 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7715 if test "${with_libiconv_prefix+set}" = set; then
7716 withval="$with_libiconv_prefix"
7718 if test "X$withval" = "Xno"; then
7721 if test "X$withval" = "X"; then
7723 acl_save_prefix="$prefix"
7724 prefix="$acl_final_prefix"
7725 acl_save_exec_prefix="$exec_prefix"
7726 exec_prefix="$acl_final_exec_prefix"
7728 eval additional_includedir=\"$includedir\"
7729 eval additional_libdir=\"$libdir\"
7731 exec_prefix="$acl_save_exec_prefix"
7732 prefix="$acl_save_prefix"
7735 additional_includedir="$withval/include"
7736 additional_libdir="$withval/lib"
7746 names_already_handled=
7747 names_next_round='iconv '
7748 while test -n "$names_next_round"; do
7749 names_this_round="$names_next_round"
7751 for name in $names_this_round; do
7753 for n in $names_already_handled; do
7754 if test "$n" = "$name"; then
7759 if test -z "$already_handled"; then
7760 names_already_handled="$names_already_handled $name"
7761 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7762 eval value=\"\$HAVE_LIB$uppername\"
7763 if test -n "$value"; then
7764 if test "$value" = yes; then
7765 eval value=\"\$LIB$uppername\"
7766 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7767 eval value=\"\$LTLIB$uppername\"
7768 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7777 if test $use_additional = yes; then
7778 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7779 found_dir="$additional_libdir"
7780 found_so="$additional_libdir/lib$name.$shlibext"
7781 if test -f "$additional_libdir/lib$name.la"; then
7782 found_la="$additional_libdir/lib$name.la"
7785 if test -f "$additional_libdir/lib$name.$libext"; then
7786 found_dir="$additional_libdir"
7787 found_a="$additional_libdir/lib$name.$libext"
7788 if test -f "$additional_libdir/lib$name.la"; then
7789 found_la="$additional_libdir/lib$name.la"
7794 if test "X$found_dir" = "X"; then
7795 for x in $LDFLAGS $LTLIBICONV; do
7797 acl_save_prefix="$prefix"
7798 prefix="$acl_final_prefix"
7799 acl_save_exec_prefix="$exec_prefix"
7800 exec_prefix="$acl_final_exec_prefix"
7802 exec_prefix="$acl_save_exec_prefix"
7803 prefix="$acl_save_prefix"
7807 dir=`echo "X$x" | sed -e 's/^X-L//'`
7808 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7810 found_so="$dir/lib$name.$shlibext"
7811 if test -f "$dir/lib$name.la"; then
7812 found_la="$dir/lib$name.la"
7815 if test -f "$dir/lib$name.$libext"; then
7817 found_a="$dir/lib$name.$libext"
7818 if test -f "$dir/lib$name.la"; then
7819 found_la="$dir/lib$name.la"
7825 if test "X$found_dir" != "X"; then
7830 if test "X$found_dir" != "X"; then
7831 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7832 if test "X$found_so" != "X"; then
7833 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7834 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7837 for x in $ltrpathdirs; do
7838 if test "X$x" = "X$found_dir"; then
7843 if test -z "$haveit"; then
7844 ltrpathdirs="$ltrpathdirs $found_dir"
7846 if test "$hardcode_direct" = yes; then
7847 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7849 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7850 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7852 for x in $rpathdirs; do
7853 if test "X$x" = "X$found_dir"; then
7858 if test -z "$haveit"; then
7859 rpathdirs="$rpathdirs $found_dir"
7863 for x in $LDFLAGS $LIBICONV; do
7865 acl_save_prefix="$prefix"
7866 prefix="$acl_final_prefix"
7867 acl_save_exec_prefix="$exec_prefix"
7868 exec_prefix="$acl_final_exec_prefix"
7870 exec_prefix="$acl_save_exec_prefix"
7871 prefix="$acl_save_prefix"
7873 if test "X$x" = "X-L$found_dir"; then
7878 if test -z "$haveit"; then
7879 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7881 if test "$hardcode_minus_L" != no; then
7882 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7884 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7890 if test "X$found_a" != "X"; then
7891 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7893 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7896 additional_includedir=
7897 case "$found_dir" in
7899 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7900 additional_includedir="$basedir/include"
7903 if test "X$additional_includedir" != "X"; then
7904 if test "X$additional_includedir" != "X/usr/include"; then
7906 if test "X$additional_includedir" = "X/usr/local/include"; then
7907 if test -n "$GCC"; then
7909 linux*) haveit=yes;;
7913 if test -z "$haveit"; then
7914 for x in $CPPFLAGS $INCICONV; do
7916 acl_save_prefix="$prefix"
7917 prefix="$acl_final_prefix"
7918 acl_save_exec_prefix="$exec_prefix"
7919 exec_prefix="$acl_final_exec_prefix"
7921 exec_prefix="$acl_save_exec_prefix"
7922 prefix="$acl_save_prefix"
7924 if test "X$x" = "X-I$additional_includedir"; then
7929 if test -z "$haveit"; then
7930 if test -d "$additional_includedir"; then
7931 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7937 if test -n "$found_la"; then
7938 save_libdir="$libdir"
7940 */* | *\\*) . "$found_la" ;;
7941 *) . "./$found_la" ;;
7943 libdir="$save_libdir"
7944 for dep in $dependency_libs; do
7947 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7948 if test "X$additional_libdir" != "X/usr/lib"; then
7950 if test "X$additional_libdir" = "X/usr/local/lib"; then
7951 if test -n "$GCC"; then
7953 linux*) haveit=yes;;
7957 if test -z "$haveit"; then
7959 for x in $LDFLAGS $LIBICONV; do
7961 acl_save_prefix="$prefix"
7962 prefix="$acl_final_prefix"
7963 acl_save_exec_prefix="$exec_prefix"
7964 exec_prefix="$acl_final_exec_prefix"
7966 exec_prefix="$acl_save_exec_prefix"
7967 prefix="$acl_save_prefix"
7969 if test "X$x" = "X-L$additional_libdir"; then
7974 if test -z "$haveit"; then
7975 if test -d "$additional_libdir"; then
7976 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7980 for x in $LDFLAGS $LTLIBICONV; do
7982 acl_save_prefix="$prefix"
7983 prefix="$acl_final_prefix"
7984 acl_save_exec_prefix="$exec_prefix"
7985 exec_prefix="$acl_final_exec_prefix"
7987 exec_prefix="$acl_save_exec_prefix"
7988 prefix="$acl_save_prefix"
7990 if test "X$x" = "X-L$additional_libdir"; then
7995 if test -z "$haveit"; then
7996 if test -d "$additional_libdir"; then
7997 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8004 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8005 if test "$enable_rpath" != no; then
8007 for x in $rpathdirs; do
8008 if test "X$x" = "X$dir"; then
8013 if test -z "$haveit"; then
8014 rpathdirs="$rpathdirs $dir"
8017 for x in $ltrpathdirs; do
8018 if test "X$x" = "X$dir"; then
8023 if test -z "$haveit"; then
8024 ltrpathdirs="$ltrpathdirs $dir"
8029 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8032 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8035 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8036 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8042 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8043 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8049 if test "X$rpathdirs" != "X"; then
8050 if test -n "$hardcode_libdir_separator"; then
8052 for found_dir in $rpathdirs; do
8053 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8055 acl_save_libdir="$libdir"
8057 eval flag=\"$hardcode_libdir_flag_spec\"
8058 libdir="$acl_save_libdir"
8059 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8061 for found_dir in $rpathdirs; do
8062 acl_save_libdir="$libdir"
8064 eval flag=\"$hardcode_libdir_flag_spec\"
8065 libdir="$acl_save_libdir"
8066 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8070 if test "X$ltrpathdirs" != "X"; then
8071 for found_dir in $ltrpathdirs; do
8072 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8089 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8090 stdlib.h string.h unistd.h sys/param.h
8092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8094 echo "$as_me:$LINENO: checking for $ac_header" >&5
8095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8102 # Is the header compilable?
8103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8105 cat >conftest.$ac_ext <<_ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111 $ac_includes_default
8112 @%:@include <$ac_header>
8114 rm -f conftest.$ac_objext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8116 (eval $ac_compile) 2>conftest.er1
8118 grep -v '^ *+' conftest.er1 >conftest.err
8120 cat conftest.err >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } &&
8123 { ac_try='test -z "$ac_c_werror_flag"
8124 || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_header_compiler=yes
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8141 ac_header_compiler=no
8143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145 echo "${ECHO_T}$ac_header_compiler" >&6
8147 # Is the header present?
8148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8156 @%:@include <$ac_header>
8158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } >/dev/null; then
8166 if test -s conftest.err; then
8167 ac_cpp_err=$ac_c_preproc_warn_flag
8168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8175 if test -z "$ac_cpp_err"; then
8176 ac_header_preproc=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 ac_header_preproc=no
8183 rm -f conftest.err conftest.$ac_ext
8184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8185 echo "${ECHO_T}$ac_header_preproc" >&6
8187 # So? What about this header?
8188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8194 ac_header_preproc=yes
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8211 @%:@@%:@ ------------------------------- @%:@@%:@
8212 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
8213 @%:@@%:@ ------------------------------- @%:@@%:@
8216 sed "s/^/$as_me: WARNING: /" >&2
8219 echo "$as_me:$LINENO: checking for $ac_header" >&5
8220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 eval "$as_ac_Header=\$ac_header_preproc"
8226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8231 cat >>confdefs.h <<_ACEOF
8232 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8261 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8262 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
8263 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8267 echo "$as_me:$LINENO: checking for $ac_func" >&5
8268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8269 if eval "test \"\${$as_ac_var+set}\" = set"; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8280 #define $ac_func innocuous_$ac_func
8282 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char $ac_func (); below.
8284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8285 <limits.h> exists even on freestanding compilers. */
8288 # include <limits.h>
8290 # include <assert.h>
8295 /* Override any gcc2 internal prototype to avoid an error. */
8300 /* We use char because int might match the return type of a gcc2
8301 builtin and then its argument prototype would still apply. */
8303 /* The GNU C library defines this for functions which it implements
8304 to always fail with ENOSYS. Some functions are actually named
8305 something starting with __ and the normal name is an alias. */
8306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8309 char (*f) () = $ac_func;
8318 return f != $ac_func;
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325 (eval $ac_link) 2>conftest.er1
8327 grep -v '^ *+' conftest.er1 >conftest.err
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } &&
8332 { ac_try='test -z "$ac_c_werror_flag"
8333 || test ! -s conftest.err'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; } &&
8339 { ac_try='test -s conftest$ac_exeext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 eval "$as_ac_var=yes"
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8350 eval "$as_ac_var=no"
8352 rm -f conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8357 if test `eval echo '${'$as_ac_var'}'` = yes; then
8358 cat >>confdefs.h <<_ACEOF
8359 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8371 am_save_CPPFLAGS="$CPPFLAGS"
8373 for element in $INCICONV; do
8375 for x in $CPPFLAGS; do
8377 acl_save_prefix="$prefix"
8378 prefix="$acl_final_prefix"
8379 acl_save_exec_prefix="$exec_prefix"
8380 exec_prefix="$acl_final_exec_prefix"
8382 exec_prefix="$acl_save_exec_prefix"
8383 prefix="$acl_save_prefix"
8385 if test "X$x" = "X$element"; then
8390 if test -z "$haveit"; then
8391 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8396 echo "$as_me:$LINENO: checking for iconv" >&5
8397 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8398 if test "${am_cv_func_iconv+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 am_cv_func_iconv="no, consider installing GNU libiconv"
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8415 iconv_t cd = iconv_open("","");
8416 iconv(cd,NULL,NULL,NULL,NULL);
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>conftest.er1
8426 grep -v '^ *+' conftest.er1 >conftest.err
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag"
8432 || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest$ac_exeext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 am_cv_func_iconv=yes
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8450 rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452 if test "$am_cv_func_iconv" != yes; then
8453 am_save_LIBS="$LIBS"
8454 LIBS="$LIBS $LIBICONV"
8455 cat >conftest.$ac_ext <<_ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8466 iconv_t cd = iconv_open("","");
8467 iconv(cd,NULL,NULL,NULL,NULL);
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475 (eval $ac_link) 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag"
8483 || test ! -s conftest.err'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; } &&
8489 { ac_try='test -s conftest$ac_exeext'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8496 am_cv_func_iconv=yes
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8502 rm -f conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext conftest.$ac_ext
8504 LIBS="$am_save_LIBS"
8508 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8509 echo "${ECHO_T}$am_cv_func_iconv" >&6
8510 if test "$am_cv_func_iconv" = yes; then
8512 cat >>confdefs.h <<\_ACEOF
8513 @%:@define HAVE_ICONV 1
8517 if test "$am_cv_lib_iconv" = yes; then
8518 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8519 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8520 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8521 echo "${ECHO_T}$LIBICONV" >&6
8523 CPPFLAGS="$am_save_CPPFLAGS"
8530 if test "$am_cv_func_iconv" = yes; then
8531 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8532 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8533 if test "${am_cv_proto_iconv+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 cat >conftest.$ac_ext <<_ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8550 #if defined(__STDC__) || defined(__cplusplus)
8551 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8564 rm -f conftest.$ac_objext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8566 (eval $ac_compile) 2>conftest.er1
8568 grep -v '^ *+' conftest.er1 >conftest.err
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -z "$ac_c_werror_flag"
8574 || test ! -s conftest.err'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; } &&
8580 { ac_try='test -s conftest.$ac_objext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586 am_cv_proto_iconv_arg1=""
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8591 am_cv_proto_iconv_arg1="const"
8593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8594 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);"
8597 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8598 echo "$as_me:$LINENO: result: ${ac_t:-
8599 }$am_cv_proto_iconv" >&5
8600 echo "${ECHO_T}${ac_t:-
8601 }$am_cv_proto_iconv" >&6
8603 cat >>confdefs.h <<_ACEOF
8604 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
8610 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8611 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8612 if test "${am_cv_langinfo_codeset+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8615 cat >conftest.$ac_ext <<_ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 #include <langinfo.h>
8625 char* cs = nl_langinfo(CODESET);
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632 (eval $ac_link) 2>conftest.er1
8634 grep -v '^ *+' conftest.er1 >conftest.err
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -z "$ac_c_werror_flag"
8640 || test ! -s conftest.err'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 am_cv_langinfo_codeset=yes
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 am_cv_langinfo_codeset=no
8659 rm -f conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8663 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8664 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8665 if test $am_cv_langinfo_codeset = yes; then
8667 cat >>confdefs.h <<\_ACEOF
8668 @%:@define HAVE_LANGINFO_CODESET 1
8673 if test $ac_cv_header_locale_h = yes; then
8675 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8676 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8677 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 cat >conftest.$ac_ext <<_ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8695 rm -f conftest.$ac_objext conftest$ac_exeext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697 (eval $ac_link) 2>conftest.er1
8699 grep -v '^ *+' conftest.er1 >conftest.err
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_c_werror_flag"
8705 || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 am_cv_val_LC_MESSAGES=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 am_cv_val_LC_MESSAGES=no
8724 rm -f conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
8727 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8728 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8729 if test $am_cv_val_LC_MESSAGES = yes; then
8731 cat >>confdefs.h <<\_ACEOF
8732 @%:@define HAVE_LC_MESSAGES 1
8739 for ac_prog in bison
8741 # Extract the first word of "$ac_prog", so it can be a program name with args.
8742 set dummy $ac_prog; ac_word=$2
8743 echo "$as_me:$LINENO: checking for $ac_word" >&5
8744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8745 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 if test -n "$INTLBISON"; then
8749 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8758 ac_cv_prog_INTLBISON="$ac_prog"
8759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 INTLBISON=$ac_cv_prog_INTLBISON
8768 if test -n "$INTLBISON"; then
8769 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8770 echo "${ECHO_T}$INTLBISON" >&6
8772 echo "$as_me:$LINENO: result: no" >&5
8773 echo "${ECHO_T}no" >&6
8776 test -n "$INTLBISON" && break
8779 if test -z "$INTLBISON"; then
8782 echo "$as_me:$LINENO: checking version of bison" >&5
8783 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8784 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8785 case $ac_prog_version in
8786 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8787 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8788 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8789 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8791 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8792 echo "${ECHO_T}$ac_prog_version" >&6
8794 if test $ac_verc_fail = yes; then
8813 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8814 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8815 # Check whether --enable-nls or --disable-nls was given.
8816 if test "${enable_nls+set}" = set; then
8817 enableval="$enable_nls"
8822 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8823 echo "${ECHO_T}$USE_NLS" >&6
8828 BUILD_INCLUDED_LIBINTL=no
8829 USE_INCLUDED_LIBINTL=no
8835 if test "$USE_NLS" = "yes"; then
8836 gt_use_preinstalled_gnugettext=no
8838 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8839 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8841 # Check whether --with-included-gettext or --without-included-gettext was given.
8842 if test "${with_included_gettext+set}" = set; then
8843 withval="$with_included_gettext"
8844 nls_cv_force_use_gnu_gettext=$withval
8846 nls_cv_force_use_gnu_gettext=no
8848 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8849 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8851 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8852 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8859 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8860 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8861 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 cat >conftest.$ac_ext <<_ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870 #include <libintl.h>
8871 extern int _nl_msg_cat_cntr;
8872 extern int *_nl_domain_bindings;
8876 bindtextdomain ("", "");
8877 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884 (eval $ac_link) 2>conftest.er1
8886 grep -v '^ *+' conftest.er1 >conftest.err
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag"
8892 || test ! -s conftest.err'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; } &&
8898 { ac_try='test -s conftest$ac_exeext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8904 gt_cv_func_gnugettext2_libc=yes
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 gt_cv_func_gnugettext2_libc=no
8911 rm -f conftest.err conftest.$ac_objext \
8912 conftest$ac_exeext conftest.$ac_ext
8914 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8915 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8917 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8923 acl_save_prefix="$prefix"
8924 prefix="$acl_final_prefix"
8925 acl_save_exec_prefix="$exec_prefix"
8926 exec_prefix="$acl_final_exec_prefix"
8928 eval additional_includedir=\"$includedir\"
8929 eval additional_libdir=\"$libdir\"
8931 exec_prefix="$acl_save_exec_prefix"
8932 prefix="$acl_save_prefix"
8935 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8936 if test "${with_libintl_prefix+set}" = set; then
8937 withval="$with_libintl_prefix"
8939 if test "X$withval" = "Xno"; then
8942 if test "X$withval" = "X"; then
8944 acl_save_prefix="$prefix"
8945 prefix="$acl_final_prefix"
8946 acl_save_exec_prefix="$exec_prefix"
8947 exec_prefix="$acl_final_exec_prefix"
8949 eval additional_includedir=\"$includedir\"
8950 eval additional_libdir=\"$libdir\"
8952 exec_prefix="$acl_save_exec_prefix"
8953 prefix="$acl_save_prefix"
8956 additional_includedir="$withval/include"
8957 additional_libdir="$withval/lib"
8967 names_already_handled=
8968 names_next_round='intl '
8969 while test -n "$names_next_round"; do
8970 names_this_round="$names_next_round"
8972 for name in $names_this_round; do
8974 for n in $names_already_handled; do
8975 if test "$n" = "$name"; then
8980 if test -z "$already_handled"; then
8981 names_already_handled="$names_already_handled $name"
8982 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8983 eval value=\"\$HAVE_LIB$uppername\"
8984 if test -n "$value"; then
8985 if test "$value" = yes; then
8986 eval value=\"\$LIB$uppername\"
8987 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8988 eval value=\"\$LTLIB$uppername\"
8989 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8998 if test $use_additional = yes; then
8999 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9000 found_dir="$additional_libdir"
9001 found_so="$additional_libdir/lib$name.$shlibext"
9002 if test -f "$additional_libdir/lib$name.la"; then
9003 found_la="$additional_libdir/lib$name.la"
9006 if test -f "$additional_libdir/lib$name.$libext"; then
9007 found_dir="$additional_libdir"
9008 found_a="$additional_libdir/lib$name.$libext"
9009 if test -f "$additional_libdir/lib$name.la"; then
9010 found_la="$additional_libdir/lib$name.la"
9015 if test "X$found_dir" = "X"; then
9016 for x in $LDFLAGS $LTLIBINTL; do
9018 acl_save_prefix="$prefix"
9019 prefix="$acl_final_prefix"
9020 acl_save_exec_prefix="$exec_prefix"
9021 exec_prefix="$acl_final_exec_prefix"
9023 exec_prefix="$acl_save_exec_prefix"
9024 prefix="$acl_save_prefix"
9028 dir=`echo "X$x" | sed -e 's/^X-L//'`
9029 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9031 found_so="$dir/lib$name.$shlibext"
9032 if test -f "$dir/lib$name.la"; then
9033 found_la="$dir/lib$name.la"
9036 if test -f "$dir/lib$name.$libext"; then
9038 found_a="$dir/lib$name.$libext"
9039 if test -f "$dir/lib$name.la"; then
9040 found_la="$dir/lib$name.la"
9046 if test "X$found_dir" != "X"; then
9051 if test "X$found_dir" != "X"; then
9052 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9053 if test "X$found_so" != "X"; then
9054 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9055 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9058 for x in $ltrpathdirs; do
9059 if test "X$x" = "X$found_dir"; then
9064 if test -z "$haveit"; then
9065 ltrpathdirs="$ltrpathdirs $found_dir"
9067 if test "$hardcode_direct" = yes; then
9068 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9070 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9071 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9073 for x in $rpathdirs; do
9074 if test "X$x" = "X$found_dir"; then
9079 if test -z "$haveit"; then
9080 rpathdirs="$rpathdirs $found_dir"
9084 for x in $LDFLAGS $LIBINTL; do
9086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9091 exec_prefix="$acl_save_exec_prefix"
9092 prefix="$acl_save_prefix"
9094 if test "X$x" = "X-L$found_dir"; then
9099 if test -z "$haveit"; then
9100 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9102 if test "$hardcode_minus_L" != no; then
9103 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9105 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9111 if test "X$found_a" != "X"; then
9112 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9114 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9117 additional_includedir=
9118 case "$found_dir" in
9120 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9121 additional_includedir="$basedir/include"
9124 if test "X$additional_includedir" != "X"; then
9125 if test "X$additional_includedir" != "X/usr/include"; then
9127 if test "X$additional_includedir" = "X/usr/local/include"; then
9128 if test -n "$GCC"; then
9130 linux*) haveit=yes;;
9134 if test -z "$haveit"; then
9135 for x in $CPPFLAGS $INCINTL; do
9137 acl_save_prefix="$prefix"
9138 prefix="$acl_final_prefix"
9139 acl_save_exec_prefix="$exec_prefix"
9140 exec_prefix="$acl_final_exec_prefix"
9142 exec_prefix="$acl_save_exec_prefix"
9143 prefix="$acl_save_prefix"
9145 if test "X$x" = "X-I$additional_includedir"; then
9150 if test -z "$haveit"; then
9151 if test -d "$additional_includedir"; then
9152 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9158 if test -n "$found_la"; then
9159 save_libdir="$libdir"
9161 */* | *\\*) . "$found_la" ;;
9162 *) . "./$found_la" ;;
9164 libdir="$save_libdir"
9165 for dep in $dependency_libs; do
9168 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9169 if test "X$additional_libdir" != "X/usr/lib"; then
9171 if test "X$additional_libdir" = "X/usr/local/lib"; then
9172 if test -n "$GCC"; then
9174 linux*) haveit=yes;;
9178 if test -z "$haveit"; then
9180 for x in $LDFLAGS $LIBINTL; do
9182 acl_save_prefix="$prefix"
9183 prefix="$acl_final_prefix"
9184 acl_save_exec_prefix="$exec_prefix"
9185 exec_prefix="$acl_final_exec_prefix"
9187 exec_prefix="$acl_save_exec_prefix"
9188 prefix="$acl_save_prefix"
9190 if test "X$x" = "X-L$additional_libdir"; then
9195 if test -z "$haveit"; then
9196 if test -d "$additional_libdir"; then
9197 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9201 for x in $LDFLAGS $LTLIBINTL; do
9203 acl_save_prefix="$prefix"
9204 prefix="$acl_final_prefix"
9205 acl_save_exec_prefix="$exec_prefix"
9206 exec_prefix="$acl_final_exec_prefix"
9208 exec_prefix="$acl_save_exec_prefix"
9209 prefix="$acl_save_prefix"
9211 if test "X$x" = "X-L$additional_libdir"; then
9216 if test -z "$haveit"; then
9217 if test -d "$additional_libdir"; then
9218 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9225 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9226 if test "$enable_rpath" != no; then
9228 for x in $rpathdirs; do
9229 if test "X$x" = "X$dir"; then
9234 if test -z "$haveit"; then
9235 rpathdirs="$rpathdirs $dir"
9238 for x in $ltrpathdirs; do
9239 if test "X$x" = "X$dir"; then
9244 if test -z "$haveit"; then
9245 ltrpathdirs="$ltrpathdirs $dir"
9250 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9253 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9256 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9257 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9263 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9264 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9270 if test "X$rpathdirs" != "X"; then
9271 if test -n "$hardcode_libdir_separator"; then
9273 for found_dir in $rpathdirs; do
9274 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9276 acl_save_libdir="$libdir"
9278 eval flag=\"$hardcode_libdir_flag_spec\"
9279 libdir="$acl_save_libdir"
9280 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9282 for found_dir in $rpathdirs; do
9283 acl_save_libdir="$libdir"
9285 eval flag=\"$hardcode_libdir_flag_spec\"
9286 libdir="$acl_save_libdir"
9287 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9291 if test "X$ltrpathdirs" != "X"; then
9292 for found_dir in $ltrpathdirs; do
9293 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9297 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9298 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9299 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 gt_save_CPPFLAGS="$CPPFLAGS"
9303 CPPFLAGS="$CPPFLAGS $INCINTL"
9304 gt_save_LIBS="$LIBS"
9305 LIBS="$LIBS $LIBINTL"
9306 cat >conftest.$ac_ext <<_ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 #include <libintl.h>
9313 extern int _nl_msg_cat_cntr;
9318 const char *_nl_expand_alias ();
9322 bindtextdomain ("", "");
9323 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>conftest.er1
9332 grep -v '^ *+' conftest.er1 >conftest.err
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag"
9338 || test ! -s conftest.err'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; } &&
9344 { ac_try='test -s conftest$ac_exeext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 gt_cv_func_gnugettext2_libintl=yes
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9355 gt_cv_func_gnugettext2_libintl=no
9357 rm -f conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
9360 LIBS="$LIBS $LIBICONV"
9361 cat >conftest.$ac_ext <<_ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 #include <libintl.h>
9368 extern int _nl_msg_cat_cntr;
9373 const char *_nl_expand_alias ();
9377 bindtextdomain ("", "");
9378 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>conftest.er1
9387 grep -v '^ *+' conftest.er1 >conftest.err
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag"
9393 || test ! -s conftest.err'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; } &&
9399 { ac_try='test -s conftest$ac_exeext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 LIBINTL="$LIBINTL $LIBICONV"
9406 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9407 gt_cv_func_gnugettext2_libintl=yes
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9414 rm -f conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9417 CPPFLAGS="$gt_save_CPPFLAGS"
9418 LIBS="$gt_save_LIBS"
9420 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
9421 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
9424 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
9425 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
9426 && test "$PACKAGE" != gettext-runtime \
9427 && test "$PACKAGE" != gettext-tools; }; then
9428 gt_use_preinstalled_gnugettext=yes
9436 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9437 nls_cv_use_gnu_gettext=yes
9441 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9442 BUILD_INCLUDED_LIBINTL=yes
9443 USE_INCLUDED_LIBINTL=yes
9444 LIBINTL="lib/intl/libintl.a $LIBICONV"
9445 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
9446 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9449 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9450 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9455 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9456 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9458 cat >>confdefs.h <<\_ACEOF
9459 @%:@define ENABLE_NLS 1
9467 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9468 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9469 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9470 echo "${ECHO_T}$USE_NLS" >&6
9471 if test "$USE_NLS" = "yes"; then
9472 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9473 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9474 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9475 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9476 gt_source="external libintl"
9481 gt_source="included intl directory"
9483 echo "$as_me:$LINENO: result: $gt_source" >&5
9484 echo "${ECHO_T}$gt_source" >&6
9487 if test "$USE_NLS" = "yes"; then
9489 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9490 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9491 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9492 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9493 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9494 echo "${ECHO_T}$LIBINTL" >&6
9496 for element in $INCINTL; do
9498 for x in $CPPFLAGS; do
9500 acl_save_prefix="$prefix"
9501 prefix="$acl_final_prefix"
9502 acl_save_exec_prefix="$exec_prefix"
9503 exec_prefix="$acl_final_exec_prefix"
9505 exec_prefix="$acl_save_exec_prefix"
9506 prefix="$acl_save_prefix"
9508 if test "X$x" = "X$element"; then
9513 if test -z "$haveit"; then
9514 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9521 cat >>confdefs.h <<\_ACEOF
9522 @%:@define HAVE_GETTEXT 1
9526 cat >>confdefs.h <<\_ACEOF
9527 @%:@define HAVE_DCGETTEXT 1
9536 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9537 BUILD_INCLUDED_LIBINTL=yes
9545 nls_cv_header_libgt=
9556 if test "$USE_INCLUDED_LIBINTL" = yes; then
9557 INTLOBJS="\$(GETTOBJS)"
9561 INTL_LIBTOOL_SUFFIX_PREFIX=
9579 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9580 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9581 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9582 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 cat >conftest.$ac_ext <<_ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 #include <sys/types.h>
9604 rm -f conftest.$ac_objext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>conftest.er1
9608 grep -v '^ *+' conftest.er1 >conftest.err
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest.$ac_objext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 eval "$as_ac_Header=yes"
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 eval "$as_ac_Header=no"
9633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9638 cat >>confdefs.h <<_ACEOF
9639 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9642 ac_header_dirent=$ac_hdr; break
9646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9647 if test $ac_header_dirent = dirent.h; then
9648 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9649 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9650 if test "${ac_cv_search_opendir+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 ac_func_search_save_LIBS=$LIBS
9654 ac_cv_search_opendir=no
9655 cat >conftest.$ac_ext <<_ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9662 /* Override any gcc2 internal prototype to avoid an error. */
9666 /* We use char because int might match the return type of a gcc2
9667 builtin and then its argument prototype would still apply. */
9677 rm -f conftest.$ac_objext conftest$ac_exeext
9678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>conftest.er1
9681 grep -v '^ *+' conftest.er1 >conftest.err
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -z "$ac_c_werror_flag"
9687 || test ! -s conftest.err'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_search_opendir="none required"
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9705 rm -f conftest.err conftest.$ac_objext \
9706 conftest$ac_exeext conftest.$ac_ext
9707 if test "$ac_cv_search_opendir" = no; then
9708 for ac_lib in dir; do
9709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9710 cat >conftest.$ac_ext <<_ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9717 /* Override any gcc2 internal prototype to avoid an error. */
9721 /* We use char because int might match the return type of a gcc2
9722 builtin and then its argument prototype would still apply. */
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9734 (eval $ac_link) 2>conftest.er1
9736 grep -v '^ *+' conftest.er1 >conftest.err
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag"
9742 || test ! -s conftest.err'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_search_opendir="-l$ac_lib"
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9761 rm -f conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_func_search_save_LIBS
9767 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9768 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9769 if test "$ac_cv_search_opendir" != no; then
9770 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9775 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9776 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9777 if test "${ac_cv_search_opendir+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 ac_func_search_save_LIBS=$LIBS
9781 ac_cv_search_opendir=no
9782 cat >conftest.$ac_ext <<_ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9789 /* Override any gcc2 internal prototype to avoid an error. */
9793 /* We use char because int might match the return type of a gcc2
9794 builtin and then its argument prototype would still apply. */
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9806 (eval $ac_link) 2>conftest.er1
9808 grep -v '^ *+' conftest.er1 >conftest.err
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -z "$ac_c_werror_flag"
9814 || test ! -s conftest.err'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; } &&
9820 { ac_try='test -s conftest$ac_exeext'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9826 ac_cv_search_opendir="none required"
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9832 rm -f conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834 if test "$ac_cv_search_opendir" = no; then
9836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9837 cat >conftest.$ac_ext <<_ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9844 /* Override any gcc2 internal prototype to avoid an error. */
9848 /* We use char because int might match the return type of a gcc2
9849 builtin and then its argument prototype would still apply. */
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9861 (eval $ac_link) 2>conftest.er1
9863 grep -v '^ *+' conftest.er1 >conftest.err
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag"
9869 || test ! -s conftest.err'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_search_opendir="-l$ac_lib"
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9888 rm -f conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9892 LIBS=$ac_func_search_save_LIBS
9894 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9895 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9896 if test "$ac_cv_search_opendir" != no; then
9897 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9903 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9904 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9905 if test "${ac_cv_header_time+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 cat >conftest.$ac_ext <<_ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914 #include <sys/types.h>
9915 #include <sys/time.h>
9921 if ((struct tm *) 0)
9927 rm -f conftest.$ac_objext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929 (eval $ac_compile) 2>conftest.er1
9931 grep -v '^ *+' conftest.er1 >conftest.err
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -z "$ac_c_werror_flag"
9937 || test ! -s conftest.err'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; } &&
9943 { ac_try='test -s conftest.$ac_objext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_header_time=yes
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_cv_header_time=no
9956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9958 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9959 echo "${ECHO_T}$ac_cv_header_time" >&6
9960 if test $ac_cv_header_time = yes; then
9962 cat >>confdefs.h <<\_ACEOF
9963 @%:@define TIME_WITH_SYS_TIME 1
9971 for ac_header in inttypes.h
9973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9975 echo "$as_me:$LINENO: checking for $ac_header" >&5
9976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9983 # Is the header compilable?
9984 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9986 cat >conftest.$ac_ext <<_ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 $ac_includes_default
9993 @%:@include <$ac_header>
9995 rm -f conftest.$ac_objext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9997 (eval $ac_compile) 2>conftest.er1
9999 grep -v '^ *+' conftest.er1 >conftest.err
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try='test -z "$ac_c_werror_flag"
10005 || test ! -s conftest.err'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest.$ac_objext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_header_compiler=yes
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 ac_header_compiler=no
10024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10026 echo "${ECHO_T}$ac_header_compiler" >&6
10028 # Is the header present?
10029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10031 cat >conftest.$ac_ext <<_ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 @%:@include <$ac_header>
10039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10042 grep -v '^ *+' conftest.er1 >conftest.err
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } >/dev/null; then
10047 if test -s conftest.err; then
10048 ac_cpp_err=$ac_c_preproc_warn_flag
10049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10056 if test -z "$ac_cpp_err"; then
10057 ac_header_preproc=yes
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10062 ac_header_preproc=no
10064 rm -f conftest.err conftest.$ac_ext
10065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10066 echo "${ECHO_T}$ac_header_preproc" >&6
10068 # So? What about this header?
10069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10075 ac_header_preproc=yes
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10092 @%:@@%:@ ------------------------------- @%:@@%:@
10093 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
10094 @%:@@%:@ ------------------------------- @%:@@%:@
10097 sed "s/^/$as_me: WARNING: /" >&2
10100 echo "$as_me:$LINENO: checking for $ac_header" >&5
10101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 eval "$as_ac_Header=\$ac_header_preproc"
10107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10112 cat >>confdefs.h <<_ACEOF
10113 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10141 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
10142 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
10143 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
10145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10147 echo "$as_me:$LINENO: checking for $ac_header" >&5
10148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10155 # Is the header compilable?
10156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 $ac_includes_default
10165 @%:@include <$ac_header>
10167 rm -f conftest.$ac_objext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10169 (eval $ac_compile) 2>conftest.er1
10171 grep -v '^ *+' conftest.er1 >conftest.err
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -z "$ac_c_werror_flag"
10177 || test ! -s conftest.err'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; } &&
10183 { ac_try='test -s conftest.$ac_objext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_header_compiler=yes
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_header_compiler=no
10196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10198 echo "${ECHO_T}$ac_header_compiler" >&6
10200 # Is the header present?
10201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 @%:@include <$ac_header>
10211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10214 grep -v '^ *+' conftest.er1 >conftest.err
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } >/dev/null; then
10219 if test -s conftest.err; then
10220 ac_cpp_err=$ac_c_preproc_warn_flag
10221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10228 if test -z "$ac_cpp_err"; then
10229 ac_header_preproc=yes
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ac_header_preproc=no
10236 rm -f conftest.err conftest.$ac_ext
10237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10238 echo "${ECHO_T}$ac_header_preproc" >&6
10240 # So? What about this header?
10241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10247 ac_header_preproc=yes
10250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10264 @%:@@%:@ ------------------------------- @%:@@%:@
10265 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
10266 @%:@@%:@ ------------------------------- @%:@@%:@
10269 sed "s/^/$as_me: WARNING: /" >&2
10272 echo "$as_me:$LINENO: checking for $ac_header" >&5
10273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 eval "$as_ac_Header=\$ac_header_preproc"
10279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10284 cat >>confdefs.h <<_ACEOF
10285 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10304 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
10305 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
10306 sys/time.h sys/times.h sys/types.h sys/wait.h
10308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10310 echo "$as_me:$LINENO: checking for $ac_header" >&5
10311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10318 # Is the header compilable?
10319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 $ac_includes_default
10328 @%:@include <$ac_header>
10330 rm -f conftest.$ac_objext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>conftest.er1
10334 grep -v '^ *+' conftest.er1 >conftest.err
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_c_werror_flag"
10340 || test ! -s conftest.err'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 ac_header_compiler=yes
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10357 ac_header_compiler=no
10359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10361 echo "${ECHO_T}$ac_header_compiler" >&6
10363 # Is the header present?
10364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 @%:@include <$ac_header>
10374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10377 grep -v '^ *+' conftest.er1 >conftest.err
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } >/dev/null; then
10382 if test -s conftest.err; then
10383 ac_cpp_err=$ac_c_preproc_warn_flag
10384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10391 if test -z "$ac_cpp_err"; then
10392 ac_header_preproc=yes
10394 echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10397 ac_header_preproc=no
10399 rm -f conftest.err conftest.$ac_ext
10400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10401 echo "${ECHO_T}$ac_header_preproc" >&6
10403 # So? What about this header?
10404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10410 ac_header_preproc=yes
10413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10427 @%:@@%:@ ------------------------------- @%:@@%:@
10428 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
10429 @%:@@%:@ ------------------------------- @%:@@%:@
10432 sed "s/^/$as_me: WARNING: /" >&2
10435 echo "$as_me:$LINENO: checking for $ac_header" >&5
10436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 eval "$as_ac_Header=\$ac_header_preproc"
10442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10447 cat >>confdefs.h <<_ACEOF
10448 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10457 for ac_header in netinet/in.h arpa/inet.h
10459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10461 echo "$as_me:$LINENO: checking for $ac_header" >&5
10462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10469 # Is the header compilable?
10470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10472 cat >conftest.$ac_ext <<_ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 $ac_includes_default
10479 @%:@include <$ac_header>
10481 rm -f conftest.$ac_objext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10483 (eval $ac_compile) 2>conftest.er1
10485 grep -v '^ *+' conftest.er1 >conftest.err
10487 cat conftest.err >&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } &&
10490 { ac_try='test -z "$ac_c_werror_flag"
10491 || test ! -s conftest.err'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; } &&
10497 { ac_try='test -s conftest.$ac_objext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 ac_header_compiler=yes
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 ac_header_compiler=no
10510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10512 echo "${ECHO_T}$ac_header_compiler" >&6
10514 # Is the header present?
10515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10517 cat >conftest.$ac_ext <<_ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523 @%:@include <$ac_header>
10525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10528 grep -v '^ *+' conftest.er1 >conftest.err
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } >/dev/null; then
10533 if test -s conftest.err; then
10534 ac_cpp_err=$ac_c_preproc_warn_flag
10535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10542 if test -z "$ac_cpp_err"; then
10543 ac_header_preproc=yes
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 ac_header_preproc=no
10550 rm -f conftest.err conftest.$ac_ext
10551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10552 echo "${ECHO_T}$ac_header_preproc" >&6
10554 # So? What about this header?
10555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10561 ac_header_preproc=yes
10564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10578 @%:@@%:@ ------------------------------- @%:@@%:@
10579 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
10580 @%:@@%:@ ------------------------------- @%:@@%:@
10583 sed "s/^/$as_me: WARNING: /" >&2
10586 echo "$as_me:$LINENO: checking for $ac_header" >&5
10587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 eval "$as_ac_Header=\$ac_header_preproc"
10593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10598 cat >>confdefs.h <<_ACEOF
10599 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10607 echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
10608 echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
10609 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 cat >conftest.$ac_ext <<_ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10619 #if HAVE_SYS_STREAM_H
10620 # include <sys/stream.h>
10624 @%:@include <sys/ptem.h>
10626 rm -f conftest.$ac_objext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628 (eval $ac_compile) 2>conftest.er1
10630 grep -v '^ *+' conftest.er1 >conftest.err
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
10635 { ac_try='test -z "$ac_c_werror_flag"
10636 || test ! -s conftest.err'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; } &&
10642 { ac_try='test -s conftest.$ac_objext'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }; then
10648 ac_cv_header_sys_ptem_h=yes
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 ac_cv_header_sys_ptem_h=no
10655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10657 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
10658 echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
10662 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10663 # for constant arguments. Useless!
10664 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10665 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10666 if test "${ac_cv_working_alloca_h+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 cat >conftest.$ac_ext <<_ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h. */
10675 @%:@include <alloca.h>
10679 char *p = (char *) alloca (2 * sizeof (int));
10684 rm -f conftest.$ac_objext conftest$ac_exeext
10685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10686 (eval $ac_link) 2>conftest.er1
10688 grep -v '^ *+' conftest.er1 >conftest.err
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -z "$ac_c_werror_flag"
10694 || test ! -s conftest.err'
10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696 (eval $ac_try) 2>&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; } &&
10700 { ac_try='test -s conftest$ac_exeext'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 ac_cv_working_alloca_h=yes
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10711 ac_cv_working_alloca_h=no
10713 rm -f conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10716 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10717 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10718 if test $ac_cv_working_alloca_h = yes; then
10720 cat >>confdefs.h <<\_ACEOF
10721 @%:@define HAVE_ALLOCA_H 1
10726 echo "$as_me:$LINENO: checking for alloca" >&5
10727 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10728 if test "${ac_cv_func_alloca_works+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 cat >conftest.$ac_ext <<_ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10738 # define alloca __builtin_alloca
10741 # include <malloc.h>
10742 # define alloca _alloca
10745 # include <alloca.h>
10750 # ifndef alloca /* predefined by HP cc +Olibcalls */
10761 char *p = (char *) alloca (1);
10766 rm -f conftest.$ac_objext conftest$ac_exeext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10768 (eval $ac_link) 2>conftest.er1
10770 grep -v '^ *+' conftest.er1 >conftest.err
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } &&
10775 { ac_try='test -z "$ac_c_werror_flag"
10776 || test ! -s conftest.err'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; } &&
10782 { ac_try='test -s conftest$ac_exeext'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 ac_cv_func_alloca_works=yes
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_cv_func_alloca_works=no
10795 rm -f conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10798 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10799 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10801 if test $ac_cv_func_alloca_works = yes; then
10803 cat >>confdefs.h <<\_ACEOF
10804 @%:@define HAVE_ALLOCA 1
10808 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10809 # that cause trouble. Some versions do not even contain alloca or
10810 # contain a buggy version. If you still want to use their alloca,
10811 # use ar to extract alloca.o from them instead of compiling alloca.c.
10813 ALLOCA=alloca.$ac_objext
10815 cat >>confdefs.h <<\_ACEOF
10816 @%:@define C_ALLOCA 1
10820 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10821 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10822 if test "${ac_cv_os_cray+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 cat >conftest.$ac_ext <<_ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 #if defined(CRAY) && ! defined(CRAY2)
10838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10839 $EGREP "webecray" >/dev/null 2>&1; then
10847 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10848 echo "${ECHO_T}$ac_cv_os_cray" >&6
10849 if test $ac_cv_os_cray = yes; then
10850 for ac_func in _getb67 GETB67 getb67; do
10851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10852 echo "$as_me:$LINENO: checking for $ac_func" >&5
10853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10854 if eval "test \"\${$as_ac_var+set}\" = set"; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10865 #define $ac_func innocuous_$ac_func
10867 /* System header to define __stub macros and hopefully few prototypes,
10868 which can conflict with char $ac_func (); below.
10869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10870 <limits.h> exists even on freestanding compilers. */
10873 # include <limits.h>
10875 # include <assert.h>
10880 /* Override any gcc2 internal prototype to avoid an error. */
10885 /* We use char because int might match the return type of a gcc2
10886 builtin and then its argument prototype would still apply. */
10888 /* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10894 char (*f) () = $ac_func;
10903 return f != $ac_func;
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910 (eval $ac_link) 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_c_werror_flag"
10918 || test ! -s conftest.err'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; } &&
10924 { ac_try='test -s conftest$ac_exeext'
10925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926 (eval $ac_try) 2>&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; }; then
10930 eval "$as_ac_var=yes"
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10935 eval "$as_ac_var=no"
10937 rm -f conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10942 if test `eval echo '${'$as_ac_var'}'` = yes; then
10944 cat >>confdefs.h <<_ACEOF
10945 @%:@define CRAY_STACKSEG_END $ac_func
10954 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10955 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10956 if test "${ac_cv_c_stack_direction+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 if test "$cross_compiling" = yes; then
10960 ac_cv_c_stack_direction=0
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10969 find_stack_direction ()
10971 static char *addr = 0;
10976 return find_stack_direction ();
10979 return (&dummy > addr) ? 1 : -1;
10985 exit (find_stack_direction () < 0);
10988 rm -f conftest$ac_exeext
10989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10990 (eval $ac_link) 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_c_stack_direction=1
11001 echo "$as_me: program exited with status $ac_status" >&5
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11005 ( exit $ac_status )
11006 ac_cv_c_stack_direction=-1
11008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11011 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11012 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11014 cat >>confdefs.h <<_ACEOF
11015 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
11021 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11022 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
11023 if test "${ac_cv_func_getpgrp_void+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 # Use it with a single arg.
11027 cat >conftest.$ac_ext <<_ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 $ac_includes_default
11042 rm -f conftest.$ac_objext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -z "$ac_c_werror_flag"
11052 || test ! -s conftest.err'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; } &&
11058 { ac_try='test -s conftest.$ac_objext'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 ac_cv_func_getpgrp_void=no
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 ac_cv_func_getpgrp_void=yes
11071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11074 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11075 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
11076 if test $ac_cv_func_getpgrp_void = yes; then
11078 cat >>confdefs.h <<\_ACEOF
11079 @%:@define GETPGRP_VOID 1
11084 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
11085 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
11086 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 ac_cv_func_setvbuf_reversed=no
11090 cat >conftest.$ac_ext <<_ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11098 int (setvbuf) (FILE *, int, char *, size_t);
11103 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
11108 rm -f conftest.$ac_objext conftest$ac_exeext
11109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11110 (eval $ac_link) 2>conftest.er1
11112 grep -v '^ *+' conftest.er1 >conftest.err
11114 cat conftest.err >&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } &&
11117 { ac_try='test -z "$ac_c_werror_flag"
11118 || test ! -s conftest.err'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; } &&
11124 { ac_try='test -s conftest$ac_exeext'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
11130 cat >conftest.$ac_ext <<_ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11138 int (setvbuf) (FILE *, int, char *, size_t);
11143 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150 (eval $ac_link) 2>conftest.er1
11152 grep -v '^ *+' conftest.er1 >conftest.err
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try='test -z "$ac_c_werror_flag"
11158 || test ! -s conftest.err'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 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 # It compiles and links either way, so it must not be declared
11171 # with a prototype and most likely this is a K&R C compiler.
11173 if test "$cross_compiling" = yes; then
11174 : # Assume setvbuf is not reversed when cross-compiling.
11176 cat >conftest.$ac_ext <<_ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11186 /* This call has the arguments reversed.
11187 A reversed system may check and see that the address of buf
11188 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11190 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
11193 exit (0); /* Non-reversed systems SEGV here. */
11198 rm -f conftest$ac_exeext
11199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11200 (eval $ac_link) 2>&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 ac_cv_func_setvbuf_reversed=yes
11211 echo "$as_me: program exited with status $ac_status" >&5
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 ( exit $ac_status )
11218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11220 ac_cv_func_setvbuf_reversed=yes
11222 echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11226 rm -f conftest.err conftest.$ac_objext \
11227 conftest$ac_exeext conftest.$ac_ext
11229 echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11233 rm -f conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext conftest.$ac_ext
11236 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
11237 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
11238 if test $ac_cv_func_setvbuf_reversed = yes; then
11240 cat >>confdefs.h <<\_ACEOF
11241 @%:@define SETVBUF_REVERSED 1
11247 for ac_func in vprintf
11249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11250 echo "$as_me:$LINENO: checking for $ac_func" >&5
11251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11252 if eval "test \"\${$as_ac_var+set}\" = set"; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 cat >conftest.$ac_ext <<_ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11263 #define $ac_func innocuous_$ac_func
11265 /* System header to define __stub macros and hopefully few prototypes,
11266 which can conflict with char $ac_func (); below.
11267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11268 <limits.h> exists even on freestanding compilers. */
11271 # include <limits.h>
11273 # include <assert.h>
11278 /* Override any gcc2 internal prototype to avoid an error. */
11283 /* We use char because int might match the return type of a gcc2
11284 builtin and then its argument prototype would still apply. */
11286 /* The GNU C library defines this for functions which it implements
11287 to always fail with ENOSYS. Some functions are actually named
11288 something starting with __ and the normal name is an alias. */
11289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11292 char (*f) () = $ac_func;
11301 return f != $ac_func;
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>conftest.er1
11310 grep -v '^ *+' conftest.er1 >conftest.err
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 eval "$as_ac_var=yes"
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11333 eval "$as_ac_var=no"
11335 rm -f conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11340 if test `eval echo '${'$as_ac_var'}'` = yes; then
11341 cat >>confdefs.h <<_ACEOF
11342 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11345 echo "$as_me:$LINENO: checking for _doprnt" >&5
11346 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11347 if test "${ac_cv_func__doprnt+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 cat >conftest.$ac_ext <<_ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11358 #define _doprnt innocuous__doprnt
11360 /* System header to define __stub macros and hopefully few prototypes,
11361 which can conflict with char _doprnt (); below.
11362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11363 <limits.h> exists even on freestanding compilers. */
11366 # include <limits.h>
11368 # include <assert.h>
11373 /* Override any gcc2 internal prototype to avoid an error. */
11378 /* We use char because int might match the return type of a gcc2
11379 builtin and then its argument prototype would still apply. */
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11387 char (*f) () = _doprnt;
11396 return f != _doprnt;
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11403 (eval $ac_link) 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_c_werror_flag"
11411 || test ! -s conftest.err'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_func__doprnt=yes
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 ac_cv_func__doprnt=no
11430 rm -f conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11433 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11434 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11435 if test $ac_cv_func__doprnt = yes; then
11437 cat >>confdefs.h <<\_ACEOF
11438 @%:@define HAVE_DOPRNT 1
11447 echo "$as_me:$LINENO: checking for working strcoll" >&5
11448 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
11449 if test "${ac_cv_func_strcoll_works+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 if test "$cross_compiling" = yes; then
11453 ac_cv_func_strcoll_works=no
11455 cat >conftest.$ac_ext <<_ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 $ac_includes_default
11465 exit (strcoll ("abc", "def") >= 0 ||
11466 strcoll ("ABC", "DEF") >= 0 ||
11467 strcoll ("123", "456") >= 0)
11472 rm -f conftest$ac_exeext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11474 (eval $ac_link) 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_cv_func_strcoll_works=yes
11485 echo "$as_me: program exited with status $ac_status" >&5
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11489 ( exit $ac_status )
11490 ac_cv_func_strcoll_works=no
11492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11495 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
11496 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
11497 if test $ac_cv_func_strcoll_works = yes; then
11499 cat >>confdefs.h <<\_ACEOF
11500 @%:@define HAVE_STRCOLL 1
11507 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
11508 MALLOC_TARGET=alloca
11509 MALLOC_SRC=alloca.c
11511 MALLOC_LIB='-lmalloc'
11512 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
11513 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
11514 MALLOC_DEP='$(MALLOC_LIBRARY)'
11517 if test "$ac_cv_func_vprintf" = no; then
11518 echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
11519 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
11520 cat >conftest.$ac_ext <<_ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11530 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
11531 ac_cv_func_vprintf=yes
11535 echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
11536 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
11537 if test $ac_cv_func_vprintf = yes; then
11538 cat >>confdefs.h <<\_ACEOF
11539 @%:@define HAVE_VPRINTF 1
11545 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
11546 case $LIB@&t@OBJS in
11547 "vprint.$ac_objext" | \
11548 *" vprint.$ac_objext" | \
11549 "vprint.$ac_objext "* | \
11550 *" vprint.$ac_objext "* ) ;;
11551 *) LIB@&t@OBJS="$LIB@&t@OBJS vprint.$ac_objext" ;;
11556 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11557 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11558 if test "${ac_cv_type_signal+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 cat >conftest.$ac_ext <<_ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 #include <sys/types.h>
11568 #include <signal.h>
11573 extern "C" void (*signal (int, void (*)(int)))(int);
11575 void (*signal ()) ();
11586 rm -f conftest.$ac_objext
11587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11588 (eval $ac_compile) 2>conftest.er1
11590 grep -v '^ *+' conftest.er1 >conftest.err
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } &&
11595 { ac_try='test -z "$ac_c_werror_flag"
11596 || test ! -s conftest.err'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest.$ac_objext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_cv_type_signal=void
11610 echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11613 ac_cv_type_signal=int
11615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11617 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11618 echo "${ECHO_T}$ac_cv_type_signal" >&6
11620 cat >>confdefs.h <<_ACEOF
11621 @%:@define RETSIGTYPE $ac_cv_type_signal
11626 echo "$as_me:$LINENO: checking for __setostype" >&5
11627 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
11628 if test "${ac_cv_func___setostype+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 cat >conftest.$ac_ext <<_ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11637 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
11638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11639 #define __setostype innocuous___setostype
11641 /* System header to define __stub macros and hopefully few prototypes,
11642 which can conflict with char __setostype (); below.
11643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11644 <limits.h> exists even on freestanding compilers. */
11647 # include <limits.h>
11649 # include <assert.h>
11654 /* Override any gcc2 internal prototype to avoid an error. */
11659 /* We use char because int might match the return type of a gcc2
11660 builtin and then its argument prototype would still apply. */
11661 char __setostype ();
11662 /* The GNU C library defines this for functions which it implements
11663 to always fail with ENOSYS. Some functions are actually named
11664 something starting with __ and the normal name is an alias. */
11665 #if defined (__stub___setostype) || defined (__stub_____setostype)
11668 char (*f) () = __setostype;
11677 return f != __setostype;
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11684 (eval $ac_link) 2>conftest.er1
11686 grep -v '^ *+' conftest.er1 >conftest.err
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag"
11692 || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest$ac_exeext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_cv_func___setostype=yes
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ac_cv_func___setostype=no
11711 rm -f conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
11714 echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
11715 echo "${ECHO_T}$ac_cv_func___setostype" >&6
11716 if test $ac_cv_func___setostype = yes; then
11717 cat >>confdefs.h <<\_ACEOF
11718 @%:@define HAVE_SETOSTYPE 1
11723 echo "$as_me:$LINENO: checking for wait3" >&5
11724 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
11725 if test "${ac_cv_func_wait3+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 cat >conftest.$ac_ext <<_ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
11735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11736 #define wait3 innocuous_wait3
11738 /* System header to define __stub macros and hopefully few prototypes,
11739 which can conflict with char wait3 (); below.
11740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11741 <limits.h> exists even on freestanding compilers. */
11744 # include <limits.h>
11746 # include <assert.h>
11751 /* Override any gcc2 internal prototype to avoid an error. */
11756 /* We use char because int might match the return type of a gcc2
11757 builtin and then its argument prototype would still apply. */
11759 /* The GNU C library defines this for functions which it implements
11760 to always fail with ENOSYS. Some functions are actually named
11761 something starting with __ and the normal name is an alias. */
11762 #if defined (__stub_wait3) || defined (__stub___wait3)
11765 char (*f) () = wait3;
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>conftest.er1
11783 grep -v '^ *+' conftest.er1 >conftest.err
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_c_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_cv_func_wait3=yes
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_cv_func_wait3=no
11808 rm -f conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11811 echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
11812 echo "${ECHO_T}$ac_cv_func_wait3" >&6
11813 if test $ac_cv_func_wait3 = yes; then
11814 cat >>confdefs.h <<\_ACEOF
11815 @%:@define HAVE_WAIT3 1
11820 echo "$as_me:$LINENO: checking for isinf" >&5
11821 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11822 if test "${ac_cv_func_isinf+set}" = set; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 cat >conftest.$ac_ext <<_ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
11832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11833 #define isinf innocuous_isinf
11835 /* System header to define __stub macros and hopefully few prototypes,
11836 which can conflict with char isinf (); below.
11837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11838 <limits.h> exists even on freestanding compilers. */
11841 # include <limits.h>
11843 # include <assert.h>
11848 /* Override any gcc2 internal prototype to avoid an error. */
11853 /* We use char because int might match the return type of a gcc2
11854 builtin and then its argument prototype would still apply. */
11856 /* The GNU C library defines this for functions which it implements
11857 to always fail with ENOSYS. Some functions are actually named
11858 something starting with __ and the normal name is an alias. */
11859 #if defined (__stub_isinf) || defined (__stub___isinf)
11862 char (*f) () = isinf;
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878 (eval $ac_link) 2>conftest.er1
11880 grep -v '^ *+' conftest.er1 >conftest.err
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_c_werror_flag"
11886 || test ! -s conftest.err'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; } &&
11892 { ac_try='test -s conftest$ac_exeext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 ac_cv_func_isinf=yes
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11903 ac_cv_func_isinf=no
11905 rm -f conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11908 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11909 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11910 if test $ac_cv_func_isinf = yes; then
11911 cat >>confdefs.h <<\_ACEOF
11912 @%:@define HAVE_ISINF_IN_LIBC 1
11918 echo "$as_me:$LINENO: checking for mkfifo" >&5
11919 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
11920 if test "${ac_cv_func_mkfifo+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 cat >conftest.$ac_ext <<_ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11929 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
11930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11931 #define mkfifo innocuous_mkfifo
11933 /* System header to define __stub macros and hopefully few prototypes,
11934 which can conflict with char mkfifo (); below.
11935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11936 <limits.h> exists even on freestanding compilers. */
11939 # include <limits.h>
11941 # include <assert.h>
11946 /* Override any gcc2 internal prototype to avoid an error. */
11951 /* We use char because int might match the return type of a gcc2
11952 builtin and then its argument prototype would still apply. */
11954 /* The GNU C library defines this for functions which it implements
11955 to always fail with ENOSYS. Some functions are actually named
11956 something starting with __ and the normal name is an alias. */
11957 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
11960 char (*f) () = mkfifo;
11969 return f != mkfifo;
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976 (eval $ac_link) 2>conftest.er1
11978 grep -v '^ *+' conftest.er1 >conftest.err
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -z "$ac_c_werror_flag"
11984 || test ! -s conftest.err'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; } &&
11990 { ac_try='test -s conftest$ac_exeext'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
11996 ac_cv_func_mkfifo=yes
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12001 ac_cv_func_mkfifo=no
12003 rm -f conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12006 echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
12007 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
12008 if test $ac_cv_func_mkfifo = yes; then
12009 cat >>confdefs.h <<\_ACEOF
12010 @%:@define HAVE_MKFIFO 1
12014 cat >>confdefs.h <<\_ACEOF
12015 @%:@define MKFIFO_MISSING 1
12042 for ac_func in dup2 fcntl getdtablesize getgroups gethostname getpagesize \
12043 getpeername getrlimit getrusage gettimeofday kill killpg \
12044 lstat readlink sbrk select setdtablesize tcgetpgrp uname \
12047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12048 echo "$as_me:$LINENO: checking for $ac_func" >&5
12049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12050 if eval "test \"\${$as_ac_var+set}\" = set"; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 cat >conftest.$ac_ext <<_ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12061 #define $ac_func innocuous_$ac_func
12063 /* System header to define __stub macros and hopefully few prototypes,
12064 which can conflict with char $ac_func (); below.
12065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 <limits.h> exists even on freestanding compilers. */
12069 # include <limits.h>
12071 # include <assert.h>
12076 /* Override any gcc2 internal prototype to avoid an error. */
12081 /* We use char because int might match the return type of a gcc2
12082 builtin and then its argument prototype would still apply. */
12084 /* The GNU C library defines this for functions which it implements
12085 to always fail with ENOSYS. Some functions are actually named
12086 something starting with __ and the normal name is an alias. */
12087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12090 char (*f) () = $ac_func;
12099 return f != $ac_func;
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12106 (eval $ac_link) 2>conftest.er1
12108 grep -v '^ *+' conftest.er1 >conftest.err
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
12113 { ac_try='test -z "$ac_c_werror_flag"
12114 || test ! -s conftest.err'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; } &&
12120 { ac_try='test -s conftest$ac_exeext'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 eval "$as_ac_var=yes"
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 eval "$as_ac_var=no"
12133 rm -f conftest.err conftest.$ac_objext \
12134 conftest$ac_exeext conftest.$ac_ext
12136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12138 if test `eval echo '${'$as_ac_var'}'` = yes; then
12139 cat >>confdefs.h <<_ACEOF
12140 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12147 for ac_func in rename
12149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12150 echo "$as_me:$LINENO: checking for $ac_func" >&5
12151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12152 if eval "test \"\${$as_ac_var+set}\" = set"; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 cat >conftest.$ac_ext <<_ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12163 #define $ac_func innocuous_$ac_func
12165 /* System header to define __stub macros and hopefully few prototypes,
12166 which can conflict with char $ac_func (); below.
12167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168 <limits.h> exists even on freestanding compilers. */
12171 # include <limits.h>
12173 # include <assert.h>
12178 /* Override any gcc2 internal prototype to avoid an error. */
12183 /* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12186 /* The GNU C library defines this for functions which it implements
12187 to always fail with ENOSYS. Some functions are actually named
12188 something starting with __ and the normal name is an alias. */
12189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12192 char (*f) () = $ac_func;
12201 return f != $ac_func;
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12208 (eval $ac_link) 2>conftest.er1
12210 grep -v '^ *+' conftest.er1 >conftest.err
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag"
12216 || test ! -s conftest.err'
12217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218 (eval $ac_try) 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; } &&
12222 { ac_try='test -s conftest$ac_exeext'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 eval "$as_ac_var=yes"
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 eval "$as_ac_var=no"
12235 rm -f conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12240 if test `eval echo '${'$as_ac_var'}'` = yes; then
12241 cat >>confdefs.h <<_ACEOF
12242 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12246 case $LIB@&t@OBJS in
12247 "$ac_func.$ac_objext" | \
12248 *" $ac_func.$ac_objext" | \
12249 "$ac_func.$ac_objext "* | \
12250 *" $ac_func.$ac_objext "* ) ;;
12251 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" ;;
12286 for ac_func in bcopy bzero confstr fnmatch \
12287 getaddrinfo gethostbyname getservbyname getservent inet_aton \
12288 memmove pathconf putenv raise regcomp regexec \
12289 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
12290 sysconf tcgetattr times ttyname tzset unsetenv
12292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12293 echo "$as_me:$LINENO: checking for $ac_func" >&5
12294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12295 if eval "test \"\${$as_ac_var+set}\" = set"; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 cat >conftest.$ac_ext <<_ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12306 #define $ac_func innocuous_$ac_func
12308 /* System header to define __stub macros and hopefully few prototypes,
12309 which can conflict with char $ac_func (); below.
12310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12311 <limits.h> exists even on freestanding compilers. */
12314 # include <limits.h>
12316 # include <assert.h>
12321 /* Override any gcc2 internal prototype to avoid an error. */
12326 /* We use char because int might match the return type of a gcc2
12327 builtin and then its argument prototype would still apply. */
12329 /* The GNU C library defines this for functions which it implements
12330 to always fail with ENOSYS. Some functions are actually named
12331 something starting with __ and the normal name is an alias. */
12332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12335 char (*f) () = $ac_func;
12344 return f != $ac_func;
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag"
12359 || test ! -s conftest.err'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest$ac_exeext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 eval "$as_ac_var=yes"
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 eval "$as_ac_var=no"
12378 rm -f conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
12381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12383 if test `eval echo '${'$as_ac_var'}'` = yes; then
12384 cat >>confdefs.h <<_ACEOF
12385 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12396 for ac_func in vsnprintf snprintf vasprintf asprintf
12398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12399 echo "$as_me:$LINENO: checking for $ac_func" >&5
12400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12401 if eval "test \"\${$as_ac_var+set}\" = set"; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12412 #define $ac_func innocuous_$ac_func
12414 /* System header to define __stub macros and hopefully few prototypes,
12415 which can conflict with char $ac_func (); below.
12416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12417 <limits.h> exists even on freestanding compilers. */
12420 # include <limits.h>
12422 # include <assert.h>
12427 /* Override any gcc2 internal prototype to avoid an error. */
12432 /* We use char because int might match the return type of a gcc2
12433 builtin and then its argument prototype would still apply. */
12435 /* The GNU C library defines this for functions which it implements
12436 to always fail with ENOSYS. Some functions are actually named
12437 something starting with __ and the normal name is an alias. */
12438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12441 char (*f) () = $ac_func;
12450 return f != $ac_func;
12455 rm -f conftest.$ac_objext conftest$ac_exeext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457 (eval $ac_link) 2>conftest.er1
12459 grep -v '^ *+' conftest.er1 >conftest.err
12461 cat conftest.err >&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try='test -z "$ac_c_werror_flag"
12465 || test ! -s conftest.err'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; } &&
12471 { ac_try='test -s conftest$ac_exeext'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 eval "$as_ac_var=yes"
12479 echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12482 eval "$as_ac_var=no"
12484 rm -f conftest.err conftest.$ac_objext \
12485 conftest$ac_exeext conftest.$ac_ext
12487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12489 if test `eval echo '${'$as_ac_var'}'` = yes; then
12490 cat >>confdefs.h <<_ACEOF
12491 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12503 for ac_func in isascii isblank isgraph isprint isspace isxdigit
12505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12506 echo "$as_me:$LINENO: checking for $ac_func" >&5
12507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12508 if eval "test \"\${$as_ac_var+set}\" = set"; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 cat >conftest.$ac_ext <<_ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12519 #define $ac_func innocuous_$ac_func
12521 /* System header to define __stub macros and hopefully few prototypes,
12522 which can conflict with char $ac_func (); below.
12523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12524 <limits.h> exists even on freestanding compilers. */
12527 # include <limits.h>
12529 # include <assert.h>
12534 /* Override any gcc2 internal prototype to avoid an error. */
12539 /* We use char because int might match the return type of a gcc2
12540 builtin and then its argument prototype would still apply. */
12542 /* The GNU C library defines this for functions which it implements
12543 to always fail with ENOSYS. Some functions are actually named
12544 something starting with __ and the normal name is an alias. */
12545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12548 char (*f) () = $ac_func;
12557 return f != $ac_func;
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12564 (eval $ac_link) 2>conftest.er1
12566 grep -v '^ *+' conftest.er1 >conftest.err
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -z "$ac_c_werror_flag"
12572 || test ! -s conftest.err'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest$ac_exeext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 eval "$as_ac_var=yes"
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12589 eval "$as_ac_var=no"
12591 rm -f conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12596 if test `eval echo '${'$as_ac_var'}'` = yes; then
12597 cat >>confdefs.h <<_ACEOF
12598 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12607 for ac_func in getpwent getpwnam getpwuid
12609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12610 echo "$as_me:$LINENO: checking for $ac_func" >&5
12611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12612 if eval "test \"\${$as_ac_var+set}\" = set"; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 cat >conftest.$ac_ext <<_ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12623 #define $ac_func innocuous_$ac_func
12625 /* System header to define __stub macros and hopefully few prototypes,
12626 which can conflict with char $ac_func (); below.
12627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12628 <limits.h> exists even on freestanding compilers. */
12631 # include <limits.h>
12633 # include <assert.h>
12638 /* Override any gcc2 internal prototype to avoid an error. */
12643 /* We use char because int might match the return type of a gcc2
12644 builtin and then its argument prototype would still apply. */
12646 /* The GNU C library defines this for functions which it implements
12647 to always fail with ENOSYS. Some functions are actually named
12648 something starting with __ and the normal name is an alias. */
12649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12652 char (*f) () = $ac_func;
12661 return f != $ac_func;
12666 rm -f conftest.$ac_objext conftest$ac_exeext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12668 (eval $ac_link) 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag"
12676 || test ! -s conftest.err'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 eval "$as_ac_var=yes"
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 eval "$as_ac_var=no"
12695 rm -f conftest.err conftest.$ac_objext \
12696 conftest$ac_exeext conftest.$ac_ext
12698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12700 if test `eval echo '${'$as_ac_var'}'` = yes; then
12701 cat >>confdefs.h <<_ACEOF
12702 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12716 for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
12718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12719 echo "$as_me:$LINENO: checking for $ac_func" >&5
12720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12721 if eval "test \"\${$as_ac_var+set}\" = set"; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 cat >conftest.$ac_ext <<_ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12732 #define $ac_func innocuous_$ac_func
12734 /* System header to define __stub macros and hopefully few prototypes,
12735 which can conflict with char $ac_func (); below.
12736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12737 <limits.h> exists even on freestanding compilers. */
12740 # include <limits.h>
12742 # include <assert.h>
12747 /* Override any gcc2 internal prototype to avoid an error. */
12752 /* We use char because int might match the return type of a gcc2
12753 builtin and then its argument prototype would still apply. */
12755 /* The GNU C library defines this for functions which it implements
12756 to always fail with ENOSYS. Some functions are actually named
12757 something starting with __ and the normal name is an alias. */
12758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12761 char (*f) () = $ac_func;
12770 return f != $ac_func;
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777 (eval $ac_link) 2>conftest.er1
12779 grep -v '^ *+' conftest.er1 >conftest.err
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try='test -z "$ac_c_werror_flag"
12785 || test ! -s conftest.err'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 eval "$as_ac_var=yes"
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 eval "$as_ac_var=no"
12804 rm -f conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12809 if test `eval echo '${'$as_ac_var'}'` = yes; then
12810 cat >>confdefs.h <<_ACEOF
12811 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12815 case $LIB@&t@OBJS in
12816 "$ac_func.$ac_objext" | \
12817 *" $ac_func.$ac_objext" | \
12818 "$ac_func.$ac_objext "* | \
12819 *" $ac_func.$ac_objext "* ) ;;
12820 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" ;;
12834 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
12836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12837 echo "$as_me:$LINENO: checking for $ac_func" >&5
12838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12839 if eval "test \"\${$as_ac_var+set}\" = set"; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 cat >conftest.$ac_ext <<_ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12850 #define $ac_func innocuous_$ac_func
12852 /* System header to define __stub macros and hopefully few prototypes,
12853 which can conflict with char $ac_func (); below.
12854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12855 <limits.h> exists even on freestanding compilers. */
12858 # include <limits.h>
12860 # include <assert.h>
12865 /* Override any gcc2 internal prototype to avoid an error. */
12870 /* We use char because int might match the return type of a gcc2
12871 builtin and then its argument prototype would still apply. */
12873 /* The GNU C library defines this for functions which it implements
12874 to always fail with ENOSYS. Some functions are actually named
12875 something starting with __ and the normal name is an alias. */
12876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12879 char (*f) () = $ac_func;
12888 return f != $ac_func;
12893 rm -f conftest.$ac_objext conftest$ac_exeext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12895 (eval $ac_link) 2>conftest.er1
12897 grep -v '^ *+' conftest.er1 >conftest.err
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
12902 { ac_try='test -z "$ac_c_werror_flag"
12903 || test ! -s conftest.err'
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); }; } &&
12909 { ac_try='test -s conftest$ac_exeext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 eval "$as_ac_var=yes"
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12920 eval "$as_ac_var=no"
12922 rm -f conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext conftest.$ac_ext
12925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12927 if test `eval echo '${'$as_ac_var'}'` = yes; then
12928 cat >>confdefs.h <<_ACEOF
12929 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12933 case $LIB@&t@OBJS in
12934 "$ac_func.$ac_objext" | \
12935 *" $ac_func.$ac_objext" | \
12936 "$ac_func.$ac_objext "* | \
12937 *" $ac_func.$ac_objext "* ) ;;
12938 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" ;;
12946 echo "$as_me:$LINENO: checking whether confstr is declared" >&5
12947 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
12948 if test "${ac_cv_have_decl_confstr+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 cat >conftest.$ac_ext <<_ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 $ac_includes_default
12962 char *p = (char *) confstr;
12969 rm -f conftest.$ac_objext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971 (eval $ac_compile) 2>conftest.er1
12973 grep -v '^ *+' conftest.er1 >conftest.err
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -z "$ac_c_werror_flag"
12979 || test ! -s conftest.err'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest.$ac_objext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_cv_have_decl_confstr=yes
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12996 ac_cv_have_decl_confstr=no
12998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13000 echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
13001 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
13002 if test $ac_cv_have_decl_confstr = yes; then
13004 cat >>confdefs.h <<_ACEOF
13005 @%:@define HAVE_DECL_CONFSTR 1
13010 cat >>confdefs.h <<_ACEOF
13011 @%:@define HAVE_DECL_CONFSTR 0
13018 echo "$as_me:$LINENO: checking whether printf is declared" >&5
13019 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
13020 if test "${ac_cv_have_decl_printf+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 cat >conftest.$ac_ext <<_ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 $ac_includes_default
13034 char *p = (char *) printf;
13041 rm -f conftest.$ac_objext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13043 (eval $ac_compile) 2>conftest.er1
13045 grep -v '^ *+' conftest.er1 >conftest.err
13047 cat conftest.err >&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -z "$ac_c_werror_flag"
13051 || test ! -s conftest.err'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } &&
13057 { ac_try='test -s conftest.$ac_objext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 ac_cv_have_decl_printf=yes
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13068 ac_cv_have_decl_printf=no
13070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13072 echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
13073 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
13074 if test $ac_cv_have_decl_printf = yes; then
13076 cat >>confdefs.h <<_ACEOF
13077 @%:@define HAVE_DECL_PRINTF 1
13082 cat >>confdefs.h <<_ACEOF
13083 @%:@define HAVE_DECL_PRINTF 0
13090 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13091 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13092 if test "${ac_cv_have_decl_sbrk+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 cat >conftest.$ac_ext <<_ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 $ac_includes_default
13106 char *p = (char *) sbrk;
13113 rm -f conftest.$ac_objext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115 (eval $ac_compile) 2>conftest.er1
13117 grep -v '^ *+' conftest.er1 >conftest.err
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try='test -z "$ac_c_werror_flag"
13123 || test ! -s conftest.err'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest.$ac_objext'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135 ac_cv_have_decl_sbrk=yes
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13140 ac_cv_have_decl_sbrk=no
13142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13144 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13145 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13146 if test $ac_cv_have_decl_sbrk = yes; then
13148 cat >>confdefs.h <<_ACEOF
13149 @%:@define HAVE_DECL_SBRK 1
13154 cat >>confdefs.h <<_ACEOF
13155 @%:@define HAVE_DECL_SBRK 0
13162 echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
13163 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
13164 if test "${ac_cv_have_decl_strcpy+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 cat >conftest.$ac_ext <<_ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 $ac_includes_default
13178 char *p = (char *) strcpy;
13185 rm -f conftest.$ac_objext
13186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187 (eval $ac_compile) 2>conftest.er1
13189 grep -v '^ *+' conftest.er1 >conftest.err
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } &&
13194 { ac_try='test -z "$ac_c_werror_flag"
13195 || test ! -s conftest.err'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; } &&
13201 { ac_try='test -s conftest.$ac_objext'
13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 ac_cv_have_decl_strcpy=yes
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13212 ac_cv_have_decl_strcpy=no
13214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13216 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
13217 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
13218 if test $ac_cv_have_decl_strcpy = yes; then
13220 cat >>confdefs.h <<_ACEOF
13221 @%:@define HAVE_DECL_STRCPY 1
13226 cat >>confdefs.h <<_ACEOF
13227 @%:@define HAVE_DECL_STRCPY 0
13234 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
13235 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
13236 if test "${ac_cv_have_decl_strsignal+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 cat >conftest.$ac_ext <<_ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13245 $ac_includes_default
13250 char *p = (char *) strsignal;
13257 rm -f conftest.$ac_objext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13259 (eval $ac_compile) 2>conftest.er1
13261 grep -v '^ *+' conftest.er1 >conftest.err
13263 cat conftest.err >&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } &&
13266 { ac_try='test -z "$ac_c_werror_flag"
13267 || test ! -s conftest.err'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try='test -s conftest.$ac_objext'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_cv_have_decl_strsignal=yes
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 ac_cv_have_decl_strsignal=no
13286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13288 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
13289 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
13290 if test $ac_cv_have_decl_strsignal = yes; then
13292 cat >>confdefs.h <<_ACEOF
13293 @%:@define HAVE_DECL_STRSIGNAL 1
13298 cat >>confdefs.h <<_ACEOF
13299 @%:@define HAVE_DECL_STRSIGNAL 0
13307 echo "$as_me:$LINENO: checking whether strtold is declared" >&5
13308 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
13309 if test "${ac_cv_have_decl_strtold+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 cat >conftest.$ac_ext <<_ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13318 $ac_includes_default
13323 char *p = (char *) strtold;
13330 rm -f conftest.$ac_objext
13331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332 (eval $ac_compile) 2>conftest.er1
13334 grep -v '^ *+' conftest.er1 >conftest.err
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -z "$ac_c_werror_flag"
13340 || test ! -s conftest.err'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; } &&
13346 { ac_try='test -s conftest.$ac_objext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_have_decl_strtold=yes
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13357 ac_cv_have_decl_strtold=no
13359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13361 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
13362 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
13363 if test $ac_cv_have_decl_strtold = yes; then
13365 cat >>confdefs.h <<_ACEOF
13366 @%:@define HAVE_DECL_STRTOLD 1
13370 echo "$as_me:$LINENO: checking for broken strtold" >&5
13371 echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6
13372 if test "${bash_cv_strtold_broken+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 cat >conftest.$ac_ext <<_ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 #include <stdlib.h>
13385 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
13390 rm -f conftest.$ac_objext
13391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13392 (eval $ac_compile) 2>conftest.er1
13394 grep -v '^ *+' conftest.er1 >conftest.err
13396 cat conftest.err >&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } &&
13399 { ac_try='test -z "$ac_c_werror_flag"
13400 || test ! -s conftest.err'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } &&
13406 { ac_try='test -s conftest.$ac_objext'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 bash_cv_strtold_broken=no
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13417 bash_cv_strtold_broken=yes
13419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13424 echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
13425 echo "${ECHO_T}$bash_cv_strtold_broken" >&6
13426 if test "$bash_cv_strtold_broken" = "yes" ; then
13427 cat >>confdefs.h <<\_ACEOF
13428 @%:@define STRTOLD_BROKEN 1
13434 cat >>confdefs.h <<_ACEOF
13435 @%:@define HAVE_DECL_STRTOLD 0
13447 echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
13448 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
13449 if test "${bash_cv_decl_strtoimax+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 cat >conftest.$ac_ext <<_ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13460 # include <stdlib.h>
13462 #if HAVE_INTTYPES_H
13463 # include <inttypes.h>
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13476 (eval $ac_link) 2>conftest.er1
13478 grep -v '^ *+' conftest.er1 >conftest.err
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag"
13484 || test ! -s conftest.err'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; } &&
13490 { ac_try='test -s conftest$ac_exeext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 bash_cv_decl_strtoimax=yes
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13501 bash_cv_decl_strtoimax=no
13503 rm -f conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13506 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
13507 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
13508 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13509 if test $bash_cv_decl_strtoimax = yes; then
13510 cat >>confdefs.h <<_ACEOF
13511 @%:@define $bash_tr_func 1
13515 cat >>confdefs.h <<_ACEOF
13516 @%:@define $bash_tr_func 0
13524 echo "$as_me:$LINENO: checking for declaration of strtol" >&5
13525 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
13526 if test "${bash_cv_decl_strtol+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 cat >conftest.$ac_ext <<_ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13537 # include <stdlib.h>
13539 #if HAVE_INTTYPES_H
13540 # include <inttypes.h>
13551 rm -f conftest.$ac_objext conftest$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553 (eval $ac_link) 2>conftest.er1
13555 grep -v '^ *+' conftest.er1 >conftest.err
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_c_werror_flag"
13561 || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 bash_cv_decl_strtol=yes
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 bash_cv_decl_strtol=no
13580 rm -f conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13583 echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
13584 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
13585 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13586 if test $bash_cv_decl_strtol = yes; then
13587 cat >>confdefs.h <<_ACEOF
13588 @%:@define $bash_tr_func 1
13592 cat >>confdefs.h <<_ACEOF
13593 @%:@define $bash_tr_func 0
13601 echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
13602 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
13603 if test "${bash_cv_decl_strtoll+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 cat >conftest.$ac_ext <<_ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13614 # include <stdlib.h>
13616 #if HAVE_INTTYPES_H
13617 # include <inttypes.h>
13628 rm -f conftest.$ac_objext conftest$ac_exeext
13629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13630 (eval $ac_link) 2>conftest.er1
13632 grep -v '^ *+' conftest.er1 >conftest.err
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try='test -z "$ac_c_werror_flag"
13638 || test ! -s conftest.err'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 bash_cv_decl_strtoll=yes
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13655 bash_cv_decl_strtoll=no
13657 rm -f conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
13660 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
13661 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
13662 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13663 if test $bash_cv_decl_strtoll = yes; then
13664 cat >>confdefs.h <<_ACEOF
13665 @%:@define $bash_tr_func 1
13669 cat >>confdefs.h <<_ACEOF
13670 @%:@define $bash_tr_func 0
13678 echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
13679 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
13680 if test "${bash_cv_decl_strtoul+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 cat >conftest.$ac_ext <<_ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13691 # include <stdlib.h>
13693 #if HAVE_INTTYPES_H
13694 # include <inttypes.h>
13705 rm -f conftest.$ac_objext conftest$ac_exeext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13707 (eval $ac_link) 2>conftest.er1
13709 grep -v '^ *+' conftest.er1 >conftest.err
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } &&
13714 { ac_try='test -z "$ac_c_werror_flag"
13715 || test ! -s conftest.err'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest$ac_exeext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 bash_cv_decl_strtoul=yes
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13732 bash_cv_decl_strtoul=no
13734 rm -f conftest.err conftest.$ac_objext \
13735 conftest$ac_exeext conftest.$ac_ext
13737 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
13738 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
13739 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13740 if test $bash_cv_decl_strtoul = yes; then
13741 cat >>confdefs.h <<_ACEOF
13742 @%:@define $bash_tr_func 1
13746 cat >>confdefs.h <<_ACEOF
13747 @%:@define $bash_tr_func 0
13755 echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
13756 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
13757 if test "${bash_cv_decl_strtoull+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 cat >conftest.$ac_ext <<_ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13768 # include <stdlib.h>
13770 #if HAVE_INTTYPES_H
13771 # include <inttypes.h>
13782 rm -f conftest.$ac_objext conftest$ac_exeext
13783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13784 (eval $ac_link) 2>conftest.er1
13786 grep -v '^ *+' conftest.er1 >conftest.err
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } &&
13791 { ac_try='test -z "$ac_c_werror_flag"
13792 || test ! -s conftest.err'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; } &&
13798 { ac_try='test -s conftest$ac_exeext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 bash_cv_decl_strtoull=yes
13806 echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13809 bash_cv_decl_strtoull=no
13811 rm -f conftest.err conftest.$ac_objext \
13812 conftest$ac_exeext conftest.$ac_ext
13814 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
13815 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
13816 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13817 if test $bash_cv_decl_strtoull = yes; then
13818 cat >>confdefs.h <<_ACEOF
13819 @%:@define $bash_tr_func 1
13823 cat >>confdefs.h <<_ACEOF
13824 @%:@define $bash_tr_func 0
13832 echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
13833 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
13834 if test "${bash_cv_decl_strtoumax+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 cat >conftest.$ac_ext <<_ACEOF
13840 cat confdefs.h >>conftest.$ac_ext
13841 cat >>conftest.$ac_ext <<_ACEOF
13842 /* end confdefs.h. */
13845 # include <stdlib.h>
13847 #if HAVE_INTTYPES_H
13848 # include <inttypes.h>
13859 rm -f conftest.$ac_objext conftest$ac_exeext
13860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13861 (eval $ac_link) 2>conftest.er1
13863 grep -v '^ *+' conftest.er1 >conftest.err
13865 cat conftest.err >&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); } &&
13868 { ac_try='test -z "$ac_c_werror_flag"
13869 || test ! -s conftest.err'
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; } &&
13875 { ac_try='test -s conftest$ac_exeext'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13881 bash_cv_decl_strtoumax=yes
13883 echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13886 bash_cv_decl_strtoumax=no
13888 rm -f conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
13891 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
13892 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
13893 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13894 if test $bash_cv_decl_strtoumax = yes; then
13895 cat >>confdefs.h <<_ACEOF
13896 @%:@define $bash_tr_func 1
13900 cat >>confdefs.h <<_ACEOF
13901 @%:@define $bash_tr_func 0
13910 for ac_header in stdlib.h sys/time.h unistd.h
13912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13914 echo "$as_me:$LINENO: checking for $ac_header" >&5
13915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13922 # Is the header compilable?
13923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13925 cat >conftest.$ac_ext <<_ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13931 $ac_includes_default
13932 @%:@include <$ac_header>
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 (eval $ac_compile) 2>conftest.er1
13938 grep -v '^ *+' conftest.er1 >conftest.err
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -z "$ac_c_werror_flag"
13944 || test ! -s conftest.err'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; } &&
13950 { ac_try='test -s conftest.$ac_objext'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 ac_header_compiler=yes
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13961 ac_header_compiler=no
13963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13965 echo "${ECHO_T}$ac_header_compiler" >&6
13967 # Is the header present?
13968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13970 cat >conftest.$ac_ext <<_ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976 @%:@include <$ac_header>
13978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13981 grep -v '^ *+' conftest.er1 >conftest.err
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } >/dev/null; then
13986 if test -s conftest.err; then
13987 ac_cpp_err=$ac_c_preproc_warn_flag
13988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13995 if test -z "$ac_cpp_err"; then
13996 ac_header_preproc=yes
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14001 ac_header_preproc=no
14003 rm -f conftest.err conftest.$ac_ext
14004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14005 echo "${ECHO_T}$ac_header_preproc" >&6
14007 # So? What about this header?
14008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14014 ac_header_preproc=yes
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14031 @%:@@%:@ ------------------------------- @%:@@%:@
14032 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
14033 @%:@@%:@ ------------------------------- @%:@@%:@
14036 sed "s/^/$as_me: WARNING: /" >&2
14039 echo "$as_me:$LINENO: checking for $ac_header" >&5
14040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 eval "$as_ac_Header=\$ac_header_preproc"
14046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14051 cat >>confdefs.h <<_ACEOF
14052 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14060 for ac_func in alarm
14062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14063 echo "$as_me:$LINENO: checking for $ac_func" >&5
14064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14065 if eval "test \"\${$as_ac_var+set}\" = set"; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 cat >conftest.$ac_ext <<_ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14076 #define $ac_func innocuous_$ac_func
14078 /* System header to define __stub macros and hopefully few prototypes,
14079 which can conflict with char $ac_func (); below.
14080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14081 <limits.h> exists even on freestanding compilers. */
14084 # include <limits.h>
14086 # include <assert.h>
14091 /* Override any gcc2 internal prototype to avoid an error. */
14096 /* We use char because int might match the return type of a gcc2
14097 builtin and then its argument prototype would still apply. */
14099 /* The GNU C library defines this for functions which it implements
14100 to always fail with ENOSYS. Some functions are actually named
14101 something starting with __ and the normal name is an alias. */
14102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14105 char (*f) () = $ac_func;
14114 return f != $ac_func;
14119 rm -f conftest.$ac_objext conftest$ac_exeext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14121 (eval $ac_link) 2>conftest.er1
14123 grep -v '^ *+' conftest.er1 >conftest.err
14125 cat conftest.err >&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } &&
14128 { ac_try='test -z "$ac_c_werror_flag"
14129 || test ! -s conftest.err'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; } &&
14135 { ac_try='test -s conftest$ac_exeext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 eval "$as_ac_var=yes"
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 eval "$as_ac_var=no"
14148 rm -f conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14153 if test `eval echo '${'$as_ac_var'}'` = yes; then
14154 cat >>confdefs.h <<_ACEOF
14155 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14161 echo "$as_me:$LINENO: checking for working mktime" >&5
14162 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14163 if test "${ac_cv_func_working_mktime+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 if test "$cross_compiling" = yes; then
14167 ac_cv_func_working_mktime=no
14169 cat >conftest.$ac_ext <<_ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14175 /* Test program from Paul Eggert and Tony Leneis. */
14176 #if TIME_WITH_SYS_TIME
14177 # include <sys/time.h>
14180 # if HAVE_SYS_TIME_H
14181 # include <sys/time.h>
14188 # include <stdlib.h>
14192 # include <unistd.h>
14196 # define alarm(X) /* empty */
14199 /* Work around redefinition to rpl_putenv by other config tests. */
14202 static time_t time_t_max;
14203 static time_t time_t_min;
14205 /* Values we'll use to set the TZ environment variable. */
14206 static char *tz_strings[] = {
14207 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14208 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14210 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14212 /* Fail if mktime fails to convert a date in the spring-forward gap.
14213 Based on a problem report from Andreas Jaeger. */
14215 spring_forward_gap ()
14217 /* glibc (up to about 1998-10-07) failed this test. */
14220 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14221 instead of "TZ=America/Vancouver" in order to detect the bug even
14222 on systems that don't support the Olson extension, or don't have the
14223 full zoneinfo tables installed. */
14224 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14233 if (mktime (&tm) == (time_t)-1)
14242 if ((lt = localtime (&now)) && mktime (lt) != now)
14250 mktime_test1 (now);
14251 mktime_test1 ((time_t) (time_t_max - now));
14252 mktime_test1 ((time_t) (time_t_min + now));
14258 /* Based on code from Ariel Faigon. */
14268 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14278 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14279 now = mktime (&tm);
14280 if (now != (time_t) -1)
14282 struct tm *lt = localtime (&now);
14284 && lt->tm_year == tm.tm_year
14285 && lt->tm_mon == tm.tm_mon
14286 && lt->tm_mday == tm.tm_mday
14287 && lt->tm_hour == tm.tm_hour
14288 && lt->tm_min == tm.tm_min
14289 && lt->tm_sec == tm.tm_sec
14290 && lt->tm_yday == tm.tm_yday
14291 && lt->tm_wday == tm.tm_wday
14292 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14293 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14304 /* This test makes some buggy mktime implementations loop.
14305 Give up after 60 seconds; a mktime slower than that
14306 isn't worth using anyway. */
14309 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14312 if ((time_t) -1 < 0)
14313 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14315 delta = time_t_max / 997; /* a suitable prime number */
14316 for (i = 0; i < N_STRINGS; i++)
14319 putenv (tz_strings[i]);
14321 for (t = 0; t <= time_t_max - delta; t += delta)
14323 mktime_test ((time_t) 1);
14324 mktime_test ((time_t) (60 * 60));
14325 mktime_test ((time_t) (60 * 60 * 24));
14327 for (j = 1; 0 < j; j *= 2)
14329 bigtime_test (j - 1);
14332 spring_forward_gap ();
14336 rm -f conftest$ac_exeext
14337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14338 (eval $ac_link) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; }; then
14347 ac_cv_func_working_mktime=yes
14349 echo "$as_me: program exited with status $ac_status" >&5
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 ( exit $ac_status )
14354 ac_cv_func_working_mktime=no
14356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14359 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14360 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14361 if test $ac_cv_func_working_mktime = no; then
14362 case $LIB@&t@OBJS in
14363 "mktime.$ac_objext" | \
14364 *" mktime.$ac_objext" | \
14365 "mktime.$ac_objext "* | \
14366 *" mktime.$ac_objext "* ) ;;
14367 *) LIB@&t@OBJS="$LIB@&t@OBJS mktime.$ac_objext" ;;
14379 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
14381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14383 echo "$as_me:$LINENO: checking for $ac_header" >&5
14384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14391 # Is the header compilable?
14392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14394 cat >conftest.$ac_ext <<_ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 $ac_includes_default
14401 @%:@include <$ac_header>
14403 rm -f conftest.$ac_objext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14405 (eval $ac_compile) 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_c_werror_flag"
14413 || test ! -s conftest.err'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14425 ac_header_compiler=yes
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 ac_header_compiler=no
14432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14434 echo "${ECHO_T}$ac_header_compiler" >&6
14436 # Is the header present?
14437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 @%:@include <$ac_header>
14447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14450 grep -v '^ *+' conftest.er1 >conftest.err
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } >/dev/null; then
14455 if test -s conftest.err; then
14456 ac_cpp_err=$ac_c_preproc_warn_flag
14457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14464 if test -z "$ac_cpp_err"; then
14465 ac_header_preproc=yes
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14470 ac_header_preproc=no
14472 rm -f conftest.err conftest.$ac_ext
14473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14474 echo "${ECHO_T}$ac_header_preproc" >&6
14476 # So? What about this header?
14477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14483 ac_header_preproc=yes
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14500 @%:@@%:@ ------------------------------- @%:@@%:@
14501 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
14502 @%:@@%:@ ------------------------------- @%:@@%:@
14505 sed "s/^/$as_me: WARNING: /" >&2
14508 echo "$as_me:$LINENO: checking for $ac_header" >&5
14509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 eval "$as_ac_Header=\$ac_header_preproc"
14515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14520 cat >>confdefs.h <<_ACEOF
14521 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14531 for ac_header in stdlib.h unistd.h
14533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14535 echo "$as_me:$LINENO: checking for $ac_header" >&5
14536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14543 # Is the header compilable?
14544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14546 cat >conftest.$ac_ext <<_ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 $ac_includes_default
14553 @%:@include <$ac_header>
14555 rm -f conftest.$ac_objext
14556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14557 (eval $ac_compile) 2>conftest.er1
14559 grep -v '^ *+' conftest.er1 >conftest.err
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } &&
14564 { ac_try='test -z "$ac_c_werror_flag"
14565 || test ! -s conftest.err'
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; } &&
14571 { ac_try='test -s conftest.$ac_objext'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; }; then
14577 ac_header_compiler=yes
14579 echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14582 ac_header_compiler=no
14584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14586 echo "${ECHO_T}$ac_header_compiler" >&6
14588 # Is the header present?
14589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14591 cat >conftest.$ac_ext <<_ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 @%:@include <$ac_header>
14599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14602 grep -v '^ *+' conftest.er1 >conftest.err
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } >/dev/null; then
14607 if test -s conftest.err; then
14608 ac_cpp_err=$ac_c_preproc_warn_flag
14609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14616 if test -z "$ac_cpp_err"; then
14617 ac_header_preproc=yes
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 ac_header_preproc=no
14624 rm -f conftest.err conftest.$ac_ext
14625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14626 echo "${ECHO_T}$ac_header_preproc" >&6
14628 # So? What about this header?
14629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14635 ac_header_preproc=yes
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14652 @%:@@%:@ ------------------------------- @%:@@%:@
14653 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
14654 @%:@@%:@ ------------------------------- @%:@@%:@
14657 sed "s/^/$as_me: WARNING: /" >&2
14660 echo "$as_me:$LINENO: checking for $ac_header" >&5
14661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 eval "$as_ac_Header=\$ac_header_preproc"
14667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14672 cat >>confdefs.h <<_ACEOF
14673 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14681 for ac_func in getpagesize
14683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14684 echo "$as_me:$LINENO: checking for $ac_func" >&5
14685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14686 if eval "test \"\${$as_ac_var+set}\" = set"; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 cat >conftest.$ac_ext <<_ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14697 #define $ac_func innocuous_$ac_func
14699 /* System header to define __stub macros and hopefully few prototypes,
14700 which can conflict with char $ac_func (); below.
14701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14702 <limits.h> exists even on freestanding compilers. */
14705 # include <limits.h>
14707 # include <assert.h>
14712 /* Override any gcc2 internal prototype to avoid an error. */
14717 /* We use char because int might match the return type of a gcc2
14718 builtin and then its argument prototype would still apply. */
14720 /* The GNU C library defines this for functions which it implements
14721 to always fail with ENOSYS. Some functions are actually named
14722 something starting with __ and the normal name is an alias. */
14723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14726 char (*f) () = $ac_func;
14735 return f != $ac_func;
14740 rm -f conftest.$ac_objext conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742 (eval $ac_link) 2>conftest.er1
14744 grep -v '^ *+' conftest.er1 >conftest.err
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try='test -z "$ac_c_werror_flag"
14750 || test ! -s conftest.err'
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest$ac_exeext'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 eval "$as_ac_var=yes"
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14767 eval "$as_ac_var=no"
14769 rm -f conftest.err conftest.$ac_objext \
14770 conftest$ac_exeext conftest.$ac_ext
14772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14774 if test `eval echo '${'$as_ac_var'}'` = yes; then
14775 cat >>confdefs.h <<_ACEOF
14776 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14782 echo "$as_me:$LINENO: checking for working mmap" >&5
14783 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14784 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 if test "$cross_compiling" = yes; then
14788 ac_cv_func_mmap_fixed_mapped=no
14790 cat >conftest.$ac_ext <<_ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 $ac_includes_default
14797 /* malloc might have been renamed as rpl_malloc. */
14800 /* Thanks to Mike Haertel and Jim Avera for this test.
14801 Here is a matrix of mmap possibilities:
14802 mmap private not fixed
14803 mmap private fixed at somewhere currently unmapped
14804 mmap private fixed at somewhere already mapped
14805 mmap shared not fixed
14806 mmap shared fixed at somewhere currently unmapped
14807 mmap shared fixed at somewhere already mapped
14808 For private mappings, we should verify that changes cannot be read()
14809 back from the file, nor mmap's back from the file at a different
14810 address. (There have been systems where private was not correctly
14811 implemented like the infamous i386 svr4.0, and systems where the
14812 VM page cache was not coherent with the file system buffer cache
14813 like early versions of FreeBSD and possibly contemporary NetBSD.)
14814 For shared mappings, we should conversely verify that changes get
14815 propagated back to all the places they're supposed to be.
14817 Grep wants private fixed already mapped.
14818 The main things grep needs to know about mmap are:
14819 * does it exist and is it safe to write into the mmap'd area
14820 * how to use it (BSD variants) */
14823 #include <sys/mman.h>
14825 #if !STDC_HEADERS && !HAVE_STDLIB_H
14829 /* This mess was copied from the GNU getpagesize.h. */
14830 #if !HAVE_GETPAGESIZE
14831 /* Assume that all systems that can run configure have sys/param.h. */
14832 # if !HAVE_SYS_PARAM_H
14833 # define HAVE_SYS_PARAM_H 1
14836 # ifdef _SC_PAGESIZE
14837 # define getpagesize() sysconf(_SC_PAGESIZE)
14838 # else /* no _SC_PAGESIZE */
14839 # if HAVE_SYS_PARAM_H
14840 # include <sys/param.h>
14841 # ifdef EXEC_PAGESIZE
14842 # define getpagesize() EXEC_PAGESIZE
14843 # else /* no EXEC_PAGESIZE */
14845 # define getpagesize() NBPG * CLSIZE
14848 # endif /* no CLSIZE */
14849 # else /* no NBPG */
14851 # define getpagesize() NBPC
14852 # else /* no NBPC */
14854 # define getpagesize() PAGESIZE
14855 # endif /* PAGESIZE */
14856 # endif /* no NBPC */
14857 # endif /* no NBPG */
14858 # endif /* no EXEC_PAGESIZE */
14859 # else /* no HAVE_SYS_PARAM_H */
14860 # define getpagesize() 8192 /* punt totally */
14861 # endif /* no HAVE_SYS_PARAM_H */
14862 # endif /* no _SC_PAGESIZE */
14864 #endif /* no HAVE_GETPAGESIZE */
14869 char *data, *data2, *data3;
14873 pagesize = getpagesize ();
14875 /* First, make a file with some known garbage in it. */
14876 data = (char *) malloc (pagesize);
14879 for (i = 0; i < pagesize; ++i)
14880 *(data + i) = rand ();
14882 fd = creat ("conftest.mmap", 0600);
14885 if (write (fd, data, pagesize) != pagesize)
14889 /* Next, try to mmap the file at a fixed address which already has
14890 something else allocated at it. If we can, also make sure that
14891 we see the same garbage. */
14892 fd = open ("conftest.mmap", O_RDWR);
14895 data2 = (char *) malloc (2 * pagesize);
14898 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14899 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14900 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14902 for (i = 0; i < pagesize; ++i)
14903 if (*(data + i) != *(data2 + i))
14906 /* Finally, make sure that changes to the mapped area do not
14907 percolate back to the file as seen by read(). (This is a bug on
14908 some variants of i386 svr4.0.) */
14909 for (i = 0; i < pagesize; ++i)
14910 *(data2 + i) = *(data2 + i) + 1;
14911 data3 = (char *) malloc (pagesize);
14914 if (read (fd, data3, pagesize) != pagesize)
14916 for (i = 0; i < pagesize; ++i)
14917 if (*(data + i) != *(data3 + i))
14923 rm -f conftest$ac_exeext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14925 (eval $ac_link) 2>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; }; then
14934 ac_cv_func_mmap_fixed_mapped=yes
14936 echo "$as_me: program exited with status $ac_status" >&5
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ( exit $ac_status )
14941 ac_cv_func_mmap_fixed_mapped=no
14943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14946 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14947 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14948 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14950 cat >>confdefs.h <<\_ACEOF
14951 @%:@define HAVE_MMAP 1
14955 rm -f conftest.mmap
14966 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
14967 munmap stpcpy strcspn strdup
14969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14970 echo "$as_me:$LINENO: checking for $ac_func" >&5
14971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14972 if eval "test \"\${$as_ac_var+set}\" = set"; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 cat >conftest.$ac_ext <<_ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14983 #define $ac_func innocuous_$ac_func
14985 /* System header to define __stub macros and hopefully few prototypes,
14986 which can conflict with char $ac_func (); below.
14987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14988 <limits.h> exists even on freestanding compilers. */
14991 # include <limits.h>
14993 # include <assert.h>
14998 /* Override any gcc2 internal prototype to avoid an error. */
15003 /* We use char because int might match the return type of a gcc2
15004 builtin and then its argument prototype would still apply. */
15006 /* The GNU C library defines this for functions which it implements
15007 to always fail with ENOSYS. Some functions are actually named
15008 something starting with __ and the normal name is an alias. */
15009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15012 char (*f) () = $ac_func;
15021 return f != $ac_func;
15026 rm -f conftest.$ac_objext conftest$ac_exeext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15028 (eval $ac_link) 2>conftest.er1
15030 grep -v '^ *+' conftest.er1 >conftest.err
15032 cat conftest.err >&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } &&
15035 { ac_try='test -z "$ac_c_werror_flag"
15036 || test ! -s conftest.err'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; } &&
15042 { ac_try='test -s conftest$ac_exeext'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15048 eval "$as_ac_var=yes"
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 eval "$as_ac_var=no"
15055 rm -f conftest.err conftest.$ac_objext \
15056 conftest$ac_exeext conftest.$ac_ext
15058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15060 if test `eval echo '${'$as_ac_var'}'` = yes; then
15061 cat >>confdefs.h <<_ACEOF
15062 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15069 INTL_DEP= INTL_INC= LIBINTL_H=
15070 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
15071 INTL_DEP='${INTL_LIBDIR}/libintl.a'
15072 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
15073 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
15082 for ac_header in wctype.h
15084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15086 echo "$as_me:$LINENO: checking for $ac_header" >&5
15087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15094 # Is the header compilable?
15095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15097 cat >conftest.$ac_ext <<_ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103 $ac_includes_default
15104 @%:@include <$ac_header>
15106 rm -f conftest.$ac_objext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108 (eval $ac_compile) 2>conftest.er1
15110 grep -v '^ *+' conftest.er1 >conftest.err
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -z "$ac_c_werror_flag"
15116 || test ! -s conftest.err'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; } &&
15122 { ac_try='test -s conftest.$ac_objext'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }; then
15128 ac_header_compiler=yes
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_header_compiler=no
15135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15137 echo "${ECHO_T}$ac_header_compiler" >&6
15139 # Is the header present?
15140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15142 cat >conftest.$ac_ext <<_ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 @%:@include <$ac_header>
15150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15153 grep -v '^ *+' conftest.er1 >conftest.err
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } >/dev/null; then
15158 if test -s conftest.err; then
15159 ac_cpp_err=$ac_c_preproc_warn_flag
15160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15167 if test -z "$ac_cpp_err"; then
15168 ac_header_preproc=yes
15170 echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15173 ac_header_preproc=no
15175 rm -f conftest.err conftest.$ac_ext
15176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15177 echo "${ECHO_T}$ac_header_preproc" >&6
15179 # So? What about this header?
15180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15186 ac_header_preproc=yes
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15203 @%:@@%:@ ------------------------------- @%:@@%:@
15204 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
15205 @%:@@%:@ ------------------------------- @%:@@%:@
15208 sed "s/^/$as_me: WARNING: /" >&2
15211 echo "$as_me:$LINENO: checking for $ac_header" >&5
15212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 eval "$as_ac_Header=\$ac_header_preproc"
15218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15223 cat >>confdefs.h <<_ACEOF
15224 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15232 for ac_header in wchar.h
15234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15236 echo "$as_me:$LINENO: checking for $ac_header" >&5
15237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15244 # Is the header compilable?
15245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15247 cat >conftest.$ac_ext <<_ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 $ac_includes_default
15254 @%:@include <$ac_header>
15256 rm -f conftest.$ac_objext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15258 (eval $ac_compile) 2>conftest.er1
15260 grep -v '^ *+' conftest.er1 >conftest.err
15262 cat conftest.err >&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } &&
15265 { ac_try='test -z "$ac_c_werror_flag"
15266 || test ! -s conftest.err'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try='test -s conftest.$ac_objext'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then
15278 ac_header_compiler=yes
15280 echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15283 ac_header_compiler=no
15285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15287 echo "${ECHO_T}$ac_header_compiler" >&6
15289 # Is the header present?
15290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 @%:@include <$ac_header>
15300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15303 grep -v '^ *+' conftest.er1 >conftest.err
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } >/dev/null; then
15308 if test -s conftest.err; then
15309 ac_cpp_err=$ac_c_preproc_warn_flag
15310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15317 if test -z "$ac_cpp_err"; then
15318 ac_header_preproc=yes
15320 echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 ac_header_preproc=no
15325 rm -f conftest.err conftest.$ac_ext
15326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15327 echo "${ECHO_T}$ac_header_preproc" >&6
15329 # So? What about this header?
15330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15336 ac_header_preproc=yes
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15353 @%:@@%:@ ------------------------------- @%:@@%:@
15354 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
15355 @%:@@%:@ ------------------------------- @%:@@%:@
15358 sed "s/^/$as_me: WARNING: /" >&2
15361 echo "$as_me:$LINENO: checking for $ac_header" >&5
15362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 eval "$as_ac_Header=\$ac_header_preproc"
15368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15373 cat >>confdefs.h <<_ACEOF
15374 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15382 for ac_header in langinfo.h
15384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15386 echo "$as_me:$LINENO: checking for $ac_header" >&5
15387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15394 # Is the header compilable?
15395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15397 cat >conftest.$ac_ext <<_ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15403 $ac_includes_default
15404 @%:@include <$ac_header>
15406 rm -f conftest.$ac_objext
15407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15408 (eval $ac_compile) 2>conftest.er1
15410 grep -v '^ *+' conftest.er1 >conftest.err
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -z "$ac_c_werror_flag"
15416 || test ! -s conftest.err'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; } &&
15422 { ac_try='test -s conftest.$ac_objext'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428 ac_header_compiler=yes
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 ac_header_compiler=no
15435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15437 echo "${ECHO_T}$ac_header_compiler" >&6
15439 # Is the header present?
15440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15442 cat >conftest.$ac_ext <<_ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15448 @%:@include <$ac_header>
15450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15453 grep -v '^ *+' conftest.er1 >conftest.err
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } >/dev/null; then
15458 if test -s conftest.err; then
15459 ac_cpp_err=$ac_c_preproc_warn_flag
15460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15467 if test -z "$ac_cpp_err"; then
15468 ac_header_preproc=yes
15470 echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15473 ac_header_preproc=no
15475 rm -f conftest.err conftest.$ac_ext
15476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15477 echo "${ECHO_T}$ac_header_preproc" >&6
15479 # So? What about this header?
15480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15486 ac_header_preproc=yes
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15503 @%:@@%:@ ------------------------------- @%:@@%:@
15504 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
15505 @%:@@%:@ ------------------------------- @%:@@%:@
15508 sed "s/^/$as_me: WARNING: /" >&2
15511 echo "$as_me:$LINENO: checking for $ac_header" >&5
15512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 eval "$as_ac_Header=\$ac_header_preproc"
15518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15523 cat >>confdefs.h <<_ACEOF
15524 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15532 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
15533 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
15534 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 cat >conftest.$ac_ext <<_ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
15544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15545 #define mbsrtowcs innocuous_mbsrtowcs
15547 /* System header to define __stub macros and hopefully few prototypes,
15548 which can conflict with char mbsrtowcs (); below.
15549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15550 <limits.h> exists even on freestanding compilers. */
15553 # include <limits.h>
15555 # include <assert.h>
15560 /* Override any gcc2 internal prototype to avoid an error. */
15565 /* We use char because int might match the return type of a gcc2
15566 builtin and then its argument prototype would still apply. */
15568 /* The GNU C library defines this for functions which it implements
15569 to always fail with ENOSYS. Some functions are actually named
15570 something starting with __ and the normal name is an alias. */
15571 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
15574 char (*f) () = mbsrtowcs;
15583 return f != mbsrtowcs;
15588 rm -f conftest.$ac_objext conftest$ac_exeext
15589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15590 (eval $ac_link) 2>conftest.er1
15592 grep -v '^ *+' conftest.er1 >conftest.err
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try='test -z "$ac_c_werror_flag"
15598 || test ! -s conftest.err'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest$ac_exeext'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_cv_func_mbsrtowcs=yes
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 ac_cv_func_mbsrtowcs=no
15617 rm -f conftest.err conftest.$ac_objext \
15618 conftest$ac_exeext conftest.$ac_ext
15620 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
15621 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
15622 if test $ac_cv_func_mbsrtowcs = yes; then
15623 cat >>confdefs.h <<\_ACEOF
15624 @%:@define HAVE_MBSRTOWCS 1
15629 echo "$as_me:$LINENO: checking for mbrtowc" >&5
15630 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
15631 if test "${ac_cv_func_mbrtowc+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
15641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15642 #define mbrtowc innocuous_mbrtowc
15644 /* System header to define __stub macros and hopefully few prototypes,
15645 which can conflict with char mbrtowc (); below.
15646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15647 <limits.h> exists even on freestanding compilers. */
15650 # include <limits.h>
15652 # include <assert.h>
15657 /* Override any gcc2 internal prototype to avoid an error. */
15662 /* We use char because int might match the return type of a gcc2
15663 builtin and then its argument prototype would still apply. */
15665 /* The GNU C library defines this for functions which it implements
15666 to always fail with ENOSYS. Some functions are actually named
15667 something starting with __ and the normal name is an alias. */
15668 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
15671 char (*f) () = mbrtowc;
15680 return f != mbrtowc;
15685 rm -f conftest.$ac_objext conftest$ac_exeext
15686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15687 (eval $ac_link) 2>conftest.er1
15689 grep -v '^ *+' conftest.er1 >conftest.err
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -z "$ac_c_werror_flag"
15695 || test ! -s conftest.err'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; } &&
15701 { ac_try='test -s conftest$ac_exeext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_cv_func_mbrtowc=yes
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 ac_cv_func_mbrtowc=no
15714 rm -f conftest.err conftest.$ac_objext \
15715 conftest$ac_exeext conftest.$ac_ext
15717 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
15718 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
15719 if test $ac_cv_func_mbrtowc = yes; then
15720 cat >>confdefs.h <<\_ACEOF
15721 @%:@define HAVE_MBRTOWC 1
15726 echo "$as_me:$LINENO: checking for mbrlen" >&5
15727 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
15728 if test "${ac_cv_func_mbrlen+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 cat >conftest.$ac_ext <<_ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
15738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15739 #define mbrlen innocuous_mbrlen
15741 /* System header to define __stub macros and hopefully few prototypes,
15742 which can conflict with char mbrlen (); below.
15743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15744 <limits.h> exists even on freestanding compilers. */
15747 # include <limits.h>
15749 # include <assert.h>
15754 /* Override any gcc2 internal prototype to avoid an error. */
15759 /* We use char because int might match the return type of a gcc2
15760 builtin and then its argument prototype would still apply. */
15762 /* The GNU C library defines this for functions which it implements
15763 to always fail with ENOSYS. Some functions are actually named
15764 something starting with __ and the normal name is an alias. */
15765 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
15768 char (*f) () = mbrlen;
15777 return f != mbrlen;
15782 rm -f conftest.$ac_objext conftest$ac_exeext
15783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15784 (eval $ac_link) 2>conftest.er1
15786 grep -v '^ *+' conftest.er1 >conftest.err
15788 cat conftest.err >&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try='test -z "$ac_c_werror_flag"
15792 || test ! -s conftest.err'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest$ac_exeext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_cv_func_mbrlen=yes
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_cv_func_mbrlen=no
15811 rm -f conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
15814 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
15815 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
15816 if test $ac_cv_func_mbrlen = yes; then
15817 cat >>confdefs.h <<\_ACEOF
15818 @%:@define HAVE_MBRLEN 1
15823 echo "$as_me:$LINENO: checking for wctomb" >&5
15824 echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
15825 if test "${ac_cv_func_wctomb+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 cat >conftest.$ac_ext <<_ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 /* Define wctomb to an innocuous variant, in case <limits.h> declares wctomb.
15835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15836 #define wctomb innocuous_wctomb
15838 /* System header to define __stub macros and hopefully few prototypes,
15839 which can conflict with char wctomb (); below.
15840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15841 <limits.h> exists even on freestanding compilers. */
15844 # include <limits.h>
15846 # include <assert.h>
15851 /* Override any gcc2 internal prototype to avoid an error. */
15856 /* We use char because int might match the return type of a gcc2
15857 builtin and then its argument prototype would still apply. */
15859 /* The GNU C library defines this for functions which it implements
15860 to always fail with ENOSYS. Some functions are actually named
15861 something starting with __ and the normal name is an alias. */
15862 #if defined (__stub_wctomb) || defined (__stub___wctomb)
15865 char (*f) () = wctomb;
15874 return f != wctomb;
15879 rm -f conftest.$ac_objext conftest$ac_exeext
15880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15881 (eval $ac_link) 2>conftest.er1
15883 grep -v '^ *+' conftest.er1 >conftest.err
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } &&
15888 { ac_try='test -z "$ac_c_werror_flag"
15889 || test ! -s conftest.err'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; } &&
15895 { ac_try='test -s conftest$ac_exeext'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; }; then
15901 ac_cv_func_wctomb=yes
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15906 ac_cv_func_wctomb=no
15908 rm -f conftest.err conftest.$ac_objext \
15909 conftest$ac_exeext conftest.$ac_ext
15911 echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
15912 echo "${ECHO_T}$ac_cv_func_wctomb" >&6
15913 if test $ac_cv_func_wctomb = yes; then
15914 cat >>confdefs.h <<\_ACEOF
15915 @%:@define HAVE_WCTOMB 1
15920 echo "$as_me:$LINENO: checking for wcwidth" >&5
15921 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
15922 if test "${ac_cv_func_wcwidth+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 cat >conftest.$ac_ext <<_ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
15932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15933 #define wcwidth innocuous_wcwidth
15935 /* System header to define __stub macros and hopefully few prototypes,
15936 which can conflict with char wcwidth (); below.
15937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15938 <limits.h> exists even on freestanding compilers. */
15941 # include <limits.h>
15943 # include <assert.h>
15948 /* Override any gcc2 internal prototype to avoid an error. */
15953 /* We use char because int might match the return type of a gcc2
15954 builtin and then its argument prototype would still apply. */
15956 /* The GNU C library defines this for functions which it implements
15957 to always fail with ENOSYS. Some functions are actually named
15958 something starting with __ and the normal name is an alias. */
15959 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
15962 char (*f) () = wcwidth;
15971 return f != wcwidth;
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15978 (eval $ac_link) 2>conftest.er1
15980 grep -v '^ *+' conftest.er1 >conftest.err
15982 cat conftest.err >&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
15985 { ac_try='test -z "$ac_c_werror_flag"
15986 || test ! -s conftest.err'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; } &&
15992 { ac_try='test -s conftest$ac_exeext'
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998 ac_cv_func_wcwidth=yes
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 ac_cv_func_wcwidth=no
16005 rm -f conftest.err conftest.$ac_objext \
16006 conftest$ac_exeext conftest.$ac_ext
16008 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
16009 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
16010 if test $ac_cv_func_wcwidth = yes; then
16011 cat >>confdefs.h <<\_ACEOF
16012 @%:@define HAVE_WCWIDTH 1
16017 echo "$as_me:$LINENO: checking for wcsdup" >&5
16018 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
16019 if test "${ac_cv_func_wcsdup+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 cat >conftest.$ac_ext <<_ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16028 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
16029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16030 #define wcsdup innocuous_wcsdup
16032 /* System header to define __stub macros and hopefully few prototypes,
16033 which can conflict with char wcsdup (); below.
16034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16035 <limits.h> exists even on freestanding compilers. */
16038 # include <limits.h>
16040 # include <assert.h>
16045 /* Override any gcc2 internal prototype to avoid an error. */
16050 /* We use char because int might match the return type of a gcc2
16051 builtin and then its argument prototype would still apply. */
16053 /* The GNU C library defines this for functions which it implements
16054 to always fail with ENOSYS. Some functions are actually named
16055 something starting with __ and the normal name is an alias. */
16056 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
16059 char (*f) () = wcsdup;
16068 return f != wcsdup;
16073 rm -f conftest.$ac_objext conftest$ac_exeext
16074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16075 (eval $ac_link) 2>conftest.er1
16077 grep -v '^ *+' conftest.er1 >conftest.err
16079 cat conftest.err >&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); } &&
16082 { ac_try='test -z "$ac_c_werror_flag"
16083 || test ! -s conftest.err'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; } &&
16089 { ac_try='test -s conftest$ac_exeext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 ac_cv_func_wcsdup=yes
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 ac_cv_func_wcsdup=no
16102 rm -f conftest.err conftest.$ac_objext \
16103 conftest$ac_exeext conftest.$ac_ext
16105 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
16106 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
16107 if test $ac_cv_func_wcsdup = yes; then
16108 cat >>confdefs.h <<\_ACEOF
16109 @%:@define HAVE_WCSDUP 1
16114 echo "$as_me:$LINENO: checking for wctype" >&5
16115 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
16116 if test "${ac_cv_func_wctype+set}" = set; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16119 cat >conftest.$ac_ext <<_ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
16126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16127 #define wctype innocuous_wctype
16129 /* System header to define __stub macros and hopefully few prototypes,
16130 which can conflict with char wctype (); below.
16131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16132 <limits.h> exists even on freestanding compilers. */
16135 # include <limits.h>
16137 # include <assert.h>
16142 /* Override any gcc2 internal prototype to avoid an error. */
16147 /* We use char because int might match the return type of a gcc2
16148 builtin and then its argument prototype would still apply. */
16150 /* The GNU C library defines this for functions which it implements
16151 to always fail with ENOSYS. Some functions are actually named
16152 something starting with __ and the normal name is an alias. */
16153 #if defined (__stub_wctype) || defined (__stub___wctype)
16156 char (*f) () = wctype;
16165 return f != wctype;
16170 rm -f conftest.$ac_objext conftest$ac_exeext
16171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16172 (eval $ac_link) 2>conftest.er1
16174 grep -v '^ *+' conftest.er1 >conftest.err
16176 cat conftest.err >&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try='test -z "$ac_c_werror_flag"
16180 || test ! -s conftest.err'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; } &&
16186 { ac_try='test -s conftest$ac_exeext'
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; }; then
16192 ac_cv_func_wctype=yes
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16197 ac_cv_func_wctype=no
16199 rm -f conftest.err conftest.$ac_objext \
16200 conftest$ac_exeext conftest.$ac_ext
16202 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
16203 echo "${ECHO_T}$ac_cv_func_wctype" >&6
16204 if test $ac_cv_func_wctype = yes; then
16205 cat >>confdefs.h <<\_ACEOF
16206 @%:@define HAVE_WCTYPE 1
16212 echo "$as_me:$LINENO: checking for mbstate_t" >&5
16213 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16214 if test "${bash_cv_have_mbstate_t+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 cat >conftest.$ac_ext <<_ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16231 psp = (mbstate_t *)0;
16237 rm -f conftest.$ac_objext
16238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16239 (eval $ac_compile) 2>conftest.er1
16241 grep -v '^ *+' conftest.er1 >conftest.err
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
16246 { ac_try='test -z "$ac_c_werror_flag"
16247 || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest.$ac_objext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 bash_cv_have_mbstate_t=yes
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 bash_cv_have_mbstate_t=no
16266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16268 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
16269 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
16270 if test $bash_cv_have_mbstate_t = yes; then
16271 cat >>confdefs.h <<\_ACEOF
16272 @%:@define HAVE_MBSTATE_T 1
16277 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16278 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16279 if test "${bash_cv_langinfo_codeset+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 cat >conftest.$ac_ext <<_ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 #include <langinfo.h>
16292 char* cs = nl_langinfo(CODESET);
16297 rm -f conftest.$ac_objext conftest$ac_exeext
16298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16299 (eval $ac_link) 2>conftest.er1
16301 grep -v '^ *+' conftest.er1 >conftest.err
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_c_werror_flag"
16307 || test ! -s conftest.err'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; } &&
16313 { ac_try='test -s conftest$ac_exeext'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 bash_cv_langinfo_codeset=yes
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16324 bash_cv_langinfo_codeset=no
16326 rm -f conftest.err conftest.$ac_objext \
16327 conftest$ac_exeext conftest.$ac_ext
16329 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
16330 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
16331 if test $bash_cv_langinfo_codeset = yes; then
16332 cat >>confdefs.h <<\_ACEOF
16333 @%:@define HAVE_LANGINFO_CODESET 1
16340 if test "$opt_static_link" != yes; then
16342 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16343 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16345 echo $ECHO_N "(cached) $ECHO_C" >&6
16347 ac_check_lib_save_LIBS=$LIBS
16349 cat >conftest.$ac_ext <<_ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16356 /* Override any gcc2 internal prototype to avoid an error. */
16360 /* We use char because int might match the return type of a gcc2
16361 builtin and then its argument prototype would still apply. */
16371 rm -f conftest.$ac_objext conftest$ac_exeext
16372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16373 (eval $ac_link) 2>conftest.er1
16375 grep -v '^ *+' conftest.er1 >conftest.err
16377 cat conftest.err >&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } &&
16380 { ac_try='test -z "$ac_c_werror_flag"
16381 || test ! -s conftest.err'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; } &&
16387 { ac_try='test -s conftest$ac_exeext'
16388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389 (eval $ac_try) 2>&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; }; then
16393 ac_cv_lib_dl_dlopen=yes
16395 echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16398 ac_cv_lib_dl_dlopen=no
16400 rm -f conftest.err conftest.$ac_objext \
16401 conftest$ac_exeext conftest.$ac_ext
16402 LIBS=$ac_check_lib_save_LIBS
16404 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16405 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16406 if test $ac_cv_lib_dl_dlopen = yes; then
16407 cat >>confdefs.h <<_ACEOF
16408 @%:@define HAVE_LIBDL 1
16418 for ac_func in dlopen dlclose dlsym
16420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16421 echo "$as_me:$LINENO: checking for $ac_func" >&5
16422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16423 if eval "test \"\${$as_ac_var+set}\" = set"; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16426 cat >conftest.$ac_ext <<_ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16434 #define $ac_func innocuous_$ac_func
16436 /* System header to define __stub macros and hopefully few prototypes,
16437 which can conflict with char $ac_func (); below.
16438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16439 <limits.h> exists even on freestanding compilers. */
16442 # include <limits.h>
16444 # include <assert.h>
16449 /* Override any gcc2 internal prototype to avoid an error. */
16454 /* We use char because int might match the return type of a gcc2
16455 builtin and then its argument prototype would still apply. */
16457 /* The GNU C library defines this for functions which it implements
16458 to always fail with ENOSYS. Some functions are actually named
16459 something starting with __ and the normal name is an alias. */
16460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16463 char (*f) () = $ac_func;
16472 return f != $ac_func;
16477 rm -f conftest.$ac_objext conftest$ac_exeext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16479 (eval $ac_link) 2>conftest.er1
16481 grep -v '^ *+' conftest.er1 >conftest.err
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -z "$ac_c_werror_flag"
16487 || test ! -s conftest.err'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest$ac_exeext'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 eval "$as_ac_var=yes"
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16504 eval "$as_ac_var=no"
16506 rm -f conftest.err conftest.$ac_objext \
16507 conftest$ac_exeext conftest.$ac_ext
16509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16511 if test `eval echo '${'$as_ac_var'}'` = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16521 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
16522 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
16523 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 cat >conftest.$ac_ext <<_ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 #include <signal.h>
16533 /* NetBSD declares sys_siglist in unistd.h. */
16535 # include <unistd.h>
16542 #ifndef sys_siglist
16543 char *p = (char *) sys_siglist;
16550 rm -f conftest.$ac_objext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16552 (eval $ac_compile) 2>conftest.er1
16554 grep -v '^ *+' conftest.er1 >conftest.err
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -z "$ac_c_werror_flag"
16560 || test ! -s conftest.err'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try='test -s conftest.$ac_objext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ac_cv_have_decl_sys_siglist=yes
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ac_cv_have_decl_sys_siglist=no
16579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16581 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
16582 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
16583 if test $ac_cv_have_decl_sys_siglist = yes; then
16585 cat >>confdefs.h <<_ACEOF
16586 @%:@define HAVE_DECL_SYS_SIGLIST 1
16591 cat >>confdefs.h <<_ACEOF
16592 @%:@define HAVE_DECL_SYS_SIGLIST 0
16601 if test "$ac_cv_func_inet_aton" != 'yes'; then
16603 echo "$as_me:$LINENO: checking for inet_aton" >&5
16604 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
16605 if test "${bash_cv_func_inet_aton+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 cat >conftest.$ac_ext <<_ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16615 #include <sys/types.h>
16616 #include <netinet/in.h>
16617 #include <arpa/inet.h>
16622 inet_aton("127.0.0.1", &ap);
16627 rm -f conftest.$ac_objext conftest$ac_exeext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16629 (eval $ac_link) 2>conftest.er1
16631 grep -v '^ *+' conftest.er1 >conftest.err
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag"
16637 || test ! -s conftest.err'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest$ac_exeext'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 bash_cv_func_inet_aton=yes
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 bash_cv_func_inet_aton=no
16656 rm -f conftest.err conftest.$ac_objext \
16657 conftest$ac_exeext conftest.$ac_ext
16659 echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
16660 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
16661 if test $bash_cv_func_inet_aton = yes; then
16662 cat >>confdefs.h <<\_ACEOF
16663 @%:@define HAVE_INET_ATON 1
16667 case $LIB@&t@OBJS in
16668 "inet_aton.$ac_objext" | \
16669 *" inet_aton.$ac_objext" | \
16670 "inet_aton.$ac_objext "* | \
16671 *" inet_aton.$ac_objext "* ) ;;
16672 *) LIB@&t@OBJS="$LIB@&t@OBJS inet_aton.$ac_objext" ;;
16681 echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
16682 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
16683 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 ac_check_lib_save_LIBS=$LIBS
16688 cat >conftest.$ac_ext <<_ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16695 /* Override any gcc2 internal prototype to avoid an error. */
16699 /* We use char because int might match the return type of a gcc2
16700 builtin and then its argument prototype would still apply. */
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16712 (eval $ac_link) 2>conftest.er1
16714 grep -v '^ *+' conftest.er1 >conftest.err
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_cv_lib_sun_getpwent=yes
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 ac_cv_lib_sun_getpwent=no
16739 rm -f conftest.err conftest.$ac_objext \
16740 conftest$ac_exeext conftest.$ac_ext
16741 LIBS=$ac_check_lib_save_LIBS
16743 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
16744 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
16745 if test $ac_cv_lib_sun_getpwent = yes; then
16746 cat >>confdefs.h <<_ACEOF
16747 @%:@define HAVE_LIBSUN 1
16756 if test "$ac_cv_func_getpeername" = no; then
16758 if test "X$bash_cv_have_socklib" = "X"; then
16761 echo "$as_me:$LINENO: checking for socket library" >&5
16762 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
16765 if test "${bash_cv_have_socklib+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
16769 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
16770 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16773 ac_check_lib_save_LIBS=$LIBS
16774 LIBS="-lsocket -lnsl $LIBS"
16775 cat >conftest.$ac_ext <<_ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16782 /* Override any gcc2 internal prototype to avoid an error. */
16786 /* We use char because int might match the return type of a gcc2
16787 builtin and then its argument prototype would still apply. */
16788 char getpeername ();
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16799 (eval $ac_link) 2>conftest.er1
16801 grep -v '^ *+' conftest.er1 >conftest.err
16803 cat conftest.err >&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
16806 { ac_try='test -z "$ac_c_werror_flag"
16807 || test ! -s conftest.err'
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; } &&
16813 { ac_try='test -s conftest$ac_exeext'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819 ac_cv_lib_socket_getpeername=yes
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16824 ac_cv_lib_socket_getpeername=no
16826 rm -f conftest.err conftest.$ac_objext \
16827 conftest$ac_exeext conftest.$ac_ext
16828 LIBS=$ac_check_lib_save_LIBS
16830 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
16831 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
16832 if test $ac_cv_lib_socket_getpeername = yes; then
16833 bash_cv_have_socklib=yes
16835 bash_cv_have_socklib=no
16840 if test "X$_bash_needmsg" = Xyes; then
16841 echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
16842 echo "${ECHO_T}$bash_cv_have_socklib" >&6
16845 if test $bash_cv_have_socklib = yes; then
16846 # check for libnsl, add it to LIBS if present
16847 if test "X$bash_cv_have_libnsl" = "X"; then
16850 echo "$as_me:$LINENO: checking for libnsl" >&5
16851 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
16854 if test "${bash_cv_have_libnsl+set}" = set; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
16858 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
16859 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16862 ac_check_lib_save_LIBS=$LIBS
16864 cat >conftest.$ac_ext <<_ACEOF
16867 cat confdefs.h >>conftest.$ac_ext
16868 cat >>conftest.$ac_ext <<_ACEOF
16869 /* end confdefs.h. */
16871 /* Override any gcc2 internal prototype to avoid an error. */
16875 /* We use char because int might match the return type of a gcc2
16876 builtin and then its argument prototype would still apply. */
16886 rm -f conftest.$ac_objext conftest$ac_exeext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16888 (eval $ac_link) 2>conftest.er1
16890 grep -v '^ *+' conftest.er1 >conftest.err
16892 cat conftest.err >&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try='test -z "$ac_c_werror_flag"
16896 || test ! -s conftest.err'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; } &&
16902 { ac_try='test -s conftest$ac_exeext'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_cv_lib_nsl_t_open=yes
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16913 ac_cv_lib_nsl_t_open=no
16915 rm -f conftest.err conftest.$ac_objext \
16916 conftest$ac_exeext conftest.$ac_ext
16917 LIBS=$ac_check_lib_save_LIBS
16919 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
16920 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
16921 if test $ac_cv_lib_nsl_t_open = yes; then
16922 bash_cv_have_libnsl=yes
16924 bash_cv_have_libnsl=no
16929 if test "X$_bash_needmsg" = Xyes; then
16930 echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
16931 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
16934 if test $bash_cv_have_libnsl = yes; then
16935 LIBS="-lsocket -lnsl $LIBS"
16937 LIBS="-lsocket $LIBS"
16939 cat >>confdefs.h <<\_ACEOF
16940 @%:@define HAVE_LIBSOCKET 1
16943 cat >>confdefs.h <<\_ACEOF
16944 @%:@define HAVE_GETPEERNAME 1
16950 if test "$ac_cv_func_gethostbyname" = no; then
16951 if test "X$bash_cv_have_gethostbyname" = "X"; then
16954 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
16955 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
16958 if test "${bash_cv_have_gethostbyname+set}" = set; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16961 cat >conftest.$ac_ext <<_ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16971 struct hostent *hp;
16972 hp = gethostbyname("localhost");
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>conftest.er1
16982 grep -v '^ *+' conftest.er1 >conftest.err
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest$ac_exeext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 bash_cv_have_gethostbyname=yes
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 bash_cv_have_gethostbyname=no
17007 rm -f conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17012 if test "X$_bash_needmsg" = Xyes; then
17013 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
17014 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
17016 echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
17017 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
17018 if test "$bash_cv_have_gethostbyname" = yes; then
17019 cat >>confdefs.h <<\_ACEOF
17020 @%:@define HAVE_GETHOSTBYNAME 1
17027 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
17028 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
17029 if test "${ac_cv_type_uid_t+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 cat >conftest.$ac_ext <<_ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17038 #include <sys/types.h>
17041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17042 $EGREP "uid_t" >/dev/null 2>&1; then
17043 ac_cv_type_uid_t=yes
17045 ac_cv_type_uid_t=no
17050 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
17051 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
17052 if test $ac_cv_type_uid_t = no; then
17054 cat >>confdefs.h <<\_ACEOF
17055 @%:@define uid_t int
17059 cat >>confdefs.h <<\_ACEOF
17060 @%:@define gid_t int
17065 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
17066 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
17067 if test "${ac_cv_type_getgroups+set}" = set; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17070 if test "$cross_compiling" = yes; then
17071 ac_cv_type_getgroups=cross
17073 cat >conftest.$ac_ext <<_ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 /* Thanks to Mike Rendell for this test. */
17080 #include <sys/types.h>
17083 #define MAX(x, y) ((x) > (y) ? (x) : (y))
17088 gid_t gidset[NGID];
17090 union { gid_t gval; long lval; } val;
17093 for (i = 0; i < NGID; i++)
17094 gidset[i] = val.gval;
17095 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
17097 /* Exit non-zero if getgroups seems to require an array of ints. This
17098 happens when gid_t is short but getgroups modifies an array of ints. */
17099 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
17102 rm -f conftest$ac_exeext
17103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17104 (eval $ac_link) 2>&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 ac_cv_type_getgroups=gid_t
17115 echo "$as_me: program exited with status $ac_status" >&5
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 ( exit $ac_status )
17120 ac_cv_type_getgroups=int
17122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17124 if test $ac_cv_type_getgroups = cross; then
17125 cat >conftest.$ac_ext <<_ACEOF
17128 cat confdefs.h >>conftest.$ac_ext
17129 cat >>conftest.$ac_ext <<_ACEOF
17130 /* end confdefs.h. */
17131 #include <unistd.h>
17134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17135 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
17136 ac_cv_type_getgroups=gid_t
17138 ac_cv_type_getgroups=int
17144 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
17145 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
17147 cat >>confdefs.h <<_ACEOF
17148 @%:@define GETGROUPS_T $ac_cv_type_getgroups
17152 echo "$as_me:$LINENO: checking for off_t" >&5
17153 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17154 if test "${ac_cv_type_off_t+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 cat >conftest.$ac_ext <<_ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17163 $ac_includes_default
17169 if (sizeof (off_t))
17175 rm -f conftest.$ac_objext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17177 (eval $ac_compile) 2>conftest.er1
17179 grep -v '^ *+' conftest.er1 >conftest.err
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
17184 { ac_try='test -z "$ac_c_werror_flag"
17185 || test ! -s conftest.err'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; } &&
17191 { ac_try='test -s conftest.$ac_objext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 ac_cv_type_off_t=yes
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 ac_cv_type_off_t=no
17204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17206 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17207 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17208 if test $ac_cv_type_off_t = yes; then
17212 cat >>confdefs.h <<_ACEOF
17213 @%:@define off_t long
17218 echo "$as_me:$LINENO: checking for mode_t" >&5
17219 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17220 if test "${ac_cv_type_mode_t+set}" = set; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 cat >conftest.$ac_ext <<_ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17229 $ac_includes_default
17235 if (sizeof (mode_t))
17241 rm -f conftest.$ac_objext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243 (eval $ac_compile) 2>conftest.er1
17245 grep -v '^ *+' conftest.er1 >conftest.err
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag"
17251 || test ! -s conftest.err'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_cv_type_mode_t=yes
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17268 ac_cv_type_mode_t=no
17270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17272 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17273 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17274 if test $ac_cv_type_mode_t = yes; then
17278 cat >>confdefs.h <<_ACEOF
17279 @%:@define mode_t int
17284 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
17285 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
17286 if test "${ac_cv_type_uid_t+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 cat >conftest.$ac_ext <<_ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295 #include <sys/types.h>
17298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17299 $EGREP "uid_t" >/dev/null 2>&1; then
17300 ac_cv_type_uid_t=yes
17302 ac_cv_type_uid_t=no
17307 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
17308 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
17309 if test $ac_cv_type_uid_t = no; then
17311 cat >>confdefs.h <<\_ACEOF
17312 @%:@define uid_t int
17316 cat >>confdefs.h <<\_ACEOF
17317 @%:@define gid_t int
17322 echo "$as_me:$LINENO: checking for pid_t" >&5
17323 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17324 if test "${ac_cv_type_pid_t+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 cat >conftest.$ac_ext <<_ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333 $ac_includes_default
17339 if (sizeof (pid_t))
17345 rm -f conftest.$ac_objext
17346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17347 (eval $ac_compile) 2>conftest.er1
17349 grep -v '^ *+' conftest.er1 >conftest.err
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
17354 { ac_try='test -z "$ac_c_werror_flag"
17355 || test ! -s conftest.err'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try='test -s conftest.$ac_objext'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_cv_type_pid_t=yes
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17372 ac_cv_type_pid_t=no
17374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17376 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17377 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17378 if test $ac_cv_type_pid_t = yes; then
17382 cat >>confdefs.h <<_ACEOF
17383 @%:@define pid_t int
17388 echo "$as_me:$LINENO: checking for size_t" >&5
17389 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17390 if test "${ac_cv_type_size_t+set}" = set; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17393 cat >conftest.$ac_ext <<_ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17399 $ac_includes_default
17405 if (sizeof (size_t))
17411 rm -f conftest.$ac_objext
17412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17413 (eval $ac_compile) 2>conftest.er1
17415 grep -v '^ *+' conftest.er1 >conftest.err
17417 cat conftest.err >&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } &&
17420 { ac_try='test -z "$ac_c_werror_flag"
17421 || test ! -s conftest.err'
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 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_cv_type_size_t=yes
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 ac_cv_type_size_t=no
17440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17442 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17443 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17444 if test $ac_cv_type_size_t = yes; then
17448 cat >>confdefs.h <<_ACEOF
17449 @%:@define size_t unsigned
17454 echo "$as_me:$LINENO: checking for ssize_t" >&5
17455 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17456 if test "${ac_cv_type_ssize_t+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 cat >conftest.$ac_ext <<_ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17465 $ac_includes_default
17471 if (sizeof (ssize_t))
17477 rm -f conftest.$ac_objext
17478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17479 (eval $ac_compile) 2>conftest.er1
17481 grep -v '^ *+' conftest.er1 >conftest.err
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag"
17487 || test ! -s conftest.err'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest.$ac_objext'
17494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495 (eval $ac_try) 2>&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 ac_cv_type_ssize_t=yes
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 ac_cv_type_ssize_t=no
17506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17508 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17509 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17510 if test $ac_cv_type_ssize_t = yes; then
17514 cat >>confdefs.h <<_ACEOF
17515 @%:@define ssize_t int
17520 echo "$as_me:$LINENO: checking for time_t" >&5
17521 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
17522 if test "${ac_cv_type_time_t+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 $ac_includes_default
17537 if (sizeof (time_t))
17543 rm -f conftest.$ac_objext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17545 (eval $ac_compile) 2>conftest.er1
17547 grep -v '^ *+' conftest.er1 >conftest.err
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag"
17553 || test ! -s conftest.err'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_type_time_t=yes
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_cv_type_time_t=no
17572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17574 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
17575 echo "${ECHO_T}$ac_cv_type_time_t" >&6
17576 if test $ac_cv_type_time_t = yes; then
17580 cat >>confdefs.h <<_ACEOF
17581 @%:@define time_t long
17588 echo "$as_me:$LINENO: checking for long long" >&5
17589 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17590 if test "${bash_cv_type_long_long+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 cat >conftest.$ac_ext <<_ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17600 long long ll = 1; int i = 63;
17605 long long llm = (long long) -1;
17606 return ll << i | ll >> i | llm / ll | llm % ll;
17612 rm -f conftest.$ac_objext conftest$ac_exeext
17613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614 (eval $ac_link) 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -z "$ac_c_werror_flag"
17622 || test ! -s conftest.err'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest$ac_exeext'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 bash_cv_type_long_long='long long'
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 bash_cv_type_long_long='long'
17641 rm -f conftest.err conftest.$ac_objext \
17642 conftest$ac_exeext conftest.$ac_ext
17644 echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
17645 echo "${ECHO_T}$bash_cv_type_long_long" >&6
17646 if test "$bash_cv_type_long_long" = 'long long'; then
17647 cat >>confdefs.h <<\_ACEOF
17648 @%:@define HAVE_LONG_LONG 1
17654 echo "$as_me:$LINENO: checking for unsigned long long" >&5
17655 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
17656 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 cat >conftest.$ac_ext <<_ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17666 unsigned long long ull = 1; int i = 63;
17671 unsigned long long ullmax = (unsigned long long) -1;
17672 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
17678 rm -f conftest.$ac_objext conftest$ac_exeext
17679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680 (eval $ac_link) 2>conftest.er1
17682 grep -v '^ *+' conftest.er1 >conftest.err
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
17687 { ac_try='test -z "$ac_c_werror_flag"
17688 || test ! -s conftest.err'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; } &&
17694 { ac_try='test -s conftest$ac_exeext'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 bash_cv_type_unsigned_long_long='unsigned long long'
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 bash_cv_type_unsigned_long_long='unsigned long'
17707 rm -f conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
17710 echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
17711 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
17712 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
17713 cat >>confdefs.h <<\_ACEOF
17714 @%:@define HAVE_UNSIGNED_LONG_LONG 1
17720 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17721 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17722 if test "${ac_cv_type_signal+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 cat >conftest.$ac_ext <<_ACEOF
17728 cat confdefs.h >>conftest.$ac_ext
17729 cat >>conftest.$ac_ext <<_ACEOF
17730 /* end confdefs.h. */
17731 #include <sys/types.h>
17732 #include <signal.h>
17737 extern "C" void (*signal (int, void (*)(int)))(int);
17739 void (*signal ()) ();
17750 rm -f conftest.$ac_objext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17752 (eval $ac_compile) 2>conftest.er1
17754 grep -v '^ *+' conftest.er1 >conftest.err
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_c_werror_flag"
17760 || test ! -s conftest.err'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest.$ac_objext'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_type_signal=void
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17777 ac_cv_type_signal=int
17779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17781 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17782 echo "${ECHO_T}$ac_cv_type_signal" >&6
17784 cat >>confdefs.h <<_ACEOF
17785 @%:@define RETSIGTYPE $ac_cv_type_signal
17790 echo "$as_me:$LINENO: checking for char" >&5
17791 echo $ECHO_N "checking for char... $ECHO_C" >&6
17792 if test "${ac_cv_type_char+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 cat >conftest.$ac_ext <<_ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h. */
17801 $ac_includes_default
17813 rm -f conftest.$ac_objext
17814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17815 (eval $ac_compile) 2>conftest.er1
17817 grep -v '^ *+' conftest.er1 >conftest.err
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try='test -z "$ac_c_werror_flag"
17823 || test ! -s conftest.err'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest.$ac_objext'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_type_char=yes
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17844 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17845 echo "${ECHO_T}$ac_cv_type_char" >&6
17847 echo "$as_me:$LINENO: checking size of char" >&5
17848 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17849 if test "${ac_cv_sizeof_char+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 if test "$ac_cv_type_char" = yes; then
17853 # The cast to unsigned long works around a bug in the HP C Compiler
17854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17856 # This bug is HP SR number 8606223364.
17857 if test "$cross_compiling" = yes; then
17858 # Depending upon the size, compute the lo and hi bounds.
17859 cat >conftest.$ac_ext <<_ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17865 $ac_includes_default
17869 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@;
17870 test_array @<:@0@:>@ = 0
17876 rm -f conftest.$ac_objext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17878 (eval $ac_compile) 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_c_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest.$ac_objext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17900 cat >conftest.$ac_ext <<_ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17906 $ac_includes_default
17910 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
17911 test_array @<:@0@:>@ = 0
17917 rm -f conftest.$ac_objext
17918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17919 (eval $ac_compile) 2>conftest.er1
17921 grep -v '^ *+' conftest.er1 >conftest.err
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_c_werror_flag"
17927 || test ! -s conftest.err'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest.$ac_objext'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 ac_hi=$ac_mid; break
17941 echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17944 ac_lo=`expr $ac_mid + 1`
17945 if test $ac_lo -le $ac_mid; then
17949 ac_mid=`expr 2 '*' $ac_mid + 1`
17951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 cat >conftest.$ac_ext <<_ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 $ac_includes_default
17967 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@;
17968 test_array @<:@0@:>@ = 0
17974 rm -f conftest.$ac_objext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17976 (eval $ac_compile) 2>conftest.er1
17978 grep -v '^ *+' conftest.er1 >conftest.err
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag"
17984 || test ! -s conftest.err'
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try='test -s conftest.$ac_objext'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17998 cat >conftest.$ac_ext <<_ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18004 $ac_includes_default
18008 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@;
18009 test_array @<:@0@:>@ = 0
18015 rm -f conftest.$ac_objext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18017 (eval $ac_compile) 2>conftest.er1
18019 grep -v '^ *+' conftest.er1 >conftest.err
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } &&
18024 { ac_try='test -z "$ac_c_werror_flag"
18025 || test ! -s conftest.err'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } &&
18031 { ac_try='test -s conftest.$ac_objext'
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037 ac_lo=$ac_mid; break
18039 echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18042 ac_hi=`expr '(' $ac_mid ')' - 1`
18043 if test $ac_mid -le $ac_hi; then
18047 ac_mid=`expr 2 '*' $ac_mid`
18049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18060 # Binary search between lo and hi bounds.
18061 while test "x$ac_lo" != "x$ac_hi"; do
18062 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18063 cat >conftest.$ac_ext <<_ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h. */
18069 $ac_includes_default
18073 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
18074 test_array @<:@0@:>@ = 0
18080 rm -f conftest.$ac_objext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18082 (eval $ac_compile) 2>conftest.er1
18084 grep -v '^ *+' conftest.er1 >conftest.err
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try='test -z "$ac_c_werror_flag"
18090 || test ! -s conftest.err'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest.$ac_objext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 ac_lo=`expr '(' $ac_mid ')' + 1`
18109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18112 ?*) ac_cv_sizeof_char=$ac_lo;;
18113 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18114 See \`config.log' for more details." >&5
18115 echo "$as_me: error: cannot compute sizeof (char), 77
18116 See \`config.log' for more details." >&2;}
18117 { (exit 1); exit 1; }; } ;;
18120 if test "$cross_compiling" = yes; then
18121 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18122 See \`config.log' for more details." >&5
18123 echo "$as_me: error: cannot run test program while cross compiling
18124 See \`config.log' for more details." >&2;}
18125 { (exit 1); exit 1; }; }
18127 cat >conftest.$ac_ext <<_ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 $ac_includes_default
18134 long longval () { return (long) (sizeof (char)); }
18135 unsigned long ulongval () { return (long) (sizeof (char)); }
18136 @%:@include <stdio.h>
18137 @%:@include <stdlib.h>
18142 FILE *f = fopen ("conftest.val", "w");
18145 if (((long) (sizeof (char))) < 0)
18147 long i = longval ();
18148 if (i != ((long) (sizeof (char))))
18150 fprintf (f, "%ld\n", i);
18154 unsigned long i = ulongval ();
18155 if (i != ((long) (sizeof (char))))
18157 fprintf (f, "%lu\n", i);
18159 exit (ferror (f) || fclose (f) != 0);
18165 rm -f conftest$ac_exeext
18166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18167 (eval $ac_link) 2>&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; }; then
18176 ac_cv_sizeof_char=`cat conftest.val`
18178 echo "$as_me: program exited with status $ac_status" >&5
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18182 ( exit $ac_status )
18183 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18184 See \`config.log' for more details." >&5
18185 echo "$as_me: error: cannot compute sizeof (char), 77
18186 See \`config.log' for more details." >&2;}
18187 { (exit 1); exit 1; }; }
18189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18194 ac_cv_sizeof_char=0
18197 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18198 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18199 cat >>confdefs.h <<_ACEOF
18200 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
18204 echo "$as_me:$LINENO: checking for short" >&5
18205 echo $ECHO_N "checking for short... $ECHO_C" >&6
18206 if test "${ac_cv_type_short+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 $ac_includes_default
18221 if (sizeof (short))
18227 rm -f conftest.$ac_objext
18228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18229 (eval $ac_compile) 2>conftest.er1
18231 grep -v '^ *+' conftest.er1 >conftest.err
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag"
18237 || test ! -s conftest.err'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_cv_type_short=yes
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ac_cv_type_short=no
18256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18258 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18259 echo "${ECHO_T}$ac_cv_type_short" >&6
18261 echo "$as_me:$LINENO: checking size of short" >&5
18262 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18263 if test "${ac_cv_sizeof_short+set}" = set; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 if test "$ac_cv_type_short" = yes; then
18267 # The cast to unsigned long works around a bug in the HP C Compiler
18268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18270 # This bug is HP SR number 8606223364.
18271 if test "$cross_compiling" = yes; then
18272 # Depending upon the size, compute the lo and hi bounds.
18273 cat >conftest.$ac_ext <<_ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279 $ac_includes_default
18283 static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) >= 0)@:>@;
18284 test_array @<:@0@:>@ = 0
18290 rm -f conftest.$ac_objext
18291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18292 (eval $ac_compile) 2>conftest.er1
18294 grep -v '^ *+' conftest.er1 >conftest.err
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } &&
18299 { ac_try='test -z "$ac_c_werror_flag"
18300 || test ! -s conftest.err'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try='test -s conftest.$ac_objext'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; }; then
18314 cat >conftest.$ac_ext <<_ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h. */
18320 $ac_includes_default
18324 static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)@:>@;
18325 test_array @<:@0@:>@ = 0
18331 rm -f conftest.$ac_objext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18333 (eval $ac_compile) 2>conftest.er1
18335 grep -v '^ *+' conftest.er1 >conftest.err
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag"
18341 || test ! -s conftest.err'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest.$ac_objext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_hi=$ac_mid; break
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 ac_lo=`expr $ac_mid + 1`
18359 if test $ac_lo -le $ac_mid; then
18363 ac_mid=`expr 2 '*' $ac_mid + 1`
18365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18368 echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18371 cat >conftest.$ac_ext <<_ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 $ac_includes_default
18381 static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) < 0)@:>@;
18382 test_array @<:@0@:>@ = 0
18388 rm -f conftest.$ac_objext
18389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18390 (eval $ac_compile) 2>conftest.er1
18392 grep -v '^ *+' conftest.er1 >conftest.err
18394 cat conftest.err >&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } &&
18397 { ac_try='test -z "$ac_c_werror_flag"
18398 || test ! -s conftest.err'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; } &&
18404 { ac_try='test -s conftest.$ac_objext'
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; }; then
18412 cat >conftest.$ac_ext <<_ACEOF
18415 cat confdefs.h >>conftest.$ac_ext
18416 cat >>conftest.$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18418 $ac_includes_default
18422 static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)@:>@;
18423 test_array @<:@0@:>@ = 0
18429 rm -f conftest.$ac_objext
18430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18431 (eval $ac_compile) 2>conftest.er1
18433 grep -v '^ *+' conftest.er1 >conftest.err
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } &&
18438 { ac_try='test -z "$ac_c_werror_flag"
18439 || test ! -s conftest.err'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; } &&
18445 { ac_try='test -s conftest.$ac_objext'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_lo=$ac_mid; break
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18456 ac_hi=`expr '(' $ac_mid ')' - 1`
18457 if test $ac_mid -le $ac_hi; then
18461 ac_mid=`expr 2 '*' $ac_mid`
18463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18474 # Binary search between lo and hi bounds.
18475 while test "x$ac_lo" != "x$ac_hi"; do
18476 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18477 cat >conftest.$ac_ext <<_ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18483 $ac_includes_default
18487 static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)@:>@;
18488 test_array @<:@0@:>@ = 0
18494 rm -f conftest.$ac_objext
18495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18496 (eval $ac_compile) 2>conftest.er1
18498 grep -v '^ *+' conftest.er1 >conftest.err
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } &&
18503 { ac_try='test -z "$ac_c_werror_flag"
18504 || test ! -s conftest.err'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; } &&
18510 { ac_try='test -s conftest.$ac_objext'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18521 ac_lo=`expr '(' $ac_mid ')' + 1`
18523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18526 ?*) ac_cv_sizeof_short=$ac_lo;;
18527 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18528 See \`config.log' for more details." >&5
18529 echo "$as_me: error: cannot compute sizeof (short), 77
18530 See \`config.log' for more details." >&2;}
18531 { (exit 1); exit 1; }; } ;;
18534 if test "$cross_compiling" = yes; then
18535 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18536 See \`config.log' for more details." >&5
18537 echo "$as_me: error: cannot run test program while cross compiling
18538 See \`config.log' for more details." >&2;}
18539 { (exit 1); exit 1; }; }
18541 cat >conftest.$ac_ext <<_ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18547 $ac_includes_default
18548 long longval () { return (long) (sizeof (short)); }
18549 unsigned long ulongval () { return (long) (sizeof (short)); }
18550 @%:@include <stdio.h>
18551 @%:@include <stdlib.h>
18556 FILE *f = fopen ("conftest.val", "w");
18559 if (((long) (sizeof (short))) < 0)
18561 long i = longval ();
18562 if (i != ((long) (sizeof (short))))
18564 fprintf (f, "%ld\n", i);
18568 unsigned long i = ulongval ();
18569 if (i != ((long) (sizeof (short))))
18571 fprintf (f, "%lu\n", i);
18573 exit (ferror (f) || fclose (f) != 0);
18579 rm -f conftest$ac_exeext
18580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18581 (eval $ac_link) 2>&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18586 (eval $ac_try) 2>&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; }; then
18590 ac_cv_sizeof_short=`cat conftest.val`
18592 echo "$as_me: program exited with status $ac_status" >&5
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 ( exit $ac_status )
18597 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18598 See \`config.log' for more details." >&5
18599 echo "$as_me: error: cannot compute sizeof (short), 77
18600 See \`config.log' for more details." >&2;}
18601 { (exit 1); exit 1; }; }
18603 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18608 ac_cv_sizeof_short=0
18611 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18612 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18613 cat >>confdefs.h <<_ACEOF
18614 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
18618 echo "$as_me:$LINENO: checking for int" >&5
18619 echo $ECHO_N "checking for int... $ECHO_C" >&6
18620 if test "${ac_cv_type_int+set}" = set; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18623 cat >conftest.$ac_ext <<_ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18629 $ac_includes_default
18641 rm -f conftest.$ac_objext
18642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18643 (eval $ac_compile) 2>conftest.er1
18645 grep -v '^ *+' conftest.er1 >conftest.err
18647 cat conftest.err >&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } &&
18650 { ac_try='test -z "$ac_c_werror_flag"
18651 || test ! -s conftest.err'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; } &&
18657 { ac_try='test -s conftest.$ac_objext'
18658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659 (eval $ac_try) 2>&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; }; then
18665 echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18672 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18673 echo "${ECHO_T}$ac_cv_type_int" >&6
18675 echo "$as_me:$LINENO: checking size of int" >&5
18676 echo $ECHO_N "checking size of int... $ECHO_C" >&6
18677 if test "${ac_cv_sizeof_int+set}" = set; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18680 if test "$ac_cv_type_int" = yes; then
18681 # The cast to unsigned long works around a bug in the HP C Compiler
18682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18684 # This bug is HP SR number 8606223364.
18685 if test "$cross_compiling" = yes; then
18686 # Depending upon the size, compute the lo and hi bounds.
18687 cat >conftest.$ac_ext <<_ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 $ac_includes_default
18697 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
18698 test_array @<:@0@:>@ = 0
18704 rm -f conftest.$ac_objext
18705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18706 (eval $ac_compile) 2>conftest.er1
18708 grep -v '^ *+' conftest.er1 >conftest.err
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } &&
18713 { ac_try='test -z "$ac_c_werror_flag"
18714 || test ! -s conftest.err'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; } &&
18720 { ac_try='test -s conftest.$ac_objext'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18728 cat >conftest.$ac_ext <<_ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18734 $ac_includes_default
18738 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
18739 test_array @<:@0@:>@ = 0
18745 rm -f conftest.$ac_objext
18746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747 (eval $ac_compile) 2>conftest.er1
18749 grep -v '^ *+' conftest.er1 >conftest.err
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
18754 { ac_try='test -z "$ac_c_werror_flag"
18755 || test ! -s conftest.err'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest.$ac_objext'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
18767 ac_hi=$ac_mid; break
18769 echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18772 ac_lo=`expr $ac_mid + 1`
18773 if test $ac_lo -le $ac_mid; then
18777 ac_mid=`expr 2 '*' $ac_mid + 1`
18779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18785 cat >conftest.$ac_ext <<_ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 $ac_includes_default
18795 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
18796 test_array @<:@0@:>@ = 0
18802 rm -f conftest.$ac_objext
18803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18804 (eval $ac_compile) 2>conftest.er1
18806 grep -v '^ *+' conftest.er1 >conftest.err
18808 cat conftest.err >&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try='test -z "$ac_c_werror_flag"
18812 || test ! -s conftest.err'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; } &&
18818 { ac_try='test -s conftest.$ac_objext'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; }; then
18826 cat >conftest.$ac_ext <<_ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18832 $ac_includes_default
18836 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
18837 test_array @<:@0@:>@ = 0
18843 rm -f conftest.$ac_objext
18844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18845 (eval $ac_compile) 2>conftest.er1
18847 grep -v '^ *+' conftest.er1 >conftest.err
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } &&
18852 { ac_try='test -z "$ac_c_werror_flag"
18853 || test ! -s conftest.err'
18854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 (eval $ac_try) 2>&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; } &&
18859 { ac_try='test -s conftest.$ac_objext'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
18865 ac_lo=$ac_mid; break
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18870 ac_hi=`expr '(' $ac_mid ')' - 1`
18871 if test $ac_mid -le $ac_hi; then
18875 ac_mid=`expr 2 '*' $ac_mid`
18877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18888 # Binary search between lo and hi bounds.
18889 while test "x$ac_lo" != "x$ac_hi"; do
18890 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 $ac_includes_default
18901 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
18902 test_array @<:@0@:>@ = 0
18908 rm -f conftest.$ac_objext
18909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18910 (eval $ac_compile) 2>conftest.er1
18912 grep -v '^ *+' conftest.er1 >conftest.err
18914 cat conftest.err >&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try='test -z "$ac_c_werror_flag"
18918 || test ! -s conftest.err'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest.$ac_objext'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 ac_lo=`expr '(' $ac_mid ')' + 1`
18937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18940 ?*) ac_cv_sizeof_int=$ac_lo;;
18941 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18942 See \`config.log' for more details." >&5
18943 echo "$as_me: error: cannot compute sizeof (int), 77
18944 See \`config.log' for more details." >&2;}
18945 { (exit 1); exit 1; }; } ;;
18948 if test "$cross_compiling" = yes; then
18949 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18950 See \`config.log' for more details." >&5
18951 echo "$as_me: error: cannot run test program while cross compiling
18952 See \`config.log' for more details." >&2;}
18953 { (exit 1); exit 1; }; }
18955 cat >conftest.$ac_ext <<_ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 $ac_includes_default
18962 long longval () { return (long) (sizeof (int)); }
18963 unsigned long ulongval () { return (long) (sizeof (int)); }
18964 @%:@include <stdio.h>
18965 @%:@include <stdlib.h>
18970 FILE *f = fopen ("conftest.val", "w");
18973 if (((long) (sizeof (int))) < 0)
18975 long i = longval ();
18976 if (i != ((long) (sizeof (int))))
18978 fprintf (f, "%ld\n", i);
18982 unsigned long i = ulongval ();
18983 if (i != ((long) (sizeof (int))))
18985 fprintf (f, "%lu\n", i);
18987 exit (ferror (f) || fclose (f) != 0);
18993 rm -f conftest$ac_exeext
18994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18995 (eval $ac_link) 2>&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 ac_cv_sizeof_int=`cat conftest.val`
19006 echo "$as_me: program exited with status $ac_status" >&5
19007 echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19010 ( exit $ac_status )
19011 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19012 See \`config.log' for more details." >&5
19013 echo "$as_me: error: cannot compute sizeof (int), 77
19014 See \`config.log' for more details." >&2;}
19015 { (exit 1); exit 1; }; }
19017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19025 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19026 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19027 cat >>confdefs.h <<_ACEOF
19028 @%:@define SIZEOF_INT $ac_cv_sizeof_int
19032 echo "$as_me:$LINENO: checking for long" >&5
19033 echo $ECHO_N "checking for long... $ECHO_C" >&6
19034 if test "${ac_cv_type_long+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 cat >conftest.$ac_ext <<_ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19043 $ac_includes_default
19055 rm -f conftest.$ac_objext
19056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19057 (eval $ac_compile) 2>conftest.er1
19059 grep -v '^ *+' conftest.er1 >conftest.err
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } &&
19064 { ac_try='test -z "$ac_c_werror_flag"
19065 || test ! -s conftest.err'
19066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 (eval $ac_try) 2>&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); }; } &&
19071 { ac_try='test -s conftest.$ac_objext'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; }; then
19077 ac_cv_type_long=yes
19079 echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19086 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19087 echo "${ECHO_T}$ac_cv_type_long" >&6
19089 echo "$as_me:$LINENO: checking size of long" >&5
19090 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19091 if test "${ac_cv_sizeof_long+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 if test "$ac_cv_type_long" = yes; then
19095 # The cast to unsigned long works around a bug in the HP C Compiler
19096 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19097 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19098 # This bug is HP SR number 8606223364.
19099 if test "$cross_compiling" = yes; then
19100 # Depending upon the size, compute the lo and hi bounds.
19101 cat >conftest.$ac_ext <<_ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 $ac_includes_default
19111 static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) >= 0)@:>@;
19112 test_array @<:@0@:>@ = 0
19118 rm -f conftest.$ac_objext
19119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19120 (eval $ac_compile) 2>conftest.er1
19122 grep -v '^ *+' conftest.er1 >conftest.err
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
19127 { ac_try='test -z "$ac_c_werror_flag"
19128 || test ! -s conftest.err'
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest.$ac_objext'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19142 cat >conftest.$ac_ext <<_ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19148 $ac_includes_default
19152 static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)@:>@;
19153 test_array @<:@0@:>@ = 0
19159 rm -f conftest.$ac_objext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19161 (eval $ac_compile) 2>conftest.er1
19163 grep -v '^ *+' conftest.er1 >conftest.err
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try='test -z "$ac_c_werror_flag"
19169 || test ! -s conftest.err'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; } &&
19175 { ac_try='test -s conftest.$ac_objext'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; }; then
19181 ac_hi=$ac_mid; break
19183 echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ac_lo=`expr $ac_mid + 1`
19187 if test $ac_lo -le $ac_mid; then
19191 ac_mid=`expr 2 '*' $ac_mid + 1`
19193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19196 echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19199 cat >conftest.$ac_ext <<_ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19205 $ac_includes_default
19209 static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) < 0)@:>@;
19210 test_array @<:@0@:>@ = 0
19216 rm -f conftest.$ac_objext
19217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19218 (eval $ac_compile) 2>conftest.er1
19220 grep -v '^ *+' conftest.er1 >conftest.err
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag"
19226 || test ! -s conftest.err'
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try='test -s conftest.$ac_objext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19240 cat >conftest.$ac_ext <<_ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h. */
19246 $ac_includes_default
19250 static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)@:>@;
19251 test_array @<:@0@:>@ = 0
19257 rm -f conftest.$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>conftest.er1
19261 grep -v '^ *+' conftest.er1 >conftest.err
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_lo=$ac_mid; break
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_hi=`expr '(' $ac_mid ')' - 1`
19285 if test $ac_mid -le $ac_hi; then
19289 ac_mid=`expr 2 '*' $ac_mid`
19291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19302 # Binary search between lo and hi bounds.
19303 while test "x$ac_lo" != "x$ac_hi"; do
19304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19305 cat >conftest.$ac_ext <<_ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19311 $ac_includes_default
19315 static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)@:>@;
19316 test_array @<:@0@:>@ = 0
19322 rm -f conftest.$ac_objext
19323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19324 (eval $ac_compile) 2>conftest.er1
19326 grep -v '^ *+' conftest.er1 >conftest.err
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -z "$ac_c_werror_flag"
19332 || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19349 ac_lo=`expr '(' $ac_mid ')' + 1`
19351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19354 ?*) ac_cv_sizeof_long=$ac_lo;;
19355 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19356 See \`config.log' for more details." >&5
19357 echo "$as_me: error: cannot compute sizeof (long), 77
19358 See \`config.log' for more details." >&2;}
19359 { (exit 1); exit 1; }; } ;;
19362 if test "$cross_compiling" = yes; then
19363 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19364 See \`config.log' for more details." >&5
19365 echo "$as_me: error: cannot run test program while cross compiling
19366 See \`config.log' for more details." >&2;}
19367 { (exit 1); exit 1; }; }
19369 cat >conftest.$ac_ext <<_ACEOF
19372 cat confdefs.h >>conftest.$ac_ext
19373 cat >>conftest.$ac_ext <<_ACEOF
19374 /* end confdefs.h. */
19375 $ac_includes_default
19376 long longval () { return (long) (sizeof (long)); }
19377 unsigned long ulongval () { return (long) (sizeof (long)); }
19378 @%:@include <stdio.h>
19379 @%:@include <stdlib.h>
19384 FILE *f = fopen ("conftest.val", "w");
19387 if (((long) (sizeof (long))) < 0)
19389 long i = longval ();
19390 if (i != ((long) (sizeof (long))))
19392 fprintf (f, "%ld\n", i);
19396 unsigned long i = ulongval ();
19397 if (i != ((long) (sizeof (long))))
19399 fprintf (f, "%lu\n", i);
19401 exit (ferror (f) || fclose (f) != 0);
19407 rm -f conftest$ac_exeext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409 (eval $ac_link) 2>&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418 ac_cv_sizeof_long=`cat conftest.val`
19420 echo "$as_me: program exited with status $ac_status" >&5
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ( exit $ac_status )
19425 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19426 See \`config.log' for more details." >&5
19427 echo "$as_me: error: cannot compute sizeof (long), 77
19428 See \`config.log' for more details." >&2;}
19429 { (exit 1); exit 1; }; }
19431 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19436 ac_cv_sizeof_long=0
19439 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19440 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19441 cat >>confdefs.h <<_ACEOF
19442 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
19446 echo "$as_me:$LINENO: checking for char *" >&5
19447 echo $ECHO_N "checking for char *... $ECHO_C" >&6
19448 if test "${ac_cv_type_char_p+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19451 cat >conftest.$ac_ext <<_ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 $ac_includes_default
19463 if (sizeof (char *))
19469 rm -f conftest.$ac_objext
19470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19471 (eval $ac_compile) 2>conftest.er1
19473 grep -v '^ *+' conftest.er1 >conftest.err
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } &&
19478 { ac_try='test -z "$ac_c_werror_flag"
19479 || test ! -s conftest.err'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } &&
19485 { ac_try='test -s conftest.$ac_objext'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19491 ac_cv_type_char_p=yes
19493 echo "$as_me: failed program was:" >&5
19494 sed 's/^/| /' conftest.$ac_ext >&5
19496 ac_cv_type_char_p=no
19498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19500 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
19501 echo "${ECHO_T}$ac_cv_type_char_p" >&6
19503 echo "$as_me:$LINENO: checking size of char *" >&5
19504 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
19505 if test "${ac_cv_sizeof_char_p+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 if test "$ac_cv_type_char_p" = yes; then
19509 # The cast to unsigned long works around a bug in the HP C Compiler
19510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19512 # This bug is HP SR number 8606223364.
19513 if test "$cross_compiling" = yes; then
19514 # Depending upon the size, compute the lo and hi bounds.
19515 cat >conftest.$ac_ext <<_ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19521 $ac_includes_default
19525 static int test_array @<:@1 - 2 * !(((long) (sizeof (char *))) >= 0)@:>@;
19526 test_array @<:@0@:>@ = 0
19532 rm -f conftest.$ac_objext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534 (eval $ac_compile) 2>conftest.er1
19536 grep -v '^ *+' conftest.er1 >conftest.err
19538 cat conftest.err >&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try='test -z "$ac_c_werror_flag"
19542 || test ! -s conftest.err'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try='test -s conftest.$ac_objext'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19556 cat >conftest.$ac_ext <<_ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19562 $ac_includes_default
19566 static int test_array @<:@1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)@:>@;
19567 test_array @<:@0@:>@ = 0
19573 rm -f conftest.$ac_objext
19574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19575 (eval $ac_compile) 2>conftest.er1
19577 grep -v '^ *+' conftest.er1 >conftest.err
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
19582 { ac_try='test -z "$ac_c_werror_flag"
19583 || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest.$ac_objext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 ac_hi=$ac_mid; break
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19600 ac_lo=`expr $ac_mid + 1`
19601 if test $ac_lo -le $ac_mid; then
19605 ac_mid=`expr 2 '*' $ac_mid + 1`
19607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19613 cat >conftest.$ac_ext <<_ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19619 $ac_includes_default
19623 static int test_array @<:@1 - 2 * !(((long) (sizeof (char *))) < 0)@:>@;
19624 test_array @<:@0@:>@ = 0
19630 rm -f conftest.$ac_objext
19631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632 (eval $ac_compile) 2>conftest.er1
19634 grep -v '^ *+' conftest.er1 >conftest.err
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
19639 { ac_try='test -z "$ac_c_werror_flag"
19640 || test ! -s conftest.err'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 $ac_includes_default
19664 static int test_array @<:@1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)@:>@;
19665 test_array @<:@0@:>@ = 0
19671 rm -f conftest.$ac_objext
19672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19673 (eval $ac_compile) 2>conftest.er1
19675 grep -v '^ *+' conftest.er1 >conftest.err
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } &&
19680 { ac_try='test -z "$ac_c_werror_flag"
19681 || test ! -s conftest.err'
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; } &&
19687 { ac_try='test -s conftest.$ac_objext'
19688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689 (eval $ac_try) 2>&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
19693 ac_lo=$ac_mid; break
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19698 ac_hi=`expr '(' $ac_mid ')' - 1`
19699 if test $ac_mid -le $ac_hi; then
19703 ac_mid=`expr 2 '*' $ac_mid`
19705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19716 # Binary search between lo and hi bounds.
19717 while test "x$ac_lo" != "x$ac_hi"; do
19718 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19719 cat >conftest.$ac_ext <<_ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 $ac_includes_default
19729 static int test_array @<:@1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)@:>@;
19730 test_array @<:@0@:>@ = 0
19736 rm -f conftest.$ac_objext
19737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19738 (eval $ac_compile) 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
19745 { ac_try='test -z "$ac_c_werror_flag"
19746 || test ! -s conftest.err'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; } &&
19752 { ac_try='test -s conftest.$ac_objext'
19753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19754 (eval $ac_try) 2>&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; }; then
19760 echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19763 ac_lo=`expr '(' $ac_mid ')' + 1`
19765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19768 ?*) ac_cv_sizeof_char_p=$ac_lo;;
19769 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
19770 See \`config.log' for more details." >&5
19771 echo "$as_me: error: cannot compute sizeof (char *), 77
19772 See \`config.log' for more details." >&2;}
19773 { (exit 1); exit 1; }; } ;;
19776 if test "$cross_compiling" = yes; then
19777 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19778 See \`config.log' for more details." >&5
19779 echo "$as_me: error: cannot run test program while cross compiling
19780 See \`config.log' for more details." >&2;}
19781 { (exit 1); exit 1; }; }
19783 cat >conftest.$ac_ext <<_ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789 $ac_includes_default
19790 long longval () { return (long) (sizeof (char *)); }
19791 unsigned long ulongval () { return (long) (sizeof (char *)); }
19792 @%:@include <stdio.h>
19793 @%:@include <stdlib.h>
19798 FILE *f = fopen ("conftest.val", "w");
19801 if (((long) (sizeof (char *))) < 0)
19803 long i = longval ();
19804 if (i != ((long) (sizeof (char *))))
19806 fprintf (f, "%ld\n", i);
19810 unsigned long i = ulongval ();
19811 if (i != ((long) (sizeof (char *))))
19813 fprintf (f, "%lu\n", i);
19815 exit (ferror (f) || fclose (f) != 0);
19821 rm -f conftest$ac_exeext
19822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19823 (eval $ac_link) 2>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 ac_cv_sizeof_char_p=`cat conftest.val`
19834 echo "$as_me: program exited with status $ac_status" >&5
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19838 ( exit $ac_status )
19839 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
19840 See \`config.log' for more details." >&5
19841 echo "$as_me: error: cannot compute sizeof (char *), 77
19842 See \`config.log' for more details." >&2;}
19843 { (exit 1); exit 1; }; }
19845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19850 ac_cv_sizeof_char_p=0
19853 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
19854 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
19855 cat >>confdefs.h <<_ACEOF
19856 @%:@define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19860 echo "$as_me:$LINENO: checking for double" >&5
19861 echo $ECHO_N "checking for double... $ECHO_C" >&6
19862 if test "${ac_cv_type_double+set}" = set; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19865 cat >conftest.$ac_ext <<_ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 $ac_includes_default
19877 if (sizeof (double))
19883 rm -f conftest.$ac_objext
19884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19885 (eval $ac_compile) 2>conftest.er1
19887 grep -v '^ *+' conftest.er1 >conftest.err
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try='test -z "$ac_c_werror_flag"
19893 || test ! -s conftest.err'
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; } &&
19899 { ac_try='test -s conftest.$ac_objext'
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; }; then
19905 ac_cv_type_double=yes
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_cv_type_double=no
19912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19914 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
19915 echo "${ECHO_T}$ac_cv_type_double" >&6
19917 echo "$as_me:$LINENO: checking size of double" >&5
19918 echo $ECHO_N "checking size of double... $ECHO_C" >&6
19919 if test "${ac_cv_sizeof_double+set}" = set; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19922 if test "$ac_cv_type_double" = yes; then
19923 # The cast to unsigned long works around a bug in the HP C Compiler
19924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19926 # This bug is HP SR number 8606223364.
19927 if test "$cross_compiling" = yes; then
19928 # Depending upon the size, compute the lo and hi bounds.
19929 cat >conftest.$ac_ext <<_ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 $ac_includes_default
19939 static int test_array @<:@1 - 2 * !(((long) (sizeof (double))) >= 0)@:>@;
19940 test_array @<:@0@:>@ = 0
19946 rm -f conftest.$ac_objext
19947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19948 (eval $ac_compile) 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_c_werror_flag"
19956 || test ! -s conftest.err'
19957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958 (eval $ac_try) 2>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; } &&
19962 { ac_try='test -s conftest.$ac_objext'
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19976 $ac_includes_default
19980 static int test_array @<:@1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)@:>@;
19981 test_array @<:@0@:>@ = 0
19987 rm -f conftest.$ac_objext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19989 (eval $ac_compile) 2>conftest.er1
19991 grep -v '^ *+' conftest.er1 >conftest.err
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -z "$ac_c_werror_flag"
19997 || test ! -s conftest.err'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest.$ac_objext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20009 ac_hi=$ac_mid; break
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20014 ac_lo=`expr $ac_mid + 1`
20015 if test $ac_lo -le $ac_mid; then
20019 ac_mid=`expr 2 '*' $ac_mid + 1`
20021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20027 cat >conftest.$ac_ext <<_ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 $ac_includes_default
20037 static int test_array @<:@1 - 2 * !(((long) (sizeof (double))) < 0)@:>@;
20038 test_array @<:@0@:>@ = 0
20044 rm -f conftest.$ac_objext
20045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046 (eval $ac_compile) 2>conftest.er1
20048 grep -v '^ *+' conftest.er1 >conftest.err
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } &&
20053 { ac_try='test -z "$ac_c_werror_flag"
20054 || test ! -s conftest.err'
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; } &&
20060 { ac_try='test -s conftest.$ac_objext'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20068 cat >conftest.$ac_ext <<_ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20074 $ac_includes_default
20078 static int test_array @<:@1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)@:>@;
20079 test_array @<:@0@:>@ = 0
20085 rm -f conftest.$ac_objext
20086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20087 (eval $ac_compile) 2>conftest.er1
20089 grep -v '^ *+' conftest.er1 >conftest.err
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } &&
20094 { ac_try='test -z "$ac_c_werror_flag"
20095 || test ! -s conftest.err'
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest.$ac_objext'
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; }; then
20107 ac_lo=$ac_mid; break
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20112 ac_hi=`expr '(' $ac_mid ')' - 1`
20113 if test $ac_mid -le $ac_hi; then
20117 ac_mid=`expr 2 '*' $ac_mid`
20119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20130 # Binary search between lo and hi bounds.
20131 while test "x$ac_lo" != "x$ac_hi"; do
20132 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20133 cat >conftest.$ac_ext <<_ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 $ac_includes_default
20143 static int test_array @<:@1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)@:>@;
20144 test_array @<:@0@:>@ = 0
20150 rm -f conftest.$ac_objext
20151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20152 (eval $ac_compile) 2>conftest.er1
20154 grep -v '^ *+' conftest.er1 >conftest.err
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } &&
20159 { ac_try='test -z "$ac_c_werror_flag"
20160 || test ! -s conftest.err'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; } &&
20166 { ac_try='test -s conftest.$ac_objext'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20177 ac_lo=`expr '(' $ac_mid ')' + 1`
20179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20182 ?*) ac_cv_sizeof_double=$ac_lo;;
20183 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20184 See \`config.log' for more details." >&5
20185 echo "$as_me: error: cannot compute sizeof (double), 77
20186 See \`config.log' for more details." >&2;}
20187 { (exit 1); exit 1; }; } ;;
20190 if test "$cross_compiling" = yes; then
20191 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20192 See \`config.log' for more details." >&5
20193 echo "$as_me: error: cannot run test program while cross compiling
20194 See \`config.log' for more details." >&2;}
20195 { (exit 1); exit 1; }; }
20197 cat >conftest.$ac_ext <<_ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20203 $ac_includes_default
20204 long longval () { return (long) (sizeof (double)); }
20205 unsigned long ulongval () { return (long) (sizeof (double)); }
20206 @%:@include <stdio.h>
20207 @%:@include <stdlib.h>
20212 FILE *f = fopen ("conftest.val", "w");
20215 if (((long) (sizeof (double))) < 0)
20217 long i = longval ();
20218 if (i != ((long) (sizeof (double))))
20220 fprintf (f, "%ld\n", i);
20224 unsigned long i = ulongval ();
20225 if (i != ((long) (sizeof (double))))
20227 fprintf (f, "%lu\n", i);
20229 exit (ferror (f) || fclose (f) != 0);
20235 rm -f conftest$ac_exeext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20237 (eval $ac_link) 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_sizeof_double=`cat conftest.val`
20248 echo "$as_me: program exited with status $ac_status" >&5
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 ( exit $ac_status )
20253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20254 See \`config.log' for more details." >&5
20255 echo "$as_me: error: cannot compute sizeof (double), 77
20256 See \`config.log' for more details." >&2;}
20257 { (exit 1); exit 1; }; }
20259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20264 ac_cv_sizeof_double=0
20267 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
20268 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
20269 cat >>confdefs.h <<_ACEOF
20270 @%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
20274 echo "$as_me:$LINENO: checking for long long" >&5
20275 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20276 if test "${ac_cv_type_long_long+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 cat >conftest.$ac_ext <<_ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 $ac_includes_default
20289 if ((long long *) 0)
20291 if (sizeof (long long))
20297 rm -f conftest.$ac_objext
20298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20299 (eval $ac_compile) 2>conftest.er1
20301 grep -v '^ *+' conftest.er1 >conftest.err
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } &&
20306 { ac_try='test -z "$ac_c_werror_flag"
20307 || test ! -s conftest.err'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; } &&
20313 { ac_try='test -s conftest.$ac_objext'
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; }; then
20319 ac_cv_type_long_long=yes
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ac_cv_type_long_long=no
20326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20328 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20329 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20331 echo "$as_me:$LINENO: checking size of long long" >&5
20332 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20333 if test "${ac_cv_sizeof_long_long+set}" = set; then
20334 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 if test "$ac_cv_type_long_long" = yes; then
20337 # The cast to unsigned long works around a bug in the HP C Compiler
20338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20340 # This bug is HP SR number 8606223364.
20341 if test "$cross_compiling" = yes; then
20342 # Depending upon the size, compute the lo and hi bounds.
20343 cat >conftest.$ac_ext <<_ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 $ac_includes_default
20353 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long))) >= 0)@:>@;
20354 test_array @<:@0@:>@ = 0
20360 rm -f conftest.$ac_objext
20361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20362 (eval $ac_compile) 2>conftest.er1
20364 grep -v '^ *+' conftest.er1 >conftest.err
20366 cat conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
20369 { ac_try='test -z "$ac_c_werror_flag"
20370 || test ! -s conftest.err'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; } &&
20376 { ac_try='test -s conftest.$ac_objext'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20384 cat >conftest.$ac_ext <<_ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 $ac_includes_default
20394 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)@:>@;
20395 test_array @<:@0@:>@ = 0
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403 (eval $ac_compile) 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_c_werror_flag"
20411 || test ! -s conftest.err'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; } &&
20417 { ac_try='test -s conftest.$ac_objext'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20423 ac_hi=$ac_mid; break
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ac_lo=`expr $ac_mid + 1`
20429 if test $ac_lo -le $ac_mid; then
20433 ac_mid=`expr 2 '*' $ac_mid + 1`
20435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20441 cat >conftest.$ac_ext <<_ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20447 $ac_includes_default
20451 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long))) < 0)@:>@;
20452 test_array @<:@0@:>@ = 0
20458 rm -f conftest.$ac_objext
20459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20460 (eval $ac_compile) 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
20467 { ac_try='test -z "$ac_c_werror_flag"
20468 || test ! -s conftest.err'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; } &&
20474 { ac_try='test -s conftest.$ac_objext'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20482 cat >conftest.$ac_ext <<_ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20488 $ac_includes_default
20492 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)@:>@;
20493 test_array @<:@0@:>@ = 0
20499 rm -f conftest.$ac_objext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501 (eval $ac_compile) 2>conftest.er1
20503 grep -v '^ *+' conftest.er1 >conftest.err
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
20508 { ac_try='test -z "$ac_c_werror_flag"
20509 || test ! -s conftest.err'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try='test -s conftest.$ac_objext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_lo=$ac_mid; break
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 ac_hi=`expr '(' $ac_mid ')' - 1`
20527 if test $ac_mid -le $ac_hi; then
20531 ac_mid=`expr 2 '*' $ac_mid`
20533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20536 echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20544 # Binary search between lo and hi bounds.
20545 while test "x$ac_lo" != "x$ac_hi"; do
20546 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20547 cat >conftest.$ac_ext <<_ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553 $ac_includes_default
20557 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)@:>@;
20558 test_array @<:@0@:>@ = 0
20564 rm -f conftest.$ac_objext
20565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20566 (eval $ac_compile) 2>conftest.er1
20568 grep -v '^ *+' conftest.er1 >conftest.err
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } &&
20573 { ac_try='test -z "$ac_c_werror_flag"
20574 || test ! -s conftest.err'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; } &&
20580 { ac_try='test -s conftest.$ac_objext'
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; }; then
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_lo=`expr '(' $ac_mid ')' + 1`
20593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20596 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20597 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20598 See \`config.log' for more details." >&5
20599 echo "$as_me: error: cannot compute sizeof (long long), 77
20600 See \`config.log' for more details." >&2;}
20601 { (exit 1); exit 1; }; } ;;
20604 if test "$cross_compiling" = yes; then
20605 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20606 See \`config.log' for more details." >&5
20607 echo "$as_me: error: cannot run test program while cross compiling
20608 See \`config.log' for more details." >&2;}
20609 { (exit 1); exit 1; }; }
20611 cat >conftest.$ac_ext <<_ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h. */
20617 $ac_includes_default
20618 long longval () { return (long) (sizeof (long long)); }
20619 unsigned long ulongval () { return (long) (sizeof (long long)); }
20620 @%:@include <stdio.h>
20621 @%:@include <stdlib.h>
20626 FILE *f = fopen ("conftest.val", "w");
20629 if (((long) (sizeof (long long))) < 0)
20631 long i = longval ();
20632 if (i != ((long) (sizeof (long long))))
20634 fprintf (f, "%ld\n", i);
20638 unsigned long i = ulongval ();
20639 if (i != ((long) (sizeof (long long))))
20641 fprintf (f, "%lu\n", i);
20643 exit (ferror (f) || fclose (f) != 0);
20649 rm -f conftest$ac_exeext
20650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20651 (eval $ac_link) 2>&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; }; then
20660 ac_cv_sizeof_long_long=`cat conftest.val`
20662 echo "$as_me: program exited with status $ac_status" >&5
20663 echo "$as_me: failed program was:" >&5
20664 sed 's/^/| /' conftest.$ac_ext >&5
20666 ( exit $ac_status )
20667 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20668 See \`config.log' for more details." >&5
20669 echo "$as_me: error: cannot compute sizeof (long long), 77
20670 See \`config.log' for more details." >&2;}
20671 { (exit 1); exit 1; }; }
20673 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20678 ac_cv_sizeof_long_long=0
20681 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20682 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20683 cat >>confdefs.h <<_ACEOF
20684 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20689 echo "$as_me:$LINENO: checking for u_int" >&5
20690 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
20691 if test "${ac_cv_type_u_int+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 cat >conftest.$ac_ext <<_ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 $ac_includes_default
20706 if (sizeof (u_int))
20712 rm -f conftest.$ac_objext
20713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20714 (eval $ac_compile) 2>conftest.er1
20716 grep -v '^ *+' conftest.er1 >conftest.err
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } &&
20721 { ac_try='test -z "$ac_c_werror_flag"
20722 || test ! -s conftest.err'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; } &&
20728 { ac_try='test -s conftest.$ac_objext'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; }; then
20734 ac_cv_type_u_int=yes
20736 echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20739 ac_cv_type_u_int=no
20741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20743 echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
20744 echo "${ECHO_T}$ac_cv_type_u_int" >&6
20745 if test $ac_cv_type_u_int = yes; then
20749 cat >>confdefs.h <<_ACEOF
20750 @%:@define u_int unsigned int
20755 echo "$as_me:$LINENO: checking for u_long" >&5
20756 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
20757 if test "${ac_cv_type_u_long+set}" = set; then
20758 echo $ECHO_N "(cached) $ECHO_C" >&6
20760 cat >conftest.$ac_ext <<_ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20766 $ac_includes_default
20772 if (sizeof (u_long))
20778 rm -f conftest.$ac_objext
20779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20780 (eval $ac_compile) 2>conftest.er1
20782 grep -v '^ *+' conftest.er1 >conftest.err
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } &&
20787 { ac_try='test -z "$ac_c_werror_flag"
20788 || test ! -s conftest.err'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; } &&
20794 { ac_try='test -s conftest.$ac_objext'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; }; then
20800 ac_cv_type_u_long=yes
20802 echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20805 ac_cv_type_u_long=no
20807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20809 echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
20810 echo "${ECHO_T}$ac_cv_type_u_long" >&6
20811 if test $ac_cv_type_u_long = yes; then
20815 cat >>confdefs.h <<_ACEOF
20816 @%:@define u_long unsigned long
20823 if test "$ac_cv_sizeof_short" = 2; then
20824 echo "$as_me:$LINENO: checking for bits16_t" >&5
20825 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20826 if test "${ac_cv_type_bits16_t+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20829 cat >conftest.$ac_ext <<_ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h. */
20835 $ac_includes_default
20839 if ((bits16_t *) 0)
20841 if (sizeof (bits16_t))
20847 rm -f conftest.$ac_objext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20849 (eval $ac_compile) 2>conftest.er1
20851 grep -v '^ *+' conftest.er1 >conftest.err
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
20856 { ac_try='test -z "$ac_c_werror_flag"
20857 || test ! -s conftest.err'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; } &&
20863 { ac_try='test -s conftest.$ac_objext'
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; }; then
20869 ac_cv_type_bits16_t=yes
20871 echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20874 ac_cv_type_bits16_t=no
20876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20878 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20879 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20880 if test $ac_cv_type_bits16_t = yes; then
20884 cat >>confdefs.h <<_ACEOF
20885 @%:@define bits16_t short
20890 elif test "$ac_cv_sizeof_char" = 2; then
20891 echo "$as_me:$LINENO: checking for bits16_t" >&5
20892 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20893 if test "${ac_cv_type_bits16_t+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20896 cat >conftest.$ac_ext <<_ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20902 $ac_includes_default
20906 if ((bits16_t *) 0)
20908 if (sizeof (bits16_t))
20914 rm -f conftest.$ac_objext
20915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20916 (eval $ac_compile) 2>conftest.er1
20918 grep -v '^ *+' conftest.er1 >conftest.err
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } &&
20923 { ac_try='test -z "$ac_c_werror_flag"
20924 || test ! -s conftest.err'
20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926 (eval $ac_try) 2>&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; } &&
20930 { ac_try='test -s conftest.$ac_objext'
20931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20932 (eval $ac_try) 2>&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); }; }; then
20936 ac_cv_type_bits16_t=yes
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20941 ac_cv_type_bits16_t=no
20943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20945 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20946 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20947 if test $ac_cv_type_bits16_t = yes; then
20951 cat >>confdefs.h <<_ACEOF
20952 @%:@define bits16_t char
20958 echo "$as_me:$LINENO: checking for bits16_t" >&5
20959 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20960 if test "${ac_cv_type_bits16_t+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 cat >conftest.$ac_ext <<_ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20969 $ac_includes_default
20973 if ((bits16_t *) 0)
20975 if (sizeof (bits16_t))
20981 rm -f conftest.$ac_objext
20982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20983 (eval $ac_compile) 2>conftest.er1
20985 grep -v '^ *+' conftest.er1 >conftest.err
20987 cat conftest.err >&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } &&
20990 { ac_try='test -z "$ac_c_werror_flag"
20991 || test ! -s conftest.err'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; } &&
20997 { ac_try='test -s conftest.$ac_objext'
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; }; then
21003 ac_cv_type_bits16_t=yes
21005 echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21008 ac_cv_type_bits16_t=no
21010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21012 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
21013 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
21014 if test $ac_cv_type_bits16_t = yes; then
21018 cat >>confdefs.h <<_ACEOF
21019 @%:@define bits16_t short
21027 if test "$ac_cv_sizeof_short" = 2; then
21028 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
21029 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21030 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 cat >conftest.$ac_ext <<_ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 $ac_includes_default
21043 if ((u_bits16_t *) 0)
21045 if (sizeof (u_bits16_t))
21051 rm -f conftest.$ac_objext
21052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21053 (eval $ac_compile) 2>conftest.er1
21055 grep -v '^ *+' conftest.er1 >conftest.err
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
21060 { ac_try='test -z "$ac_c_werror_flag"
21061 || test ! -s conftest.err'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; } &&
21067 { ac_try='test -s conftest.$ac_objext'
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 ac_cv_type_u_bits16_t=yes
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21078 ac_cv_type_u_bits16_t=no
21080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21082 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21083 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21084 if test $ac_cv_type_u_bits16_t = yes; then
21088 cat >>confdefs.h <<_ACEOF
21089 @%:@define u_bits16_t unsigned short
21094 elif test "$ac_cv_sizeof_char" = 2; then
21095 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
21096 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21097 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21100 cat >conftest.$ac_ext <<_ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21106 $ac_includes_default
21110 if ((u_bits16_t *) 0)
21112 if (sizeof (u_bits16_t))
21118 rm -f conftest.$ac_objext
21119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21120 (eval $ac_compile) 2>conftest.er1
21122 grep -v '^ *+' conftest.er1 >conftest.err
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
21127 { ac_try='test -z "$ac_c_werror_flag"
21128 || test ! -s conftest.err'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; } &&
21134 { ac_try='test -s conftest.$ac_objext'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 ac_cv_type_u_bits16_t=yes
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 ac_cv_type_u_bits16_t=no
21147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21149 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21150 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21151 if test $ac_cv_type_u_bits16_t = yes; then
21155 cat >>confdefs.h <<_ACEOF
21156 @%:@define u_bits16_t unsigned char
21162 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
21163 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21164 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21167 cat >conftest.$ac_ext <<_ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21173 $ac_includes_default
21177 if ((u_bits16_t *) 0)
21179 if (sizeof (u_bits16_t))
21185 rm -f conftest.$ac_objext
21186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21187 (eval $ac_compile) 2>conftest.er1
21189 grep -v '^ *+' conftest.er1 >conftest.err
21191 cat conftest.err >&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } &&
21194 { ac_try='test -z "$ac_c_werror_flag"
21195 || test ! -s conftest.err'
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; } &&
21201 { ac_try='test -s conftest.$ac_objext'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 ac_cv_type_u_bits16_t=yes
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 ac_cv_type_u_bits16_t=no
21214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21216 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21217 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21218 if test $ac_cv_type_u_bits16_t = yes; then
21222 cat >>confdefs.h <<_ACEOF
21223 @%:@define u_bits16_t unsigned short
21231 if test "$ac_cv_sizeof_int" = 4; then
21232 echo "$as_me:$LINENO: checking for bits32_t" >&5
21233 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21234 if test "${ac_cv_type_bits32_t+set}" = set; then
21235 echo $ECHO_N "(cached) $ECHO_C" >&6
21237 cat >conftest.$ac_ext <<_ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 $ac_includes_default
21247 if ((bits32_t *) 0)
21249 if (sizeof (bits32_t))
21255 rm -f conftest.$ac_objext
21256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21257 (eval $ac_compile) 2>conftest.er1
21259 grep -v '^ *+' conftest.er1 >conftest.err
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } &&
21264 { ac_try='test -z "$ac_c_werror_flag"
21265 || test ! -s conftest.err'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; } &&
21271 { ac_try='test -s conftest.$ac_objext'
21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; }; then
21277 ac_cv_type_bits32_t=yes
21279 echo "$as_me: failed program was:" >&5
21280 sed 's/^/| /' conftest.$ac_ext >&5
21282 ac_cv_type_bits32_t=no
21284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21286 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21287 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21288 if test $ac_cv_type_bits32_t = yes; then
21292 cat >>confdefs.h <<_ACEOF
21293 @%:@define bits32_t int
21298 elif test "$ac_cv_sizeof_long" = 4; then
21299 echo "$as_me:$LINENO: checking for bits32_t" >&5
21300 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21301 if test "${ac_cv_type_bits32_t+set}" = set; then
21302 echo $ECHO_N "(cached) $ECHO_C" >&6
21304 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 $ac_includes_default
21314 if ((bits32_t *) 0)
21316 if (sizeof (bits32_t))
21322 rm -f conftest.$ac_objext
21323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21324 (eval $ac_compile) 2>conftest.er1
21326 grep -v '^ *+' conftest.er1 >conftest.err
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
21331 { ac_try='test -z "$ac_c_werror_flag"
21332 || test ! -s conftest.err'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; } &&
21338 { ac_try='test -s conftest.$ac_objext'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }; then
21344 ac_cv_type_bits32_t=yes
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ac_cv_type_bits32_t=no
21351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21353 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21354 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21355 if test $ac_cv_type_bits32_t = yes; then
21359 cat >>confdefs.h <<_ACEOF
21360 @%:@define bits32_t long
21366 echo "$as_me:$LINENO: checking for bits32_t" >&5
21367 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21368 if test "${ac_cv_type_bits32_t+set}" = set; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21371 cat >conftest.$ac_ext <<_ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21377 $ac_includes_default
21381 if ((bits32_t *) 0)
21383 if (sizeof (bits32_t))
21389 rm -f conftest.$ac_objext
21390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21391 (eval $ac_compile) 2>conftest.er1
21393 grep -v '^ *+' conftest.er1 >conftest.err
21395 cat conftest.err >&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } &&
21398 { ac_try='test -z "$ac_c_werror_flag"
21399 || test ! -s conftest.err'
21400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401 (eval $ac_try) 2>&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; } &&
21405 { ac_try='test -s conftest.$ac_objext'
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; }; then
21411 ac_cv_type_bits32_t=yes
21413 echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21416 ac_cv_type_bits32_t=no
21418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21420 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21421 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21422 if test $ac_cv_type_bits32_t = yes; then
21426 cat >>confdefs.h <<_ACEOF
21427 @%:@define bits32_t int
21435 if test "$ac_cv_sizeof_int" = 4; then
21436 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21437 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21438 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 cat >conftest.$ac_ext <<_ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 $ac_includes_default
21451 if ((u_bits32_t *) 0)
21453 if (sizeof (u_bits32_t))
21459 rm -f conftest.$ac_objext
21460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21461 (eval $ac_compile) 2>conftest.er1
21463 grep -v '^ *+' conftest.er1 >conftest.err
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } &&
21468 { ac_try='test -z "$ac_c_werror_flag"
21469 || test ! -s conftest.err'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; } &&
21475 { ac_try='test -s conftest.$ac_objext'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; }; then
21481 ac_cv_type_u_bits32_t=yes
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21486 ac_cv_type_u_bits32_t=no
21488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21490 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21491 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21492 if test $ac_cv_type_u_bits32_t = yes; then
21496 cat >>confdefs.h <<_ACEOF
21497 @%:@define u_bits32_t unsigned int
21502 elif test "$ac_cv_sizeof_long" = 4; then
21503 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21504 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21505 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 cat >conftest.$ac_ext <<_ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 $ac_includes_default
21518 if ((u_bits32_t *) 0)
21520 if (sizeof (u_bits32_t))
21526 rm -f conftest.$ac_objext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21528 (eval $ac_compile) 2>conftest.er1
21530 grep -v '^ *+' conftest.er1 >conftest.err
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } &&
21535 { ac_try='test -z "$ac_c_werror_flag"
21536 || test ! -s conftest.err'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; } &&
21542 { ac_try='test -s conftest.$ac_objext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 ac_cv_type_u_bits32_t=yes
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 ac_cv_type_u_bits32_t=no
21555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21557 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21558 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21559 if test $ac_cv_type_u_bits32_t = yes; then
21563 cat >>confdefs.h <<_ACEOF
21564 @%:@define u_bits32_t unsigned long
21570 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21571 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21572 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
21575 cat >conftest.$ac_ext <<_ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h. */
21581 $ac_includes_default
21585 if ((u_bits32_t *) 0)
21587 if (sizeof (u_bits32_t))
21593 rm -f conftest.$ac_objext
21594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21595 (eval $ac_compile) 2>conftest.er1
21597 grep -v '^ *+' conftest.er1 >conftest.err
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } &&
21602 { ac_try='test -z "$ac_c_werror_flag"
21603 || test ! -s conftest.err'
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; } &&
21609 { ac_try='test -s conftest.$ac_objext'
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; }; then
21615 ac_cv_type_u_bits32_t=yes
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21620 ac_cv_type_u_bits32_t=no
21622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21624 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21625 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21626 if test $ac_cv_type_u_bits32_t = yes; then
21630 cat >>confdefs.h <<_ACEOF
21631 @%:@define u_bits32_t unsigned int
21639 if test "$ac_cv_sizeof_char_p" = 8; then
21640 echo "$as_me:$LINENO: checking for bits64_t" >&5
21641 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21642 if test "${ac_cv_type_bits64_t+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21645 cat >conftest.$ac_ext <<_ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 $ac_includes_default
21655 if ((bits64_t *) 0)
21657 if (sizeof (bits64_t))
21663 rm -f conftest.$ac_objext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21665 (eval $ac_compile) 2>conftest.er1
21667 grep -v '^ *+' conftest.er1 >conftest.err
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } &&
21672 { ac_try='test -z "$ac_c_werror_flag"
21673 || test ! -s conftest.err'
21674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675 (eval $ac_try) 2>&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); }; } &&
21679 { ac_try='test -s conftest.$ac_objext'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; }; then
21685 ac_cv_type_bits64_t=yes
21687 echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21690 ac_cv_type_bits64_t=no
21692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21694 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21695 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21696 if test $ac_cv_type_bits64_t = yes; then
21700 cat >>confdefs.h <<_ACEOF
21701 @%:@define bits64_t char *
21706 elif test "$ac_cv_sizeof_double" = 8; then
21707 echo "$as_me:$LINENO: checking for bits64_t" >&5
21708 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21709 if test "${ac_cv_type_bits64_t+set}" = set; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21712 cat >conftest.$ac_ext <<_ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 $ac_includes_default
21722 if ((bits64_t *) 0)
21724 if (sizeof (bits64_t))
21730 rm -f conftest.$ac_objext
21731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21732 (eval $ac_compile) 2>conftest.er1
21734 grep -v '^ *+' conftest.er1 >conftest.err
21736 cat conftest.err >&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } &&
21739 { ac_try='test -z "$ac_c_werror_flag"
21740 || test ! -s conftest.err'
21741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742 (eval $ac_try) 2>&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; } &&
21746 { ac_try='test -s conftest.$ac_objext'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; }; then
21752 ac_cv_type_bits64_t=yes
21754 echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21757 ac_cv_type_bits64_t=no
21759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21761 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21762 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21763 if test $ac_cv_type_bits64_t = yes; then
21767 cat >>confdefs.h <<_ACEOF
21768 @%:@define bits64_t double
21773 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
21774 echo "$as_me:$LINENO: checking for bits64_t" >&5
21775 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21776 if test "${ac_cv_type_bits64_t+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21779 cat >conftest.$ac_ext <<_ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 $ac_includes_default
21789 if ((bits64_t *) 0)
21791 if (sizeof (bits64_t))
21797 rm -f conftest.$ac_objext
21798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21799 (eval $ac_compile) 2>conftest.er1
21801 grep -v '^ *+' conftest.er1 >conftest.err
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } &&
21806 { ac_try='test -z "$ac_c_werror_flag"
21807 || test ! -s conftest.err'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; } &&
21813 { ac_try='test -s conftest.$ac_objext'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
21819 ac_cv_type_bits64_t=yes
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21824 ac_cv_type_bits64_t=no
21826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21828 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21829 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21830 if test $ac_cv_type_bits64_t = yes; then
21834 cat >>confdefs.h <<_ACEOF
21835 @%:@define bits64_t long long
21840 elif test "$ac_cv_sizeof_long" = 8; then
21841 echo "$as_me:$LINENO: checking for bits64_t" >&5
21842 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21843 if test "${ac_cv_type_bits64_t+set}" = set; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 cat >conftest.$ac_ext <<_ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h. */
21852 $ac_includes_default
21856 if ((bits64_t *) 0)
21858 if (sizeof (bits64_t))
21864 rm -f conftest.$ac_objext
21865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21866 (eval $ac_compile) 2>conftest.er1
21868 grep -v '^ *+' conftest.er1 >conftest.err
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } &&
21873 { ac_try='test -z "$ac_c_werror_flag"
21874 || test ! -s conftest.err'
21875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876 (eval $ac_try) 2>&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); }; } &&
21880 { ac_try='test -s conftest.$ac_objext'
21881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882 (eval $ac_try) 2>&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); }; }; then
21886 ac_cv_type_bits64_t=yes
21888 echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21891 ac_cv_type_bits64_t=no
21893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21895 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21896 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21897 if test $ac_cv_type_bits64_t = yes; then
21901 cat >>confdefs.h <<_ACEOF
21902 @%:@define bits64_t long
21908 echo "$as_me:$LINENO: checking for bits64_t" >&5
21909 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21910 if test "${ac_cv_type_bits64_t+set}" = set; then
21911 echo $ECHO_N "(cached) $ECHO_C" >&6
21913 cat >conftest.$ac_ext <<_ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h. */
21919 $ac_includes_default
21923 if ((bits64_t *) 0)
21925 if (sizeof (bits64_t))
21931 rm -f conftest.$ac_objext
21932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21933 (eval $ac_compile) 2>conftest.er1
21935 grep -v '^ *+' conftest.er1 >conftest.err
21937 cat conftest.err >&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } &&
21940 { ac_try='test -z "$ac_c_werror_flag"
21941 || test ! -s conftest.err'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; } &&
21947 { ac_try='test -s conftest.$ac_objext'
21948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21953 ac_cv_type_bits64_t=yes
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 ac_cv_type_bits64_t=no
21960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21962 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21963 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21964 if test $ac_cv_type_bits64_t = yes; then
21968 cat >>confdefs.h <<_ACEOF
21969 @%:@define bits64_t double
21978 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
21979 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21980 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21981 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21982 echo $ECHO_N "(cached) $ECHO_C" >&6
21984 cat >conftest.$ac_ext <<_ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h. */
21990 $ac_includes_default
21994 if ((ptrdiff_t *) 0)
21996 if (sizeof (ptrdiff_t))
22002 rm -f conftest.$ac_objext
22003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22004 (eval $ac_compile) 2>conftest.er1
22006 grep -v '^ *+' conftest.er1 >conftest.err
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } &&
22011 { ac_try='test -z "$ac_c_werror_flag"
22012 || test ! -s conftest.err'
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; } &&
22018 { ac_try='test -s conftest.$ac_objext'
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; }; then
22024 ac_cv_type_ptrdiff_t=yes
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 ac_cv_type_ptrdiff_t=no
22031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22033 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22034 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22035 if test $ac_cv_type_ptrdiff_t = yes; then
22039 cat >>confdefs.h <<_ACEOF
22040 @%:@define ptrdiff_t int
22045 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
22046 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22047 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22048 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22051 cat >conftest.$ac_ext <<_ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 $ac_includes_default
22061 if ((ptrdiff_t *) 0)
22063 if (sizeof (ptrdiff_t))
22069 rm -f conftest.$ac_objext
22070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22071 (eval $ac_compile) 2>conftest.er1
22073 grep -v '^ *+' conftest.er1 >conftest.err
22075 cat conftest.err >&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } &&
22078 { ac_try='test -z "$ac_c_werror_flag"
22079 || test ! -s conftest.err'
22080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22081 (eval $ac_try) 2>&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; } &&
22085 { ac_try='test -s conftest.$ac_objext'
22086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087 (eval $ac_try) 2>&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; }; then
22091 ac_cv_type_ptrdiff_t=yes
22093 echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22096 ac_cv_type_ptrdiff_t=no
22098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22100 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22101 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22102 if test $ac_cv_type_ptrdiff_t = yes; then
22106 cat >>confdefs.h <<_ACEOF
22107 @%:@define ptrdiff_t long
22112 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
22113 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22114 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22115 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22116 echo $ECHO_N "(cached) $ECHO_C" >&6
22118 cat >conftest.$ac_ext <<_ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124 $ac_includes_default
22128 if ((ptrdiff_t *) 0)
22130 if (sizeof (ptrdiff_t))
22136 rm -f conftest.$ac_objext
22137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22138 (eval $ac_compile) 2>conftest.er1
22140 grep -v '^ *+' conftest.er1 >conftest.err
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } &&
22145 { ac_try='test -z "$ac_c_werror_flag"
22146 || test ! -s conftest.err'
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; } &&
22152 { ac_try='test -s conftest.$ac_objext'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; }; then
22158 ac_cv_type_ptrdiff_t=yes
22160 echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22163 ac_cv_type_ptrdiff_t=no
22165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22167 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22168 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22169 if test $ac_cv_type_ptrdiff_t = yes; then
22173 cat >>confdefs.h <<_ACEOF
22174 @%:@define ptrdiff_t long long
22180 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22181 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22182 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22183 echo $ECHO_N "(cached) $ECHO_C" >&6
22185 cat >conftest.$ac_ext <<_ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22191 $ac_includes_default
22195 if ((ptrdiff_t *) 0)
22197 if (sizeof (ptrdiff_t))
22203 rm -f conftest.$ac_objext
22204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22205 (eval $ac_compile) 2>conftest.er1
22207 grep -v '^ *+' conftest.er1 >conftest.err
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } &&
22212 { ac_try='test -z "$ac_c_werror_flag"
22213 || test ! -s conftest.err'
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; } &&
22219 { ac_try='test -s conftest.$ac_objext'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; }; then
22225 ac_cv_type_ptrdiff_t=yes
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22230 ac_cv_type_ptrdiff_t=no
22232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22234 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22235 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22236 if test $ac_cv_type_ptrdiff_t = yes; then
22240 cat >>confdefs.h <<_ACEOF
22241 @%:@define ptrdiff_t int
22249 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22250 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
22251 if test "${ac_cv_header_stat_broken+set}" = set; then
22252 echo $ECHO_N "(cached) $ECHO_C" >&6
22254 cat >conftest.$ac_ext <<_ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h. */
22260 #include <sys/types.h>
22261 #include <sys/stat.h>
22263 #if defined(S_ISBLK) && defined(S_IFDIR)
22264 # if S_ISBLK (S_IFDIR)
22269 #if defined(S_ISBLK) && defined(S_IFCHR)
22270 # if S_ISBLK (S_IFCHR)
22275 #if defined(S_ISLNK) && defined(S_IFREG)
22276 # if S_ISLNK (S_IFREG)
22281 #if defined(S_ISSOCK) && defined(S_IFREG)
22282 # if S_ISSOCK (S_IFREG)
22288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22289 $EGREP "You lose" >/dev/null 2>&1; then
22290 ac_cv_header_stat_broken=yes
22292 ac_cv_header_stat_broken=no
22297 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22298 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
22299 if test $ac_cv_header_stat_broken = yes; then
22301 cat >>confdefs.h <<\_ACEOF
22302 @%:@define STAT_MACROS_BROKEN 1
22308 echo "$as_me:$LINENO: checking whether @%:@! works in shell scripts" >&5
22309 echo $ECHO_N "checking whether @%:@! works in shell scripts... $ECHO_C" >&6
22310 if test "${ac_cv_sys_interpreter+set}" = set; then
22311 echo $ECHO_N "(cached) $ECHO_C" >&6
22317 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
22318 if test $? -ne 69; then
22319 ac_cv_sys_interpreter=yes
22321 ac_cv_sys_interpreter=no
22325 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
22326 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
22327 interpval=$ac_cv_sys_interpreter
22329 if test $ac_cv_sys_interpreter = yes; then
22330 cat >>confdefs.h <<\_ACEOF
22331 @%:@define HAVE_HASH_BANG_EXEC 1
22336 if test "$ac_cv_func_lstat" = "no"; then
22337 echo "$as_me:$LINENO: checking for lstat" >&5
22338 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
22339 if test "${bash_cv_func_lstat+set}" = set; then
22340 echo $ECHO_N "(cached) $ECHO_C" >&6
22342 cat >conftest.$ac_ext <<_ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h. */
22349 #include <sys/types.h>
22350 #include <sys/stat.h>
22355 lstat(".",(struct stat *)0);
22360 rm -f conftest.$ac_objext conftest$ac_exeext
22361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22362 (eval $ac_link) 2>conftest.er1
22364 grep -v '^ *+' conftest.er1 >conftest.err
22366 cat conftest.err >&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } &&
22369 { ac_try='test -z "$ac_c_werror_flag"
22370 || test ! -s conftest.err'
22371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22372 (eval $ac_try) 2>&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); }; } &&
22376 { ac_try='test -s conftest$ac_exeext'
22377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378 (eval $ac_try) 2>&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); }; }; then
22382 bash_cv_func_lstat=yes
22384 echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22387 bash_cv_func_lstat=no
22389 rm -f conftest.err conftest.$ac_objext \
22390 conftest$ac_exeext conftest.$ac_ext
22392 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
22393 echo "${ECHO_T}$bash_cv_func_lstat" >&6
22394 if test $bash_cv_func_lstat = yes; then
22395 cat >>confdefs.h <<\_ACEOF
22396 @%:@define HAVE_LSTAT 1
22404 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
22405 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
22406 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22409 if test "$cross_compiling" = yes; then
22410 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
22411 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
22412 bash_cv_func_ctype_nonascii=no
22415 cat >conftest.$ac_ext <<_ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22422 #ifdef HAVE_LOCALE_H
22423 #include <locale.h>
22436 #ifdef HAVE_SETLOCALE
22437 /* We take a shot here. If that locale is not known, try the
22438 system default. We try this one because '\342' (226) is
22439 known to be a printable character in that locale. */
22440 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
22441 if (deflocale == 0)
22442 deflocale = setlocale(LC_ALL, "");
22449 exit (r1 == 0 || r2 == 0);
22453 rm -f conftest$ac_exeext
22454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22455 (eval $ac_link) 2>&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; }; then
22464 bash_cv_func_ctype_nonascii=yes
22466 echo "$as_me: program exited with status $ac_status" >&5
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22470 ( exit $ac_status )
22471 bash_cv_func_ctype_nonascii=no
22473 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22477 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
22478 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
22479 if test $bash_cv_func_ctype_nonascii = yes; then
22480 cat >>confdefs.h <<\_ACEOF
22481 @%:@define CTYPE_NON_ASCII 1
22486 echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
22487 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
22488 if test "${bash_cv_dup2_broken+set}" = set; then
22489 echo $ECHO_N "(cached) $ECHO_C" >&6
22491 if test "$cross_compiling" = yes; then
22492 { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
22493 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
22494 bash_cv_dup2_broken=no
22496 cat >conftest.$ac_ext <<_ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22503 #include <sys/types.h>
22508 fd1 = open("/dev/null", 2);
22509 if (fcntl(fd1, 2, 1) < 0)
22511 fd2 = dup2(fd1, 1);
22514 fl = fcntl(fd2, 1, 0);
22515 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
22520 rm -f conftest$ac_exeext
22521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22522 (eval $ac_link) 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527 (eval $ac_try) 2>&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); }; }; then
22531 bash_cv_dup2_broken=yes
22533 echo "$as_me: program exited with status $ac_status" >&5
22534 echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22537 ( exit $ac_status )
22538 bash_cv_dup2_broken=no
22540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22545 echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
22546 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
22547 if test $bash_cv_dup2_broken = yes; then
22548 cat >>confdefs.h <<\_ACEOF
22549 @%:@define DUP2_BROKEN 1
22555 echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
22556 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
22557 if test "${bash_cv_pgrp_pipe+set}" = set; then
22558 echo $ECHO_N "(cached) $ECHO_C" >&6
22560 if test "$cross_compiling" = yes; then
22561 { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
22562 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
22563 bash_cv_pgrp_pipe=no
22565 cat >conftest.$ac_ext <<_ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h. */
22572 #ifdef HAVE_UNISTD_H
22573 # include <unistd.h>
22577 # ifdef GETPGRP_VOID
22578 # define getpgID() getpgrp()
22580 # define getpgID() getpgrp(0)
22581 # define setpgid(x,y) setpgrp(x,y)
22583 int pid1, pid2, fds[2];
22587 switch (pid1 = fork()) {
22591 setpgid(0, getpid());
22594 setpgid(pid1, pid1);
22596 sleep(2); /* let first child die */
22601 switch (pid2 = fork()) {
22606 ok = getpgID() == pid1;
22607 write(fds[1], &ok, 1);
22610 setpgid(pid2, pid1);
22613 if (read(fds[0], &ok, 1) != 1)
22621 rm -f conftest$ac_exeext
22622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22623 (eval $ac_link) 2>&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; }; then
22632 bash_cv_pgrp_pipe=no
22634 echo "$as_me: program exited with status $ac_status" >&5
22635 echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22638 ( exit $ac_status )
22639 bash_cv_pgrp_pipe=yes
22641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22646 echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
22647 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
22648 if test $bash_cv_pgrp_pipe = yes; then
22649 cat >>confdefs.h <<\_ACEOF
22650 @%:@define PGRP_PIPE 1
22656 echo "$as_me:$LINENO: checking for type of signal functions" >&5
22657 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
22658 if test "${bash_cv_signal_vintage+set}" = set; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22662 cat >conftest.$ac_ext <<_ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 #include <signal.h>
22674 struct sigaction sa;
22675 sigemptyset(&ss); sigsuspend(&ss);
22676 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22677 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22683 rm -f conftest.$ac_objext conftest$ac_exeext
22684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22685 (eval $ac_link) 2>conftest.er1
22687 grep -v '^ *+' conftest.er1 >conftest.err
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } &&
22692 { ac_try='test -z "$ac_c_werror_flag"
22693 || test ! -s conftest.err'
22694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695 (eval $ac_try) 2>&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; } &&
22699 { ac_try='test -s conftest$ac_exeext'
22700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22701 (eval $ac_try) 2>&5
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); }; }; then
22705 bash_cv_signal_vintage=posix
22707 echo "$as_me: failed program was:" >&5
22708 sed 's/^/| /' conftest.$ac_ext >&5
22711 cat >conftest.$ac_ext <<_ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22717 #include <signal.h>
22722 int mask = sigmask(SIGINT);
22723 sigsetmask(mask); sigblock(mask); sigpause(mask);
22729 rm -f conftest.$ac_objext conftest$ac_exeext
22730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22731 (eval $ac_link) 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } &&
22738 { ac_try='test -z "$ac_c_werror_flag"
22739 || test ! -s conftest.err'
22740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741 (eval $ac_try) 2>&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); }; } &&
22745 { ac_try='test -s conftest$ac_exeext'
22746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747 (eval $ac_try) 2>&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); }; }; then
22751 bash_cv_signal_vintage=4.2bsd
22753 echo "$as_me: failed program was:" >&5
22754 sed 's/^/| /' conftest.$ac_ext >&5
22757 cat >conftest.$ac_ext <<_ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22764 #include <signal.h>
22765 RETSIGTYPE foo() { }
22770 int mask = sigmask(SIGINT);
22771 sigset(SIGINT, foo); sigrelse(SIGINT);
22772 sighold(SIGINT); sigpause(SIGINT);
22778 rm -f conftest.$ac_objext conftest$ac_exeext
22779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22780 (eval $ac_link) 2>conftest.er1
22782 grep -v '^ *+' conftest.er1 >conftest.err
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } &&
22787 { ac_try='test -z "$ac_c_werror_flag"
22788 || test ! -s conftest.err'
22789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790 (eval $ac_try) 2>&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; } &&
22794 { ac_try='test -s conftest$ac_exeext'
22795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796 (eval $ac_try) 2>&5
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); }; }; then
22800 bash_cv_signal_vintage=svr3
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22805 bash_cv_signal_vintage=v7
22808 rm -f conftest.err conftest.$ac_objext \
22809 conftest$ac_exeext conftest.$ac_ext
22812 rm -f conftest.err conftest.$ac_objext \
22813 conftest$ac_exeext conftest.$ac_ext
22816 rm -f conftest.err conftest.$ac_objext \
22817 conftest$ac_exeext conftest.$ac_ext
22821 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22822 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
22823 if test "$bash_cv_signal_vintage" = posix; then
22824 cat >>confdefs.h <<\_ACEOF
22825 @%:@define HAVE_POSIX_SIGNALS 1
22828 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22829 cat >>confdefs.h <<\_ACEOF
22830 @%:@define HAVE_BSD_SIGNALS 1
22833 elif test "$bash_cv_signal_vintage" = svr3; then
22834 cat >>confdefs.h <<\_ACEOF
22835 @%:@define HAVE_USG_SIGHOLD 1
22841 echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
22842 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
22843 if test "${bash_cv_sys_errlist+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22846 cat >conftest.$ac_ext <<_ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22856 extern char *sys_errlist[];
22857 extern int sys_nerr;
22858 char *msg = sys_errlist[sys_nerr - 1];
22863 rm -f conftest.$ac_objext conftest$ac_exeext
22864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22865 (eval $ac_link) 2>conftest.er1
22867 grep -v '^ *+' conftest.er1 >conftest.err
22869 cat conftest.err >&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } &&
22872 { ac_try='test -z "$ac_c_werror_flag"
22873 || test ! -s conftest.err'
22874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875 (eval $ac_try) 2>&5
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); }; } &&
22879 { ac_try='test -s conftest$ac_exeext'
22880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881 (eval $ac_try) 2>&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; }; then
22885 bash_cv_sys_errlist=yes
22887 echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22890 bash_cv_sys_errlist=no
22892 rm -f conftest.err conftest.$ac_objext \
22893 conftest$ac_exeext conftest.$ac_ext
22895 echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
22896 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
22897 if test $bash_cv_sys_errlist = yes; then
22898 cat >>confdefs.h <<\_ACEOF
22899 @%:@define HAVE_SYS_ERRLIST 1
22905 echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
22906 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
22907 if test "${bash_cv_sys_siglist+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22910 if test "$cross_compiling" = yes; then
22911 { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
22912 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
22913 bash_cv_sys_siglist=no
22915 cat >conftest.$ac_ext <<_ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22922 #include <sys/types.h>
22923 #include <signal.h>
22924 #ifdef HAVE_UNISTD_H
22925 #include <unistd.h>
22927 #ifndef SYS_SIGLIST_DECLARED
22928 extern char *sys_siglist[];
22932 char *msg = sys_siglist[2];
22936 rm -f conftest$ac_exeext
22937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22938 (eval $ac_link) 2>&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943 (eval $ac_try) 2>&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); }; }; then
22947 bash_cv_sys_siglist=yes
22949 echo "$as_me: program exited with status $ac_status" >&5
22950 echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22953 ( exit $ac_status )
22954 bash_cv_sys_siglist=no
22956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22960 echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
22961 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
22962 if test $bash_cv_sys_siglist = yes; then
22963 cat >>confdefs.h <<\_ACEOF
22964 @%:@define HAVE_SYS_SIGLIST 1
22969 echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
22970 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
22971 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
22972 echo $ECHO_N "(cached) $ECHO_C" >&6
22974 cat >conftest.$ac_ext <<_ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22981 #include <sys/types.h>
22982 #include <signal.h>
22983 #ifdef HAVE_UNISTD_H
22984 #include <unistd.h>
22989 char *msg = _sys_siglist[2];
22994 rm -f conftest.$ac_objext
22995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22996 (eval $ac_compile) 2>conftest.er1
22998 grep -v '^ *+' conftest.er1 >conftest.err
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } &&
23003 { ac_try='test -z "$ac_c_werror_flag"
23004 || test ! -s conftest.err'
23005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23006 (eval $ac_try) 2>&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); }; } &&
23010 { ac_try='test -s conftest.$ac_objext'
23011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23012 (eval $ac_try) 2>&5
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; }; then
23016 bash_cv_decl_under_sys_siglist=yes
23018 echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23021 bash_cv_decl_under_sys_siglist=no
23023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23025 echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
23026 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
23027 if test $bash_cv_decl_under_sys_siglist = yes; then
23028 cat >>confdefs.h <<\_ACEOF
23029 @%:@define UNDER_SYS_SIGLIST_DECLARED 1
23035 echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
23036 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
23037 if test "${bash_cv_under_sys_siglist+set}" = set; then
23038 echo $ECHO_N "(cached) $ECHO_C" >&6
23040 if test "$cross_compiling" = yes; then
23041 { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
23042 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
23043 bash_cv_under_sys_siglist=no
23045 cat >conftest.$ac_ext <<_ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h. */
23052 #include <sys/types.h>
23053 #include <signal.h>
23054 #ifdef HAVE_UNISTD_H
23055 #include <unistd.h>
23057 #ifndef UNDER_SYS_SIGLIST_DECLARED
23058 extern char *_sys_siglist[];
23062 char *msg = (char *)_sys_siglist[2];
23066 rm -f conftest$ac_exeext
23067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23068 (eval $ac_link) 2>&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073 (eval $ac_try) 2>&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; }; then
23077 bash_cv_under_sys_siglist=yes
23079 echo "$as_me: program exited with status $ac_status" >&5
23080 echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23083 ( exit $ac_status )
23084 bash_cv_under_sys_siglist=no
23086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23090 echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
23091 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
23092 if test $bash_cv_under_sys_siglist = yes; then
23093 cat >>confdefs.h <<\_ACEOF
23094 @%:@define HAVE_UNDER_SYS_SIGLIST 1
23100 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
23101 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
23102 if test "${bash_cv_void_sighandler+set}" = set; then
23103 echo $ECHO_N "(cached) $ECHO_C" >&6
23105 cat >conftest.$ac_ext <<_ACEOF
23108 cat confdefs.h >>conftest.$ac_ext
23109 cat >>conftest.$ac_ext <<_ACEOF
23110 /* end confdefs.h. */
23111 #include <sys/types.h>
23112 #include <signal.h>
23119 void (*signal ()) ();
23128 rm -f conftest.$ac_objext
23129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23130 (eval $ac_compile) 2>conftest.er1
23132 grep -v '^ *+' conftest.er1 >conftest.err
23134 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } &&
23137 { ac_try='test -z "$ac_c_werror_flag"
23138 || test ! -s conftest.err'
23139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23140 (eval $ac_try) 2>&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; } &&
23144 { ac_try='test -s conftest.$ac_objext'
23145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23146 (eval $ac_try) 2>&5
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); }; }; then
23150 bash_cv_void_sighandler=yes
23152 echo "$as_me: failed program was:" >&5
23153 sed 's/^/| /' conftest.$ac_ext >&5
23155 bash_cv_void_sighandler=no
23157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23159 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
23160 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
23161 if test $bash_cv_void_sighandler = yes; then
23162 cat >>confdefs.h <<\_ACEOF
23163 @%:@define VOID_SIGHANDLER 1
23170 echo "$as_me:$LINENO: checking for clock_t" >&5
23171 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
23172 if test "${bash_cv_type_clock_t+set}" = set; then
23173 echo $ECHO_N "(cached) $ECHO_C" >&6
23175 cat >conftest.$ac_ext <<_ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h. */
23181 #include <sys/types.h>
23183 #include <stdlib.h>
23184 #include <stddef.h>
23186 #if HAVE_INTTYPES_H
23187 #include <inttypes.h>
23189 #include <sys/times.h>
23192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23193 $EGREP "clock_t" >/dev/null 2>&1; then
23194 bash_cv_type_clock_t=yes
23196 bash_cv_type_clock_t=no
23202 echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
23203 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
23205 if test $bash_cv_type_clock_t = no; then
23206 cat >>confdefs.h <<_ACEOF
23207 @%:@define clock_t long
23214 echo "$as_me:$LINENO: checking for sigset_t" >&5
23215 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
23216 if test "${bash_cv_type_sigset_t+set}" = set; then
23217 echo $ECHO_N "(cached) $ECHO_C" >&6
23219 cat >conftest.$ac_ext <<_ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h. */
23225 #include <sys/types.h>
23227 #include <stdlib.h>
23228 #include <stddef.h>
23230 #if HAVE_INTTYPES_H
23231 #include <inttypes.h>
23233 #include <signal.h>
23236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23237 $EGREP "sigset_t" >/dev/null 2>&1; then
23238 bash_cv_type_sigset_t=yes
23240 bash_cv_type_sigset_t=no
23246 echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
23247 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
23249 if test $bash_cv_type_sigset_t = no; then
23250 cat >>confdefs.h <<_ACEOF
23251 @%:@define sigset_t int
23258 echo "$as_me:$LINENO: checking for quad_t" >&5
23259 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
23260 if test "${bash_cv_type_quad_t+set}" = set; then
23261 echo $ECHO_N "(cached) $ECHO_C" >&6
23263 cat >conftest.$ac_ext <<_ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h. */
23269 #include <sys/types.h>
23271 #include <stdlib.h>
23272 #include <stddef.h>
23274 #if HAVE_INTTYPES_H
23275 #include <inttypes.h>
23280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23281 $EGREP "quad_t" >/dev/null 2>&1; then
23282 bash_cv_type_quad_t=yes
23284 bash_cv_type_quad_t=no
23290 echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
23291 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
23292 if test $bash_cv_type_quad_t = yes; then
23293 cat >>confdefs.h <<\_ACEOF
23294 @%:@define HAVE_QUAD_T 1
23298 if test $bash_cv_type_quad_t = no; then
23299 cat >>confdefs.h <<_ACEOF
23300 @%:@define quad_t long
23307 echo "$as_me:$LINENO: checking for intmax_t" >&5
23308 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23309 if test "${bash_cv_type_intmax_t+set}" = set; then
23310 echo $ECHO_N "(cached) $ECHO_C" >&6
23312 cat >conftest.$ac_ext <<_ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h. */
23318 #include <sys/types.h>
23320 #include <stdlib.h>
23321 #include <stddef.h>
23323 #if HAVE_INTTYPES_H
23324 #include <inttypes.h>
23329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23330 $EGREP "intmax_t" >/dev/null 2>&1; then
23331 bash_cv_type_intmax_t=yes
23333 bash_cv_type_intmax_t=no
23339 echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
23340 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
23342 if test $bash_cv_type_intmax_t = no; then
23343 cat >>confdefs.h <<_ACEOF
23344 @%:@define intmax_t $bash_cv_type_long_long
23351 echo "$as_me:$LINENO: checking for uintmax_t" >&5
23352 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
23353 if test "${bash_cv_type_uintmax_t+set}" = set; then
23354 echo $ECHO_N "(cached) $ECHO_C" >&6
23356 cat >conftest.$ac_ext <<_ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23362 #include <sys/types.h>
23364 #include <stdlib.h>
23365 #include <stddef.h>
23367 #if HAVE_INTTYPES_H
23368 #include <inttypes.h>
23373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23374 $EGREP "uintmax_t" >/dev/null 2>&1; then
23375 bash_cv_type_uintmax_t=yes
23377 bash_cv_type_uintmax_t=no
23383 echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
23384 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
23386 if test $bash_cv_type_uintmax_t = no; then
23387 cat >>confdefs.h <<_ACEOF
23388 @%:@define uintmax_t $bash_cv_type_unsigned_long_long
23393 if test "$ac_cv_header_sys_socket_h" = "yes"; then
23396 echo "$as_me:$LINENO: checking for socklen_t" >&5
23397 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23398 if test "${bash_cv_type_socklen_t+set}" = set; then
23399 echo $ECHO_N "(cached) $ECHO_C" >&6
23401 cat >conftest.$ac_ext <<_ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23407 #include <sys/types.h>
23409 #include <stdlib.h>
23410 #include <stddef.h>
23412 #if HAVE_INTTYPES_H
23413 #include <inttypes.h>
23415 #include <sys/socket.h>
23418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23419 $EGREP "socklen_t" >/dev/null 2>&1; then
23420 bash_cv_type_socklen_t=yes
23422 bash_cv_type_socklen_t=no
23428 echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
23429 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
23430 if test $bash_cv_type_socklen_t = yes; then
23431 cat >>confdefs.h <<\_ACEOF
23432 @%:@define HAVE_SOCKLEN_T 1
23436 if test $bash_cv_type_socklen_t = no; then
23437 cat >>confdefs.h <<_ACEOF
23438 @%:@define socklen_t int
23444 echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
23445 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
23446 if test "${bash_cv_type_rlimit+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23449 cat >conftest.$ac_ext <<_ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 #include <sys/types.h>
23456 #include <sys/resource.h>
23465 rm -f conftest.$ac_objext
23466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23467 (eval $ac_compile) 2>conftest.er1
23469 grep -v '^ *+' conftest.er1 >conftest.err
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } &&
23474 { ac_try='test -z "$ac_c_werror_flag"
23475 || test ! -s conftest.err'
23476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477 (eval $ac_try) 2>&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); }; } &&
23481 { ac_try='test -s conftest.$ac_objext'
23482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23483 (eval $ac_try) 2>&5
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); }; }; then
23487 bash_cv_type_rlimit=rlim_t
23489 echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23493 if test "$cross_compiling" = yes; then
23494 { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
23495 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
23496 bash_cv_type_rlimit=long
23498 cat >conftest.$ac_ext <<_ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h. */
23505 #include <sys/types.h>
23506 #include <sys/time.h>
23507 #include <sys/resource.h>
23512 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
23518 rm -f conftest$ac_exeext
23519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23520 (eval $ac_link) 2>&5
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525 (eval $ac_try) 2>&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; }; then
23529 bash_cv_type_rlimit=quad_t
23531 echo "$as_me: program exited with status $ac_status" >&5
23532 echo "$as_me: failed program was:" >&5
23533 sed 's/^/| /' conftest.$ac_ext >&5
23535 ( exit $ac_status )
23536 bash_cv_type_rlimit=long
23538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23545 echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
23546 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
23547 if test $bash_cv_type_rlimit = quad_t; then
23548 cat >>confdefs.h <<\_ACEOF
23549 @%:@define RLIMTYPE quad_t
23552 elif test $bash_cv_type_rlimit = rlim_t; then
23553 cat >>confdefs.h <<\_ACEOF
23554 @%:@define RLIMTYPE rlim_t
23561 echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
23562 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
23563 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23566 cat >conftest.$ac_ext <<_ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23573 #include <sys/types.h>
23574 #include <termios.h>
23580 static struct termios ac_aggr;
23581 if (ac_aggr.c_line)
23587 rm -f conftest.$ac_objext
23588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23589 (eval $ac_compile) 2>conftest.er1
23591 grep -v '^ *+' conftest.er1 >conftest.err
23593 cat conftest.err >&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); } &&
23596 { ac_try='test -z "$ac_c_werror_flag"
23597 || test ! -s conftest.err'
23598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23599 (eval $ac_try) 2>&5
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); }; } &&
23603 { ac_try='test -s conftest.$ac_objext'
23604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23605 (eval $ac_try) 2>&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); }; }; then
23609 ac_cv_member_struct_termios_c_line=yes
23611 echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23614 cat >conftest.$ac_ext <<_ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23621 #include <sys/types.h>
23622 #include <termios.h>
23628 static struct termios ac_aggr;
23629 if (sizeof ac_aggr.c_line)
23635 rm -f conftest.$ac_objext
23636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23637 (eval $ac_compile) 2>conftest.er1
23639 grep -v '^ *+' conftest.er1 >conftest.err
23641 cat conftest.err >&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); } &&
23644 { ac_try='test -z "$ac_c_werror_flag"
23645 || test ! -s conftest.err'
23646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23647 (eval $ac_try) 2>&5
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); }; } &&
23651 { ac_try='test -s conftest.$ac_objext'
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; }; then
23657 ac_cv_member_struct_termios_c_line=yes
23659 echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23662 ac_cv_member_struct_termios_c_line=no
23664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23668 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
23669 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
23670 if test $ac_cv_member_struct_termios_c_line = yes; then
23671 cat >>confdefs.h <<\_ACEOF
23672 @%:@define TERMIOS_LDISC 1
23679 echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
23680 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
23681 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
23682 echo $ECHO_N "(cached) $ECHO_C" >&6
23684 cat >conftest.$ac_ext <<_ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h. */
23691 #include <sys/types.h>
23692 #include <termio.h>
23698 static struct termio ac_aggr;
23699 if (ac_aggr.c_line)
23705 rm -f conftest.$ac_objext
23706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23707 (eval $ac_compile) 2>conftest.er1
23709 grep -v '^ *+' conftest.er1 >conftest.err
23711 cat conftest.err >&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } &&
23714 { ac_try='test -z "$ac_c_werror_flag"
23715 || test ! -s conftest.err'
23716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717 (eval $ac_try) 2>&5
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); }; } &&
23721 { ac_try='test -s conftest.$ac_objext'
23722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723 (eval $ac_try) 2>&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); }; }; then
23727 ac_cv_member_struct_termio_c_line=yes
23729 echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23732 cat >conftest.$ac_ext <<_ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23739 #include <sys/types.h>
23740 #include <termio.h>
23746 static struct termio ac_aggr;
23747 if (sizeof ac_aggr.c_line)
23753 rm -f conftest.$ac_objext
23754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23755 (eval $ac_compile) 2>conftest.er1
23757 grep -v '^ *+' conftest.er1 >conftest.err
23759 cat conftest.err >&5
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } &&
23762 { ac_try='test -z "$ac_c_werror_flag"
23763 || test ! -s conftest.err'
23764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23765 (eval $ac_try) 2>&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); }; } &&
23769 { ac_try='test -s conftest.$ac_objext'
23770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); }; }; then
23775 ac_cv_member_struct_termio_c_line=yes
23777 echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23780 ac_cv_member_struct_termio_c_line=no
23782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23786 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
23787 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
23788 if test $ac_cv_member_struct_termio_c_line = yes; then
23789 cat >>confdefs.h <<\_ACEOF
23790 @%:@define TERMIO_LDISC 1
23797 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
23798 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
23799 if test "${bash_cv_dirent_has_dino+set}" = set; then
23800 echo $ECHO_N "(cached) $ECHO_C" >&6
23802 cat >conftest.$ac_ext <<_ACEOF
23805 cat confdefs.h >>conftest.$ac_ext
23806 cat >>conftest.$ac_ext <<_ACEOF
23807 /* end confdefs.h. */
23810 #include <sys/types.h>
23811 #ifdef HAVE_UNISTD_H
23812 # include <unistd.h>
23813 #endif /* HAVE_UNISTD_H */
23814 #if defined(HAVE_DIRENT_H)
23815 # include <dirent.h>
23817 # define dirent direct
23818 # ifdef HAVE_SYS_NDIR_H
23819 # include <sys/ndir.h>
23820 # endif /* SYSNDIR */
23821 # ifdef HAVE_SYS_DIR_H
23822 # include <sys/dir.h>
23823 # endif /* SYSDIR */
23824 # ifdef HAVE_NDIR_H
23827 #endif /* HAVE_DIRENT_H */
23833 struct dirent d; int z; z = d.d_ino;
23839 rm -f conftest.$ac_objext
23840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23841 (eval $ac_compile) 2>conftest.er1
23843 grep -v '^ *+' conftest.er1 >conftest.err
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } &&
23848 { ac_try='test -z "$ac_c_werror_flag"
23849 || test ! -s conftest.err'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; } &&
23855 { ac_try='test -s conftest.$ac_objext'
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; }; then
23861 bash_cv_dirent_has_dino=yes
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23866 bash_cv_dirent_has_dino=no
23868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23871 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
23872 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
23873 if test $bash_cv_dirent_has_dino = yes; then
23874 cat >>confdefs.h <<\_ACEOF
23875 @%:@define HAVE_STRUCT_DIRENT_D_INO 1
23881 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
23882 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
23883 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
23884 echo $ECHO_N "(cached) $ECHO_C" >&6
23886 cat >conftest.$ac_ext <<_ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h. */
23894 #include <sys/types.h>
23895 #ifdef HAVE_UNISTD_H
23896 # include <unistd.h>
23897 #endif /* HAVE_UNISTD_H */
23898 #if defined(HAVE_DIRENT_H)
23899 # include <dirent.h>
23901 # define dirent direct
23902 # ifdef HAVE_SYS_NDIR_H
23903 # include <sys/ndir.h>
23904 # endif /* SYSNDIR */
23905 # ifdef HAVE_SYS_DIR_H
23906 # include <sys/dir.h>
23907 # endif /* SYSDIR */
23908 # ifdef HAVE_NDIR_H
23911 #endif /* HAVE_DIRENT_H */
23917 struct dirent d; int z; z = d.d_fileno;
23923 rm -f conftest.$ac_objext
23924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23925 (eval $ac_compile) 2>conftest.er1
23927 grep -v '^ *+' conftest.er1 >conftest.err
23929 cat conftest.err >&5
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); } &&
23932 { ac_try='test -z "$ac_c_werror_flag"
23933 || test ! -s conftest.err'
23934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23935 (eval $ac_try) 2>&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); }; } &&
23939 { ac_try='test -s conftest.$ac_objext'
23940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941 (eval $ac_try) 2>&5
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; }; then
23945 bash_cv_dirent_has_d_fileno=yes
23947 echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23950 bash_cv_dirent_has_d_fileno=no
23952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23955 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
23956 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
23957 if test $bash_cv_dirent_has_d_fileno = yes; then
23958 cat >>confdefs.h <<\_ACEOF
23959 @%:@define HAVE_STRUCT_DIRENT_D_FILENO 1
23965 echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
23966 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
23967 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
23968 echo $ECHO_N "(cached) $ECHO_C" >&6
23970 cat >conftest.$ac_ext <<_ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23978 #include <sys/types.h>
23979 #ifdef HAVE_UNISTD_H
23980 # include <unistd.h>
23981 #endif /* HAVE_UNISTD_H */
23982 #if defined(HAVE_DIRENT_H)
23983 # include <dirent.h>
23985 # define dirent direct
23986 # ifdef HAVE_SYS_NDIR_H
23987 # include <sys/ndir.h>
23988 # endif /* SYSNDIR */
23989 # ifdef HAVE_SYS_DIR_H
23990 # include <sys/dir.h>
23991 # endif /* SYSDIR */
23992 # ifdef HAVE_NDIR_H
23995 #endif /* HAVE_DIRENT_H */
24001 struct dirent d; int z; z = d.d_namlen;
24007 rm -f conftest.$ac_objext
24008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24009 (eval $ac_compile) 2>conftest.er1
24011 grep -v '^ *+' conftest.er1 >conftest.err
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } &&
24016 { ac_try='test -z "$ac_c_werror_flag"
24017 || test ! -s conftest.err'
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; } &&
24023 { ac_try='test -s conftest.$ac_objext'
24024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24025 (eval $ac_try) 2>&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); }; }; then
24029 bash_cv_dirent_has_d_namlen=yes
24031 echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24034 bash_cv_dirent_has_d_namlen=no
24036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24039 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
24040 echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6
24041 if test $bash_cv_dirent_has_d_namlen = yes; then
24042 cat >>confdefs.h <<\_ACEOF
24043 @%:@define HAVE_STRUCT_DIRENT_D_NAMLEN 1
24048 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
24049 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
24050 if test "${bash_cv_struct_winsize_header+set}" = set; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24053 cat >conftest.$ac_ext <<_ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24059 #include <sys/types.h>
24060 #include <sys/ioctl.h>
24069 rm -f conftest.$ac_objext
24070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24071 (eval $ac_compile) 2>conftest.er1
24073 grep -v '^ *+' conftest.er1 >conftest.err
24075 cat conftest.err >&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); } &&
24078 { ac_try='test -z "$ac_c_werror_flag"
24079 || test ! -s conftest.err'
24080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24081 (eval $ac_try) 2>&5
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); }; } &&
24085 { ac_try='test -s conftest.$ac_objext'
24086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087 (eval $ac_try) 2>&5
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); }; }; then
24091 bash_cv_struct_winsize_header=ioctl_h
24093 echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24096 cat >conftest.$ac_ext <<_ACEOF
24099 cat confdefs.h >>conftest.$ac_ext
24100 cat >>conftest.$ac_ext <<_ACEOF
24101 /* end confdefs.h. */
24102 #include <sys/types.h>
24103 #include <termios.h>
24112 rm -f conftest.$ac_objext
24113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24114 (eval $ac_compile) 2>conftest.er1
24116 grep -v '^ *+' conftest.er1 >conftest.err
24118 cat conftest.err >&5
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); } &&
24121 { ac_try='test -z "$ac_c_werror_flag"
24122 || test ! -s conftest.err'
24123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124 (eval $ac_try) 2>&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; } &&
24128 { ac_try='test -s conftest.$ac_objext'
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; }; then
24134 bash_cv_struct_winsize_header=termios_h
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24139 bash_cv_struct_winsize_header=other
24141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24147 if test $bash_cv_struct_winsize_header = ioctl_h; then
24148 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
24149 echo "${ECHO_T}sys/ioctl.h" >&6
24150 cat >>confdefs.h <<\_ACEOF
24151 @%:@define STRUCT_WINSIZE_IN_SYS_IOCTL 1
24154 elif test $bash_cv_struct_winsize_header = termios_h; then
24155 echo "$as_me:$LINENO: result: termios.h" >&5
24156 echo "${ECHO_T}termios.h" >&6
24157 cat >>confdefs.h <<\_ACEOF
24158 @%:@define STRUCT_WINSIZE_IN_TERMIOS 1
24162 echo "$as_me:$LINENO: result: not found" >&5
24163 echo "${ECHO_T}not found" >&6
24166 echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
24167 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
24168 if test "${bash_cv_struct_timeval+set}" = set; then
24169 echo $ECHO_N "(cached) $ECHO_C" >&6
24172 cat >conftest.$ac_ext <<_ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h. */
24178 #include <sys/time.h>
24181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24182 $EGREP "struct timeval" >/dev/null 2>&1; then
24183 bash_cv_struct_timeval=yes
24185 cat >conftest.$ac_ext <<_ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24195 $EGREP "struct timeval" >/dev/null 2>&1; then
24196 bash_cv_struct_timeval=yes
24198 bash_cv_struct_timeval=no
24208 echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
24209 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
24210 if test $bash_cv_struct_timeval = yes; then
24211 cat >>confdefs.h <<\_ACEOF
24212 @%:@define HAVE_TIMEVAL 1
24217 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
24218 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
24219 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
24220 echo $ECHO_N "(cached) $ECHO_C" >&6
24222 cat >conftest.$ac_ext <<_ACEOF
24225 cat confdefs.h >>conftest.$ac_ext
24226 cat >>conftest.$ac_ext <<_ACEOF
24227 /* end confdefs.h. */
24228 $ac_includes_default
24232 static struct stat ac_aggr;
24233 if (ac_aggr.st_blocks)
24239 rm -f conftest.$ac_objext
24240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24241 (eval $ac_compile) 2>conftest.er1
24243 grep -v '^ *+' conftest.er1 >conftest.err
24245 cat conftest.err >&5
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); } &&
24248 { ac_try='test -z "$ac_c_werror_flag"
24249 || test ! -s conftest.err'
24250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251 (eval $ac_try) 2>&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); }; } &&
24255 { ac_try='test -s conftest.$ac_objext'
24256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 (eval $ac_try) 2>&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; }; then
24261 ac_cv_member_struct_stat_st_blocks=yes
24263 echo "$as_me: failed program was:" >&5
24264 sed 's/^/| /' conftest.$ac_ext >&5
24266 cat >conftest.$ac_ext <<_ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 $ac_includes_default
24276 static struct stat ac_aggr;
24277 if (sizeof ac_aggr.st_blocks)
24283 rm -f conftest.$ac_objext
24284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24285 (eval $ac_compile) 2>conftest.er1
24287 grep -v '^ *+' conftest.er1 >conftest.err
24289 cat conftest.err >&5
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
24292 { ac_try='test -z "$ac_c_werror_flag"
24293 || test ! -s conftest.err'
24294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24295 (eval $ac_try) 2>&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; } &&
24299 { ac_try='test -s conftest.$ac_objext'
24300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301 (eval $ac_try) 2>&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); }; }; then
24305 ac_cv_member_struct_stat_st_blocks=yes
24307 echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24310 ac_cv_member_struct_stat_st_blocks=no
24312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24316 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
24317 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
24318 if test $ac_cv_member_struct_stat_st_blocks = yes; then
24320 cat >>confdefs.h <<_ACEOF
24321 @%:@define HAVE_STRUCT_STAT_ST_BLOCKS 1
24327 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24328 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24329 if test "${ac_cv_struct_tm+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24332 cat >conftest.$ac_ext <<_ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24338 #include <sys/types.h>
24344 struct tm *tp; tp->tm_sec;
24349 rm -f conftest.$ac_objext
24350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24351 (eval $ac_compile) 2>conftest.er1
24353 grep -v '^ *+' conftest.er1 >conftest.err
24355 cat conftest.err >&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } &&
24358 { ac_try='test -z "$ac_c_werror_flag"
24359 || test ! -s conftest.err'
24360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361 (eval $ac_try) 2>&5
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; } &&
24365 { ac_try='test -s conftest.$ac_objext'
24366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24367 (eval $ac_try) 2>&5
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); }; }; then
24371 ac_cv_struct_tm=time.h
24373 echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24376 ac_cv_struct_tm=sys/time.h
24378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24380 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24381 echo "${ECHO_T}$ac_cv_struct_tm" >&6
24382 if test $ac_cv_struct_tm = sys/time.h; then
24384 cat >>confdefs.h <<\_ACEOF
24385 @%:@define TM_IN_SYS_TIME 1
24390 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24391 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
24392 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24393 echo $ECHO_N "(cached) $ECHO_C" >&6
24395 cat >conftest.$ac_ext <<_ACEOF
24398 cat confdefs.h >>conftest.$ac_ext
24399 cat >>conftest.$ac_ext <<_ACEOF
24400 /* end confdefs.h. */
24401 #include <sys/types.h>
24402 #include <$ac_cv_struct_tm>
24408 static struct tm ac_aggr;
24409 if (ac_aggr.tm_zone)
24415 rm -f conftest.$ac_objext
24416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24417 (eval $ac_compile) 2>conftest.er1
24419 grep -v '^ *+' conftest.er1 >conftest.err
24421 cat conftest.err >&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } &&
24424 { ac_try='test -z "$ac_c_werror_flag"
24425 || test ! -s conftest.err'
24426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24427 (eval $ac_try) 2>&5
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); }; } &&
24431 { ac_try='test -s conftest.$ac_objext'
24432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24433 (eval $ac_try) 2>&5
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); }; }; then
24437 ac_cv_member_struct_tm_tm_zone=yes
24439 echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24442 cat >conftest.$ac_ext <<_ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h. */
24448 #include <sys/types.h>
24449 #include <$ac_cv_struct_tm>
24455 static struct tm ac_aggr;
24456 if (sizeof ac_aggr.tm_zone)
24462 rm -f conftest.$ac_objext
24463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24464 (eval $ac_compile) 2>conftest.er1
24466 grep -v '^ *+' conftest.er1 >conftest.err
24468 cat conftest.err >&5
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } &&
24471 { ac_try='test -z "$ac_c_werror_flag"
24472 || test ! -s conftest.err'
24473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24474 (eval $ac_try) 2>&5
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); }; } &&
24478 { ac_try='test -s conftest.$ac_objext'
24479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480 (eval $ac_try) 2>&5
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; }; then
24484 ac_cv_member_struct_tm_tm_zone=yes
24486 echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24489 ac_cv_member_struct_tm_tm_zone=no
24491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24495 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24496 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
24497 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24499 cat >>confdefs.h <<_ACEOF
24500 @%:@define HAVE_STRUCT_TM_TM_ZONE 1
24506 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24508 cat >>confdefs.h <<\_ACEOF
24509 @%:@define HAVE_TM_ZONE 1
24513 echo "$as_me:$LINENO: checking for tzname" >&5
24514 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
24515 if test "${ac_cv_var_tzname+set}" = set; then
24516 echo $ECHO_N "(cached) $ECHO_C" >&6
24518 cat >conftest.$ac_ext <<_ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h. */
24525 #ifndef tzname /* For SGI. */
24526 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
24537 rm -f conftest.$ac_objext conftest$ac_exeext
24538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24539 (eval $ac_link) 2>conftest.er1
24541 grep -v '^ *+' conftest.er1 >conftest.err
24543 cat conftest.err >&5
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); } &&
24546 { ac_try='test -z "$ac_c_werror_flag"
24547 || test ! -s conftest.err'
24548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24549 (eval $ac_try) 2>&5
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); }; } &&
24553 { ac_try='test -s conftest$ac_exeext'
24554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24555 (eval $ac_try) 2>&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; }; then
24559 ac_cv_var_tzname=yes
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24564 ac_cv_var_tzname=no
24566 rm -f conftest.err conftest.$ac_objext \
24567 conftest$ac_exeext conftest.$ac_ext
24569 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24570 echo "${ECHO_T}$ac_cv_var_tzname" >&6
24571 if test $ac_cv_var_tzname = yes; then
24573 cat >>confdefs.h <<\_ACEOF
24574 @%:@define HAVE_TZNAME 1
24580 echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
24581 echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6
24582 if test "${bash_cv_struct_timezone+set}" = set; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24586 cat >conftest.$ac_ext <<_ACEOF
24589 cat confdefs.h >>conftest.$ac_ext
24590 cat >>conftest.$ac_ext <<_ACEOF
24591 /* end confdefs.h. */
24592 #include <sys/time.h>
24595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24596 $EGREP "struct timezone" >/dev/null 2>&1; then
24597 bash_cv_struct_timezone=yes
24599 cat >conftest.$ac_ext <<_ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h. */
24608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24609 $EGREP "struct timezone" >/dev/null 2>&1; then
24610 bash_cv_struct_timezone=yes
24612 bash_cv_struct_timezone=no
24622 echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
24623 echo "${ECHO_T}$bash_cv_struct_timezone" >&6
24624 if test $bash_cv_struct_timezone = yes; then
24625 cat >>confdefs.h <<\_ACEOF
24626 @%:@define HAVE_STRUCT_TIMEZONE 1
24632 echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
24633 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
24634 if test "${bash_cv_have_strsignal+set}" = set; then
24635 echo $ECHO_N "(cached) $ECHO_C" >&6
24637 cat >conftest.$ac_ext <<_ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h. */
24643 #include <sys/types.h>
24644 #include <signal.h>
24648 char *s = (char *)strsignal(2);
24653 rm -f conftest.$ac_objext conftest$ac_exeext
24654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24655 (eval $ac_link) 2>conftest.er1
24657 grep -v '^ *+' conftest.er1 >conftest.err
24659 cat conftest.err >&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } &&
24662 { ac_try='test -z "$ac_c_werror_flag"
24663 || test ! -s conftest.err'
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; } &&
24669 { ac_try='test -s conftest$ac_exeext'
24670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671 (eval $ac_try) 2>&5
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); }; }; then
24675 bash_cv_have_strsignal=yes
24677 echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24680 bash_cv_have_strsignal=no
24682 rm -f conftest.err conftest.$ac_objext \
24683 conftest$ac_exeext conftest.$ac_ext
24686 echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
24687 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
24688 if test $bash_cv_have_strsignal = yes; then
24689 cat >>confdefs.h <<\_ACEOF
24690 @%:@define HAVE_STRSIGNAL 1
24695 echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
24696 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
24697 if test "${bash_cv_opendir_not_robust+set}" = set; then
24698 echo $ECHO_N "(cached) $ECHO_C" >&6
24700 if test "$cross_compiling" = yes; then
24701 { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
24702 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
24703 bash_cv_opendir_not_robust=no
24706 cat >conftest.$ac_ext <<_ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24714 #include <sys/types.h>
24716 #ifdef HAVE_UNISTD_H
24717 # include <unistd.h>
24718 #endif /* HAVE_UNISTD_H */
24719 #if defined(HAVE_DIRENT_H)
24720 # include <dirent.h>
24722 # define dirent direct
24723 # ifdef HAVE_SYS_NDIR_H
24724 # include <sys/ndir.h>
24725 # endif /* SYSNDIR */
24726 # ifdef HAVE_SYS_DIR_H
24727 # include <sys/dir.h>
24728 # endif /* SYSDIR */
24729 # ifdef HAVE_NDIR_H
24732 #endif /* HAVE_DIRENT_H */
24737 err = mkdir("/tmp/bash-aclocal", 0700);
24742 unlink("/tmp/bash-aclocal/not_a_directory");
24743 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
24744 write(fd, "\n", 1);
24746 dir = opendir("/tmp/bash-aclocal/not_a_directory");
24747 unlink("/tmp/bash-aclocal/not_a_directory");
24748 rmdir("/tmp/bash-aclocal");
24752 rm -f conftest$ac_exeext
24753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24754 (eval $ac_link) 2>&5
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759 (eval $ac_try) 2>&5
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); }; }; then
24763 bash_cv_opendir_not_robust=yes
24765 echo "$as_me: program exited with status $ac_status" >&5
24766 echo "$as_me: failed program was:" >&5
24767 sed 's/^/| /' conftest.$ac_ext >&5
24769 ( exit $ac_status )
24770 bash_cv_opendir_not_robust=no
24772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24776 echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
24777 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
24778 if test $bash_cv_opendir_not_robust = yes; then
24779 cat >>confdefs.h <<\_ACEOF
24780 @%:@define OPENDIR_NOT_ROBUST 1
24785 echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
24786 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
24787 if test "${bash_cv_ulimit_maxfds+set}" = set; then
24788 echo $ECHO_N "(cached) $ECHO_C" >&6
24790 if test "$cross_compiling" = yes; then
24791 { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
24792 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
24793 bash_cv_ulimit_maxfds=no
24796 cat >conftest.$ac_ext <<_ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24805 long maxfds = ulimit(4, 0L);
24806 exit (maxfds == -1L);
24810 rm -f conftest$ac_exeext
24811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24812 (eval $ac_link) 2>&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24817 (eval $ac_try) 2>&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); }; }; then
24821 bash_cv_ulimit_maxfds=yes
24823 echo "$as_me: program exited with status $ac_status" >&5
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 ( exit $ac_status )
24828 bash_cv_ulimit_maxfds=no
24830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24834 echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
24835 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
24836 if test $bash_cv_ulimit_maxfds = yes; then
24837 cat >>confdefs.h <<\_ACEOF
24838 @%:@define ULIMIT_MAXFDS 1
24843 echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
24844 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
24845 if test "${bash_cv_getenv_redef+set}" = set; then
24846 echo $ECHO_N "(cached) $ECHO_C" >&6
24848 if test "$cross_compiling" = yes; then
24849 { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
24850 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
24851 bash_cv_getenv_redef=yes
24854 cat >conftest.$ac_ext <<_ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h. */
24861 #ifdef HAVE_UNISTD_H
24862 # include <unistd.h>
24871 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
24875 #endif /* !__linux__ && !__bsdi__ && !convex */
24882 /* The next allows this program to run, but does not allow bash to link
24883 when it redefines getenv. I'm not really interested in figuring out
24888 s = getenv("ABCDE");
24889 exit(s == 0); /* force optimizer to leave getenv in */
24893 rm -f conftest$ac_exeext
24894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24895 (eval $ac_link) 2>&5
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900 (eval $ac_try) 2>&5
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; }; then
24904 bash_cv_getenv_redef=yes
24906 echo "$as_me: program exited with status $ac_status" >&5
24907 echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24910 ( exit $ac_status )
24911 bash_cv_getenv_redef=no
24913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24917 echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
24918 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
24919 if test $bash_cv_getenv_redef = yes; then
24920 cat >>confdefs.h <<\_ACEOF
24921 @%:@define CAN_REDEFINE_GETENV 1
24926 if test "$ac_cv_func_getcwd" = "yes"; then
24927 echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5
24928 echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6
24929 if test "${bash_cv_getcwd_malloc+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24932 if test "$cross_compiling" = yes; then
24933 { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
24934 echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
24935 bash_cv_getcwd_malloc=no
24938 cat >conftest.$ac_ext <<_ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24946 #ifdef HAVE_UNISTD_H
24947 #include <unistd.h>
24953 xpwd = getcwd(0, 0);
24958 rm -f conftest$ac_exeext
24959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24960 (eval $ac_link) 2>&5
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965 (eval $ac_try) 2>&5
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; }; then
24969 bash_cv_getcwd_malloc=yes
24971 echo "$as_me: program exited with status $ac_status" >&5
24972 echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24975 ( exit $ac_status )
24976 bash_cv_getcwd_malloc=no
24978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24982 echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
24983 echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6
24984 if test $bash_cv_getcwd_malloc = no; then
24985 cat >>confdefs.h <<\_ACEOF
24986 @%:@define GETCWD_BROKEN 1
24989 case $LIB@&t@OBJS in
24990 "getcwd.$ac_objext" | \
24991 *" getcwd.$ac_objext" | \
24992 "getcwd.$ac_objext "* | \
24993 *" getcwd.$ac_objext "* ) ;;
24994 *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext" ;;
25001 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
25002 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
25003 if test "${bash_cv_func_sigsetjmp+set}" = set; then
25004 echo $ECHO_N "(cached) $ECHO_C" >&6
25006 if test "$cross_compiling" = yes; then
25007 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
25008 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
25009 bash_cv_func_sigsetjmp=missing
25012 cat >conftest.$ac_ext <<_ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h. */
25019 #ifdef HAVE_UNISTD_H
25020 #include <unistd.h>
25022 #include <sys/types.h>
25023 #include <signal.h>
25024 #include <setjmp.h>
25028 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
25033 sigset_t set, oset;
25038 sigemptyset(&oset);
25039 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
25040 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
25043 code = sigsetjmp(xx, 1);
25045 exit(0); /* could get sigmask and compare to oset here. */
25048 sigaddset(&set, SIGINT);
25049 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
25051 /* and siglongjmp */
25052 siglongjmp(xx, 10);
25057 rm -f conftest$ac_exeext
25058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25059 (eval $ac_link) 2>&5
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; }; then
25068 bash_cv_func_sigsetjmp=present
25070 echo "$as_me: program exited with status $ac_status" >&5
25071 echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25074 ( exit $ac_status )
25075 bash_cv_func_sigsetjmp=missing
25077 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25081 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
25082 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
25083 if test $bash_cv_func_sigsetjmp = present; then
25084 cat >>confdefs.h <<\_ACEOF
25085 @%:@define HAVE_POSIX_SIGSETJMP 1
25091 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
25092 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
25093 if test "${bash_cv_func_strcoll_broken+set}" = set; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25096 if test "$cross_compiling" = yes; then
25097 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
25098 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
25099 bash_cv_func_strcoll_broken=no
25102 cat >conftest.$ac_ext <<_ACEOF
25105 cat confdefs.h >>conftest.$ac_ext
25106 cat >>conftest.$ac_ext <<_ACEOF
25107 /* end confdefs.h. */
25110 #if defined (HAVE_LOCALE_H)
25111 #include <locale.h>
25119 char *deflocale, *defcoll;
25121 #ifdef HAVE_SETLOCALE
25122 deflocale = setlocale(LC_ALL, "");
25123 defcoll = setlocale(LC_COLLATE, "");
25126 #ifdef HAVE_STRCOLL
25127 /* These two values are taken from tests/glob-test. */
25128 r1 = strcoll("abd", "aXd");
25132 r2 = strcmp("abd", "aXd");
25134 /* These two should both be greater than 0. It is permissible for
25135 a system to return different values, as long as the sign is the
25138 /* Exit with 1 (failure) if these two values are both > 0, since
25139 this tests whether strcoll(3) is broken with respect to strcmp(3)
25140 in the default locale. */
25141 exit (r1 > 0 && r2 > 0);
25145 rm -f conftest$ac_exeext
25146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25147 (eval $ac_link) 2>&5
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25152 (eval $ac_try) 2>&5
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); }; }; then
25156 bash_cv_func_strcoll_broken=yes
25158 echo "$as_me: program exited with status $ac_status" >&5
25159 echo "$as_me: failed program was:" >&5
25160 sed 's/^/| /' conftest.$ac_ext >&5
25162 ( exit $ac_status )
25163 bash_cv_func_strcoll_broken=no
25165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25169 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
25170 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
25171 if test $bash_cv_func_strcoll_broken = yes; then
25172 cat >>confdefs.h <<\_ACEOF
25173 @%:@define STRCOLL_BROKEN 1
25180 if test "$ac_cv_func_putenv" = "yes"; then
25184 echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
25185 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
25186 if test "${bash_cv_std_putenv+set}" = set; then
25187 echo $ECHO_N "(cached) $ECHO_C" >&6
25189 cat >conftest.$ac_ext <<_ACEOF
25192 cat confdefs.h >>conftest.$ac_ext
25193 cat >>conftest.$ac_ext <<_ACEOF
25194 /* end confdefs.h. */
25197 #include <stdlib.h>
25198 #include <stddef.h>
25206 extern int putenv (char *);
25208 extern int putenv ();
25214 return (putenv == 0);
25219 rm -f conftest.$ac_objext conftest$ac_exeext
25220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25221 (eval $ac_link) 2>conftest.er1
25223 grep -v '^ *+' conftest.er1 >conftest.err
25225 cat conftest.err >&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } &&
25228 { ac_try='test -z "$ac_c_werror_flag"
25229 || test ! -s conftest.err'
25230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25231 (eval $ac_try) 2>&5
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); }; } &&
25235 { ac_try='test -s conftest$ac_exeext'
25236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25237 (eval $ac_try) 2>&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); }; }; then
25241 bash_cv_std_putenv=yes
25243 echo "$as_me: failed program was:" >&5
25244 sed 's/^/| /' conftest.$ac_ext >&5
25246 bash_cv_std_putenv=no
25249 rm -f conftest.err conftest.$ac_objext \
25250 conftest$ac_exeext conftest.$ac_ext
25252 echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
25253 echo "${ECHO_T}$bash_cv_std_putenv" >&6
25254 if test $bash_cv_std_putenv = yes; then
25255 cat >>confdefs.h <<\_ACEOF
25256 @%:@define HAVE_STD_PUTENV 1
25262 cat >>confdefs.h <<\_ACEOF
25263 @%:@define HAVE_STD_PUTENV 1
25267 if test "$ac_cv_func_unsetenv" = "yes"; then
25271 echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
25272 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
25273 if test "${bash_cv_std_unsetenv+set}" = set; then
25274 echo $ECHO_N "(cached) $ECHO_C" >&6
25276 cat >conftest.$ac_ext <<_ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h. */
25284 #include <stdlib.h>
25285 #include <stddef.h>
25293 extern int unsetenv (const char *);
25295 extern int unsetenv ();
25301 return (unsetenv == 0);
25306 rm -f conftest.$ac_objext conftest$ac_exeext
25307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25308 (eval $ac_link) 2>conftest.er1
25310 grep -v '^ *+' conftest.er1 >conftest.err
25312 cat conftest.err >&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } &&
25315 { ac_try='test -z "$ac_c_werror_flag"
25316 || test ! -s conftest.err'
25317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25318 (eval $ac_try) 2>&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); }; } &&
25322 { ac_try='test -s conftest$ac_exeext'
25323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25324 (eval $ac_try) 2>&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); }; }; then
25328 bash_cv_std_unsetenv=yes
25330 echo "$as_me: failed program was:" >&5
25331 sed 's/^/| /' conftest.$ac_ext >&5
25333 bash_cv_std_unsetenv=no
25336 rm -f conftest.err conftest.$ac_objext \
25337 conftest$ac_exeext conftest.$ac_ext
25339 echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
25340 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
25341 if test $bash_cv_std_unsetenv = yes; then
25342 cat >>confdefs.h <<\_ACEOF
25343 @%:@define HAVE_STD_UNSETENV 1
25349 cat >>confdefs.h <<\_ACEOF
25350 @%:@define HAVE_STD_UNSETENV 1
25355 echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
25356 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
25357 if test "${bash_cv_printf_a_format+set}" = set; then
25358 echo $ECHO_N "(cached) $ECHO_C" >&6
25360 if test "$cross_compiling" = yes; then
25361 { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
25362 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
25363 bash_cv_printf_a_format=no
25366 cat >conftest.$ac_ext <<_ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h. */
25374 #include <string.h>
25382 sprintf(abuf, "%A", y);
25383 exit(strchr(abuf, 'P') == (char *)0);
25387 rm -f conftest$ac_exeext
25388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25389 (eval $ac_link) 2>&5
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394 (eval $ac_try) 2>&5
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); }; }; then
25398 bash_cv_printf_a_format=yes
25400 echo "$as_me: program exited with status $ac_status" >&5
25401 echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25404 ( exit $ac_status )
25405 bash_cv_printf_a_format=no
25407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25411 echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
25412 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
25413 if test $bash_cv_printf_a_format = yes; then
25414 cat >>confdefs.h <<\_ACEOF
25415 @%:@define HAVE_PRINTF_A_FORMAT 1
25423 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
25424 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
25425 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
25426 echo $ECHO_N "(cached) $ECHO_C" >&6
25428 if test "$cross_compiling" = yes; then
25429 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
25430 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
25431 bash_cv_must_reinstall_sighandlers=no
25434 cat >conftest.$ac_ext <<_ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h. */
25441 #include <signal.h>
25442 #ifdef HAVE_UNISTD_H
25443 #include <unistd.h>
25446 typedef RETSIGTYPE sigfunc();
25450 #ifdef HAVE_POSIX_SIGNALS
25452 set_signal_handler(sig, handler)
25456 struct sigaction act, oact;
25457 act.sa_handler = handler;
25459 sigemptyset (&act.sa_mask);
25460 sigemptyset (&oact.sa_mask);
25461 sigaction (sig, &act, &oact);
25462 return (oact.sa_handler);
25465 #define set_signal_handler(s, h) signal(s, h)
25478 set_signal_handler(SIGINT, sigint);
25479 kill((int)getpid(), SIGINT);
25480 kill((int)getpid(), SIGINT);
25481 exit(nsigint != 2);
25485 rm -f conftest$ac_exeext
25486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25487 (eval $ac_link) 2>&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; }; then
25496 bash_cv_must_reinstall_sighandlers=no
25498 echo "$as_me: program exited with status $ac_status" >&5
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25502 ( exit $ac_status )
25503 bash_cv_must_reinstall_sighandlers=yes
25505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25509 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
25510 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
25511 if test $bash_cv_must_reinstall_sighandlers = yes; then
25512 cat >>confdefs.h <<\_ACEOF
25513 @%:@define MUST_REINSTALL_SIGHANDLERS 1
25519 echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
25520 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
25521 if test "${bash_cv_job_control_missing+set}" = set; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
25524 if test "$cross_compiling" = yes; then
25525 { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
25526 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
25527 bash_cv_job_control_missing=missing
25530 cat >conftest.$ac_ext <<_ACEOF
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h. */
25537 #include <sys/types.h>
25538 #ifdef HAVE_SYS_WAIT_H
25539 #include <sys/wait.h>
25541 #ifdef HAVE_UNISTD_H
25542 #include <unistd.h>
25544 #include <signal.h>
25546 /* Add more tests in here as appropriate. */
25550 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
25554 /* signals and tty control. */
25555 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
25559 /* process control */
25560 #if !defined (WNOHANG) || !defined (WUNTRACED)
25564 /* Posix systems have tcgetpgrp and waitpid. */
25565 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
25569 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
25573 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
25574 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
25581 rm -f conftest$ac_exeext
25582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25583 (eval $ac_link) 2>&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588 (eval $ac_try) 2>&5
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); }; }; then
25592 bash_cv_job_control_missing=present
25594 echo "$as_me: program exited with status $ac_status" >&5
25595 echo "$as_me: failed program was:" >&5
25596 sed 's/^/| /' conftest.$ac_ext >&5
25598 ( exit $ac_status )
25599 bash_cv_job_control_missing=missing
25601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25605 echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
25606 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
25607 if test $bash_cv_job_control_missing = missing; then
25608 cat >>confdefs.h <<\_ACEOF
25609 @%:@define JOB_CONTROL_MISSING 1
25614 echo "$as_me:$LINENO: checking for presence of named pipes" >&5
25615 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
25616 if test "${bash_cv_sys_named_pipes+set}" = set; then
25617 echo $ECHO_N "(cached) $ECHO_C" >&6
25619 if test "$cross_compiling" = yes; then
25620 { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
25621 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
25622 bash_cv_sys_named_pipes=missing
25625 cat >conftest.$ac_ext <<_ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h. */
25632 #include <sys/types.h>
25633 #include <sys/stat.h>
25634 #ifdef HAVE_UNISTD_H
25635 #include <unistd.h>
25638 /* Add more tests in here as appropriate. */
25643 #if defined (HAVE_MKFIFO)
25647 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
25654 err = mkdir("/tmp/bash-aclocal", 0700);
25659 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
25661 rmdir ("/tmp/bash-aclocal");
25665 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
25666 rmdir ("/tmp/bash-aclocal");
25670 rm -f conftest$ac_exeext
25671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25672 (eval $ac_link) 2>&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25677 (eval $ac_try) 2>&5
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); }; }; then
25681 bash_cv_sys_named_pipes=present
25683 echo "$as_me: program exited with status $ac_status" >&5
25684 echo "$as_me: failed program was:" >&5
25685 sed 's/^/| /' conftest.$ac_ext >&5
25687 ( exit $ac_status )
25688 bash_cv_sys_named_pipes=missing
25690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25694 echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
25695 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
25696 if test $bash_cv_sys_named_pipes = missing; then
25697 cat >>confdefs.h <<\_ACEOF
25698 @%:@define NAMED_PIPES_MISSING 1
25704 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
25705 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
25706 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
25707 echo $ECHO_N "(cached) $ECHO_C" >&6
25709 cat >conftest.$ac_ext <<_ACEOF
25712 cat confdefs.h >>conftest.$ac_ext
25713 cat >>conftest.$ac_ext <<_ACEOF
25714 /* end confdefs.h. */
25715 #include <sys/types.h>
25716 #include <termios.h>
25722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25723 $EGREP "yes" >/dev/null 2>&1; then
25724 ac_cv_sys_tiocgwinsz_in_termios_h=yes
25726 ac_cv_sys_tiocgwinsz_in_termios_h=no
25731 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
25732 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
25734 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
25735 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
25736 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
25737 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
25738 echo $ECHO_N "(cached) $ECHO_C" >&6
25740 cat >conftest.$ac_ext <<_ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h. */
25746 #include <sys/types.h>
25747 #include <sys/ioctl.h>
25753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25754 $EGREP "yes" >/dev/null 2>&1; then
25755 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
25757 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
25762 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
25763 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
25765 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
25767 cat >>confdefs.h <<\_ACEOF
25768 @%:@define GWINSZ_IN_SYS_IOCTL 1
25774 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
25775 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
25776 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
25777 echo $ECHO_N "(cached) $ECHO_C" >&6
25779 cat >conftest.$ac_ext <<_ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h. */
25785 #include <sys/types.h>
25786 #include <sys/ioctl.h>
25795 rm -f conftest.$ac_objext
25796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25797 (eval $ac_compile) 2>conftest.er1
25799 grep -v '^ *+' conftest.er1 >conftest.err
25801 cat conftest.err >&5
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); } &&
25804 { ac_try='test -z "$ac_c_werror_flag"
25805 || test ! -s conftest.err'
25806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25807 (eval $ac_try) 2>&5
25809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); }; } &&
25811 { ac_try='test -s conftest.$ac_objext'
25812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813 (eval $ac_try) 2>&5
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); }; }; then
25817 bash_cv_tiocstat_in_ioctl=yes
25819 echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25822 bash_cv_tiocstat_in_ioctl=no
25824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25827 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
25828 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
25829 if test $bash_cv_tiocstat_in_ioctl = yes; then
25830 cat >>confdefs.h <<\_ACEOF
25831 @%:@define TIOCSTAT_IN_SYS_IOCTL 1
25836 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
25837 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
25838 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
25839 echo $ECHO_N "(cached) $ECHO_C" >&6
25841 cat >conftest.$ac_ext <<_ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h. */
25847 #include <sys/types.h>
25848 #include <sys/ioctl.h>
25857 rm -f conftest.$ac_objext
25858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25859 (eval $ac_compile) 2>conftest.er1
25861 grep -v '^ *+' conftest.er1 >conftest.err
25863 cat conftest.err >&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
25866 { ac_try='test -z "$ac_c_werror_flag"
25867 || test ! -s conftest.err'
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; } &&
25873 { ac_try='test -s conftest.$ac_objext'
25874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875 (eval $ac_try) 2>&5
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; }; then
25879 bash_cv_fionread_in_ioctl=yes
25881 echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25884 bash_cv_fionread_in_ioctl=no
25886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25889 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
25890 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
25891 if test $bash_cv_fionread_in_ioctl = yes; then
25892 cat >>confdefs.h <<\_ACEOF
25893 @%:@define FIONREAD_IN_SYS_IOCTL 1
25900 echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
25901 echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6
25902 if test "${bash_cv_wcontinued_broken+set}" = set; then
25903 echo $ECHO_N "(cached) $ECHO_C" >&6
25905 if test "$cross_compiling" = yes; then
25906 { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
25907 echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
25908 bash_cv_wcontinued_broken=no
25911 cat >conftest.$ac_ext <<_ACEOF
25914 cat confdefs.h >>conftest.$ac_ext
25915 cat >>conftest.$ac_ext <<_ACEOF
25916 /* end confdefs.h. */
25918 #include <sys/types.h>
25919 #include <sys/wait.h>
25920 #include <unistd.h>
25930 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
25931 if (x == -1 && errno == EINVAL)
25938 rm -f conftest$ac_exeext
25939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25940 (eval $ac_link) 2>&5
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25945 (eval $ac_try) 2>&5
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); }; }; then
25949 bash_cv_wcontinued_broken=no
25951 echo "$as_me: program exited with status $ac_status" >&5
25952 echo "$as_me: failed program was:" >&5
25953 sed 's/^/| /' conftest.$ac_ext >&5
25955 ( exit $ac_status )
25956 bash_cv_wcontinued_broken=yes
25958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25962 echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
25963 echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6
25964 if test $bash_cv_wcontinued_broken = yes; then
25965 cat >>confdefs.h <<\_ACEOF
25966 @%:@define WCONTINUED_BROKEN 1
25972 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
25973 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
25974 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
25975 echo $ECHO_N "(cached) $ECHO_C" >&6
25977 cat >conftest.$ac_ext <<_ACEOF
25980 cat confdefs.h >>conftest.$ac_ext
25981 cat >>conftest.$ac_ext <<_ACEOF
25982 /* end confdefs.h. */
25983 #include <sys/types.h>
25992 rm -f conftest.$ac_objext
25993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25994 (eval $ac_compile) 2>conftest.er1
25996 grep -v '^ *+' conftest.er1 >conftest.err
25998 cat conftest.err >&5
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); } &&
26001 { ac_try='test -z "$ac_c_werror_flag"
26002 || test ! -s conftest.err'
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; } &&
26008 { ac_try='test -s conftest.$ac_objext'
26009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26010 (eval $ac_try) 2>&5
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); }; }; then
26014 bash_cv_speed_t_in_sys_types=yes
26016 echo "$as_me: failed program was:" >&5
26017 sed 's/^/| /' conftest.$ac_ext >&5
26019 bash_cv_speed_t_in_sys_types=no
26021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26024 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
26025 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
26026 if test $bash_cv_speed_t_in_sys_types = yes; then
26027 cat >>confdefs.h <<\_ACEOF
26028 @%:@define SPEED_T_IN_SYS_TYPES 1
26033 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
26034 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
26035 if test "${bash_cv_getpw_declared+set}" = set; then
26036 echo $ECHO_N "(cached) $ECHO_C" >&6
26038 cat >conftest.$ac_ext <<_ACEOF
26041 cat confdefs.h >>conftest.$ac_ext
26042 cat >>conftest.$ac_ext <<_ACEOF
26043 /* end confdefs.h. */
26045 #include <sys/types.h>
26046 #ifdef HAVE_UNISTD_H
26047 # include <unistd.h>
26052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26053 $EGREP "getpwuid" >/dev/null 2>&1; then
26054 bash_cv_getpw_declared=yes
26056 bash_cv_getpw_declared=no
26062 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
26063 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
26064 if test $bash_cv_getpw_declared = yes; then
26065 cat >>confdefs.h <<\_ACEOF
26066 @%:@define HAVE_GETPW_DECLS 1
26071 echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
26072 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
26073 if test "${bash_cv_unusable_rtsigs+set}" = set; then
26074 echo $ECHO_N "(cached) $ECHO_C" >&6
26076 if test "$cross_compiling" = yes; then
26077 { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
26078 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
26079 bash_cv_unusable_rtsigs=yes
26082 cat >conftest.$ac_ext <<_ACEOF
26085 cat confdefs.h >>conftest.$ac_ext
26086 cat >>conftest.$ac_ext <<_ACEOF
26087 /* end confdefs.h. */
26089 #include <sys/types.h>
26090 #include <signal.h>
26098 int n_sigs = 2 * NSIG;
26100 int rtmin = SIGRTMIN;
26105 exit(rtmin < n_sigs);
26108 rm -f conftest$ac_exeext
26109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26110 (eval $ac_link) 2>&5
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115 (eval $ac_try) 2>&5
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; }; then
26119 bash_cv_unusable_rtsigs=yes
26121 echo "$as_me: program exited with status $ac_status" >&5
26122 echo "$as_me: failed program was:" >&5
26123 sed 's/^/| /' conftest.$ac_ext >&5
26125 ( exit $ac_status )
26126 bash_cv_unusable_rtsigs=no
26128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26132 echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
26133 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
26134 if test $bash_cv_unusable_rtsigs = yes; then
26135 cat >>confdefs.h <<\_ACEOF
26136 @%:@define UNUSABLE_RT_SIGNALS 1
26145 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
26146 SIGLIST_O=siglist.o
26154 hpux*) echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
26155 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
26156 if test "${bash_cv_kernel_rlimit+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26159 cat >conftest.$ac_ext <<_ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26166 #include <sys/types.h>
26167 #include <sys/resource.h>
26180 rm -f conftest.$ac_objext
26181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26182 (eval $ac_compile) 2>conftest.er1
26184 grep -v '^ *+' conftest.er1 >conftest.err
26186 cat conftest.err >&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } &&
26189 { ac_try='test -z "$ac_c_werror_flag"
26190 || test ! -s conftest.err'
26191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192 (eval $ac_try) 2>&5
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); }; } &&
26196 { ac_try='test -s conftest.$ac_objext'
26197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198 (eval $ac_try) 2>&5
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); }; }; then
26202 bash_cv_kernel_rlimit=no
26204 echo "$as_me: failed program was:" >&5
26205 sed 's/^/| /' conftest.$ac_ext >&5
26207 cat >conftest.$ac_ext <<_ACEOF
26210 cat confdefs.h >>conftest.$ac_ext
26211 cat >>conftest.$ac_ext <<_ACEOF
26212 /* end confdefs.h. */
26214 #include <sys/types.h>
26216 #include <sys/resource.h>
26230 rm -f conftest.$ac_objext
26231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26232 (eval $ac_compile) 2>conftest.er1
26234 grep -v '^ *+' conftest.er1 >conftest.err
26236 cat conftest.err >&5
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); } &&
26239 { ac_try='test -z "$ac_c_werror_flag"
26240 || test ! -s conftest.err'
26241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26242 (eval $ac_try) 2>&5
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); }; } &&
26246 { ac_try='test -s conftest.$ac_objext'
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; }; then
26252 bash_cv_kernel_rlimit=yes
26254 echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26257 bash_cv_kernel_rlimit=no
26259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26265 echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
26266 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
26267 if test $bash_cv_kernel_rlimit = yes; then
26268 cat >>confdefs.h <<\_ACEOF
26269 @%:@define RLIMIT_NEEDS_KERNEL 1
26276 if test "$opt_readline" = yes; then
26278 aix*) prefer_curses=yes ;;
26281 if test "X$bash_cv_termcap_lib" = "X"; then
26284 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
26285 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
26288 if test "${bash_cv_termcap_lib+set}" = set; then
26289 echo $ECHO_N "(cached) $ECHO_C" >&6
26291 echo "$as_me:$LINENO: checking for tgetent" >&5
26292 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
26293 if test "${ac_cv_func_tgetent+set}" = set; then
26294 echo $ECHO_N "(cached) $ECHO_C" >&6
26296 cat >conftest.$ac_ext <<_ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26302 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
26303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26304 #define tgetent innocuous_tgetent
26306 /* System header to define __stub macros and hopefully few prototypes,
26307 which can conflict with char tgetent (); below.
26308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26309 <limits.h> exists even on freestanding compilers. */
26312 # include <limits.h>
26314 # include <assert.h>
26319 /* Override any gcc2 internal prototype to avoid an error. */
26324 /* We use char because int might match the return type of a gcc2
26325 builtin and then its argument prototype would still apply. */
26327 /* The GNU C library defines this for functions which it implements
26328 to always fail with ENOSYS. Some functions are actually named
26329 something starting with __ and the normal name is an alias. */
26330 #if defined (__stub_tgetent) || defined (__stub___tgetent)
26333 char (*f) () = tgetent;
26342 return f != tgetent;
26347 rm -f conftest.$ac_objext conftest$ac_exeext
26348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26349 (eval $ac_link) 2>conftest.er1
26351 grep -v '^ *+' conftest.er1 >conftest.err
26353 cat conftest.err >&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } &&
26356 { ac_try='test -z "$ac_c_werror_flag"
26357 || test ! -s conftest.err'
26358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359 (eval $ac_try) 2>&5
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); }; } &&
26363 { ac_try='test -s conftest$ac_exeext'
26364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365 (eval $ac_try) 2>&5
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); }; }; then
26369 ac_cv_func_tgetent=yes
26371 echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26374 ac_cv_func_tgetent=no
26376 rm -f conftest.err conftest.$ac_objext \
26377 conftest$ac_exeext conftest.$ac_ext
26379 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
26380 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
26381 if test $ac_cv_func_tgetent = yes; then
26382 bash_cv_termcap_lib=libc
26384 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26385 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
26386 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26387 echo $ECHO_N "(cached) $ECHO_C" >&6
26389 ac_check_lib_save_LIBS=$LIBS
26390 LIBS="-ltermcap $LIBS"
26391 cat >conftest.$ac_ext <<_ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h. */
26398 /* Override any gcc2 internal prototype to avoid an error. */
26402 /* We use char because int might match the return type of a gcc2
26403 builtin and then its argument prototype would still apply. */
26413 rm -f conftest.$ac_objext conftest$ac_exeext
26414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26415 (eval $ac_link) 2>conftest.er1
26417 grep -v '^ *+' conftest.er1 >conftest.err
26419 cat conftest.err >&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } &&
26422 { ac_try='test -z "$ac_c_werror_flag"
26423 || test ! -s conftest.err'
26424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26425 (eval $ac_try) 2>&5
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); }; } &&
26429 { ac_try='test -s conftest$ac_exeext'
26430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26431 (eval $ac_try) 2>&5
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); }; }; then
26435 ac_cv_lib_termcap_tgetent=yes
26437 echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26440 ac_cv_lib_termcap_tgetent=no
26442 rm -f conftest.err conftest.$ac_objext \
26443 conftest$ac_exeext conftest.$ac_ext
26444 LIBS=$ac_check_lib_save_LIBS
26446 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26447 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
26448 if test $ac_cv_lib_termcap_tgetent = yes; then
26449 bash_cv_termcap_lib=libtermcap
26451 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
26452 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
26453 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26454 echo $ECHO_N "(cached) $ECHO_C" >&6
26456 ac_check_lib_save_LIBS=$LIBS
26457 LIBS="-ltinfo $LIBS"
26458 cat >conftest.$ac_ext <<_ACEOF
26461 cat confdefs.h >>conftest.$ac_ext
26462 cat >>conftest.$ac_ext <<_ACEOF
26463 /* end confdefs.h. */
26465 /* Override any gcc2 internal prototype to avoid an error. */
26469 /* We use char because int might match the return type of a gcc2
26470 builtin and then its argument prototype would still apply. */
26480 rm -f conftest.$ac_objext conftest$ac_exeext
26481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26482 (eval $ac_link) 2>conftest.er1
26484 grep -v '^ *+' conftest.er1 >conftest.err
26486 cat conftest.err >&5
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); } &&
26489 { ac_try='test -z "$ac_c_werror_flag"
26490 || test ! -s conftest.err'
26491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492 (eval $ac_try) 2>&5
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); }; } &&
26496 { ac_try='test -s conftest$ac_exeext'
26497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498 (eval $ac_try) 2>&5
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); }; }; then
26502 ac_cv_lib_tinfo_tgetent=yes
26504 echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26507 ac_cv_lib_tinfo_tgetent=no
26509 rm -f conftest.err conftest.$ac_objext \
26510 conftest$ac_exeext conftest.$ac_ext
26511 LIBS=$ac_check_lib_save_LIBS
26513 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
26514 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
26515 if test $ac_cv_lib_tinfo_tgetent = yes; then
26516 bash_cv_termcap_lib=libtinfo
26518 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
26519 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
26520 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
26521 echo $ECHO_N "(cached) $ECHO_C" >&6
26523 ac_check_lib_save_LIBS=$LIBS
26524 LIBS="-lcurses $LIBS"
26525 cat >conftest.$ac_ext <<_ACEOF
26528 cat confdefs.h >>conftest.$ac_ext
26529 cat >>conftest.$ac_ext <<_ACEOF
26530 /* end confdefs.h. */
26532 /* Override any gcc2 internal prototype to avoid an error. */
26536 /* We use char because int might match the return type of a gcc2
26537 builtin and then its argument prototype would still apply. */
26547 rm -f conftest.$ac_objext conftest$ac_exeext
26548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26549 (eval $ac_link) 2>conftest.er1
26551 grep -v '^ *+' conftest.er1 >conftest.err
26553 cat conftest.err >&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } &&
26556 { ac_try='test -z "$ac_c_werror_flag"
26557 || test ! -s conftest.err'
26558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26559 (eval $ac_try) 2>&5
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); }; } &&
26563 { ac_try='test -s conftest$ac_exeext'
26564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26565 (eval $ac_try) 2>&5
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); }; }; then
26569 ac_cv_lib_curses_tgetent=yes
26571 echo "$as_me: failed program was:" >&5
26572 sed 's/^/| /' conftest.$ac_ext >&5
26574 ac_cv_lib_curses_tgetent=no
26576 rm -f conftest.err conftest.$ac_objext \
26577 conftest$ac_exeext conftest.$ac_ext
26578 LIBS=$ac_check_lib_save_LIBS
26580 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
26581 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
26582 if test $ac_cv_lib_curses_tgetent = yes; then
26583 bash_cv_termcap_lib=libcurses
26585 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
26586 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
26587 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26590 ac_check_lib_save_LIBS=$LIBS
26591 LIBS="-lncurses $LIBS"
26592 cat >conftest.$ac_ext <<_ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26599 /* Override any gcc2 internal prototype to avoid an error. */
26603 /* We use char because int might match the return type of a gcc2
26604 builtin and then its argument prototype would still apply. */
26614 rm -f conftest.$ac_objext conftest$ac_exeext
26615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26616 (eval $ac_link) 2>conftest.er1
26618 grep -v '^ *+' conftest.er1 >conftest.err
26620 cat conftest.err >&5
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); } &&
26623 { ac_try='test -z "$ac_c_werror_flag"
26624 || test ! -s conftest.err'
26625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26626 (eval $ac_try) 2>&5
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); }; } &&
26630 { ac_try='test -s conftest$ac_exeext'
26631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26632 (eval $ac_try) 2>&5
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); }; }; then
26636 ac_cv_lib_ncurses_tgetent=yes
26638 echo "$as_me: failed program was:" >&5
26639 sed 's/^/| /' conftest.$ac_ext >&5
26641 ac_cv_lib_ncurses_tgetent=no
26643 rm -f conftest.err conftest.$ac_objext \
26644 conftest$ac_exeext conftest.$ac_ext
26645 LIBS=$ac_check_lib_save_LIBS
26647 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
26648 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
26649 if test $ac_cv_lib_ncurses_tgetent = yes; then
26650 bash_cv_termcap_lib=libncurses
26652 bash_cv_termcap_lib=gnutermcap
26665 if test "X$_bash_needmsg" = "Xyes"; then
26666 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
26667 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
26669 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
26670 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
26671 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
26672 LDFLAGS="$LDFLAGS -L./lib/termcap"
26673 TERMCAP_LIB="./lib/termcap/libtermcap.a"
26674 TERMCAP_DEP="./lib/termcap/libtermcap.a"
26675 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
26676 TERMCAP_LIB=-ltermcap
26678 elif test $bash_cv_termcap_lib = libtinfo; then
26679 TERMCAP_LIB=-ltinfo
26681 elif test $bash_cv_termcap_lib = libncurses; then
26682 TERMCAP_LIB=-lncurses
26684 elif test $bash_cv_termcap_lib = libc; then
26688 TERMCAP_LIB=-lcurses
26696 echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
26697 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
26698 if test "${bash_cv_dev_fd+set}" = set; then
26699 echo $ECHO_N "(cached) $ECHO_C" >&6
26701 if test -d /dev/fd && test -r /dev/fd/0 < /dev/null; then
26702 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
26704 if test -r /dev/fd/3; then
26705 bash_cv_dev_fd=standard
26707 bash_cv_dev_fd=absent
26710 elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
26711 bash_cv_dev_fd=whacky
26713 bash_cv_dev_fd=absent
26718 echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
26719 echo "${ECHO_T}$bash_cv_dev_fd" >&6
26720 if test $bash_cv_dev_fd = "standard"; then
26721 cat >>confdefs.h <<\_ACEOF
26722 @%:@define HAVE_DEV_FD 1
26725 cat >>confdefs.h <<\_ACEOF
26726 @%:@define DEV_FD_PREFIX "/dev/fd/"
26729 elif test $bash_cv_dev_fd = "whacky"; then
26730 cat >>confdefs.h <<\_ACEOF
26731 @%:@define HAVE_DEV_FD 1
26734 cat >>confdefs.h <<\_ACEOF
26735 @%:@define DEV_FD_PREFIX "/proc/self/fd/"
26740 echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
26741 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
26742 if test "${bash_cv_dev_stdin+set}" = set; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26745 if test -d /dev/fd && test -r /dev/stdin < /dev/null; then
26746 bash_cv_dev_stdin=present
26747 elif test -d /proc/self/fd && test -r /dev/stdin < /dev/null; then
26748 bash_cv_dev_stdin=present
26750 bash_cv_dev_stdin=absent
26755 echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
26756 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
26757 if test $bash_cv_dev_stdin = "present"; then
26758 cat >>confdefs.h <<\_ACEOF
26759 @%:@define HAVE_DEV_STDIN 1
26764 echo "$as_me:$LINENO: checking for default mail directory" >&5
26765 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
26766 if test "${bash_cv_mail_dir+set}" = set; then
26767 echo $ECHO_N "(cached) $ECHO_C" >&6
26769 if test -d /var/mail; then
26770 bash_cv_mail_dir=/var/mail
26771 elif test -d /var/spool/mail; then
26772 bash_cv_mail_dir=/var/spool/mail
26773 elif test -d /usr/mail; then
26774 bash_cv_mail_dir=/usr/mail
26775 elif test -d /usr/spool/mail; then
26776 bash_cv_mail_dir=/usr/spool/mail
26778 bash_cv_mail_dir=unknown
26783 echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
26784 echo "${ECHO_T}$bash_cv_mail_dir" >&6
26785 cat >>confdefs.h <<_ACEOF
26786 @%:@define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
26791 if test "$bash_cv_job_control_missing" = missing; then
26795 if test "$opt_job_control" = yes; then
26796 cat >>confdefs.h <<\_ACEOF
26797 @%:@define JOB_CONTROL 1
26811 case "${host_os}" in
26812 sysv4.2*) cat >>confdefs.h <<\_ACEOF
26813 @%:@define SVR4_2 1
26816 cat >>confdefs.h <<\_ACEOF
26820 sysv4*) cat >>confdefs.h <<\_ACEOF
26824 sysv5*) cat >>confdefs.h <<\_ACEOF
26828 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
26829 hpux*) LOCAL_CFLAGS=-DHPUX ;;
26830 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
26831 isc*) LOCAL_CFLAGS=-Disc386 ;;
26832 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
26833 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
26834 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
26835 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
26836 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
26837 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
26838 solaris2.5*) LOCAL_CFLAGS=-DSunOS5 ;;
26839 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
26840 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
26841 case "`uname -r`" in
26842 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
26843 @%:@define PGRP_PIPE 1
26847 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
26848 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
26849 powerux*) LOCAL_LIBS="-lgen" ;;
26850 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
26851 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
26854 case "${host_os}-${CC}" in
26855 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
26856 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
26857 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
26860 case "${host_os}" in
26862 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
26863 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
26865 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
26866 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
26869 case "$host_cpu" in
26870 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
26873 case "$host_cpu-$host_os" in
26874 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
26877 case "$host_cpu-$host_vendor-$host_os" in
26878 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
26879 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
26883 # Shared object configuration section. These values are generated by
26884 # ${srcdir}/support/shobj-conf
26886 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
26888 echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
26889 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
26890 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
26898 echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
26899 echo "${ECHO_T}$SHOBJ_STATUS" >&6
26902 # try to create a directory tree if the source is elsewhere
26903 # this should be packaged into a script accessible via ${srcdir}/support
26906 *) for d in doc tests support lib examples; do # dirs
26907 test -d $d || mkdir $d
26909 for ld in readline glob tilde malloc sh termcap; do # libdirs
26910 test -d lib/$ld || mkdir lib/$ld
26912 test -d examples/loadables || mkdir examples/loadables # loadable builtins
26913 test -d examples/loadables/perl || mkdir examples/loadables/perl
26918 case "$BUILD_DIR" in
26919 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
26946 #AC_SUBST(ALLOCA_SOURCE)
26947 #AC_SUBST(ALLOCA_OBJECT)
26949 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"
26950 ac_config_commands="$ac_config_commands default"
26951 cat >confcache <<\_ACEOF
26952 # This file is a shell script that caches the results of configure
26953 # tests run on this system so they can be shared between configure
26954 # scripts and configure runs, see configure's option --config-cache.
26955 # It is not useful on other systems. If it contains results you don't
26956 # want to keep, you may remove or edit it.
26958 # config.status only pays attention to the cache file if you give it
26959 # the --recheck option to rerun configure.
26961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26963 # following values.
26967 # The following way of writing the cache mishandles newlines in values,
26968 # but we know of no workaround that is simple, portable, and efficient.
26969 # So, don't put newlines in cache variables' values.
26970 # Ultrix sh set writes to stderr and can't be redirected directly,
26971 # and sets the high bit in the cache file unless we assign to the vars.
26974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26976 # `set' does not quote correctly, so add quotes (double-quote
26977 # substitution turns \\\\ into \\, and sed turns \\ into \).
26980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26983 # `set' quotes correctly as required by POSIX, so do not add quotes.
26985 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26994 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26996 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26997 if test -w $cache_file; then
26998 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26999 cat confcache >$cache_file
27001 echo "not updating unwritable cache $cache_file"
27006 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27007 # Let make expand exec_prefix.
27008 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27010 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27011 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27012 # trailing colons and then remove the whole line if VPATH becomes empty
27013 # (actually we leave an empty line to preserve line numbers).
27014 if test "x$srcdir" = x.; then
27015 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27016 s/:*\$(srcdir):*/:/;
27017 s/:*\${srcdir}:*/:/;
27019 s/^\([^=]*=[ ]*\):*/\1/;
27025 DEFS=-DHAVE_CONFIG_H
27029 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
27030 # 1. Remove the extension, and $U if already installed.
27031 ac_i=`echo "$ac_i" |
27032 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27034 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27035 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27037 LIB@&t@OBJS=$ac_libobjs
27039 LTLIBOBJS=$ac_ltlibobjs
27043 : ${CONFIG_STATUS=./config.status}
27044 ac_clean_files_save=$ac_clean_files
27045 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27046 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27047 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27048 cat >$CONFIG_STATUS <<_ACEOF
27050 # Generated by $as_me.
27051 # Run this file to recreate the current configuration.
27052 # Compiler output produced by configure, useful for debugging
27053 # configure, is in config.log if it exists.
27056 ac_cs_recheck=false
27058 SHELL=\${CONFIG_SHELL-$SHELL}
27061 cat >>$CONFIG_STATUS <<\_ACEOF
27062 ## --------------------- ##
27063 ## M4sh Initialization. ##
27064 ## --------------------- ##
27066 # Be Bourne compatible
27067 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27070 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27071 # is contrary to our usage. Disable this feature.
27072 alias -g '${1+"$@"}'='"$@"'
27073 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27076 DUALCASE=1; export DUALCASE # for MKS sh
27078 # Support unset when possible.
27079 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27086 # Work around bugs in pre-3.0 UWIN ksh.
27087 $as_unset ENV MAIL MAILPATH
27094 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27095 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27096 LC_TELEPHONE LC_TIME
27098 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27099 eval $as_var=C; export $as_var
27105 # Required to use basename.
27106 if expr a : '\(a\)' >/dev/null 2>&1; then
27112 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27113 as_basename=basename
27119 # Name of the executable.
27120 as_me=`$as_basename "$0" ||
27121 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27122 X"$0" : 'X\(//\)$' \| \
27123 X"$0" : 'X\(/\)$' \| \
27124 . : '\(.\)' 2>/dev/null ||
27126 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27127 /^X\/\(\/\/\)$/{ s//\1/; q; }
27128 /^X\/\(\/\).*/{ s//\1/; q; }
27132 # PATH needs CR, and LINENO needs CR and PATH.
27133 # Avoid depending upon Character Ranges.
27134 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27135 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27136 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27137 as_cr_digits='0123456789'
27138 as_cr_alnum=$as_cr_Letters$as_cr_digits
27140 # The user is always right.
27141 if test "${PATH_SEPARATOR+set}" != set; then
27142 echo "#! /bin/sh" >conf$$.sh
27143 echo "exit 0" >>conf$$.sh
27145 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27154 as_lineno_1=$LINENO
27155 as_lineno_2=$LINENO
27156 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27157 test "x$as_lineno_1" != "x$as_lineno_2" &&
27158 test "x$as_lineno_3" = "x$as_lineno_2" || {
27159 # Find who we are. Look in the path if we contain no path at all
27162 *[\\/]* ) as_myself=$0 ;;
27163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27164 for as_dir in $PATH
27167 test -z "$as_dir" && as_dir=.
27168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27173 # We did not find ourselves, most probably we were run as `sh COMMAND'
27174 # in which case we are not to be found in the path.
27175 if test "x$as_myself" = x; then
27178 if test ! -f "$as_myself"; then
27179 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27180 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27181 { (exit 1); exit 1; }; }
27183 case $CONFIG_SHELL in
27185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27189 test -z "$as_dir" && as_dir=.
27190 for as_base in sh bash ksh sh5; do
27193 if ("$as_dir/$as_base" -c '
27194 as_lineno_1=$LINENO
27195 as_lineno_2=$LINENO
27196 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27197 test "x$as_lineno_1" != "x$as_lineno_2" &&
27198 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27199 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27200 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27201 CONFIG_SHELL=$as_dir/$as_base
27202 export CONFIG_SHELL
27203 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27211 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27212 # uniformly replaced by the line number. The first 'sed' inserts a
27213 # line-number line before each line; the second 'sed' does the real
27214 # work. The second script uses 'N' to pair each line-number line
27215 # with the numbered line, and appends trailing '-' during
27216 # substitution so that $LINENO is not a special case at line end.
27217 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27218 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27219 sed '=' <$as_myself |
27224 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27227 s,^['$as_cr_digits']*\n,,
27228 ' >$as_me.lineno &&
27229 chmod +x $as_me.lineno ||
27230 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27231 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27232 { (exit 1); exit 1; }; }
27234 # Don't try to exec as it changes $[0], causing all sort of problems
27235 # (the dirname of $[0] is not the place where we might find the
27236 # original and so on. Autoconf is especially sensible to this).
27238 # Exit status is that of the last command.
27243 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27244 *c*,-n*) ECHO_N= ECHO_C='
27246 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27247 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27250 if expr a : '\(a\)' >/dev/null 2>&1; then
27256 rm -f conf$$ conf$$.exe conf$$.file
27258 if ln -s conf$$.file conf$$ 2>/dev/null; then
27259 # We could just check for DJGPP; but this test a) works b) is more generic
27260 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27261 if test -f conf$$.exe; then
27262 # Don't use ln at all; we don't have any links
27267 elif ln conf$$.file conf$$ 2>/dev/null; then
27272 rm -f conf$$ conf$$.exe conf$$.file
27274 if mkdir -p . 2>/dev/null; then
27277 test -d ./-p && rmdir ./-p
27281 as_executable_p="test -f"
27283 # Sed expression to map a string onto a valid CPP name.
27284 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27286 # Sed expression to map a string onto a valid variable name.
27287 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27291 # We need space, tab and new line, in precisely that order.
27301 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27302 # report actual input values of CONFIG_FILES etc. instead of their
27303 # values after options handling. Logging --version etc. is OK.
27307 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
27308 @%:@@%:@ Running $as_me. @%:@@%:@
27313 This file was extended by bash $as_me 3.2-devel, which was
27314 generated by GNU Autoconf 2.59. Invocation command line was
27316 CONFIG_FILES = $CONFIG_FILES
27317 CONFIG_HEADERS = $CONFIG_HEADERS
27318 CONFIG_LINKS = $CONFIG_LINKS
27319 CONFIG_COMMANDS = $CONFIG_COMMANDS
27323 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27327 # Files that config.status was made for.
27328 if test -n "$ac_config_files"; then
27329 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27332 if test -n "$ac_config_headers"; then
27333 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27336 if test -n "$ac_config_links"; then
27337 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27340 if test -n "$ac_config_commands"; then
27341 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27344 cat >>$CONFIG_STATUS <<\_ACEOF
27347 \`$as_me' instantiates files from templates according to the
27348 current configuration.
27350 Usage: $0 [OPTIONS] [FILE]...
27352 -h, --help print this help, then exit
27353 -V, --version print version number, then exit
27354 -q, --quiet do not print progress messages
27355 -d, --debug don't remove temporary files
27356 --recheck update $as_me by reconfiguring in the same conditions
27357 --file=FILE[:TEMPLATE]
27358 instantiate the configuration file FILE
27359 --header=FILE[:TEMPLATE]
27360 instantiate the configuration header FILE
27362 Configuration files:
27365 Configuration headers:
27368 Configuration commands:
27371 Report bugs to <bug-autoconf@gnu.org>."
27374 cat >>$CONFIG_STATUS <<_ACEOF
27376 bash config.status 3.2-devel
27377 configured by $0, generated by GNU Autoconf 2.59,
27378 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27380 Copyright (C) 2003 Free Software Foundation, Inc.
27381 This config.status script is free software; the Free Software Foundation
27382 gives unlimited permission to copy, distribute and modify it."
27387 cat >>$CONFIG_STATUS <<\_ACEOF
27388 # If no file are specified by the user, then we need to provide default
27389 # value. By we need to know if files were specified by the user.
27395 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27396 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27404 *) # This is not an option, so the user has probably given explicit
27407 ac_need_defaults=false;;
27411 # Handling of the options.
27413 cat >>$CONFIG_STATUS <<\_ACEOF
27414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27416 --version | --vers* | -V )
27417 echo "$ac_cs_version"; exit 0 ;;
27419 # Conflict between --help and --header
27420 { { echo "$as_me:$LINENO: error: ambiguous option: $1
27421 Try \`$0 --help' for more information." >&5
27422 echo "$as_me: error: ambiguous option: $1
27423 Try \`$0 --help' for more information." >&2;}
27424 { (exit 1); exit 1; }; };;
27425 --help | --hel | -h )
27426 echo "$ac_cs_usage"; exit 0 ;;
27427 --debug | --d* | -d )
27429 --file | --fil | --fi | --f )
27431 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27432 ac_need_defaults=false;;
27433 --header | --heade | --head | --hea )
27435 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27436 ac_need_defaults=false;;
27437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27438 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27441 # This is an error.
27442 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27443 Try \`$0 --help' for more information." >&5
27444 echo "$as_me: error: unrecognized option: $1
27445 Try \`$0 --help' for more information." >&2;}
27446 { (exit 1); exit 1; }; } ;;
27448 *) ac_config_targets="$ac_config_targets $1" ;;
27454 ac_configure_extra_args=
27456 if $ac_cs_silent; then
27458 ac_configure_extra_args="$ac_configure_extra_args --silent"
27462 cat >>$CONFIG_STATUS <<_ACEOF
27463 if \$ac_cs_recheck; then
27464 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27465 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27470 cat >>$CONFIG_STATUS <<_ACEOF
27472 # INIT-COMMANDS section.
27475 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
27476 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
27478 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27479 # Capture the value of LINGUAS because we need it to compute CATALOGS.
27480 LINGUAS="${LINGUAS-%UNSET%}"
27487 cat >>$CONFIG_STATUS <<\_ACEOF
27488 for ac_config_target in $ac_config_targets
27490 case "$ac_config_target" in
27491 # Handling of arguments.
27492 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27493 "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
27494 "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
27495 "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
27496 "lib/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
27497 "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
27498 "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
27499 "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
27500 "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
27501 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27502 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
27503 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27504 "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
27505 "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
27506 "pathnames.h" ) CONFIG_FILES="$CONFIG_FILES pathnames.h" ;;
27507 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27508 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27509 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27510 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27511 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27512 { (exit 1); exit 1; }; };;
27516 # If the user did not use the arguments to specify the items to instantiate,
27517 # then the envvar interface is used. Set only those that are not.
27518 # We use the long form for the default assignment because of an extremely
27519 # bizarre bug on SunOS 4.1.3.
27520 if $ac_need_defaults; then
27521 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27522 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27523 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27526 # Have a temporary directory for convenience. Make it in the build tree
27527 # simply because there is no reason to put it here, and in addition,
27528 # creating and moving files from /tmp can sometimes cause problems.
27529 # Create a temporary directory, and hook for its removal unless debugging.
27532 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27533 trap '{ (exit 1); exit 1; }' 1 2 13 15
27536 # Create a (secure) tmp directory for tmp files.
27539 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27540 test -n "$tmp" && test -d "$tmp"
27543 tmp=./confstat$$-$RANDOM
27544 (umask 077 && mkdir $tmp)
27547 echo "$me: cannot create a temporary directory in ." >&2
27548 { (exit 1); exit 1; }
27553 cat >>$CONFIG_STATUS <<_ACEOF
27556 # CONFIG_FILES section.
27559 # No need to generate the scripts if there are no CONFIG_FILES.
27560 # This happens for instance when ./config.status config.h
27561 if test -n "\$CONFIG_FILES"; then
27562 # Protect against being on the right side of a sed subst in config.status.
27563 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27564 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27565 s,@SHELL@,$SHELL,;t t
27566 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27567 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27568 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27569 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27570 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27571 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27572 s,@exec_prefix@,$exec_prefix,;t t
27573 s,@prefix@,$prefix,;t t
27574 s,@program_transform_name@,$program_transform_name,;t t
27575 s,@bindir@,$bindir,;t t
27576 s,@sbindir@,$sbindir,;t t
27577 s,@libexecdir@,$libexecdir,;t t
27578 s,@datadir@,$datadir,;t t
27579 s,@sysconfdir@,$sysconfdir,;t t
27580 s,@sharedstatedir@,$sharedstatedir,;t t
27581 s,@localstatedir@,$localstatedir,;t t
27582 s,@libdir@,$libdir,;t t
27583 s,@includedir@,$includedir,;t t
27584 s,@oldincludedir@,$oldincludedir,;t t
27585 s,@infodir@,$infodir,;t t
27586 s,@mandir@,$mandir,;t t
27587 s,@build_alias@,$build_alias,;t t
27588 s,@host_alias@,$host_alias,;t t
27589 s,@target_alias@,$target_alias,;t t
27590 s,@DEFS@,$DEFS,;t t
27591 s,@ECHO_C@,$ECHO_C,;t t
27592 s,@ECHO_N@,$ECHO_N,;t t
27593 s,@ECHO_T@,$ECHO_T,;t t
27594 s,@LIBS@,$LIBS,;t t
27595 s,@build@,$build,;t t
27596 s,@build_cpu@,$build_cpu,;t t
27597 s,@build_vendor@,$build_vendor,;t t
27598 s,@build_os@,$build_os,;t t
27599 s,@host@,$host,;t t
27600 s,@host_cpu@,$host_cpu,;t t
27601 s,@host_vendor@,$host_vendor,;t t
27602 s,@host_os@,$host_os,;t t
27603 s,@EMACS@,$EMACS,;t t
27604 s,@lispdir@,$lispdir,;t t
27605 s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t
27606 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
27607 s,@PURIFY@,$PURIFY,;t t
27608 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
27609 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
27610 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
27611 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
27612 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
27613 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
27614 s,@htmldir@,$htmldir,;t t
27615 s,@HELPDIR@,$HELPDIR,;t t
27616 s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
27617 s,@HELPINSTALL@,$HELPINSTALL,;t t
27618 s,@HELPSTRINGS@,$HELPSTRINGS,;t t
27620 s,@CFLAGS@,$CFLAGS,;t t
27621 s,@LDFLAGS@,$LDFLAGS,;t t
27622 s,@CPPFLAGS@,$CPPFLAGS,;t t
27623 s,@ac_ct_CC@,$ac_ct_CC,;t t
27624 s,@EXEEXT@,$EXEEXT,;t t
27625 s,@OBJEXT@,$OBJEXT,;t t
27627 s,@EGREP@,$EGREP,;t t
27628 s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
27629 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
27630 s,@SIGNAMES_O@,$SIGNAMES_O,;t t
27631 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
27632 s,@STATIC_LD@,$STATIC_LD,;t t
27633 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
27634 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
27635 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
27636 s,@RL_VERSION@,$RL_VERSION,;t t
27637 s,@RL_MAJOR@,$RL_MAJOR,;t t
27638 s,@RL_MINOR@,$RL_MINOR,;t t
27639 s,@READLINE_LIB@,$READLINE_LIB,;t t
27640 s,@READLINE_DEP@,$READLINE_DEP,;t t
27641 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
27642 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
27643 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
27644 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
27645 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
27646 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
27647 s,@TILDE_LIB@,$TILDE_LIB,;t t
27648 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27649 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27650 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27652 s,@RANLIB@,$RANLIB,;t t
27653 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27654 s,@YACC@,$YACC,;t t
27655 s,@SET_MAKE@,$SET_MAKE,;t t
27656 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
27657 s,@SIZE@,$SIZE,;t t
27658 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
27659 s,@USE_NLS@,$USE_NLS,;t t
27660 s,@MSGFMT@,$MSGFMT,;t t
27661 s,@GMSGFMT@,$GMSGFMT,;t t
27662 s,@XGETTEXT@,$XGETTEXT,;t t
27663 s,@MSGMERGE@,$MSGMERGE,;t t
27664 s,@ALLOCA@,$ALLOCA,;t t
27665 s,@GLIBC21@,$GLIBC21,;t t
27666 s,@LIBICONV@,$LIBICONV,;t t
27667 s,@LTLIBICONV@,$LTLIBICONV,;t t
27668 s,@INTLBISON@,$INTLBISON,;t t
27669 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
27670 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
27671 s,@CATOBJEXT@,$CATOBJEXT,;t t
27672 s,@DATADIRNAME@,$DATADIRNAME,;t t
27673 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
27674 s,@GENCAT@,$GENCAT,;t t
27675 s,@INTLOBJS@,$INTLOBJS,;t t
27676 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
27677 s,@INTLLIBS@,$INTLLIBS,;t t
27678 s,@LIBINTL@,$LIBINTL,;t t
27679 s,@LTLIBINTL@,$LTLIBINTL,;t t
27680 s,@POSUB@,$POSUB,;t t
27681 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
27682 s,@INTL_DEP@,$INTL_DEP,;t t
27683 s,@INTL_INC@,$INTL_INC,;t t
27684 s,@LIBINTL_H@,$LIBINTL_H,;t t
27685 s,@SIGLIST_O@,$SIGLIST_O,;t t
27686 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
27687 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
27688 s,@JOBS_O@,$JOBS_O,;t t
27689 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
27690 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
27691 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
27692 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
27693 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
27694 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
27695 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
27696 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
27697 s,@incdir@,$incdir,;t t
27698 s,@BUILD_DIR@,$BUILD_DIR,;t t
27699 s,@ARFLAGS@,$ARFLAGS,;t t
27700 s,@BASHVERS@,$BASHVERS,;t t
27701 s,@RELSTATUS@,$RELSTATUS,;t t
27702 s,@DEBUG@,$DEBUG,;t t
27703 s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
27704 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
27705 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
27706 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
27707 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
27708 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27713 cat >>$CONFIG_STATUS <<\_ACEOF
27714 # Split the substitutions into bite-sized pieces for seds with
27715 # small command number limits, like on Digital OSF/1 and HP-UX.
27716 ac_max_sed_lines=48
27717 ac_sed_frag=1 # Number of current file.
27718 ac_beg=1 # First line for current file.
27719 ac_end=$ac_max_sed_lines # Line after last line for current file.
27722 while $ac_more_lines; do
27723 if test $ac_beg -gt 1; then
27724 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27726 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27728 if test ! -s $tmp/subs.frag; then
27729 ac_more_lines=false
27731 # The purpose of the label and of the branching condition is to
27732 # speed up the sed processing (if there are no `@' at all, there
27733 # is no need to browse any of the substitutions).
27734 # These are the two extra sed commands mentioned above.
27736 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27737 if test -z "$ac_sed_cmds"; then
27738 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27740 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27742 ac_sed_frag=`expr $ac_sed_frag + 1`
27744 ac_end=`expr $ac_end + $ac_max_sed_lines`
27747 if test -z "$ac_sed_cmds"; then
27750 fi # test -n "$CONFIG_FILES"
27753 cat >>$CONFIG_STATUS <<\_ACEOF
27754 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27755 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27757 - | *:- | *:-:* ) # input from stdin
27759 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27760 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27761 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27762 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27763 * ) ac_file_in=$ac_file.in ;;
27766 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27767 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27769 X"$ac_file" : 'X\(//\)[^/]' \| \
27770 X"$ac_file" : 'X\(//\)$' \| \
27771 X"$ac_file" : 'X\(/\)' \| \
27772 . : '\(.\)' 2>/dev/null ||
27774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27776 /^X\(\/\/\)$/{ s//\1/; q; }
27777 /^X\(\/\).*/{ s//\1/; q; }
27779 { if $as_mkdir_p; then
27784 while test ! -d "$as_dir"; do
27785 as_dirs="$as_dir $as_dirs"
27786 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27787 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27788 X"$as_dir" : 'X\(//\)[^/]' \| \
27789 X"$as_dir" : 'X\(//\)$' \| \
27790 X"$as_dir" : 'X\(/\)' \| \
27791 . : '\(.\)' 2>/dev/null ||
27793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27794 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27795 /^X\(\/\/\)$/{ s//\1/; q; }
27796 /^X\(\/\).*/{ s//\1/; q; }
27799 test ! -n "$as_dirs" || mkdir $as_dirs
27800 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27801 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27802 { (exit 1); exit 1; }; }; }
27806 if test "$ac_dir" != .; then
27807 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27808 # A "../" for each directory in $ac_dir_suffix.
27809 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27811 ac_dir_suffix= ac_top_builddir=
27815 .) # No --srcdir option. We are building in place.
27817 if test -z "$ac_top_builddir"; then
27820 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27822 [\\/]* | ?:[\\/]* ) # Absolute path.
27823 ac_srcdir=$srcdir$ac_dir_suffix;
27824 ac_top_srcdir=$srcdir ;;
27825 *) # Relative path.
27826 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27827 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27830 # Do not use `cd foo && pwd` to compute absolute paths, because
27831 # the directories may not exist.
27833 .) ac_abs_builddir="$ac_dir";;
27836 .) ac_abs_builddir=`pwd`;;
27837 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27838 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27841 case $ac_abs_builddir in
27842 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27844 case ${ac_top_builddir}. in
27845 .) ac_abs_top_builddir=$ac_abs_builddir;;
27846 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27847 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27850 case $ac_abs_builddir in
27851 .) ac_abs_srcdir=$ac_srcdir;;
27854 .) ac_abs_srcdir=$ac_abs_builddir;;
27855 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27856 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27859 case $ac_abs_builddir in
27860 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27862 case $ac_top_srcdir in
27863 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27864 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27865 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27871 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27872 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27875 if test x"$ac_file" != x-; then
27876 { echo "$as_me:$LINENO: creating $ac_file" >&5
27877 echo "$as_me: creating $ac_file" >&6;}
27880 # Let's still pretend it is `configure' which instantiates (i.e., don't
27881 # use $as_me), people would be surprised to read:
27882 # /* config.h. Generated by config.status. */
27883 if test x"$ac_file" = x-; then
27886 configure_input="$ac_file. "
27888 configure_input=$configure_input"Generated from `echo $ac_file_in |
27889 sed 's,.*/,,'` by configure."
27891 # First look for the input files in the build tree, otherwise in the
27893 ac_file_inputs=`IFS=:
27894 for f in $ac_file_in; do
27896 -) echo $tmp/stdin ;;
27898 # Absolute (can't be DOS-style, as IFS=:)
27899 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27900 echo "$as_me: error: cannot find input file: $f" >&2;}
27901 { (exit 1); exit 1; }; }
27904 if test -f "$f"; then
27907 elif test -f "$srcdir/$f"; then
27912 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27913 echo "$as_me: error: cannot find input file: $f" >&2;}
27914 { (exit 1); exit 1; }; }
27917 done` || { (exit 1); exit 1; }
27919 cat >>$CONFIG_STATUS <<_ACEOF
27923 cat >>$CONFIG_STATUS <<\_ACEOF
27925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27926 s,@configure_input@,$configure_input,;t t
27927 s,@srcdir@,$ac_srcdir,;t t
27928 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27929 s,@top_srcdir@,$ac_top_srcdir,;t t
27930 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27931 s,@builddir@,$ac_builddir,;t t
27932 s,@abs_builddir@,$ac_abs_builddir,;t t
27933 s,@top_builddir@,$ac_top_builddir,;t t
27934 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27935 s,@INSTALL@,$ac_INSTALL,;t t
27936 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27938 if test x"$ac_file" != x-; then
27939 mv $tmp/out $ac_file
27947 cat >>$CONFIG_STATUS <<\_ACEOF
27950 # CONFIG_HEADER section.
27953 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27954 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27956 # ac_d sets the value in "#define NAME VALUE" lines.
27957 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27958 ac_dB='[ ].*$,\1#\2'
27961 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27962 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27963 ac_uB='$,\1#\2define\3'
27967 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27970 - | *:- | *:-:* ) # input from stdin
27972 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27973 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27974 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27976 * ) ac_file_in=$ac_file.in ;;
27979 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27980 echo "$as_me: creating $ac_file" >&6;}
27982 # First look for the input files in the build tree, otherwise in the
27984 ac_file_inputs=`IFS=:
27985 for f in $ac_file_in; do
27987 -) echo $tmp/stdin ;;
27989 # Absolute (can't be DOS-style, as IFS=:)
27990 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27991 echo "$as_me: error: cannot find input file: $f" >&2;}
27992 { (exit 1); exit 1; }; }
27993 # Do quote $f, to prevent DOS paths from being IFS'd.
27996 if test -f "$f"; then
27999 elif test -f "$srcdir/$f"; then
28004 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28005 echo "$as_me: error: cannot find input file: $f" >&2;}
28006 { (exit 1); exit 1; }; }
28009 done` || { (exit 1); exit 1; }
28010 # Remove the trailing spaces.
28011 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
28015 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28016 # `conftest.undefs', that substitutes the proper values into
28017 # config.h.in to produce config.h. The first handles `#define'
28018 # templates, and the second `#undef' templates.
28019 # And first: Protect against being on the right side of a sed subst in
28020 # config.status. Protect against being in an unquoted here document
28021 # in config.status.
28022 rm -f conftest.defines conftest.undefs
28023 # Using a here document instead of a string reduces the quoting nightmare.
28024 # Putting comments in sed scripts is not portable.
28026 # `end' is used to avoid that the second main sed command (meant for
28027 # 0-ary CPP macros) applies to n-ary macro definitions.
28028 # See the Autoconf documentation for `clear'.
28029 cat >confdef2sed.sed <<\_ACEOF
28034 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28036 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28039 # If some macros were called several times there might be several times
28040 # the same #defines, which is useless. Nevertheless, we may not want to
28041 # sort them, since we want the *last* AC-DEFINE to be honored.
28042 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28043 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28044 rm -f confdef2sed.sed
28046 # This sed command replaces #undef with comments. This is necessary, for
28047 # example, in the case of _POSIX_SOURCE, which is predefined and required
28048 # on some systems where configure will not decide to define it.
28049 cat >>conftest.undefs <<\_ACEOF
28050 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28053 # Break up conftest.defines because some shells have a limit on the size
28054 # of here documents, and old seds have small limits too (100 cmds).
28055 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28056 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28057 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28058 echo ' :' >>$CONFIG_STATUS
28059 rm -f conftest.tail
28060 while grep . conftest.defines >/dev/null
28062 # Write a limited-size here document to $tmp/defines.sed.
28063 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28064 # Speed up: don't consider the non `#define' lines.
28065 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
28066 # Work around the forget-to-reset-the-flag bug.
28067 echo 't clr' >>$CONFIG_STATUS
28068 echo ': clr' >>$CONFIG_STATUS
28069 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28071 sed -f $tmp/defines.sed $tmp/in >$tmp/out
28073 mv $tmp/out $tmp/in
28075 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28076 rm -f conftest.defines
28077 mv conftest.tail conftest.defines
28079 rm -f conftest.defines
28080 echo ' fi # grep' >>$CONFIG_STATUS
28081 echo >>$CONFIG_STATUS
28083 # Break up conftest.undefs because some shells have a limit on the size
28084 # of here documents, and old seds have small limits too (100 cmds).
28085 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
28086 rm -f conftest.tail
28087 while grep . conftest.undefs >/dev/null
28089 # Write a limited-size here document to $tmp/undefs.sed.
28090 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28091 # Speed up: don't consider the non `#undef'
28092 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
28093 # Work around the forget-to-reset-the-flag bug.
28094 echo 't clr' >>$CONFIG_STATUS
28095 echo ': clr' >>$CONFIG_STATUS
28096 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28098 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28100 mv $tmp/out $tmp/in
28102 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28103 rm -f conftest.undefs
28104 mv conftest.tail conftest.undefs
28106 rm -f conftest.undefs
28108 cat >>$CONFIG_STATUS <<\_ACEOF
28109 # Let's still pretend it is `configure' which instantiates (i.e., don't
28110 # use $as_me), people would be surprised to read:
28111 # /* config.h. Generated by config.status. */
28112 if test x"$ac_file" = x-; then
28113 echo "/* Generated by configure. */" >$tmp/config.h
28115 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28117 cat $tmp/in >>$tmp/config.h
28119 if test x"$ac_file" != x-; then
28120 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28121 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28122 echo "$as_me: $ac_file is unchanged" >&6;}
28124 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28126 X"$ac_file" : 'X\(//\)[^/]' \| \
28127 X"$ac_file" : 'X\(//\)$' \| \
28128 X"$ac_file" : 'X\(/\)' \| \
28129 . : '\(.\)' 2>/dev/null ||
28131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28133 /^X\(\/\/\)$/{ s//\1/; q; }
28134 /^X\(\/\).*/{ s//\1/; q; }
28136 { if $as_mkdir_p; then
28141 while test ! -d "$as_dir"; do
28142 as_dirs="$as_dir $as_dirs"
28143 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28145 X"$as_dir" : 'X\(//\)[^/]' \| \
28146 X"$as_dir" : 'X\(//\)$' \| \
28147 X"$as_dir" : 'X\(/\)' \| \
28148 . : '\(.\)' 2>/dev/null ||
28150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28152 /^X\(\/\/\)$/{ s//\1/; q; }
28153 /^X\(\/\).*/{ s//\1/; q; }
28156 test ! -n "$as_dirs" || mkdir $as_dirs
28157 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28158 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28159 { (exit 1); exit 1; }; }; }
28162 mv $tmp/config.h $ac_file
28166 rm -f $tmp/config.h
28170 cat >>$CONFIG_STATUS <<\_ACEOF
28173 # CONFIG_COMMANDS section.
28175 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28176 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28177 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28178 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28179 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28180 X"$ac_dest" : 'X\(//\)[^/]' \| \
28181 X"$ac_dest" : 'X\(//\)$' \| \
28182 X"$ac_dest" : 'X\(/\)' \| \
28183 . : '\(.\)' 2>/dev/null ||
28185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28187 /^X\(\/\/\)$/{ s//\1/; q; }
28188 /^X\(\/\).*/{ s//\1/; q; }
28190 { if $as_mkdir_p; then
28195 while test ! -d "$as_dir"; do
28196 as_dirs="$as_dir $as_dirs"
28197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28199 X"$as_dir" : 'X\(//\)[^/]' \| \
28200 X"$as_dir" : 'X\(//\)$' \| \
28201 X"$as_dir" : 'X\(/\)' \| \
28202 . : '\(.\)' 2>/dev/null ||
28204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28206 /^X\(\/\/\)$/{ s//\1/; q; }
28207 /^X\(\/\).*/{ s//\1/; q; }
28210 test ! -n "$as_dirs" || mkdir $as_dirs
28211 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28212 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28213 { (exit 1); exit 1; }; }; }
28217 if test "$ac_dir" != .; then
28218 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28219 # A "../" for each directory in $ac_dir_suffix.
28220 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28222 ac_dir_suffix= ac_top_builddir=
28226 .) # No --srcdir option. We are building in place.
28228 if test -z "$ac_top_builddir"; then
28231 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28233 [\\/]* | ?:[\\/]* ) # Absolute path.
28234 ac_srcdir=$srcdir$ac_dir_suffix;
28235 ac_top_srcdir=$srcdir ;;
28236 *) # Relative path.
28237 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28238 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28241 # Do not use `cd foo && pwd` to compute absolute paths, because
28242 # the directories may not exist.
28244 .) ac_abs_builddir="$ac_dir";;
28247 .) ac_abs_builddir=`pwd`;;
28248 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28249 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28252 case $ac_abs_builddir in
28253 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28255 case ${ac_top_builddir}. in
28256 .) ac_abs_top_builddir=$ac_abs_builddir;;
28257 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28258 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28261 case $ac_abs_builddir in
28262 .) ac_abs_srcdir=$ac_srcdir;;
28265 .) ac_abs_srcdir=$ac_abs_builddir;;
28266 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28267 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28270 case $ac_abs_builddir in
28271 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28273 case $ac_top_srcdir in
28274 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28275 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28276 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28281 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28282 echo "$as_me: executing $ac_dest commands" >&6;}
28285 for ac_file in $CONFIG_FILES; do
28286 # Support "outfile[:infile[:infile...]]"
28288 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28290 # PO directories have a Makefile.in generated from Makefile.in.in.
28291 case "$ac_file" in */Makefile.in)
28292 # Adjust a relative srcdir.
28293 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28294 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28295 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28296 # In autoconf-2.13 it is called $ac_given_srcdir.
28297 # In autoconf-2.50 it is called $srcdir.
28298 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28299 case "$ac_given_srcdir" in
28300 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28301 /*) top_srcdir="$ac_given_srcdir" ;;
28302 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
28304 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28305 rm -f "$ac_dir/POTFILES"
28306 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28307 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28308 POMAKEFILEDEPS="POTFILES.in"
28309 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
28310 # on $ac_dir but don't depend on user-specified configuration
28312 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28313 # The LINGUAS file contains the set of available languages.
28314 if test -n "$OBSOLETE_ALL_LINGUAS"; then
28315 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28317 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28318 # Hide the ALL_LINGUAS assigment from automake.
28319 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28320 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28322 # The set of available languages was given in configure.in.
28323 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28325 case "$ac_given_srcdir" in
28327 *) srcdirpre='$(srcdir)/' ;;
28333 for lang in $ALL_LINGUAS; do
28334 POFILES="$POFILES $srcdirpre$lang.po"
28335 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28336 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28337 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28339 # CATALOGS depends on both $ac_dir and the user's LINGUAS
28340 # environment variable.
28342 if test -n "$ALL_LINGUAS"; then
28343 for presentlang in $ALL_LINGUAS; do
28345 if test "%UNSET%" != "$LINGUAS"; then
28346 desiredlanguages="$LINGUAS"
28348 desiredlanguages="$ALL_LINGUAS"
28350 for desiredlang in $desiredlanguages; do
28351 # Use the presentlang catalog if desiredlang is
28352 # a. equal to presentlang, or
28353 # b. a variant of presentlang (because in this case,
28354 # presentlang can be used as a fallback for messages
28355 # which are not translated in the desiredlang catalog).
28356 case "$desiredlang" in
28357 "$presentlang"*) useit=yes;;
28360 if test $useit = yes; then
28361 INST_LINGUAS="$INST_LINGUAS $presentlang"
28366 if test -n "$INST_LINGUAS"; then
28367 for lang in $INST_LINGUAS; do
28368 CATALOGS="$CATALOGS $lang.gmo"
28371 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28372 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"
28373 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28374 if test -f "$f"; then
28376 *.orig | *.bak | *~) ;;
28377 *) cat "$f" >> "$ac_dir/Makefile" ;;
28386 # Makefile uses this timestamp file to record whether config.h is up to date.
28387 echo timestamp > stamp-h
28393 cat >>$CONFIG_STATUS <<\_ACEOF
28395 { (exit 0); exit 0; }
28397 chmod +x $CONFIG_STATUS
28398 ac_clean_files=$ac_clean_files_save
28401 # configure is writing to config.log, and then calls config.status.
28402 # config.status does its own redirection, appending to config.log.
28403 # Unfortunately, on DOS this fails, as config.log is still kept open
28404 # by configure, so config.status won't be able to write to it; its
28405 # output is simply discarded. So we exec the FD to /dev/null,
28406 # effectively closing config.log, so it can be properly (re)opened and
28407 # appended to by config.status. When coming back to configure, we
28408 # need to make the FD available again.
28409 if test "$no_create" != yes; then
28411 ac_config_status_args=
28412 test "$silent" = yes &&
28413 ac_config_status_args="$ac_config_status_args --quiet"
28415 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28417 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28418 # would make configure fail if this is the last instruction.
28419 $ac_cs_success || { (exit 1); exit 1; }