2 # From configure.in for Bash 3.2, version 3.190.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for bash 3.2-release.
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-release'
274 PACKAGE_STRING
='bash 3.2-release'
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 LIBOBJS INTL_DEP INTL_INC LIBINTL_H SIGLIST_O TERMCAP_LIB TERMCAP_DEP JOBS_O SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS PROFILE_FLAGS incdir BUILD_DIR ARFLAGS BASHVERS RELSTATUS DEBUG MALLOC_DEBUG LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS LTLIBOBJS'
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-release 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-release:";;
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-release
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-release, which was
1057 generated by GNU Autoconf 2.59. Invocation command line was
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"
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
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
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}/share
/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
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
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. */
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
4122 if test "x$cross_compiling" = "xyes"; then
4125 cross_cache
=${srcdir}/cross-build
/cygwin32.cache
4128 cross_cache
=${srcdir}/cross-build
/cygwin32.cache
4131 cross_cache
=${srcdir}/cross-build
/x86-beos.cache
4133 *) echo "configure: cross-compiling for $host is not supported" >&2
4136 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4137 echo "loading cross-build cache file ${cross_cache}"
4141 SIGNAMES_O
='signames.o'
4142 CROSS_COMPILE
='-DCROSS_COMPILING'
4148 if test -z "$CC_FOR_BUILD"; then
4149 if test "x$cross_compiling" = "xno"; then
4150 CC_FOR_BUILD
='$(CC)'
4158 test -z "$CFLAGS" && CFLAGS
=-g auto_cflags
=1
4160 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O2"
4162 if test "$opt_profiling" = "yes"; then
4166 *) opt_static_link
=yes ;;
4168 DEBUG
= MALLOC_DEBUG
=
4171 if test "$opt_static_link" = yes; then
4172 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4173 if test -n "$GCC" ||
test "$ac_cv_c_compiler_gnu" = "yes"; then
4177 *) LDFLAGS
="$LDFLAGS -static" ;; # XXX experimental
4182 if test "X$cross_compiling" = "Xno"; then
4183 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
4184 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4186 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-""}
4187 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-""}
4190 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD
="-g"
4201 if test $ac_cv_c_compiler_gnu = yes; then
4202 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4203 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4204 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 ac_pattern
="Autoconf.*'x'"
4208 cat >conftest.
$ac_ext <<_ACEOF
4211 cat confdefs.h
>>conftest.
$ac_ext
4212 cat >>conftest.
$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4218 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
4219 ac_cv_prog_gcc_traditional
=yes
4221 ac_cv_prog_gcc_traditional
=no
4226 if test $ac_cv_prog_gcc_traditional = no
; then
4227 cat >conftest.
$ac_ext <<_ACEOF
4230 cat confdefs.h
>>conftest.
$ac_ext
4231 cat >>conftest.
$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
4238 ac_cv_prog_gcc_traditional
=yes
4244 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4245 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4246 if test $ac_cv_prog_gcc_traditional = yes; then
4247 CC
="$CC -traditional"
4253 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
4255 # If the user specified --with-installed-readline=PREFIX and PREFIX
4256 # is not `yes', set ac_cv_rl_prefix to PREFIX
4257 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix
=$opt_with_installed_readline
4260 if test "X$bash_cv_termcap_lib" = "X"; then
4263 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4264 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4267 if test "${bash_cv_termcap_lib+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 echo "$as_me:$LINENO: checking for tgetent" >&5
4271 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
4272 if test "${ac_cv_func_tgetent+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 cat >conftest.
$ac_ext <<_ACEOF
4278 cat confdefs.h
>>conftest.
$ac_ext
4279 cat >>conftest.
$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
4282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4283 #define tgetent innocuous_tgetent
4285 /* System header to define __stub macros and hopefully few prototypes,
4286 which can conflict with char tgetent (); below.
4287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 <limits.h> exists even on freestanding compilers. */
4291 # include <limits.h>
4293 # include <assert.h>
4298 /* Override any gcc2 internal prototype to avoid an error. */
4303 /* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4306 /* The GNU C library defines this for functions which it implements
4307 to always fail with ENOSYS. Some functions are actually named
4308 something starting with __ and the normal name is an alias. */
4309 #if defined (__stub_tgetent) || defined (__stub___tgetent)
4312 char (*f) () = tgetent;
4321 return f != tgetent;
4326 rm -f conftest.
$ac_objext conftest
$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328 (eval $ac_link) 2>conftest.er1
4330 grep -v '^ *+' conftest.er1
>conftest.err
4332 cat conftest.err
>&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try
='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try
='test -s conftest$ac_exeext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_func_tgetent
=yes
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.
$ac_ext >&5
4353 ac_cv_func_tgetent
=no
4355 rm -f conftest.err conftest.
$ac_objext \
4356 conftest
$ac_exeext conftest.
$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
4359 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
4360 if test $ac_cv_func_tgetent = yes; then
4361 bash_cv_termcap_lib
=libc
4363 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
4364 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4365 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 ac_check_lib_save_LIBS
=$LIBS
4369 LIBS
="-ltermcap $LIBS"
4370 cat >conftest.
$ac_ext <<_ACEOF
4373 cat confdefs.h
>>conftest.
$ac_ext
4374 cat >>conftest.
$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4377 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4392 rm -f conftest.
$ac_objext conftest
$ac_exeext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4394 (eval $ac_link) 2>conftest.er1
4396 grep -v '^ *+' conftest.er1
>conftest.err
4398 cat conftest.err
>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try
='test -z "$ac_c_werror_flag"
4402 || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try
='test -s conftest$ac_exeext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_lib_termcap_tgetent
=yes
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.
$ac_ext >&5
4419 ac_cv_lib_termcap_tgetent
=no
4421 rm -f conftest.err conftest.
$ac_objext \
4422 conftest
$ac_exeext conftest.
$ac_ext
4423 LIBS
=$ac_check_lib_save_LIBS
4425 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
4426 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4427 if test $ac_cv_lib_termcap_tgetent = yes; then
4428 bash_cv_termcap_lib
=libtermcap
4430 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
4431 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
4432 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 ac_check_lib_save_LIBS
=$LIBS
4436 LIBS
="-ltinfo $LIBS"
4437 cat >conftest.
$ac_ext <<_ACEOF
4440 cat confdefs.h
>>conftest.
$ac_ext
4441 cat >>conftest.
$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4444 /* Override any gcc2 internal prototype to avoid an error. */
4448 /* We use char because int might match the return type of a gcc2
4449 builtin and then its argument prototype would still apply. */
4459 rm -f conftest.
$ac_objext conftest
$ac_exeext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4461 (eval $ac_link) 2>conftest.er1
4463 grep -v '^ *+' conftest.er1
>conftest.err
4465 cat conftest.err
>&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try
='test -z "$ac_c_werror_flag"
4469 || test ! -s conftest.err'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try
='test -s conftest$ac_exeext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_lib_tinfo_tgetent
=yes
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.
$ac_ext >&5
4486 ac_cv_lib_tinfo_tgetent
=no
4488 rm -f conftest.err conftest.
$ac_objext \
4489 conftest
$ac_exeext conftest.
$ac_ext
4490 LIBS
=$ac_check_lib_save_LIBS
4492 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
4493 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
4494 if test $ac_cv_lib_tinfo_tgetent = yes; then
4495 bash_cv_termcap_lib
=libtinfo
4497 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
4498 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
4499 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 ac_check_lib_save_LIBS
=$LIBS
4503 LIBS
="-lcurses $LIBS"
4504 cat >conftest.
$ac_ext <<_ACEOF
4507 cat confdefs.h
>>conftest.
$ac_ext
4508 cat >>conftest.
$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4511 /* Override any gcc2 internal prototype to avoid an error. */
4515 /* We use char because int might match the return type of a gcc2
4516 builtin and then its argument prototype would still apply. */
4526 rm -f conftest.
$ac_objext conftest
$ac_exeext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4528 (eval $ac_link) 2>conftest.er1
4530 grep -v '^ *+' conftest.er1
>conftest.err
4532 cat conftest.err
>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try
='test -z "$ac_c_werror_flag"
4536 || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try
='test -s conftest$ac_exeext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 ac_cv_lib_curses_tgetent
=yes
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.
$ac_ext >&5
4553 ac_cv_lib_curses_tgetent
=no
4555 rm -f conftest.err conftest.
$ac_objext \
4556 conftest
$ac_exeext conftest.
$ac_ext
4557 LIBS
=$ac_check_lib_save_LIBS
4559 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
4560 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4561 if test $ac_cv_lib_curses_tgetent = yes; then
4562 bash_cv_termcap_lib
=libcurses
4564 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4565 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4566 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 ac_check_lib_save_LIBS
=$LIBS
4570 LIBS
="-lncurses $LIBS"
4571 cat >conftest.
$ac_ext <<_ACEOF
4574 cat confdefs.h
>>conftest.
$ac_ext
4575 cat >>conftest.
$ac_ext <<_ACEOF
4576 /* end confdefs.h. */
4578 /* Override any gcc2 internal prototype to avoid an error. */
4582 /* We use char because int might match the return type of a gcc2
4583 builtin and then its argument prototype would still apply. */
4593 rm -f conftest.
$ac_objext conftest
$ac_exeext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4595 (eval $ac_link) 2>conftest.er1
4597 grep -v '^ *+' conftest.er1
>conftest.err
4599 cat conftest.err
>&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try
='test -z "$ac_c_werror_flag"
4603 || test ! -s conftest.err'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try
='test -s conftest$ac_exeext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_cv_lib_ncurses_tgetent
=yes
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.
$ac_ext >&5
4620 ac_cv_lib_ncurses_tgetent
=no
4622 rm -f conftest.err conftest.
$ac_objext \
4623 conftest
$ac_exeext conftest.
$ac_ext
4624 LIBS
=$ac_check_lib_save_LIBS
4626 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4627 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4628 if test $ac_cv_lib_ncurses_tgetent = yes; then
4629 bash_cv_termcap_lib
=libncurses
4631 bash_cv_termcap_lib
=gnutermcap
4644 if test "X$_bash_needmsg" = "Xyes"; then
4645 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4646 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4648 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
4649 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
4650 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
4651 LDFLAGS
="$LDFLAGS -L./lib/termcap"
4652 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
4653 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
4654 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
4655 TERMCAP_LIB
=-ltermcap
4657 elif test $bash_cv_termcap_lib = libtinfo
; then
4660 elif test $bash_cv_termcap_lib = libncurses
; then
4661 TERMCAP_LIB
=-lncurses
4663 elif test $bash_cv_termcap_lib = libc
; then
4667 TERMCAP_LIB
=-lcurses
4674 echo "$as_me:$LINENO: checking version of installed readline library" >&5
4675 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
4677 # What a pain in the ass this is.
4679 # save cpp and ld options
4680 _save_CFLAGS
="$CFLAGS"
4681 _save_LDFLAGS
="$LDFLAGS"
4684 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
4685 # allows the caller to do something like $_rl_prefix=$withval if the user
4686 # specifies --with-installed-readline=PREFIX as an argument to configure
4688 if test -z "$ac_cv_rl_prefix"; then
4689 test "x$prefix" = xNONE
&& ac_cv_rl_prefix
=$ac_default_prefix || ac_cv_rl_prefix
=${prefix}
4692 eval ac_cv_rl_includedir
=${ac_cv_rl_prefix}/include
4693 eval ac_cv_rl_libdir
=${ac_cv_rl_prefix}/lib
4695 LIBS
="$LIBS -lreadline ${TERMCAP_LIB}"
4696 CFLAGS
="$CFLAGS -I${ac_cv_rl_includedir}"
4697 LDFLAGS
="$LDFLAGS -L${ac_cv_rl_libdir}"
4699 if test "${ac_cv_rl_version+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 if test "$cross_compiling" = yes; then
4703 ac_cv_rl_version
='4.2'
4705 cat >conftest.
$ac_ext <<_ACEOF
4708 cat confdefs.h
>>conftest.
$ac_ext
4709 cat >>conftest.
$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4713 #include <readline/readline.h>
4715 extern int rl_gnu_readline_p;
4720 fp = fopen("conftest.rlv", "w");
4723 if (rl_gnu_readline_p != 1)
4724 fprintf(fp, "0.0\n");
4726 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
4732 rm -f conftest
$ac_exeext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734 (eval $ac_link) 2>&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_rl_version
=`cat conftest.rlv`
4745 echo "$as_me: program exited with status $ac_status" >&5
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.
$ac_ext >&5
4750 ac_cv_rl_version
='0.0'
4752 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4757 CFLAGS
="$_save_CFLAGS"
4758 LDFLAGS
="$_save_LDFLAGS"
4765 case "$ac_cv_rl_version" in
4766 2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*)
4767 RL_MAJOR
=`echo $ac_cv_rl_version | sed 's:\..*$::'`
4768 RL_MINOR
=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
4774 [0-9][0-9]) _RL_MAJOR
=$RL_MAJOR ;;
4775 [0-9]) _RL_MAJOR
=0$RL_MAJOR ;;
4781 [0-9][0-9]) _RL_MINOR
=$RL_MINOR ;;
4782 [0-9]) _RL_MINOR
=0$RL_MINOR ;;
4786 RL_VERSION
="0x${_RL_MAJOR}${_RL_MINOR}"
4788 # Readline versions greater than 4.2 have these defines in readline.h
4790 if test $ac_cv_rl_version = '0.0' ; then
4791 { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
4792 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
4793 elif test $RL_MAJOR -gt 4 ||
{ test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
4794 # set these for use by the caller
4795 RL_PREFIX
=$ac_cv_rl_prefix
4796 RL_LIBDIR
=$ac_cv_rl_libdir
4797 RL_INCLUDEDIR
=$ac_cv_rl_includedir
4798 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4799 echo "${ECHO_T}$ac_cv_rl_version" >&6
4803 cat >>confdefs.h
<<_ACEOF
4804 #define RL_READLINE_VERSION $RL_VERSION
4808 cat >>confdefs.h
<<_ACEOF
4809 #define RL_VERSION_MAJOR $RL_MAJOR
4813 cat >>confdefs.h
<<_ACEOF
4814 #define RL_VERSION_MINOR $RL_MINOR
4822 # set these for use by the caller
4823 RL_PREFIX
=$ac_cv_rl_prefix
4824 RL_LIBDIR
=$ac_cv_rl_libdir
4825 RL_INCLUDEDIR
=$ac_cv_rl_includedir
4827 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4828 echo "${ECHO_T}$ac_cv_rl_version" >&6
4833 case "$ac_cv_rl_version" in
4835 *) opt_with_installed_readline
=no
4836 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
4837 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
4838 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
4839 echo "$as_me: WARNING: using private bash version" >&2;}
4845 if test $opt_readline = yes; then
4846 cat >>confdefs.h
<<\_ACEOF
4850 if test "$opt_with_installed_readline" != "no" ; then
4851 case "$opt_with_installed_readline" in
4853 *) case "$RL_INCLUDEDIR" in
4855 *) RL_INCLUDE
='-I${RL_INCLUDEDIR}' ;;
4860 READLINE_LIB
=-lreadline
4861 # section for OS versions that don't allow unresolved symbols
4862 # to be compiled into dynamic libraries.
4864 cygwin
*) TILDE_LIB
= ;;
4867 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
4868 READLINE_DEP
='$(READLINE_LIBRARY)'
4869 # section for OS versions that ship an older/broken version of
4870 # readline as a standard dynamic library and don't allow a
4871 # static version specified as -llibname to override the
4873 case "${host_os}" in
4874 darwin8
*) READLINE_LIB
='${READLINE_LIBRARY}' ;;
4875 *) READLINE_LIB
=-lreadline ;;
4879 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
4880 READLINE_LIB
= READLINE_DEP
=
4882 if test $opt_history = yes ||
test $opt_bang_history = yes; then
4883 if test $opt_history = yes; then
4884 cat >>confdefs.h
<<\_ACEOF
4889 if test $opt_bang_history = yes; then
4890 cat >>confdefs.h
<<\_ACEOF
4891 #define BANG_HISTORY 1
4895 if test "$opt_with_installed_readline" != "no"; then
4896 HIST_LIBDIR
=$RL_LIBDIR
4898 HISTORY_LIB
=-lhistory
4899 case "$opt_with_installed_readline" in
4901 *) case "$RL_INCLUDEDIR" in
4903 *) RL_INCLUDE
='-I${RL_INCLUDEDIR}' ;;
4908 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
4909 HISTORY_DEP
='$(HISTORY_LIBRARY)'
4910 # section for OS versions that ship an older version of
4911 # readline as a standard dynamic library and don't allow a
4912 # static version specified as -llibname to override the
4914 case "${host_os}" in
4915 darwin8
*) HISTORY_LIB
='${HISTORY_LIBRARY}' ;;
4916 *) HISTORY_LIB
=-lhistory ;;
4920 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
4921 HISTORY_LIB
= HISTORY_DEP
=
4934 # Find a good install program. We prefer a C program (faster),
4935 # so one script is as good as another. But avoid the broken or
4936 # incompatible versions:
4937 # SysV /etc/install, /usr/sbin/install
4938 # SunOS /usr/etc/install
4939 # IRIX /sbin/install
4941 # AmigaOS /C/install, which installs bootblocks on floppy discs
4942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4945 # OS/2's system install, which has a completely different semantic
4946 # ./install, which can be erroneously created by make from ./install.sh.
4947 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4948 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4949 if test -z "$INSTALL"; then
4950 if test "${ac_cv_path_install+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4957 test -z "$as_dir" && as_dir
=.
4958 # Account for people who put trailing slashes in PATH elements.
4960 .
/ | .
// |
/cC
/* | \
4961 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4962 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4965 # OSF1 and SCO ODT 3.0 have their own names for install.
4966 # Don't use installbsd from OSF since it installs stuff as root
4968 for ac_prog
in ginstall scoinst
install; do
4969 for ac_exec_ext
in '' $ac_executable_extensions; do
4970 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4971 if test $ac_prog = install &&
4972 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4973 # AIX install. It has an incompatible calling convention.
4975 elif test $ac_prog = install &&
4976 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4977 # program-specific install script used by HP pwplus--don't use.
4980 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4992 if test "${ac_cv_path_install+set}" = set; then
4993 INSTALL
=$ac_cv_path_install
4995 # As a last resort, use the slow shell script. We don't cache a
4996 # path for INSTALL within a source directory, because that will
4997 # break other packages using the cache if that directory is
4998 # removed, or if the path is relative.
4999 INSTALL
=$ac_install_sh
5002 echo "$as_me:$LINENO: result: $INSTALL" >&5
5003 echo "${ECHO_T}$INSTALL" >&6
5005 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5006 # It thinks the first close brace ends the variable substitution.
5007 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5009 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5011 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5013 # Extract the first word of "ar", so it can be a program name with args.
5014 set dummy
ar; ac_word
=$2
5015 echo "$as_me:$LINENO: checking for $ac_word" >&5
5016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017 if test "${ac_cv_prog_AR+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 if test -n "$AR"; then
5021 ac_cv_prog_AR
="$AR" # Let the user override the test.
5023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir
=.
5028 for ac_exec_ext
in '' $ac_executable_extensions; do
5029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
5041 if test -n "$AR"; then
5042 echo "$as_me:$LINENO: result: $AR" >&5
5043 echo "${ECHO_T}$AR" >&6
5045 echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5049 test -n "$ARFLAGS" || ARFLAGS
="cr"
5050 if test -n "$ac_tool_prefix"; then
5051 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5052 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5053 echo "$as_me:$LINENO: checking for $ac_word" >&5
5054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5055 if test "${ac_cv_prog_RANLIB+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 if test -n "$RANLIB"; then
5059 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir
=.
5066 for ac_exec_ext
in '' $ac_executable_extensions; do
5067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 RANLIB
=$ac_cv_prog_RANLIB
5078 if test -n "$RANLIB"; then
5079 echo "$as_me:$LINENO: result: $RANLIB" >&5
5080 echo "${ECHO_T}$RANLIB" >&6
5082 echo "$as_me:$LINENO: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5087 if test -z "$ac_cv_prog_RANLIB"; then
5088 ac_ct_RANLIB
=$RANLIB
5089 # Extract the first word of "ranlib", so it can be a program name with args.
5090 set dummy ranlib
; ac_word
=$2
5091 echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 if test -n "$ac_ct_RANLIB"; then
5097 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir
=.
5104 for ac_exec_ext
in '' $ac_executable_extensions; do
5105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5116 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5117 if test -n "$ac_ct_RANLIB"; then
5118 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5119 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5121 echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5125 RANLIB
=$ac_ct_RANLIB
5127 RANLIB
="$ac_cv_prog_RANLIB"
5130 for ac_prog
in 'bison -y' byacc
5132 # Extract the first word of "$ac_prog", so it can be a program name with args.
5133 set dummy
$ac_prog; ac_word
=$2
5134 echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5136 if test "${ac_cv_prog_YACC+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 if test -n "$YACC"; then
5140 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir
=.
5147 for ac_exec_ext
in '' $ac_executable_extensions; do
5148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_prog_YACC
="$ac_prog"
5150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 YACC
=$ac_cv_prog_YACC
5159 if test -n "$YACC"; then
5160 echo "$as_me:$LINENO: result: $YACC" >&5
5161 echo "${ECHO_T}$YACC" >&6
5163 echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6
5167 test -n "$YACC" && break
5169 test -n "$YACC" || YACC
="yacc"
5171 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5172 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5173 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
5174 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 cat >conftest.
make <<\_ACEOF
5179 @
echo 'ac_maketemp="$(MAKE)"'
5181 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5182 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5183 if test -n "$ac_maketemp"; then
5184 eval ac_cv_prog_make_
${ac_make}_set
=yes
5186 eval ac_cv_prog_make_
${ac_make}_set
=no
5190 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5191 echo "$as_me:$LINENO: result: yes" >&5
5192 echo "${ECHO_T}yes" >&6
5195 echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6
5197 SET_MAKE
="MAKE=${MAKE-make}"
5202 opennt
*|interix
*) MAKE_SHELL
="$INTERIX_ROOT/bin/sh" ;;
5203 *) MAKE_SHELL
=/bin
/sh
;;
5207 if test x
$SIZE = x
; then
5208 if test x
$ac_tool_prefix = x
; then
5211 SIZE
=${ac_tool_prefix}size
5212 save_IFS
=$IFS ; IFS
=:
5214 for dir
in $PATH; do
5215 if test -x $dir/$SIZE ; then
5220 if test $size_found -eq 0; then
5228 cat >>confdefs.h
<<\_ACEOF
5229 #define _GNU_SOURCE 1
5233 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5234 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5235 if test "${ac_cv_c_const+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 cat >conftest.
$ac_ext <<_ACEOF
5241 cat confdefs.h
>>conftest.
$ac_ext
5242 cat >>conftest.
$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5248 /* FIXME: Include the comments suggested by Paul. */
5250 /* Ultrix mips cc rejects this. */
5251 typedef int charset[2];
5253 /* SunOS 4.1.1 cc rejects this. */
5254 char const *const *ccp;
5256 /* NEC SVR4.0.2 mips cc rejects this. */
5257 struct point {int x, y;};
5258 static struct point const zero = {0,0};
5259 /* AIX XL C 1.02.0.0 rejects this.
5260 It does not let you subtract one const X* pointer from another in
5261 an arm of an if-expression whose if-part is not a constant
5263 const char *g = "string";
5264 ccp = &g + (g ? g-g : 0);
5265 /* HPUX 7.0 cc rejects these. */
5268 ccp = (char const *const *) p;
5269 { /* SCO 3.2v4 cc rejects this. */
5271 char const *s = 0 ? (char *) 0 : (char const *) 0;
5275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5277 const int *foo = &x[0];
5280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5281 typedef const int *iptr;
5285 { /* AIX XL C 1.02.0.0 rejects this saying
5286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5287 struct s { int j; const int *ap[3]; };
5288 struct s *b; b->j = 5;
5290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5299 rm -f conftest.
$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301 (eval $ac_compile) 2>conftest.er1
5303 grep -v '^ *+' conftest.er1
>conftest.err
5305 cat conftest.err
>&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try
='test -z "$ac_c_werror_flag"
5309 || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try
='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.
$ac_ext >&5
5328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5330 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5331 echo "${ECHO_T}$ac_cv_c_const" >&6
5332 if test $ac_cv_c_const = no
; then
5334 cat >>confdefs.h
<<\_ACEOF
5340 echo "$as_me:$LINENO: checking for inline" >&5
5341 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5342 if test "${ac_cv_c_inline+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 for ac_kw
in inline __inline__ __inline
; do
5347 cat >conftest.
$ac_ext <<_ACEOF
5350 cat confdefs.h
>>conftest.
$ac_ext
5351 cat >>conftest.
$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5355 static $ac_kw foo_t static_foo () {return 0; }
5356 $ac_kw foo_t foo () {return 0; }
5360 rm -f conftest.
$ac_objext
5361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362 (eval $ac_compile) 2>conftest.er1
5364 grep -v '^ *+' conftest.er1
>conftest.err
5366 cat conftest.err
>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } &&
5369 { ac_try
='test -z "$ac_c_werror_flag"
5370 || test ! -s conftest.err'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; } &&
5376 { ac_try
='test -s conftest.$ac_objext'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 ac_cv_c_inline
=$ac_kw; break
5384 echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.
$ac_ext >&5
5388 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5392 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5393 echo "${ECHO_T}$ac_cv_c_inline" >&6
5396 case $ac_cv_c_inline in
5399 case $ac_cv_c_inline in
5401 *) ac_val
=$ac_cv_c_inline;;
5403 cat >>confdefs.h
<<_ACEOF
5405 #define inline $ac_val
5411 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5412 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5413 if test "${ac_cv_c_bigendian+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 # See if sys/param.h defines the BYTE_ORDER macro.
5417 cat >conftest.
$ac_ext <<_ACEOF
5420 cat confdefs.h
>>conftest.
$ac_ext
5421 cat >>conftest.
$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 #include <sys/types.h>
5424 #include <sys/param.h>
5429 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5437 rm -f conftest.
$ac_objext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439 (eval $ac_compile) 2>conftest.er1
5441 grep -v '^ *+' conftest.er1
>conftest.err
5443 cat conftest.err
>&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try
='test -z "$ac_c_werror_flag"
5447 || test ! -s conftest.err'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try
='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 # It does; now see whether it defined to BIG_ENDIAN or not.
5460 cat >conftest.
$ac_ext <<_ACEOF
5463 cat confdefs.h
>>conftest.
$ac_ext
5464 cat >>conftest.
$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #include <sys/types.h>
5467 #include <sys/param.h>
5472 #if BYTE_ORDER != BIG_ENDIAN
5480 rm -f conftest.
$ac_objext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5482 (eval $ac_compile) 2>conftest.er1
5484 grep -v '^ *+' conftest.er1
>conftest.err
5486 cat conftest.err
>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try
='test -z "$ac_c_werror_flag"
5490 || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try
='test -s conftest.$ac_objext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 ac_cv_c_bigendian
=yes
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.
$ac_ext >&5
5507 ac_cv_c_bigendian
=no
5509 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.
$ac_ext >&5
5514 # It does not; compile a test program.
5515 if test "$cross_compiling" = yes; then
5516 # try to guess the endianness by grepping values into an object file
5517 ac_cv_c_bigendian
=unknown
5518 cat >conftest.
$ac_ext <<_ACEOF
5521 cat confdefs.h
>>conftest.
$ac_ext
5522 cat >>conftest.
$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5525 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5526 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5527 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5528 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5529 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5533 _ascii (); _ebcdic ();
5538 rm -f conftest.
$ac_objext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540 (eval $ac_compile) 2>conftest.er1
5542 grep -v '^ *+' conftest.er1
>conftest.err
5544 cat conftest.err
>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try
='test -z "$ac_c_werror_flag"
5548 || test ! -s conftest.err'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; } &&
5554 { ac_try
='test -s conftest.$ac_objext'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5560 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5561 ac_cv_c_bigendian
=yes
5563 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5564 if test "$ac_cv_c_bigendian" = unknown
; then
5565 ac_cv_c_bigendian
=no
5567 # finding both strings is unlikely to happen, but who knows?
5568 ac_cv_c_bigendian
=unknown
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.
$ac_ext >&5
5576 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5578 cat >conftest.
$ac_ext <<_ACEOF
5581 cat confdefs.h
>>conftest.
$ac_ext
5582 cat >>conftest.
$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5587 /* Are we little or big endian? From Harbison&Steele. */
5591 char c[sizeof (long)];
5594 exit (u.c[sizeof (long) - 1] == 1);
5597 rm -f conftest
$ac_exeext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5599 (eval $ac_link) 2>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_cv_c_bigendian
=no
5610 echo "$as_me: program exited with status $ac_status" >&5
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.
$ac_ext >&5
5615 ac_cv_c_bigendian
=yes
5617 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5622 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5623 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5624 case $ac_cv_c_bigendian in
5627 cat >>confdefs.h
<<\_ACEOF
5628 #define WORDS_BIGENDIAN 1
5634 { { echo "$as_me:$LINENO: error: unknown endianness
5635 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5636 echo "$as_me: error: unknown endianness
5637 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5638 { (exit 1); exit 1; }; } ;;
5641 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5642 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
5643 if test "${ac_cv_c_stringize+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 cat >conftest.
$ac_ext <<_ACEOF
5649 cat confdefs.h
>>conftest.
$ac_ext
5650 cat >>conftest.
$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5654 char *s = x(teststring);
5656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5657 $EGREP "#teststring" >/dev
/null
2>&1; then
5658 ac_cv_c_stringize
=no
5660 ac_cv_c_stringize
=yes
5665 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5666 echo "${ECHO_T}$ac_cv_c_stringize" >&6
5667 if test $ac_cv_c_stringize = yes; then
5669 cat >>confdefs.h
<<\_ACEOF
5670 #define HAVE_STRINGIZE 1
5675 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5676 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5677 if test "${ac_cv_c_long_double+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 cat >conftest.
$ac_ext <<_ACEOF
5683 cat confdefs.h
>>conftest.
$ac_ext
5684 cat >>conftest.
$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5687 long double foo = 0.0;
5691 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5692 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5693 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5700 rm -f conftest.
$ac_objext
5701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5702 (eval $ac_compile) 2>conftest.er1
5704 grep -v '^ *+' conftest.er1
>conftest.err
5706 cat conftest.err
>&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } &&
5709 { ac_try
='test -z "$ac_c_werror_flag"
5710 || test ! -s conftest.err'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; } &&
5716 { ac_try
='test -s conftest.$ac_objext'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; }; then
5722 ac_cv_c_long_double
=yes
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.
$ac_ext >&5
5727 ac_cv_c_long_double
=no
5729 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5731 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5732 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5733 if test $ac_cv_c_long_double = yes; then
5735 cat >>confdefs.h
<<\_ACEOF
5736 #define HAVE_LONG_DOUBLE 1
5741 echo "$as_me:$LINENO: checking for function prototypes" >&5
5742 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5743 if test "$ac_cv_prog_cc_stdc" != no
; then
5744 echo "$as_me:$LINENO: result: yes" >&5
5745 echo "${ECHO_T}yes" >&6
5747 cat >>confdefs.h
<<\_ACEOF
5748 #define PROTOTYPES 1
5752 cat >>confdefs.h
<<\_ACEOF
5753 #define __PROTOTYPES 1
5757 echo "$as_me:$LINENO: result: no" >&5
5758 echo "${ECHO_T}no" >&6
5762 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5763 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5764 if test "${ac_cv_c_char_unsigned+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 cat >conftest.
$ac_ext <<_ACEOF
5770 cat confdefs.h
>>conftest.
$ac_ext
5771 cat >>conftest.
$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 $ac_includes_default
5777 static int test_array [1 - 2 * !(((char) -1) < 0)];
5784 rm -f conftest.
$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>conftest.er1
5788 grep -v '^ *+' conftest.er1
>conftest.err
5790 cat conftest.err
>&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try
='test -z "$ac_c_werror_flag"
5794 || test ! -s conftest.err'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try
='test -s conftest.$ac_objext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_cv_c_char_unsigned
=no
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.
$ac_ext >&5
5811 ac_cv_c_char_unsigned
=yes
5813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5815 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5816 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5817 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5818 cat >>confdefs.h
<<\_ACEOF
5819 #define __CHAR_UNSIGNED__ 1
5827 if test -n "$ac_aux_dir"; then
5828 case "$ac_aux_dir" in
5829 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
5830 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5833 if test -z "$MKINSTALLDIRS"; then
5834 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
5839 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5840 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5841 # Check whether --enable-nls or --disable-nls was given.
5842 if test "${enable_nls+set}" = set; then
5843 enableval
="$enable_nls"
5848 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5849 echo "${ECHO_T}$USE_NLS" >&6
5856 # Prepare PATH_SEPARATOR.
5857 # The user is always right.
5858 if test "${PATH_SEPARATOR+set}" != set; then
5859 echo "#! /bin/sh" >conf$$.sh
5860 echo "exit 0" >>conf$$.sh
5862 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5870 # Find out how to test for executable files. Don't use a zero-byte file,
5871 # as systems may use methods other than mode bits to determine executability.
5872 cat >conf$$.
file <<_ASEOF
5876 chmod +x conf$$.
file
5877 if test -x conf$$.
file >/dev
/null
2>&1; then
5878 ac_executable_p
="test -x"
5880 ac_executable_p
="test -f"
5884 # Extract the first word of "msgfmt", so it can be a program name with args.
5885 set dummy msgfmt
; ac_word
=$2
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888 if test "${ac_cv_path_MSGFMT+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5896 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
5897 for ac_dir
in $PATH; do
5899 test -z "$ac_dir" && ac_dir
=.
5900 for ac_exec_ext
in '' $ac_executable_extensions; do
5901 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5902 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
5903 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
5904 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
5911 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
5915 MSGFMT
="$ac_cv_path_MSGFMT"
5916 if test "$MSGFMT" != ":"; then
5917 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5918 echo "${ECHO_T}$MSGFMT" >&6
5920 echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6
5924 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5925 set dummy gmsgfmt
; ac_word
=$2
5926 echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir
=.
5941 for ac_exec_ext
in '' $ac_executable_extensions; do
5942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5954 GMSGFMT
=$ac_cv_path_GMSGFMT
5956 if test -n "$GMSGFMT"; then
5957 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5958 echo "${ECHO_T}$GMSGFMT" >&6
5960 echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5966 # Prepare PATH_SEPARATOR.
5967 # The user is always right.
5968 if test "${PATH_SEPARATOR+set}" != set; then
5969 echo "#! /bin/sh" >conf$$.sh
5970 echo "exit 0" >>conf$$.sh
5972 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5980 # Find out how to test for executable files. Don't use a zero-byte file,
5981 # as systems may use methods other than mode bits to determine executability.
5982 cat >conf$$.
file <<_ASEOF
5986 chmod +x conf$$.
file
5987 if test -x conf$$.
file >/dev
/null
2>&1; then
5988 ac_executable_p
="test -x"
5990 ac_executable_p
="test -f"
5994 # Extract the first word of "xgettext", so it can be a program name with args.
5995 set dummy xgettext
; ac_word
=$2
5996 echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5998 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6006 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6007 for ac_dir
in $PATH; do
6009 test -z "$ac_dir" && ac_dir
=.
6010 for ac_exec_ext
in '' $ac_executable_extensions; do
6011 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6012 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
6013 (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
6014 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
6021 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6025 XGETTEXT
="$ac_cv_path_XGETTEXT"
6026 if test "$XGETTEXT" != ":"; then
6027 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6028 echo "${ECHO_T}$XGETTEXT" >&6
6030 echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6
6037 # Prepare PATH_SEPARATOR.
6038 # The user is always right.
6039 if test "${PATH_SEPARATOR+set}" != set; then
6040 echo "#! /bin/sh" >conf$$.sh
6041 echo "exit 0" >>conf$$.sh
6043 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6051 # Find out how to test for executable files. Don't use a zero-byte file,
6052 # as systems may use methods other than mode bits to determine executability.
6053 cat >conf$$.
file <<_ASEOF
6057 chmod +x conf$$.
file
6058 if test -x conf$$.
file >/dev
/null
2>&1; then
6059 ac_executable_p
="test -x"
6061 ac_executable_p
="test -f"
6065 # Extract the first word of "msgmerge", so it can be a program name with args.
6066 set dummy msgmerge
; ac_word
=$2
6067 echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6069 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
6077 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6078 for ac_dir
in $PATH; do
6080 test -z "$ac_dir" && ac_dir
=.
6081 for ac_exec_ext
in '' $ac_executable_extensions; do
6082 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6083 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
6084 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
6091 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
6095 MSGMERGE
="$ac_cv_path_MSGMERGE"
6096 if test "$MSGMERGE" != ":"; then
6097 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6098 echo "${ECHO_T}$MSGMERGE" >&6
6100 echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6
6105 if test "$GMSGFMT" != ":"; then
6106 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
6107 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6110 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6111 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6112 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6117 if test "$XGETTEXT" != ":"; then
6118 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
6119 (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
6122 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6123 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6129 ac_config_commands
="$ac_config_commands default-1"
6132 echo "$as_me:$LINENO: checking for off_t" >&5
6133 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6134 if test "${ac_cv_type_off_t+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 cat >conftest.
$ac_ext <<_ACEOF
6140 cat confdefs.h
>>conftest.
$ac_ext
6141 cat >>conftest.
$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 $ac_includes_default
6155 rm -f conftest.
$ac_objext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6157 (eval $ac_compile) 2>conftest.er1
6159 grep -v '^ *+' conftest.er1
>conftest.err
6161 cat conftest.err
>&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try
='test -z "$ac_c_werror_flag"
6165 || test ! -s conftest.err'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try
='test -s conftest.$ac_objext'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 ac_cv_type_off_t
=yes
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.
$ac_ext >&5
6184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6186 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6187 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6188 if test $ac_cv_type_off_t = yes; then
6192 cat >>confdefs.h
<<_ACEOF
6198 echo "$as_me:$LINENO: checking for size_t" >&5
6199 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6200 if test "${ac_cv_type_size_t+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 cat >conftest.
$ac_ext <<_ACEOF
6206 cat confdefs.h
>>conftest.
$ac_ext
6207 cat >>conftest.
$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 $ac_includes_default
6215 if (sizeof (size_t))
6221 rm -f conftest.
$ac_objext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223 (eval $ac_compile) 2>conftest.er1
6225 grep -v '^ *+' conftest.er1
>conftest.err
6227 cat conftest.err
>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try
='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try
='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_cv_type_size_t
=yes
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.
$ac_ext >&5
6248 ac_cv_type_size_t
=no
6250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6252 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6253 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6254 if test $ac_cv_type_size_t = yes; then
6258 cat >>confdefs.h
<<_ACEOF
6259 #define size_t unsigned
6264 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6265 # for constant arguments. Useless!
6266 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6267 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6268 if test "${ac_cv_working_alloca_h+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 cat >conftest.
$ac_ext <<_ACEOF
6274 cat confdefs.h
>>conftest.
$ac_ext
6275 cat >>conftest.
$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6281 char *p = (char *) alloca (2 * sizeof (int));
6286 rm -f conftest.
$ac_objext conftest
$ac_exeext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6288 (eval $ac_link) 2>conftest.er1
6290 grep -v '^ *+' conftest.er1
>conftest.err
6292 cat conftest.err
>&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try
='test -z "$ac_c_werror_flag"
6296 || test ! -s conftest.err'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; } &&
6302 { ac_try
='test -s conftest$ac_exeext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_working_alloca_h
=yes
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.
$ac_ext >&5
6313 ac_cv_working_alloca_h
=no
6315 rm -f conftest.err conftest.
$ac_objext \
6316 conftest
$ac_exeext conftest.
$ac_ext
6318 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6319 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6320 if test $ac_cv_working_alloca_h = yes; then
6322 cat >>confdefs.h
<<\_ACEOF
6323 #define HAVE_ALLOCA_H 1
6328 echo "$as_me:$LINENO: checking for alloca" >&5
6329 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6330 if test "${ac_cv_func_alloca_works+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 cat >conftest.
$ac_ext <<_ACEOF
6336 cat confdefs.h
>>conftest.
$ac_ext
6337 cat >>conftest.
$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6340 # define alloca __builtin_alloca
6343 # include <malloc.h>
6344 # define alloca _alloca
6347 # include <alloca.h>
6352 # ifndef alloca /* predefined by HP cc +Olibcalls */
6363 char *p = (char *) alloca (1);
6368 rm -f conftest.
$ac_objext conftest
$ac_exeext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6370 (eval $ac_link) 2>conftest.er1
6372 grep -v '^ *+' conftest.er1
>conftest.err
6374 cat conftest.err
>&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try
='test -z "$ac_c_werror_flag"
6378 || test ! -s conftest.err'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; } &&
6384 { ac_try
='test -s conftest$ac_exeext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_cv_func_alloca_works
=yes
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.
$ac_ext >&5
6395 ac_cv_func_alloca_works
=no
6397 rm -f conftest.err conftest.
$ac_objext \
6398 conftest
$ac_exeext conftest.
$ac_ext
6400 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6401 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6403 if test $ac_cv_func_alloca_works = yes; then
6405 cat >>confdefs.h
<<\_ACEOF
6406 #define HAVE_ALLOCA 1
6410 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6411 # that cause trouble. Some versions do not even contain alloca or
6412 # contain a buggy version. If you still want to use their alloca,
6413 # use ar to extract alloca.o from them instead of compiling alloca.c.
6415 ALLOCA
=alloca.
$ac_objext
6417 cat >>confdefs.h
<<\_ACEOF
6422 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6423 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6424 if test "${ac_cv_os_cray+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 cat >conftest.
$ac_ext <<_ACEOF
6430 cat confdefs.h
>>conftest.
$ac_ext
6431 cat >>conftest.
$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6433 #if defined(CRAY) && ! defined(CRAY2)
6440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6441 $EGREP "webecray" >/dev
/null
2>&1; then
6449 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6450 echo "${ECHO_T}$ac_cv_os_cray" >&6
6451 if test $ac_cv_os_cray = yes; then
6452 for ac_func
in _getb67 GETB67 getb67
; do
6453 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6454 echo "$as_me:$LINENO: checking for $ac_func" >&5
6455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6456 if eval "test \"\${$as_ac_var+set}\" = set"; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 cat >conftest.
$ac_ext <<_ACEOF
6462 cat confdefs.h
>>conftest.
$ac_ext
6463 cat >>conftest.
$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6467 #define $ac_func innocuous_$ac_func
6469 /* System header to define __stub macros and hopefully few prototypes,
6470 which can conflict with char $ac_func (); below.
6471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6472 <limits.h> exists even on freestanding compilers. */
6475 # include <limits.h>
6477 # include <assert.h>
6482 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */
6490 /* The GNU C library defines this for functions which it implements
6491 to always fail with ENOSYS. Some functions are actually named
6492 something starting with __ and the normal name is an alias. */
6493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6496 char (*f) () = $ac_func;
6505 return f != $ac_func;
6510 rm -f conftest.
$ac_objext conftest
$ac_exeext
6511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6512 (eval $ac_link) 2>conftest.er1
6514 grep -v '^ *+' conftest.er1
>conftest.err
6516 cat conftest.err
>&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } &&
6519 { ac_try
='test -z "$ac_c_werror_flag"
6520 || test ! -s conftest.err'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; } &&
6526 { ac_try
='test -s conftest$ac_exeext'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 eval "$as_ac_var=yes"
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.
$ac_ext >&5
6537 eval "$as_ac_var=no"
6539 rm -f conftest.err conftest.
$ac_objext \
6540 conftest
$ac_exeext conftest.
$ac_ext
6542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6544 if test `eval echo '${'$as_ac_var'}'` = yes; then
6546 cat >>confdefs.h
<<_ACEOF
6547 #define CRAY_STACKSEG_END $ac_func
6556 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6557 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6558 if test "${ac_cv_c_stack_direction+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 if test "$cross_compiling" = yes; then
6562 ac_cv_c_stack_direction
=0
6564 cat >conftest.
$ac_ext <<_ACEOF
6567 cat confdefs.h
>>conftest.
$ac_ext
6568 cat >>conftest.
$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6571 find_stack_direction ()
6573 static char *addr = 0;
6578 return find_stack_direction ();
6581 return (&dummy > addr) ? 1 : -1;
6587 exit (find_stack_direction () < 0);
6590 rm -f conftest
$ac_exeext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6592 (eval $ac_link) 2>&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 ac_cv_c_stack_direction
=1
6603 echo "$as_me: program exited with status $ac_status" >&5
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.
$ac_ext >&5
6608 ac_cv_c_stack_direction
=-1
6610 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6613 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6614 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6616 cat >>confdefs.h
<<_ACEOF
6617 #define STACK_DIRECTION $ac_cv_c_stack_direction
6625 for ac_header
in stdlib.h unistd.h
6627 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6629 echo "$as_me:$LINENO: checking for $ac_header" >&5
6630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6637 # Is the header compilable?
6638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6640 cat >conftest.
$ac_ext <<_ACEOF
6643 cat confdefs.h
>>conftest.
$ac_ext
6644 cat >>conftest.
$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 $ac_includes_default
6647 #include <$ac_header>
6649 rm -f conftest.
$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651 (eval $ac_compile) 2>conftest.er1
6653 grep -v '^ *+' conftest.er1
>conftest.err
6655 cat conftest.err
>&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try
='test -z "$ac_c_werror_flag"
6659 || test ! -s conftest.err'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; } &&
6665 { ac_try
='test -s conftest.$ac_objext'
6666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 ac_header_compiler
=yes
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.
$ac_ext >&5
6676 ac_header_compiler
=no
6678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6680 echo "${ECHO_T}$ac_header_compiler" >&6
6682 # Is the header present?
6683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6685 cat >conftest.
$ac_ext <<_ACEOF
6688 cat confdefs.h
>>conftest.
$ac_ext
6689 cat >>conftest.
$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 #include <$ac_header>
6693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6694 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6696 grep -v '^ *+' conftest.er1
>conftest.err
6698 cat conftest.err
>&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } >/dev
/null
; then
6701 if test -s conftest.err
; then
6702 ac_cpp_err
=$ac_c_preproc_warn_flag
6703 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6710 if test -z "$ac_cpp_err"; then
6711 ac_header_preproc
=yes
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.
$ac_ext >&5
6716 ac_header_preproc
=no
6718 rm -f conftest.err conftest.
$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6720 echo "${ECHO_T}$ac_header_preproc" >&6
6722 # So? What about this header?
6723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6729 ac_header_preproc
=yes
6732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6746 ## ------------------------------- ##
6747 ## Report this to bug-bash@gnu.org ##
6748 ## ------------------------------- ##
6751 sed "s/^/$as_me: WARNING: /" >&2
6754 echo "$as_me:$LINENO: checking for $ac_header" >&5
6755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 eval "$as_ac_Header=\$ac_header_preproc"
6761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6766 cat >>confdefs.h
<<_ACEOF
6767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6775 for ac_func
in getpagesize
6777 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6778 echo "$as_me:$LINENO: checking for $ac_func" >&5
6779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6780 if eval "test \"\${$as_ac_var+set}\" = set"; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 cat >conftest.
$ac_ext <<_ACEOF
6786 cat confdefs.h
>>conftest.
$ac_ext
6787 cat >>conftest.
$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6791 #define $ac_func innocuous_$ac_func
6793 /* System header to define __stub macros and hopefully few prototypes,
6794 which can conflict with char $ac_func (); below.
6795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6796 <limits.h> exists even on freestanding compilers. */
6799 # include <limits.h>
6801 # include <assert.h>
6806 /* Override any gcc2 internal prototype to avoid an error. */
6811 /* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */
6814 /* The GNU C library defines this for functions which it implements
6815 to always fail with ENOSYS. Some functions are actually named
6816 something starting with __ and the normal name is an alias. */
6817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6820 char (*f) () = $ac_func;
6829 return f != $ac_func;
6834 rm -f conftest.
$ac_objext conftest
$ac_exeext
6835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6836 (eval $ac_link) 2>conftest.er1
6838 grep -v '^ *+' conftest.er1
>conftest.err
6840 cat conftest.err
>&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } &&
6843 { ac_try
='test -z "$ac_c_werror_flag"
6844 || test ! -s conftest.err'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; } &&
6850 { ac_try
='test -s conftest$ac_exeext'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6856 eval "$as_ac_var=yes"
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.
$ac_ext >&5
6861 eval "$as_ac_var=no"
6863 rm -f conftest.err conftest.
$ac_objext \
6864 conftest
$ac_exeext conftest.
$ac_ext
6866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6868 if test `eval echo '${'$as_ac_var'}'` = yes; then
6869 cat >>confdefs.h
<<_ACEOF
6870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6876 echo "$as_me:$LINENO: checking for working mmap" >&5
6877 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6878 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 if test "$cross_compiling" = yes; then
6882 ac_cv_func_mmap_fixed_mapped
=no
6884 cat >conftest.
$ac_ext <<_ACEOF
6887 cat confdefs.h
>>conftest.
$ac_ext
6888 cat >>conftest.
$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 $ac_includes_default
6891 /* malloc might have been renamed as rpl_malloc. */
6894 /* Thanks to Mike Haertel and Jim Avera for this test.
6895 Here is a matrix of mmap possibilities:
6896 mmap private not fixed
6897 mmap private fixed at somewhere currently unmapped
6898 mmap private fixed at somewhere already mapped
6899 mmap shared not fixed
6900 mmap shared fixed at somewhere currently unmapped
6901 mmap shared fixed at somewhere already mapped
6902 For private mappings, we should verify that changes cannot be read()
6903 back from the file, nor mmap's back from the file at a different
6904 address. (There have been systems where private was not correctly
6905 implemented like the infamous i386 svr4.0, and systems where the
6906 VM page cache was not coherent with the file system buffer cache
6907 like early versions of FreeBSD and possibly contemporary NetBSD.)
6908 For shared mappings, we should conversely verify that changes get
6909 propagated back to all the places they're supposed to be.
6911 Grep wants private fixed already mapped.
6912 The main things grep needs to know about mmap are:
6913 * does it exist and is it safe to write into the mmap'd area
6914 * how to use it (BSD variants) */
6917 #include <sys/mman.h>
6919 #if !STDC_HEADERS && !HAVE_STDLIB_H
6923 /* This mess was copied from the GNU getpagesize.h. */
6924 #if !HAVE_GETPAGESIZE
6925 /* Assume that all systems that can run configure have sys/param.h. */
6926 # if !HAVE_SYS_PARAM_H
6927 # define HAVE_SYS_PARAM_H 1
6930 # ifdef _SC_PAGESIZE
6931 # define getpagesize() sysconf(_SC_PAGESIZE)
6932 # else /* no _SC_PAGESIZE */
6933 # if HAVE_SYS_PARAM_H
6934 # include <sys/param.h>
6935 # ifdef EXEC_PAGESIZE
6936 # define getpagesize() EXEC_PAGESIZE
6937 # else /* no EXEC_PAGESIZE */
6939 # define getpagesize() NBPG * CLSIZE
6942 # endif /* no CLSIZE */
6943 # else /* no NBPG */
6945 # define getpagesize() NBPC
6946 # else /* no NBPC */
6948 # define getpagesize() PAGESIZE
6949 # endif /* PAGESIZE */
6950 # endif /* no NBPC */
6951 # endif /* no NBPG */
6952 # endif /* no EXEC_PAGESIZE */
6953 # else /* no HAVE_SYS_PARAM_H */
6954 # define getpagesize() 8192 /* punt totally */
6955 # endif /* no HAVE_SYS_PARAM_H */
6956 # endif /* no _SC_PAGESIZE */
6958 #endif /* no HAVE_GETPAGESIZE */
6963 char *data, *data2, *data3;
6967 pagesize = getpagesize ();
6969 /* First, make a file with some known garbage in it. */
6970 data = (char *) malloc (pagesize);
6973 for (i = 0; i < pagesize; ++i)
6974 *(data + i) = rand ();
6976 fd = creat ("conftest.mmap", 0600);
6979 if (write (fd, data, pagesize) != pagesize)
6983 /* Next, try to mmap the file at a fixed address which already has
6984 something else allocated at it. If we can, also make sure that
6985 we see the same garbage. */
6986 fd = open ("conftest.mmap", O_RDWR);
6989 data2 = (char *) malloc (2 * pagesize);
6992 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6993 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6994 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6996 for (i = 0; i < pagesize; ++i)
6997 if (*(data + i) != *(data2 + i))
7000 /* Finally, make sure that changes to the mapped area do not
7001 percolate back to the file as seen by read(). (This is a bug on
7002 some variants of i386 svr4.0.) */
7003 for (i = 0; i < pagesize; ++i)
7004 *(data2 + i) = *(data2 + i) + 1;
7005 data3 = (char *) malloc (pagesize);
7008 if (read (fd, data3, pagesize) != pagesize)
7010 for (i = 0; i < pagesize; ++i)
7011 if (*(data + i) != *(data3 + i))
7017 rm -f conftest
$ac_exeext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019 (eval $ac_link) 2>&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 ac_cv_func_mmap_fixed_mapped
=yes
7030 echo "$as_me: program exited with status $ac_status" >&5
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.
$ac_ext >&5
7035 ac_cv_func_mmap_fixed_mapped
=no
7037 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7040 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7041 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7042 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7044 cat >>confdefs.h
<<\_ACEOF
7052 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7053 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7054 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 cat >conftest.
$ac_ext <<_ACEOF
7060 cat confdefs.h
>>conftest.
$ac_ext
7061 cat >>conftest.
$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7064 #include <features.h>
7065 #ifdef __GNU_LIBRARY__
7066 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
7074 ac_cv_gnu_library_2_1
=yes
7076 ac_cv_gnu_library_2_1
=no
7083 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7084 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7086 GLIBC21
="$ac_cv_gnu_library_2_1"
7091 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7092 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
7093 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 if test "$cross_compiling" = yes; then
7099 # Guess based on the CPU.
7101 alpha
* | i3456786 | m68k | s390
*)
7102 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
7104 gt_cv_int_divbyzero_sigfpe
="guessing no";;
7108 cat >conftest.
$ac_ext <<_ACEOF
7111 cat confdefs.h
>>conftest.
$ac_ext
7112 cat >>conftest.
$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7120 sigfpe_handler (int sig)
7122 sigfpe_handler (sig) int sig;
7125 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7126 exit (sig != SIGFPE);
7136 signal (SIGFPE, sigfpe_handler);
7137 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7138 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7139 signal (SIGTRAP, sigfpe_handler);
7141 /* Linux/SPARC yields signal SIGILL. */
7142 #if defined (__sparc__) && defined (__linux__)
7143 signal (SIGILL, sigfpe_handler);
7152 rm -f conftest
$ac_exeext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7154 (eval $ac_link) 2>&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 gt_cv_int_divbyzero_sigfpe
=yes
7165 echo "$as_me: program exited with status $ac_status" >&5
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.
$ac_ext >&5
7170 gt_cv_int_divbyzero_sigfpe
=no
7172 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7176 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7177 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
7178 case "$gt_cv_int_divbyzero_sigfpe" in
7183 cat >>confdefs.h
<<_ACEOF
7184 #define INTDIV0_RAISES_SIGFPE $value
7189 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7190 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7191 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 cat >conftest.
$ac_ext <<_ACEOF
7197 cat confdefs.h
>>conftest.
$ac_ext
7198 cat >>conftest.
$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 #include <sys/types.h>
7201 #include <inttypes.h>
7205 uintmax_t i = (uintmax_t) -1;
7210 rm -f conftest.
$ac_objext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>conftest.er1
7214 grep -v '^ *+' conftest.er1
>conftest.err
7216 cat conftest.err
>&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try
='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try
='test -s conftest.$ac_objext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 jm_ac_cv_header_inttypes_h
=yes
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.
$ac_ext >&5
7237 jm_ac_cv_header_inttypes_h
=no
7239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7241 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
7242 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
7243 if test $jm_ac_cv_header_inttypes_h = yes; then
7245 cat >>confdefs.h
<<_ACEOF
7246 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7252 echo "$as_me:$LINENO: checking for stdint.h" >&5
7253 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7254 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 cat >conftest.
$ac_ext <<_ACEOF
7260 cat confdefs.h
>>conftest.
$ac_ext
7261 cat >>conftest.
$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 #include <sys/types.h>
7268 uintmax_t i = (uintmax_t) -1;
7273 rm -f conftest.
$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>conftest.er1
7277 grep -v '^ *+' conftest.er1
>conftest.err
7279 cat conftest.err
>&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try
='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try
='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 jm_ac_cv_header_stdint_h
=yes
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.
$ac_ext >&5
7300 jm_ac_cv_header_stdint_h
=no
7302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7304 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
7305 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
7306 if test $jm_ac_cv_header_stdint_h = yes; then
7308 cat >>confdefs.h
<<_ACEOF
7309 #define HAVE_STDINT_H_WITH_UINTMAX 1
7315 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7316 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7317 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 cat >conftest.
$ac_ext <<_ACEOF
7323 cat confdefs.h
>>conftest.
$ac_ext
7324 cat >>conftest.
$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 unsigned long long ull = 1; int i = 63;
7330 unsigned long long ullmax = (unsigned long long) -1;
7331 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7336 rm -f conftest.
$ac_objext conftest
$ac_exeext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7338 (eval $ac_link) 2>conftest.er1
7340 grep -v '^ *+' conftest.er1
>conftest.err
7342 cat conftest.err
>&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try
='test -z "$ac_c_werror_flag"
7346 || test ! -s conftest.err'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; } &&
7352 { ac_try
='test -s conftest$ac_exeext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7358 ac_cv_type_unsigned_long_long
=yes
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.
$ac_ext >&5
7363 ac_cv_type_unsigned_long_long
=no
7365 rm -f conftest.err conftest.
$ac_objext \
7366 conftest
$ac_exeext conftest.
$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7369 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7370 if test $ac_cv_type_unsigned_long_long = yes; then
7372 cat >>confdefs.h
<<\_ACEOF
7373 #define HAVE_UNSIGNED_LONG_LONG 1
7381 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
7383 test $ac_cv_type_unsigned_long_long = yes \
7384 && ac_type
='unsigned long long' \
7385 || ac_type
='unsigned long'
7387 cat >>confdefs.h
<<_ACEOF
7388 #define uintmax_t $ac_type
7393 cat >>confdefs.h
<<\_ACEOF
7394 #define HAVE_UINTMAX_T 1
7400 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7401 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7402 if test "${gt_cv_header_inttypes_h+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 cat >conftest.
$ac_ext <<_ACEOF
7409 cat confdefs.h
>>conftest.
$ac_ext
7410 cat >>conftest.
$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 #include <sys/types.h>
7413 #include <inttypes.h>
7422 rm -f conftest.
$ac_objext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7424 (eval $ac_compile) 2>conftest.er1
7426 grep -v '^ *+' conftest.er1
>conftest.err
7428 cat conftest.err
>&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try
='test -z "$ac_c_werror_flag"
7432 || test ! -s conftest.err'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; } &&
7438 { ac_try
='test -s conftest.$ac_objext'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 gt_cv_header_inttypes_h
=yes
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.
$ac_ext >&5
7449 gt_cv_header_inttypes_h
=no
7451 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7454 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7455 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
7456 if test $gt_cv_header_inttypes_h = yes; then
7458 cat >>confdefs.h
<<_ACEOF
7459 #define HAVE_INTTYPES_H 1
7466 if test $gt_cv_header_inttypes_h = yes; then
7467 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7468 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
7469 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 cat >conftest.
$ac_ext <<_ACEOF
7476 cat confdefs.h
>>conftest.
$ac_ext
7477 cat >>conftest.
$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7479 #include <inttypes.h>
7492 rm -f conftest.
$ac_objext
7493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7494 (eval $ac_compile) 2>conftest.er1
7496 grep -v '^ *+' conftest.er1
>conftest.err
7498 cat conftest.err
>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try
='test -z "$ac_c_werror_flag"
7502 || test ! -s conftest.err'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; } &&
7508 { ac_try
='test -s conftest.$ac_objext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 gt_cv_inttypes_pri_broken
=no
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.
$ac_ext >&5
7519 gt_cv_inttypes_pri_broken
=yes
7521 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7524 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7525 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7527 if test "$gt_cv_inttypes_pri_broken" = yes; then
7529 cat >>confdefs.h
<<_ACEOF
7530 #define PRI_MACROS_BROKEN 1
7536 if test "X$prefix" = "XNONE"; then
7537 acl_final_prefix
="$ac_default_prefix"
7539 acl_final_prefix
="$prefix"
7541 if test "X$exec_prefix" = "XNONE"; then
7542 acl_final_exec_prefix
='${prefix}'
7544 acl_final_exec_prefix
="$exec_prefix"
7546 acl_save_prefix
="$prefix"
7547 prefix
="$acl_final_prefix"
7548 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7549 prefix
="$acl_save_prefix"
7552 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7553 if test "${with_gnu_ld+set}" = set; then
7554 withval
="$with_gnu_ld"
7555 test "$withval" = no || with_gnu_ld
=yes
7559 # Prepare PATH_SEPARATOR.
7560 # The user is always right.
7561 if test "${PATH_SEPARATOR+set}" != set; then
7562 echo "#! /bin/sh" >conf$$.sh
7563 echo "exit 0" >>conf$$.sh
7565 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7573 if test "$GCC" = yes; then
7574 # Check if gcc -print-prog-name=ld gives a path.
7575 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7576 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7579 # gcc leaves a trailing carriage return which upsets mingw
7580 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7582 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7585 # Accept absolute paths.
7586 [\\/]* |
[A-Za-z
]:[\\/]*)
7587 re_direlt
='/[^/][^/]*/\.\./'
7588 # Canonicalize the path of ld
7589 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7590 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7591 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7593 test -z "$LD" && LD
="$ac_prog"
7596 # If it fails, then pretend we aren't using GCC.
7600 # If it is relative, then search for the first ld in PATH.
7604 elif test "$with_gnu_ld" = yes; then
7605 echo "$as_me:$LINENO: checking for GNU ld" >&5
7606 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7608 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7609 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7611 if test "${acl_cv_path_LD+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 if test -z "$LD"; then
7615 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7616 for ac_dir
in $PATH; do
7617 test -z "$ac_dir" && ac_dir
=.
7618 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7619 acl_cv_path_LD
="$ac_dir/$ac_prog"
7620 # Check to see if the program is GNU ld. I'd rather use --version,
7621 # but apparently some GNU ld's only accept -v.
7622 # Break only if it was the GNU/non-GNU ld that we prefer.
7623 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7624 test "$with_gnu_ld" != no
&& break
7626 test "$with_gnu_ld" != yes && break
7632 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7636 LD
="$acl_cv_path_LD"
7637 if test -n "$LD"; then
7638 echo "$as_me:$LINENO: result: $LD" >&5
7639 echo "${ECHO_T}$LD" >&6
7641 echo "$as_me:$LINENO: result: no" >&5
7642 echo "${ECHO_T}no" >&6
7644 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7645 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7646 { (exit 1); exit 1; }; }
7647 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7648 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7649 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7653 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7654 acl_cv_prog_gnu_ld
=yes
7656 acl_cv_prog_gnu_ld
=no
7659 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7660 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7661 with_gnu_ld
=$acl_cv_prog_gnu_ld
7665 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7666 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7667 if test "${acl_cv_rpath+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7672 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7678 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7679 echo "${ECHO_T}$acl_cv_rpath" >&6
7681 libext
="$acl_cv_libext"
7682 shlibext
="$acl_cv_shlibext"
7683 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7684 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7685 hardcode_direct
="$acl_cv_hardcode_direct"
7686 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7687 # Check whether --enable-rpath or --disable-rpath was given.
7688 if test "${enable_rpath+set}" = set; then
7689 enableval
="$enable_rpath"
7703 acl_save_prefix
="$prefix"
7704 prefix
="$acl_final_prefix"
7705 acl_save_exec_prefix
="$exec_prefix"
7706 exec_prefix
="$acl_final_exec_prefix"
7708 eval additional_includedir
=\"$includedir\"
7709 eval additional_libdir
=\"$libdir\"
7711 exec_prefix
="$acl_save_exec_prefix"
7712 prefix
="$acl_save_prefix"
7715 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7716 if test "${with_libiconv_prefix+set}" = set; then
7717 withval
="$with_libiconv_prefix"
7719 if test "X$withval" = "Xno"; then
7722 if test "X$withval" = "X"; then
7724 acl_save_prefix
="$prefix"
7725 prefix
="$acl_final_prefix"
7726 acl_save_exec_prefix
="$exec_prefix"
7727 exec_prefix
="$acl_final_exec_prefix"
7729 eval additional_includedir
=\"$includedir\"
7730 eval additional_libdir
=\"$libdir\"
7732 exec_prefix
="$acl_save_exec_prefix"
7733 prefix
="$acl_save_prefix"
7736 additional_includedir
="$withval/include"
7737 additional_libdir
="$withval/lib"
7747 names_already_handled
=
7748 names_next_round
='iconv '
7749 while test -n "$names_next_round"; do
7750 names_this_round
="$names_next_round"
7752 for name
in $names_this_round; do
7754 for n
in $names_already_handled; do
7755 if test "$n" = "$name"; then
7760 if test -z "$already_handled"; then
7761 names_already_handled
="$names_already_handled $name"
7762 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7763 eval value
=\"\
$HAVE_LIB$uppername\"
7764 if test -n "$value"; then
7765 if test "$value" = yes; then
7766 eval value
=\"\
$LIB$uppername\"
7767 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
7768 eval value
=\"\
$LTLIB$uppername\"
7769 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
7778 if test $use_additional = yes; then
7779 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7780 found_dir
="$additional_libdir"
7781 found_so
="$additional_libdir/lib$name.$shlibext"
7782 if test -f "$additional_libdir/lib$name.la"; then
7783 found_la
="$additional_libdir/lib$name.la"
7786 if test -f "$additional_libdir/lib$name.$libext"; then
7787 found_dir
="$additional_libdir"
7788 found_a
="$additional_libdir/lib$name.$libext"
7789 if test -f "$additional_libdir/lib$name.la"; then
7790 found_la
="$additional_libdir/lib$name.la"
7795 if test "X$found_dir" = "X"; then
7796 for x
in $LDFLAGS $LTLIBICONV; do
7798 acl_save_prefix
="$prefix"
7799 prefix
="$acl_final_prefix"
7800 acl_save_exec_prefix
="$exec_prefix"
7801 exec_prefix
="$acl_final_exec_prefix"
7803 exec_prefix
="$acl_save_exec_prefix"
7804 prefix
="$acl_save_prefix"
7808 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7809 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7811 found_so
="$dir/lib$name.$shlibext"
7812 if test -f "$dir/lib$name.la"; then
7813 found_la
="$dir/lib$name.la"
7816 if test -f "$dir/lib$name.$libext"; then
7818 found_a
="$dir/lib$name.$libext"
7819 if test -f "$dir/lib$name.la"; then
7820 found_la
="$dir/lib$name.la"
7826 if test "X$found_dir" != "X"; then
7831 if test "X$found_dir" != "X"; then
7832 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7833 if test "X$found_so" != "X"; then
7834 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7835 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7838 for x
in $ltrpathdirs; do
7839 if test "X$x" = "X$found_dir"; then
7844 if test -z "$haveit"; then
7845 ltrpathdirs
="$ltrpathdirs $found_dir"
7847 if test "$hardcode_direct" = yes; then
7848 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7850 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7851 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7853 for x
in $rpathdirs; do
7854 if test "X$x" = "X$found_dir"; then
7859 if test -z "$haveit"; then
7860 rpathdirs
="$rpathdirs $found_dir"
7864 for x
in $LDFLAGS $LIBICONV; do
7866 acl_save_prefix
="$prefix"
7867 prefix
="$acl_final_prefix"
7868 acl_save_exec_prefix
="$exec_prefix"
7869 exec_prefix
="$acl_final_exec_prefix"
7871 exec_prefix
="$acl_save_exec_prefix"
7872 prefix
="$acl_save_prefix"
7874 if test "X$x" = "X-L$found_dir"; then
7879 if test -z "$haveit"; then
7880 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7882 if test "$hardcode_minus_L" != no
; then
7883 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7885 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7891 if test "X$found_a" != "X"; then
7892 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7894 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7897 additional_includedir
=
7898 case "$found_dir" in
7900 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7901 additional_includedir
="$basedir/include"
7904 if test "X$additional_includedir" != "X"; then
7905 if test "X$additional_includedir" != "X/usr/include"; then
7907 if test "X$additional_includedir" = "X/usr/local/include"; then
7908 if test -n "$GCC"; then
7910 linux
*) haveit
=yes;;
7914 if test -z "$haveit"; then
7915 for x
in $CPPFLAGS $INCICONV; do
7917 acl_save_prefix
="$prefix"
7918 prefix
="$acl_final_prefix"
7919 acl_save_exec_prefix
="$exec_prefix"
7920 exec_prefix
="$acl_final_exec_prefix"
7922 exec_prefix
="$acl_save_exec_prefix"
7923 prefix
="$acl_save_prefix"
7925 if test "X$x" = "X-I$additional_includedir"; then
7930 if test -z "$haveit"; then
7931 if test -d "$additional_includedir"; then
7932 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7938 if test -n "$found_la"; then
7939 save_libdir
="$libdir"
7941 */* |
*\\*) .
"$found_la" ;;
7942 *) .
"./$found_la" ;;
7944 libdir
="$save_libdir"
7945 for dep
in $dependency_libs; do
7948 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7949 if test "X$additional_libdir" != "X/usr/lib"; then
7951 if test "X$additional_libdir" = "X/usr/local/lib"; then
7952 if test -n "$GCC"; then
7954 linux
*) haveit
=yes;;
7958 if test -z "$haveit"; then
7960 for x
in $LDFLAGS $LIBICONV; do
7962 acl_save_prefix
="$prefix"
7963 prefix
="$acl_final_prefix"
7964 acl_save_exec_prefix
="$exec_prefix"
7965 exec_prefix
="$acl_final_exec_prefix"
7967 exec_prefix
="$acl_save_exec_prefix"
7968 prefix
="$acl_save_prefix"
7970 if test "X$x" = "X-L$additional_libdir"; then
7975 if test -z "$haveit"; then
7976 if test -d "$additional_libdir"; then
7977 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7981 for x
in $LDFLAGS $LTLIBICONV; do
7983 acl_save_prefix
="$prefix"
7984 prefix
="$acl_final_prefix"
7985 acl_save_exec_prefix
="$exec_prefix"
7986 exec_prefix
="$acl_final_exec_prefix"
7988 exec_prefix
="$acl_save_exec_prefix"
7989 prefix
="$acl_save_prefix"
7991 if test "X$x" = "X-L$additional_libdir"; then
7996 if test -z "$haveit"; then
7997 if test -d "$additional_libdir"; then
7998 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8005 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8006 if test "$enable_rpath" != no
; then
8008 for x
in $rpathdirs; do
8009 if test "X$x" = "X$dir"; then
8014 if test -z "$haveit"; then
8015 rpathdirs
="$rpathdirs $dir"
8018 for x
in $ltrpathdirs; do
8019 if test "X$x" = "X$dir"; then
8024 if test -z "$haveit"; then
8025 ltrpathdirs
="$ltrpathdirs $dir"
8030 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8033 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8036 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8037 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8043 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8044 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8050 if test "X$rpathdirs" != "X"; then
8051 if test -n "$hardcode_libdir_separator"; then
8053 for found_dir
in $rpathdirs; do
8054 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8056 acl_save_libdir
="$libdir"
8058 eval flag
=\"$hardcode_libdir_flag_spec\"
8059 libdir
="$acl_save_libdir"
8060 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8062 for found_dir
in $rpathdirs; do
8063 acl_save_libdir
="$libdir"
8065 eval flag
=\"$hardcode_libdir_flag_spec\"
8066 libdir
="$acl_save_libdir"
8067 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8071 if test "X$ltrpathdirs" != "X"; then
8072 for found_dir
in $ltrpathdirs; do
8073 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8090 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8091 stdlib.h string.h unistd.h sys
/param.h
8093 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8095 echo "$as_me:$LINENO: checking for $ac_header" >&5
8096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8103 # Is the header compilable?
8104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8106 cat >conftest.
$ac_ext <<_ACEOF
8109 cat confdefs.h
>>conftest.
$ac_ext
8110 cat >>conftest.
$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8113 #include <$ac_header>
8115 rm -f conftest.
$ac_objext
8116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8117 (eval $ac_compile) 2>conftest.er1
8119 grep -v '^ *+' conftest.er1
>conftest.err
8121 cat conftest.err
>&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
8124 { ac_try
='test -z "$ac_c_werror_flag"
8125 || test ! -s conftest.err'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; } &&
8131 { ac_try
='test -s conftest.$ac_objext'
8132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 ac_header_compiler
=yes
8139 echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.
$ac_ext >&5
8142 ac_header_compiler
=no
8144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8146 echo "${ECHO_T}$ac_header_compiler" >&6
8148 # Is the header present?
8149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8151 cat >conftest.
$ac_ext <<_ACEOF
8154 cat confdefs.h
>>conftest.
$ac_ext
8155 cat >>conftest.
$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8157 #include <$ac_header>
8159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8160 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8162 grep -v '^ *+' conftest.er1
>conftest.err
8164 cat conftest.err
>&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } >/dev
/null
; then
8167 if test -s conftest.err
; then
8168 ac_cpp_err
=$ac_c_preproc_warn_flag
8169 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8176 if test -z "$ac_cpp_err"; then
8177 ac_header_preproc
=yes
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.
$ac_ext >&5
8182 ac_header_preproc
=no
8184 rm -f conftest.err conftest.
$ac_ext
8185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8186 echo "${ECHO_T}$ac_header_preproc" >&6
8188 # So? What about this header?
8189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8195 ac_header_preproc
=yes
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8212 ## ------------------------------- ##
8213 ## Report this to bug-bash@gnu.org ##
8214 ## ------------------------------- ##
8217 sed "s/^/$as_me: WARNING: /" >&2
8220 echo "$as_me:$LINENO: checking for $ac_header" >&5
8221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 eval "$as_ac_Header=\$ac_header_preproc"
8227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8232 cat >>confdefs.h
<<_ACEOF
8233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8262 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8263 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
8264 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8267 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8268 echo "$as_me:$LINENO: checking for $ac_func" >&5
8269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8270 if eval "test \"\${$as_ac_var+set}\" = set"; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 cat >conftest.
$ac_ext <<_ACEOF
8276 cat confdefs.h
>>conftest.
$ac_ext
8277 cat >>conftest.
$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8281 #define $ac_func innocuous_$ac_func
8283 /* System header to define __stub macros and hopefully few prototypes,
8284 which can conflict with char $ac_func (); below.
8285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8286 <limits.h> exists even on freestanding compilers. */
8289 # include <limits.h>
8291 # include <assert.h>
8296 /* Override any gcc2 internal prototype to avoid an error. */
8301 /* We use char because int might match the return type of a gcc2
8302 builtin and then its argument prototype would still apply. */
8304 /* The GNU C library defines this for functions which it implements
8305 to always fail with ENOSYS. Some functions are actually named
8306 something starting with __ and the normal name is an alias. */
8307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8310 char (*f) () = $ac_func;
8319 return f != $ac_func;
8324 rm -f conftest.
$ac_objext conftest
$ac_exeext
8325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326 (eval $ac_link) 2>conftest.er1
8328 grep -v '^ *+' conftest.er1
>conftest.err
8330 cat conftest.err
>&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } &&
8333 { ac_try
='test -z "$ac_c_werror_flag"
8334 || test ! -s conftest.err'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try
='test -s conftest$ac_exeext'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; }; then
8346 eval "$as_ac_var=yes"
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.
$ac_ext >&5
8351 eval "$as_ac_var=no"
8353 rm -f conftest.err conftest.
$ac_objext \
8354 conftest
$ac_exeext conftest.
$ac_ext
8356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8358 if test `eval echo '${'$as_ac_var'}'` = yes; then
8359 cat >>confdefs.h
<<_ACEOF
8360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8372 am_save_CPPFLAGS
="$CPPFLAGS"
8374 for element
in $INCICONV; do
8376 for x
in $CPPFLAGS; do
8378 acl_save_prefix
="$prefix"
8379 prefix
="$acl_final_prefix"
8380 acl_save_exec_prefix
="$exec_prefix"
8381 exec_prefix
="$acl_final_exec_prefix"
8383 exec_prefix
="$acl_save_exec_prefix"
8384 prefix
="$acl_save_prefix"
8386 if test "X$x" = "X$element"; then
8391 if test -z "$haveit"; then
8392 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8397 echo "$as_me:$LINENO: checking for iconv" >&5
8398 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8399 if test "${am_cv_func_iconv+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 am_cv_func_iconv
="no, consider installing GNU libiconv"
8405 cat >conftest.
$ac_ext <<_ACEOF
8408 cat confdefs.h
>>conftest.
$ac_ext
8409 cat >>conftest.
$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8416 iconv_t cd = iconv_open("","");
8417 iconv(cd,NULL,NULL,NULL,NULL);
8423 rm -f conftest.
$ac_objext conftest
$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425 (eval $ac_link) 2>conftest.er1
8427 grep -v '^ *+' conftest.er1
>conftest.err
8429 cat conftest.err
>&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try
='test -z "$ac_c_werror_flag"
8433 || test ! -s conftest.err'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try
='test -s conftest$ac_exeext'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; }; then
8445 am_cv_func_iconv
=yes
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.
$ac_ext >&5
8451 rm -f conftest.err conftest.
$ac_objext \
8452 conftest
$ac_exeext conftest.
$ac_ext
8453 if test "$am_cv_func_iconv" != yes; then
8454 am_save_LIBS
="$LIBS"
8455 LIBS
="$LIBS $LIBICONV"
8456 cat >conftest.
$ac_ext <<_ACEOF
8459 cat confdefs.h
>>conftest.
$ac_ext
8460 cat >>conftest.
$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8467 iconv_t cd = iconv_open("","");
8468 iconv(cd,NULL,NULL,NULL,NULL);
8474 rm -f conftest.
$ac_objext conftest
$ac_exeext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476 (eval $ac_link) 2>conftest.er1
8478 grep -v '^ *+' conftest.er1
>conftest.err
8480 cat conftest.err
>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try
='test -z "$ac_c_werror_flag"
8484 || test ! -s conftest.err'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try
='test -s conftest$ac_exeext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8497 am_cv_func_iconv
=yes
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.
$ac_ext >&5
8503 rm -f conftest.err conftest.
$ac_objext \
8504 conftest
$ac_exeext conftest.
$ac_ext
8505 LIBS
="$am_save_LIBS"
8509 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8510 echo "${ECHO_T}$am_cv_func_iconv" >&6
8511 if test "$am_cv_func_iconv" = yes; then
8513 cat >>confdefs.h
<<\_ACEOF
8514 #define HAVE_ICONV 1
8518 if test "$am_cv_lib_iconv" = yes; then
8519 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8520 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8521 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8522 echo "${ECHO_T}$LIBICONV" >&6
8524 CPPFLAGS
="$am_save_CPPFLAGS"
8531 if test "$am_cv_func_iconv" = yes; then
8532 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8533 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8534 if test "${am_cv_proto_iconv+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 cat >conftest.
$ac_ext <<_ACEOF
8541 cat confdefs.h
>>conftest.
$ac_ext
8542 cat >>conftest.
$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8551 #if defined(__STDC__) || defined(__cplusplus)
8552 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8565 rm -f conftest.
$ac_objext
8566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8567 (eval $ac_compile) 2>conftest.er1
8569 grep -v '^ *+' conftest.er1
>conftest.err
8571 cat conftest.err
>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try
='test -z "$ac_c_werror_flag"
8575 || test ! -s conftest.err'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; } &&
8581 { ac_try
='test -s conftest.$ac_objext'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8587 am_cv_proto_iconv_arg1
=""
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.
$ac_ext >&5
8592 am_cv_proto_iconv_arg1
="const"
8594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8595 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);"
8598 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8599 echo "$as_me:$LINENO: result: ${ac_t:-
8600 }$am_cv_proto_iconv" >&5
8601 echo "${ECHO_T}${ac_t:-
8602 }$am_cv_proto_iconv" >&6
8604 cat >>confdefs.h
<<_ACEOF
8605 #define ICONV_CONST $am_cv_proto_iconv_arg1
8611 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8612 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8613 if test "${am_cv_langinfo_codeset+set}" = set; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 cat >conftest.
$ac_ext <<_ACEOF
8619 cat confdefs.h
>>conftest.
$ac_ext
8620 cat >>conftest.
$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 #include <langinfo.h>
8626 char* cs = nl_langinfo(CODESET);
8631 rm -f conftest.
$ac_objext conftest
$ac_exeext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633 (eval $ac_link) 2>conftest.er1
8635 grep -v '^ *+' conftest.er1
>conftest.err
8637 cat conftest.err
>&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try
='test -z "$ac_c_werror_flag"
8641 || test ! -s conftest.err'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try
='test -s conftest$ac_exeext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 am_cv_langinfo_codeset
=yes
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.
$ac_ext >&5
8658 am_cv_langinfo_codeset
=no
8660 rm -f conftest.err conftest.
$ac_objext \
8661 conftest
$ac_exeext conftest.
$ac_ext
8664 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8665 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8666 if test $am_cv_langinfo_codeset = yes; then
8668 cat >>confdefs.h
<<\_ACEOF
8669 #define HAVE_LANGINFO_CODESET 1
8674 if test $ac_cv_header_locale_h = yes; then
8676 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8677 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8678 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 cat >conftest.
$ac_ext <<_ACEOF
8684 cat confdefs.h
>>conftest.
$ac_ext
8685 cat >>conftest.
$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8696 rm -f conftest.
$ac_objext conftest
$ac_exeext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698 (eval $ac_link) 2>conftest.er1
8700 grep -v '^ *+' conftest.er1
>conftest.err
8702 cat conftest.err
>&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try
='test -z "$ac_c_werror_flag"
8706 || test ! -s conftest.err'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; } &&
8712 { ac_try
='test -s conftest$ac_exeext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 am_cv_val_LC_MESSAGES
=yes
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.
$ac_ext >&5
8723 am_cv_val_LC_MESSAGES
=no
8725 rm -f conftest.err conftest.
$ac_objext \
8726 conftest
$ac_exeext conftest.
$ac_ext
8728 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8729 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8730 if test $am_cv_val_LC_MESSAGES = yes; then
8732 cat >>confdefs.h
<<\_ACEOF
8733 #define HAVE_LC_MESSAGES 1
8740 for ac_prog
in bison
8742 # Extract the first word of "$ac_prog", so it can be a program name with args.
8743 set dummy
$ac_prog; ac_word
=$2
8744 echo "$as_me:$LINENO: checking for $ac_word" >&5
8745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8746 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 if test -n "$INTLBISON"; then
8750 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8756 test -z "$as_dir" && as_dir
=.
8757 for ac_exec_ext
in '' $ac_executable_extensions; do
8758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759 ac_cv_prog_INTLBISON
="$ac_prog"
8760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 INTLBISON
=$ac_cv_prog_INTLBISON
8769 if test -n "$INTLBISON"; then
8770 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8771 echo "${ECHO_T}$INTLBISON" >&6
8773 echo "$as_me:$LINENO: result: no" >&5
8774 echo "${ECHO_T}no" >&6
8777 test -n "$INTLBISON" && break
8780 if test -z "$INTLBISON"; then
8783 echo "$as_me:$LINENO: checking version of bison" >&5
8784 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8785 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8786 case $ac_prog_version in
8787 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8788 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
8789 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8790 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8792 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8793 echo "${ECHO_T}$ac_prog_version" >&6
8795 if test $ac_verc_fail = yes; then
8814 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8815 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8816 # Check whether --enable-nls or --disable-nls was given.
8817 if test "${enable_nls+set}" = set; then
8818 enableval
="$enable_nls"
8823 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8824 echo "${ECHO_T}$USE_NLS" >&6
8829 BUILD_INCLUDED_LIBINTL
=no
8830 USE_INCLUDED_LIBINTL
=no
8836 if test "$USE_NLS" = "yes"; then
8837 gt_use_preinstalled_gnugettext
=no
8839 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8840 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8842 # Check whether --with-included-gettext or --without-included-gettext was given.
8843 if test "${with_included_gettext+set}" = set; then
8844 withval
="$with_included_gettext"
8845 nls_cv_force_use_gnu_gettext
=$withval
8847 nls_cv_force_use_gnu_gettext
=no
8849 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8850 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8852 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
8853 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8860 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8861 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8862 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 cat >conftest.
$ac_ext <<_ACEOF
8868 cat confdefs.h
>>conftest.
$ac_ext
8869 cat >>conftest.
$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8871 #include <libintl.h>
8872 extern int _nl_msg_cat_cntr;
8873 extern int *_nl_domain_bindings;
8877 bindtextdomain ("", "");
8878 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8883 rm -f conftest.
$ac_objext conftest
$ac_exeext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8885 (eval $ac_link) 2>conftest.er1
8887 grep -v '^ *+' conftest.er1
>conftest.err
8889 cat conftest.err
>&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try
='test -z "$ac_c_werror_flag"
8893 || test ! -s conftest.err'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; } &&
8899 { ac_try
='test -s conftest$ac_exeext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 gt_cv_func_gnugettext2_libc
=yes
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.
$ac_ext >&5
8910 gt_cv_func_gnugettext2_libc
=no
8912 rm -f conftest.err conftest.
$ac_objext \
8913 conftest
$ac_exeext conftest.
$ac_ext
8915 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8916 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8918 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8924 acl_save_prefix
="$prefix"
8925 prefix
="$acl_final_prefix"
8926 acl_save_exec_prefix
="$exec_prefix"
8927 exec_prefix
="$acl_final_exec_prefix"
8929 eval additional_includedir
=\"$includedir\"
8930 eval additional_libdir
=\"$libdir\"
8932 exec_prefix
="$acl_save_exec_prefix"
8933 prefix
="$acl_save_prefix"
8936 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8937 if test "${with_libintl_prefix+set}" = set; then
8938 withval
="$with_libintl_prefix"
8940 if test "X$withval" = "Xno"; then
8943 if test "X$withval" = "X"; then
8945 acl_save_prefix
="$prefix"
8946 prefix
="$acl_final_prefix"
8947 acl_save_exec_prefix
="$exec_prefix"
8948 exec_prefix
="$acl_final_exec_prefix"
8950 eval additional_includedir
=\"$includedir\"
8951 eval additional_libdir
=\"$libdir\"
8953 exec_prefix
="$acl_save_exec_prefix"
8954 prefix
="$acl_save_prefix"
8957 additional_includedir
="$withval/include"
8958 additional_libdir
="$withval/lib"
8968 names_already_handled
=
8969 names_next_round
='intl '
8970 while test -n "$names_next_round"; do
8971 names_this_round
="$names_next_round"
8973 for name
in $names_this_round; do
8975 for n
in $names_already_handled; do
8976 if test "$n" = "$name"; then
8981 if test -z "$already_handled"; then
8982 names_already_handled
="$names_already_handled $name"
8983 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8984 eval value
=\"\
$HAVE_LIB$uppername\"
8985 if test -n "$value"; then
8986 if test "$value" = yes; then
8987 eval value
=\"\
$LIB$uppername\"
8988 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
8989 eval value
=\"\
$LTLIB$uppername\"
8990 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
8999 if test $use_additional = yes; then
9000 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9001 found_dir
="$additional_libdir"
9002 found_so
="$additional_libdir/lib$name.$shlibext"
9003 if test -f "$additional_libdir/lib$name.la"; then
9004 found_la
="$additional_libdir/lib$name.la"
9007 if test -f "$additional_libdir/lib$name.$libext"; then
9008 found_dir
="$additional_libdir"
9009 found_a
="$additional_libdir/lib$name.$libext"
9010 if test -f "$additional_libdir/lib$name.la"; then
9011 found_la
="$additional_libdir/lib$name.la"
9016 if test "X$found_dir" = "X"; then
9017 for x
in $LDFLAGS $LTLIBINTL; do
9019 acl_save_prefix
="$prefix"
9020 prefix
="$acl_final_prefix"
9021 acl_save_exec_prefix
="$exec_prefix"
9022 exec_prefix
="$acl_final_exec_prefix"
9024 exec_prefix
="$acl_save_exec_prefix"
9025 prefix
="$acl_save_prefix"
9029 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9030 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9032 found_so
="$dir/lib$name.$shlibext"
9033 if test -f "$dir/lib$name.la"; then
9034 found_la
="$dir/lib$name.la"
9037 if test -f "$dir/lib$name.$libext"; then
9039 found_a
="$dir/lib$name.$libext"
9040 if test -f "$dir/lib$name.la"; then
9041 found_la
="$dir/lib$name.la"
9047 if test "X$found_dir" != "X"; then
9052 if test "X$found_dir" != "X"; then
9053 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9054 if test "X$found_so" != "X"; then
9055 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9056 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9059 for x
in $ltrpathdirs; do
9060 if test "X$x" = "X$found_dir"; then
9065 if test -z "$haveit"; then
9066 ltrpathdirs
="$ltrpathdirs $found_dir"
9068 if test "$hardcode_direct" = yes; then
9069 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9071 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9072 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9074 for x
in $rpathdirs; do
9075 if test "X$x" = "X$found_dir"; then
9080 if test -z "$haveit"; then
9081 rpathdirs
="$rpathdirs $found_dir"
9085 for x
in $LDFLAGS $LIBINTL; do
9087 acl_save_prefix
="$prefix"
9088 prefix
="$acl_final_prefix"
9089 acl_save_exec_prefix
="$exec_prefix"
9090 exec_prefix
="$acl_final_exec_prefix"
9092 exec_prefix
="$acl_save_exec_prefix"
9093 prefix
="$acl_save_prefix"
9095 if test "X$x" = "X-L$found_dir"; then
9100 if test -z "$haveit"; then
9101 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9103 if test "$hardcode_minus_L" != no
; then
9104 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9106 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
9112 if test "X$found_a" != "X"; then
9113 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
9115 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9118 additional_includedir
=
9119 case "$found_dir" in
9121 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9122 additional_includedir
="$basedir/include"
9125 if test "X$additional_includedir" != "X"; then
9126 if test "X$additional_includedir" != "X/usr/include"; then
9128 if test "X$additional_includedir" = "X/usr/local/include"; then
9129 if test -n "$GCC"; then
9131 linux
*) haveit
=yes;;
9135 if test -z "$haveit"; then
9136 for x
in $CPPFLAGS $INCINTL; do
9138 acl_save_prefix
="$prefix"
9139 prefix
="$acl_final_prefix"
9140 acl_save_exec_prefix
="$exec_prefix"
9141 exec_prefix
="$acl_final_exec_prefix"
9143 exec_prefix
="$acl_save_exec_prefix"
9144 prefix
="$acl_save_prefix"
9146 if test "X$x" = "X-I$additional_includedir"; then
9151 if test -z "$haveit"; then
9152 if test -d "$additional_includedir"; then
9153 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9159 if test -n "$found_la"; then
9160 save_libdir
="$libdir"
9162 */* |
*\\*) .
"$found_la" ;;
9163 *) .
"./$found_la" ;;
9165 libdir
="$save_libdir"
9166 for dep
in $dependency_libs; do
9169 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9170 if test "X$additional_libdir" != "X/usr/lib"; then
9172 if test "X$additional_libdir" = "X/usr/local/lib"; then
9173 if test -n "$GCC"; then
9175 linux
*) haveit
=yes;;
9179 if test -z "$haveit"; then
9181 for x
in $LDFLAGS $LIBINTL; do
9183 acl_save_prefix
="$prefix"
9184 prefix
="$acl_final_prefix"
9185 acl_save_exec_prefix
="$exec_prefix"
9186 exec_prefix
="$acl_final_exec_prefix"
9188 exec_prefix
="$acl_save_exec_prefix"
9189 prefix
="$acl_save_prefix"
9191 if test "X$x" = "X-L$additional_libdir"; then
9196 if test -z "$haveit"; then
9197 if test -d "$additional_libdir"; then
9198 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9202 for x
in $LDFLAGS $LTLIBINTL; do
9204 acl_save_prefix
="$prefix"
9205 prefix
="$acl_final_prefix"
9206 acl_save_exec_prefix
="$exec_prefix"
9207 exec_prefix
="$acl_final_exec_prefix"
9209 exec_prefix
="$acl_save_exec_prefix"
9210 prefix
="$acl_save_prefix"
9212 if test "X$x" = "X-L$additional_libdir"; then
9217 if test -z "$haveit"; then
9218 if test -d "$additional_libdir"; then
9219 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9226 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9227 if test "$enable_rpath" != no
; then
9229 for x
in $rpathdirs; do
9230 if test "X$x" = "X$dir"; then
9235 if test -z "$haveit"; then
9236 rpathdirs
="$rpathdirs $dir"
9239 for x
in $ltrpathdirs; do
9240 if test "X$x" = "X$dir"; then
9245 if test -z "$haveit"; then
9246 ltrpathdirs
="$ltrpathdirs $dir"
9251 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9254 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9257 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
9258 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9264 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
9265 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9271 if test "X$rpathdirs" != "X"; then
9272 if test -n "$hardcode_libdir_separator"; then
9274 for found_dir
in $rpathdirs; do
9275 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9277 acl_save_libdir
="$libdir"
9279 eval flag
=\"$hardcode_libdir_flag_spec\"
9280 libdir
="$acl_save_libdir"
9281 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
9283 for found_dir
in $rpathdirs; do
9284 acl_save_libdir
="$libdir"
9286 eval flag
=\"$hardcode_libdir_flag_spec\"
9287 libdir
="$acl_save_libdir"
9288 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
9292 if test "X$ltrpathdirs" != "X"; then
9293 for found_dir
in $ltrpathdirs; do
9294 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9298 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9299 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9300 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 gt_save_CPPFLAGS
="$CPPFLAGS"
9304 CPPFLAGS
="$CPPFLAGS $INCINTL"
9305 gt_save_LIBS
="$LIBS"
9306 LIBS
="$LIBS $LIBINTL"
9307 cat >conftest.
$ac_ext <<_ACEOF
9310 cat confdefs.h
>>conftest.
$ac_ext
9311 cat >>conftest.
$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9313 #include <libintl.h>
9314 extern int _nl_msg_cat_cntr;
9319 const char *_nl_expand_alias ();
9323 bindtextdomain ("", "");
9324 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9329 rm -f conftest.
$ac_objext conftest
$ac_exeext
9330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331 (eval $ac_link) 2>conftest.er1
9333 grep -v '^ *+' conftest.er1
>conftest.err
9335 cat conftest.err
>&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } &&
9338 { ac_try
='test -z "$ac_c_werror_flag"
9339 || test ! -s conftest.err'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; } &&
9345 { ac_try
='test -s conftest$ac_exeext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 gt_cv_func_gnugettext2_libintl
=yes
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.
$ac_ext >&5
9356 gt_cv_func_gnugettext2_libintl
=no
9358 rm -f conftest.err conftest.
$ac_objext \
9359 conftest
$ac_exeext conftest.
$ac_ext
9360 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
9361 LIBS
="$LIBS $LIBICONV"
9362 cat >conftest.
$ac_ext <<_ACEOF
9365 cat confdefs.h
>>conftest.
$ac_ext
9366 cat >>conftest.
$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 #include <libintl.h>
9369 extern int _nl_msg_cat_cntr;
9374 const char *_nl_expand_alias ();
9378 bindtextdomain ("", "");
9379 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9384 rm -f conftest.
$ac_objext conftest
$ac_exeext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9386 (eval $ac_link) 2>conftest.er1
9388 grep -v '^ *+' conftest.er1
>conftest.err
9390 cat conftest.err
>&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try
='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try
='test -s conftest$ac_exeext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 LIBINTL
="$LIBINTL $LIBICONV"
9407 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
9408 gt_cv_func_gnugettext2_libintl
=yes
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.
$ac_ext >&5
9415 rm -f conftest.err conftest.
$ac_objext \
9416 conftest
$ac_exeext conftest.
$ac_ext
9418 CPPFLAGS
="$gt_save_CPPFLAGS"
9419 LIBS
="$gt_save_LIBS"
9421 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
9422 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
9425 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
9426 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
9427 && test "$PACKAGE" != gettext-runtime \
9428 && test "$PACKAGE" != gettext-tools
; }; then
9429 gt_use_preinstalled_gnugettext
=yes
9437 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9438 nls_cv_use_gnu_gettext
=yes
9442 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9443 BUILD_INCLUDED_LIBINTL
=yes
9444 USE_INCLUDED_LIBINTL
=yes
9445 LIBINTL
="lib/intl/libintl.a $LIBICONV"
9446 LTLIBINTL
="lib/intl/libintl.a $LTLIBICONV"
9447 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9450 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9451 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
9456 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9457 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
9459 cat >>confdefs.h
<<\_ACEOF
9460 #define ENABLE_NLS 1
9468 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9469 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9470 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9471 echo "${ECHO_T}$USE_NLS" >&6
9472 if test "$USE_NLS" = "yes"; then
9473 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9474 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9475 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9476 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9477 gt_source
="external libintl"
9482 gt_source
="included intl directory"
9484 echo "$as_me:$LINENO: result: $gt_source" >&5
9485 echo "${ECHO_T}$gt_source" >&6
9488 if test "$USE_NLS" = "yes"; then
9490 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9491 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9492 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9493 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9494 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9495 echo "${ECHO_T}$LIBINTL" >&6
9497 for element
in $INCINTL; do
9499 for x
in $CPPFLAGS; do
9501 acl_save_prefix
="$prefix"
9502 prefix
="$acl_final_prefix"
9503 acl_save_exec_prefix
="$exec_prefix"
9504 exec_prefix
="$acl_final_exec_prefix"
9506 exec_prefix
="$acl_save_exec_prefix"
9507 prefix
="$acl_save_prefix"
9509 if test "X$x" = "X$element"; then
9514 if test -z "$haveit"; then
9515 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9522 cat >>confdefs.h
<<\_ACEOF
9523 #define HAVE_GETTEXT 1
9527 cat >>confdefs.h
<<\_ACEOF
9528 #define HAVE_DCGETTEXT 1
9537 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
9538 BUILD_INCLUDED_LIBINTL
=yes
9546 nls_cv_header_libgt
=
9557 if test "$USE_INCLUDED_LIBINTL" = yes; then
9558 INTLOBJS
="\$(GETTOBJS)"
9562 INTL_LIBTOOL_SUFFIX_PREFIX
=
9580 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9581 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9582 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9583 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 cat >conftest.
$ac_ext <<_ACEOF
9590 cat confdefs.h
>>conftest.
$ac_ext
9591 cat >>conftest.
$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9593 #include <sys/types.h>
9605 rm -f conftest.
$ac_objext
9606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9607 (eval $ac_compile) 2>conftest.er1
9609 grep -v '^ *+' conftest.er1
>conftest.err
9611 cat conftest.err
>&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } &&
9614 { ac_try
='test -z "$ac_c_werror_flag"
9615 || test ! -s conftest.err'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; } &&
9621 { ac_try
='test -s conftest.$ac_objext'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; }; then
9627 eval "$as_ac_Header=yes"
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.
$ac_ext >&5
9632 eval "$as_ac_Header=no"
9634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9639 cat >>confdefs.h
<<_ACEOF
9640 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9643 ac_header_dirent
=$ac_hdr; break
9647 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9648 if test $ac_header_dirent = dirent.h
; then
9649 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9650 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9651 if test "${ac_cv_search_opendir+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 ac_func_search_save_LIBS
=$LIBS
9655 ac_cv_search_opendir
=no
9656 cat >conftest.
$ac_ext <<_ACEOF
9659 cat confdefs.h
>>conftest.
$ac_ext
9660 cat >>conftest.
$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9663 /* Override any gcc2 internal prototype to avoid an error. */
9667 /* We use char because int might match the return type of a gcc2
9668 builtin and then its argument prototype would still apply. */
9678 rm -f conftest.
$ac_objext conftest
$ac_exeext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9680 (eval $ac_link) 2>conftest.er1
9682 grep -v '^ *+' conftest.er1
>conftest.err
9684 cat conftest.err
>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try
='test -z "$ac_c_werror_flag"
9688 || test ! -s conftest.err'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; } &&
9694 { ac_try
='test -s conftest$ac_exeext'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9700 ac_cv_search_opendir
="none required"
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.
$ac_ext >&5
9706 rm -f conftest.err conftest.
$ac_objext \
9707 conftest
$ac_exeext conftest.
$ac_ext
9708 if test "$ac_cv_search_opendir" = no
; then
9709 for ac_lib
in dir
; do
9710 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9711 cat >conftest.
$ac_ext <<_ACEOF
9714 cat confdefs.h
>>conftest.
$ac_ext
9715 cat >>conftest.
$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9718 /* Override any gcc2 internal prototype to avoid an error. */
9722 /* We use char because int might match the return type of a gcc2
9723 builtin and then its argument prototype would still apply. */
9733 rm -f conftest.
$ac_objext conftest
$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>conftest.er1
9737 grep -v '^ *+' conftest.er1
>conftest.err
9739 cat conftest.err
>&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try
='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try
='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_search_opendir
="-l$ac_lib"
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.
$ac_ext >&5
9762 rm -f conftest.err conftest.
$ac_objext \
9763 conftest
$ac_exeext conftest.
$ac_ext
9766 LIBS
=$ac_func_search_save_LIBS
9768 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9769 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9770 if test "$ac_cv_search_opendir" != no
; then
9771 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9776 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9777 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9778 if test "${ac_cv_search_opendir+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 ac_func_search_save_LIBS
=$LIBS
9782 ac_cv_search_opendir
=no
9783 cat >conftest.
$ac_ext <<_ACEOF
9786 cat confdefs.h
>>conftest.
$ac_ext
9787 cat >>conftest.
$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9790 /* Override any gcc2 internal prototype to avoid an error. */
9794 /* We use char because int might match the return type of a gcc2
9795 builtin and then its argument prototype would still apply. */
9805 rm -f conftest.
$ac_objext conftest
$ac_exeext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9807 (eval $ac_link) 2>conftest.er1
9809 grep -v '^ *+' conftest.er1
>conftest.err
9811 cat conftest.err
>&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try
='test -z "$ac_c_werror_flag"
9815 || test ! -s conftest.err'
9816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; } &&
9821 { ac_try
='test -s conftest$ac_exeext'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
9827 ac_cv_search_opendir
="none required"
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.
$ac_ext >&5
9833 rm -f conftest.err conftest.
$ac_objext \
9834 conftest
$ac_exeext conftest.
$ac_ext
9835 if test "$ac_cv_search_opendir" = no
; then
9837 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9838 cat >conftest.
$ac_ext <<_ACEOF
9841 cat confdefs.h
>>conftest.
$ac_ext
9842 cat >>conftest.
$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9845 /* Override any gcc2 internal prototype to avoid an error. */
9849 /* We use char because int might match the return type of a gcc2
9850 builtin and then its argument prototype would still apply. */
9860 rm -f conftest.
$ac_objext conftest
$ac_exeext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9862 (eval $ac_link) 2>conftest.er1
9864 grep -v '^ *+' conftest.er1
>conftest.err
9866 cat conftest.err
>&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try
='test -z "$ac_c_werror_flag"
9870 || test ! -s conftest.err'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; } &&
9876 { ac_try
='test -s conftest$ac_exeext'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 ac_cv_search_opendir
="-l$ac_lib"
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.
$ac_ext >&5
9889 rm -f conftest.err conftest.
$ac_objext \
9890 conftest
$ac_exeext conftest.
$ac_ext
9893 LIBS
=$ac_func_search_save_LIBS
9895 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9896 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9897 if test "$ac_cv_search_opendir" != no
; then
9898 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
9904 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9905 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9906 if test "${ac_cv_header_time+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 cat >conftest.
$ac_ext <<_ACEOF
9912 cat confdefs.h
>>conftest.
$ac_ext
9913 cat >>conftest.
$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915 #include <sys/types.h>
9916 #include <sys/time.h>
9922 if ((struct tm *) 0)
9928 rm -f conftest.
$ac_objext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9930 (eval $ac_compile) 2>conftest.er1
9932 grep -v '^ *+' conftest.er1
>conftest.err
9934 cat conftest.err
>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try
='test -z "$ac_c_werror_flag"
9938 || test ! -s conftest.err'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; } &&
9944 { ac_try
='test -s conftest.$ac_objext'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; }; then
9950 ac_cv_header_time
=yes
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.
$ac_ext >&5
9955 ac_cv_header_time
=no
9957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9959 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9960 echo "${ECHO_T}$ac_cv_header_time" >&6
9961 if test $ac_cv_header_time = yes; then
9963 cat >>confdefs.h
<<\_ACEOF
9964 #define TIME_WITH_SYS_TIME 1
9972 for ac_header
in inttypes.h
9974 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9976 echo "$as_me:$LINENO: checking for $ac_header" >&5
9977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9984 # Is the header compilable?
9985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9987 cat >conftest.
$ac_ext <<_ACEOF
9990 cat confdefs.h
>>conftest.
$ac_ext
9991 cat >>conftest.
$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 $ac_includes_default
9994 #include <$ac_header>
9996 rm -f conftest.
$ac_objext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9998 (eval $ac_compile) 2>conftest.er1
10000 grep -v '^ *+' conftest.er1
>conftest.err
10002 cat conftest.err
>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } &&
10005 { ac_try
='test -z "$ac_c_werror_flag"
10006 || test ! -s conftest.err'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; } &&
10012 { ac_try
='test -s conftest.$ac_objext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_header_compiler
=yes
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.
$ac_ext >&5
10023 ac_header_compiler
=no
10025 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10027 echo "${ECHO_T}$ac_header_compiler" >&6
10029 # Is the header present?
10030 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10032 cat >conftest.
$ac_ext <<_ACEOF
10035 cat confdefs.h
>>conftest.
$ac_ext
10036 cat >>conftest.
$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 #include <$ac_header>
10040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10041 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10043 grep -v '^ *+' conftest.er1
>conftest.err
10045 cat conftest.err
>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } >/dev
/null
; then
10048 if test -s conftest.err
; then
10049 ac_cpp_err
=$ac_c_preproc_warn_flag
10050 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10057 if test -z "$ac_cpp_err"; then
10058 ac_header_preproc
=yes
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.
$ac_ext >&5
10063 ac_header_preproc
=no
10065 rm -f conftest.err conftest.
$ac_ext
10066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10067 echo "${ECHO_T}$ac_header_preproc" >&6
10069 # So? What about this header?
10070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10076 ac_header_preproc
=yes
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10093 ## ------------------------------- ##
10094 ## Report this to bug-bash@gnu.org ##
10095 ## ------------------------------- ##
10098 sed "s/^/$as_me: WARNING: /" >&2
10101 echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 eval "$as_ac_Header=\$ac_header_preproc"
10108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10113 cat >>confdefs.h
<<_ACEOF
10114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10142 for ac_header
in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
10143 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
10144 stddef.h stdint.h netdb.h
pwd.h grp.h
strings.h regex.h
10146 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10148 echo "$as_me:$LINENO: checking for $ac_header" >&5
10149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10156 # Is the header compilable?
10157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10159 cat >conftest.
$ac_ext <<_ACEOF
10162 cat confdefs.h
>>conftest.
$ac_ext
10163 cat >>conftest.
$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 $ac_includes_default
10166 #include <$ac_header>
10168 rm -f conftest.
$ac_objext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10170 (eval $ac_compile) 2>conftest.er1
10172 grep -v '^ *+' conftest.er1
>conftest.err
10174 cat conftest.err
>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try
='test -z "$ac_c_werror_flag"
10178 || test ! -s conftest.err'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; } &&
10184 { ac_try
='test -s conftest.$ac_objext'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10190 ac_header_compiler
=yes
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.
$ac_ext >&5
10195 ac_header_compiler
=no
10197 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10199 echo "${ECHO_T}$ac_header_compiler" >&6
10201 # Is the header present?
10202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10204 cat >conftest.
$ac_ext <<_ACEOF
10207 cat confdefs.h
>>conftest.
$ac_ext
10208 cat >>conftest.
$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10210 #include <$ac_header>
10212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10213 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10215 grep -v '^ *+' conftest.er1
>conftest.err
10217 cat conftest.err
>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } >/dev
/null
; then
10220 if test -s conftest.err
; then
10221 ac_cpp_err
=$ac_c_preproc_warn_flag
10222 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10229 if test -z "$ac_cpp_err"; then
10230 ac_header_preproc
=yes
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.
$ac_ext >&5
10235 ac_header_preproc
=no
10237 rm -f conftest.err conftest.
$ac_ext
10238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10239 echo "${ECHO_T}$ac_header_preproc" >&6
10241 # So? What about this header?
10242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10248 ac_header_preproc
=yes
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10265 ## ------------------------------- ##
10266 ## Report this to bug-bash@gnu.org ##
10267 ## ------------------------------- ##
10270 sed "s/^/$as_me: WARNING: /" >&2
10273 echo "$as_me:$LINENO: checking for $ac_header" >&5
10274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 eval "$as_ac_Header=\$ac_header_preproc"
10280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10285 cat >>confdefs.h
<<_ACEOF
10286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10305 for ac_header
in sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h \
10306 sys
/resource.h sys
/param.h sys
/socket.h sys
/stat.h \
10307 sys
/time.h sys
/times.h sys
/types.h sys
/wait.h
10309 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10311 echo "$as_me:$LINENO: checking for $ac_header" >&5
10312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10319 # Is the header compilable?
10320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10322 cat >conftest.
$ac_ext <<_ACEOF
10325 cat confdefs.h
>>conftest.
$ac_ext
10326 cat >>conftest.
$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 $ac_includes_default
10329 #include <$ac_header>
10331 rm -f conftest.
$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10335 grep -v '^ *+' conftest.er1
>conftest.err
10337 cat conftest.err
>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try
='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try
='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_header_compiler
=yes
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.
$ac_ext >&5
10358 ac_header_compiler
=no
10360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10362 echo "${ECHO_T}$ac_header_compiler" >&6
10364 # Is the header present?
10365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10367 cat >conftest.
$ac_ext <<_ACEOF
10370 cat confdefs.h
>>conftest.
$ac_ext
10371 cat >>conftest.
$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 #include <$ac_header>
10375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10376 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10378 grep -v '^ *+' conftest.er1
>conftest.err
10380 cat conftest.err
>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } >/dev
/null
; then
10383 if test -s conftest.err
; then
10384 ac_cpp_err
=$ac_c_preproc_warn_flag
10385 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10392 if test -z "$ac_cpp_err"; then
10393 ac_header_preproc
=yes
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.
$ac_ext >&5
10398 ac_header_preproc
=no
10400 rm -f conftest.err conftest.
$ac_ext
10401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10402 echo "${ECHO_T}$ac_header_preproc" >&6
10404 # So? What about this header?
10405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10411 ac_header_preproc
=yes
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10428 ## ------------------------------- ##
10429 ## Report this to bug-bash@gnu.org ##
10430 ## ------------------------------- ##
10433 sed "s/^/$as_me: WARNING: /" >&2
10436 echo "$as_me:$LINENO: checking for $ac_header" >&5
10437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 eval "$as_ac_Header=\$ac_header_preproc"
10443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10448 cat >>confdefs.h
<<_ACEOF
10449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10458 for ac_header
in netinet
/in.h arpa
/inet.h
10460 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10462 echo "$as_me:$LINENO: checking for $ac_header" >&5
10463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10470 # Is the header compilable?
10471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10473 cat >conftest.
$ac_ext <<_ACEOF
10476 cat confdefs.h
>>conftest.
$ac_ext
10477 cat >>conftest.
$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10479 $ac_includes_default
10480 #include <$ac_header>
10482 rm -f conftest.
$ac_objext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10484 (eval $ac_compile) 2>conftest.er1
10486 grep -v '^ *+' conftest.er1
>conftest.err
10488 cat conftest.err
>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
10491 { ac_try
='test -z "$ac_c_werror_flag"
10492 || test ! -s conftest.err'
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try
='test -s conftest.$ac_objext'
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; }; then
10504 ac_header_compiler
=yes
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.
$ac_ext >&5
10509 ac_header_compiler
=no
10511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10513 echo "${ECHO_T}$ac_header_compiler" >&6
10515 # Is the header present?
10516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10518 cat >conftest.
$ac_ext <<_ACEOF
10521 cat confdefs.h
>>conftest.
$ac_ext
10522 cat >>conftest.
$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 #include <$ac_header>
10526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10527 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10529 grep -v '^ *+' conftest.er1
>conftest.err
10531 cat conftest.err
>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } >/dev
/null
; then
10534 if test -s conftest.err
; then
10535 ac_cpp_err
=$ac_c_preproc_warn_flag
10536 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10543 if test -z "$ac_cpp_err"; then
10544 ac_header_preproc
=yes
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.
$ac_ext >&5
10549 ac_header_preproc
=no
10551 rm -f conftest.err conftest.
$ac_ext
10552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10553 echo "${ECHO_T}$ac_header_preproc" >&6
10555 # So? What about this header?
10556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10562 ac_header_preproc
=yes
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10579 ## ------------------------------- ##
10580 ## Report this to bug-bash@gnu.org ##
10581 ## ------------------------------- ##
10584 sed "s/^/$as_me: WARNING: /" >&2
10587 echo "$as_me:$LINENO: checking for $ac_header" >&5
10588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 eval "$as_ac_Header=\$ac_header_preproc"
10594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10599 cat >>confdefs.h
<<_ACEOF
10600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10608 echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
10609 echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
10610 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 cat >conftest.
$ac_ext <<_ACEOF
10616 cat confdefs.h
>>conftest.
$ac_ext
10617 cat >>conftest.
$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10620 #if HAVE_SYS_STREAM_H
10621 # include <sys/stream.h>
10625 #include <sys/ptem.h>
10627 rm -f conftest.
$ac_objext
10628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10629 (eval $ac_compile) 2>conftest.er1
10631 grep -v '^ *+' conftest.er1
>conftest.err
10633 cat conftest.err
>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
10636 { ac_try
='test -z "$ac_c_werror_flag"
10637 || test ! -s conftest.err'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; } &&
10643 { ac_try
='test -s conftest.$ac_objext'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 ac_cv_header_sys_ptem_h
=yes
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.
$ac_ext >&5
10654 ac_cv_header_sys_ptem_h
=no
10656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10658 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
10659 echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
10663 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10664 # for constant arguments. Useless!
10665 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10666 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10667 if test "${ac_cv_working_alloca_h+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 cat >conftest.
$ac_ext <<_ACEOF
10673 cat confdefs.h
>>conftest.
$ac_ext
10674 cat >>conftest.
$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 #include <alloca.h>
10680 char *p = (char *) alloca (2 * sizeof (int));
10685 rm -f conftest.
$ac_objext conftest
$ac_exeext
10686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10687 (eval $ac_link) 2>conftest.er1
10689 grep -v '^ *+' conftest.er1
>conftest.err
10691 cat conftest.err
>&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } &&
10694 { ac_try
='test -z "$ac_c_werror_flag"
10695 || test ! -s conftest.err'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; } &&
10701 { ac_try
='test -s conftest$ac_exeext'
10702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; }; then
10707 ac_cv_working_alloca_h
=yes
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.
$ac_ext >&5
10712 ac_cv_working_alloca_h
=no
10714 rm -f conftest.err conftest.
$ac_objext \
10715 conftest
$ac_exeext conftest.
$ac_ext
10717 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10718 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10719 if test $ac_cv_working_alloca_h = yes; then
10721 cat >>confdefs.h
<<\_ACEOF
10722 #define HAVE_ALLOCA_H 1
10727 echo "$as_me:$LINENO: checking for alloca" >&5
10728 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10729 if test "${ac_cv_func_alloca_works+set}" = set; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 cat >conftest.
$ac_ext <<_ACEOF
10735 cat confdefs.h
>>conftest.
$ac_ext
10736 cat >>conftest.
$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10739 # define alloca __builtin_alloca
10742 # include <malloc.h>
10743 # define alloca _alloca
10746 # include <alloca.h>
10751 # ifndef alloca /* predefined by HP cc +Olibcalls */
10762 char *p = (char *) alloca (1);
10767 rm -f conftest.
$ac_objext conftest
$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>conftest.er1
10771 grep -v '^ *+' conftest.er1
>conftest.err
10773 cat conftest.err
>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
10776 { ac_try
='test -z "$ac_c_werror_flag"
10777 || test ! -s conftest.err'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; } &&
10783 { ac_try
='test -s conftest$ac_exeext'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; }; then
10789 ac_cv_func_alloca_works
=yes
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.
$ac_ext >&5
10794 ac_cv_func_alloca_works
=no
10796 rm -f conftest.err conftest.
$ac_objext \
10797 conftest
$ac_exeext conftest.
$ac_ext
10799 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10800 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10802 if test $ac_cv_func_alloca_works = yes; then
10804 cat >>confdefs.h
<<\_ACEOF
10805 #define HAVE_ALLOCA 1
10809 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10810 # that cause trouble. Some versions do not even contain alloca or
10811 # contain a buggy version. If you still want to use their alloca,
10812 # use ar to extract alloca.o from them instead of compiling alloca.c.
10814 ALLOCA
=alloca.
$ac_objext
10816 cat >>confdefs.h
<<\_ACEOF
10821 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10822 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10823 if test "${ac_cv_os_cray+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 cat >conftest.
$ac_ext <<_ACEOF
10829 cat confdefs.h
>>conftest.
$ac_ext
10830 cat >>conftest.
$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 #if defined(CRAY) && ! defined(CRAY2)
10839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10840 $EGREP "webecray" >/dev
/null
2>&1; then
10848 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10849 echo "${ECHO_T}$ac_cv_os_cray" >&6
10850 if test $ac_cv_os_cray = yes; then
10851 for ac_func
in _getb67 GETB67 getb67
; do
10852 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10853 echo "$as_me:$LINENO: checking for $ac_func" >&5
10854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10855 if eval "test \"\${$as_ac_var+set}\" = set"; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 cat >conftest.
$ac_ext <<_ACEOF
10861 cat confdefs.h
>>conftest.
$ac_ext
10862 cat >>conftest.
$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10866 #define $ac_func innocuous_$ac_func
10868 /* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char $ac_func (); below.
10870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 <limits.h> exists even on freestanding compilers. */
10874 # include <limits.h>
10876 # include <assert.h>
10881 /* Override any gcc2 internal prototype to avoid an error. */
10886 /* We use char because int might match the return type of a gcc2
10887 builtin and then its argument prototype would still apply. */
10889 /* The GNU C library defines this for functions which it implements
10890 to always fail with ENOSYS. Some functions are actually named
10891 something starting with __ and the normal name is an alias. */
10892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10895 char (*f) () = $ac_func;
10904 return f != $ac_func;
10909 rm -f conftest.
$ac_objext conftest
$ac_exeext
10910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10911 (eval $ac_link) 2>conftest.er1
10913 grep -v '^ *+' conftest.er1
>conftest.err
10915 cat conftest.err
>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try
='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try
='test -s conftest$ac_exeext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 eval "$as_ac_var=yes"
10933 echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.
$ac_ext >&5
10936 eval "$as_ac_var=no"
10938 rm -f conftest.err conftest.
$ac_objext \
10939 conftest
$ac_exeext conftest.
$ac_ext
10941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10943 if test `eval echo '${'$as_ac_var'}'` = yes; then
10945 cat >>confdefs.h
<<_ACEOF
10946 #define CRAY_STACKSEG_END $ac_func
10955 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10956 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10957 if test "${ac_cv_c_stack_direction+set}" = set; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10960 if test "$cross_compiling" = yes; then
10961 ac_cv_c_stack_direction
=0
10963 cat >conftest.
$ac_ext <<_ACEOF
10966 cat confdefs.h
>>conftest.
$ac_ext
10967 cat >>conftest.
$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10970 find_stack_direction ()
10972 static char *addr = 0;
10977 return find_stack_direction ();
10980 return (&dummy > addr) ? 1 : -1;
10986 exit (find_stack_direction () < 0);
10989 rm -f conftest
$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000 ac_cv_c_stack_direction
=1
11002 echo "$as_me: program exited with status $ac_status" >&5
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.
$ac_ext >&5
11006 ( exit $ac_status )
11007 ac_cv_c_stack_direction
=-1
11009 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11012 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11013 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11015 cat >>confdefs.h
<<_ACEOF
11016 #define STACK_DIRECTION $ac_cv_c_stack_direction
11022 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11023 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
11024 if test "${ac_cv_func_getpgrp_void+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 # Use it with a single arg.
11028 cat >conftest.
$ac_ext <<_ACEOF
11031 cat confdefs.h
>>conftest.
$ac_ext
11032 cat >>conftest.
$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 $ac_includes_default
11043 rm -f conftest.
$ac_objext
11044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11045 (eval $ac_compile) 2>conftest.er1
11047 grep -v '^ *+' conftest.er1
>conftest.err
11049 cat conftest.err
>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try
='test -z "$ac_c_werror_flag"
11053 || test ! -s conftest.err'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; } &&
11059 { ac_try
='test -s conftest.$ac_objext'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 ac_cv_func_getpgrp_void
=no
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.
$ac_ext >&5
11070 ac_cv_func_getpgrp_void
=yes
11072 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11075 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11076 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
11077 if test $ac_cv_func_getpgrp_void = yes; then
11079 cat >>confdefs.h
<<\_ACEOF
11080 #define GETPGRP_VOID 1
11085 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
11086 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
11087 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 ac_cv_func_setvbuf_reversed
=no
11091 cat >conftest.
$ac_ext <<_ACEOF
11094 cat confdefs.h
>>conftest.
$ac_ext
11095 cat >>conftest.
$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11099 int (setvbuf) (FILE *, int, char *, size_t);
11104 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
11109 rm -f conftest.
$ac_objext conftest
$ac_exeext
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>conftest.er1
11113 grep -v '^ *+' conftest.er1
>conftest.err
11115 cat conftest.err
>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try
='test -z "$ac_c_werror_flag"
11119 || test ! -s conftest.err'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try
='test -s conftest$ac_exeext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 cat >conftest.
$ac_ext <<_ACEOF
11134 cat confdefs.h
>>conftest.
$ac_ext
11135 cat >>conftest.
$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11139 int (setvbuf) (FILE *, int, char *, size_t);
11144 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
11149 rm -f conftest.
$ac_objext conftest
$ac_exeext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>conftest.er1
11153 grep -v '^ *+' conftest.er1
>conftest.err
11155 cat conftest.err
>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try
='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try
='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 # It compiles and links either way, so it must not be declared
11172 # with a prototype and most likely this is a K&R C compiler.
11174 if test "$cross_compiling" = yes; then
11175 : # Assume setvbuf is not reversed when cross-compiling.
11177 cat >conftest.
$ac_ext <<_ACEOF
11180 cat confdefs.h
>>conftest.
$ac_ext
11181 cat >>conftest.
$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11187 /* This call has the arguments reversed.
11188 A reversed system may check and see that the address of buf
11189 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11191 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
11194 exit (0); /* Non-reversed systems SEGV here. */
11199 rm -f conftest
$ac_exeext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11201 (eval $ac_link) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_cv_func_setvbuf_reversed
=yes
11212 echo "$as_me: program exited with status $ac_status" >&5
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.
$ac_ext >&5
11216 ( exit $ac_status )
11219 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11221 ac_cv_func_setvbuf_reversed
=yes
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.
$ac_ext >&5
11227 rm -f conftest.err conftest.
$ac_objext \
11228 conftest
$ac_exeext conftest.
$ac_ext
11230 echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.
$ac_ext >&5
11234 rm -f conftest.err conftest.
$ac_objext \
11235 conftest
$ac_exeext conftest.
$ac_ext
11237 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
11238 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
11239 if test $ac_cv_func_setvbuf_reversed = yes; then
11241 cat >>confdefs.h
<<\_ACEOF
11242 #define SETVBUF_REVERSED 1
11248 for ac_func
in vprintf
11250 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11251 echo "$as_me:$LINENO: checking for $ac_func" >&5
11252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11253 if eval "test \"\${$as_ac_var+set}\" = set"; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 cat >conftest.
$ac_ext <<_ACEOF
11259 cat confdefs.h
>>conftest.
$ac_ext
11260 cat >>conftest.
$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11264 #define $ac_func innocuous_$ac_func
11266 /* System header to define __stub macros and hopefully few prototypes,
11267 which can conflict with char $ac_func (); below.
11268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11269 <limits.h> exists even on freestanding compilers. */
11272 # include <limits.h>
11274 # include <assert.h>
11279 /* Override any gcc2 internal prototype to avoid an error. */
11284 /* We use char because int might match the return type of a gcc2
11285 builtin and then its argument prototype would still apply. */
11287 /* The GNU C library defines this for functions which it implements
11288 to always fail with ENOSYS. Some functions are actually named
11289 something starting with __ and the normal name is an alias. */
11290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11293 char (*f) () = $ac_func;
11302 return f != $ac_func;
11307 rm -f conftest.
$ac_objext conftest
$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>conftest.er1
11311 grep -v '^ *+' conftest.er1
>conftest.err
11313 cat conftest.err
>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try
='test -z "$ac_c_werror_flag"
11317 || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try
='test -s conftest$ac_exeext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 eval "$as_ac_var=yes"
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.
$ac_ext >&5
11334 eval "$as_ac_var=no"
11336 rm -f conftest.err conftest.
$ac_objext \
11337 conftest
$ac_exeext conftest.
$ac_ext
11339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11341 if test `eval echo '${'$as_ac_var'}'` = yes; then
11342 cat >>confdefs.h
<<_ACEOF
11343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11346 echo "$as_me:$LINENO: checking for _doprnt" >&5
11347 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11348 if test "${ac_cv_func__doprnt+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 cat >conftest.
$ac_ext <<_ACEOF
11354 cat confdefs.h
>>conftest.
$ac_ext
11355 cat >>conftest.
$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11359 #define _doprnt innocuous__doprnt
11361 /* System header to define __stub macros and hopefully few prototypes,
11362 which can conflict with char _doprnt (); below.
11363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364 <limits.h> exists even on freestanding compilers. */
11367 # include <limits.h>
11369 # include <assert.h>
11374 /* Override any gcc2 internal prototype to avoid an error. */
11379 /* We use char because int might match the return type of a gcc2
11380 builtin and then its argument prototype would still apply. */
11382 /* The GNU C library defines this for functions which it implements
11383 to always fail with ENOSYS. Some functions are actually named
11384 something starting with __ and the normal name is an alias. */
11385 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11388 char (*f) () = _doprnt;
11397 return f != _doprnt;
11402 rm -f conftest.
$ac_objext conftest
$ac_exeext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11404 (eval $ac_link) 2>conftest.er1
11406 grep -v '^ *+' conftest.er1
>conftest.err
11408 cat conftest.err
>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } &&
11411 { ac_try
='test -z "$ac_c_werror_flag"
11412 || test ! -s conftest.err'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; } &&
11418 { ac_try
='test -s conftest$ac_exeext'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_cv_func__doprnt
=yes
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.
$ac_ext >&5
11429 ac_cv_func__doprnt
=no
11431 rm -f conftest.err conftest.
$ac_objext \
11432 conftest
$ac_exeext conftest.
$ac_ext
11434 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11435 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11436 if test $ac_cv_func__doprnt = yes; then
11438 cat >>confdefs.h
<<\_ACEOF
11439 #define HAVE_DOPRNT 1
11448 echo "$as_me:$LINENO: checking for working strcoll" >&5
11449 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
11450 if test "${ac_cv_func_strcoll_works+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 if test "$cross_compiling" = yes; then
11454 ac_cv_func_strcoll_works
=no
11456 cat >conftest.
$ac_ext <<_ACEOF
11459 cat confdefs.h
>>conftest.
$ac_ext
11460 cat >>conftest.
$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11462 $ac_includes_default
11466 exit (strcoll ("abc", "def") >= 0 ||
11467 strcoll ("ABC", "DEF") >= 0 ||
11468 strcoll ("123", "456") >= 0)
11473 rm -f conftest
$ac_exeext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11475 (eval $ac_link) 2>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 ac_cv_func_strcoll_works
=yes
11486 echo "$as_me: program exited with status $ac_status" >&5
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.
$ac_ext >&5
11490 ( exit $ac_status )
11491 ac_cv_func_strcoll_works
=no
11493 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11496 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
11497 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
11498 if test $ac_cv_func_strcoll_works = yes; then
11500 cat >>confdefs.h
<<\_ACEOF
11501 #define HAVE_STRCOLL 1
11508 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
11509 MALLOC_TARGET
=alloca
11510 MALLOC_SRC
=alloca.c
11512 MALLOC_LIB
='-lmalloc'
11513 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
11514 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
11515 MALLOC_DEP
='$(MALLOC_LIBRARY)'
11518 if test "$ac_cv_func_vprintf" = no
; then
11519 echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
11520 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
11521 cat >conftest.
$ac_ext <<_ACEOF
11524 cat confdefs.h
>>conftest.
$ac_ext
11525 cat >>conftest.
$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11531 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev
/null
2>&1; then
11532 ac_cv_func_vprintf
=yes
11536 echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
11537 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
11538 if test $ac_cv_func_vprintf = yes; then
11539 cat >>confdefs.h
<<\_ACEOF
11540 #define HAVE_VPRINTF 1
11546 if test "$ac_cv_func_vprintf" = no
&& test "$ac_cv_func__doprnt" = "yes"; then
11548 "vprint.$ac_objext" | \
11549 *" vprint.$ac_objext" | \
11550 "vprint.$ac_objext "* | \
11551 *" vprint.$ac_objext "* ) ;;
11552 *) LIBOBJS
="$LIBOBJS vprint.$ac_objext" ;;
11557 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11558 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11559 if test "${ac_cv_type_signal+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 cat >conftest.
$ac_ext <<_ACEOF
11565 cat confdefs.h
>>conftest.
$ac_ext
11566 cat >>conftest.
$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11568 #include <sys/types.h>
11569 #include <signal.h>
11574 extern "C" void (*signal (int, void (*)(int)))(int);
11576 void (*signal ()) ();
11587 rm -f conftest.
$ac_objext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>conftest.er1
11591 grep -v '^ *+' conftest.er1
>conftest.err
11593 cat conftest.err
>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try
='test -z "$ac_c_werror_flag"
11597 || test ! -s conftest.err'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; } &&
11603 { ac_try
='test -s conftest.$ac_objext'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 ac_cv_type_signal
=void
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.
$ac_ext >&5
11614 ac_cv_type_signal
=int
11616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11618 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11619 echo "${ECHO_T}$ac_cv_type_signal" >&6
11621 cat >>confdefs.h
<<_ACEOF
11622 #define RETSIGTYPE $ac_cv_type_signal
11627 echo "$as_me:$LINENO: checking for __setostype" >&5
11628 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
11629 if test "${ac_cv_func___setostype+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 cat >conftest.
$ac_ext <<_ACEOF
11635 cat confdefs.h
>>conftest.
$ac_ext
11636 cat >>conftest.
$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11638 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
11639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11640 #define __setostype innocuous___setostype
11642 /* System header to define __stub macros and hopefully few prototypes,
11643 which can conflict with char __setostype (); below.
11644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645 <limits.h> exists even on freestanding compilers. */
11648 # include <limits.h>
11650 # include <assert.h>
11655 /* Override any gcc2 internal prototype to avoid an error. */
11660 /* We use char because int might match the return type of a gcc2
11661 builtin and then its argument prototype would still apply. */
11662 char __setostype ();
11663 /* The GNU C library defines this for functions which it implements
11664 to always fail with ENOSYS. Some functions are actually named
11665 something starting with __ and the normal name is an alias. */
11666 #if defined (__stub___setostype) || defined (__stub_____setostype)
11669 char (*f) () = __setostype;
11678 return f != __setostype;
11683 rm -f conftest.
$ac_objext conftest
$ac_exeext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685 (eval $ac_link) 2>conftest.er1
11687 grep -v '^ *+' conftest.er1
>conftest.err
11689 cat conftest.err
>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
11692 { ac_try
='test -z "$ac_c_werror_flag"
11693 || test ! -s conftest.err'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; } &&
11699 { ac_try
='test -s conftest$ac_exeext'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 ac_cv_func___setostype
=yes
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.
$ac_ext >&5
11710 ac_cv_func___setostype
=no
11712 rm -f conftest.err conftest.
$ac_objext \
11713 conftest
$ac_exeext conftest.
$ac_ext
11715 echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
11716 echo "${ECHO_T}$ac_cv_func___setostype" >&6
11717 if test $ac_cv_func___setostype = yes; then
11718 cat >>confdefs.h
<<\_ACEOF
11719 #define HAVE_SETOSTYPE 1
11724 echo "$as_me:$LINENO: checking for wait3" >&5
11725 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
11726 if test "${ac_cv_func_wait3+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 cat >conftest.
$ac_ext <<_ACEOF
11732 cat confdefs.h
>>conftest.
$ac_ext
11733 cat >>conftest.
$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
11736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11737 #define wait3 innocuous_wait3
11739 /* System header to define __stub macros and hopefully few prototypes,
11740 which can conflict with char wait3 (); below.
11741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11742 <limits.h> exists even on freestanding compilers. */
11745 # include <limits.h>
11747 # include <assert.h>
11752 /* Override any gcc2 internal prototype to avoid an error. */
11757 /* We use char because int might match the return type of a gcc2
11758 builtin and then its argument prototype would still apply. */
11760 /* The GNU C library defines this for functions which it implements
11761 to always fail with ENOSYS. Some functions are actually named
11762 something starting with __ and the normal name is an alias. */
11763 #if defined (__stub_wait3) || defined (__stub___wait3)
11766 char (*f) () = wait3;
11780 rm -f conftest.
$ac_objext conftest
$ac_exeext
11781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11782 (eval $ac_link) 2>conftest.er1
11784 grep -v '^ *+' conftest.er1
>conftest.err
11786 cat conftest.err
>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try
='test -z "$ac_c_werror_flag"
11790 || test ! -s conftest.err'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; } &&
11796 { ac_try
='test -s conftest$ac_exeext'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_func_wait3
=yes
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.
$ac_ext >&5
11807 ac_cv_func_wait3
=no
11809 rm -f conftest.err conftest.
$ac_objext \
11810 conftest
$ac_exeext conftest.
$ac_ext
11812 echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
11813 echo "${ECHO_T}$ac_cv_func_wait3" >&6
11814 if test $ac_cv_func_wait3 = yes; then
11815 cat >>confdefs.h
<<\_ACEOF
11816 #define HAVE_WAIT3 1
11821 echo "$as_me:$LINENO: checking for isinf" >&5
11822 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11823 if test "${ac_cv_func_isinf+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 cat >conftest.
$ac_ext <<_ACEOF
11829 cat confdefs.h
>>conftest.
$ac_ext
11830 cat >>conftest.
$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
11833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11834 #define isinf innocuous_isinf
11836 /* System header to define __stub macros and hopefully few prototypes,
11837 which can conflict with char isinf (); below.
11838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839 <limits.h> exists even on freestanding compilers. */
11842 # include <limits.h>
11844 # include <assert.h>
11849 /* Override any gcc2 internal prototype to avoid an error. */
11854 /* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11857 /* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860 #if defined (__stub_isinf) || defined (__stub___isinf)
11863 char (*f) () = isinf;
11877 rm -f conftest.
$ac_objext conftest
$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11881 grep -v '^ *+' conftest.er1
>conftest.err
11883 cat conftest.err
>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try
='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try
='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_func_isinf
=yes
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.
$ac_ext >&5
11904 ac_cv_func_isinf
=no
11906 rm -f conftest.err conftest.
$ac_objext \
11907 conftest
$ac_exeext conftest.
$ac_ext
11909 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11910 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11911 if test $ac_cv_func_isinf = yes; then
11912 cat >>confdefs.h
<<\_ACEOF
11913 #define HAVE_ISINF_IN_LIBC 1
11918 echo "$as_me:$LINENO: checking for isnan" >&5
11919 echo $ECHO_N "checking for isnan... $ECHO_C" >&6
11920 if test "${ac_cv_func_isnan+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 isnan to an innocuous variant, in case <limits.h> declares isnan.
11930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11931 #define isnan innocuous_isnan
11933 /* System header to define __stub macros and hopefully few prototypes,
11934 which can conflict with char isnan (); 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_isnan) || defined (__stub___isnan)
11960 char (*f) () = isnan;
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_isnan
=yes
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.
$ac_ext >&5
12001 ac_cv_func_isnan
=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_isnan" >&5
12007 echo "${ECHO_T}$ac_cv_func_isnan" >&6
12008 if test $ac_cv_func_isnan = yes; then
12009 cat >>confdefs.h
<<\_ACEOF
12010 #define HAVE_ISNAN_IN_LIBC 1
12016 echo "$as_me:$LINENO: checking for mkfifo" >&5
12017 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
12018 if test "${ac_cv_func_mkfifo+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 cat >conftest.
$ac_ext <<_ACEOF
12024 cat confdefs.h
>>conftest.
$ac_ext
12025 cat >>conftest.
$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12027 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
12028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12029 #define mkfifo innocuous_mkfifo
12031 /* System header to define __stub macros and hopefully few prototypes,
12032 which can conflict with char mkfifo (); below.
12033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12034 <limits.h> exists even on freestanding compilers. */
12037 # include <limits.h>
12039 # include <assert.h>
12044 /* Override any gcc2 internal prototype to avoid an error. */
12049 /* We use char because int might match the return type of a gcc2
12050 builtin and then its argument prototype would still apply. */
12052 /* The GNU C library defines this for functions which it implements
12053 to always fail with ENOSYS. Some functions are actually named
12054 something starting with __ and the normal name is an alias. */
12055 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
12058 char (*f) () = mkfifo;
12067 return f != mkfifo;
12072 rm -f conftest.
$ac_objext conftest
$ac_exeext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12074 (eval $ac_link) 2>conftest.er1
12076 grep -v '^ *+' conftest.er1
>conftest.err
12078 cat conftest.err
>&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try
='test -z "$ac_c_werror_flag"
12082 || test ! -s conftest.err'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; } &&
12088 { ac_try
='test -s conftest$ac_exeext'
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; }; then
12094 ac_cv_func_mkfifo
=yes
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.
$ac_ext >&5
12099 ac_cv_func_mkfifo
=no
12101 rm -f conftest.err conftest.
$ac_objext \
12102 conftest
$ac_exeext conftest.
$ac_ext
12104 echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
12105 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
12106 if test $ac_cv_func_mkfifo = yes; then
12107 cat >>confdefs.h
<<\_ACEOF
12108 #define HAVE_MKFIFO 1
12112 cat >>confdefs.h
<<\_ACEOF
12113 #define MKFIFO_MISSING 1
12141 for ac_func
in dup2 eaccess fcntl getdtablesize getgroups gethostname \
12142 getpagesize getpeername getrlimit getrusage gettimeofday \
12143 kill killpg lstat readlink sbrk
select setdtablesize \
12144 tcgetpgrp uname
ulimit waitpid
12146 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12147 echo "$as_me:$LINENO: checking for $ac_func" >&5
12148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12149 if eval "test \"\${$as_ac_var+set}\" = set"; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 cat >conftest.
$ac_ext <<_ACEOF
12155 cat confdefs.h
>>conftest.
$ac_ext
12156 cat >>conftest.
$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12160 #define $ac_func innocuous_$ac_func
12162 /* System header to define __stub macros and hopefully few prototypes,
12163 which can conflict with char $ac_func (); below.
12164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12165 <limits.h> exists even on freestanding compilers. */
12168 # include <limits.h>
12170 # include <assert.h>
12175 /* Override any gcc2 internal prototype to avoid an error. */
12180 /* We use char because int might match the return type of a gcc2
12181 builtin and then its argument prototype would still apply. */
12183 /* The GNU C library defines this for functions which it implements
12184 to always fail with ENOSYS. Some functions are actually named
12185 something starting with __ and the normal name is an alias. */
12186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12189 char (*f) () = $ac_func;
12198 return f != $ac_func;
12203 rm -f conftest.
$ac_objext conftest
$ac_exeext
12204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12205 (eval $ac_link) 2>conftest.er1
12207 grep -v '^ *+' conftest.er1
>conftest.err
12209 cat conftest.err
>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try
='test -z "$ac_c_werror_flag"
12213 || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try
='test -s conftest$ac_exeext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 eval "$as_ac_var=yes"
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.
$ac_ext >&5
12230 eval "$as_ac_var=no"
12232 rm -f conftest.err conftest.
$ac_objext \
12233 conftest
$ac_exeext conftest.
$ac_ext
12235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12237 if test `eval echo '${'$as_ac_var'}'` = yes; then
12238 cat >>confdefs.h
<<_ACEOF
12239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12246 for ac_func
in rename
12248 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12249 echo "$as_me:$LINENO: checking for $ac_func" >&5
12250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12251 if eval "test \"\${$as_ac_var+set}\" = set"; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 cat >conftest.
$ac_ext <<_ACEOF
12257 cat confdefs.h
>>conftest.
$ac_ext
12258 cat >>conftest.
$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12262 #define $ac_func innocuous_$ac_func
12264 /* System header to define __stub macros and hopefully few prototypes,
12265 which can conflict with char $ac_func (); below.
12266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12267 <limits.h> exists even on freestanding compilers. */
12270 # include <limits.h>
12272 # include <assert.h>
12277 /* Override any gcc2 internal prototype to avoid an error. */
12282 /* We use char because int might match the return type of a gcc2
12283 builtin and then its argument prototype would still apply. */
12285 /* The GNU C library defines this for functions which it implements
12286 to always fail with ENOSYS. Some functions are actually named
12287 something starting with __ and the normal name is an alias. */
12288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12291 char (*f) () = $ac_func;
12300 return f != $ac_func;
12305 rm -f conftest.
$ac_objext conftest
$ac_exeext
12306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12307 (eval $ac_link) 2>conftest.er1
12309 grep -v '^ *+' conftest.er1
>conftest.err
12311 cat conftest.err
>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } &&
12314 { ac_try
='test -z "$ac_c_werror_flag"
12315 || test ! -s conftest.err'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; } &&
12321 { ac_try
='test -s conftest$ac_exeext'
12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 eval "$as_ac_var=yes"
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.
$ac_ext >&5
12332 eval "$as_ac_var=no"
12334 rm -f conftest.err conftest.
$ac_objext \
12335 conftest
$ac_exeext conftest.
$ac_ext
12337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12339 if test `eval echo '${'$as_ac_var'}'` = yes; then
12340 cat >>confdefs.h
<<_ACEOF
12341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12346 "$ac_func.$ac_objext" | \
12347 *" $ac_func.$ac_objext" | \
12348 "$ac_func.$ac_objext "* | \
12349 *" $ac_func.$ac_objext "* ) ;;
12350 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
12385 for ac_func
in bcopy bzero confstr fnmatch \
12386 getaddrinfo gethostbyname getservbyname getservent inet_aton \
12387 memmove pathconf putenv raise regcomp regexec \
12388 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
12389 sysconf tcgetattr
times ttyname tzset unsetenv
12391 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12392 echo "$as_me:$LINENO: checking for $ac_func" >&5
12393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12394 if eval "test \"\${$as_ac_var+set}\" = set"; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 cat >conftest.
$ac_ext <<_ACEOF
12400 cat confdefs.h
>>conftest.
$ac_ext
12401 cat >>conftest.
$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12405 #define $ac_func innocuous_$ac_func
12407 /* System header to define __stub macros and hopefully few prototypes,
12408 which can conflict with char $ac_func (); below.
12409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12410 <limits.h> exists even on freestanding compilers. */
12413 # include <limits.h>
12415 # include <assert.h>
12420 /* Override any gcc2 internal prototype to avoid an error. */
12425 /* We use char because int might match the return type of a gcc2
12426 builtin and then its argument prototype would still apply. */
12428 /* The GNU C library defines this for functions which it implements
12429 to always fail with ENOSYS. Some functions are actually named
12430 something starting with __ and the normal name is an alias. */
12431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12434 char (*f) () = $ac_func;
12443 return f != $ac_func;
12448 rm -f conftest.
$ac_objext conftest
$ac_exeext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12450 (eval $ac_link) 2>conftest.er1
12452 grep -v '^ *+' conftest.er1
>conftest.err
12454 cat conftest.err
>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
12457 { ac_try
='test -z "$ac_c_werror_flag"
12458 || test ! -s conftest.err'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; } &&
12464 { ac_try
='test -s conftest$ac_exeext'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }; then
12470 eval "$as_ac_var=yes"
12472 echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.
$ac_ext >&5
12475 eval "$as_ac_var=no"
12477 rm -f conftest.err conftest.
$ac_objext \
12478 conftest
$ac_exeext conftest.
$ac_ext
12480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12482 if test `eval echo '${'$as_ac_var'}'` = yes; then
12483 cat >>confdefs.h
<<_ACEOF
12484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12495 for ac_func
in vsnprintf snprintf vasprintf asprintf
12497 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12498 echo "$as_me:$LINENO: checking for $ac_func" >&5
12499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12500 if eval "test \"\${$as_ac_var+set}\" = set"; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 cat >conftest.
$ac_ext <<_ACEOF
12506 cat confdefs.h
>>conftest.
$ac_ext
12507 cat >>conftest.
$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12511 #define $ac_func innocuous_$ac_func
12513 /* System header to define __stub macros and hopefully few prototypes,
12514 which can conflict with char $ac_func (); below.
12515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12516 <limits.h> exists even on freestanding compilers. */
12519 # include <limits.h>
12521 # include <assert.h>
12526 /* Override any gcc2 internal prototype to avoid an error. */
12531 /* We use char because int might match the return type of a gcc2
12532 builtin and then its argument prototype would still apply. */
12534 /* The GNU C library defines this for functions which it implements
12535 to always fail with ENOSYS. Some functions are actually named
12536 something starting with __ and the normal name is an alias. */
12537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12540 char (*f) () = $ac_func;
12549 return f != $ac_func;
12554 rm -f conftest.
$ac_objext conftest
$ac_exeext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556 (eval $ac_link) 2>conftest.er1
12558 grep -v '^ *+' conftest.er1
>conftest.err
12560 cat conftest.err
>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try
='test -z "$ac_c_werror_flag"
12564 || test ! -s conftest.err'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; } &&
12570 { ac_try
='test -s conftest$ac_exeext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 eval "$as_ac_var=yes"
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.
$ac_ext >&5
12581 eval "$as_ac_var=no"
12583 rm -f conftest.err conftest.
$ac_objext \
12584 conftest
$ac_exeext conftest.
$ac_ext
12586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12588 if test `eval echo '${'$as_ac_var'}'` = yes; then
12589 cat >>confdefs.h
<<_ACEOF
12590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12602 for ac_func
in isascii isblank isgraph isprint isspace isxdigit
12604 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12605 echo "$as_me:$LINENO: checking for $ac_func" >&5
12606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12607 if eval "test \"\${$as_ac_var+set}\" = set"; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 cat >conftest.
$ac_ext <<_ACEOF
12613 cat confdefs.h
>>conftest.
$ac_ext
12614 cat >>conftest.
$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12618 #define $ac_func innocuous_$ac_func
12620 /* System header to define __stub macros and hopefully few prototypes,
12621 which can conflict with char $ac_func (); below.
12622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12623 <limits.h> exists even on freestanding compilers. */
12626 # include <limits.h>
12628 # include <assert.h>
12633 /* Override any gcc2 internal prototype to avoid an error. */
12638 /* We use char because int might match the return type of a gcc2
12639 builtin and then its argument prototype would still apply. */
12641 /* The GNU C library defines this for functions which it implements
12642 to always fail with ENOSYS. Some functions are actually named
12643 something starting with __ and the normal name is an alias. */
12644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12647 char (*f) () = $ac_func;
12656 return f != $ac_func;
12661 rm -f conftest.
$ac_objext conftest
$ac_exeext
12662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12663 (eval $ac_link) 2>conftest.er1
12665 grep -v '^ *+' conftest.er1
>conftest.err
12667 cat conftest.err
>&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try
='test -z "$ac_c_werror_flag"
12671 || test ! -s conftest.err'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try
='test -s conftest$ac_exeext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 eval "$as_ac_var=yes"
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.
$ac_ext >&5
12688 eval "$as_ac_var=no"
12690 rm -f conftest.err conftest.
$ac_objext \
12691 conftest
$ac_exeext conftest.
$ac_ext
12693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12695 if test `eval echo '${'$as_ac_var'}'` = yes; then
12696 cat >>confdefs.h
<<_ACEOF
12697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12706 for ac_func
in getpwent getpwnam getpwuid
12708 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12709 echo "$as_me:$LINENO: checking for $ac_func" >&5
12710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12711 if eval "test \"\${$as_ac_var+set}\" = set"; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 cat >conftest.
$ac_ext <<_ACEOF
12717 cat confdefs.h
>>conftest.
$ac_ext
12718 cat >>conftest.
$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12722 #define $ac_func innocuous_$ac_func
12724 /* System header to define __stub macros and hopefully few prototypes,
12725 which can conflict with char $ac_func (); below.
12726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12727 <limits.h> exists even on freestanding compilers. */
12730 # include <limits.h>
12732 # include <assert.h>
12737 /* Override any gcc2 internal prototype to avoid an error. */
12742 /* We use char because int might match the return type of a gcc2
12743 builtin and then its argument prototype would still apply. */
12745 /* The GNU C library defines this for functions which it implements
12746 to always fail with ENOSYS. Some functions are actually named
12747 something starting with __ and the normal name is an alias. */
12748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12751 char (*f) () = $ac_func;
12760 return f != $ac_func;
12765 rm -f conftest.
$ac_objext conftest
$ac_exeext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12767 (eval $ac_link) 2>conftest.er1
12769 grep -v '^ *+' conftest.er1
>conftest.err
12771 cat conftest.err
>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try
='test -z "$ac_c_werror_flag"
12775 || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try
='test -s conftest$ac_exeext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 eval "$as_ac_var=yes"
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.
$ac_ext >&5
12792 eval "$as_ac_var=no"
12794 rm -f conftest.err conftest.
$ac_objext \
12795 conftest
$ac_exeext conftest.
$ac_ext
12797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12799 if test `eval echo '${'$as_ac_var'}'` = yes; then
12800 cat >>confdefs.h
<<_ACEOF
12801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12815 for ac_func
in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
12817 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12818 echo "$as_me:$LINENO: checking for $ac_func" >&5
12819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12820 if eval "test \"\${$as_ac_var+set}\" = set"; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 cat >conftest.
$ac_ext <<_ACEOF
12826 cat confdefs.h
>>conftest.
$ac_ext
12827 cat >>conftest.
$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12831 #define $ac_func innocuous_$ac_func
12833 /* System header to define __stub macros and hopefully few prototypes,
12834 which can conflict with char $ac_func (); below.
12835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12836 <limits.h> exists even on freestanding compilers. */
12839 # include <limits.h>
12841 # include <assert.h>
12846 /* Override any gcc2 internal prototype to avoid an error. */
12851 /* We use char because int might match the return type of a gcc2
12852 builtin and then its argument prototype would still apply. */
12854 /* The GNU C library defines this for functions which it implements
12855 to always fail with ENOSYS. Some functions are actually named
12856 something starting with __ and the normal name is an alias. */
12857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12860 char (*f) () = $ac_func;
12869 return f != $ac_func;
12874 rm -f conftest.
$ac_objext conftest
$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>conftest.er1
12878 grep -v '^ *+' conftest.er1
>conftest.err
12880 cat conftest.err
>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try
='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try
='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 eval "$as_ac_var=yes"
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.
$ac_ext >&5
12901 eval "$as_ac_var=no"
12903 rm -f conftest.err conftest.
$ac_objext \
12904 conftest
$ac_exeext conftest.
$ac_ext
12906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12908 if test `eval echo '${'$as_ac_var'}'` = yes; then
12909 cat >>confdefs.h
<<_ACEOF
12910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12915 "$ac_func.$ac_objext" | \
12916 *" $ac_func.$ac_objext" | \
12917 "$ac_func.$ac_objext "* | \
12918 *" $ac_func.$ac_objext "* ) ;;
12919 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
12933 for ac_func
in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
12935 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12936 echo "$as_me:$LINENO: checking for $ac_func" >&5
12937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12938 if eval "test \"\${$as_ac_var+set}\" = set"; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 cat >conftest.
$ac_ext <<_ACEOF
12944 cat confdefs.h
>>conftest.
$ac_ext
12945 cat >>conftest.
$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12949 #define $ac_func innocuous_$ac_func
12951 /* System header to define __stub macros and hopefully few prototypes,
12952 which can conflict with char $ac_func (); below.
12953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12954 <limits.h> exists even on freestanding compilers. */
12957 # include <limits.h>
12959 # include <assert.h>
12964 /* Override any gcc2 internal prototype to avoid an error. */
12969 /* We use char because int might match the return type of a gcc2
12970 builtin and then its argument prototype would still apply. */
12972 /* The GNU C library defines this for functions which it implements
12973 to always fail with ENOSYS. Some functions are actually named
12974 something starting with __ and the normal name is an alias. */
12975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12978 char (*f) () = $ac_func;
12987 return f != $ac_func;
12992 rm -f conftest.
$ac_objext conftest
$ac_exeext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12994 (eval $ac_link) 2>conftest.er1
12996 grep -v '^ *+' conftest.er1
>conftest.err
12998 cat conftest.err
>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
13001 { ac_try
='test -z "$ac_c_werror_flag"
13002 || test ! -s conftest.err'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; } &&
13008 { ac_try
='test -s conftest$ac_exeext'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 eval "$as_ac_var=yes"
13016 echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.
$ac_ext >&5
13019 eval "$as_ac_var=no"
13021 rm -f conftest.err conftest.
$ac_objext \
13022 conftest
$ac_exeext conftest.
$ac_ext
13024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13026 if test `eval echo '${'$as_ac_var'}'` = yes; then
13027 cat >>confdefs.h
<<_ACEOF
13028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13033 "$ac_func.$ac_objext" | \
13034 *" $ac_func.$ac_objext" | \
13035 "$ac_func.$ac_objext "* | \
13036 *" $ac_func.$ac_objext "* ) ;;
13037 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
13045 echo "$as_me:$LINENO: checking whether confstr is declared" >&5
13046 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
13047 if test "${ac_cv_have_decl_confstr+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 cat >conftest.
$ac_ext <<_ACEOF
13053 cat confdefs.h
>>conftest.
$ac_ext
13054 cat >>conftest.
$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13056 $ac_includes_default
13061 char *p = (char *) confstr;
13068 rm -f conftest.
$ac_objext
13069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13070 (eval $ac_compile) 2>conftest.er1
13072 grep -v '^ *+' conftest.er1
>conftest.err
13074 cat conftest.err
>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try
='test -z "$ac_c_werror_flag"
13078 || test ! -s conftest.err'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try
='test -s conftest.$ac_objext'
13085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086 (eval $ac_try) 2>&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 ac_cv_have_decl_confstr
=yes
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.
$ac_ext >&5
13095 ac_cv_have_decl_confstr
=no
13097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13099 echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
13100 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
13101 if test $ac_cv_have_decl_confstr = yes; then
13103 cat >>confdefs.h
<<_ACEOF
13104 #define HAVE_DECL_CONFSTR 1
13109 cat >>confdefs.h
<<_ACEOF
13110 #define HAVE_DECL_CONFSTR 0
13117 echo "$as_me:$LINENO: checking whether printf is declared" >&5
13118 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
13119 if test "${ac_cv_have_decl_printf+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 cat >conftest.
$ac_ext <<_ACEOF
13125 cat confdefs.h
>>conftest.
$ac_ext
13126 cat >>conftest.
$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13128 $ac_includes_default
13133 char *p = (char *) printf;
13140 rm -f conftest.
$ac_objext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13142 (eval $ac_compile) 2>conftest.er1
13144 grep -v '^ *+' conftest.er1
>conftest.err
13146 cat conftest.err
>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try
='test -z "$ac_c_werror_flag"
13150 || test ! -s conftest.err'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try
='test -s conftest.$ac_objext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_have_decl_printf
=yes
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.
$ac_ext >&5
13167 ac_cv_have_decl_printf
=no
13169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13171 echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
13172 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
13173 if test $ac_cv_have_decl_printf = yes; then
13175 cat >>confdefs.h
<<_ACEOF
13176 #define HAVE_DECL_PRINTF 1
13181 cat >>confdefs.h
<<_ACEOF
13182 #define HAVE_DECL_PRINTF 0
13189 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13190 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13191 if test "${ac_cv_have_decl_sbrk+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 cat >conftest.
$ac_ext <<_ACEOF
13197 cat confdefs.h
>>conftest.
$ac_ext
13198 cat >>conftest.
$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13200 $ac_includes_default
13205 char *p = (char *) sbrk;
13212 rm -f conftest.
$ac_objext
13213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13214 (eval $ac_compile) 2>conftest.er1
13216 grep -v '^ *+' conftest.er1
>conftest.err
13218 cat conftest.err
>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
13221 { ac_try
='test -z "$ac_c_werror_flag"
13222 || test ! -s conftest.err'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; } &&
13228 { ac_try
='test -s conftest.$ac_objext'
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; }; then
13234 ac_cv_have_decl_sbrk
=yes
13236 echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.
$ac_ext >&5
13239 ac_cv_have_decl_sbrk
=no
13241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13243 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13244 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13245 if test $ac_cv_have_decl_sbrk = yes; then
13247 cat >>confdefs.h
<<_ACEOF
13248 #define HAVE_DECL_SBRK 1
13253 cat >>confdefs.h
<<_ACEOF
13254 #define HAVE_DECL_SBRK 0
13261 echo "$as_me:$LINENO: checking whether setregid is declared" >&5
13262 echo $ECHO_N "checking whether setregid is declared... $ECHO_C" >&6
13263 if test "${ac_cv_have_decl_setregid+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 cat >conftest.
$ac_ext <<_ACEOF
13269 cat confdefs.h
>>conftest.
$ac_ext
13270 cat >>conftest.
$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 $ac_includes_default
13277 char *p = (char *) setregid;
13284 rm -f conftest.
$ac_objext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286 (eval $ac_compile) 2>conftest.er1
13288 grep -v '^ *+' conftest.er1
>conftest.err
13290 cat conftest.err
>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } &&
13293 { ac_try
='test -z "$ac_c_werror_flag"
13294 || test ! -s conftest.err'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; } &&
13300 { ac_try
='test -s conftest.$ac_objext'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
13306 ac_cv_have_decl_setregid
=yes
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.
$ac_ext >&5
13311 ac_cv_have_decl_setregid
=no
13313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13315 echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
13316 echo "${ECHO_T}$ac_cv_have_decl_setregid" >&6
13317 if test $ac_cv_have_decl_setregid = yes; then
13319 cat >>confdefs.h
<<_ACEOF
13320 #define HAVE_DECL_SETREGID 1
13325 cat >>confdefs.h
<<_ACEOF
13326 #define HAVE_DECL_SETREGID 0
13333 echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
13334 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
13335 if test "${ac_cv_have_decl_strcpy+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 cat >conftest.
$ac_ext <<_ACEOF
13341 cat confdefs.h
>>conftest.
$ac_ext
13342 cat >>conftest.
$ac_ext <<_ACEOF
13343 /* end confdefs.h. */
13344 $ac_includes_default
13349 char *p = (char *) strcpy;
13356 rm -f conftest.
$ac_objext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358 (eval $ac_compile) 2>conftest.er1
13360 grep -v '^ *+' conftest.er1
>conftest.err
13362 cat conftest.err
>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try
='test -z "$ac_c_werror_flag"
13366 || test ! -s conftest.err'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; } &&
13372 { ac_try
='test -s conftest.$ac_objext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_cv_have_decl_strcpy
=yes
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.
$ac_ext >&5
13383 ac_cv_have_decl_strcpy
=no
13385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13387 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
13388 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
13389 if test $ac_cv_have_decl_strcpy = yes; then
13391 cat >>confdefs.h
<<_ACEOF
13392 #define HAVE_DECL_STRCPY 1
13397 cat >>confdefs.h
<<_ACEOF
13398 #define HAVE_DECL_STRCPY 0
13405 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
13406 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
13407 if test "${ac_cv_have_decl_strsignal+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 cat >conftest.
$ac_ext <<_ACEOF
13413 cat confdefs.h
>>conftest.
$ac_ext
13414 cat >>conftest.
$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13416 $ac_includes_default
13421 char *p = (char *) strsignal;
13428 rm -f conftest.
$ac_objext
13429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13430 (eval $ac_compile) 2>conftest.er1
13432 grep -v '^ *+' conftest.er1
>conftest.err
13434 cat conftest.err
>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
13437 { ac_try
='test -z "$ac_c_werror_flag"
13438 || test ! -s conftest.err'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try
='test -s conftest.$ac_objext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 ac_cv_have_decl_strsignal
=yes
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.
$ac_ext >&5
13455 ac_cv_have_decl_strsignal
=no
13457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13459 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
13460 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
13461 if test $ac_cv_have_decl_strsignal = yes; then
13463 cat >>confdefs.h
<<_ACEOF
13464 #define HAVE_DECL_STRSIGNAL 1
13469 cat >>confdefs.h
<<_ACEOF
13470 #define HAVE_DECL_STRSIGNAL 0
13478 echo "$as_me:$LINENO: checking whether strtold is declared" >&5
13479 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
13480 if test "${ac_cv_have_decl_strtold+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 cat >conftest.
$ac_ext <<_ACEOF
13486 cat confdefs.h
>>conftest.
$ac_ext
13487 cat >>conftest.
$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13489 $ac_includes_default
13494 char *p = (char *) strtold;
13501 rm -f conftest.
$ac_objext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503 (eval $ac_compile) 2>conftest.er1
13505 grep -v '^ *+' conftest.er1
>conftest.err
13507 cat conftest.err
>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try
='test -z "$ac_c_werror_flag"
13511 || test ! -s conftest.err'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try
='test -s conftest.$ac_objext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_cv_have_decl_strtold
=yes
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.
$ac_ext >&5
13528 ac_cv_have_decl_strtold
=no
13530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13532 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
13533 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
13534 if test $ac_cv_have_decl_strtold = yes; then
13536 cat >>confdefs.h
<<_ACEOF
13537 #define HAVE_DECL_STRTOLD 1
13541 echo "$as_me:$LINENO: checking for broken strtold" >&5
13542 echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6
13543 if test "${bash_cv_strtold_broken+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 cat >conftest.
$ac_ext <<_ACEOF
13549 cat confdefs.h
>>conftest.
$ac_ext
13550 cat >>conftest.
$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552 #include <stdlib.h>
13556 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
13561 rm -f conftest.
$ac_objext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13563 (eval $ac_compile) 2>conftest.er1
13565 grep -v '^ *+' conftest.er1
>conftest.err
13567 cat conftest.err
>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
13570 { ac_try
='test -z "$ac_c_werror_flag"
13571 || test ! -s conftest.err'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try
='test -s conftest.$ac_objext'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13583 bash_cv_strtold_broken
=no
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.
$ac_ext >&5
13588 bash_cv_strtold_broken
=yes
13590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13595 echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
13596 echo "${ECHO_T}$bash_cv_strtold_broken" >&6
13597 if test "$bash_cv_strtold_broken" = "yes" ; then
13598 cat >>confdefs.h
<<\_ACEOF
13599 #define STRTOLD_BROKEN 1
13605 cat >>confdefs.h
<<_ACEOF
13606 #define HAVE_DECL_STRTOLD 0
13618 echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
13619 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
13620 if test "${bash_cv_decl_strtoimax+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 cat >conftest.
$ac_ext <<_ACEOF
13626 cat confdefs.h
>>conftest.
$ac_ext
13627 cat >>conftest.
$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13631 # include <stdlib.h>
13633 #if HAVE_INTTYPES_H
13634 # include <inttypes.h>
13645 rm -f conftest.
$ac_objext conftest
$ac_exeext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13647 (eval $ac_link) 2>conftest.er1
13649 grep -v '^ *+' conftest.er1
>conftest.err
13651 cat conftest.err
>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 { ac_try
='test -z "$ac_c_werror_flag"
13655 || test ! -s conftest.err'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try
='test -s conftest$ac_exeext'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13667 bash_cv_decl_strtoimax
=yes
13669 echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.
$ac_ext >&5
13672 bash_cv_decl_strtoimax
=no
13674 rm -f conftest.err conftest.
$ac_objext \
13675 conftest
$ac_exeext conftest.
$ac_ext
13677 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
13678 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
13679 bash_tr_func
=HAVE_DECL_
`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13680 if test $bash_cv_decl_strtoimax = yes; then
13681 cat >>confdefs.h
<<_ACEOF
13682 #define $bash_tr_func 1
13686 cat >>confdefs.h
<<_ACEOF
13687 #define $bash_tr_func 0
13695 echo "$as_me:$LINENO: checking for declaration of strtol" >&5
13696 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
13697 if test "${bash_cv_decl_strtol+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 cat >conftest.
$ac_ext <<_ACEOF
13703 cat confdefs.h
>>conftest.
$ac_ext
13704 cat >>conftest.
$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13708 # include <stdlib.h>
13710 #if HAVE_INTTYPES_H
13711 # include <inttypes.h>
13722 rm -f conftest.
$ac_objext conftest
$ac_exeext
13723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13724 (eval $ac_link) 2>conftest.er1
13726 grep -v '^ *+' conftest.er1
>conftest.err
13728 cat conftest.err
>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } &&
13731 { ac_try
='test -z "$ac_c_werror_flag"
13732 || test ! -s conftest.err'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; } &&
13738 { ac_try
='test -s conftest$ac_exeext'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 bash_cv_decl_strtol
=yes
13746 echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.
$ac_ext >&5
13749 bash_cv_decl_strtol
=no
13751 rm -f conftest.err conftest.
$ac_objext \
13752 conftest
$ac_exeext conftest.
$ac_ext
13754 echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
13755 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
13756 bash_tr_func
=HAVE_DECL_
`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13757 if test $bash_cv_decl_strtol = yes; then
13758 cat >>confdefs.h
<<_ACEOF
13759 #define $bash_tr_func 1
13763 cat >>confdefs.h
<<_ACEOF
13764 #define $bash_tr_func 0
13772 echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
13773 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
13774 if test "${bash_cv_decl_strtoll+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 cat >conftest.
$ac_ext <<_ACEOF
13780 cat confdefs.h
>>conftest.
$ac_ext
13781 cat >>conftest.
$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13785 # include <stdlib.h>
13787 #if HAVE_INTTYPES_H
13788 # include <inttypes.h>
13799 rm -f conftest.
$ac_objext conftest
$ac_exeext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13801 (eval $ac_link) 2>conftest.er1
13803 grep -v '^ *+' conftest.er1
>conftest.err
13805 cat conftest.err
>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try
='test -z "$ac_c_werror_flag"
13809 || test ! -s conftest.err'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try
='test -s conftest$ac_exeext'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 bash_cv_decl_strtoll
=yes
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.
$ac_ext >&5
13826 bash_cv_decl_strtoll
=no
13828 rm -f conftest.err conftest.
$ac_objext \
13829 conftest
$ac_exeext conftest.
$ac_ext
13831 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
13832 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
13833 bash_tr_func
=HAVE_DECL_
`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13834 if test $bash_cv_decl_strtoll = yes; then
13835 cat >>confdefs.h
<<_ACEOF
13836 #define $bash_tr_func 1
13840 cat >>confdefs.h
<<_ACEOF
13841 #define $bash_tr_func 0
13849 echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
13850 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
13851 if test "${bash_cv_decl_strtoul+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 cat >conftest.
$ac_ext <<_ACEOF
13857 cat confdefs.h
>>conftest.
$ac_ext
13858 cat >>conftest.
$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13862 # include <stdlib.h>
13864 #if HAVE_INTTYPES_H
13865 # include <inttypes.h>
13876 rm -f conftest.
$ac_objext conftest
$ac_exeext
13877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13878 (eval $ac_link) 2>conftest.er1
13880 grep -v '^ *+' conftest.er1
>conftest.err
13882 cat conftest.err
>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } &&
13885 { ac_try
='test -z "$ac_c_werror_flag"
13886 || test ! -s conftest.err'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try
='test -s conftest$ac_exeext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 bash_cv_decl_strtoul
=yes
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.
$ac_ext >&5
13903 bash_cv_decl_strtoul
=no
13905 rm -f conftest.err conftest.
$ac_objext \
13906 conftest
$ac_exeext conftest.
$ac_ext
13908 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
13909 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
13910 bash_tr_func
=HAVE_DECL_
`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13911 if test $bash_cv_decl_strtoul = yes; then
13912 cat >>confdefs.h
<<_ACEOF
13913 #define $bash_tr_func 1
13917 cat >>confdefs.h
<<_ACEOF
13918 #define $bash_tr_func 0
13926 echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
13927 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
13928 if test "${bash_cv_decl_strtoull+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 cat >conftest.
$ac_ext <<_ACEOF
13934 cat confdefs.h
>>conftest.
$ac_ext
13935 cat >>conftest.
$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13939 # include <stdlib.h>
13941 #if HAVE_INTTYPES_H
13942 # include <inttypes.h>
13953 rm -f conftest.
$ac_objext conftest
$ac_exeext
13954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13955 (eval $ac_link) 2>conftest.er1
13957 grep -v '^ *+' conftest.er1
>conftest.err
13959 cat conftest.err
>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try
='test -z "$ac_c_werror_flag"
13963 || test ! -s conftest.err'
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; } &&
13969 { ac_try
='test -s conftest$ac_exeext'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 bash_cv_decl_strtoull
=yes
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.
$ac_ext >&5
13980 bash_cv_decl_strtoull
=no
13982 rm -f conftest.err conftest.
$ac_objext \
13983 conftest
$ac_exeext conftest.
$ac_ext
13985 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
13986 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
13987 bash_tr_func
=HAVE_DECL_
`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13988 if test $bash_cv_decl_strtoull = yes; then
13989 cat >>confdefs.h
<<_ACEOF
13990 #define $bash_tr_func 1
13994 cat >>confdefs.h
<<_ACEOF
13995 #define $bash_tr_func 0
14003 echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
14004 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
14005 if test "${bash_cv_decl_strtoumax+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 cat >conftest.
$ac_ext <<_ACEOF
14011 cat confdefs.h
>>conftest.
$ac_ext
14012 cat >>conftest.
$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14016 # include <stdlib.h>
14018 #if HAVE_INTTYPES_H
14019 # include <inttypes.h>
14030 rm -f conftest.
$ac_objext conftest
$ac_exeext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14032 (eval $ac_link) 2>conftest.er1
14034 grep -v '^ *+' conftest.er1
>conftest.err
14036 cat conftest.err
>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
14039 { ac_try
='test -z "$ac_c_werror_flag"
14040 || test ! -s conftest.err'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try
='test -s conftest$ac_exeext'
14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 bash_cv_decl_strtoumax
=yes
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.
$ac_ext >&5
14057 bash_cv_decl_strtoumax
=no
14059 rm -f conftest.err conftest.
$ac_objext \
14060 conftest
$ac_exeext conftest.
$ac_ext
14062 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
14063 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
14064 bash_tr_func
=HAVE_DECL_
`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14065 if test $bash_cv_decl_strtoumax = yes; then
14066 cat >>confdefs.h
<<_ACEOF
14067 #define $bash_tr_func 1
14071 cat >>confdefs.h
<<_ACEOF
14072 #define $bash_tr_func 0
14081 for ac_header
in stdlib.h sys
/time.h unistd.h
14083 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14085 echo "$as_me:$LINENO: checking for $ac_header" >&5
14086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14093 # Is the header compilable?
14094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14096 cat >conftest.
$ac_ext <<_ACEOF
14099 cat confdefs.h
>>conftest.
$ac_ext
14100 cat >>conftest.
$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14102 $ac_includes_default
14103 #include <$ac_header>
14105 rm -f conftest.
$ac_objext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107 (eval $ac_compile) 2>conftest.er1
14109 grep -v '^ *+' conftest.er1
>conftest.err
14111 cat conftest.err
>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try
='test -z "$ac_c_werror_flag"
14115 || test ! -s conftest.err'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; } &&
14121 { ac_try
='test -s conftest.$ac_objext'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; }; then
14127 ac_header_compiler
=yes
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.
$ac_ext >&5
14132 ac_header_compiler
=no
14134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14136 echo "${ECHO_T}$ac_header_compiler" >&6
14138 # Is the header present?
14139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14141 cat >conftest.
$ac_ext <<_ACEOF
14144 cat confdefs.h
>>conftest.
$ac_ext
14145 cat >>conftest.
$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 #include <$ac_header>
14149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14150 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14152 grep -v '^ *+' conftest.er1
>conftest.err
14154 cat conftest.err
>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } >/dev
/null
; then
14157 if test -s conftest.err
; then
14158 ac_cpp_err
=$ac_c_preproc_warn_flag
14159 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14166 if test -z "$ac_cpp_err"; then
14167 ac_header_preproc
=yes
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.
$ac_ext >&5
14172 ac_header_preproc
=no
14174 rm -f conftest.err conftest.
$ac_ext
14175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14176 echo "${ECHO_T}$ac_header_preproc" >&6
14178 # So? What about this header?
14179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14185 ac_header_preproc
=yes
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14202 ## ------------------------------- ##
14203 ## Report this to bug-bash@gnu.org ##
14204 ## ------------------------------- ##
14207 sed "s/^/$as_me: WARNING: /" >&2
14210 echo "$as_me:$LINENO: checking for $ac_header" >&5
14211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 eval "$as_ac_Header=\$ac_header_preproc"
14217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14222 cat >>confdefs.h
<<_ACEOF
14223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14231 for ac_func
in alarm
14233 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14234 echo "$as_me:$LINENO: checking for $ac_func" >&5
14235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14236 if eval "test \"\${$as_ac_var+set}\" = set"; then
14237 echo $ECHO_N "(cached) $ECHO_C" >&6
14239 cat >conftest.
$ac_ext <<_ACEOF
14242 cat confdefs.h
>>conftest.
$ac_ext
14243 cat >>conftest.
$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14247 #define $ac_func innocuous_$ac_func
14249 /* System header to define __stub macros and hopefully few prototypes,
14250 which can conflict with char $ac_func (); below.
14251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14252 <limits.h> exists even on freestanding compilers. */
14255 # include <limits.h>
14257 # include <assert.h>
14262 /* Override any gcc2 internal prototype to avoid an error. */
14267 /* We use char because int might match the return type of a gcc2
14268 builtin and then its argument prototype would still apply. */
14270 /* The GNU C library defines this for functions which it implements
14271 to always fail with ENOSYS. Some functions are actually named
14272 something starting with __ and the normal name is an alias. */
14273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14276 char (*f) () = $ac_func;
14285 return f != $ac_func;
14290 rm -f conftest.
$ac_objext conftest
$ac_exeext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14292 (eval $ac_link) 2>conftest.er1
14294 grep -v '^ *+' conftest.er1
>conftest.err
14296 cat conftest.err
>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } &&
14299 { ac_try
='test -z "$ac_c_werror_flag"
14300 || test ! -s conftest.err'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try
='test -s conftest$ac_exeext'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 eval "$as_ac_var=yes"
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.
$ac_ext >&5
14317 eval "$as_ac_var=no"
14319 rm -f conftest.err conftest.
$ac_objext \
14320 conftest
$ac_exeext conftest.
$ac_ext
14322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14324 if test `eval echo '${'$as_ac_var'}'` = yes; then
14325 cat >>confdefs.h
<<_ACEOF
14326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14332 echo "$as_me:$LINENO: checking for working mktime" >&5
14333 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14334 if test "${ac_cv_func_working_mktime+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 if test "$cross_compiling" = yes; then
14338 ac_cv_func_working_mktime
=no
14340 cat >conftest.
$ac_ext <<_ACEOF
14343 cat confdefs.h
>>conftest.
$ac_ext
14344 cat >>conftest.
$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14346 /* Test program from Paul Eggert and Tony Leneis. */
14347 #if TIME_WITH_SYS_TIME
14348 # include <sys/time.h>
14351 # if HAVE_SYS_TIME_H
14352 # include <sys/time.h>
14359 # include <stdlib.h>
14363 # include <unistd.h>
14367 # define alarm(X) /* empty */
14370 /* Work around redefinition to rpl_putenv by other config tests. */
14373 static time_t time_t_max;
14374 static time_t time_t_min;
14376 /* Values we'll use to set the TZ environment variable. */
14377 static char *tz_strings[] = {
14378 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14379 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14381 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14383 /* Fail if mktime fails to convert a date in the spring-forward gap.
14384 Based on a problem report from Andreas Jaeger. */
14386 spring_forward_gap ()
14388 /* glibc (up to about 1998-10-07) failed this test. */
14391 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14392 instead of "TZ=America/Vancouver" in order to detect the bug even
14393 on systems that don't support the Olson extension, or don't have the
14394 full zoneinfo tables installed. */
14395 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14404 if (mktime (&tm) == (time_t)-1)
14413 if ((lt = localtime (&now)) && mktime (lt) != now)
14421 mktime_test1 (now);
14422 mktime_test1 ((time_t) (time_t_max - now));
14423 mktime_test1 ((time_t) (time_t_min + now));
14429 /* Based on code from Ariel Faigon. */
14439 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14449 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14450 now = mktime (&tm);
14451 if (now != (time_t) -1)
14453 struct tm *lt = localtime (&now);
14455 && lt->tm_year == tm.tm_year
14456 && lt->tm_mon == tm.tm_mon
14457 && lt->tm_mday == tm.tm_mday
14458 && lt->tm_hour == tm.tm_hour
14459 && lt->tm_min == tm.tm_min
14460 && lt->tm_sec == tm.tm_sec
14461 && lt->tm_yday == tm.tm_yday
14462 && lt->tm_wday == tm.tm_wday
14463 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14464 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14475 /* This test makes some buggy mktime implementations loop.
14476 Give up after 60 seconds; a mktime slower than that
14477 isn't worth using anyway. */
14480 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14483 if ((time_t) -1 < 0)
14484 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14486 delta = time_t_max / 997; /* a suitable prime number */
14487 for (i = 0; i < N_STRINGS; i++)
14490 putenv (tz_strings[i]);
14492 for (t = 0; t <= time_t_max - delta; t += delta)
14494 mktime_test ((time_t) 1);
14495 mktime_test ((time_t) (60 * 60));
14496 mktime_test ((time_t) (60 * 60 * 24));
14498 for (j = 1; 0 < j; j *= 2)
14500 bigtime_test (j - 1);
14503 spring_forward_gap ();
14507 rm -f conftest
$ac_exeext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14509 (eval $ac_link) 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14518 ac_cv_func_working_mktime
=yes
14520 echo "$as_me: program exited with status $ac_status" >&5
14521 echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.
$ac_ext >&5
14524 ( exit $ac_status )
14525 ac_cv_func_working_mktime
=no
14527 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14530 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14531 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14532 if test $ac_cv_func_working_mktime = no
; then
14534 "mktime.$ac_objext" | \
14535 *" mktime.$ac_objext" | \
14536 "mktime.$ac_objext "* | \
14537 *" mktime.$ac_objext "* ) ;;
14538 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14550 for ac_header
in argz.h errno.h fcntl.h malloc.h stdio_ext.h
14552 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14554 echo "$as_me:$LINENO: checking for $ac_header" >&5
14555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14562 # Is the header compilable?
14563 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14565 cat >conftest.
$ac_ext <<_ACEOF
14568 cat confdefs.h
>>conftest.
$ac_ext
14569 cat >>conftest.
$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 $ac_includes_default
14572 #include <$ac_header>
14574 rm -f conftest.
$ac_objext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14576 (eval $ac_compile) 2>conftest.er1
14578 grep -v '^ *+' conftest.er1
>conftest.err
14580 cat conftest.err
>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
14583 { ac_try
='test -z "$ac_c_werror_flag"
14584 || test ! -s conftest.err'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; } &&
14590 { ac_try
='test -s conftest.$ac_objext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 ac_header_compiler
=yes
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.
$ac_ext >&5
14601 ac_header_compiler
=no
14603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14605 echo "${ECHO_T}$ac_header_compiler" >&6
14607 # Is the header present?
14608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14610 cat >conftest.
$ac_ext <<_ACEOF
14613 cat confdefs.h
>>conftest.
$ac_ext
14614 cat >>conftest.
$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14616 #include <$ac_header>
14618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14619 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14621 grep -v '^ *+' conftest.er1
>conftest.err
14623 cat conftest.err
>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } >/dev
/null
; then
14626 if test -s conftest.err
; then
14627 ac_cpp_err
=$ac_c_preproc_warn_flag
14628 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14635 if test -z "$ac_cpp_err"; then
14636 ac_header_preproc
=yes
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.
$ac_ext >&5
14641 ac_header_preproc
=no
14643 rm -f conftest.err conftest.
$ac_ext
14644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14645 echo "${ECHO_T}$ac_header_preproc" >&6
14647 # So? What about this header?
14648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14654 ac_header_preproc
=yes
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14671 ## ------------------------------- ##
14672 ## Report this to bug-bash@gnu.org ##
14673 ## ------------------------------- ##
14676 sed "s/^/$as_me: WARNING: /" >&2
14679 echo "$as_me:$LINENO: checking for $ac_header" >&5
14680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 eval "$as_ac_Header=\$ac_header_preproc"
14686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14691 cat >>confdefs.h
<<_ACEOF
14692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14702 for ac_header
in stdlib.h unistd.h
14704 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14706 echo "$as_me:$LINENO: checking for $ac_header" >&5
14707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14714 # Is the header compilable?
14715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14717 cat >conftest.
$ac_ext <<_ACEOF
14720 cat confdefs.h
>>conftest.
$ac_ext
14721 cat >>conftest.
$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 $ac_includes_default
14724 #include <$ac_header>
14726 rm -f conftest.
$ac_objext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14728 (eval $ac_compile) 2>conftest.er1
14730 grep -v '^ *+' conftest.er1
>conftest.err
14732 cat conftest.err
>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try
='test -z "$ac_c_werror_flag"
14736 || test ! -s conftest.err'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; } &&
14742 { ac_try
='test -s conftest.$ac_objext'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 ac_header_compiler
=yes
14750 echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.
$ac_ext >&5
14753 ac_header_compiler
=no
14755 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14757 echo "${ECHO_T}$ac_header_compiler" >&6
14759 # Is the header present?
14760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14762 cat >conftest.
$ac_ext <<_ACEOF
14765 cat confdefs.h
>>conftest.
$ac_ext
14766 cat >>conftest.
$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 #include <$ac_header>
14770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14771 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14773 grep -v '^ *+' conftest.er1
>conftest.err
14775 cat conftest.err
>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } >/dev
/null
; then
14778 if test -s conftest.err
; then
14779 ac_cpp_err
=$ac_c_preproc_warn_flag
14780 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14787 if test -z "$ac_cpp_err"; then
14788 ac_header_preproc
=yes
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.
$ac_ext >&5
14793 ac_header_preproc
=no
14795 rm -f conftest.err conftest.
$ac_ext
14796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14797 echo "${ECHO_T}$ac_header_preproc" >&6
14799 # So? What about this header?
14800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14806 ac_header_preproc
=yes
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14823 ## ------------------------------- ##
14824 ## Report this to bug-bash@gnu.org ##
14825 ## ------------------------------- ##
14828 sed "s/^/$as_me: WARNING: /" >&2
14831 echo "$as_me:$LINENO: checking for $ac_header" >&5
14832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 eval "$as_ac_Header=\$ac_header_preproc"
14838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14843 cat >>confdefs.h
<<_ACEOF
14844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14852 for ac_func
in getpagesize
14854 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14855 echo "$as_me:$LINENO: checking for $ac_func" >&5
14856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14857 if eval "test \"\${$as_ac_var+set}\" = set"; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 cat >conftest.
$ac_ext <<_ACEOF
14863 cat confdefs.h
>>conftest.
$ac_ext
14864 cat >>conftest.
$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14868 #define $ac_func innocuous_$ac_func
14870 /* System header to define __stub macros and hopefully few prototypes,
14871 which can conflict with char $ac_func (); below.
14872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14873 <limits.h> exists even on freestanding compilers. */
14876 # include <limits.h>
14878 # include <assert.h>
14883 /* Override any gcc2 internal prototype to avoid an error. */
14888 /* We use char because int might match the return type of a gcc2
14889 builtin and then its argument prototype would still apply. */
14891 /* The GNU C library defines this for functions which it implements
14892 to always fail with ENOSYS. Some functions are actually named
14893 something starting with __ and the normal name is an alias. */
14894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14897 char (*f) () = $ac_func;
14906 return f != $ac_func;
14911 rm -f conftest.
$ac_objext conftest
$ac_exeext
14912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14913 (eval $ac_link) 2>conftest.er1
14915 grep -v '^ *+' conftest.er1
>conftest.err
14917 cat conftest.err
>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
14920 { ac_try
='test -z "$ac_c_werror_flag"
14921 || test ! -s conftest.err'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; } &&
14927 { ac_try
='test -s conftest$ac_exeext'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 eval "$as_ac_var=yes"
14935 echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.
$ac_ext >&5
14938 eval "$as_ac_var=no"
14940 rm -f conftest.err conftest.
$ac_objext \
14941 conftest
$ac_exeext conftest.
$ac_ext
14943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14945 if test `eval echo '${'$as_ac_var'}'` = yes; then
14946 cat >>confdefs.h
<<_ACEOF
14947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14953 echo "$as_me:$LINENO: checking for working mmap" >&5
14954 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14955 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 if test "$cross_compiling" = yes; then
14959 ac_cv_func_mmap_fixed_mapped
=no
14961 cat >conftest.
$ac_ext <<_ACEOF
14964 cat confdefs.h
>>conftest.
$ac_ext
14965 cat >>conftest.
$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14967 $ac_includes_default
14968 /* malloc might have been renamed as rpl_malloc. */
14971 /* Thanks to Mike Haertel and Jim Avera for this test.
14972 Here is a matrix of mmap possibilities:
14973 mmap private not fixed
14974 mmap private fixed at somewhere currently unmapped
14975 mmap private fixed at somewhere already mapped
14976 mmap shared not fixed
14977 mmap shared fixed at somewhere currently unmapped
14978 mmap shared fixed at somewhere already mapped
14979 For private mappings, we should verify that changes cannot be read()
14980 back from the file, nor mmap's back from the file at a different
14981 address. (There have been systems where private was not correctly
14982 implemented like the infamous i386 svr4.0, and systems where the
14983 VM page cache was not coherent with the file system buffer cache
14984 like early versions of FreeBSD and possibly contemporary NetBSD.)
14985 For shared mappings, we should conversely verify that changes get
14986 propagated back to all the places they're supposed to be.
14988 Grep wants private fixed already mapped.
14989 The main things grep needs to know about mmap are:
14990 * does it exist and is it safe to write into the mmap'd area
14991 * how to use it (BSD variants) */
14994 #include <sys/mman.h>
14996 #if !STDC_HEADERS && !HAVE_STDLIB_H
15000 /* This mess was copied from the GNU getpagesize.h. */
15001 #if !HAVE_GETPAGESIZE
15002 /* Assume that all systems that can run configure have sys/param.h. */
15003 # if !HAVE_SYS_PARAM_H
15004 # define HAVE_SYS_PARAM_H 1
15007 # ifdef _SC_PAGESIZE
15008 # define getpagesize() sysconf(_SC_PAGESIZE)
15009 # else /* no _SC_PAGESIZE */
15010 # if HAVE_SYS_PARAM_H
15011 # include <sys/param.h>
15012 # ifdef EXEC_PAGESIZE
15013 # define getpagesize() EXEC_PAGESIZE
15014 # else /* no EXEC_PAGESIZE */
15016 # define getpagesize() NBPG * CLSIZE
15019 # endif /* no CLSIZE */
15020 # else /* no NBPG */
15022 # define getpagesize() NBPC
15023 # else /* no NBPC */
15025 # define getpagesize() PAGESIZE
15026 # endif /* PAGESIZE */
15027 # endif /* no NBPC */
15028 # endif /* no NBPG */
15029 # endif /* no EXEC_PAGESIZE */
15030 # else /* no HAVE_SYS_PARAM_H */
15031 # define getpagesize() 8192 /* punt totally */
15032 # endif /* no HAVE_SYS_PARAM_H */
15033 # endif /* no _SC_PAGESIZE */
15035 #endif /* no HAVE_GETPAGESIZE */
15040 char *data, *data2, *data3;
15044 pagesize = getpagesize ();
15046 /* First, make a file with some known garbage in it. */
15047 data = (char *) malloc (pagesize);
15050 for (i = 0; i < pagesize; ++i)
15051 *(data + i) = rand ();
15053 fd = creat ("conftest.mmap", 0600);
15056 if (write (fd, data, pagesize) != pagesize)
15060 /* Next, try to mmap the file at a fixed address which already has
15061 something else allocated at it. If we can, also make sure that
15062 we see the same garbage. */
15063 fd = open ("conftest.mmap", O_RDWR);
15066 data2 = (char *) malloc (2 * pagesize);
15069 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15070 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15071 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15073 for (i = 0; i < pagesize; ++i)
15074 if (*(data + i) != *(data2 + i))
15077 /* Finally, make sure that changes to the mapped area do not
15078 percolate back to the file as seen by read(). (This is a bug on
15079 some variants of i386 svr4.0.) */
15080 for (i = 0; i < pagesize; ++i)
15081 *(data2 + i) = *(data2 + i) + 1;
15082 data3 = (char *) malloc (pagesize);
15085 if (read (fd, data3, pagesize) != pagesize)
15087 for (i = 0; i < pagesize; ++i)
15088 if (*(data + i) != *(data3 + i))
15094 rm -f conftest
$ac_exeext
15095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15096 (eval $ac_link) 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_func_mmap_fixed_mapped
=yes
15107 echo "$as_me: program exited with status $ac_status" >&5
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.
$ac_ext >&5
15111 ( exit $ac_status )
15112 ac_cv_func_mmap_fixed_mapped
=no
15114 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15117 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15118 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15119 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15121 cat >>confdefs.h
<<\_ACEOF
15122 #define HAVE_MMAP 1
15126 rm -f conftest.mmap
15137 for ac_func
in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
15138 munmap stpcpy strcspn strdup
15140 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15141 echo "$as_me:$LINENO: checking for $ac_func" >&5
15142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15143 if eval "test \"\${$as_ac_var+set}\" = set"; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 cat >conftest.
$ac_ext <<_ACEOF
15149 cat confdefs.h
>>conftest.
$ac_ext
15150 cat >>conftest.
$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15154 #define $ac_func innocuous_$ac_func
15156 /* System header to define __stub macros and hopefully few prototypes,
15157 which can conflict with char $ac_func (); below.
15158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15159 <limits.h> exists even on freestanding compilers. */
15162 # include <limits.h>
15164 # include <assert.h>
15169 /* Override any gcc2 internal prototype to avoid an error. */
15174 /* We use char because int might match the return type of a gcc2
15175 builtin and then its argument prototype would still apply. */
15177 /* The GNU C library defines this for functions which it implements
15178 to always fail with ENOSYS. Some functions are actually named
15179 something starting with __ and the normal name is an alias. */
15180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15183 char (*f) () = $ac_func;
15192 return f != $ac_func;
15197 rm -f conftest.
$ac_objext conftest
$ac_exeext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15199 (eval $ac_link) 2>conftest.er1
15201 grep -v '^ *+' conftest.er1
>conftest.err
15203 cat conftest.err
>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try
='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try
='test -s conftest$ac_exeext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 eval "$as_ac_var=yes"
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.
$ac_ext >&5
15224 eval "$as_ac_var=no"
15226 rm -f conftest.err conftest.
$ac_objext \
15227 conftest
$ac_exeext conftest.
$ac_ext
15229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15231 if test `eval echo '${'$as_ac_var'}'` = yes; then
15232 cat >>confdefs.h
<<_ACEOF
15233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15240 INTL_DEP
= INTL_INC
= LIBINTL_H
=
15241 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
15242 INTL_DEP
='${INTL_LIBDIR}/libintl.a'
15243 INTL_INC
='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
15244 LIBINTL_H
='${INTL_BUILDDIR}/libintl.h'
15253 for ac_header
in wctype.h
15255 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15257 echo "$as_me:$LINENO: checking for $ac_header" >&5
15258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15265 # Is the header compilable?
15266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15268 cat >conftest.
$ac_ext <<_ACEOF
15271 cat confdefs.h
>>conftest.
$ac_ext
15272 cat >>conftest.
$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15274 $ac_includes_default
15275 #include <$ac_header>
15277 rm -f conftest.
$ac_objext
15278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15279 (eval $ac_compile) 2>conftest.er1
15281 grep -v '^ *+' conftest.er1
>conftest.err
15283 cat conftest.err
>&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } &&
15286 { ac_try
='test -z "$ac_c_werror_flag"
15287 || test ! -s conftest.err'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; } &&
15293 { ac_try
='test -s conftest.$ac_objext'
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; }; then
15299 ac_header_compiler
=yes
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.
$ac_ext >&5
15304 ac_header_compiler
=no
15306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15308 echo "${ECHO_T}$ac_header_compiler" >&6
15310 # Is the header present?
15311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15313 cat >conftest.
$ac_ext <<_ACEOF
15316 cat confdefs.h
>>conftest.
$ac_ext
15317 cat >>conftest.
$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 #include <$ac_header>
15321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15322 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15324 grep -v '^ *+' conftest.er1
>conftest.err
15326 cat conftest.err
>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } >/dev
/null
; then
15329 if test -s conftest.err
; then
15330 ac_cpp_err
=$ac_c_preproc_warn_flag
15331 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15338 if test -z "$ac_cpp_err"; then
15339 ac_header_preproc
=yes
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.
$ac_ext >&5
15344 ac_header_preproc
=no
15346 rm -f conftest.err conftest.
$ac_ext
15347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15348 echo "${ECHO_T}$ac_header_preproc" >&6
15350 # So? What about this header?
15351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15357 ac_header_preproc
=yes
15360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15374 ## ------------------------------- ##
15375 ## Report this to bug-bash@gnu.org ##
15376 ## ------------------------------- ##
15379 sed "s/^/$as_me: WARNING: /" >&2
15382 echo "$as_me:$LINENO: checking for $ac_header" >&5
15383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 eval "$as_ac_Header=\$ac_header_preproc"
15389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15394 cat >>confdefs.h
<<_ACEOF
15395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15403 for ac_header
in wchar.h
15405 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15407 echo "$as_me:$LINENO: checking for $ac_header" >&5
15408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15415 # Is the header compilable?
15416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15418 cat >conftest.
$ac_ext <<_ACEOF
15421 cat confdefs.h
>>conftest.
$ac_ext
15422 cat >>conftest.
$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 $ac_includes_default
15425 #include <$ac_header>
15427 rm -f conftest.
$ac_objext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15429 (eval $ac_compile) 2>conftest.er1
15431 grep -v '^ *+' conftest.er1
>conftest.err
15433 cat conftest.err
>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
15436 { ac_try
='test -z "$ac_c_werror_flag"
15437 || test ! -s conftest.err'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; } &&
15443 { ac_try
='test -s conftest.$ac_objext'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_header_compiler
=yes
15451 echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.
$ac_ext >&5
15454 ac_header_compiler
=no
15456 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458 echo "${ECHO_T}$ac_header_compiler" >&6
15460 # Is the header present?
15461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15463 cat >conftest.
$ac_ext <<_ACEOF
15466 cat confdefs.h
>>conftest.
$ac_ext
15467 cat >>conftest.
$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 #include <$ac_header>
15471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15472 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15474 grep -v '^ *+' conftest.er1
>conftest.err
15476 cat conftest.err
>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } >/dev
/null
; then
15479 if test -s conftest.err
; then
15480 ac_cpp_err
=$ac_c_preproc_warn_flag
15481 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15488 if test -z "$ac_cpp_err"; then
15489 ac_header_preproc
=yes
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.
$ac_ext >&5
15494 ac_header_preproc
=no
15496 rm -f conftest.err conftest.
$ac_ext
15497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15498 echo "${ECHO_T}$ac_header_preproc" >&6
15500 # So? What about this header?
15501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15507 ac_header_preproc
=yes
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15524 ## ------------------------------- ##
15525 ## Report this to bug-bash@gnu.org ##
15526 ## ------------------------------- ##
15529 sed "s/^/$as_me: WARNING: /" >&2
15532 echo "$as_me:$LINENO: checking for $ac_header" >&5
15533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 eval "$as_ac_Header=\$ac_header_preproc"
15539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15544 cat >>confdefs.h
<<_ACEOF
15545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15553 for ac_header
in langinfo.h
15555 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15557 echo "$as_me:$LINENO: checking for $ac_header" >&5
15558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15565 # Is the header compilable?
15566 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15568 cat >conftest.
$ac_ext <<_ACEOF
15571 cat confdefs.h
>>conftest.
$ac_ext
15572 cat >>conftest.
$ac_ext <<_ACEOF
15573 /* end confdefs.h. */
15574 $ac_includes_default
15575 #include <$ac_header>
15577 rm -f conftest.
$ac_objext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15579 (eval $ac_compile) 2>conftest.er1
15581 grep -v '^ *+' conftest.er1
>conftest.err
15583 cat conftest.err
>&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try
='test -z "$ac_c_werror_flag"
15587 || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try
='test -s conftest.$ac_objext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_header_compiler
=yes
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.
$ac_ext >&5
15604 ac_header_compiler
=no
15606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15608 echo "${ECHO_T}$ac_header_compiler" >&6
15610 # Is the header present?
15611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15613 cat >conftest.
$ac_ext <<_ACEOF
15616 cat confdefs.h
>>conftest.
$ac_ext
15617 cat >>conftest.
$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 #include <$ac_header>
15621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15622 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15624 grep -v '^ *+' conftest.er1
>conftest.err
15626 cat conftest.err
>&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } >/dev
/null
; then
15629 if test -s conftest.err
; then
15630 ac_cpp_err
=$ac_c_preproc_warn_flag
15631 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15638 if test -z "$ac_cpp_err"; then
15639 ac_header_preproc
=yes
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.
$ac_ext >&5
15644 ac_header_preproc
=no
15646 rm -f conftest.err conftest.
$ac_ext
15647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15648 echo "${ECHO_T}$ac_header_preproc" >&6
15650 # So? What about this header?
15651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15657 ac_header_preproc
=yes
15660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15674 ## ------------------------------- ##
15675 ## Report this to bug-bash@gnu.org ##
15676 ## ------------------------------- ##
15679 sed "s/^/$as_me: WARNING: /" >&2
15682 echo "$as_me:$LINENO: checking for $ac_header" >&5
15683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15685 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 eval "$as_ac_Header=\$ac_header_preproc"
15689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15694 cat >>confdefs.h
<<_ACEOF
15695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15703 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
15704 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
15705 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15708 cat >conftest.
$ac_ext <<_ACEOF
15711 cat confdefs.h
>>conftest.
$ac_ext
15712 cat >>conftest.
$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
15715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15716 #define mbsrtowcs innocuous_mbsrtowcs
15718 /* System header to define __stub macros and hopefully few prototypes,
15719 which can conflict with char mbsrtowcs (); below.
15720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15721 <limits.h> exists even on freestanding compilers. */
15724 # include <limits.h>
15726 # include <assert.h>
15731 /* Override any gcc2 internal prototype to avoid an error. */
15736 /* We use char because int might match the return type of a gcc2
15737 builtin and then its argument prototype would still apply. */
15739 /* The GNU C library defines this for functions which it implements
15740 to always fail with ENOSYS. Some functions are actually named
15741 something starting with __ and the normal name is an alias. */
15742 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
15745 char (*f) () = mbsrtowcs;
15754 return f != mbsrtowcs;
15759 rm -f conftest.
$ac_objext conftest
$ac_exeext
15760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15761 (eval $ac_link) 2>conftest.er1
15763 grep -v '^ *+' conftest.er1
>conftest.err
15765 cat conftest.err
>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
15768 { ac_try
='test -z "$ac_c_werror_flag"
15769 || test ! -s conftest.err'
15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; } &&
15775 { ac_try
='test -s conftest$ac_exeext'
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; }; then
15781 ac_cv_func_mbsrtowcs
=yes
15783 echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.
$ac_ext >&5
15786 ac_cv_func_mbsrtowcs
=no
15788 rm -f conftest.err conftest.
$ac_objext \
15789 conftest
$ac_exeext conftest.
$ac_ext
15791 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
15792 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
15793 if test $ac_cv_func_mbsrtowcs = yes; then
15794 cat >>confdefs.h
<<\_ACEOF
15795 #define HAVE_MBSRTOWCS 1
15800 echo "$as_me:$LINENO: checking for mbrlen" >&5
15801 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
15802 if test "${ac_cv_func_mbrlen+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 cat >conftest.
$ac_ext <<_ACEOF
15808 cat confdefs.h
>>conftest.
$ac_ext
15809 cat >>conftest.
$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
15812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15813 #define mbrlen innocuous_mbrlen
15815 /* System header to define __stub macros and hopefully few prototypes,
15816 which can conflict with char mbrlen (); below.
15817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15818 <limits.h> exists even on freestanding compilers. */
15821 # include <limits.h>
15823 # include <assert.h>
15828 /* Override any gcc2 internal prototype to avoid an error. */
15833 /* We use char because int might match the return type of a gcc2
15834 builtin and then its argument prototype would still apply. */
15836 /* The GNU C library defines this for functions which it implements
15837 to always fail with ENOSYS. Some functions are actually named
15838 something starting with __ and the normal name is an alias. */
15839 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
15842 char (*f) () = mbrlen;
15851 return f != mbrlen;
15856 rm -f conftest.
$ac_objext conftest
$ac_exeext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858 (eval $ac_link) 2>conftest.er1
15860 grep -v '^ *+' conftest.er1
>conftest.err
15862 cat conftest.err
>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } &&
15865 { ac_try
='test -z "$ac_c_werror_flag"
15866 || test ! -s conftest.err'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; } &&
15872 { ac_try
='test -s conftest$ac_exeext'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15878 ac_cv_func_mbrlen
=yes
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.
$ac_ext >&5
15883 ac_cv_func_mbrlen
=no
15885 rm -f conftest.err conftest.
$ac_objext \
15886 conftest
$ac_exeext conftest.
$ac_ext
15888 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
15889 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
15890 if test $ac_cv_func_mbrlen = yes; then
15891 cat >>confdefs.h
<<\_ACEOF
15892 #define HAVE_MBRLEN 1
15898 echo "$as_me:$LINENO: checking for wcrtomb" >&5
15899 echo $ECHO_N "checking for wcrtomb... $ECHO_C" >&6
15900 if test "${ac_cv_func_wcrtomb+set}" = set; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 cat >conftest.
$ac_ext <<_ACEOF
15906 cat confdefs.h
>>conftest.
$ac_ext
15907 cat >>conftest.
$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
15910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15911 #define wcrtomb innocuous_wcrtomb
15913 /* System header to define __stub macros and hopefully few prototypes,
15914 which can conflict with char wcrtomb (); below.
15915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15916 <limits.h> exists even on freestanding compilers. */
15919 # include <limits.h>
15921 # include <assert.h>
15926 /* Override any gcc2 internal prototype to avoid an error. */
15931 /* We use char because int might match the return type of a gcc2
15932 builtin and then its argument prototype would still apply. */
15934 /* The GNU C library defines this for functions which it implements
15935 to always fail with ENOSYS. Some functions are actually named
15936 something starting with __ and the normal name is an alias. */
15937 #if defined (__stub_wcrtomb) || defined (__stub___wcrtomb)
15940 char (*f) () = wcrtomb;
15949 return f != wcrtomb;
15954 rm -f conftest.
$ac_objext conftest
$ac_exeext
15955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15956 (eval $ac_link) 2>conftest.er1
15958 grep -v '^ *+' conftest.er1
>conftest.err
15960 cat conftest.err
>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } &&
15963 { ac_try
='test -z "$ac_c_werror_flag"
15964 || test ! -s conftest.err'
15965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966 (eval $ac_try) 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; } &&
15970 { ac_try
='test -s conftest$ac_exeext'
15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; }; then
15976 ac_cv_func_wcrtomb
=yes
15978 echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.
$ac_ext >&5
15981 ac_cv_func_wcrtomb
=no
15983 rm -f conftest.err conftest.
$ac_objext \
15984 conftest
$ac_exeext conftest.
$ac_ext
15986 echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
15987 echo "${ECHO_T}$ac_cv_func_wcrtomb" >&6
15988 if test $ac_cv_func_wcrtomb = yes; then
15989 cat >>confdefs.h
<<\_ACEOF
15990 #define HAVE_WCRTOMB 1
15995 echo "$as_me:$LINENO: checking for wcscoll" >&5
15996 echo $ECHO_N "checking for wcscoll... $ECHO_C" >&6
15997 if test "${ac_cv_func_wcscoll+set}" = set; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 cat >conftest.
$ac_ext <<_ACEOF
16003 cat confdefs.h
>>conftest.
$ac_ext
16004 cat >>conftest.
$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
16007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16008 #define wcscoll innocuous_wcscoll
16010 /* System header to define __stub macros and hopefully few prototypes,
16011 which can conflict with char wcscoll (); below.
16012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16013 <limits.h> exists even on freestanding compilers. */
16016 # include <limits.h>
16018 # include <assert.h>
16023 /* Override any gcc2 internal prototype to avoid an error. */
16028 /* We use char because int might match the return type of a gcc2
16029 builtin and then its argument prototype would still apply. */
16031 /* The GNU C library defines this for functions which it implements
16032 to always fail with ENOSYS. Some functions are actually named
16033 something starting with __ and the normal name is an alias. */
16034 #if defined (__stub_wcscoll) || defined (__stub___wcscoll)
16037 char (*f) () = wcscoll;
16046 return f != wcscoll;
16051 rm -f conftest.
$ac_objext conftest
$ac_exeext
16052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16053 (eval $ac_link) 2>conftest.er1
16055 grep -v '^ *+' conftest.er1
>conftest.err
16057 cat conftest.err
>&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
16060 { ac_try
='test -z "$ac_c_werror_flag"
16061 || test ! -s conftest.err'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; } &&
16067 { ac_try
='test -s conftest$ac_exeext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ac_cv_func_wcscoll
=yes
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.
$ac_ext >&5
16078 ac_cv_func_wcscoll
=no
16080 rm -f conftest.err conftest.
$ac_objext \
16081 conftest
$ac_exeext conftest.
$ac_ext
16083 echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
16084 echo "${ECHO_T}$ac_cv_func_wcscoll" >&6
16085 if test $ac_cv_func_wcscoll = yes; then
16086 cat >>confdefs.h
<<\_ACEOF
16087 #define HAVE_WCSCOLL 1
16092 echo "$as_me:$LINENO: checking for wcsdup" >&5
16093 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
16094 if test "${ac_cv_func_wcsdup+set}" = set; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16097 cat >conftest.
$ac_ext <<_ACEOF
16100 cat confdefs.h
>>conftest.
$ac_ext
16101 cat >>conftest.
$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
16104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16105 #define wcsdup innocuous_wcsdup
16107 /* System header to define __stub macros and hopefully few prototypes,
16108 which can conflict with char wcsdup (); below.
16109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16110 <limits.h> exists even on freestanding compilers. */
16113 # include <limits.h>
16115 # include <assert.h>
16120 /* Override any gcc2 internal prototype to avoid an error. */
16125 /* We use char because int might match the return type of a gcc2
16126 builtin and then its argument prototype would still apply. */
16128 /* The GNU C library defines this for functions which it implements
16129 to always fail with ENOSYS. Some functions are actually named
16130 something starting with __ and the normal name is an alias. */
16131 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
16134 char (*f) () = wcsdup;
16143 return f != wcsdup;
16148 rm -f conftest.
$ac_objext conftest
$ac_exeext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16150 (eval $ac_link) 2>conftest.er1
16152 grep -v '^ *+' conftest.er1
>conftest.err
16154 cat conftest.err
>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try
='test -z "$ac_c_werror_flag"
16158 || test ! -s conftest.err'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try
='test -s conftest$ac_exeext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16170 ac_cv_func_wcsdup
=yes
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.
$ac_ext >&5
16175 ac_cv_func_wcsdup
=no
16177 rm -f conftest.err conftest.
$ac_objext \
16178 conftest
$ac_exeext conftest.
$ac_ext
16180 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
16181 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
16182 if test $ac_cv_func_wcsdup = yes; then
16183 cat >>confdefs.h
<<\_ACEOF
16184 #define HAVE_WCSDUP 1
16189 echo "$as_me:$LINENO: checking for wcwidth" >&5
16190 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
16191 if test "${ac_cv_func_wcwidth+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 cat >conftest.
$ac_ext <<_ACEOF
16197 cat confdefs.h
>>conftest.
$ac_ext
16198 cat >>conftest.
$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
16201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16202 #define wcwidth innocuous_wcwidth
16204 /* System header to define __stub macros and hopefully few prototypes,
16205 which can conflict with char wcwidth (); below.
16206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16207 <limits.h> exists even on freestanding compilers. */
16210 # include <limits.h>
16212 # include <assert.h>
16217 /* Override any gcc2 internal prototype to avoid an error. */
16222 /* We use char because int might match the return type of a gcc2
16223 builtin and then its argument prototype would still apply. */
16225 /* The GNU C library defines this for functions which it implements
16226 to always fail with ENOSYS. Some functions are actually named
16227 something starting with __ and the normal name is an alias. */
16228 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
16231 char (*f) () = wcwidth;
16240 return f != wcwidth;
16245 rm -f conftest.
$ac_objext conftest
$ac_exeext
16246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16247 (eval $ac_link) 2>conftest.er1
16249 grep -v '^ *+' conftest.er1
>conftest.err
16251 cat conftest.err
>&5
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); } &&
16254 { ac_try
='test -z "$ac_c_werror_flag"
16255 || test ! -s conftest.err'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; } &&
16261 { ac_try
='test -s conftest$ac_exeext'
16262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263 (eval $ac_try) 2>&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 ac_cv_func_wcwidth
=yes
16269 echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.
$ac_ext >&5
16272 ac_cv_func_wcwidth
=no
16274 rm -f conftest.err conftest.
$ac_objext \
16275 conftest
$ac_exeext conftest.
$ac_ext
16277 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
16278 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
16279 if test $ac_cv_func_wcwidth = yes; then
16280 cat >>confdefs.h
<<\_ACEOF
16281 #define HAVE_WCWIDTH 1
16286 echo "$as_me:$LINENO: checking for wctype" >&5
16287 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
16288 if test "${ac_cv_func_wctype+set}" = set; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 cat >conftest.
$ac_ext <<_ACEOF
16294 cat confdefs.h
>>conftest.
$ac_ext
16295 cat >>conftest.
$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16297 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
16298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16299 #define wctype innocuous_wctype
16301 /* System header to define __stub macros and hopefully few prototypes,
16302 which can conflict with char wctype (); below.
16303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16304 <limits.h> exists even on freestanding compilers. */
16307 # include <limits.h>
16309 # include <assert.h>
16314 /* Override any gcc2 internal prototype to avoid an error. */
16319 /* We use char because int might match the return type of a gcc2
16320 builtin and then its argument prototype would still apply. */
16322 /* The GNU C library defines this for functions which it implements
16323 to always fail with ENOSYS. Some functions are actually named
16324 something starting with __ and the normal name is an alias. */
16325 #if defined (__stub_wctype) || defined (__stub___wctype)
16328 char (*f) () = wctype;
16337 return f != wctype;
16342 rm -f conftest.
$ac_objext conftest
$ac_exeext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344 (eval $ac_link) 2>conftest.er1
16346 grep -v '^ *+' conftest.er1
>conftest.err
16348 cat conftest.err
>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try
='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try
='test -s conftest$ac_exeext'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_func_wctype
=yes
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.
$ac_ext >&5
16369 ac_cv_func_wctype
=no
16371 rm -f conftest.err conftest.
$ac_objext \
16372 conftest
$ac_exeext conftest.
$ac_ext
16374 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
16375 echo "${ECHO_T}$ac_cv_func_wctype" >&6
16376 if test $ac_cv_func_wctype = yes; then
16377 cat >>confdefs.h
<<\_ACEOF
16378 #define HAVE_WCTYPE 1
16385 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
16386 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
16387 if test "${ac_cv_func_mbrtowc+set}" = set; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 cat >conftest.
$ac_ext <<_ACEOF
16393 cat confdefs.h
>>conftest.
$ac_ext
16394 cat >>conftest.
$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16400 mbstate_t state; return ! (sizeof state && mbrtowc);
16405 rm -f conftest.
$ac_objext conftest
$ac_exeext
16406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16407 (eval $ac_link) 2>conftest.er1
16409 grep -v '^ *+' conftest.er1
>conftest.err
16411 cat conftest.err
>&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
16414 { ac_try
='test -z "$ac_c_werror_flag"
16415 || test ! -s conftest.err'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; } &&
16421 { ac_try
='test -s conftest$ac_exeext'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }; then
16427 ac_cv_func_mbrtowc
=yes
16429 echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.
$ac_ext >&5
16432 ac_cv_func_mbrtowc
=no
16434 rm -f conftest.err conftest.
$ac_objext \
16435 conftest
$ac_exeext conftest.
$ac_ext
16437 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
16438 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
16439 if test $ac_cv_func_mbrtowc = yes; then
16441 cat >>confdefs.h
<<\_ACEOF
16442 #define HAVE_MBRTOWC 1
16447 if test $ac_cv_func_mbrtowc = yes; then
16448 cat >>confdefs.h
<<\_ACEOF
16449 #define HAVE_MBSTATE_T 1
16459 for ac_func
in iswlower iswupper towlower towupper iswctype
16461 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16462 echo "$as_me:$LINENO: checking for $ac_func" >&5
16463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16464 if eval "test \"\${$as_ac_var+set}\" = set"; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 cat >conftest.
$ac_ext <<_ACEOF
16470 cat confdefs.h
>>conftest.
$ac_ext
16471 cat >>conftest.
$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16475 #define $ac_func innocuous_$ac_func
16477 /* System header to define __stub macros and hopefully few prototypes,
16478 which can conflict with char $ac_func (); below.
16479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16480 <limits.h> exists even on freestanding compilers. */
16483 # include <limits.h>
16485 # include <assert.h>
16490 /* Override any gcc2 internal prototype to avoid an error. */
16495 /* We use char because int might match the return type of a gcc2
16496 builtin and then its argument prototype would still apply. */
16498 /* The GNU C library defines this for functions which it implements
16499 to always fail with ENOSYS. Some functions are actually named
16500 something starting with __ and the normal name is an alias. */
16501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16504 char (*f) () = $ac_func;
16513 return f != $ac_func;
16518 rm -f conftest.
$ac_objext conftest
$ac_exeext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16520 (eval $ac_link) 2>conftest.er1
16522 grep -v '^ *+' conftest.er1
>conftest.err
16524 cat conftest.err
>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } &&
16527 { ac_try
='test -z "$ac_c_werror_flag"
16528 || test ! -s conftest.err'
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; } &&
16534 { ac_try
='test -s conftest$ac_exeext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 eval "$as_ac_var=yes"
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.
$ac_ext >&5
16545 eval "$as_ac_var=no"
16547 rm -f conftest.err conftest.
$ac_objext \
16548 conftest
$ac_exeext conftest.
$ac_ext
16550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16552 if test `eval echo '${'$as_ac_var'}'` = yes; then
16553 cat >>confdefs.h
<<_ACEOF
16554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16561 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16562 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16563 if test "${bash_cv_langinfo_codeset+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 cat >conftest.
$ac_ext <<_ACEOF
16569 cat confdefs.h
>>conftest.
$ac_ext
16570 cat >>conftest.
$ac_ext <<_ACEOF
16571 /* end confdefs.h. */
16572 #include <langinfo.h>
16576 char* cs = nl_langinfo(CODESET);
16581 rm -f conftest.
$ac_objext conftest
$ac_exeext
16582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16583 (eval $ac_link) 2>conftest.er1
16585 grep -v '^ *+' conftest.er1
>conftest.err
16587 cat conftest.err
>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try
='test -z "$ac_c_werror_flag"
16591 || test ! -s conftest.err'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; } &&
16597 { ac_try
='test -s conftest$ac_exeext'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
16603 bash_cv_langinfo_codeset
=yes
16605 echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.
$ac_ext >&5
16608 bash_cv_langinfo_codeset
=no
16610 rm -f conftest.err conftest.
$ac_objext \
16611 conftest
$ac_exeext conftest.
$ac_ext
16613 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
16614 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
16615 if test $bash_cv_langinfo_codeset = yes; then
16616 cat >>confdefs.h
<<\_ACEOF
16617 #define HAVE_LANGINFO_CODESET 1
16622 echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
16623 echo $ECHO_N "checking for wchar_t in wchar.h... $ECHO_C" >&6
16624 if test "${bash_cv_type_wchar_t+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 cat >conftest.
$ac_ext <<_ACEOF
16630 cat confdefs.h
>>conftest.
$ac_ext
16631 cat >>conftest.
$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16646 rm -f conftest.
$ac_objext
16647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16648 (eval $ac_compile) 2>conftest.er1
16650 grep -v '^ *+' conftest.er1
>conftest.err
16652 cat conftest.err
>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try
='test -z "$ac_c_werror_flag"
16656 || test ! -s conftest.err'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try
='test -s conftest.$ac_objext'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 bash_cv_type_wchar_t
=yes
16670 echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.
$ac_ext >&5
16673 bash_cv_type_wchar_t
=no
16675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16677 echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
16678 echo "${ECHO_T}$bash_cv_type_wchar_t" >&6
16679 if test $bash_cv_type_wchar_t = yes; then
16681 cat >>confdefs.h
<<\_ACEOF
16682 #define HAVE_WCHAR_T 1
16687 echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
16688 echo $ECHO_N "checking for wctype_t in wctype.h... $ECHO_C" >&6
16689 if test "${bash_cv_type_wctype_t+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 cat >conftest.
$ac_ext <<_ACEOF
16695 cat confdefs.h
>>conftest.
$ac_ext
16696 cat >>conftest.
$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 #include <wctype.h>
16710 rm -f conftest.
$ac_objext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712 (eval $ac_compile) 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_objext'
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 bash_cv_type_wctype_t
=yes
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.
$ac_ext >&5
16737 bash_cv_type_wctype_t
=no
16739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16741 echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
16742 echo "${ECHO_T}$bash_cv_type_wctype_t" >&6
16743 if test $bash_cv_type_wctype_t = yes; then
16745 cat >>confdefs.h
<<\_ACEOF
16746 #define HAVE_WCTYPE_T 1
16751 echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
16752 echo $ECHO_N "checking for wint_t in wctype.h... $ECHO_C" >&6
16753 if test "${bash_cv_type_wint_t+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 cat >conftest.
$ac_ext <<_ACEOF
16759 cat confdefs.h
>>conftest.
$ac_ext
16760 cat >>conftest.
$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 #include <wctype.h>
16774 rm -f conftest.
$ac_objext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16776 (eval $ac_compile) 2>conftest.er1
16778 grep -v '^ *+' conftest.er1
>conftest.err
16780 cat conftest.err
>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try
='test -z "$ac_c_werror_flag"
16784 || test ! -s conftest.err'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try
='test -s conftest.$ac_objext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 bash_cv_type_wint_t
=yes
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.
$ac_ext >&5
16801 bash_cv_type_wint_t
=no
16803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16805 echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
16806 echo "${ECHO_T}$bash_cv_type_wint_t" >&6
16807 if test $bash_cv_type_wint_t = yes; then
16809 cat >>confdefs.h
<<\_ACEOF
16810 #define HAVE_WINT_T 1
16817 if test "$opt_static_link" != yes; then
16819 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16820 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16821 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 ac_check_lib_save_LIBS
=$LIBS
16826 cat >conftest.
$ac_ext <<_ACEOF
16829 cat confdefs.h
>>conftest.
$ac_ext
16830 cat >>conftest.
$ac_ext <<_ACEOF
16831 /* end confdefs.h. */
16833 /* Override any gcc2 internal prototype to avoid an error. */
16837 /* We use char because int might match the return type of a gcc2
16838 builtin and then its argument prototype would still apply. */
16848 rm -f conftest.
$ac_objext conftest
$ac_exeext
16849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16850 (eval $ac_link) 2>conftest.er1
16852 grep -v '^ *+' conftest.er1
>conftest.err
16854 cat conftest.err
>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } &&
16857 { ac_try
='test -z "$ac_c_werror_flag"
16858 || test ! -s conftest.err'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try
='test -s conftest$ac_exeext'
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 ac_cv_lib_dl_dlopen
=yes
16872 echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.
$ac_ext >&5
16875 ac_cv_lib_dl_dlopen
=no
16877 rm -f conftest.err conftest.
$ac_objext \
16878 conftest
$ac_exeext conftest.
$ac_ext
16879 LIBS
=$ac_check_lib_save_LIBS
16881 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16882 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16883 if test $ac_cv_lib_dl_dlopen = yes; then
16884 cat >>confdefs.h
<<_ACEOF
16885 #define HAVE_LIBDL 1
16895 for ac_func
in dlopen dlclose dlsym
16897 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16898 echo "$as_me:$LINENO: checking for $ac_func" >&5
16899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16900 if eval "test \"\${$as_ac_var+set}\" = set"; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 cat >conftest.
$ac_ext <<_ACEOF
16906 cat confdefs.h
>>conftest.
$ac_ext
16907 cat >>conftest.
$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16911 #define $ac_func innocuous_$ac_func
16913 /* System header to define __stub macros and hopefully few prototypes,
16914 which can conflict with char $ac_func (); below.
16915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16916 <limits.h> exists even on freestanding compilers. */
16919 # include <limits.h>
16921 # include <assert.h>
16926 /* Override any gcc2 internal prototype to avoid an error. */
16931 /* We use char because int might match the return type of a gcc2
16932 builtin and then its argument prototype would still apply. */
16934 /* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16940 char (*f) () = $ac_func;
16949 return f != $ac_func;
16954 rm -f conftest.
$ac_objext conftest
$ac_exeext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16956 (eval $ac_link) 2>conftest.er1
16958 grep -v '^ *+' conftest.er1
>conftest.err
16960 cat conftest.err
>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try
='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try
='test -s conftest$ac_exeext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 eval "$as_ac_var=yes"
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.
$ac_ext >&5
16981 eval "$as_ac_var=no"
16983 rm -f conftest.err conftest.
$ac_objext \
16984 conftest
$ac_exeext conftest.
$ac_ext
16986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16988 if test `eval echo '${'$as_ac_var'}'` = yes; then
16989 cat >>confdefs.h
<<_ACEOF
16990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16998 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
16999 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
17000 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 cat >conftest.
$ac_ext <<_ACEOF
17006 cat confdefs.h
>>conftest.
$ac_ext
17007 cat >>conftest.
$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17009 #include <signal.h>
17010 /* NetBSD declares sys_siglist in unistd.h. */
17012 # include <unistd.h>
17019 #ifndef sys_siglist
17020 char *p = (char *) sys_siglist;
17027 rm -f conftest.
$ac_objext
17028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17029 (eval $ac_compile) 2>conftest.er1
17031 grep -v '^ *+' conftest.er1
>conftest.err
17033 cat conftest.err
>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } &&
17036 { ac_try
='test -z "$ac_c_werror_flag"
17037 || test ! -s conftest.err'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } &&
17043 { ac_try
='test -s conftest.$ac_objext'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_cv_have_decl_sys_siglist
=yes
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.
$ac_ext >&5
17054 ac_cv_have_decl_sys_siglist
=no
17056 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17058 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17059 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
17060 if test $ac_cv_have_decl_sys_siglist = yes; then
17062 cat >>confdefs.h
<<_ACEOF
17063 #define HAVE_DECL_SYS_SIGLIST 1
17068 cat >>confdefs.h
<<_ACEOF
17069 #define HAVE_DECL_SYS_SIGLIST 0
17078 if test "$ac_cv_func_inet_aton" != 'yes'; then
17080 echo "$as_me:$LINENO: checking for inet_aton" >&5
17081 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
17082 if test "${bash_cv_func_inet_aton+set}" = set; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 cat >conftest.
$ac_ext <<_ACEOF
17088 cat confdefs.h
>>conftest.
$ac_ext
17089 cat >>conftest.
$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17092 #include <sys/types.h>
17093 #include <netinet/in.h>
17094 #include <arpa/inet.h>
17099 inet_aton("127.0.0.1", &ap);
17104 rm -f conftest.
$ac_objext conftest
$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>conftest.er1
17108 grep -v '^ *+' conftest.er1
>conftest.err
17110 cat conftest.err
>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try
='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try
='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 bash_cv_func_inet_aton
=yes
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.
$ac_ext >&5
17131 bash_cv_func_inet_aton
=no
17133 rm -f conftest.err conftest.
$ac_objext \
17134 conftest
$ac_exeext conftest.
$ac_ext
17136 echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
17137 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
17138 if test $bash_cv_func_inet_aton = yes; then
17139 cat >>confdefs.h
<<\_ACEOF
17140 #define HAVE_INET_ATON 1
17145 "inet_aton.$ac_objext" | \
17146 *" inet_aton.$ac_objext" | \
17147 "inet_aton.$ac_objext "* | \
17148 *" inet_aton.$ac_objext "* ) ;;
17149 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext" ;;
17158 echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
17159 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
17160 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 ac_check_lib_save_LIBS
=$LIBS
17165 cat >conftest.
$ac_ext <<_ACEOF
17168 cat confdefs.h
>>conftest.
$ac_ext
17169 cat >>conftest.
$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17172 /* Override any gcc2 internal prototype to avoid an error. */
17176 /* We use char because int might match the return type of a gcc2
17177 builtin and then its argument prototype would still apply. */
17187 rm -f conftest.
$ac_objext conftest
$ac_exeext
17188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17189 (eval $ac_link) 2>conftest.er1
17191 grep -v '^ *+' conftest.er1
>conftest.err
17193 cat conftest.err
>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
17196 { ac_try
='test -z "$ac_c_werror_flag"
17197 || test ! -s conftest.err'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try
='test -s conftest$ac_exeext'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 ac_cv_lib_sun_getpwent
=yes
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.
$ac_ext >&5
17214 ac_cv_lib_sun_getpwent
=no
17216 rm -f conftest.err conftest.
$ac_objext \
17217 conftest
$ac_exeext conftest.
$ac_ext
17218 LIBS
=$ac_check_lib_save_LIBS
17220 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
17221 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
17222 if test $ac_cv_lib_sun_getpwent = yes; then
17223 cat >>confdefs.h
<<_ACEOF
17224 #define HAVE_LIBSUN 1
17233 if test "$ac_cv_func_getpeername" = no
; then
17235 if test "X$bash_cv_have_socklib" = "X"; then
17238 echo "$as_me:$LINENO: checking for socket library" >&5
17239 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
17242 if test "${bash_cv_have_socklib+set}" = set; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17245 echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
17246 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
17247 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17250 ac_check_lib_save_LIBS
=$LIBS
17251 LIBS
="-lsocket -lnsl $LIBS"
17252 cat >conftest.
$ac_ext <<_ACEOF
17255 cat confdefs.h
>>conftest.
$ac_ext
17256 cat >>conftest.
$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17259 /* Override any gcc2 internal prototype to avoid an error. */
17263 /* We use char because int might match the return type of a gcc2
17264 builtin and then its argument prototype would still apply. */
17265 char getpeername ();
17274 rm -f conftest.
$ac_objext conftest
$ac_exeext
17275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17276 (eval $ac_link) 2>conftest.er1
17278 grep -v '^ *+' conftest.er1
>conftest.err
17280 cat conftest.err
>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } &&
17283 { ac_try
='test -z "$ac_c_werror_flag"
17284 || test ! -s conftest.err'
17285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286 (eval $ac_try) 2>&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; } &&
17290 { ac_try
='test -s conftest$ac_exeext'
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; }; then
17296 ac_cv_lib_socket_getpeername
=yes
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.
$ac_ext >&5
17301 ac_cv_lib_socket_getpeername
=no
17303 rm -f conftest.err conftest.
$ac_objext \
17304 conftest
$ac_exeext conftest.
$ac_ext
17305 LIBS
=$ac_check_lib_save_LIBS
17307 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
17308 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
17309 if test $ac_cv_lib_socket_getpeername = yes; then
17310 bash_cv_have_socklib
=yes
17312 bash_cv_have_socklib
=no
17317 if test "X$_bash_needmsg" = Xyes
; then
17318 echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
17319 echo "${ECHO_T}$bash_cv_have_socklib" >&6
17322 if test $bash_cv_have_socklib = yes; then
17323 # check for libnsl, add it to LIBS if present
17324 if test "X$bash_cv_have_libnsl" = "X"; then
17327 echo "$as_me:$LINENO: checking for libnsl" >&5
17328 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
17331 if test "${bash_cv_have_libnsl+set}" = set; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17334 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
17335 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
17336 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 ac_check_lib_save_LIBS
=$LIBS
17341 cat >conftest.
$ac_ext <<_ACEOF
17344 cat confdefs.h
>>conftest.
$ac_ext
17345 cat >>conftest.
$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17348 /* Override any gcc2 internal prototype to avoid an error. */
17352 /* We use char because int might match the return type of a gcc2
17353 builtin and then its argument prototype would still apply. */
17363 rm -f conftest.
$ac_objext conftest
$ac_exeext
17364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17365 (eval $ac_link) 2>conftest.er1
17367 grep -v '^ *+' conftest.er1
>conftest.err
17369 cat conftest.err
>&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
17372 { ac_try
='test -z "$ac_c_werror_flag"
17373 || test ! -s conftest.err'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; } &&
17379 { ac_try
='test -s conftest$ac_exeext'
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_cv_lib_nsl_t_open
=yes
17387 echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.
$ac_ext >&5
17390 ac_cv_lib_nsl_t_open
=no
17392 rm -f conftest.err conftest.
$ac_objext \
17393 conftest
$ac_exeext conftest.
$ac_ext
17394 LIBS
=$ac_check_lib_save_LIBS
17396 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
17397 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
17398 if test $ac_cv_lib_nsl_t_open = yes; then
17399 bash_cv_have_libnsl
=yes
17401 bash_cv_have_libnsl
=no
17406 if test "X$_bash_needmsg" = Xyes
; then
17407 echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
17408 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
17411 if test $bash_cv_have_libnsl = yes; then
17412 LIBS
="-lsocket -lnsl $LIBS"
17414 LIBS
="-lsocket $LIBS"
17416 cat >>confdefs.h
<<\_ACEOF
17417 #define HAVE_LIBSOCKET 1
17420 cat >>confdefs.h
<<\_ACEOF
17421 #define HAVE_GETPEERNAME 1
17427 if test "$ac_cv_func_gethostbyname" = no
; then
17428 if test "X$bash_cv_have_gethostbyname" = "X"; then
17431 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
17432 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
17435 if test "${bash_cv_have_gethostbyname+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 cat >conftest.
$ac_ext <<_ACEOF
17441 cat confdefs.h
>>conftest.
$ac_ext
17442 cat >>conftest.
$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17448 struct hostent *hp;
17449 hp = gethostbyname("localhost");
17455 rm -f conftest.
$ac_objext conftest
$ac_exeext
17456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17457 (eval $ac_link) 2>conftest.er1
17459 grep -v '^ *+' conftest.er1
>conftest.err
17461 cat conftest.err
>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
17464 { ac_try
='test -z "$ac_c_werror_flag"
17465 || test ! -s conftest.err'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try
='test -s conftest$ac_exeext'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17477 bash_cv_have_gethostbyname
=yes
17479 echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.
$ac_ext >&5
17482 bash_cv_have_gethostbyname
=no
17484 rm -f conftest.err conftest.
$ac_objext \
17485 conftest
$ac_exeext conftest.
$ac_ext
17489 if test "X$_bash_needmsg" = Xyes
; then
17490 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
17491 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
17493 echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
17494 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
17495 if test "$bash_cv_have_gethostbyname" = yes; then
17496 cat >>confdefs.h
<<\_ACEOF
17497 #define HAVE_GETHOSTBYNAME 1
17504 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
17505 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
17506 if test "${ac_cv_type_uid_t+set}" = set; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 cat >conftest.
$ac_ext <<_ACEOF
17512 cat confdefs.h
>>conftest.
$ac_ext
17513 cat >>conftest.
$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17515 #include <sys/types.h>
17518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17519 $EGREP "uid_t" >/dev
/null
2>&1; then
17520 ac_cv_type_uid_t
=yes
17522 ac_cv_type_uid_t
=no
17527 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
17528 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
17529 if test $ac_cv_type_uid_t = no
; then
17531 cat >>confdefs.h
<<\_ACEOF
17536 cat >>confdefs.h
<<\_ACEOF
17542 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
17543 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
17544 if test "${ac_cv_type_getgroups+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 if test "$cross_compiling" = yes; then
17548 ac_cv_type_getgroups
=cross
17550 cat >conftest.
$ac_ext <<_ACEOF
17553 cat confdefs.h
>>conftest.
$ac_ext
17554 cat >>conftest.
$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 /* Thanks to Mike Rendell for this test. */
17557 #include <sys/types.h>
17560 #define MAX(x, y) ((x) > (y) ? (x) : (y))
17565 gid_t gidset[NGID];
17567 union { gid_t gval; long lval; } val;
17570 for (i = 0; i < NGID; i++)
17571 gidset[i] = val.gval;
17572 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
17574 /* Exit non-zero if getgroups seems to require an array of ints. This
17575 happens when gid_t is short but getgroups modifies an array of ints. */
17576 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
17579 rm -f conftest
$ac_exeext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17581 (eval $ac_link) 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; }; then
17590 ac_cv_type_getgroups
=gid_t
17592 echo "$as_me: program exited with status $ac_status" >&5
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.
$ac_ext >&5
17596 ( exit $ac_status )
17597 ac_cv_type_getgroups
=int
17599 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17601 if test $ac_cv_type_getgroups = cross
; then
17602 cat >conftest.
$ac_ext <<_ACEOF
17605 cat confdefs.h
>>conftest.
$ac_ext
17606 cat >>conftest.
$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17608 #include <unistd.h>
17611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17612 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
17613 ac_cv_type_getgroups
=gid_t
17615 ac_cv_type_getgroups
=int
17621 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
17622 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
17624 cat >>confdefs.h
<<_ACEOF
17625 #define GETGROUPS_T $ac_cv_type_getgroups
17629 echo "$as_me:$LINENO: checking for off_t" >&5
17630 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17631 if test "${ac_cv_type_off_t+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 cat >conftest.
$ac_ext <<_ACEOF
17637 cat confdefs.h
>>conftest.
$ac_ext
17638 cat >>conftest.
$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 $ac_includes_default
17646 if (sizeof (off_t))
17652 rm -f conftest.
$ac_objext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17654 (eval $ac_compile) 2>conftest.er1
17656 grep -v '^ *+' conftest.er1
>conftest.err
17658 cat conftest.err
>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
17661 { ac_try
='test -z "$ac_c_werror_flag"
17662 || test ! -s conftest.err'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try
='test -s conftest.$ac_objext'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_type_off_t
=yes
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.
$ac_ext >&5
17679 ac_cv_type_off_t
=no
17681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17683 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17684 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17685 if test $ac_cv_type_off_t = yes; then
17689 cat >>confdefs.h
<<_ACEOF
17695 echo "$as_me:$LINENO: checking for mode_t" >&5
17696 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17697 if test "${ac_cv_type_mode_t+set}" = set; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 cat >conftest.
$ac_ext <<_ACEOF
17703 cat confdefs.h
>>conftest.
$ac_ext
17704 cat >>conftest.
$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 $ac_includes_default
17712 if (sizeof (mode_t))
17718 rm -f conftest.
$ac_objext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17720 (eval $ac_compile) 2>conftest.er1
17722 grep -v '^ *+' conftest.er1
>conftest.err
17724 cat conftest.err
>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try
='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try
='test -s conftest.$ac_objext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 ac_cv_type_mode_t
=yes
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.
$ac_ext >&5
17745 ac_cv_type_mode_t
=no
17747 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17749 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17750 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17751 if test $ac_cv_type_mode_t = yes; then
17755 cat >>confdefs.h
<<_ACEOF
17761 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
17762 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
17763 if test "${ac_cv_type_uid_t+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17766 cat >conftest.
$ac_ext <<_ACEOF
17769 cat confdefs.h
>>conftest.
$ac_ext
17770 cat >>conftest.
$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 #include <sys/types.h>
17775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17776 $EGREP "uid_t" >/dev
/null
2>&1; then
17777 ac_cv_type_uid_t
=yes
17779 ac_cv_type_uid_t
=no
17784 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
17785 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
17786 if test $ac_cv_type_uid_t = no
; then
17788 cat >>confdefs.h
<<\_ACEOF
17793 cat >>confdefs.h
<<\_ACEOF
17799 echo "$as_me:$LINENO: checking for pid_t" >&5
17800 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17801 if test "${ac_cv_type_pid_t+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17804 cat >conftest.
$ac_ext <<_ACEOF
17807 cat confdefs.h
>>conftest.
$ac_ext
17808 cat >>conftest.
$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17810 $ac_includes_default
17816 if (sizeof (pid_t))
17822 rm -f conftest.
$ac_objext
17823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17824 (eval $ac_compile) 2>conftest.er1
17826 grep -v '^ *+' conftest.er1
>conftest.err
17828 cat conftest.err
>&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
17831 { ac_try
='test -z "$ac_c_werror_flag"
17832 || test ! -s conftest.err'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try
='test -s conftest.$ac_objext'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_cv_type_pid_t
=yes
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.
$ac_ext >&5
17849 ac_cv_type_pid_t
=no
17851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17853 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17854 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17855 if test $ac_cv_type_pid_t = yes; then
17859 cat >>confdefs.h
<<_ACEOF
17865 echo "$as_me:$LINENO: checking for size_t" >&5
17866 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17867 if test "${ac_cv_type_size_t+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17870 cat >conftest.
$ac_ext <<_ACEOF
17873 cat confdefs.h
>>conftest.
$ac_ext
17874 cat >>conftest.
$ac_ext <<_ACEOF
17875 /* end confdefs.h. */
17876 $ac_includes_default
17882 if (sizeof (size_t))
17888 rm -f conftest.
$ac_objext
17889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17890 (eval $ac_compile) 2>conftest.er1
17892 grep -v '^ *+' conftest.er1
>conftest.err
17894 cat conftest.err
>&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } &&
17897 { ac_try
='test -z "$ac_c_werror_flag"
17898 || test ! -s conftest.err'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; } &&
17904 { ac_try
='test -s conftest.$ac_objext'
17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; }; then
17910 ac_cv_type_size_t
=yes
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.
$ac_ext >&5
17915 ac_cv_type_size_t
=no
17917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17919 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17920 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17921 if test $ac_cv_type_size_t = yes; then
17925 cat >>confdefs.h
<<_ACEOF
17926 #define size_t unsigned
17931 echo "$as_me:$LINENO: checking for ssize_t" >&5
17932 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17933 if test "${ac_cv_type_ssize_t+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 cat >conftest.
$ac_ext <<_ACEOF
17939 cat confdefs.h
>>conftest.
$ac_ext
17940 cat >>conftest.
$ac_ext <<_ACEOF
17941 /* end confdefs.h. */
17942 $ac_includes_default
17948 if (sizeof (ssize_t))
17954 rm -f conftest.
$ac_objext
17955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17956 (eval $ac_compile) 2>conftest.er1
17958 grep -v '^ *+' conftest.er1
>conftest.err
17960 cat conftest.err
>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try
='test -z "$ac_c_werror_flag"
17964 || test ! -s conftest.err'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try
='test -s conftest.$ac_objext'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17976 ac_cv_type_ssize_t
=yes
17978 echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.
$ac_ext >&5
17981 ac_cv_type_ssize_t
=no
17983 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17985 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17986 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17987 if test $ac_cv_type_ssize_t = yes; then
17991 cat >>confdefs.h
<<_ACEOF
17992 #define ssize_t int
17997 echo "$as_me:$LINENO: checking for time_t" >&5
17998 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
17999 if test "${ac_cv_type_time_t+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18002 cat >conftest.
$ac_ext <<_ACEOF
18005 cat confdefs.h
>>conftest.
$ac_ext
18006 cat >>conftest.
$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 $ac_includes_default
18014 if (sizeof (time_t))
18020 rm -f conftest.
$ac_objext
18021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18022 (eval $ac_compile) 2>conftest.er1
18024 grep -v '^ *+' conftest.er1
>conftest.err
18026 cat conftest.err
>&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); } &&
18029 { ac_try
='test -z "$ac_c_werror_flag"
18030 || test ! -s conftest.err'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; } &&
18036 { ac_try
='test -s conftest.$ac_objext'
18037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18038 (eval $ac_try) 2>&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
18042 ac_cv_type_time_t
=yes
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.
$ac_ext >&5
18047 ac_cv_type_time_t
=no
18049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18051 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
18052 echo "${ECHO_T}$ac_cv_type_time_t" >&6
18053 if test $ac_cv_type_time_t = yes; then
18057 cat >>confdefs.h
<<_ACEOF
18058 #define time_t long
18065 echo "$as_me:$LINENO: checking for long long" >&5
18066 echo $ECHO_N "checking for long long... $ECHO_C" >&6
18067 if test "${bash_cv_type_long_long+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18070 cat >conftest.
$ac_ext <<_ACEOF
18073 cat confdefs.h
>>conftest.
$ac_ext
18074 cat >>conftest.
$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18077 long long ll = 1; int i = 63;
18082 long long llm = (long long) -1;
18083 return ll << i | ll >> i | llm / ll | llm % ll;
18089 rm -f conftest.
$ac_objext conftest
$ac_exeext
18090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18091 (eval $ac_link) 2>conftest.er1
18093 grep -v '^ *+' conftest.er1
>conftest.err
18095 cat conftest.err
>&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } &&
18098 { ac_try
='test -z "$ac_c_werror_flag"
18099 || test ! -s conftest.err'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; } &&
18105 { ac_try
='test -s conftest$ac_exeext'
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; }; then
18111 bash_cv_type_long_long
='long long'
18113 echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.
$ac_ext >&5
18116 bash_cv_type_long_long
='long'
18118 rm -f conftest.err conftest.
$ac_objext \
18119 conftest
$ac_exeext conftest.
$ac_ext
18121 echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
18122 echo "${ECHO_T}$bash_cv_type_long_long" >&6
18123 if test "$bash_cv_type_long_long" = 'long long'; then
18124 cat >>confdefs.h
<<\_ACEOF
18125 #define HAVE_LONG_LONG 1
18131 echo "$as_me:$LINENO: checking for unsigned long long" >&5
18132 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
18133 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 cat >conftest.
$ac_ext <<_ACEOF
18139 cat confdefs.h
>>conftest.
$ac_ext
18140 cat >>conftest.
$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18143 unsigned long long ull = 1; int i = 63;
18148 unsigned long long ullmax = (unsigned long long) -1;
18149 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18155 rm -f conftest.
$ac_objext conftest
$ac_exeext
18156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18157 (eval $ac_link) 2>conftest.er1
18159 grep -v '^ *+' conftest.er1
>conftest.err
18161 cat conftest.err
>&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try
='test -z "$ac_c_werror_flag"
18165 || test ! -s conftest.err'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try
='test -s conftest$ac_exeext'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 bash_cv_type_unsigned_long_long
='unsigned long long'
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.
$ac_ext >&5
18182 bash_cv_type_unsigned_long_long
='unsigned long'
18184 rm -f conftest.err conftest.
$ac_objext \
18185 conftest
$ac_exeext conftest.
$ac_ext
18187 echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
18188 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
18189 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
18190 cat >>confdefs.h
<<\_ACEOF
18191 #define HAVE_UNSIGNED_LONG_LONG 1
18197 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
18198 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
18199 if test "${ac_cv_type_signal+set}" = set; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18202 cat >conftest.
$ac_ext <<_ACEOF
18205 cat confdefs.h
>>conftest.
$ac_ext
18206 cat >>conftest.
$ac_ext <<_ACEOF
18207 /* end confdefs.h. */
18208 #include <sys/types.h>
18209 #include <signal.h>
18214 extern "C" void (*signal (int, void (*)(int)))(int);
18216 void (*signal ()) ();
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_signal
=void
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.
$ac_ext >&5
18254 ac_cv_type_signal
=int
18256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18258 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
18259 echo "${ECHO_T}$ac_cv_type_signal" >&6
18261 cat >>confdefs.h
<<_ACEOF
18262 #define RETSIGTYPE $ac_cv_type_signal
18267 echo "$as_me:$LINENO: checking for char" >&5
18268 echo $ECHO_N "checking for char... $ECHO_C" >&6
18269 if test "${ac_cv_type_char+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 cat >conftest.
$ac_ext <<_ACEOF
18275 cat confdefs.h
>>conftest.
$ac_ext
18276 cat >>conftest.
$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18278 $ac_includes_default
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
18312 ac_cv_type_char
=yes
18314 echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.
$ac_ext >&5
18319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18321 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18322 echo "${ECHO_T}$ac_cv_type_char" >&6
18324 echo "$as_me:$LINENO: checking size of char" >&5
18325 echo $ECHO_N "checking size of char... $ECHO_C" >&6
18326 if test "${ac_cv_sizeof_char+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18329 if test "$ac_cv_type_char" = yes; then
18330 # The cast to unsigned long works around a bug in the HP C Compiler
18331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18333 # This bug is HP SR number 8606223364.
18334 if test "$cross_compiling" = yes; then
18335 # Depending upon the size, compute the lo and hi bounds.
18336 cat >conftest.
$ac_ext <<_ACEOF
18339 cat confdefs.h
>>conftest.
$ac_ext
18340 cat >>conftest.
$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18342 $ac_includes_default
18346 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18353 rm -f conftest.
$ac_objext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355 (eval $ac_compile) 2>conftest.er1
18357 grep -v '^ *+' conftest.er1
>conftest.err
18359 cat conftest.err
>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try
='test -z "$ac_c_werror_flag"
18363 || test ! -s conftest.err'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; } &&
18369 { ac_try
='test -s conftest.$ac_objext'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; }; then
18377 cat >conftest.
$ac_ext <<_ACEOF
18380 cat confdefs.h
>>conftest.
$ac_ext
18381 cat >>conftest.
$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 $ac_includes_default
18387 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18394 rm -f conftest.
$ac_objext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18396 (eval $ac_compile) 2>conftest.er1
18398 grep -v '^ *+' conftest.er1
>conftest.err
18400 cat conftest.err
>&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
18403 { ac_try
='test -z "$ac_c_werror_flag"
18404 || test ! -s conftest.err'
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); }; } &&
18410 { ac_try
='test -s conftest.$ac_objext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 ac_hi
=$ac_mid; break
18418 echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.
$ac_ext >&5
18421 ac_lo
=`expr $ac_mid + 1`
18422 if test $ac_lo -le $ac_mid; then
18426 ac_mid
=`expr 2 '*' $ac_mid + 1`
18428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18431 echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.
$ac_ext >&5
18434 cat >conftest.
$ac_ext <<_ACEOF
18437 cat confdefs.h
>>conftest.
$ac_ext
18438 cat >>conftest.
$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18440 $ac_includes_default
18444 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18451 rm -f conftest.
$ac_objext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453 (eval $ac_compile) 2>conftest.er1
18455 grep -v '^ *+' conftest.er1
>conftest.err
18457 cat conftest.err
>&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try
='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try
='test -s conftest.$ac_objext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18475 cat >conftest.
$ac_ext <<_ACEOF
18478 cat confdefs.h
>>conftest.
$ac_ext
18479 cat >>conftest.
$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 $ac_includes_default
18485 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18492 rm -f conftest.
$ac_objext
18493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18494 (eval $ac_compile) 2>conftest.er1
18496 grep -v '^ *+' conftest.er1
>conftest.err
18498 cat conftest.err
>&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); } &&
18501 { ac_try
='test -z "$ac_c_werror_flag"
18502 || test ! -s conftest.err'
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; } &&
18508 { ac_try
='test -s conftest.$ac_objext'
18509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510 (eval $ac_try) 2>&5
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; }; then
18514 ac_lo
=$ac_mid; break
18516 echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.
$ac_ext >&5
18519 ac_hi
=`expr '(' $ac_mid ')' - 1`
18520 if test $ac_mid -le $ac_hi; then
18524 ac_mid
=`expr 2 '*' $ac_mid`
18526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.
$ac_ext >&5
18534 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18537 # Binary search between lo and hi bounds.
18538 while test "x$ac_lo" != "x$ac_hi"; do
18539 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18540 cat >conftest.
$ac_ext <<_ACEOF
18543 cat confdefs.h
>>conftest.
$ac_ext
18544 cat >>conftest.
$ac_ext <<_ACEOF
18545 /* end confdefs.h. */
18546 $ac_includes_default
18550 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18557 rm -f conftest.
$ac_objext
18558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18559 (eval $ac_compile) 2>conftest.er1
18561 grep -v '^ *+' conftest.er1
>conftest.err
18563 cat conftest.err
>&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
18566 { ac_try
='test -z "$ac_c_werror_flag"
18567 || test ! -s conftest.err'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; } &&
18573 { ac_try
='test -s conftest.$ac_objext'
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18581 echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.
$ac_ext >&5
18584 ac_lo
=`expr '(' $ac_mid ')' + 1`
18586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18589 ?
*) ac_cv_sizeof_char
=$ac_lo;;
18590 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18591 See \`config.log' for more details." >&5
18592 echo "$as_me: error: cannot compute sizeof (char), 77
18593 See \`config.log' for more details." >&2;}
18594 { (exit 1); exit 1; }; } ;;
18597 if test "$cross_compiling" = yes; then
18598 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18599 See \`config.log' for more details." >&5
18600 echo "$as_me: error: cannot run test program while cross compiling
18601 See \`config.log' for more details." >&2;}
18602 { (exit 1); exit 1; }; }
18604 cat >conftest.
$ac_ext <<_ACEOF
18607 cat confdefs.h
>>conftest.
$ac_ext
18608 cat >>conftest.
$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18610 $ac_includes_default
18611 long longval () { return (long) (sizeof (char)); }
18612 unsigned long ulongval () { return (long) (sizeof (char)); }
18614 #include <stdlib.h>
18619 FILE *f = fopen ("conftest.val", "w");
18622 if (((long) (sizeof (char))) < 0)
18624 long i = longval ();
18625 if (i != ((long) (sizeof (char))))
18627 fprintf (f, "%ld\n", i);
18631 unsigned long i = ulongval ();
18632 if (i != ((long) (sizeof (char))))
18634 fprintf (f, "%lu\n", i);
18636 exit (ferror (f) || fclose (f) != 0);
18642 rm -f conftest
$ac_exeext
18643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18644 (eval $ac_link) 2>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18649 (eval $ac_try) 2>&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; }; then
18653 ac_cv_sizeof_char
=`cat conftest.val`
18655 echo "$as_me: program exited with status $ac_status" >&5
18656 echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.
$ac_ext >&5
18659 ( exit $ac_status )
18660 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18661 See \`config.log' for more details." >&5
18662 echo "$as_me: error: cannot compute sizeof (char), 77
18663 See \`config.log' for more details." >&2;}
18664 { (exit 1); exit 1; }; }
18666 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18671 ac_cv_sizeof_char
=0
18674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18675 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18676 cat >>confdefs.h
<<_ACEOF
18677 #define SIZEOF_CHAR $ac_cv_sizeof_char
18681 echo "$as_me:$LINENO: checking for short" >&5
18682 echo $ECHO_N "checking for short... $ECHO_C" >&6
18683 if test "${ac_cv_type_short+set}" = set; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18686 cat >conftest.
$ac_ext <<_ACEOF
18689 cat confdefs.h
>>conftest.
$ac_ext
18690 cat >>conftest.
$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18692 $ac_includes_default
18698 if (sizeof (short))
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
18726 ac_cv_type_short
=yes
18728 echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.
$ac_ext >&5
18731 ac_cv_type_short
=no
18733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18735 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18736 echo "${ECHO_T}$ac_cv_type_short" >&6
18738 echo "$as_me:$LINENO: checking size of short" >&5
18739 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18740 if test "${ac_cv_sizeof_short+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 if test "$ac_cv_type_short" = yes; then
18744 # The cast to unsigned long works around a bug in the HP C Compiler
18745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18747 # This bug is HP SR number 8606223364.
18748 if test "$cross_compiling" = yes; then
18749 # Depending upon the size, compute the lo and hi bounds.
18750 cat >conftest.
$ac_ext <<_ACEOF
18753 cat confdefs.h
>>conftest.
$ac_ext
18754 cat >>conftest.
$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756 $ac_includes_default
18760 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18767 rm -f conftest.
$ac_objext
18768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18769 (eval $ac_compile) 2>conftest.er1
18771 grep -v '^ *+' conftest.er1
>conftest.err
18773 cat conftest.err
>&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
18776 { ac_try
='test -z "$ac_c_werror_flag"
18777 || test ! -s conftest.err'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; } &&
18783 { ac_try
='test -s conftest.$ac_objext'
18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785 (eval $ac_try) 2>&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
18791 cat >conftest.
$ac_ext <<_ACEOF
18794 cat confdefs.h
>>conftest.
$ac_ext
18795 cat >>conftest.
$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18797 $ac_includes_default
18801 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18808 rm -f conftest.
$ac_objext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18810 (eval $ac_compile) 2>conftest.er1
18812 grep -v '^ *+' conftest.er1
>conftest.err
18814 cat conftest.err
>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try
='test -z "$ac_c_werror_flag"
18818 || test ! -s conftest.err'
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); }; } &&
18824 { ac_try
='test -s conftest.$ac_objext'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18830 ac_hi
=$ac_mid; break
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.
$ac_ext >&5
18835 ac_lo
=`expr $ac_mid + 1`
18836 if test $ac_lo -le $ac_mid; then
18840 ac_mid
=`expr 2 '*' $ac_mid + 1`
18842 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.
$ac_ext >&5
18848 cat >conftest.
$ac_ext <<_ACEOF
18851 cat confdefs.h
>>conftest.
$ac_ext
18852 cat >>conftest.
$ac_ext <<_ACEOF
18853 /* end confdefs.h. */
18854 $ac_includes_default
18858 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18865 rm -f conftest.
$ac_objext
18866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18867 (eval $ac_compile) 2>conftest.er1
18869 grep -v '^ *+' conftest.er1
>conftest.err
18871 cat conftest.err
>&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); } &&
18874 { ac_try
='test -z "$ac_c_werror_flag"
18875 || test ! -s conftest.err'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; } &&
18881 { ac_try
='test -s conftest.$ac_objext'
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18889 cat >conftest.
$ac_ext <<_ACEOF
18892 cat confdefs.h
>>conftest.
$ac_ext
18893 cat >>conftest.
$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18895 $ac_includes_default
18899 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18906 rm -f conftest.
$ac_objext
18907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18908 (eval $ac_compile) 2>conftest.er1
18910 grep -v '^ *+' conftest.er1
>conftest.err
18912 cat conftest.err
>&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
18915 { ac_try
='test -z "$ac_c_werror_flag"
18916 || test ! -s conftest.err'
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try
='test -s conftest.$ac_objext'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18928 ac_lo
=$ac_mid; break
18930 echo "$as_me: failed program was:" >&5
18931 sed 's/^/| /' conftest.
$ac_ext >&5
18933 ac_hi
=`expr '(' $ac_mid ')' - 1`
18934 if test $ac_mid -le $ac_hi; then
18938 ac_mid
=`expr 2 '*' $ac_mid`
18940 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18943 echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.
$ac_ext >&5
18948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18951 # Binary search between lo and hi bounds.
18952 while test "x$ac_lo" != "x$ac_hi"; do
18953 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18954 cat >conftest.
$ac_ext <<_ACEOF
18957 cat confdefs.h
>>conftest.
$ac_ext
18958 cat >>conftest.
$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18960 $ac_includes_default
18964 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18971 rm -f conftest.
$ac_objext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18973 (eval $ac_compile) 2>conftest.er1
18975 grep -v '^ *+' conftest.er1
>conftest.err
18977 cat conftest.err
>&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try
='test -z "$ac_c_werror_flag"
18981 || test ! -s conftest.err'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try
='test -s conftest.$ac_objext'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.
$ac_ext >&5
18998 ac_lo
=`expr '(' $ac_mid ')' + 1`
19000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19003 ?
*) ac_cv_sizeof_short
=$ac_lo;;
19004 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
19005 See \`config.log' for more details." >&5
19006 echo "$as_me: error: cannot compute sizeof (short), 77
19007 See \`config.log' for more details." >&2;}
19008 { (exit 1); exit 1; }; } ;;
19011 if test "$cross_compiling" = yes; then
19012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19013 See \`config.log' for more details." >&5
19014 echo "$as_me: error: cannot run test program while cross compiling
19015 See \`config.log' for more details." >&2;}
19016 { (exit 1); exit 1; }; }
19018 cat >conftest.
$ac_ext <<_ACEOF
19021 cat confdefs.h
>>conftest.
$ac_ext
19022 cat >>conftest.
$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19024 $ac_includes_default
19025 long longval () { return (long) (sizeof (short)); }
19026 unsigned long ulongval () { return (long) (sizeof (short)); }
19028 #include <stdlib.h>
19033 FILE *f = fopen ("conftest.val", "w");
19036 if (((long) (sizeof (short))) < 0)
19038 long i = longval ();
19039 if (i != ((long) (sizeof (short))))
19041 fprintf (f, "%ld\n", i);
19045 unsigned long i = ulongval ();
19046 if (i != ((long) (sizeof (short))))
19048 fprintf (f, "%lu\n", i);
19050 exit (ferror (f) || fclose (f) != 0);
19056 rm -f conftest
$ac_exeext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19058 (eval $ac_link) 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_cv_sizeof_short
=`cat conftest.val`
19069 echo "$as_me: program exited with status $ac_status" >&5
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.
$ac_ext >&5
19073 ( exit $ac_status )
19074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
19075 See \`config.log' for more details." >&5
19076 echo "$as_me: error: cannot compute sizeof (short), 77
19077 See \`config.log' for more details." >&2;}
19078 { (exit 1); exit 1; }; }
19080 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19085 ac_cv_sizeof_short
=0
19088 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19089 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
19090 cat >>confdefs.h
<<_ACEOF
19091 #define SIZEOF_SHORT $ac_cv_sizeof_short
19095 echo "$as_me:$LINENO: checking for int" >&5
19096 echo $ECHO_N "checking for int... $ECHO_C" >&6
19097 if test "${ac_cv_type_int+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19100 cat >conftest.
$ac_ext <<_ACEOF
19103 cat confdefs.h
>>conftest.
$ac_ext
19104 cat >>conftest.
$ac_ext <<_ACEOF
19105 /* end confdefs.h. */
19106 $ac_includes_default
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 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.
$ac_ext >&5
19147 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19149 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19150 echo "${ECHO_T}$ac_cv_type_int" >&6
19152 echo "$as_me:$LINENO: checking size of int" >&5
19153 echo $ECHO_N "checking size of int... $ECHO_C" >&6
19154 if test "${ac_cv_sizeof_int+set}" = set; then
19155 echo $ECHO_N "(cached) $ECHO_C" >&6
19157 if test "$ac_cv_type_int" = yes; then
19158 # The cast to unsigned long works around a bug in the HP C Compiler
19159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19161 # This bug is HP SR number 8606223364.
19162 if test "$cross_compiling" = yes; then
19163 # Depending upon the size, compute the lo and hi bounds.
19164 cat >conftest.
$ac_ext <<_ACEOF
19167 cat confdefs.h
>>conftest.
$ac_ext
19168 cat >>conftest.
$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19170 $ac_includes_default
19174 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19181 rm -f conftest.
$ac_objext
19182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19183 (eval $ac_compile) 2>conftest.er1
19185 grep -v '^ *+' conftest.er1
>conftest.err
19187 cat conftest.err
>&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
19190 { ac_try
='test -z "$ac_c_werror_flag"
19191 || test ! -s conftest.err'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; } &&
19197 { ac_try
='test -s conftest.$ac_objext'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19205 cat >conftest.
$ac_ext <<_ACEOF
19208 cat confdefs.h
>>conftest.
$ac_ext
19209 cat >>conftest.
$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 $ac_includes_default
19215 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19222 rm -f conftest.
$ac_objext
19223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19224 (eval $ac_compile) 2>conftest.er1
19226 grep -v '^ *+' conftest.er1
>conftest.err
19228 cat conftest.err
>&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } &&
19231 { ac_try
='test -z "$ac_c_werror_flag"
19232 || test ! -s conftest.err'
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); }; } &&
19238 { ac_try
='test -s conftest.$ac_objext'
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; }; then
19244 ac_hi
=$ac_mid; break
19246 echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.
$ac_ext >&5
19249 ac_lo
=`expr $ac_mid + 1`
19250 if test $ac_lo -le $ac_mid; then
19254 ac_mid
=`expr 2 '*' $ac_mid + 1`
19256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19259 echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.
$ac_ext >&5
19262 cat >conftest.
$ac_ext <<_ACEOF
19265 cat confdefs.h
>>conftest.
$ac_ext
19266 cat >>conftest.
$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19268 $ac_includes_default
19272 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19279 rm -f conftest.
$ac_objext
19280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19281 (eval $ac_compile) 2>conftest.er1
19283 grep -v '^ *+' conftest.er1
>conftest.err
19285 cat conftest.err
>&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); } &&
19288 { ac_try
='test -z "$ac_c_werror_flag"
19289 || test ! -s conftest.err'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; } &&
19295 { ac_try
='test -s conftest.$ac_objext'
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; }; then
19303 cat >conftest.
$ac_ext <<_ACEOF
19306 cat confdefs.h
>>conftest.
$ac_ext
19307 cat >>conftest.
$ac_ext <<_ACEOF
19308 /* end confdefs.h. */
19309 $ac_includes_default
19313 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19320 rm -f conftest.
$ac_objext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19322 (eval $ac_compile) 2>conftest.er1
19324 grep -v '^ *+' conftest.er1
>conftest.err
19326 cat conftest.err
>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try
='test -z "$ac_c_werror_flag"
19330 || test ! -s conftest.err'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try
='test -s conftest.$ac_objext'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_lo
=$ac_mid; break
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.
$ac_ext >&5
19347 ac_hi
=`expr '(' $ac_mid ')' - 1`
19348 if test $ac_mid -le $ac_hi; then
19352 ac_mid
=`expr 2 '*' $ac_mid`
19354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.
$ac_ext >&5
19362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19365 # Binary search between lo and hi bounds.
19366 while test "x$ac_lo" != "x$ac_hi"; do
19367 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19368 cat >conftest.
$ac_ext <<_ACEOF
19371 cat confdefs.h
>>conftest.
$ac_ext
19372 cat >>conftest.
$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 $ac_includes_default
19378 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19385 rm -f conftest.
$ac_objext
19386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19387 (eval $ac_compile) 2>conftest.er1
19389 grep -v '^ *+' conftest.er1
>conftest.err
19391 cat conftest.err
>&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
19394 { ac_try
='test -z "$ac_c_werror_flag"
19395 || test ! -s conftest.err'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; } &&
19401 { ac_try
='test -s conftest.$ac_objext'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; }; then
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.
$ac_ext >&5
19412 ac_lo
=`expr '(' $ac_mid ')' + 1`
19414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19417 ?
*) ac_cv_sizeof_int
=$ac_lo;;
19418 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19419 See \`config.log' for more details." >&5
19420 echo "$as_me: error: cannot compute sizeof (int), 77
19421 See \`config.log' for more details." >&2;}
19422 { (exit 1); exit 1; }; } ;;
19425 if test "$cross_compiling" = yes; then
19426 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19427 See \`config.log' for more details." >&5
19428 echo "$as_me: error: cannot run test program while cross compiling
19429 See \`config.log' for more details." >&2;}
19430 { (exit 1); exit 1; }; }
19432 cat >conftest.
$ac_ext <<_ACEOF
19435 cat confdefs.h
>>conftest.
$ac_ext
19436 cat >>conftest.
$ac_ext <<_ACEOF
19437 /* end confdefs.h. */
19438 $ac_includes_default
19439 long longval () { return (long) (sizeof (int)); }
19440 unsigned long ulongval () { return (long) (sizeof (int)); }
19442 #include <stdlib.h>
19447 FILE *f = fopen ("conftest.val", "w");
19450 if (((long) (sizeof (int))) < 0)
19452 long i = longval ();
19453 if (i != ((long) (sizeof (int))))
19455 fprintf (f, "%ld\n", i);
19459 unsigned long i = ulongval ();
19460 if (i != ((long) (sizeof (int))))
19462 fprintf (f, "%lu\n", i);
19464 exit (ferror (f) || fclose (f) != 0);
19470 rm -f conftest
$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472 (eval $ac_link) 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_sizeof_int
=`cat conftest.val`
19483 echo "$as_me: program exited with status $ac_status" >&5
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.
$ac_ext >&5
19487 ( exit $ac_status )
19488 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19489 See \`config.log' for more details." >&5
19490 echo "$as_me: error: cannot compute sizeof (int), 77
19491 See \`config.log' for more details." >&2;}
19492 { (exit 1); exit 1; }; }
19494 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19502 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19503 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19504 cat >>confdefs.h
<<_ACEOF
19505 #define SIZEOF_INT $ac_cv_sizeof_int
19509 echo "$as_me:$LINENO: checking for long" >&5
19510 echo $ECHO_N "checking for long... $ECHO_C" >&6
19511 if test "${ac_cv_type_long+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19514 cat >conftest.
$ac_ext <<_ACEOF
19517 cat confdefs.h
>>conftest.
$ac_ext
19518 cat >>conftest.
$ac_ext <<_ACEOF
19519 /* end confdefs.h. */
19520 $ac_includes_default
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
19554 ac_cv_type_long
=yes
19556 echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.
$ac_ext >&5
19561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19563 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19564 echo "${ECHO_T}$ac_cv_type_long" >&6
19566 echo "$as_me:$LINENO: checking size of long" >&5
19567 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19568 if test "${ac_cv_sizeof_long+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19571 if test "$ac_cv_type_long" = yes; then
19572 # The cast to unsigned long works around a bug in the HP C Compiler
19573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19575 # This bug is HP SR number 8606223364.
19576 if test "$cross_compiling" = yes; then
19577 # Depending upon the size, compute the lo and hi bounds.
19578 cat >conftest.
$ac_ext <<_ACEOF
19581 cat confdefs.h
>>conftest.
$ac_ext
19582 cat >>conftest.
$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 $ac_includes_default
19588 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19595 rm -f conftest.
$ac_objext
19596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19597 (eval $ac_compile) 2>conftest.er1
19599 grep -v '^ *+' conftest.er1
>conftest.err
19601 cat conftest.err
>&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } &&
19604 { ac_try
='test -z "$ac_c_werror_flag"
19605 || test ! -s conftest.err'
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try
='test -s conftest.$ac_objext'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19619 cat >conftest.
$ac_ext <<_ACEOF
19622 cat confdefs.h
>>conftest.
$ac_ext
19623 cat >>conftest.
$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19625 $ac_includes_default
19629 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19636 rm -f conftest.
$ac_objext
19637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19638 (eval $ac_compile) 2>conftest.er1
19640 grep -v '^ *+' conftest.er1
>conftest.err
19642 cat conftest.err
>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try
='test -z "$ac_c_werror_flag"
19646 || test ! -s conftest.err'
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); }; } &&
19652 { ac_try
='test -s conftest.$ac_objext'
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_hi
=$ac_mid; break
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.
$ac_ext >&5
19663 ac_lo
=`expr $ac_mid + 1`
19664 if test $ac_lo -le $ac_mid; then
19668 ac_mid
=`expr 2 '*' $ac_mid + 1`
19670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.
$ac_ext >&5
19676 cat >conftest.
$ac_ext <<_ACEOF
19679 cat confdefs.h
>>conftest.
$ac_ext
19680 cat >>conftest.
$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 $ac_includes_default
19686 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19693 rm -f conftest.
$ac_objext
19694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19695 (eval $ac_compile) 2>conftest.er1
19697 grep -v '^ *+' conftest.er1
>conftest.err
19699 cat conftest.err
>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } &&
19702 { ac_try
='test -z "$ac_c_werror_flag"
19703 || test ! -s conftest.err'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; } &&
19709 { ac_try
='test -s conftest.$ac_objext'
19710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711 (eval $ac_try) 2>&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
19717 cat >conftest.
$ac_ext <<_ACEOF
19720 cat confdefs.h
>>conftest.
$ac_ext
19721 cat >>conftest.
$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 $ac_includes_default
19727 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19734 rm -f conftest.
$ac_objext
19735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19736 (eval $ac_compile) 2>conftest.er1
19738 grep -v '^ *+' conftest.er1
>conftest.err
19740 cat conftest.err
>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } &&
19743 { ac_try
='test -z "$ac_c_werror_flag"
19744 || test ! -s conftest.err'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; } &&
19750 { ac_try
='test -s conftest.$ac_objext'
19751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752 (eval $ac_try) 2>&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }; }; then
19756 ac_lo
=$ac_mid; break
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.
$ac_ext >&5
19761 ac_hi
=`expr '(' $ac_mid ')' - 1`
19762 if test $ac_mid -le $ac_hi; then
19766 ac_mid
=`expr 2 '*' $ac_mid`
19768 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19771 echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.
$ac_ext >&5
19776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19779 # Binary search between lo and hi bounds.
19780 while test "x$ac_lo" != "x$ac_hi"; do
19781 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19782 cat >conftest.
$ac_ext <<_ACEOF
19785 cat confdefs.h
>>conftest.
$ac_ext
19786 cat >>conftest.
$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19788 $ac_includes_default
19792 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19799 rm -f conftest.
$ac_objext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19801 (eval $ac_compile) 2>conftest.er1
19803 grep -v '^ *+' conftest.er1
>conftest.err
19805 cat conftest.err
>&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
19808 { ac_try
='test -z "$ac_c_werror_flag"
19809 || test ! -s conftest.err'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try
='test -s conftest.$ac_objext'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.
$ac_ext >&5
19826 ac_lo
=`expr '(' $ac_mid ')' + 1`
19828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19831 ?
*) ac_cv_sizeof_long
=$ac_lo;;
19832 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19833 See \`config.log' for more details." >&5
19834 echo "$as_me: error: cannot compute sizeof (long), 77
19835 See \`config.log' for more details." >&2;}
19836 { (exit 1); exit 1; }; } ;;
19839 if test "$cross_compiling" = yes; then
19840 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19841 See \`config.log' for more details." >&5
19842 echo "$as_me: error: cannot run test program while cross compiling
19843 See \`config.log' for more details." >&2;}
19844 { (exit 1); exit 1; }; }
19846 cat >conftest.
$ac_ext <<_ACEOF
19849 cat confdefs.h
>>conftest.
$ac_ext
19850 cat >>conftest.
$ac_ext <<_ACEOF
19851 /* end confdefs.h. */
19852 $ac_includes_default
19853 long longval () { return (long) (sizeof (long)); }
19854 unsigned long ulongval () { return (long) (sizeof (long)); }
19856 #include <stdlib.h>
19861 FILE *f = fopen ("conftest.val", "w");
19864 if (((long) (sizeof (long))) < 0)
19866 long i = longval ();
19867 if (i != ((long) (sizeof (long))))
19869 fprintf (f, "%ld\n", i);
19873 unsigned long i = ulongval ();
19874 if (i != ((long) (sizeof (long))))
19876 fprintf (f, "%lu\n", i);
19878 exit (ferror (f) || fclose (f) != 0);
19884 rm -f conftest
$ac_exeext
19885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19886 (eval $ac_link) 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
19895 ac_cv_sizeof_long
=`cat conftest.val`
19897 echo "$as_me: program exited with status $ac_status" >&5
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.
$ac_ext >&5
19901 ( exit $ac_status )
19902 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19903 See \`config.log' for more details." >&5
19904 echo "$as_me: error: cannot compute sizeof (long), 77
19905 See \`config.log' for more details." >&2;}
19906 { (exit 1); exit 1; }; }
19908 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19913 ac_cv_sizeof_long
=0
19916 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19917 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19918 cat >>confdefs.h
<<_ACEOF
19919 #define SIZEOF_LONG $ac_cv_sizeof_long
19923 echo "$as_me:$LINENO: checking for char *" >&5
19924 echo $ECHO_N "checking for char *... $ECHO_C" >&6
19925 if test "${ac_cv_type_char_p+set}" = set; then
19926 echo $ECHO_N "(cached) $ECHO_C" >&6
19928 cat >conftest.
$ac_ext <<_ACEOF
19931 cat confdefs.h
>>conftest.
$ac_ext
19932 cat >>conftest.
$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19934 $ac_includes_default
19940 if (sizeof (char *))
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
19968 ac_cv_type_char_p
=yes
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.
$ac_ext >&5
19973 ac_cv_type_char_p
=no
19975 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19977 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
19978 echo "${ECHO_T}$ac_cv_type_char_p" >&6
19980 echo "$as_me:$LINENO: checking size of char *" >&5
19981 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
19982 if test "${ac_cv_sizeof_char_p+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 if test "$ac_cv_type_char_p" = yes; then
19986 # The cast to unsigned long works around a bug in the HP C Compiler
19987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19989 # This bug is HP SR number 8606223364.
19990 if test "$cross_compiling" = yes; then
19991 # Depending upon the size, compute the lo and hi bounds.
19992 cat >conftest.
$ac_ext <<_ACEOF
19995 cat confdefs.h
>>conftest.
$ac_ext
19996 cat >>conftest.
$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 $ac_includes_default
20002 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
20009 rm -f conftest.
$ac_objext
20010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20011 (eval $ac_compile) 2>conftest.er1
20013 grep -v '^ *+' conftest.er1
>conftest.err
20015 cat conftest.err
>&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
20018 { ac_try
='test -z "$ac_c_werror_flag"
20019 || test ! -s conftest.err'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; } &&
20025 { ac_try
='test -s conftest.$ac_objext'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20033 cat >conftest.
$ac_ext <<_ACEOF
20036 cat confdefs.h
>>conftest.
$ac_ext
20037 cat >>conftest.
$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20039 $ac_includes_default
20043 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
20050 rm -f conftest.
$ac_objext
20051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20052 (eval $ac_compile) 2>conftest.er1
20054 grep -v '^ *+' conftest.er1
>conftest.err
20056 cat conftest.err
>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } &&
20059 { ac_try
='test -z "$ac_c_werror_flag"
20060 || test ! -s conftest.err'
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); }; } &&
20066 { ac_try
='test -s conftest.$ac_objext'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
20072 ac_hi
=$ac_mid; break
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.
$ac_ext >&5
20077 ac_lo
=`expr $ac_mid + 1`
20078 if test $ac_lo -le $ac_mid; then
20082 ac_mid
=`expr 2 '*' $ac_mid + 1`
20084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.
$ac_ext >&5
20090 cat >conftest.
$ac_ext <<_ACEOF
20093 cat confdefs.h
>>conftest.
$ac_ext
20094 cat >>conftest.
$ac_ext <<_ACEOF
20095 /* end confdefs.h. */
20096 $ac_includes_default
20100 static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
20107 rm -f conftest.
$ac_objext
20108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20109 (eval $ac_compile) 2>conftest.er1
20111 grep -v '^ *+' conftest.er1
>conftest.err
20113 cat conftest.err
>&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } &&
20116 { ac_try
='test -z "$ac_c_werror_flag"
20117 || test ! -s conftest.err'
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; } &&
20123 { ac_try
='test -s conftest.$ac_objext'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; }; then
20131 cat >conftest.
$ac_ext <<_ACEOF
20134 cat confdefs.h
>>conftest.
$ac_ext
20135 cat >>conftest.
$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20137 $ac_includes_default
20141 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
20148 rm -f conftest.
$ac_objext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20150 (eval $ac_compile) 2>conftest.er1
20152 grep -v '^ *+' conftest.er1
>conftest.err
20154 cat conftest.err
>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try
='test -z "$ac_c_werror_flag"
20158 || test ! -s conftest.err'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; } &&
20164 { ac_try
='test -s conftest.$ac_objext'
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; }; then
20170 ac_lo
=$ac_mid; break
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.
$ac_ext >&5
20175 ac_hi
=`expr '(' $ac_mid ')' - 1`
20176 if test $ac_mid -le $ac_hi; then
20180 ac_mid
=`expr 2 '*' $ac_mid`
20182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.
$ac_ext >&5
20190 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20193 # Binary search between lo and hi bounds.
20194 while test "x$ac_lo" != "x$ac_hi"; do
20195 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20196 cat >conftest.
$ac_ext <<_ACEOF
20199 cat confdefs.h
>>conftest.
$ac_ext
20200 cat >>conftest.
$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20202 $ac_includes_default
20206 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
20213 rm -f conftest.
$ac_objext
20214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20215 (eval $ac_compile) 2>conftest.er1
20217 grep -v '^ *+' conftest.er1
>conftest.err
20219 cat conftest.err
>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } &&
20222 { ac_try
='test -z "$ac_c_werror_flag"
20223 || test ! -s conftest.err'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try
='test -s conftest.$ac_objext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.
$ac_ext >&5
20240 ac_lo
=`expr '(' $ac_mid ')' + 1`
20242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20245 ?
*) ac_cv_sizeof_char_p
=$ac_lo;;
20246 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
20247 See \`config.log' for more details." >&5
20248 echo "$as_me: error: cannot compute sizeof (char *), 77
20249 See \`config.log' for more details." >&2;}
20250 { (exit 1); exit 1; }; } ;;
20253 if test "$cross_compiling" = yes; then
20254 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20255 See \`config.log' for more details." >&5
20256 echo "$as_me: error: cannot run test program while cross compiling
20257 See \`config.log' for more details." >&2;}
20258 { (exit 1); exit 1; }; }
20260 cat >conftest.
$ac_ext <<_ACEOF
20263 cat confdefs.h
>>conftest.
$ac_ext
20264 cat >>conftest.
$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20266 $ac_includes_default
20267 long longval () { return (long) (sizeof (char *)); }
20268 unsigned long ulongval () { return (long) (sizeof (char *)); }
20270 #include <stdlib.h>
20275 FILE *f = fopen ("conftest.val", "w");
20278 if (((long) (sizeof (char *))) < 0)
20280 long i = longval ();
20281 if (i != ((long) (sizeof (char *))))
20283 fprintf (f, "%ld\n", i);
20287 unsigned long i = ulongval ();
20288 if (i != ((long) (sizeof (char *))))
20290 fprintf (f, "%lu\n", i);
20292 exit (ferror (f) || fclose (f) != 0);
20298 rm -f conftest
$ac_exeext
20299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20300 (eval $ac_link) 2>&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20309 ac_cv_sizeof_char_p
=`cat conftest.val`
20311 echo "$as_me: program exited with status $ac_status" >&5
20312 echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.
$ac_ext >&5
20315 ( exit $ac_status )
20316 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
20317 See \`config.log' for more details." >&5
20318 echo "$as_me: error: cannot compute sizeof (char *), 77
20319 See \`config.log' for more details." >&2;}
20320 { (exit 1); exit 1; }; }
20322 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20327 ac_cv_sizeof_char_p
=0
20330 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
20331 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
20332 cat >>confdefs.h
<<_ACEOF
20333 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
20337 echo "$as_me:$LINENO: checking for double" >&5
20338 echo $ECHO_N "checking for double... $ECHO_C" >&6
20339 if test "${ac_cv_type_double+set}" = set; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20342 cat >conftest.
$ac_ext <<_ACEOF
20345 cat confdefs.h
>>conftest.
$ac_ext
20346 cat >>conftest.
$ac_ext <<_ACEOF
20347 /* end confdefs.h. */
20348 $ac_includes_default
20354 if (sizeof (double))
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
20382 ac_cv_type_double
=yes
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.
$ac_ext >&5
20387 ac_cv_type_double
=no
20389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20391 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
20392 echo "${ECHO_T}$ac_cv_type_double" >&6
20394 echo "$as_me:$LINENO: checking size of double" >&5
20395 echo $ECHO_N "checking size of double... $ECHO_C" >&6
20396 if test "${ac_cv_sizeof_double+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 if test "$ac_cv_type_double" = yes; then
20400 # The cast to unsigned long works around a bug in the HP C Compiler
20401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20403 # This bug is HP SR number 8606223364.
20404 if test "$cross_compiling" = yes; then
20405 # Depending upon the size, compute the lo and hi bounds.
20406 cat >conftest.
$ac_ext <<_ACEOF
20409 cat confdefs.h
>>conftest.
$ac_ext
20410 cat >>conftest.
$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20412 $ac_includes_default
20416 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
20423 rm -f conftest.
$ac_objext
20424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20425 (eval $ac_compile) 2>conftest.er1
20427 grep -v '^ *+' conftest.er1
>conftest.err
20429 cat conftest.err
>&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } &&
20432 { ac_try
='test -z "$ac_c_werror_flag"
20433 || test ! -s conftest.err'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; } &&
20439 { ac_try
='test -s conftest.$ac_objext'
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
20447 cat >conftest.
$ac_ext <<_ACEOF
20450 cat confdefs.h
>>conftest.
$ac_ext
20451 cat >>conftest.
$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20453 $ac_includes_default
20457 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
20464 rm -f conftest.
$ac_objext
20465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20466 (eval $ac_compile) 2>conftest.er1
20468 grep -v '^ *+' conftest.er1
>conftest.err
20470 cat conftest.err
>&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try
='test -z "$ac_c_werror_flag"
20474 || test ! -s conftest.err'
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); }; } &&
20480 { ac_try
='test -s conftest.$ac_objext'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 ac_hi
=$ac_mid; break
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.
$ac_ext >&5
20491 ac_lo
=`expr $ac_mid + 1`
20492 if test $ac_lo -le $ac_mid; then
20496 ac_mid
=`expr 2 '*' $ac_mid + 1`
20498 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20501 echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.
$ac_ext >&5
20504 cat >conftest.
$ac_ext <<_ACEOF
20507 cat confdefs.h
>>conftest.
$ac_ext
20508 cat >>conftest.
$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 $ac_includes_default
20514 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
20521 rm -f conftest.
$ac_objext
20522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20523 (eval $ac_compile) 2>conftest.er1
20525 grep -v '^ *+' conftest.er1
>conftest.err
20527 cat conftest.err
>&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); } &&
20530 { ac_try
='test -z "$ac_c_werror_flag"
20531 || test ! -s conftest.err'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; } &&
20537 { ac_try
='test -s conftest.$ac_objext'
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20545 cat >conftest.
$ac_ext <<_ACEOF
20548 cat confdefs.h
>>conftest.
$ac_ext
20549 cat >>conftest.
$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20551 $ac_includes_default
20555 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
20562 rm -f conftest.
$ac_objext
20563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20564 (eval $ac_compile) 2>conftest.er1
20566 grep -v '^ *+' conftest.er1
>conftest.err
20568 cat conftest.err
>&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } &&
20571 { ac_try
='test -z "$ac_c_werror_flag"
20572 || test ! -s conftest.err'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try
='test -s conftest.$ac_objext'
20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 ac_lo
=$ac_mid; break
20586 echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.
$ac_ext >&5
20589 ac_hi
=`expr '(' $ac_mid ')' - 1`
20590 if test $ac_mid -le $ac_hi; then
20594 ac_mid
=`expr 2 '*' $ac_mid`
20596 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20599 echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.
$ac_ext >&5
20604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20607 # Binary search between lo and hi bounds.
20608 while test "x$ac_lo" != "x$ac_hi"; do
20609 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20610 cat >conftest.
$ac_ext <<_ACEOF
20613 cat confdefs.h
>>conftest.
$ac_ext
20614 cat >>conftest.
$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20616 $ac_includes_default
20620 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
20627 rm -f conftest.
$ac_objext
20628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20629 (eval $ac_compile) 2>conftest.er1
20631 grep -v '^ *+' conftest.er1
>conftest.err
20633 cat conftest.err
>&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
20636 { ac_try
='test -z "$ac_c_werror_flag"
20637 || test ! -s conftest.err'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try
='test -s conftest.$ac_objext'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.
$ac_ext >&5
20654 ac_lo
=`expr '(' $ac_mid ')' + 1`
20656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20659 ?
*) ac_cv_sizeof_double
=$ac_lo;;
20660 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20661 See \`config.log' for more details." >&5
20662 echo "$as_me: error: cannot compute sizeof (double), 77
20663 See \`config.log' for more details." >&2;}
20664 { (exit 1); exit 1; }; } ;;
20667 if test "$cross_compiling" = yes; then
20668 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20669 See \`config.log' for more details." >&5
20670 echo "$as_me: error: cannot run test program while cross compiling
20671 See \`config.log' for more details." >&2;}
20672 { (exit 1); exit 1; }; }
20674 cat >conftest.
$ac_ext <<_ACEOF
20677 cat confdefs.h
>>conftest.
$ac_ext
20678 cat >>conftest.
$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680 $ac_includes_default
20681 long longval () { return (long) (sizeof (double)); }
20682 unsigned long ulongval () { return (long) (sizeof (double)); }
20684 #include <stdlib.h>
20689 FILE *f = fopen ("conftest.val", "w");
20692 if (((long) (sizeof (double))) < 0)
20694 long i = longval ();
20695 if (i != ((long) (sizeof (double))))
20697 fprintf (f, "%ld\n", i);
20701 unsigned long i = ulongval ();
20702 if (i != ((long) (sizeof (double))))
20704 fprintf (f, "%lu\n", i);
20706 exit (ferror (f) || fclose (f) != 0);
20712 rm -f conftest
$ac_exeext
20713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20714 (eval $ac_link) 2>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 (eval $ac_try) 2>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20723 ac_cv_sizeof_double
=`cat conftest.val`
20725 echo "$as_me: program exited with status $ac_status" >&5
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.
$ac_ext >&5
20729 ( exit $ac_status )
20730 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20731 See \`config.log' for more details." >&5
20732 echo "$as_me: error: cannot compute sizeof (double), 77
20733 See \`config.log' for more details." >&2;}
20734 { (exit 1); exit 1; }; }
20736 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20741 ac_cv_sizeof_double
=0
20744 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
20745 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
20746 cat >>confdefs.h
<<_ACEOF
20747 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
20751 echo "$as_me:$LINENO: checking for long long" >&5
20752 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20753 if test "${ac_cv_type_long_long+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20756 cat >conftest.
$ac_ext <<_ACEOF
20759 cat confdefs.h
>>conftest.
$ac_ext
20760 cat >>conftest.
$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762 $ac_includes_default
20766 if ((long long *) 0)
20768 if (sizeof (long long))
20774 rm -f conftest.
$ac_objext
20775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20776 (eval $ac_compile) 2>conftest.er1
20778 grep -v '^ *+' conftest.er1
>conftest.err
20780 cat conftest.err
>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } &&
20783 { ac_try
='test -z "$ac_c_werror_flag"
20784 || test ! -s conftest.err'
20785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20786 (eval $ac_try) 2>&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); }; } &&
20790 { ac_try
='test -s conftest.$ac_objext'
20791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792 (eval $ac_try) 2>&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; }; then
20796 ac_cv_type_long_long
=yes
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.
$ac_ext >&5
20801 ac_cv_type_long_long
=no
20803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20805 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20806 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20808 echo "$as_me:$LINENO: checking size of long long" >&5
20809 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20810 if test "${ac_cv_sizeof_long_long+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 if test "$ac_cv_type_long_long" = yes; then
20814 # The cast to unsigned long works around a bug in the HP C Compiler
20815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20817 # This bug is HP SR number 8606223364.
20818 if test "$cross_compiling" = yes; then
20819 # Depending upon the size, compute the lo and hi bounds.
20820 cat >conftest.
$ac_ext <<_ACEOF
20823 cat confdefs.h
>>conftest.
$ac_ext
20824 cat >>conftest.
$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20826 $ac_includes_default
20830 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20837 rm -f conftest.
$ac_objext
20838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20839 (eval $ac_compile) 2>conftest.er1
20841 grep -v '^ *+' conftest.er1
>conftest.err
20843 cat conftest.err
>&5
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); } &&
20846 { ac_try
='test -z "$ac_c_werror_flag"
20847 || test ! -s conftest.err'
20848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849 (eval $ac_try) 2>&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; } &&
20853 { ac_try
='test -s conftest.$ac_objext'
20854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855 (eval $ac_try) 2>&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; }; then
20861 cat >conftest.
$ac_ext <<_ACEOF
20864 cat confdefs.h
>>conftest.
$ac_ext
20865 cat >>conftest.
$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 $ac_includes_default
20871 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20878 rm -f conftest.
$ac_objext
20879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20880 (eval $ac_compile) 2>conftest.er1
20882 grep -v '^ *+' conftest.er1
>conftest.err
20884 cat conftest.err
>&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
20887 { ac_try
='test -z "$ac_c_werror_flag"
20888 || test ! -s conftest.err'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try
='test -s conftest.$ac_objext'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 ac_hi
=$ac_mid; break
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.
$ac_ext >&5
20905 ac_lo
=`expr $ac_mid + 1`
20906 if test $ac_lo -le $ac_mid; then
20910 ac_mid
=`expr 2 '*' $ac_mid + 1`
20912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.
$ac_ext >&5
20918 cat >conftest.
$ac_ext <<_ACEOF
20921 cat confdefs.h
>>conftest.
$ac_ext
20922 cat >>conftest.
$ac_ext <<_ACEOF
20923 /* end confdefs.h. */
20924 $ac_includes_default
20928 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20935 rm -f conftest.
$ac_objext
20936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20937 (eval $ac_compile) 2>conftest.er1
20939 grep -v '^ *+' conftest.er1
>conftest.err
20941 cat conftest.err
>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } &&
20944 { ac_try
='test -z "$ac_c_werror_flag"
20945 || test ! -s conftest.err'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; } &&
20951 { ac_try
='test -s conftest.$ac_objext'
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }; then
20959 cat >conftest.
$ac_ext <<_ACEOF
20962 cat confdefs.h
>>conftest.
$ac_ext
20963 cat >>conftest.
$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 $ac_includes_default
20969 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20976 rm -f conftest.
$ac_objext
20977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20978 (eval $ac_compile) 2>conftest.er1
20980 grep -v '^ *+' conftest.er1
>conftest.err
20982 cat conftest.err
>&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } &&
20985 { ac_try
='test -z "$ac_c_werror_flag"
20986 || test ! -s conftest.err'
20987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20988 (eval $ac_try) 2>&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; } &&
20992 { ac_try
='test -s conftest.$ac_objext'
20993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20994 (eval $ac_try) 2>&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; }; then
20998 ac_lo
=$ac_mid; break
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.
$ac_ext >&5
21003 ac_hi
=`expr '(' $ac_mid ')' - 1`
21004 if test $ac_mid -le $ac_hi; then
21008 ac_mid
=`expr 2 '*' $ac_mid`
21010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21013 echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.
$ac_ext >&5
21018 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21021 # Binary search between lo and hi bounds.
21022 while test "x$ac_lo" != "x$ac_hi"; do
21023 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21024 cat >conftest.
$ac_ext <<_ACEOF
21027 cat confdefs.h
>>conftest.
$ac_ext
21028 cat >>conftest.
$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21030 $ac_includes_default
21034 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21041 rm -f conftest.
$ac_objext
21042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21043 (eval $ac_compile) 2>conftest.er1
21045 grep -v '^ *+' conftest.er1
>conftest.err
21047 cat conftest.err
>&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } &&
21050 { ac_try
='test -z "$ac_c_werror_flag"
21051 || test ! -s conftest.err'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; } &&
21057 { ac_try
='test -s conftest.$ac_objext'
21058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21059 (eval $ac_try) 2>&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; }; then
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.
$ac_ext >&5
21068 ac_lo
=`expr '(' $ac_mid ')' + 1`
21070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21073 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
21074 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21075 See \`config.log' for more details." >&5
21076 echo "$as_me: error: cannot compute sizeof (long long), 77
21077 See \`config.log' for more details." >&2;}
21078 { (exit 1); exit 1; }; } ;;
21081 if test "$cross_compiling" = yes; then
21082 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21083 See \`config.log' for more details." >&5
21084 echo "$as_me: error: cannot run test program while cross compiling
21085 See \`config.log' for more details." >&2;}
21086 { (exit 1); exit 1; }; }
21088 cat >conftest.
$ac_ext <<_ACEOF
21091 cat confdefs.h
>>conftest.
$ac_ext
21092 cat >>conftest.
$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21094 $ac_includes_default
21095 long longval () { return (long) (sizeof (long long)); }
21096 unsigned long ulongval () { return (long) (sizeof (long long)); }
21098 #include <stdlib.h>
21103 FILE *f = fopen ("conftest.val", "w");
21106 if (((long) (sizeof (long long))) < 0)
21108 long i = longval ();
21109 if (i != ((long) (sizeof (long long))))
21111 fprintf (f, "%ld\n", i);
21115 unsigned long i = ulongval ();
21116 if (i != ((long) (sizeof (long long))))
21118 fprintf (f, "%lu\n", i);
21120 exit (ferror (f) || fclose (f) != 0);
21126 rm -f conftest
$ac_exeext
21127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21128 (eval $ac_link) 2>&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21133 (eval $ac_try) 2>&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); }; }; then
21137 ac_cv_sizeof_long_long
=`cat conftest.val`
21139 echo "$as_me: program exited with status $ac_status" >&5
21140 echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.
$ac_ext >&5
21143 ( exit $ac_status )
21144 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21145 See \`config.log' for more details." >&5
21146 echo "$as_me: error: cannot compute sizeof (long long), 77
21147 See \`config.log' for more details." >&2;}
21148 { (exit 1); exit 1; }; }
21150 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21155 ac_cv_sizeof_long_long
=0
21158 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21159 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21160 cat >>confdefs.h
<<_ACEOF
21161 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21166 echo "$as_me:$LINENO: checking for u_int" >&5
21167 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
21168 if test "${ac_cv_type_u_int+set}" = set; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 cat >conftest.
$ac_ext <<_ACEOF
21174 cat confdefs.h
>>conftest.
$ac_ext
21175 cat >>conftest.
$ac_ext <<_ACEOF
21176 /* end confdefs.h. */
21177 $ac_includes_default
21183 if (sizeof (u_int))
21189 rm -f conftest.
$ac_objext
21190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21191 (eval $ac_compile) 2>conftest.er1
21193 grep -v '^ *+' conftest.er1
>conftest.err
21195 cat conftest.err
>&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
21198 { ac_try
='test -z "$ac_c_werror_flag"
21199 || test ! -s conftest.err'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try
='test -s conftest.$ac_objext'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
21211 ac_cv_type_u_int
=yes
21213 echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.
$ac_ext >&5
21216 ac_cv_type_u_int
=no
21218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21220 echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
21221 echo "${ECHO_T}$ac_cv_type_u_int" >&6
21222 if test $ac_cv_type_u_int = yes; then
21226 cat >>confdefs.h
<<_ACEOF
21227 #define u_int unsigned int
21232 echo "$as_me:$LINENO: checking for u_long" >&5
21233 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
21234 if test "${ac_cv_type_u_long+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
21249 if (sizeof (u_long))
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_u_long
=yes
21279 echo "$as_me: failed program was:" >&5
21280 sed 's/^/| /' conftest.
$ac_ext >&5
21282 ac_cv_type_u_long
=no
21284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21286 echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
21287 echo "${ECHO_T}$ac_cv_type_u_long" >&6
21288 if test $ac_cv_type_u_long = yes; then
21292 cat >>confdefs.h
<<_ACEOF
21293 #define u_long unsigned long
21300 if test "$ac_cv_sizeof_short" = 2; then
21301 echo "$as_me:$LINENO: checking for bits16_t" >&5
21302 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
21303 if test "${ac_cv_type_bits16_t+set}" = set; then
21304 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 cat >conftest.
$ac_ext <<_ACEOF
21309 cat confdefs.h
>>conftest.
$ac_ext
21310 cat >>conftest.
$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21312 $ac_includes_default
21316 if ((bits16_t *) 0)
21318 if (sizeof (bits16_t))
21324 rm -f conftest.
$ac_objext
21325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21326 (eval $ac_compile) 2>conftest.er1
21328 grep -v '^ *+' conftest.er1
>conftest.err
21330 cat conftest.err
>&5
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); } &&
21333 { ac_try
='test -z "$ac_c_werror_flag"
21334 || test ! -s conftest.err'
21335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336 (eval $ac_try) 2>&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; } &&
21340 { ac_try
='test -s conftest.$ac_objext'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
21346 ac_cv_type_bits16_t
=yes
21348 echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.
$ac_ext >&5
21351 ac_cv_type_bits16_t
=no
21353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21355 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
21356 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
21357 if test $ac_cv_type_bits16_t = yes; then
21361 cat >>confdefs.h
<<_ACEOF
21362 #define bits16_t short
21367 elif test "$ac_cv_sizeof_char" = 2; then
21368 echo "$as_me:$LINENO: checking for bits16_t" >&5
21369 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
21370 if test "${ac_cv_type_bits16_t+set}" = set; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 cat >conftest.
$ac_ext <<_ACEOF
21376 cat confdefs.h
>>conftest.
$ac_ext
21377 cat >>conftest.
$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21383 if ((bits16_t *) 0)
21385 if (sizeof (bits16_t))
21391 rm -f conftest.
$ac_objext
21392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21393 (eval $ac_compile) 2>conftest.er1
21395 grep -v '^ *+' conftest.er1
>conftest.err
21397 cat conftest.err
>&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } &&
21400 { ac_try
='test -z "$ac_c_werror_flag"
21401 || test ! -s conftest.err'
21402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21403 (eval $ac_try) 2>&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); }; } &&
21407 { ac_try
='test -s conftest.$ac_objext'
21408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409 (eval $ac_try) 2>&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; }; then
21413 ac_cv_type_bits16_t
=yes
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.
$ac_ext >&5
21418 ac_cv_type_bits16_t
=no
21420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21422 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
21423 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
21424 if test $ac_cv_type_bits16_t = yes; then
21428 cat >>confdefs.h
<<_ACEOF
21429 #define bits16_t char
21435 echo "$as_me:$LINENO: checking for bits16_t" >&5
21436 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
21437 if test "${ac_cv_type_bits16_t+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21440 cat >conftest.
$ac_ext <<_ACEOF
21443 cat confdefs.h
>>conftest.
$ac_ext
21444 cat >>conftest.
$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446 $ac_includes_default
21450 if ((bits16_t *) 0)
21452 if (sizeof (bits16_t))
21458 rm -f conftest.
$ac_objext
21459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21460 (eval $ac_compile) 2>conftest.er1
21462 grep -v '^ *+' conftest.er1
>conftest.err
21464 cat conftest.err
>&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } &&
21467 { ac_try
='test -z "$ac_c_werror_flag"
21468 || test ! -s conftest.err'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; } &&
21474 { ac_try
='test -s conftest.$ac_objext'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; }; then
21480 ac_cv_type_bits16_t
=yes
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.
$ac_ext >&5
21485 ac_cv_type_bits16_t
=no
21487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21489 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
21490 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
21491 if test $ac_cv_type_bits16_t = yes; then
21495 cat >>confdefs.h
<<_ACEOF
21496 #define bits16_t short
21504 if test "$ac_cv_sizeof_short" = 2; then
21505 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
21506 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21507 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 cat >conftest.
$ac_ext <<_ACEOF
21513 cat confdefs.h
>>conftest.
$ac_ext
21514 cat >>conftest.
$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21516 $ac_includes_default
21520 if ((u_bits16_t *) 0)
21522 if (sizeof (u_bits16_t))
21528 rm -f conftest.
$ac_objext
21529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21530 (eval $ac_compile) 2>conftest.er1
21532 grep -v '^ *+' conftest.er1
>conftest.err
21534 cat conftest.err
>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } &&
21537 { ac_try
='test -z "$ac_c_werror_flag"
21538 || test ! -s conftest.err'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; } &&
21544 { ac_try
='test -s conftest.$ac_objext'
21545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546 (eval $ac_try) 2>&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; }; then
21550 ac_cv_type_u_bits16_t
=yes
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.
$ac_ext >&5
21555 ac_cv_type_u_bits16_t
=no
21557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21559 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21560 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21561 if test $ac_cv_type_u_bits16_t = yes; then
21565 cat >>confdefs.h
<<_ACEOF
21566 #define u_bits16_t unsigned short
21571 elif test "$ac_cv_sizeof_char" = 2; then
21572 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
21573 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21574 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 cat >conftest.
$ac_ext <<_ACEOF
21580 cat confdefs.h
>>conftest.
$ac_ext
21581 cat >>conftest.
$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 $ac_includes_default
21587 if ((u_bits16_t *) 0)
21589 if (sizeof (u_bits16_t))
21595 rm -f conftest.
$ac_objext
21596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21597 (eval $ac_compile) 2>conftest.er1
21599 grep -v '^ *+' conftest.er1
>conftest.err
21601 cat conftest.err
>&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } &&
21604 { ac_try
='test -z "$ac_c_werror_flag"
21605 || test ! -s conftest.err'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; } &&
21611 { ac_try
='test -s conftest.$ac_objext'
21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613 (eval $ac_try) 2>&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; }; then
21617 ac_cv_type_u_bits16_t
=yes
21619 echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.
$ac_ext >&5
21622 ac_cv_type_u_bits16_t
=no
21624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21626 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21627 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21628 if test $ac_cv_type_u_bits16_t = yes; then
21632 cat >>confdefs.h
<<_ACEOF
21633 #define u_bits16_t unsigned char
21639 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
21640 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21641 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21644 cat >conftest.
$ac_ext <<_ACEOF
21647 cat confdefs.h
>>conftest.
$ac_ext
21648 cat >>conftest.
$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21650 $ac_includes_default
21654 if ((u_bits16_t *) 0)
21656 if (sizeof (u_bits16_t))
21662 rm -f conftest.
$ac_objext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21664 (eval $ac_compile) 2>conftest.er1
21666 grep -v '^ *+' conftest.er1
>conftest.err
21668 cat conftest.err
>&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } &&
21671 { ac_try
='test -z "$ac_c_werror_flag"
21672 || test ! -s conftest.err'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try
='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_cv_type_u_bits16_t
=yes
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.
$ac_ext >&5
21689 ac_cv_type_u_bits16_t
=no
21691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21693 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21694 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21695 if test $ac_cv_type_u_bits16_t = yes; then
21699 cat >>confdefs.h
<<_ACEOF
21700 #define u_bits16_t unsigned short
21708 if test "$ac_cv_sizeof_int" = 4; then
21709 echo "$as_me:$LINENO: checking for bits32_t" >&5
21710 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21711 if test "${ac_cv_type_bits32_t+set}" = set; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21714 cat >conftest.
$ac_ext <<_ACEOF
21717 cat confdefs.h
>>conftest.
$ac_ext
21718 cat >>conftest.
$ac_ext <<_ACEOF
21719 /* end confdefs.h. */
21720 $ac_includes_default
21724 if ((bits32_t *) 0)
21726 if (sizeof (bits32_t))
21732 rm -f conftest.
$ac_objext
21733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21734 (eval $ac_compile) 2>conftest.er1
21736 grep -v '^ *+' conftest.er1
>conftest.err
21738 cat conftest.err
>&5
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); } &&
21741 { ac_try
='test -z "$ac_c_werror_flag"
21742 || test ! -s conftest.err'
21743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744 (eval $ac_try) 2>&5
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; } &&
21748 { ac_try
='test -s conftest.$ac_objext'
21749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750 (eval $ac_try) 2>&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); }; }; then
21754 ac_cv_type_bits32_t
=yes
21756 echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.
$ac_ext >&5
21759 ac_cv_type_bits32_t
=no
21761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21763 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21764 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21765 if test $ac_cv_type_bits32_t = yes; then
21769 cat >>confdefs.h
<<_ACEOF
21770 #define bits32_t int
21775 elif test "$ac_cv_sizeof_long" = 4; then
21776 echo "$as_me:$LINENO: checking for bits32_t" >&5
21777 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21778 if test "${ac_cv_type_bits32_t+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 cat >conftest.
$ac_ext <<_ACEOF
21784 cat confdefs.h
>>conftest.
$ac_ext
21785 cat >>conftest.
$ac_ext <<_ACEOF
21786 /* end confdefs.h. */
21787 $ac_includes_default
21791 if ((bits32_t *) 0)
21793 if (sizeof (bits32_t))
21799 rm -f conftest.
$ac_objext
21800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21801 (eval $ac_compile) 2>conftest.er1
21803 grep -v '^ *+' conftest.er1
>conftest.err
21805 cat conftest.err
>&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } &&
21808 { ac_try
='test -z "$ac_c_werror_flag"
21809 || test ! -s conftest.err'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; } &&
21815 { ac_try
='test -s conftest.$ac_objext'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; }; then
21821 ac_cv_type_bits32_t
=yes
21823 echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.
$ac_ext >&5
21826 ac_cv_type_bits32_t
=no
21828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21830 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21831 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21832 if test $ac_cv_type_bits32_t = yes; then
21836 cat >>confdefs.h
<<_ACEOF
21837 #define bits32_t long
21843 echo "$as_me:$LINENO: checking for bits32_t" >&5
21844 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21845 if test "${ac_cv_type_bits32_t+set}" = set; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
21848 cat >conftest.
$ac_ext <<_ACEOF
21851 cat confdefs.h
>>conftest.
$ac_ext
21852 cat >>conftest.
$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21854 $ac_includes_default
21858 if ((bits32_t *) 0)
21860 if (sizeof (bits32_t))
21866 rm -f conftest.
$ac_objext
21867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21868 (eval $ac_compile) 2>conftest.er1
21870 grep -v '^ *+' conftest.er1
>conftest.err
21872 cat conftest.err
>&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } &&
21875 { ac_try
='test -z "$ac_c_werror_flag"
21876 || test ! -s conftest.err'
21877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878 (eval $ac_try) 2>&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; } &&
21882 { ac_try
='test -s conftest.$ac_objext'
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; }; then
21888 ac_cv_type_bits32_t
=yes
21890 echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.
$ac_ext >&5
21893 ac_cv_type_bits32_t
=no
21895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21897 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21898 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21899 if test $ac_cv_type_bits32_t = yes; then
21903 cat >>confdefs.h
<<_ACEOF
21904 #define bits32_t int
21912 if test "$ac_cv_sizeof_int" = 4; then
21913 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21914 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21915 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21918 cat >conftest.
$ac_ext <<_ACEOF
21921 cat confdefs.h
>>conftest.
$ac_ext
21922 cat >>conftest.
$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21924 $ac_includes_default
21928 if ((u_bits32_t *) 0)
21930 if (sizeof (u_bits32_t))
21936 rm -f conftest.
$ac_objext
21937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21938 (eval $ac_compile) 2>conftest.er1
21940 grep -v '^ *+' conftest.er1
>conftest.err
21942 cat conftest.err
>&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } &&
21945 { ac_try
='test -z "$ac_c_werror_flag"
21946 || test ! -s conftest.err'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; } &&
21952 { ac_try
='test -s conftest.$ac_objext'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; }; then
21958 ac_cv_type_u_bits32_t
=yes
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.
$ac_ext >&5
21963 ac_cv_type_u_bits32_t
=no
21965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21967 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21968 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21969 if test $ac_cv_type_u_bits32_t = yes; then
21973 cat >>confdefs.h
<<_ACEOF
21974 #define u_bits32_t unsigned int
21979 elif test "$ac_cv_sizeof_long" = 4; then
21980 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21981 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21982 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21983 echo $ECHO_N "(cached) $ECHO_C" >&6
21985 cat >conftest.
$ac_ext <<_ACEOF
21988 cat confdefs.h
>>conftest.
$ac_ext
21989 cat >>conftest.
$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21991 $ac_includes_default
21995 if ((u_bits32_t *) 0)
21997 if (sizeof (u_bits32_t))
22003 rm -f conftest.
$ac_objext
22004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22005 (eval $ac_compile) 2>conftest.er1
22007 grep -v '^ *+' conftest.er1
>conftest.err
22009 cat conftest.err
>&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } &&
22012 { ac_try
='test -z "$ac_c_werror_flag"
22013 || test ! -s conftest.err'
22014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22015 (eval $ac_try) 2>&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); }; } &&
22019 { ac_try
='test -s conftest.$ac_objext'
22020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021 (eval $ac_try) 2>&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; }; then
22025 ac_cv_type_u_bits32_t
=yes
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.
$ac_ext >&5
22030 ac_cv_type_u_bits32_t
=no
22032 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22034 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
22035 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
22036 if test $ac_cv_type_u_bits32_t = yes; then
22040 cat >>confdefs.h
<<_ACEOF
22041 #define u_bits32_t unsigned long
22047 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
22048 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
22049 if test "${ac_cv_type_u_bits32_t+set}" = set; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22052 cat >conftest.
$ac_ext <<_ACEOF
22055 cat confdefs.h
>>conftest.
$ac_ext
22056 cat >>conftest.
$ac_ext <<_ACEOF
22057 /* end confdefs.h. */
22058 $ac_includes_default
22062 if ((u_bits32_t *) 0)
22064 if (sizeof (u_bits32_t))
22070 rm -f conftest.
$ac_objext
22071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22072 (eval $ac_compile) 2>conftest.er1
22074 grep -v '^ *+' conftest.er1
>conftest.err
22076 cat conftest.err
>&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } &&
22079 { ac_try
='test -z "$ac_c_werror_flag"
22080 || test ! -s conftest.err'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; } &&
22086 { ac_try
='test -s conftest.$ac_objext'
22087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088 (eval $ac_try) 2>&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); }; }; then
22092 ac_cv_type_u_bits32_t
=yes
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.
$ac_ext >&5
22097 ac_cv_type_u_bits32_t
=no
22099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22101 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
22102 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
22103 if test $ac_cv_type_u_bits32_t = yes; then
22107 cat >>confdefs.h
<<_ACEOF
22108 #define u_bits32_t unsigned int
22116 if test "$ac_cv_sizeof_char_p" = 8; then
22117 echo "$as_me:$LINENO: checking for bits64_t" >&5
22118 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
22119 if test "${ac_cv_type_bits64_t+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22122 cat >conftest.
$ac_ext <<_ACEOF
22125 cat confdefs.h
>>conftest.
$ac_ext
22126 cat >>conftest.
$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128 $ac_includes_default
22132 if ((bits64_t *) 0)
22134 if (sizeof (bits64_t))
22140 rm -f conftest.
$ac_objext
22141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22142 (eval $ac_compile) 2>conftest.er1
22144 grep -v '^ *+' conftest.er1
>conftest.err
22146 cat conftest.err
>&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } &&
22149 { ac_try
='test -z "$ac_c_werror_flag"
22150 || test ! -s conftest.err'
22151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152 (eval $ac_try) 2>&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; } &&
22156 { ac_try
='test -s conftest.$ac_objext'
22157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158 (eval $ac_try) 2>&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
22162 ac_cv_type_bits64_t
=yes
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.
$ac_ext >&5
22167 ac_cv_type_bits64_t
=no
22169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22171 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
22172 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
22173 if test $ac_cv_type_bits64_t = yes; then
22177 cat >>confdefs.h
<<_ACEOF
22178 #define bits64_t char *
22183 elif test "$ac_cv_sizeof_double" = 8; then
22184 echo "$as_me:$LINENO: checking for bits64_t" >&5
22185 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
22186 if test "${ac_cv_type_bits64_t+set}" = set; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
22189 cat >conftest.
$ac_ext <<_ACEOF
22192 cat confdefs.h
>>conftest.
$ac_ext
22193 cat >>conftest.
$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 $ac_includes_default
22199 if ((bits64_t *) 0)
22201 if (sizeof (bits64_t))
22207 rm -f conftest.
$ac_objext
22208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22209 (eval $ac_compile) 2>conftest.er1
22211 grep -v '^ *+' conftest.er1
>conftest.err
22213 cat conftest.err
>&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); } &&
22216 { ac_try
='test -z "$ac_c_werror_flag"
22217 || test ! -s conftest.err'
22218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; } &&
22223 { ac_try
='test -s conftest.$ac_objext'
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; }; then
22229 ac_cv_type_bits64_t
=yes
22231 echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.
$ac_ext >&5
22234 ac_cv_type_bits64_t
=no
22236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22238 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
22239 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
22240 if test $ac_cv_type_bits64_t = yes; then
22244 cat >>confdefs.h
<<_ACEOF
22245 #define bits64_t double
22250 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
22251 echo "$as_me:$LINENO: checking for bits64_t" >&5
22252 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
22253 if test "${ac_cv_type_bits64_t+set}" = set; then
22254 echo $ECHO_N "(cached) $ECHO_C" >&6
22256 cat >conftest.
$ac_ext <<_ACEOF
22259 cat confdefs.h
>>conftest.
$ac_ext
22260 cat >>conftest.
$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22262 $ac_includes_default
22266 if ((bits64_t *) 0)
22268 if (sizeof (bits64_t))
22274 rm -f conftest.
$ac_objext
22275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22276 (eval $ac_compile) 2>conftest.er1
22278 grep -v '^ *+' conftest.er1
>conftest.err
22280 cat conftest.err
>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } &&
22283 { ac_try
='test -z "$ac_c_werror_flag"
22284 || test ! -s conftest.err'
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; } &&
22290 { ac_try
='test -s conftest.$ac_objext'
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; }; then
22296 ac_cv_type_bits64_t
=yes
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.
$ac_ext >&5
22301 ac_cv_type_bits64_t
=no
22303 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22305 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
22306 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
22307 if test $ac_cv_type_bits64_t = yes; then
22311 cat >>confdefs.h
<<_ACEOF
22312 #define bits64_t long long
22317 elif test "$ac_cv_sizeof_long" = 8; then
22318 echo "$as_me:$LINENO: checking for bits64_t" >&5
22319 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
22320 if test "${ac_cv_type_bits64_t+set}" = set; then
22321 echo $ECHO_N "(cached) $ECHO_C" >&6
22323 cat >conftest.
$ac_ext <<_ACEOF
22326 cat confdefs.h
>>conftest.
$ac_ext
22327 cat >>conftest.
$ac_ext <<_ACEOF
22328 /* end confdefs.h. */
22329 $ac_includes_default
22333 if ((bits64_t *) 0)
22335 if (sizeof (bits64_t))
22341 rm -f conftest.
$ac_objext
22342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22343 (eval $ac_compile) 2>conftest.er1
22345 grep -v '^ *+' conftest.er1
>conftest.err
22347 cat conftest.err
>&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } &&
22350 { ac_try
='test -z "$ac_c_werror_flag"
22351 || test ! -s conftest.err'
22352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353 (eval $ac_try) 2>&5
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; } &&
22357 { ac_try
='test -s conftest.$ac_objext'
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; }; then
22363 ac_cv_type_bits64_t
=yes
22365 echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.
$ac_ext >&5
22368 ac_cv_type_bits64_t
=no
22370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22372 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
22373 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
22374 if test $ac_cv_type_bits64_t = yes; then
22378 cat >>confdefs.h
<<_ACEOF
22379 #define bits64_t long
22385 echo "$as_me:$LINENO: checking for bits64_t" >&5
22386 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
22387 if test "${ac_cv_type_bits64_t+set}" = set; then
22388 echo $ECHO_N "(cached) $ECHO_C" >&6
22390 cat >conftest.
$ac_ext <<_ACEOF
22393 cat confdefs.h
>>conftest.
$ac_ext
22394 cat >>conftest.
$ac_ext <<_ACEOF
22395 /* end confdefs.h. */
22396 $ac_includes_default
22400 if ((bits64_t *) 0)
22402 if (sizeof (bits64_t))
22408 rm -f conftest.
$ac_objext
22409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22410 (eval $ac_compile) 2>conftest.er1
22412 grep -v '^ *+' conftest.er1
>conftest.err
22414 cat conftest.err
>&5
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); } &&
22417 { ac_try
='test -z "$ac_c_werror_flag"
22418 || test ! -s conftest.err'
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; } &&
22424 { ac_try
='test -s conftest.$ac_objext'
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; }; then
22430 ac_cv_type_bits64_t
=yes
22432 echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.
$ac_ext >&5
22435 ac_cv_type_bits64_t
=no
22437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22439 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
22440 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
22441 if test $ac_cv_type_bits64_t = yes; then
22445 cat >>confdefs.h
<<_ACEOF
22446 #define bits64_t double
22455 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
22456 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22457 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22458 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 cat >conftest.
$ac_ext <<_ACEOF
22464 cat confdefs.h
>>conftest.
$ac_ext
22465 cat >>conftest.
$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 $ac_includes_default
22471 if ((ptrdiff_t *) 0)
22473 if (sizeof (ptrdiff_t))
22479 rm -f conftest.
$ac_objext
22480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22481 (eval $ac_compile) 2>conftest.er1
22483 grep -v '^ *+' conftest.er1
>conftest.err
22485 cat conftest.err
>&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } &&
22488 { ac_try
='test -z "$ac_c_werror_flag"
22489 || test ! -s conftest.err'
22490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22491 (eval $ac_try) 2>&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); }; } &&
22495 { ac_try
='test -s conftest.$ac_objext'
22496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497 (eval $ac_try) 2>&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }; }; then
22501 ac_cv_type_ptrdiff_t
=yes
22503 echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.
$ac_ext >&5
22506 ac_cv_type_ptrdiff_t
=no
22508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22510 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22511 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22512 if test $ac_cv_type_ptrdiff_t = yes; then
22516 cat >>confdefs.h
<<_ACEOF
22517 #define ptrdiff_t int
22522 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
22523 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22524 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22525 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22526 echo $ECHO_N "(cached) $ECHO_C" >&6
22528 cat >conftest.
$ac_ext <<_ACEOF
22531 cat confdefs.h
>>conftest.
$ac_ext
22532 cat >>conftest.
$ac_ext <<_ACEOF
22533 /* end confdefs.h. */
22534 $ac_includes_default
22538 if ((ptrdiff_t *) 0)
22540 if (sizeof (ptrdiff_t))
22546 rm -f conftest.
$ac_objext
22547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22548 (eval $ac_compile) 2>conftest.er1
22550 grep -v '^ *+' conftest.er1
>conftest.err
22552 cat conftest.err
>&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } &&
22555 { ac_try
='test -z "$ac_c_werror_flag"
22556 || test ! -s conftest.err'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; } &&
22562 { ac_try
='test -s conftest.$ac_objext'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; }; then
22568 ac_cv_type_ptrdiff_t
=yes
22570 echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.
$ac_ext >&5
22573 ac_cv_type_ptrdiff_t
=no
22575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22577 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22578 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22579 if test $ac_cv_type_ptrdiff_t = yes; then
22583 cat >>confdefs.h
<<_ACEOF
22584 #define ptrdiff_t long
22589 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
22590 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22591 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22592 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
22595 cat >conftest.
$ac_ext <<_ACEOF
22598 cat confdefs.h
>>conftest.
$ac_ext
22599 cat >>conftest.
$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22601 $ac_includes_default
22605 if ((ptrdiff_t *) 0)
22607 if (sizeof (ptrdiff_t))
22613 rm -f conftest.
$ac_objext
22614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22615 (eval $ac_compile) 2>conftest.er1
22617 grep -v '^ *+' conftest.er1
>conftest.err
22619 cat conftest.err
>&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } &&
22622 { ac_try
='test -z "$ac_c_werror_flag"
22623 || test ! -s conftest.err'
22624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625 (eval $ac_try) 2>&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; } &&
22629 { ac_try
='test -s conftest.$ac_objext'
22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; }; then
22635 ac_cv_type_ptrdiff_t
=yes
22637 echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.
$ac_ext >&5
22640 ac_cv_type_ptrdiff_t
=no
22642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22644 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22645 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22646 if test $ac_cv_type_ptrdiff_t = yes; then
22650 cat >>confdefs.h
<<_ACEOF
22651 #define ptrdiff_t long long
22657 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22658 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22659 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22660 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 $ac_includes_default
22672 if ((ptrdiff_t *) 0)
22674 if (sizeof (ptrdiff_t))
22680 rm -f conftest.
$ac_objext
22681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22682 (eval $ac_compile) 2>conftest.er1
22684 grep -v '^ *+' conftest.er1
>conftest.err
22686 cat conftest.err
>&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } &&
22689 { ac_try
='test -z "$ac_c_werror_flag"
22690 || test ! -s conftest.err'
22691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22692 (eval $ac_try) 2>&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); }; } &&
22696 { ac_try
='test -s conftest.$ac_objext'
22697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698 (eval $ac_try) 2>&5
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; }; then
22702 ac_cv_type_ptrdiff_t
=yes
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.
$ac_ext >&5
22707 ac_cv_type_ptrdiff_t
=no
22709 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22711 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22712 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22713 if test $ac_cv_type_ptrdiff_t = yes; then
22717 cat >>confdefs.h
<<_ACEOF
22718 #define ptrdiff_t int
22726 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22727 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
22728 if test "${ac_cv_header_stat_broken+set}" = set; then
22729 echo $ECHO_N "(cached) $ECHO_C" >&6
22731 cat >conftest.
$ac_ext <<_ACEOF
22734 cat confdefs.h
>>conftest.
$ac_ext
22735 cat >>conftest.
$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22737 #include <sys/types.h>
22738 #include <sys/stat.h>
22740 #if defined(S_ISBLK) && defined(S_IFDIR)
22741 # if S_ISBLK (S_IFDIR)
22746 #if defined(S_ISBLK) && defined(S_IFCHR)
22747 # if S_ISBLK (S_IFCHR)
22752 #if defined(S_ISLNK) && defined(S_IFREG)
22753 # if S_ISLNK (S_IFREG)
22758 #if defined(S_ISSOCK) && defined(S_IFREG)
22759 # if S_ISSOCK (S_IFREG)
22765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22766 $EGREP "You lose" >/dev
/null
2>&1; then
22767 ac_cv_header_stat_broken
=yes
22769 ac_cv_header_stat_broken
=no
22774 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22775 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
22776 if test $ac_cv_header_stat_broken = yes; then
22778 cat >>confdefs.h
<<\_ACEOF
22779 #define STAT_MACROS_BROKEN 1
22785 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
22786 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
22787 if test "${ac_cv_sys_interpreter+set}" = set; then
22788 echo $ECHO_N "(cached) $ECHO_C" >&6
22794 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
)
22795 if test $?
-ne 69; then
22796 ac_cv_sys_interpreter
=yes
22798 ac_cv_sys_interpreter
=no
22802 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
22803 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
22804 interpval
=$ac_cv_sys_interpreter
22806 if test $ac_cv_sys_interpreter = yes; then
22807 cat >>confdefs.h
<<\_ACEOF
22808 #define HAVE_HASH_BANG_EXEC 1
22813 if test "$ac_cv_func_lstat" = "no"; then
22814 echo "$as_me:$LINENO: checking for lstat" >&5
22815 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
22816 if test "${bash_cv_func_lstat+set}" = set; then
22817 echo $ECHO_N "(cached) $ECHO_C" >&6
22819 cat >conftest.
$ac_ext <<_ACEOF
22822 cat confdefs.h
>>conftest.
$ac_ext
22823 cat >>conftest.
$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22826 #include <sys/types.h>
22827 #include <sys/stat.h>
22832 lstat(".",(struct stat *)0);
22837 rm -f conftest.
$ac_objext conftest
$ac_exeext
22838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22839 (eval $ac_link) 2>conftest.er1
22841 grep -v '^ *+' conftest.er1
>conftest.err
22843 cat conftest.err
>&5
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } &&
22846 { ac_try
='test -z "$ac_c_werror_flag"
22847 || test ! -s conftest.err'
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; } &&
22853 { ac_try
='test -s conftest$ac_exeext'
22854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855 (eval $ac_try) 2>&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }; then
22859 bash_cv_func_lstat
=yes
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.
$ac_ext >&5
22864 bash_cv_func_lstat
=no
22866 rm -f conftest.err conftest.
$ac_objext \
22867 conftest
$ac_exeext conftest.
$ac_ext
22869 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
22870 echo "${ECHO_T}$bash_cv_func_lstat" >&6
22871 if test $bash_cv_func_lstat = yes; then
22872 cat >>confdefs.h
<<\_ACEOF
22873 #define HAVE_LSTAT 1
22881 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
22882 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
22883 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
22884 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 if test "$cross_compiling" = yes; then
22887 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
22888 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
22889 bash_cv_func_ctype_nonascii
=no
22892 cat >conftest.
$ac_ext <<_ACEOF
22895 cat confdefs.h
>>conftest.
$ac_ext
22896 cat >>conftest.
$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22899 #ifdef HAVE_LOCALE_H
22900 #include <locale.h>
22913 #ifdef HAVE_SETLOCALE
22914 /* We take a shot here. If that locale is not known, try the
22915 system default. We try this one because '\342' (226) is
22916 known to be a printable character in that locale. */
22917 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
22918 if (deflocale == 0)
22919 deflocale = setlocale(LC_ALL, "");
22926 exit (r1 == 0 || r2 == 0);
22930 rm -f conftest
$ac_exeext
22931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22932 (eval $ac_link) 2>&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937 (eval $ac_try) 2>&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); }; }; then
22941 bash_cv_func_ctype_nonascii
=yes
22943 echo "$as_me: program exited with status $ac_status" >&5
22944 echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.
$ac_ext >&5
22947 ( exit $ac_status )
22948 bash_cv_func_ctype_nonascii
=no
22950 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22954 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
22955 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
22956 if test $bash_cv_func_ctype_nonascii = yes; then
22957 cat >>confdefs.h
<<\_ACEOF
22958 #define CTYPE_NON_ASCII 1
22963 echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
22964 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
22965 if test "${bash_cv_dup2_broken+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22968 if test "$cross_compiling" = yes; then
22969 { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
22970 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
22971 bash_cv_dup2_broken
=no
22973 cat >conftest.
$ac_ext <<_ACEOF
22976 cat confdefs.h
>>conftest.
$ac_ext
22977 cat >>conftest.
$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22980 #include <sys/types.h>
22985 fd1 = open("/dev/null", 2);
22986 if (fcntl(fd1, 2, 1) < 0)
22988 fd2 = dup2(fd1, 1);
22991 fl = fcntl(fd2, 1, 0);
22992 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
22997 rm -f conftest
$ac_exeext
22998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22999 (eval $ac_link) 2>&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; }; then
23008 bash_cv_dup2_broken
=yes
23010 echo "$as_me: program exited with status $ac_status" >&5
23011 echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.
$ac_ext >&5
23014 ( exit $ac_status )
23015 bash_cv_dup2_broken
=no
23017 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23022 echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
23023 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
23024 if test $bash_cv_dup2_broken = yes; then
23025 cat >>confdefs.h
<<\_ACEOF
23026 #define DUP2_BROKEN 1
23032 echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
23033 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
23034 if test "${bash_cv_pgrp_pipe+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
23037 if test "$cross_compiling" = yes; then
23038 { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
23039 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
23040 bash_cv_pgrp_pipe
=no
23042 cat >conftest.
$ac_ext <<_ACEOF
23045 cat confdefs.h
>>conftest.
$ac_ext
23046 cat >>conftest.
$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23049 #ifdef HAVE_UNISTD_H
23050 # include <unistd.h>
23054 # ifdef GETPGRP_VOID
23055 # define getpgID() getpgrp()
23057 # define getpgID() getpgrp(0)
23058 # define setpgid(x,y) setpgrp(x,y)
23060 int pid1, pid2, fds[2];
23064 switch (pid1 = fork()) {
23068 setpgid(0, getpid());
23071 setpgid(pid1, pid1);
23073 sleep(2); /* let first child die */
23078 switch (pid2 = fork()) {
23083 ok = getpgID() == pid1;
23084 write(fds[1], &ok, 1);
23087 setpgid(pid2, pid1);
23090 if (read(fds[0], &ok, 1) != 1)
23098 rm -f conftest
$ac_exeext
23099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23100 (eval $ac_link) 2>&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105 (eval $ac_try) 2>&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); }; }; then
23109 bash_cv_pgrp_pipe
=no
23111 echo "$as_me: program exited with status $ac_status" >&5
23112 echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.
$ac_ext >&5
23115 ( exit $ac_status )
23116 bash_cv_pgrp_pipe
=yes
23118 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23123 echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
23124 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
23125 if test $bash_cv_pgrp_pipe = yes; then
23126 cat >>confdefs.h
<<\_ACEOF
23127 #define PGRP_PIPE 1
23133 echo "$as_me:$LINENO: checking for type of signal functions" >&5
23134 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
23135 if test "${bash_cv_signal_vintage+set}" = set; then
23136 echo $ECHO_N "(cached) $ECHO_C" >&6
23139 cat >conftest.
$ac_ext <<_ACEOF
23142 cat confdefs.h
>>conftest.
$ac_ext
23143 cat >>conftest.
$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23145 #include <signal.h>
23151 struct sigaction sa;
23152 sigemptyset(&ss); sigsuspend(&ss);
23153 sigaction(SIGINT, &sa, (struct sigaction *) 0);
23154 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
23160 rm -f conftest.
$ac_objext conftest
$ac_exeext
23161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23162 (eval $ac_link) 2>conftest.er1
23164 grep -v '^ *+' conftest.er1
>conftest.err
23166 cat conftest.err
>&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } &&
23169 { ac_try
='test -z "$ac_c_werror_flag"
23170 || test ! -s conftest.err'
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; } &&
23176 { ac_try
='test -s conftest$ac_exeext'
23177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; }; then
23182 bash_cv_signal_vintage
=posix
23184 echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.
$ac_ext >&5
23188 cat >conftest.
$ac_ext <<_ACEOF
23191 cat confdefs.h
>>conftest.
$ac_ext
23192 cat >>conftest.
$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 #include <signal.h>
23199 int mask = sigmask(SIGINT);
23200 sigsetmask(mask); sigblock(mask); sigpause(mask);
23206 rm -f conftest.
$ac_objext conftest
$ac_exeext
23207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23208 (eval $ac_link) 2>conftest.er1
23210 grep -v '^ *+' conftest.er1
>conftest.err
23212 cat conftest.err
>&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } &&
23215 { ac_try
='test -z "$ac_c_werror_flag"
23216 || test ! -s conftest.err'
23217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218 (eval $ac_try) 2>&5
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); }; } &&
23222 { ac_try
='test -s conftest$ac_exeext'
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; }; then
23228 bash_cv_signal_vintage
=4.2bsd
23230 echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.
$ac_ext >&5
23234 cat >conftest.
$ac_ext <<_ACEOF
23237 cat confdefs.h
>>conftest.
$ac_ext
23238 cat >>conftest.
$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23241 #include <signal.h>
23242 RETSIGTYPE foo() { }
23247 int mask = sigmask(SIGINT);
23248 sigset(SIGINT, foo); sigrelse(SIGINT);
23249 sighold(SIGINT); sigpause(SIGINT);
23255 rm -f conftest.
$ac_objext conftest
$ac_exeext
23256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23257 (eval $ac_link) 2>conftest.er1
23259 grep -v '^ *+' conftest.er1
>conftest.err
23261 cat conftest.err
>&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } &&
23264 { ac_try
='test -z "$ac_c_werror_flag"
23265 || test ! -s conftest.err'
23266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; } &&
23271 { ac_try
='test -s conftest$ac_exeext'
23272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 bash_cv_signal_vintage
=svr3
23279 echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.
$ac_ext >&5
23282 bash_cv_signal_vintage
=v7
23285 rm -f conftest.err conftest.
$ac_objext \
23286 conftest
$ac_exeext conftest.
$ac_ext
23289 rm -f conftest.err conftest.
$ac_objext \
23290 conftest
$ac_exeext conftest.
$ac_ext
23293 rm -f conftest.err conftest.
$ac_objext \
23294 conftest
$ac_exeext conftest.
$ac_ext
23298 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
23299 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
23300 if test "$bash_cv_signal_vintage" = posix
; then
23301 cat >>confdefs.h
<<\_ACEOF
23302 #define HAVE_POSIX_SIGNALS 1
23305 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
23306 cat >>confdefs.h
<<\_ACEOF
23307 #define HAVE_BSD_SIGNALS 1
23310 elif test "$bash_cv_signal_vintage" = svr3
; then
23311 cat >>confdefs.h
<<\_ACEOF
23312 #define HAVE_USG_SIGHOLD 1
23318 echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
23319 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
23320 if test "${bash_cv_sys_errlist+set}" = set; then
23321 echo $ECHO_N "(cached) $ECHO_C" >&6
23323 cat >conftest.
$ac_ext <<_ACEOF
23326 cat confdefs.h
>>conftest.
$ac_ext
23327 cat >>conftest.
$ac_ext <<_ACEOF
23328 /* end confdefs.h. */
23333 extern char *sys_errlist[];
23334 extern int sys_nerr;
23335 char *msg = sys_errlist[sys_nerr - 1];
23340 rm -f conftest.
$ac_objext conftest
$ac_exeext
23341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23342 (eval $ac_link) 2>conftest.er1
23344 grep -v '^ *+' conftest.er1
>conftest.err
23346 cat conftest.err
>&5
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); } &&
23349 { ac_try
='test -z "$ac_c_werror_flag"
23350 || test ! -s conftest.err'
23351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; } &&
23356 { ac_try
='test -s conftest$ac_exeext'
23357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23358 (eval $ac_try) 2>&5
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; }; then
23362 bash_cv_sys_errlist
=yes
23364 echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.
$ac_ext >&5
23367 bash_cv_sys_errlist
=no
23369 rm -f conftest.err conftest.
$ac_objext \
23370 conftest
$ac_exeext conftest.
$ac_ext
23372 echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
23373 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
23374 if test $bash_cv_sys_errlist = yes; then
23375 cat >>confdefs.h
<<\_ACEOF
23376 #define HAVE_SYS_ERRLIST 1
23382 echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
23383 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
23384 if test "${bash_cv_sys_siglist+set}" = set; then
23385 echo $ECHO_N "(cached) $ECHO_C" >&6
23387 if test "$cross_compiling" = yes; then
23388 { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
23389 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
23390 bash_cv_sys_siglist
=no
23392 cat >conftest.
$ac_ext <<_ACEOF
23395 cat confdefs.h
>>conftest.
$ac_ext
23396 cat >>conftest.
$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23399 #include <sys/types.h>
23400 #include <signal.h>
23401 #ifdef HAVE_UNISTD_H
23402 #include <unistd.h>
23404 #ifndef SYS_SIGLIST_DECLARED
23405 extern char *sys_siglist[];
23409 char *msg = sys_siglist[2];
23413 rm -f conftest
$ac_exeext
23414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23415 (eval $ac_link) 2>&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; }; then
23424 bash_cv_sys_siglist
=yes
23426 echo "$as_me: program exited with status $ac_status" >&5
23427 echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.
$ac_ext >&5
23430 ( exit $ac_status )
23431 bash_cv_sys_siglist
=no
23433 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23437 echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
23438 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
23439 if test $bash_cv_sys_siglist = yes; then
23440 cat >>confdefs.h
<<\_ACEOF
23441 #define HAVE_SYS_SIGLIST 1
23446 echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
23447 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
23448 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
23449 echo $ECHO_N "(cached) $ECHO_C" >&6
23451 cat >conftest.
$ac_ext <<_ACEOF
23454 cat confdefs.h
>>conftest.
$ac_ext
23455 cat >>conftest.
$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23458 #include <sys/types.h>
23459 #include <signal.h>
23460 #ifdef HAVE_UNISTD_H
23461 #include <unistd.h>
23466 char *msg = _sys_siglist[2];
23471 rm -f conftest.
$ac_objext
23472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23473 (eval $ac_compile) 2>conftest.er1
23475 grep -v '^ *+' conftest.er1
>conftest.err
23477 cat conftest.err
>&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); } &&
23480 { ac_try
='test -z "$ac_c_werror_flag"
23481 || test ! -s conftest.err'
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); }; } &&
23487 { ac_try
='test -s conftest.$ac_objext'
23488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489 (eval $ac_try) 2>&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); }; }; then
23493 bash_cv_decl_under_sys_siglist
=yes
23495 echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.
$ac_ext >&5
23498 bash_cv_decl_under_sys_siglist
=no
23500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23502 echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
23503 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
23504 if test $bash_cv_decl_under_sys_siglist = yes; then
23505 cat >>confdefs.h
<<\_ACEOF
23506 #define UNDER_SYS_SIGLIST_DECLARED 1
23512 echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
23513 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
23514 if test "${bash_cv_under_sys_siglist+set}" = set; then
23515 echo $ECHO_N "(cached) $ECHO_C" >&6
23517 if test "$cross_compiling" = yes; then
23518 { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
23519 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
23520 bash_cv_under_sys_siglist
=no
23522 cat >conftest.
$ac_ext <<_ACEOF
23525 cat confdefs.h
>>conftest.
$ac_ext
23526 cat >>conftest.
$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23529 #include <sys/types.h>
23530 #include <signal.h>
23531 #ifdef HAVE_UNISTD_H
23532 #include <unistd.h>
23534 #ifndef UNDER_SYS_SIGLIST_DECLARED
23535 extern char *_sys_siglist[];
23539 char *msg = (char *)_sys_siglist[2];
23543 rm -f conftest
$ac_exeext
23544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23545 (eval $ac_link) 2>&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23550 (eval $ac_try) 2>&5
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); }; }; then
23554 bash_cv_under_sys_siglist
=yes
23556 echo "$as_me: program exited with status $ac_status" >&5
23557 echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.
$ac_ext >&5
23560 ( exit $ac_status )
23561 bash_cv_under_sys_siglist
=no
23563 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23567 echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
23568 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
23569 if test $bash_cv_under_sys_siglist = yes; then
23570 cat >>confdefs.h
<<\_ACEOF
23571 #define HAVE_UNDER_SYS_SIGLIST 1
23577 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
23578 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
23579 if test "${bash_cv_void_sighandler+set}" = set; then
23580 echo $ECHO_N "(cached) $ECHO_C" >&6
23582 cat >conftest.
$ac_ext <<_ACEOF
23585 cat confdefs.h
>>conftest.
$ac_ext
23586 cat >>conftest.
$ac_ext <<_ACEOF
23587 /* end confdefs.h. */
23588 #include <sys/types.h>
23589 #include <signal.h>
23596 void (*signal ()) ();
23605 rm -f conftest.
$ac_objext
23606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23607 (eval $ac_compile) 2>conftest.er1
23609 grep -v '^ *+' conftest.er1
>conftest.err
23611 cat conftest.err
>&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } &&
23614 { ac_try
='test -z "$ac_c_werror_flag"
23615 || test ! -s conftest.err'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; } &&
23621 { ac_try
='test -s conftest.$ac_objext'
23622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623 (eval $ac_try) 2>&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; }; then
23627 bash_cv_void_sighandler
=yes
23629 echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.
$ac_ext >&5
23632 bash_cv_void_sighandler
=no
23634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23636 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
23637 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
23638 if test $bash_cv_void_sighandler = yes; then
23639 cat >>confdefs.h
<<\_ACEOF
23640 #define VOID_SIGHANDLER 1
23647 echo "$as_me:$LINENO: checking for clock_t" >&5
23648 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
23649 if test "${bash_cv_type_clock_t+set}" = set; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23652 cat >conftest.
$ac_ext <<_ACEOF
23655 cat confdefs.h
>>conftest.
$ac_ext
23656 cat >>conftest.
$ac_ext <<_ACEOF
23657 /* end confdefs.h. */
23658 #include <sys/types.h>
23660 #include <stdlib.h>
23661 #include <stddef.h>
23663 #if HAVE_INTTYPES_H
23664 #include <inttypes.h>
23666 #include <sys/times.h>
23669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23670 $EGREP "clock_t" >/dev
/null
2>&1; then
23671 bash_cv_type_clock_t
=yes
23673 bash_cv_type_clock_t
=no
23679 echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
23680 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
23682 if test $bash_cv_type_clock_t = no
; then
23683 cat >>confdefs.h
<<_ACEOF
23684 #define clock_t long
23691 echo "$as_me:$LINENO: checking for sigset_t" >&5
23692 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
23693 if test "${bash_cv_type_sigset_t+set}" = set; then
23694 echo $ECHO_N "(cached) $ECHO_C" >&6
23696 cat >conftest.
$ac_ext <<_ACEOF
23699 cat confdefs.h
>>conftest.
$ac_ext
23700 cat >>conftest.
$ac_ext <<_ACEOF
23701 /* end confdefs.h. */
23702 #include <sys/types.h>
23704 #include <stdlib.h>
23705 #include <stddef.h>
23707 #if HAVE_INTTYPES_H
23708 #include <inttypes.h>
23710 #include <signal.h>
23713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23714 $EGREP "sigset_t" >/dev
/null
2>&1; then
23715 bash_cv_type_sigset_t
=yes
23717 bash_cv_type_sigset_t
=no
23723 echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
23724 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
23726 if test $bash_cv_type_sigset_t = no
; then
23727 cat >>confdefs.h
<<_ACEOF
23728 #define sigset_t int
23735 echo "$as_me:$LINENO: checking for quad_t" >&5
23736 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
23737 if test "${bash_cv_type_quad_t+set}" = set; then
23738 echo $ECHO_N "(cached) $ECHO_C" >&6
23740 cat >conftest.
$ac_ext <<_ACEOF
23743 cat confdefs.h
>>conftest.
$ac_ext
23744 cat >>conftest.
$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23746 #include <sys/types.h>
23748 #include <stdlib.h>
23749 #include <stddef.h>
23751 #if HAVE_INTTYPES_H
23752 #include <inttypes.h>
23757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23758 $EGREP "quad_t" >/dev
/null
2>&1; then
23759 bash_cv_type_quad_t
=yes
23761 bash_cv_type_quad_t
=no
23767 echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
23768 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
23769 if test $bash_cv_type_quad_t = yes; then
23770 cat >>confdefs.h
<<\_ACEOF
23771 #define HAVE_QUAD_T 1
23775 if test $bash_cv_type_quad_t = no
; then
23776 cat >>confdefs.h
<<_ACEOF
23777 #define quad_t long
23784 echo "$as_me:$LINENO: checking for intmax_t" >&5
23785 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23786 if test "${bash_cv_type_intmax_t+set}" = set; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23789 cat >conftest.
$ac_ext <<_ACEOF
23792 cat confdefs.h
>>conftest.
$ac_ext
23793 cat >>conftest.
$ac_ext <<_ACEOF
23794 /* end confdefs.h. */
23795 #include <sys/types.h>
23797 #include <stdlib.h>
23798 #include <stddef.h>
23800 #if HAVE_INTTYPES_H
23801 #include <inttypes.h>
23806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23807 $EGREP "intmax_t" >/dev
/null
2>&1; then
23808 bash_cv_type_intmax_t
=yes
23810 bash_cv_type_intmax_t
=no
23816 echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
23817 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
23819 if test $bash_cv_type_intmax_t = no
; then
23820 cat >>confdefs.h
<<_ACEOF
23821 #define intmax_t $bash_cv_type_long_long
23828 echo "$as_me:$LINENO: checking for uintmax_t" >&5
23829 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
23830 if test "${bash_cv_type_uintmax_t+set}" = set; then
23831 echo $ECHO_N "(cached) $ECHO_C" >&6
23833 cat >conftest.
$ac_ext <<_ACEOF
23836 cat confdefs.h
>>conftest.
$ac_ext
23837 cat >>conftest.
$ac_ext <<_ACEOF
23838 /* end confdefs.h. */
23839 #include <sys/types.h>
23841 #include <stdlib.h>
23842 #include <stddef.h>
23844 #if HAVE_INTTYPES_H
23845 #include <inttypes.h>
23850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23851 $EGREP "uintmax_t" >/dev
/null
2>&1; then
23852 bash_cv_type_uintmax_t
=yes
23854 bash_cv_type_uintmax_t
=no
23860 echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
23861 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
23863 if test $bash_cv_type_uintmax_t = no
; then
23864 cat >>confdefs.h
<<_ACEOF
23865 #define uintmax_t $bash_cv_type_unsigned_long_long
23870 if test "$ac_cv_header_sys_socket_h" = "yes"; then
23873 echo "$as_me:$LINENO: checking for socklen_t" >&5
23874 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23875 if test "${bash_cv_type_socklen_t+set}" = set; then
23876 echo $ECHO_N "(cached) $ECHO_C" >&6
23878 cat >conftest.
$ac_ext <<_ACEOF
23881 cat confdefs.h
>>conftest.
$ac_ext
23882 cat >>conftest.
$ac_ext <<_ACEOF
23883 /* end confdefs.h. */
23884 #include <sys/types.h>
23886 #include <stdlib.h>
23887 #include <stddef.h>
23889 #if HAVE_INTTYPES_H
23890 #include <inttypes.h>
23892 #include <sys/socket.h>
23895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23896 $EGREP "socklen_t" >/dev
/null
2>&1; then
23897 bash_cv_type_socklen_t
=yes
23899 bash_cv_type_socklen_t
=no
23905 echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
23906 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
23907 if test $bash_cv_type_socklen_t = yes; then
23908 cat >>confdefs.h
<<\_ACEOF
23909 #define HAVE_SOCKLEN_T 1
23913 if test $bash_cv_type_socklen_t = no
; then
23914 cat >>confdefs.h
<<_ACEOF
23915 #define socklen_t int
23921 echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
23922 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
23923 if test "${bash_cv_type_rlimit+set}" = set; then
23924 echo $ECHO_N "(cached) $ECHO_C" >&6
23926 cat >conftest.
$ac_ext <<_ACEOF
23929 cat confdefs.h
>>conftest.
$ac_ext
23930 cat >>conftest.
$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23932 #include <sys/types.h>
23933 #include <sys/resource.h>
23942 rm -f conftest.
$ac_objext
23943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23944 (eval $ac_compile) 2>conftest.er1
23946 grep -v '^ *+' conftest.er1
>conftest.err
23948 cat conftest.err
>&5
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); } &&
23951 { ac_try
='test -z "$ac_c_werror_flag"
23952 || test ! -s conftest.err'
23953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23954 (eval $ac_try) 2>&5
23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); }; } &&
23958 { ac_try
='test -s conftest.$ac_objext'
23959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960 (eval $ac_try) 2>&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); }; }; then
23964 bash_cv_type_rlimit
=rlim_t
23966 echo "$as_me: failed program was:" >&5
23967 sed 's/^/| /' conftest.
$ac_ext >&5
23970 if test "$cross_compiling" = yes; then
23971 { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
23972 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
23973 bash_cv_type_rlimit
=long
23975 cat >conftest.
$ac_ext <<_ACEOF
23978 cat confdefs.h
>>conftest.
$ac_ext
23979 cat >>conftest.
$ac_ext <<_ACEOF
23980 /* end confdefs.h. */
23982 #include <sys/types.h>
23983 #include <sys/time.h>
23984 #include <sys/resource.h>
23989 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
23995 rm -f conftest
$ac_exeext
23996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23997 (eval $ac_link) 2>&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002 (eval $ac_try) 2>&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); }; }; then
24006 bash_cv_type_rlimit
=quad_t
24008 echo "$as_me: program exited with status $ac_status" >&5
24009 echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.
$ac_ext >&5
24012 ( exit $ac_status )
24013 bash_cv_type_rlimit
=long
24015 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24018 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24022 echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
24023 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
24024 if test $bash_cv_type_rlimit = quad_t
; then
24025 cat >>confdefs.h
<<\_ACEOF
24026 #define RLIMTYPE quad_t
24029 elif test $bash_cv_type_rlimit = rlim_t
; then
24030 cat >>confdefs.h
<<\_ACEOF
24031 #define RLIMTYPE rlim_t
24038 echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
24039 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
24040 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
24041 echo $ECHO_N "(cached) $ECHO_C" >&6
24043 cat >conftest.
$ac_ext <<_ACEOF
24046 cat confdefs.h
>>conftest.
$ac_ext
24047 cat >>conftest.
$ac_ext <<_ACEOF
24048 /* end confdefs.h. */
24050 #include <sys/types.h>
24051 #include <termios.h>
24057 static struct termios ac_aggr;
24058 if (ac_aggr.c_line)
24064 rm -f conftest.
$ac_objext
24065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24066 (eval $ac_compile) 2>conftest.er1
24068 grep -v '^ *+' conftest.er1
>conftest.err
24070 cat conftest.err
>&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } &&
24073 { ac_try
='test -z "$ac_c_werror_flag"
24074 || test ! -s conftest.err'
24075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24076 (eval $ac_try) 2>&5
24078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079 (exit $ac_status); }; } &&
24080 { ac_try
='test -s conftest.$ac_objext'
24081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24082 (eval $ac_try) 2>&5
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); }; }; then
24086 ac_cv_member_struct_termios_c_line
=yes
24088 echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.
$ac_ext >&5
24091 cat >conftest.
$ac_ext <<_ACEOF
24094 cat confdefs.h
>>conftest.
$ac_ext
24095 cat >>conftest.
$ac_ext <<_ACEOF
24096 /* end confdefs.h. */
24098 #include <sys/types.h>
24099 #include <termios.h>
24105 static struct termios ac_aggr;
24106 if (sizeof ac_aggr.c_line)
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 ac_cv_member_struct_termios_c_line
=yes
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.
$ac_ext >&5
24139 ac_cv_member_struct_termios_c_line
=no
24141 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24145 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
24146 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
24147 if test $ac_cv_member_struct_termios_c_line = yes; then
24148 cat >>confdefs.h
<<\_ACEOF
24149 #define TERMIOS_LDISC 1
24156 echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
24157 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
24158 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
24161 cat >conftest.
$ac_ext <<_ACEOF
24164 cat confdefs.h
>>conftest.
$ac_ext
24165 cat >>conftest.
$ac_ext <<_ACEOF
24166 /* end confdefs.h. */
24168 #include <sys/types.h>
24169 #include <termio.h>
24175 static struct termio ac_aggr;
24176 if (ac_aggr.c_line)
24182 rm -f conftest.
$ac_objext
24183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24184 (eval $ac_compile) 2>conftest.er1
24186 grep -v '^ *+' conftest.er1
>conftest.err
24188 cat conftest.err
>&5
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); } &&
24191 { ac_try
='test -z "$ac_c_werror_flag"
24192 || test ! -s conftest.err'
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; } &&
24198 { ac_try
='test -s conftest.$ac_objext'
24199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24200 (eval $ac_try) 2>&5
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); }; }; then
24204 ac_cv_member_struct_termio_c_line
=yes
24206 echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.
$ac_ext >&5
24209 cat >conftest.
$ac_ext <<_ACEOF
24212 cat confdefs.h
>>conftest.
$ac_ext
24213 cat >>conftest.
$ac_ext <<_ACEOF
24214 /* end confdefs.h. */
24216 #include <sys/types.h>
24217 #include <termio.h>
24223 static struct termio ac_aggr;
24224 if (sizeof ac_aggr.c_line)
24230 rm -f conftest.
$ac_objext
24231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24232 (eval $ac_compile) 2>conftest.er1
24234 grep -v '^ *+' conftest.er1
>conftest.err
24236 cat conftest.err
>&5
24237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238 (exit $ac_status); } &&
24239 { ac_try
='test -z "$ac_c_werror_flag"
24240 || test ! -s conftest.err'
24241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24242 (eval $ac_try) 2>&5
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); }; } &&
24246 { ac_try
='test -s conftest.$ac_objext'
24247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24248 (eval $ac_try) 2>&5
24250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251 (exit $ac_status); }; }; then
24252 ac_cv_member_struct_termio_c_line
=yes
24254 echo "$as_me: failed program was:" >&5
24255 sed 's/^/| /' conftest.
$ac_ext >&5
24257 ac_cv_member_struct_termio_c_line
=no
24259 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24263 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
24264 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
24265 if test $ac_cv_member_struct_termio_c_line = yes; then
24266 cat >>confdefs.h
<<\_ACEOF
24267 #define TERMIO_LDISC 1
24274 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
24275 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
24276 if test "${bash_cv_dirent_has_dino+set}" = set; then
24277 echo $ECHO_N "(cached) $ECHO_C" >&6
24279 cat >conftest.
$ac_ext <<_ACEOF
24282 cat confdefs.h
>>conftest.
$ac_ext
24283 cat >>conftest.
$ac_ext <<_ACEOF
24284 /* end confdefs.h. */
24287 #include <sys/types.h>
24288 #ifdef HAVE_UNISTD_H
24289 # include <unistd.h>
24290 #endif /* HAVE_UNISTD_H */
24291 #if defined(HAVE_DIRENT_H)
24292 # include <dirent.h>
24294 # define dirent direct
24295 # ifdef HAVE_SYS_NDIR_H
24296 # include <sys/ndir.h>
24297 # endif /* SYSNDIR */
24298 # ifdef HAVE_SYS_DIR_H
24299 # include <sys/dir.h>
24300 # endif /* SYSDIR */
24301 # ifdef HAVE_NDIR_H
24304 #endif /* HAVE_DIRENT_H */
24310 struct dirent d; int z; z = d.d_ino;
24316 rm -f conftest.
$ac_objext
24317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24318 (eval $ac_compile) 2>conftest.er1
24320 grep -v '^ *+' conftest.er1
>conftest.err
24322 cat conftest.err
>&5
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); } &&
24325 { ac_try
='test -z "$ac_c_werror_flag"
24326 || test ! -s conftest.err'
24327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24328 (eval $ac_try) 2>&5
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); }; } &&
24332 { ac_try
='test -s conftest.$ac_objext'
24333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24334 (eval $ac_try) 2>&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); }; }; then
24338 bash_cv_dirent_has_dino
=yes
24340 echo "$as_me: failed program was:" >&5
24341 sed 's/^/| /' conftest.
$ac_ext >&5
24343 bash_cv_dirent_has_dino
=no
24345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24348 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
24349 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
24350 if test $bash_cv_dirent_has_dino = yes; then
24351 cat >>confdefs.h
<<\_ACEOF
24352 #define HAVE_STRUCT_DIRENT_D_INO 1
24358 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
24359 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
24360 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
24363 cat >conftest.
$ac_ext <<_ACEOF
24366 cat confdefs.h
>>conftest.
$ac_ext
24367 cat >>conftest.
$ac_ext <<_ACEOF
24368 /* end confdefs.h. */
24371 #include <sys/types.h>
24372 #ifdef HAVE_UNISTD_H
24373 # include <unistd.h>
24374 #endif /* HAVE_UNISTD_H */
24375 #if defined(HAVE_DIRENT_H)
24376 # include <dirent.h>
24378 # define dirent direct
24379 # ifdef HAVE_SYS_NDIR_H
24380 # include <sys/ndir.h>
24381 # endif /* SYSNDIR */
24382 # ifdef HAVE_SYS_DIR_H
24383 # include <sys/dir.h>
24384 # endif /* SYSDIR */
24385 # ifdef HAVE_NDIR_H
24388 #endif /* HAVE_DIRENT_H */
24394 struct dirent d; int z; z = d.d_fileno;
24400 rm -f conftest.
$ac_objext
24401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24402 (eval $ac_compile) 2>conftest.er1
24404 grep -v '^ *+' conftest.er1
>conftest.err
24406 cat conftest.err
>&5
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); } &&
24409 { ac_try
='test -z "$ac_c_werror_flag"
24410 || test ! -s conftest.err'
24411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24412 (eval $ac_try) 2>&5
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); }; } &&
24416 { ac_try
='test -s conftest.$ac_objext'
24417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24418 (eval $ac_try) 2>&5
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); }; }; then
24422 bash_cv_dirent_has_d_fileno
=yes
24424 echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.
$ac_ext >&5
24427 bash_cv_dirent_has_d_fileno
=no
24429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24432 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
24433 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
24434 if test $bash_cv_dirent_has_d_fileno = yes; then
24435 cat >>confdefs.h
<<\_ACEOF
24436 #define HAVE_STRUCT_DIRENT_D_FILENO 1
24442 echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
24443 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
24444 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
24445 echo $ECHO_N "(cached) $ECHO_C" >&6
24447 cat >conftest.
$ac_ext <<_ACEOF
24450 cat confdefs.h
>>conftest.
$ac_ext
24451 cat >>conftest.
$ac_ext <<_ACEOF
24452 /* end confdefs.h. */
24455 #include <sys/types.h>
24456 #ifdef HAVE_UNISTD_H
24457 # include <unistd.h>
24458 #endif /* HAVE_UNISTD_H */
24459 #if defined(HAVE_DIRENT_H)
24460 # include <dirent.h>
24462 # define dirent direct
24463 # ifdef HAVE_SYS_NDIR_H
24464 # include <sys/ndir.h>
24465 # endif /* SYSNDIR */
24466 # ifdef HAVE_SYS_DIR_H
24467 # include <sys/dir.h>
24468 # endif /* SYSDIR */
24469 # ifdef HAVE_NDIR_H
24472 #endif /* HAVE_DIRENT_H */
24478 struct dirent d; int z; z = d.d_namlen;
24484 rm -f conftest.
$ac_objext
24485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24486 (eval $ac_compile) 2>conftest.er1
24488 grep -v '^ *+' conftest.er1
>conftest.err
24490 cat conftest.err
>&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); } &&
24493 { ac_try
='test -z "$ac_c_werror_flag"
24494 || test ! -s conftest.err'
24495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24496 (eval $ac_try) 2>&5
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; } &&
24500 { ac_try
='test -s conftest.$ac_objext'
24501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24502 (eval $ac_try) 2>&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); }; }; then
24506 bash_cv_dirent_has_d_namlen
=yes
24508 echo "$as_me: failed program was:" >&5
24509 sed 's/^/| /' conftest.
$ac_ext >&5
24511 bash_cv_dirent_has_d_namlen
=no
24513 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24516 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
24517 echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6
24518 if test $bash_cv_dirent_has_d_namlen = yes; then
24519 cat >>confdefs.h
<<\_ACEOF
24520 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
24525 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
24526 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
24527 if test "${bash_cv_struct_winsize_header+set}" = set; then
24528 echo $ECHO_N "(cached) $ECHO_C" >&6
24530 cat >conftest.
$ac_ext <<_ACEOF
24533 cat confdefs.h
>>conftest.
$ac_ext
24534 cat >>conftest.
$ac_ext <<_ACEOF
24535 /* end confdefs.h. */
24536 #include <sys/types.h>
24537 #include <sys/ioctl.h>
24546 rm -f conftest.
$ac_objext
24547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24548 (eval $ac_compile) 2>conftest.er1
24550 grep -v '^ *+' conftest.er1
>conftest.err
24552 cat conftest.err
>&5
24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); } &&
24555 { ac_try
='test -z "$ac_c_werror_flag"
24556 || test ! -s conftest.err'
24557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24558 (eval $ac_try) 2>&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); }; } &&
24562 { ac_try
='test -s conftest.$ac_objext'
24563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24564 (eval $ac_try) 2>&5
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); }; }; then
24568 bash_cv_struct_winsize_header
=ioctl_h
24570 echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.
$ac_ext >&5
24573 cat >conftest.
$ac_ext <<_ACEOF
24576 cat confdefs.h
>>conftest.
$ac_ext
24577 cat >>conftest.
$ac_ext <<_ACEOF
24578 /* end confdefs.h. */
24579 #include <sys/types.h>
24580 #include <termios.h>
24589 rm -f conftest.
$ac_objext
24590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24591 (eval $ac_compile) 2>conftest.er1
24593 grep -v '^ *+' conftest.er1
>conftest.err
24595 cat conftest.err
>&5
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } &&
24598 { ac_try
='test -z "$ac_c_werror_flag"
24599 || test ! -s conftest.err'
24600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601 (eval $ac_try) 2>&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); }; } &&
24605 { ac_try
='test -s conftest.$ac_objext'
24606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24607 (eval $ac_try) 2>&5
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); }; }; then
24611 bash_cv_struct_winsize_header
=termios_h
24613 echo "$as_me: failed program was:" >&5
24614 sed 's/^/| /' conftest.
$ac_ext >&5
24616 bash_cv_struct_winsize_header
=other
24618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24621 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24624 if test $bash_cv_struct_winsize_header = ioctl_h
; then
24625 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
24626 echo "${ECHO_T}sys/ioctl.h" >&6
24627 cat >>confdefs.h
<<\_ACEOF
24628 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
24631 elif test $bash_cv_struct_winsize_header = termios_h
; then
24632 echo "$as_me:$LINENO: result: termios.h" >&5
24633 echo "${ECHO_T}termios.h" >&6
24634 cat >>confdefs.h
<<\_ACEOF
24635 #define STRUCT_WINSIZE_IN_TERMIOS 1
24639 echo "$as_me:$LINENO: result: not found" >&5
24640 echo "${ECHO_T}not found" >&6
24643 echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
24644 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
24645 if test "${bash_cv_struct_timeval+set}" = set; then
24646 echo $ECHO_N "(cached) $ECHO_C" >&6
24649 cat >conftest.
$ac_ext <<_ACEOF
24652 cat confdefs.h
>>conftest.
$ac_ext
24653 cat >>conftest.
$ac_ext <<_ACEOF
24654 /* end confdefs.h. */
24655 #include <sys/time.h>
24658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24659 $EGREP "struct timeval" >/dev
/null
2>&1; then
24660 bash_cv_struct_timeval
=yes
24662 cat >conftest.
$ac_ext <<_ACEOF
24665 cat confdefs.h
>>conftest.
$ac_ext
24666 cat >>conftest.
$ac_ext <<_ACEOF
24667 /* end confdefs.h. */
24671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24672 $EGREP "struct timeval" >/dev
/null
2>&1; then
24673 bash_cv_struct_timeval
=yes
24675 bash_cv_struct_timeval
=no
24685 echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
24686 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
24687 if test $bash_cv_struct_timeval = yes; then
24688 cat >>confdefs.h
<<\_ACEOF
24689 #define HAVE_TIMEVAL 1
24694 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
24695 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
24696 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
24697 echo $ECHO_N "(cached) $ECHO_C" >&6
24699 cat >conftest.
$ac_ext <<_ACEOF
24702 cat confdefs.h
>>conftest.
$ac_ext
24703 cat >>conftest.
$ac_ext <<_ACEOF
24704 /* end confdefs.h. */
24705 $ac_includes_default
24709 static struct stat ac_aggr;
24710 if (ac_aggr.st_blocks)
24716 rm -f conftest.
$ac_objext
24717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24718 (eval $ac_compile) 2>conftest.er1
24720 grep -v '^ *+' conftest.er1
>conftest.err
24722 cat conftest.err
>&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); } &&
24725 { ac_try
='test -z "$ac_c_werror_flag"
24726 || test ! -s conftest.err'
24727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24728 (eval $ac_try) 2>&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); }; } &&
24732 { ac_try
='test -s conftest.$ac_objext'
24733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24734 (eval $ac_try) 2>&5
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); }; }; then
24738 ac_cv_member_struct_stat_st_blocks
=yes
24740 echo "$as_me: failed program was:" >&5
24741 sed 's/^/| /' conftest.
$ac_ext >&5
24743 cat >conftest.
$ac_ext <<_ACEOF
24746 cat confdefs.h
>>conftest.
$ac_ext
24747 cat >>conftest.
$ac_ext <<_ACEOF
24748 /* end confdefs.h. */
24749 $ac_includes_default
24753 static struct stat ac_aggr;
24754 if (sizeof ac_aggr.st_blocks)
24760 rm -f conftest.
$ac_objext
24761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24762 (eval $ac_compile) 2>conftest.er1
24764 grep -v '^ *+' conftest.er1
>conftest.err
24766 cat conftest.err
>&5
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); } &&
24769 { ac_try
='test -z "$ac_c_werror_flag"
24770 || test ! -s conftest.err'
24771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24772 (eval $ac_try) 2>&5
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); }; } &&
24776 { ac_try
='test -s conftest.$ac_objext'
24777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24778 (eval $ac_try) 2>&5
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); }; }; then
24782 ac_cv_member_struct_stat_st_blocks
=yes
24784 echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.
$ac_ext >&5
24787 ac_cv_member_struct_stat_st_blocks
=no
24789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24793 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
24794 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
24795 if test $ac_cv_member_struct_stat_st_blocks = yes; then
24797 cat >>confdefs.h
<<_ACEOF
24798 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
24804 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24805 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24806 if test "${ac_cv_struct_tm+set}" = set; then
24807 echo $ECHO_N "(cached) $ECHO_C" >&6
24809 cat >conftest.
$ac_ext <<_ACEOF
24812 cat confdefs.h
>>conftest.
$ac_ext
24813 cat >>conftest.
$ac_ext <<_ACEOF
24814 /* end confdefs.h. */
24815 #include <sys/types.h>
24821 struct tm *tp; tp->tm_sec;
24826 rm -f conftest.
$ac_objext
24827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24828 (eval $ac_compile) 2>conftest.er1
24830 grep -v '^ *+' conftest.er1
>conftest.err
24832 cat conftest.err
>&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } &&
24835 { ac_try
='test -z "$ac_c_werror_flag"
24836 || test ! -s conftest.err'
24837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838 (eval $ac_try) 2>&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); }; } &&
24842 { ac_try
='test -s conftest.$ac_objext'
24843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24844 (eval $ac_try) 2>&5
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); }; }; then
24848 ac_cv_struct_tm
=time.h
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.
$ac_ext >&5
24853 ac_cv_struct_tm
=sys
/time.h
24855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24857 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24858 echo "${ECHO_T}$ac_cv_struct_tm" >&6
24859 if test $ac_cv_struct_tm = sys
/time.h
; then
24861 cat >>confdefs.h
<<\_ACEOF
24862 #define TM_IN_SYS_TIME 1
24867 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24868 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
24869 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24870 echo $ECHO_N "(cached) $ECHO_C" >&6
24872 cat >conftest.
$ac_ext <<_ACEOF
24875 cat confdefs.h
>>conftest.
$ac_ext
24876 cat >>conftest.
$ac_ext <<_ACEOF
24877 /* end confdefs.h. */
24878 #include <sys/types.h>
24879 #include <$ac_cv_struct_tm>
24885 static struct tm ac_aggr;
24886 if (ac_aggr.tm_zone)
24892 rm -f conftest.
$ac_objext
24893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24894 (eval $ac_compile) 2>conftest.er1
24896 grep -v '^ *+' conftest.er1
>conftest.err
24898 cat conftest.err
>&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } &&
24901 { ac_try
='test -z "$ac_c_werror_flag"
24902 || test ! -s conftest.err'
24903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904 (eval $ac_try) 2>&5
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); }; } &&
24908 { ac_try
='test -s conftest.$ac_objext'
24909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910 (eval $ac_try) 2>&5
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); }; }; then
24914 ac_cv_member_struct_tm_tm_zone
=yes
24916 echo "$as_me: failed program was:" >&5
24917 sed 's/^/| /' conftest.
$ac_ext >&5
24919 cat >conftest.
$ac_ext <<_ACEOF
24922 cat confdefs.h
>>conftest.
$ac_ext
24923 cat >>conftest.
$ac_ext <<_ACEOF
24924 /* end confdefs.h. */
24925 #include <sys/types.h>
24926 #include <$ac_cv_struct_tm>
24932 static struct tm ac_aggr;
24933 if (sizeof ac_aggr.tm_zone)
24939 rm -f conftest.
$ac_objext
24940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24941 (eval $ac_compile) 2>conftest.er1
24943 grep -v '^ *+' conftest.er1
>conftest.err
24945 cat conftest.err
>&5
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } &&
24948 { ac_try
='test -z "$ac_c_werror_flag"
24949 || test ! -s conftest.err'
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; } &&
24955 { ac_try
='test -s conftest.$ac_objext'
24956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957 (eval $ac_try) 2>&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); }; }; then
24961 ac_cv_member_struct_tm_tm_zone
=yes
24963 echo "$as_me: failed program was:" >&5
24964 sed 's/^/| /' conftest.
$ac_ext >&5
24966 ac_cv_member_struct_tm_tm_zone
=no
24968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24970 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24972 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24973 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
24974 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24976 cat >>confdefs.h
<<_ACEOF
24977 #define HAVE_STRUCT_TM_TM_ZONE 1
24983 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24985 cat >>confdefs.h
<<\_ACEOF
24986 #define HAVE_TM_ZONE 1
24990 echo "$as_me:$LINENO: checking for tzname" >&5
24991 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
24992 if test "${ac_cv_var_tzname+set}" = set; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24995 cat >conftest.
$ac_ext <<_ACEOF
24998 cat confdefs.h
>>conftest.
$ac_ext
24999 cat >>conftest.
$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25002 #ifndef tzname /* For SGI. */
25003 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
25014 rm -f conftest.
$ac_objext conftest
$ac_exeext
25015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25016 (eval $ac_link) 2>conftest.er1
25018 grep -v '^ *+' conftest.er1
>conftest.err
25020 cat conftest.err
>&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } &&
25023 { ac_try
='test -z "$ac_c_werror_flag"
25024 || test ! -s conftest.err'
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; } &&
25030 { ac_try
='test -s conftest$ac_exeext'
25031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032 (eval $ac_try) 2>&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); }; }; then
25036 ac_cv_var_tzname
=yes
25038 echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.
$ac_ext >&5
25041 ac_cv_var_tzname
=no
25043 rm -f conftest.err conftest.
$ac_objext \
25044 conftest
$ac_exeext conftest.
$ac_ext
25046 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25047 echo "${ECHO_T}$ac_cv_var_tzname" >&6
25048 if test $ac_cv_var_tzname = yes; then
25050 cat >>confdefs.h
<<\_ACEOF
25051 #define HAVE_TZNAME 1
25057 echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
25058 echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6
25059 if test "${bash_cv_struct_timezone+set}" = set; then
25060 echo $ECHO_N "(cached) $ECHO_C" >&6
25063 cat >conftest.
$ac_ext <<_ACEOF
25066 cat confdefs.h
>>conftest.
$ac_ext
25067 cat >>conftest.
$ac_ext <<_ACEOF
25068 /* end confdefs.h. */
25069 #include <sys/time.h>
25072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25073 $EGREP "struct timezone" >/dev
/null
2>&1; then
25074 bash_cv_struct_timezone
=yes
25076 cat >conftest.
$ac_ext <<_ACEOF
25079 cat confdefs.h
>>conftest.
$ac_ext
25080 cat >>conftest.
$ac_ext <<_ACEOF
25081 /* end confdefs.h. */
25085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25086 $EGREP "struct timezone" >/dev
/null
2>&1; then
25087 bash_cv_struct_timezone
=yes
25089 bash_cv_struct_timezone
=no
25099 echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
25100 echo "${ECHO_T}$bash_cv_struct_timezone" >&6
25101 if test $bash_cv_struct_timezone = yes; then
25102 cat >>confdefs.h
<<\_ACEOF
25103 #define HAVE_STRUCT_TIMEZONE 1
25109 echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
25110 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
25111 if test "${bash_cv_have_strsignal+set}" = set; then
25112 echo $ECHO_N "(cached) $ECHO_C" >&6
25114 cat >conftest.
$ac_ext <<_ACEOF
25117 cat confdefs.h
>>conftest.
$ac_ext
25118 cat >>conftest.
$ac_ext <<_ACEOF
25119 /* end confdefs.h. */
25120 #include <sys/types.h>
25121 #include <signal.h>
25125 char *s = (char *)strsignal(2);
25130 rm -f conftest.
$ac_objext conftest
$ac_exeext
25131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25132 (eval $ac_link) 2>conftest.er1
25134 grep -v '^ *+' conftest.er1
>conftest.err
25136 cat conftest.err
>&5
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); } &&
25139 { ac_try
='test -z "$ac_c_werror_flag"
25140 || test ! -s conftest.err'
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; } &&
25146 { ac_try
='test -s conftest$ac_exeext'
25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; }; then
25152 bash_cv_have_strsignal
=yes
25154 echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.
$ac_ext >&5
25157 bash_cv_have_strsignal
=no
25159 rm -f conftest.err conftest.
$ac_objext \
25160 conftest
$ac_exeext conftest.
$ac_ext
25163 echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
25164 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
25165 if test $bash_cv_have_strsignal = yes; then
25166 cat >>confdefs.h
<<\_ACEOF
25167 #define HAVE_STRSIGNAL 1
25172 echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
25173 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
25174 if test "${bash_cv_opendir_not_robust+set}" = set; then
25175 echo $ECHO_N "(cached) $ECHO_C" >&6
25177 if test "$cross_compiling" = yes; then
25178 { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
25179 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
25180 bash_cv_opendir_not_robust
=no
25183 cat >conftest.
$ac_ext <<_ACEOF
25186 cat confdefs.h
>>conftest.
$ac_ext
25187 cat >>conftest.
$ac_ext <<_ACEOF
25188 /* end confdefs.h. */
25191 #include <sys/types.h>
25193 #ifdef HAVE_UNISTD_H
25194 # include <unistd.h>
25195 #endif /* HAVE_UNISTD_H */
25196 #if defined(HAVE_DIRENT_H)
25197 # include <dirent.h>
25199 # define dirent direct
25200 # ifdef HAVE_SYS_NDIR_H
25201 # include <sys/ndir.h>
25202 # endif /* SYSNDIR */
25203 # ifdef HAVE_SYS_DIR_H
25204 # include <sys/dir.h>
25205 # endif /* SYSDIR */
25206 # ifdef HAVE_NDIR_H
25209 #endif /* HAVE_DIRENT_H */
25214 err = mkdir("/tmp/bash-aclocal", 0700);
25219 unlink("/tmp/bash-aclocal/not_a_directory");
25220 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
25221 write(fd, "\n", 1);
25223 dir = opendir("/tmp/bash-aclocal/not_a_directory");
25224 unlink("/tmp/bash-aclocal/not_a_directory");
25225 rmdir("/tmp/bash-aclocal");
25229 rm -f conftest
$ac_exeext
25230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25231 (eval $ac_link) 2>&5
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25240 bash_cv_opendir_not_robust
=yes
25242 echo "$as_me: program exited with status $ac_status" >&5
25243 echo "$as_me: failed program was:" >&5
25244 sed 's/^/| /' conftest.
$ac_ext >&5
25246 ( exit $ac_status )
25247 bash_cv_opendir_not_robust
=no
25249 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25253 echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
25254 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
25255 if test $bash_cv_opendir_not_robust = yes; then
25256 cat >>confdefs.h
<<\_ACEOF
25257 #define OPENDIR_NOT_ROBUST 1
25262 echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
25263 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
25264 if test "${bash_cv_ulimit_maxfds+set}" = set; then
25265 echo $ECHO_N "(cached) $ECHO_C" >&6
25267 if test "$cross_compiling" = yes; then
25268 { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
25269 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
25270 bash_cv_ulimit_maxfds
=no
25273 cat >conftest.
$ac_ext <<_ACEOF
25276 cat confdefs.h
>>conftest.
$ac_ext
25277 cat >>conftest.
$ac_ext <<_ACEOF
25278 /* end confdefs.h. */
25282 long maxfds = ulimit(4, 0L);
25283 exit (maxfds == -1L);
25287 rm -f conftest
$ac_exeext
25288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25289 (eval $ac_link) 2>&5
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294 (eval $ac_try) 2>&5
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); }; }; then
25298 bash_cv_ulimit_maxfds
=yes
25300 echo "$as_me: program exited with status $ac_status" >&5
25301 echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.
$ac_ext >&5
25304 ( exit $ac_status )
25305 bash_cv_ulimit_maxfds
=no
25307 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25311 echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
25312 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
25313 if test $bash_cv_ulimit_maxfds = yes; then
25314 cat >>confdefs.h
<<\_ACEOF
25315 #define ULIMIT_MAXFDS 1
25320 echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
25321 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
25322 if test "${bash_cv_getenv_redef+set}" = set; then
25323 echo $ECHO_N "(cached) $ECHO_C" >&6
25325 if test "$cross_compiling" = yes; then
25326 { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
25327 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
25328 bash_cv_getenv_redef
=yes
25331 cat >conftest.
$ac_ext <<_ACEOF
25334 cat confdefs.h
>>conftest.
$ac_ext
25335 cat >>conftest.
$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25338 #ifdef HAVE_UNISTD_H
25339 # include <unistd.h>
25348 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
25352 #endif /* !__linux__ && !__bsdi__ && !convex */
25359 /* The next allows this program to run, but does not allow bash to link
25360 when it redefines getenv. I'm not really interested in figuring out
25365 s = getenv("ABCDE");
25366 exit(s == 0); /* force optimizer to leave getenv in */
25370 rm -f conftest
$ac_exeext
25371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25372 (eval $ac_link) 2>&5
25374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25377 (eval $ac_try) 2>&5
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); }; }; then
25381 bash_cv_getenv_redef
=yes
25383 echo "$as_me: program exited with status $ac_status" >&5
25384 echo "$as_me: failed program was:" >&5
25385 sed 's/^/| /' conftest.
$ac_ext >&5
25387 ( exit $ac_status )
25388 bash_cv_getenv_redef
=no
25390 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25394 echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
25395 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
25396 if test $bash_cv_getenv_redef = yes; then
25397 cat >>confdefs.h
<<\_ACEOF
25398 #define CAN_REDEFINE_GETENV 1
25403 if test "$ac_cv_func_getcwd" = "yes"; then
25404 echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5
25405 echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6
25406 if test "${bash_cv_getcwd_malloc+set}" = set; then
25407 echo $ECHO_N "(cached) $ECHO_C" >&6
25409 if test "$cross_compiling" = yes; then
25410 { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
25411 echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
25412 bash_cv_getcwd_malloc
=no
25415 cat >conftest.
$ac_ext <<_ACEOF
25418 cat confdefs.h
>>conftest.
$ac_ext
25419 cat >>conftest.
$ac_ext <<_ACEOF
25420 /* end confdefs.h. */
25423 #ifdef HAVE_UNISTD_H
25424 #include <unistd.h>
25430 xpwd = getcwd(0, 0);
25435 rm -f conftest
$ac_exeext
25436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25437 (eval $ac_link) 2>&5
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442 (eval $ac_try) 2>&5
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); }; }; then
25446 bash_cv_getcwd_malloc
=yes
25448 echo "$as_me: program exited with status $ac_status" >&5
25449 echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.
$ac_ext >&5
25452 ( exit $ac_status )
25453 bash_cv_getcwd_malloc
=no
25455 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25459 echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
25460 echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6
25461 if test $bash_cv_getcwd_malloc = no
; then
25462 cat >>confdefs.h
<<\_ACEOF
25463 #define GETCWD_BROKEN 1
25467 "getcwd.$ac_objext" | \
25468 *" getcwd.$ac_objext" | \
25469 "getcwd.$ac_objext "* | \
25470 *" getcwd.$ac_objext "* ) ;;
25471 *) LIBOBJS
="$LIBOBJS getcwd.$ac_objext" ;;
25478 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
25479 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
25480 if test "${bash_cv_func_sigsetjmp+set}" = set; then
25481 echo $ECHO_N "(cached) $ECHO_C" >&6
25483 if test "$cross_compiling" = yes; then
25484 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
25485 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
25486 bash_cv_func_sigsetjmp
=missing
25489 cat >conftest.
$ac_ext <<_ACEOF
25492 cat confdefs.h
>>conftest.
$ac_ext
25493 cat >>conftest.
$ac_ext <<_ACEOF
25494 /* end confdefs.h. */
25496 #ifdef HAVE_UNISTD_H
25497 #include <unistd.h>
25499 #include <sys/types.h>
25500 #include <signal.h>
25501 #include <setjmp.h>
25505 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
25510 sigset_t set, oset;
25515 sigemptyset(&oset);
25516 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
25517 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
25520 code = sigsetjmp(xx, 1);
25522 exit(0); /* could get sigmask and compare to oset here. */
25525 sigaddset(&set, SIGINT);
25526 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
25528 /* and siglongjmp */
25529 siglongjmp(xx, 10);
25534 rm -f conftest
$ac_exeext
25535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25536 (eval $ac_link) 2>&5
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541 (eval $ac_try) 2>&5
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); }; }; then
25545 bash_cv_func_sigsetjmp
=present
25547 echo "$as_me: program exited with status $ac_status" >&5
25548 echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.
$ac_ext >&5
25551 ( exit $ac_status )
25552 bash_cv_func_sigsetjmp
=missing
25554 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25558 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
25559 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
25560 if test $bash_cv_func_sigsetjmp = present
; then
25561 cat >>confdefs.h
<<\_ACEOF
25562 #define HAVE_POSIX_SIGSETJMP 1
25568 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
25569 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
25570 if test "${bash_cv_func_strcoll_broken+set}" = set; then
25571 echo $ECHO_N "(cached) $ECHO_C" >&6
25573 if test "$cross_compiling" = yes; then
25574 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
25575 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
25576 bash_cv_func_strcoll_broken
=no
25579 cat >conftest.
$ac_ext <<_ACEOF
25582 cat confdefs.h
>>conftest.
$ac_ext
25583 cat >>conftest.
$ac_ext <<_ACEOF
25584 /* end confdefs.h. */
25587 #if defined (HAVE_LOCALE_H)
25588 #include <locale.h>
25596 char *deflocale, *defcoll;
25598 #ifdef HAVE_SETLOCALE
25599 deflocale = setlocale(LC_ALL, "");
25600 defcoll = setlocale(LC_COLLATE, "");
25603 #ifdef HAVE_STRCOLL
25604 /* These two values are taken from tests/glob-test. */
25605 r1 = strcoll("abd", "aXd");
25609 r2 = strcmp("abd", "aXd");
25611 /* These two should both be greater than 0. It is permissible for
25612 a system to return different values, as long as the sign is the
25615 /* Exit with 1 (failure) if these two values are both > 0, since
25616 this tests whether strcoll(3) is broken with respect to strcmp(3)
25617 in the default locale. */
25618 exit (r1 > 0 && r2 > 0);
25622 rm -f conftest
$ac_exeext
25623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25624 (eval $ac_link) 2>&5
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629 (eval $ac_try) 2>&5
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); }; }; then
25633 bash_cv_func_strcoll_broken
=yes
25635 echo "$as_me: program exited with status $ac_status" >&5
25636 echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.
$ac_ext >&5
25639 ( exit $ac_status )
25640 bash_cv_func_strcoll_broken
=no
25642 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25646 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
25647 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
25648 if test $bash_cv_func_strcoll_broken = yes; then
25649 cat >>confdefs.h
<<\_ACEOF
25650 #define STRCOLL_BROKEN 1
25657 if test "$ac_cv_func_putenv" = "yes"; then
25661 echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
25662 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
25663 if test "${bash_cv_std_putenv+set}" = set; then
25664 echo $ECHO_N "(cached) $ECHO_C" >&6
25666 cat >conftest.
$ac_ext <<_ACEOF
25669 cat confdefs.h
>>conftest.
$ac_ext
25670 cat >>conftest.
$ac_ext <<_ACEOF
25671 /* end confdefs.h. */
25674 #include <stdlib.h>
25675 #include <stddef.h>
25683 extern int putenv (char *);
25685 extern int putenv ();
25691 return (putenv == 0);
25696 rm -f conftest.
$ac_objext conftest
$ac_exeext
25697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25698 (eval $ac_link) 2>conftest.er1
25700 grep -v '^ *+' conftest.er1
>conftest.err
25702 cat conftest.err
>&5
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); } &&
25705 { ac_try
='test -z "$ac_c_werror_flag"
25706 || test ! -s conftest.err'
25707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708 (eval $ac_try) 2>&5
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }; } &&
25712 { ac_try
='test -s conftest$ac_exeext'
25713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25714 (eval $ac_try) 2>&5
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); }; }; then
25718 bash_cv_std_putenv
=yes
25720 echo "$as_me: failed program was:" >&5
25721 sed 's/^/| /' conftest.
$ac_ext >&5
25723 bash_cv_std_putenv
=no
25726 rm -f conftest.err conftest.
$ac_objext \
25727 conftest
$ac_exeext conftest.
$ac_ext
25729 echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
25730 echo "${ECHO_T}$bash_cv_std_putenv" >&6
25731 if test $bash_cv_std_putenv = yes; then
25732 cat >>confdefs.h
<<\_ACEOF
25733 #define HAVE_STD_PUTENV 1
25739 cat >>confdefs.h
<<\_ACEOF
25740 #define HAVE_STD_PUTENV 1
25744 if test "$ac_cv_func_unsetenv" = "yes"; then
25748 echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
25749 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
25750 if test "${bash_cv_std_unsetenv+set}" = set; then
25751 echo $ECHO_N "(cached) $ECHO_C" >&6
25753 cat >conftest.
$ac_ext <<_ACEOF
25756 cat confdefs.h
>>conftest.
$ac_ext
25757 cat >>conftest.
$ac_ext <<_ACEOF
25758 /* end confdefs.h. */
25761 #include <stdlib.h>
25762 #include <stddef.h>
25770 extern int unsetenv (const char *);
25772 extern int unsetenv ();
25778 return (unsetenv == 0);
25783 rm -f conftest.
$ac_objext conftest
$ac_exeext
25784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25785 (eval $ac_link) 2>conftest.er1
25787 grep -v '^ *+' conftest.er1
>conftest.err
25789 cat conftest.err
>&5
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); } &&
25792 { ac_try
='test -z "$ac_c_werror_flag"
25793 || test ! -s conftest.err'
25794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25795 (eval $ac_try) 2>&5
25797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); }; } &&
25799 { ac_try
='test -s conftest$ac_exeext'
25800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25801 (eval $ac_try) 2>&5
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); }; }; then
25805 bash_cv_std_unsetenv
=yes
25807 echo "$as_me: failed program was:" >&5
25808 sed 's/^/| /' conftest.
$ac_ext >&5
25810 bash_cv_std_unsetenv
=no
25813 rm -f conftest.err conftest.
$ac_objext \
25814 conftest
$ac_exeext conftest.
$ac_ext
25816 echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
25817 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
25818 if test $bash_cv_std_unsetenv = yes; then
25819 cat >>confdefs.h
<<\_ACEOF
25820 #define HAVE_STD_UNSETENV 1
25826 cat >>confdefs.h
<<\_ACEOF
25827 #define HAVE_STD_UNSETENV 1
25832 echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
25833 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
25834 if test "${bash_cv_printf_a_format+set}" = set; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25837 if test "$cross_compiling" = yes; then
25838 { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
25839 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
25840 bash_cv_printf_a_format
=no
25843 cat >conftest.
$ac_ext <<_ACEOF
25846 cat confdefs.h
>>conftest.
$ac_ext
25847 cat >>conftest.
$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25851 #include <string.h>
25859 sprintf(abuf, "%A", y);
25860 exit(strchr(abuf, 'P') == (char *)0);
25864 rm -f conftest
$ac_exeext
25865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25866 (eval $ac_link) 2>&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871 (eval $ac_try) 2>&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; }; then
25875 bash_cv_printf_a_format
=yes
25877 echo "$as_me: program exited with status $ac_status" >&5
25878 echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.
$ac_ext >&5
25881 ( exit $ac_status )
25882 bash_cv_printf_a_format
=no
25884 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25888 echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
25889 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
25890 if test $bash_cv_printf_a_format = yes; then
25891 cat >>confdefs.h
<<\_ACEOF
25892 #define HAVE_PRINTF_A_FORMAT 1
25900 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
25901 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
25902 if test "${bash_cv_must_reinstall_sighandlers+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 signal handling if cross compiling -- defaulting to no" >&5
25907 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
25908 bash_cv_must_reinstall_sighandlers
=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 <signal.h>
25919 #ifdef HAVE_UNISTD_H
25920 #include <unistd.h>
25923 typedef RETSIGTYPE sigfunc();
25927 #ifdef HAVE_POSIX_SIGNALS
25929 set_signal_handler(sig, handler)
25933 struct sigaction act, oact;
25934 act.sa_handler = handler;
25936 sigemptyset (&act.sa_mask);
25937 sigemptyset (&oact.sa_mask);
25938 sigaction (sig, &act, &oact);
25939 return (oact.sa_handler);
25942 #define set_signal_handler(s, h) signal(s, h)
25955 set_signal_handler(SIGINT, sigint);
25956 kill((int)getpid(), SIGINT);
25957 kill((int)getpid(), SIGINT);
25958 exit(nsigint != 2);
25962 rm -f conftest
$ac_exeext
25963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25964 (eval $ac_link) 2>&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25969 (eval $ac_try) 2>&5
25971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); }; }; then
25973 bash_cv_must_reinstall_sighandlers
=no
25975 echo "$as_me: program exited with status $ac_status" >&5
25976 echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.
$ac_ext >&5
25979 ( exit $ac_status )
25980 bash_cv_must_reinstall_sighandlers
=yes
25982 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25986 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
25987 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
25988 if test $bash_cv_must_reinstall_sighandlers = yes; then
25989 cat >>confdefs.h
<<\_ACEOF
25990 #define MUST_REINSTALL_SIGHANDLERS 1
25996 echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
25997 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
25998 if test "${bash_cv_job_control_missing+set}" = set; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
26001 if test "$cross_compiling" = yes; then
26002 { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
26003 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
26004 bash_cv_job_control_missing
=missing
26007 cat >conftest.
$ac_ext <<_ACEOF
26010 cat confdefs.h
>>conftest.
$ac_ext
26011 cat >>conftest.
$ac_ext <<_ACEOF
26012 /* end confdefs.h. */
26014 #include <sys/types.h>
26015 #ifdef HAVE_SYS_WAIT_H
26016 #include <sys/wait.h>
26018 #ifdef HAVE_UNISTD_H
26019 #include <unistd.h>
26021 #include <signal.h>
26023 /* Add more tests in here as appropriate. */
26027 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
26031 /* signals and tty control. */
26032 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
26036 /* process control */
26037 #if !defined (WNOHANG) || !defined (WUNTRACED)
26041 /* Posix systems have tcgetpgrp and waitpid. */
26042 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
26046 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
26050 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
26051 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
26058 rm -f conftest
$ac_exeext
26059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26060 (eval $ac_link) 2>&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26065 (eval $ac_try) 2>&5
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); }; }; then
26069 bash_cv_job_control_missing
=present
26071 echo "$as_me: program exited with status $ac_status" >&5
26072 echo "$as_me: failed program was:" >&5
26073 sed 's/^/| /' conftest.
$ac_ext >&5
26075 ( exit $ac_status )
26076 bash_cv_job_control_missing
=missing
26078 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26082 echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
26083 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
26084 if test $bash_cv_job_control_missing = missing
; then
26085 cat >>confdefs.h
<<\_ACEOF
26086 #define JOB_CONTROL_MISSING 1
26091 echo "$as_me:$LINENO: checking for presence of named pipes" >&5
26092 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
26093 if test "${bash_cv_sys_named_pipes+set}" = set; then
26094 echo $ECHO_N "(cached) $ECHO_C" >&6
26096 if test "$cross_compiling" = yes; then
26097 { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
26098 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
26099 bash_cv_sys_named_pipes
=missing
26102 cat >conftest.
$ac_ext <<_ACEOF
26105 cat confdefs.h
>>conftest.
$ac_ext
26106 cat >>conftest.
$ac_ext <<_ACEOF
26107 /* end confdefs.h. */
26109 #include <sys/types.h>
26110 #include <sys/stat.h>
26111 #ifdef HAVE_UNISTD_H
26112 #include <unistd.h>
26115 /* Add more tests in here as appropriate. */
26120 #if defined (HAVE_MKFIFO)
26124 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
26131 err = mkdir("/tmp/bash-aclocal", 0700);
26136 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
26138 rmdir ("/tmp/bash-aclocal");
26142 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
26143 rmdir ("/tmp/bash-aclocal");
26147 rm -f conftest
$ac_exeext
26148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26149 (eval $ac_link) 2>&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154 (eval $ac_try) 2>&5
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); }; }; then
26158 bash_cv_sys_named_pipes
=present
26160 echo "$as_me: program exited with status $ac_status" >&5
26161 echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.
$ac_ext >&5
26164 ( exit $ac_status )
26165 bash_cv_sys_named_pipes
=missing
26167 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26171 echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
26172 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
26173 if test $bash_cv_sys_named_pipes = missing
; then
26174 cat >>confdefs.h
<<\_ACEOF
26175 #define NAMED_PIPES_MISSING 1
26181 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
26182 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
26183 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
26184 echo $ECHO_N "(cached) $ECHO_C" >&6
26186 cat >conftest.
$ac_ext <<_ACEOF
26189 cat confdefs.h
>>conftest.
$ac_ext
26190 cat >>conftest.
$ac_ext <<_ACEOF
26191 /* end confdefs.h. */
26192 #include <sys/types.h>
26193 #include <termios.h>
26199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26200 $EGREP "yes" >/dev
/null
2>&1; then
26201 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
26203 ac_cv_sys_tiocgwinsz_in_termios_h
=no
26208 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
26209 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
26211 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
26212 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
26213 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
26214 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
26215 echo $ECHO_N "(cached) $ECHO_C" >&6
26217 cat >conftest.
$ac_ext <<_ACEOF
26220 cat confdefs.h
>>conftest.
$ac_ext
26221 cat >>conftest.
$ac_ext <<_ACEOF
26222 /* end confdefs.h. */
26223 #include <sys/types.h>
26224 #include <sys/ioctl.h>
26230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26231 $EGREP "yes" >/dev
/null
2>&1; then
26232 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
26234 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
26239 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
26240 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
26242 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
26244 cat >>confdefs.h
<<\_ACEOF
26245 #define GWINSZ_IN_SYS_IOCTL 1
26251 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
26252 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
26253 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
26254 echo $ECHO_N "(cached) $ECHO_C" >&6
26256 cat >conftest.
$ac_ext <<_ACEOF
26259 cat confdefs.h
>>conftest.
$ac_ext
26260 cat >>conftest.
$ac_ext <<_ACEOF
26261 /* end confdefs.h. */
26262 #include <sys/types.h>
26263 #include <sys/ioctl.h>
26272 rm -f conftest.
$ac_objext
26273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26274 (eval $ac_compile) 2>conftest.er1
26276 grep -v '^ *+' conftest.er1
>conftest.err
26278 cat conftest.err
>&5
26279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); } &&
26281 { ac_try
='test -z "$ac_c_werror_flag"
26282 || test ! -s conftest.err'
26283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26284 (eval $ac_try) 2>&5
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); }; } &&
26288 { ac_try
='test -s conftest.$ac_objext'
26289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26290 (eval $ac_try) 2>&5
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); }; }; then
26294 bash_cv_tiocstat_in_ioctl
=yes
26296 echo "$as_me: failed program was:" >&5
26297 sed 's/^/| /' conftest.
$ac_ext >&5
26299 bash_cv_tiocstat_in_ioctl
=no
26301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26304 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
26305 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
26306 if test $bash_cv_tiocstat_in_ioctl = yes; then
26307 cat >>confdefs.h
<<\_ACEOF
26308 #define TIOCSTAT_IN_SYS_IOCTL 1
26313 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
26314 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
26315 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
26316 echo $ECHO_N "(cached) $ECHO_C" >&6
26318 cat >conftest.
$ac_ext <<_ACEOF
26321 cat confdefs.h
>>conftest.
$ac_ext
26322 cat >>conftest.
$ac_ext <<_ACEOF
26323 /* end confdefs.h. */
26324 #include <sys/types.h>
26325 #include <sys/ioctl.h>
26334 rm -f conftest.
$ac_objext
26335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26336 (eval $ac_compile) 2>conftest.er1
26338 grep -v '^ *+' conftest.er1
>conftest.err
26340 cat conftest.err
>&5
26341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342 (exit $ac_status); } &&
26343 { ac_try
='test -z "$ac_c_werror_flag"
26344 || test ! -s conftest.err'
26345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26346 (eval $ac_try) 2>&5
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); }; } &&
26350 { ac_try
='test -s conftest.$ac_objext'
26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352 (eval $ac_try) 2>&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); }; }; then
26356 bash_cv_fionread_in_ioctl
=yes
26358 echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.
$ac_ext >&5
26361 bash_cv_fionread_in_ioctl
=no
26363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26366 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
26367 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
26368 if test $bash_cv_fionread_in_ioctl = yes; then
26369 cat >>confdefs.h
<<\_ACEOF
26370 #define FIONREAD_IN_SYS_IOCTL 1
26377 echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
26378 echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6
26379 if test "${bash_cv_wcontinued_broken+set}" = set; then
26380 echo $ECHO_N "(cached) $ECHO_C" >&6
26382 if test "$cross_compiling" = yes; then
26383 { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
26384 echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
26385 bash_cv_wcontinued_broken
=no
26388 cat >conftest.
$ac_ext <<_ACEOF
26391 cat confdefs.h
>>conftest.
$ac_ext
26392 cat >>conftest.
$ac_ext <<_ACEOF
26393 /* end confdefs.h. */
26395 #include <sys/types.h>
26396 #include <sys/wait.h>
26397 #include <unistd.h>
26407 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
26408 if (x == -1 && errno == EINVAL)
26415 rm -f conftest
$ac_exeext
26416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26417 (eval $ac_link) 2>&5
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422 (eval $ac_try) 2>&5
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); }; }; then
26426 bash_cv_wcontinued_broken
=no
26428 echo "$as_me: program exited with status $ac_status" >&5
26429 echo "$as_me: failed program was:" >&5
26430 sed 's/^/| /' conftest.
$ac_ext >&5
26432 ( exit $ac_status )
26433 bash_cv_wcontinued_broken
=yes
26435 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26439 echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
26440 echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6
26441 if test $bash_cv_wcontinued_broken = yes; then
26442 cat >>confdefs.h
<<\_ACEOF
26443 #define WCONTINUED_BROKEN 1
26449 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
26450 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
26451 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
26452 echo $ECHO_N "(cached) $ECHO_C" >&6
26454 cat >conftest.
$ac_ext <<_ACEOF
26457 cat confdefs.h
>>conftest.
$ac_ext
26458 cat >>conftest.
$ac_ext <<_ACEOF
26459 /* end confdefs.h. */
26460 #include <sys/types.h>
26469 rm -f conftest.
$ac_objext
26470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26471 (eval $ac_compile) 2>conftest.er1
26473 grep -v '^ *+' conftest.er1
>conftest.err
26475 cat conftest.err
>&5
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); } &&
26478 { ac_try
='test -z "$ac_c_werror_flag"
26479 || test ! -s conftest.err'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; } &&
26485 { ac_try
='test -s conftest.$ac_objext'
26486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487 (eval $ac_try) 2>&5
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); }; }; then
26491 bash_cv_speed_t_in_sys_types
=yes
26493 echo "$as_me: failed program was:" >&5
26494 sed 's/^/| /' conftest.
$ac_ext >&5
26496 bash_cv_speed_t_in_sys_types
=no
26498 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26501 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
26502 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
26503 if test $bash_cv_speed_t_in_sys_types = yes; then
26504 cat >>confdefs.h
<<\_ACEOF
26505 #define SPEED_T_IN_SYS_TYPES 1
26510 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
26511 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
26512 if test "${bash_cv_getpw_declared+set}" = set; then
26513 echo $ECHO_N "(cached) $ECHO_C" >&6
26515 cat >conftest.
$ac_ext <<_ACEOF
26518 cat confdefs.h
>>conftest.
$ac_ext
26519 cat >>conftest.
$ac_ext <<_ACEOF
26520 /* end confdefs.h. */
26522 #include <sys/types.h>
26523 #ifdef HAVE_UNISTD_H
26524 # include <unistd.h>
26529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26530 $EGREP "getpwuid" >/dev
/null
2>&1; then
26531 bash_cv_getpw_declared
=yes
26533 bash_cv_getpw_declared
=no
26539 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
26540 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
26541 if test $bash_cv_getpw_declared = yes; then
26542 cat >>confdefs.h
<<\_ACEOF
26543 #define HAVE_GETPW_DECLS 1
26548 echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
26549 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
26550 if test "${bash_cv_unusable_rtsigs+set}" = set; then
26551 echo $ECHO_N "(cached) $ECHO_C" >&6
26553 if test "$cross_compiling" = yes; then
26554 { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
26555 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
26556 bash_cv_unusable_rtsigs
=yes
26559 cat >conftest.
$ac_ext <<_ACEOF
26562 cat confdefs.h
>>conftest.
$ac_ext
26563 cat >>conftest.
$ac_ext <<_ACEOF
26564 /* end confdefs.h. */
26566 #include <sys/types.h>
26567 #include <signal.h>
26575 int n_sigs = 2 * NSIG;
26577 int rtmin = SIGRTMIN;
26582 exit(rtmin < n_sigs);
26585 rm -f conftest
$ac_exeext
26586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26587 (eval $ac_link) 2>&5
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592 (eval $ac_try) 2>&5
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); }; }; then
26596 bash_cv_unusable_rtsigs
=yes
26598 echo "$as_me: program exited with status $ac_status" >&5
26599 echo "$as_me: failed program was:" >&5
26600 sed 's/^/| /' conftest.
$ac_ext >&5
26602 ( exit $ac_status )
26603 bash_cv_unusable_rtsigs
=no
26605 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26609 echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
26610 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
26611 if test $bash_cv_unusable_rtsigs = yes; then
26612 cat >>confdefs.h
<<\_ACEOF
26613 #define UNUSABLE_RT_SIGNALS 1
26622 if test "$bash_cv_sys_siglist" = no
&& test "$bash_cv_under_sys_siglist" = no
&& test "$bash_cv_have_strsignal" = no
; then
26623 SIGLIST_O
=siglist.o
26631 hpux
*) echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
26632 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
26633 if test "${bash_cv_kernel_rlimit+set}" = set; then
26634 echo $ECHO_N "(cached) $ECHO_C" >&6
26636 cat >conftest.
$ac_ext <<_ACEOF
26639 cat confdefs.h
>>conftest.
$ac_ext
26640 cat >>conftest.
$ac_ext <<_ACEOF
26641 /* end confdefs.h. */
26643 #include <sys/types.h>
26644 #include <sys/resource.h>
26657 rm -f conftest.
$ac_objext
26658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26659 (eval $ac_compile) 2>conftest.er1
26661 grep -v '^ *+' conftest.er1
>conftest.err
26663 cat conftest.err
>&5
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); } &&
26666 { ac_try
='test -z "$ac_c_werror_flag"
26667 || test ! -s conftest.err'
26668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669 (eval $ac_try) 2>&5
26671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); }; } &&
26673 { ac_try
='test -s conftest.$ac_objext'
26674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26675 (eval $ac_try) 2>&5
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; }; then
26679 bash_cv_kernel_rlimit
=no
26681 echo "$as_me: failed program was:" >&5
26682 sed 's/^/| /' conftest.
$ac_ext >&5
26684 cat >conftest.
$ac_ext <<_ACEOF
26687 cat confdefs.h
>>conftest.
$ac_ext
26688 cat >>conftest.
$ac_ext <<_ACEOF
26689 /* end confdefs.h. */
26691 #include <sys/types.h>
26693 #include <sys/resource.h>
26707 rm -f conftest.
$ac_objext
26708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26709 (eval $ac_compile) 2>conftest.er1
26711 grep -v '^ *+' conftest.er1
>conftest.err
26713 cat conftest.err
>&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } &&
26716 { ac_try
='test -z "$ac_c_werror_flag"
26717 || test ! -s conftest.err'
26718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719 (eval $ac_try) 2>&5
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; } &&
26723 { ac_try
='test -s conftest.$ac_objext'
26724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26725 (eval $ac_try) 2>&5
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); }; }; then
26729 bash_cv_kernel_rlimit
=yes
26731 echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.
$ac_ext >&5
26734 bash_cv_kernel_rlimit
=no
26736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26742 echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
26743 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
26744 if test $bash_cv_kernel_rlimit = yes; then
26745 cat >>confdefs.h
<<\_ACEOF
26746 #define RLIMIT_NEEDS_KERNEL 1
26753 if test "$opt_readline" = yes; then
26755 aix
*) prefer_curses
=yes ;;
26758 if test "X$bash_cv_termcap_lib" = "X"; then
26761 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
26762 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
26765 if test "${bash_cv_termcap_lib+set}" = set; then
26766 echo $ECHO_N "(cached) $ECHO_C" >&6
26768 echo "$as_me:$LINENO: checking for tgetent" >&5
26769 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
26770 if test "${ac_cv_func_tgetent+set}" = set; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
26773 cat >conftest.
$ac_ext <<_ACEOF
26776 cat confdefs.h
>>conftest.
$ac_ext
26777 cat >>conftest.
$ac_ext <<_ACEOF
26778 /* end confdefs.h. */
26779 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
26780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26781 #define tgetent innocuous_tgetent
26783 /* System header to define __stub macros and hopefully few prototypes,
26784 which can conflict with char tgetent (); below.
26785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26786 <limits.h> exists even on freestanding compilers. */
26789 # include <limits.h>
26791 # include <assert.h>
26796 /* Override any gcc2 internal prototype to avoid an error. */
26801 /* We use char because int might match the return type of a gcc2
26802 builtin and then its argument prototype would still apply. */
26804 /* The GNU C library defines this for functions which it implements
26805 to always fail with ENOSYS. Some functions are actually named
26806 something starting with __ and the normal name is an alias. */
26807 #if defined (__stub_tgetent) || defined (__stub___tgetent)
26810 char (*f) () = tgetent;
26819 return f != tgetent;
26824 rm -f conftest.
$ac_objext conftest
$ac_exeext
26825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26826 (eval $ac_link) 2>conftest.er1
26828 grep -v '^ *+' conftest.er1
>conftest.err
26830 cat conftest.err
>&5
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } &&
26833 { ac_try
='test -z "$ac_c_werror_flag"
26834 || test ! -s conftest.err'
26835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26836 (eval $ac_try) 2>&5
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); }; } &&
26840 { ac_try
='test -s conftest$ac_exeext'
26841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842 (eval $ac_try) 2>&5
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); }; }; then
26846 ac_cv_func_tgetent
=yes
26848 echo "$as_me: failed program was:" >&5
26849 sed 's/^/| /' conftest.
$ac_ext >&5
26851 ac_cv_func_tgetent
=no
26853 rm -f conftest.err conftest.
$ac_objext \
26854 conftest
$ac_exeext conftest.
$ac_ext
26856 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
26857 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
26858 if test $ac_cv_func_tgetent = yes; then
26859 bash_cv_termcap_lib
=libc
26861 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26862 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
26863 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26864 echo $ECHO_N "(cached) $ECHO_C" >&6
26866 ac_check_lib_save_LIBS
=$LIBS
26867 LIBS
="-ltermcap $LIBS"
26868 cat >conftest.
$ac_ext <<_ACEOF
26871 cat confdefs.h
>>conftest.
$ac_ext
26872 cat >>conftest.
$ac_ext <<_ACEOF
26873 /* end confdefs.h. */
26875 /* Override any gcc2 internal prototype to avoid an error. */
26879 /* We use char because int might match the return type of a gcc2
26880 builtin and then its argument prototype would still apply. */
26890 rm -f conftest.
$ac_objext conftest
$ac_exeext
26891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26892 (eval $ac_link) 2>conftest.er1
26894 grep -v '^ *+' conftest.er1
>conftest.err
26896 cat conftest.err
>&5
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); } &&
26899 { ac_try
='test -z "$ac_c_werror_flag"
26900 || test ! -s conftest.err'
26901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26902 (eval $ac_try) 2>&5
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); }; } &&
26906 { ac_try
='test -s conftest$ac_exeext'
26907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908 (eval $ac_try) 2>&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); }; }; then
26912 ac_cv_lib_termcap_tgetent
=yes
26914 echo "$as_me: failed program was:" >&5
26915 sed 's/^/| /' conftest.
$ac_ext >&5
26917 ac_cv_lib_termcap_tgetent
=no
26919 rm -f conftest.err conftest.
$ac_objext \
26920 conftest
$ac_exeext conftest.
$ac_ext
26921 LIBS
=$ac_check_lib_save_LIBS
26923 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26924 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
26925 if test $ac_cv_lib_termcap_tgetent = yes; then
26926 bash_cv_termcap_lib
=libtermcap
26928 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
26929 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
26930 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26933 ac_check_lib_save_LIBS
=$LIBS
26934 LIBS
="-ltinfo $LIBS"
26935 cat >conftest.
$ac_ext <<_ACEOF
26938 cat confdefs.h
>>conftest.
$ac_ext
26939 cat >>conftest.
$ac_ext <<_ACEOF
26940 /* end confdefs.h. */
26942 /* Override any gcc2 internal prototype to avoid an error. */
26946 /* We use char because int might match the return type of a gcc2
26947 builtin and then its argument prototype would still apply. */
26957 rm -f conftest.
$ac_objext conftest
$ac_exeext
26958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26959 (eval $ac_link) 2>conftest.er1
26961 grep -v '^ *+' conftest.er1
>conftest.err
26963 cat conftest.err
>&5
26964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); } &&
26966 { ac_try
='test -z "$ac_c_werror_flag"
26967 || test ! -s conftest.err'
26968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26969 (eval $ac_try) 2>&5
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); }; } &&
26973 { ac_try
='test -s conftest$ac_exeext'
26974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26975 (eval $ac_try) 2>&5
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); }; }; then
26979 ac_cv_lib_tinfo_tgetent
=yes
26981 echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.
$ac_ext >&5
26984 ac_cv_lib_tinfo_tgetent
=no
26986 rm -f conftest.err conftest.
$ac_objext \
26987 conftest
$ac_exeext conftest.
$ac_ext
26988 LIBS
=$ac_check_lib_save_LIBS
26990 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
26991 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
26992 if test $ac_cv_lib_tinfo_tgetent = yes; then
26993 bash_cv_termcap_lib
=libtinfo
26995 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
26996 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
26997 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
26998 echo $ECHO_N "(cached) $ECHO_C" >&6
27000 ac_check_lib_save_LIBS
=$LIBS
27001 LIBS
="-lcurses $LIBS"
27002 cat >conftest.
$ac_ext <<_ACEOF
27005 cat confdefs.h
>>conftest.
$ac_ext
27006 cat >>conftest.
$ac_ext <<_ACEOF
27007 /* end confdefs.h. */
27009 /* Override any gcc2 internal prototype to avoid an error. */
27013 /* We use char because int might match the return type of a gcc2
27014 builtin and then its argument prototype would still apply. */
27024 rm -f conftest.
$ac_objext conftest
$ac_exeext
27025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27026 (eval $ac_link) 2>conftest.er1
27028 grep -v '^ *+' conftest.er1
>conftest.err
27030 cat conftest.err
>&5
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); } &&
27033 { ac_try
='test -z "$ac_c_werror_flag"
27034 || test ! -s conftest.err'
27035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27036 (eval $ac_try) 2>&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; } &&
27040 { ac_try
='test -s conftest$ac_exeext'
27041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27042 (eval $ac_try) 2>&5
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); }; }; then
27046 ac_cv_lib_curses_tgetent
=yes
27048 echo "$as_me: failed program was:" >&5
27049 sed 's/^/| /' conftest.
$ac_ext >&5
27051 ac_cv_lib_curses_tgetent
=no
27053 rm -f conftest.err conftest.
$ac_objext \
27054 conftest
$ac_exeext conftest.
$ac_ext
27055 LIBS
=$ac_check_lib_save_LIBS
27057 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
27058 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
27059 if test $ac_cv_lib_curses_tgetent = yes; then
27060 bash_cv_termcap_lib
=libcurses
27062 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
27063 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
27064 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
27065 echo $ECHO_N "(cached) $ECHO_C" >&6
27067 ac_check_lib_save_LIBS
=$LIBS
27068 LIBS
="-lncurses $LIBS"
27069 cat >conftest.
$ac_ext <<_ACEOF
27072 cat confdefs.h
>>conftest.
$ac_ext
27073 cat >>conftest.
$ac_ext <<_ACEOF
27074 /* end confdefs.h. */
27076 /* Override any gcc2 internal prototype to avoid an error. */
27080 /* We use char because int might match the return type of a gcc2
27081 builtin and then its argument prototype would still apply. */
27091 rm -f conftest.
$ac_objext conftest
$ac_exeext
27092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27093 (eval $ac_link) 2>conftest.er1
27095 grep -v '^ *+' conftest.er1
>conftest.err
27097 cat conftest.err
>&5
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); } &&
27100 { ac_try
='test -z "$ac_c_werror_flag"
27101 || test ! -s conftest.err'
27102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27103 (eval $ac_try) 2>&5
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); }; } &&
27107 { ac_try
='test -s conftest$ac_exeext'
27108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27109 (eval $ac_try) 2>&5
27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); }; }; then
27113 ac_cv_lib_ncurses_tgetent
=yes
27115 echo "$as_me: failed program was:" >&5
27116 sed 's/^/| /' conftest.
$ac_ext >&5
27118 ac_cv_lib_ncurses_tgetent
=no
27120 rm -f conftest.err conftest.
$ac_objext \
27121 conftest
$ac_exeext conftest.
$ac_ext
27122 LIBS
=$ac_check_lib_save_LIBS
27124 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
27125 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
27126 if test $ac_cv_lib_ncurses_tgetent = yes; then
27127 bash_cv_termcap_lib
=libncurses
27129 bash_cv_termcap_lib
=gnutermcap
27142 if test "X$_bash_needmsg" = "Xyes"; then
27143 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
27144 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
27146 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
27147 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
27148 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
27149 LDFLAGS
="$LDFLAGS -L./lib/termcap"
27150 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
27151 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
27152 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
27153 TERMCAP_LIB
=-ltermcap
27155 elif test $bash_cv_termcap_lib = libtinfo
; then
27156 TERMCAP_LIB
=-ltinfo
27158 elif test $bash_cv_termcap_lib = libncurses
; then
27159 TERMCAP_LIB
=-lncurses
27161 elif test $bash_cv_termcap_lib = libc
; then
27165 TERMCAP_LIB
=-lcurses
27173 echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
27174 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
27175 if test "${bash_cv_dev_fd+set}" = set; then
27176 echo $ECHO_N "(cached) $ECHO_C" >&6
27179 if test -d /dev
/fd
&& test -r /dev
/fd
/0 < /dev
/null
; then
27180 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
27182 if test -r /dev
/fd
/3; then
27183 bash_cv_dev_fd
=standard
27185 bash_cv_dev_fd
=absent
27189 if test -z "$bash_cv_dev_fd" ; then
27190 if test -d /proc
/self
/fd
&& test -r /proc
/self
/fd
/0 < /dev
/null
; then
27191 bash_cv_dev_fd
=whacky
27193 bash_cv_dev_fd
=absent
27199 echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
27200 echo "${ECHO_T}$bash_cv_dev_fd" >&6
27201 if test $bash_cv_dev_fd = "standard"; then
27202 cat >>confdefs.h
<<\_ACEOF
27203 #define HAVE_DEV_FD 1
27206 cat >>confdefs.h
<<\_ACEOF
27207 #define DEV_FD_PREFIX "/dev/fd/"
27210 elif test $bash_cv_dev_fd = "whacky"; then
27211 cat >>confdefs.h
<<\_ACEOF
27212 #define HAVE_DEV_FD 1
27215 cat >>confdefs.h
<<\_ACEOF
27216 #define DEV_FD_PREFIX "/proc/self/fd/"
27221 echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
27222 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
27223 if test "${bash_cv_dev_stdin+set}" = set; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
27226 if test -d /dev
/fd
&& test -r /dev
/stdin
< /dev
/null
; then
27227 bash_cv_dev_stdin
=present
27228 elif test -d /proc
/self
/fd
&& test -r /dev
/stdin
< /dev
/null
; then
27229 bash_cv_dev_stdin
=present
27231 bash_cv_dev_stdin
=absent
27236 echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
27237 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
27238 if test $bash_cv_dev_stdin = "present"; then
27239 cat >>confdefs.h
<<\_ACEOF
27240 #define HAVE_DEV_STDIN 1
27245 echo "$as_me:$LINENO: checking for default mail directory" >&5
27246 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
27247 if test "${bash_cv_mail_dir+set}" = set; then
27248 echo $ECHO_N "(cached) $ECHO_C" >&6
27250 if test -d /var
/mail; then
27251 bash_cv_mail_dir
=/var
/mail
27252 elif test -d /var
/spool
/mail; then
27253 bash_cv_mail_dir
=/var
/spool
/mail
27254 elif test -d /usr
/mail; then
27255 bash_cv_mail_dir
=/usr
/mail
27256 elif test -d /usr
/spool
/mail; then
27257 bash_cv_mail_dir
=/usr
/spool
/mail
27259 bash_cv_mail_dir
=unknown
27264 echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
27265 echo "${ECHO_T}$bash_cv_mail_dir" >&6
27266 cat >>confdefs.h
<<_ACEOF
27267 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
27272 if test "$bash_cv_job_control_missing" = missing
; then
27276 if test "$opt_job_control" = yes; then
27277 cat >>confdefs.h
<<\_ACEOF
27278 #define JOB_CONTROL 1
27292 case "${host_os}" in
27293 sysv4.2
*) cat >>confdefs.h
<<\_ACEOF
27297 cat >>confdefs.h
<<\_ACEOF
27301 sysv4
*) cat >>confdefs.h
<<\_ACEOF
27305 sysv5
*) cat >>confdefs.h
<<\_ACEOF
27309 hpux9
*) LOCAL_CFLAGS
="-DHPUX9 -DHPUX" ;;
27310 hpux
*) LOCAL_CFLAGS
=-DHPUX ;;
27311 dgux
*) LOCAL_CFLAGS
=-D_DGUX_SOURCE; LOCAL_LIBS
=-ldgc ;;
27312 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
27313 rhapsody
*) LOCAL_CFLAGS
=-DRHAPSODY ;;
27314 darwin
*) LOCAL_CFLAGS
=-DMACOSX ;;
27315 sco3.2v5
*) LOCAL_CFLAGS
="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
27316 sco3.2v4
*) LOCAL_CFLAGS
="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
27317 sco3.2
*) LOCAL_CFLAGS
=-DMUST_UNBLOCK_CHLD ;;
27318 sunos4
*) LOCAL_CFLAGS
=-DSunOS4 ;;
27319 solaris2.5
*) LOCAL_CFLAGS
="-DSunOS5 -DSOLARIS" ;;
27320 solaris2
*) LOCAL_CFLAGS
=-DSOLARIS ;;
27321 lynxos
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
27322 linux
*) LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
27323 case "`uname -r`" in
27324 2.
[456789]*|
3*) cat >>confdefs.h
<<\_ACEOF
27325 #define PGRP_PIPE 1
27329 *qnx6
*) LOCAL_CFLAGS
="-Dqnx -Dqnx6" LOCAL_LIBS
="-lncurses" ;;
27330 *qnx
*) LOCAL_CFLAGS
="-Dqnx -F -3s" LOCAL_LDFLAGS
="-3s" LOCAL_LIBS
="-lunix -lncurses" ;;
27331 powerux
*) LOCAL_LIBS
="-lgen" ;;
27332 cygwin
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
27333 opennt
*|interix
*) LOCAL_CFLAGS
="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
27336 case "${host_os}-${CC}" in
27337 aix4.2
*-*gcc
*) LOCAL_LDFLAGS
="-Xlinker -bexpall -Xlinker -brtl" ;;
27338 aix4.2
*) LOCAL_LDFLAGS
="-bexpall -brtl" ;;
27339 bsdi4
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
27342 case "${host_os}" in
27344 if test -x /usr
/bin
/objformat
&& test "`/usr/bin/objformat`" = "elf" ; then
27345 LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
27347 freebsdelf
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
27348 dragonfly
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
27351 case "$host_cpu" in
27352 *cray
*) LOCAL_CFLAGS
="-DCRAY" ;; # shell var so config.h can use it
27355 case "$host_cpu-$host_os" in
27356 ibmrt-
*bsd4
*) LOCAL_CFLAGS
="-ma -U__STDC__" ;;
27359 case "$host_cpu-$host_vendor-$host_os" in
27360 m88k-motorola-sysv3
) LOCAL_CFLAGS
=-DWAITPID_BROKEN ;;
27361 mips-pyramid-sysv4
) LOCAL_CFLAGS
=-Xa ;;
27365 # Shared object configuration section. These values are generated by
27366 # ${srcdir}/support/shobj-conf
27368 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support
/shobj-conf
27370 echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
27371 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
27372 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
27380 echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
27381 echo "${ECHO_T}$SHOBJ_STATUS" >&6
27384 # try to create a directory tree if the source is elsewhere
27385 # this should be packaged into a script accessible via ${srcdir}/support
27388 *) for d
in doc tests support lib examples
; do # dirs
27389 test -d $d || mkdir
$d
27391 for ld
in readline glob tilde malloc sh termcap
; do # libdirs
27392 test -d lib
/$ld || mkdir lib
/$ld
27394 test -d examples
/loadables || mkdir examples
/loadables
# loadable builtins
27395 test -d examples
/loadables
/perl || mkdir examples
/loadables
/perl
27400 case "$BUILD_DIR" in
27401 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
27428 #AC_SUBST(ALLOCA_SOURCE)
27429 #AC_SUBST(ALLOCA_OBJECT)
27431 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"
27432 ac_config_commands
="$ac_config_commands default"
27433 cat >confcache
<<\_ACEOF
27434 # This file is a shell script that caches the results of configure
27435 # tests run on this system so they can be shared between configure
27436 # scripts and configure runs, see configure's option --config-cache.
27437 # It is not useful on other systems. If it contains results you don't
27438 # want to keep, you may remove or edit it.
27440 # config.status only pays attention to the cache file if you give it
27441 # the --recheck option to rerun configure.
27443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27445 # following values.
27449 # The following way of writing the cache mishandles newlines in values,
27450 # but we know of no workaround that is simple, portable, and efficient.
27451 # So, don't put newlines in cache variables' values.
27452 # Ultrix sh set writes to stderr and can't be redirected directly,
27453 # and sets the high bit in the cache file unless we assign to the vars.
27456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27458 # `set' does not quote correctly, so add quotes (double-quote
27459 # substitution turns \\\\ into \\, and sed turns \\ into \).
27462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27465 # `set' quotes correctly as required by POSIX, so do not add quotes.
27467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27476 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27478 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
27479 if test -w $cache_file; then
27480 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27481 cat confcache
>$cache_file
27483 echo "not updating unwritable cache $cache_file"
27488 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27489 # Let make expand exec_prefix.
27490 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27494 # trailing colons and then remove the whole line if VPATH becomes empty
27495 # (actually we leave an empty line to preserve line numbers).
27496 if test "x$srcdir" = x.
; then
27497 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
27498 s/:*\$(srcdir):*/:/;
27499 s/:*\${srcdir}:*/:/;
27501 s/^\([^=]*=[ ]*\):*/\1/;
27507 DEFS
=-DHAVE_CONFIG_H
27511 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27512 # 1. Remove the extension, and $U if already installed.
27513 ac_i
=`echo "$ac_i" |
27514 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27516 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
27517 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
27519 LIBOBJS
=$ac_libobjs
27521 LTLIBOBJS
=$ac_ltlibobjs
27525 : ${CONFIG_STATUS=./config.status}
27526 ac_clean_files_save
=$ac_clean_files
27527 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27528 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27529 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27530 cat >$CONFIG_STATUS <<_ACEOF
27532 # Generated by $as_me.
27533 # Run this file to recreate the current configuration.
27534 # Compiler output produced by configure, useful for debugging
27535 # configure, is in config.log if it exists.
27538 ac_cs_recheck=false
27540 SHELL=\${CONFIG_SHELL-$SHELL}
27543 cat >>$CONFIG_STATUS <<\_ACEOF
27544 ## --------------------- ##
27545 ## M4sh Initialization. ##
27546 ## --------------------- ##
27548 # Be Bourne compatible
27549 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27553 # is contrary to our usage. Disable this feature.
27554 alias -g '${1+"$@"}'='"$@"'
27555 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
27558 DUALCASE
=1; export DUALCASE
# for MKS sh
27560 # Support unset when possible.
27561 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
27568 # Work around bugs in pre-3.0 UWIN ksh.
27569 $as_unset ENV MAIL MAILPATH
27576 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27577 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27578 LC_TELEPHONE LC_TIME
27580 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27581 eval $as_var=C
; export $as_var
27587 # Required to use basename.
27588 if expr a
: '\(a\)' >/dev
/null
2>&1; then
27594 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
27595 as_basename
=basename
27601 # Name of the executable.
27602 as_me
=`$as_basename "$0" ||
27603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27604 X"$0" : 'X\(//\)$' \| \
27605 X"$0" : 'X\(/\)$' \| \
27606 . : '\(.\)' 2>/dev/null ||
27608 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27609 /^X\/\(\/\/\)$/{ s//\1/; q; }
27610 /^X\/\(\/\).*/{ s//\1/; q; }
27614 # PATH needs CR, and LINENO needs CR and PATH.
27615 # Avoid depending upon Character Ranges.
27616 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27617 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27618 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27619 as_cr_digits
='0123456789'
27620 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27622 # The user is always right.
27623 if test "${PATH_SEPARATOR+set}" != set; then
27624 echo "#! /bin/sh" >conf$$.sh
27625 echo "exit 0" >>conf$$.sh
27627 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
27636 as_lineno_1
=$LINENO
27637 as_lineno_2
=$LINENO
27638 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
27639 test "x$as_lineno_1" != "x$as_lineno_2" &&
27640 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
27641 # Find who we are. Look in the path if we contain no path at all
27644 *[\\/]* ) as_myself
=$0 ;;
27645 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27646 for as_dir
in $PATH
27649 test -z "$as_dir" && as_dir
=.
27650 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
27655 # We did not find ourselves, most probably we were run as `sh COMMAND'
27656 # in which case we are not to be found in the path.
27657 if test "x$as_myself" = x
; then
27660 if test ! -f "$as_myself"; then
27661 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27662 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27663 { (exit 1); exit 1; }; }
27665 case $CONFIG_SHELL in
27667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27668 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
27671 test -z "$as_dir" && as_dir
=.
27672 for as_base
in sh bash ksh sh5
; do
27675 if ("$as_dir/$as_base" -c '
27676 as_lineno_1=$LINENO
27677 as_lineno_2=$LINENO
27678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27679 test "x$as_lineno_1" != "x$as_lineno_2" &&
27680 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
27681 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
27682 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
27683 CONFIG_SHELL
=$as_dir/$as_base
27684 export CONFIG_SHELL
27685 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27693 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27694 # uniformly replaced by the line number. The first 'sed' inserts a
27695 # line-number line before each line; the second 'sed' does the real
27696 # work. The second script uses 'N' to pair each line-number line
27697 # with the numbered line, and appends trailing '-' during
27698 # substitution so that $LINENO is not a special case at line end.
27699 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27700 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27701 sed '=' <$as_myself |
27706 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27709 s,^['$as_cr_digits']*\n,,
27710 ' >$as_me.lineno
&&
27711 chmod +x
$as_me.lineno ||
27712 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27713 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27714 { (exit 1); exit 1; }; }
27716 # Don't try to exec as it changes $[0], causing all sort of problems
27717 # (the dirname of $[0] is not the place where we might find the
27718 # original and so on. Autoconf is especially sensible to this).
27720 # Exit status is that of the last command.
27725 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27726 *c
*,-n*) ECHO_N
= ECHO_C
='
27728 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
27729 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
27732 if expr a
: '\(a\)' >/dev
/null
2>&1; then
27738 rm -f conf$$ conf$$.exe conf$$.
file
27740 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27741 # We could just check for DJGPP; but this test a) works b) is more generic
27742 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27743 if test -f conf$$.exe
; then
27744 # Don't use ln at all; we don't have any links
27749 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27754 rm -f conf$$ conf$$.exe conf$$.
file
27756 if mkdir
-p .
2>/dev
/null
; then
27759 test -d .
/-p && rmdir .
/-p
27763 as_executable_p
="test -f"
27765 # Sed expression to map a string onto a valid CPP name.
27766 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27768 # Sed expression to map a string onto a valid variable name.
27769 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27773 # We need space, tab and new line, in precisely that order.
27783 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27784 # report actual input values of CONFIG_FILES etc. instead of their
27785 # values after options handling. Logging --version etc. is OK.
27789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27790 ## Running $as_me. ##
27795 This file was extended by bash $as_me 3.2-release, which was
27796 generated by GNU Autoconf 2.59. Invocation command line was
27798 CONFIG_FILES = $CONFIG_FILES
27799 CONFIG_HEADERS = $CONFIG_HEADERS
27800 CONFIG_LINKS = $CONFIG_LINKS
27801 CONFIG_COMMANDS = $CONFIG_COMMANDS
27805 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27809 # Files that config.status was made for.
27810 if test -n "$ac_config_files"; then
27811 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27814 if test -n "$ac_config_headers"; then
27815 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27818 if test -n "$ac_config_links"; then
27819 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27822 if test -n "$ac_config_commands"; then
27823 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27826 cat >>$CONFIG_STATUS <<\_ACEOF
27829 \`$as_me' instantiates files from templates according to the
27830 current configuration.
27832 Usage: $0 [OPTIONS] [FILE]...
27834 -h, --help print this help, then exit
27835 -V, --version print version number, then exit
27836 -q, --quiet do not print progress messages
27837 -d, --debug don't remove temporary files
27838 --recheck update $as_me by reconfiguring in the same conditions
27839 --file=FILE[:TEMPLATE]
27840 instantiate the configuration file FILE
27841 --header=FILE[:TEMPLATE]
27842 instantiate the configuration header FILE
27844 Configuration files:
27847 Configuration headers:
27850 Configuration commands:
27853 Report bugs to <bug-autoconf@gnu.org>."
27856 cat >>$CONFIG_STATUS <<_ACEOF
27858 bash config.status 3.2-release
27859 configured by $0, generated by GNU Autoconf 2.59,
27860 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27862 Copyright (C) 2003 Free Software Foundation, Inc.
27863 This config.status script is free software; the Free Software Foundation
27864 gives unlimited permission to copy, distribute and modify it."
27869 cat >>$CONFIG_STATUS <<\_ACEOF
27870 # If no file are specified by the user, then we need to provide default
27871 # value. By we need to know if files were specified by the user.
27877 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
27878 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
27886 *) # This is not an option, so the user has probably given explicit
27889 ac_need_defaults
=false
;;
27893 # Handling of the options.
27895 cat >>$CONFIG_STATUS <<\_ACEOF
27896 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27898 --version |
--vers* |
-V )
27899 echo "$ac_cs_version"; exit 0 ;;
27901 # Conflict between --help and --header
27902 { { echo "$as_me:$LINENO: error: ambiguous option: $1
27903 Try \`$0 --help' for more information." >&5
27904 echo "$as_me: error: ambiguous option: $1
27905 Try \`$0 --help' for more information." >&2;}
27906 { (exit 1); exit 1; }; };;
27907 --help |
--hel |
-h )
27908 echo "$ac_cs_usage"; exit 0 ;;
27909 --debug |
--d* |
-d )
27911 --file |
--fil |
--fi |
--f )
27913 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
27914 ac_need_defaults
=false
;;
27915 --header |
--heade |
--head |
--hea )
27917 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
27918 ac_need_defaults
=false
;;
27919 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27920 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27923 # This is an error.
27924 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27925 Try \`$0 --help' for more information." >&5
27926 echo "$as_me: error: unrecognized option: $1
27927 Try \`$0 --help' for more information." >&2;}
27928 { (exit 1); exit 1; }; } ;;
27930 *) ac_config_targets
="$ac_config_targets $1" ;;
27936 ac_configure_extra_args
=
27938 if $ac_cs_silent; then
27940 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27944 cat >>$CONFIG_STATUS <<_ACEOF
27945 if \$ac_cs_recheck; then
27946 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27947 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27952 cat >>$CONFIG_STATUS <<_ACEOF
27954 # INIT-COMMANDS section.
27957 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
27958 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
27960 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27961 # Capture the value of LINGUAS because we need it to compute CATALOGS.
27962 LINGUAS="${LINGUAS-%UNSET%}"
27969 cat >>$CONFIG_STATUS <<\_ACEOF
27970 for ac_config_target
in $ac_config_targets
27972 case "$ac_config_target" in
27973 # Handling of arguments.
27974 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27975 "builtins/Makefile" ) CONFIG_FILES
="$CONFIG_FILES builtins/Makefile" ;;
27976 "lib/readline/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/readline/Makefile" ;;
27977 "lib/glob/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/glob/Makefile" ;;
27978 "lib/intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/intl/Makefile" ;;
27979 "lib/malloc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/malloc/Makefile" ;;
27980 "lib/sh/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/sh/Makefile" ;;
27981 "lib/termcap/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/termcap/Makefile" ;;
27982 "lib/tilde/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/tilde/Makefile" ;;
27983 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
27984 "support/Makefile" ) CONFIG_FILES
="$CONFIG_FILES support/Makefile" ;;
27985 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
27986 "examples/loadables/Makefile" ) CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile" ;;
27987 "examples/loadables/perl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
27988 "pathnames.h" ) CONFIG_FILES
="$CONFIG_FILES pathnames.h" ;;
27989 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
27990 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27991 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
27992 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27993 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27994 { (exit 1); exit 1; }; };;
27998 # If the user did not use the arguments to specify the items to instantiate,
27999 # then the envvar interface is used. Set only those that are not.
28000 # We use the long form for the default assignment because of an extremely
28001 # bizarre bug on SunOS 4.1.3.
28002 if $ac_need_defaults; then
28003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28004 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28008 # Have a temporary directory for convenience. Make it in the build tree
28009 # simply because there is no reason to put it here, and in addition,
28010 # creating and moving files from /tmp can sometimes cause problems.
28011 # Create a temporary directory, and hook for its removal unless debugging.
28014 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28015 trap '{ (exit 1); exit 1; }' 1 2 13 15
28018 # Create a (secure) tmp directory for tmp files.
28021 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28022 test -n "$tmp" && test -d "$tmp"
28025 tmp
=.
/confstat$$
-$RANDOM
28026 (umask 077 && mkdir
$tmp)
28029 echo "$me: cannot create a temporary directory in ." >&2
28030 { (exit 1); exit 1; }
28035 cat >>$CONFIG_STATUS <<_ACEOF
28038 # CONFIG_FILES section.
28041 # No need to generate the scripts if there are no CONFIG_FILES.
28042 # This happens for instance when ./config.status config.h
28043 if test -n "\$CONFIG_FILES"; then
28044 # Protect against being on the right side of a sed subst in config.status.
28045 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28046 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28047 s,@SHELL@,$SHELL,;t t
28048 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28049 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28050 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28051 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28052 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28053 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28054 s,@exec_prefix@,$exec_prefix,;t t
28055 s,@prefix@,$prefix,;t t
28056 s,@program_transform_name@,$program_transform_name,;t t
28057 s,@bindir@,$bindir,;t t
28058 s,@sbindir@,$sbindir,;t t
28059 s,@libexecdir@,$libexecdir,;t t
28060 s,@datadir@,$datadir,;t t
28061 s,@sysconfdir@,$sysconfdir,;t t
28062 s,@sharedstatedir@,$sharedstatedir,;t t
28063 s,@localstatedir@,$localstatedir,;t t
28064 s,@libdir@,$libdir,;t t
28065 s,@includedir@,$includedir,;t t
28066 s,@oldincludedir@,$oldincludedir,;t t
28067 s,@infodir@,$infodir,;t t
28068 s,@mandir@,$mandir,;t t
28069 s,@build_alias@,$build_alias,;t t
28070 s,@host_alias@,$host_alias,;t t
28071 s,@target_alias@,$target_alias,;t t
28072 s,@DEFS@,$DEFS,;t t
28073 s,@ECHO_C@,$ECHO_C,;t t
28074 s,@ECHO_N@,$ECHO_N,;t t
28075 s,@ECHO_T@,$ECHO_T,;t t
28076 s,@LIBS@,$LIBS,;t t
28077 s,@build@,$build,;t t
28078 s,@build_cpu@,$build_cpu,;t t
28079 s,@build_vendor@,$build_vendor,;t t
28080 s,@build_os@,$build_os,;t t
28081 s,@host@,$host,;t t
28082 s,@host_cpu@,$host_cpu,;t t
28083 s,@host_vendor@,$host_vendor,;t t
28084 s,@host_os@,$host_os,;t t
28085 s,@EMACS@,$EMACS,;t t
28086 s,@lispdir@,$lispdir,;t t
28087 s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t
28088 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
28089 s,@PURIFY@,$PURIFY,;t t
28090 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
28091 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
28092 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
28093 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
28094 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
28095 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
28096 s,@htmldir@,$htmldir,;t t
28097 s,@HELPDIR@,$HELPDIR,;t t
28098 s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
28099 s,@HELPINSTALL@,$HELPINSTALL,;t t
28100 s,@HELPSTRINGS@,$HELPSTRINGS,;t t
28102 s,@CFLAGS@,$CFLAGS,;t t
28103 s,@LDFLAGS@,$LDFLAGS,;t t
28104 s,@CPPFLAGS@,$CPPFLAGS,;t t
28105 s,@ac_ct_CC@,$ac_ct_CC,;t t
28106 s,@EXEEXT@,$EXEEXT,;t t
28107 s,@OBJEXT@,$OBJEXT,;t t
28109 s,@EGREP@,$EGREP,;t t
28110 s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
28111 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
28112 s,@SIGNAMES_O@,$SIGNAMES_O,;t t
28113 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
28114 s,@STATIC_LD@,$STATIC_LD,;t t
28115 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
28116 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
28117 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
28118 s,@RL_VERSION@,$RL_VERSION,;t t
28119 s,@RL_MAJOR@,$RL_MAJOR,;t t
28120 s,@RL_MINOR@,$RL_MINOR,;t t
28121 s,@READLINE_LIB@,$READLINE_LIB,;t t
28122 s,@READLINE_DEP@,$READLINE_DEP,;t t
28123 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
28124 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
28125 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
28126 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
28127 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
28128 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
28129 s,@TILDE_LIB@,$TILDE_LIB,;t t
28130 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28131 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28132 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28134 s,@RANLIB@,$RANLIB,;t t
28135 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28136 s,@YACC@,$YACC,;t t
28137 s,@SET_MAKE@,$SET_MAKE,;t t
28138 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
28139 s,@SIZE@,$SIZE,;t t
28140 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
28141 s,@USE_NLS@,$USE_NLS,;t t
28142 s,@MSGFMT@,$MSGFMT,;t t
28143 s,@GMSGFMT@,$GMSGFMT,;t t
28144 s,@XGETTEXT@,$XGETTEXT,;t t
28145 s,@MSGMERGE@,$MSGMERGE,;t t
28146 s,@ALLOCA@,$ALLOCA,;t t
28147 s,@GLIBC21@,$GLIBC21,;t t
28148 s,@LIBICONV@,$LIBICONV,;t t
28149 s,@LTLIBICONV@,$LTLIBICONV,;t t
28150 s,@INTLBISON@,$INTLBISON,;t t
28151 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
28152 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
28153 s,@CATOBJEXT@,$CATOBJEXT,;t t
28154 s,@DATADIRNAME@,$DATADIRNAME,;t t
28155 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
28156 s,@GENCAT@,$GENCAT,;t t
28157 s,@INTLOBJS@,$INTLOBJS,;t t
28158 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
28159 s,@INTLLIBS@,$INTLLIBS,;t t
28160 s,@LIBINTL@,$LIBINTL,;t t
28161 s,@LTLIBINTL@,$LTLIBINTL,;t t
28162 s,@POSUB@,$POSUB,;t t
28163 s,@LIBOBJS@,$LIBOBJS,;t t
28164 s,@INTL_DEP@,$INTL_DEP,;t t
28165 s,@INTL_INC@,$INTL_INC,;t t
28166 s,@LIBINTL_H@,$LIBINTL_H,;t t
28167 s,@SIGLIST_O@,$SIGLIST_O,;t t
28168 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
28169 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
28170 s,@JOBS_O@,$JOBS_O,;t t
28171 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
28172 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
28173 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
28174 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
28175 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
28176 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
28177 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
28178 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
28179 s,@incdir@,$incdir,;t t
28180 s,@BUILD_DIR@,$BUILD_DIR,;t t
28181 s,@ARFLAGS@,$ARFLAGS,;t t
28182 s,@BASHVERS@,$BASHVERS,;t t
28183 s,@RELSTATUS@,$RELSTATUS,;t t
28184 s,@DEBUG@,$DEBUG,;t t
28185 s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
28186 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
28187 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
28188 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
28189 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
28190 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28195 cat >>$CONFIG_STATUS <<\_ACEOF
28196 # Split the substitutions into bite-sized pieces for seds with
28197 # small command number limits, like on Digital OSF/1 and HP-UX.
28198 ac_max_sed_lines
=48
28199 ac_sed_frag
=1 # Number of current file.
28200 ac_beg
=1 # First line for current file.
28201 ac_end
=$ac_max_sed_lines # Line after last line for current file.
28204 while $ac_more_lines; do
28205 if test $ac_beg -gt 1; then
28206 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
28208 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
28210 if test ! -s $tmp/subs.frag
; then
28211 ac_more_lines
=false
28213 # The purpose of the label and of the branching condition is to
28214 # speed up the sed processing (if there are no `@' at all, there
28215 # is no need to browse any of the substitutions).
28216 # These are the two extra sed commands mentioned above.
28218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
28219 if test -z "$ac_sed_cmds"; then
28220 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
28222 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28224 ac_sed_frag
=`expr $ac_sed_frag + 1`
28226 ac_end
=`expr $ac_end + $ac_max_sed_lines`
28229 if test -z "$ac_sed_cmds"; then
28232 fi # test -n "$CONFIG_FILES"
28235 cat >>$CONFIG_STATUS <<\_ACEOF
28236 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
28237 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28239 - |
*:- |
*:-:* ) # input from stdin
28241 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
28242 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
28243 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
28244 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
28245 * ) ac_file_in
=$ac_file.
in ;;
28248 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28249 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
28250 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28251 X"$ac_file" : 'X\(//\)[^/]' \| \
28252 X"$ac_file" : 'X\(//\)$' \| \
28253 X"$ac_file" : 'X\(/\)' \| \
28254 . : '\(.\)' 2>/dev/null ||
28256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28258 /^X\(\/\/\)$/{ s//\1/; q; }
28259 /^X\(\/\).*/{ s//\1/; q; }
28261 { if $as_mkdir_p; then
28266 while test ! -d "$as_dir"; do
28267 as_dirs
="$as_dir $as_dirs"
28268 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
28269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28270 X"$as_dir" : 'X\(//\)[^/]' \| \
28271 X"$as_dir" : 'X\(//\)$' \| \
28272 X"$as_dir" : 'X\(/\)' \| \
28273 . : '\(.\)' 2>/dev/null ||
28275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28277 /^X\(\/\/\)$/{ s//\1/; q; }
28278 /^X\(\/\).*/{ s//\1/; q; }
28281 test ! -n "$as_dirs" || mkdir
$as_dirs
28282 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28283 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28284 { (exit 1); exit 1; }; }; }
28288 if test "$ac_dir" != .
; then
28289 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28290 # A "../" for each directory in $ac_dir_suffix.
28291 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28293 ac_dir_suffix
= ac_top_builddir
=
28297 .
) # No --srcdir option. We are building in place.
28299 if test -z "$ac_top_builddir"; then
28302 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
28304 [\\/]* | ?
:[\\/]* ) # Absolute path.
28305 ac_srcdir
=$srcdir$ac_dir_suffix;
28306 ac_top_srcdir
=$srcdir ;;
28307 *) # Relative path.
28308 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
28309 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
28312 # Do not use `cd foo && pwd` to compute absolute paths, because
28313 # the directories may not exist.
28315 .
) ac_abs_builddir
="$ac_dir";;
28318 .
) ac_abs_builddir
=`pwd`;;
28319 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
28320 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
28323 case $ac_abs_builddir in
28324 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
28326 case ${ac_top_builddir}.
in
28327 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
28328 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
28329 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
28332 case $ac_abs_builddir in
28333 .
) ac_abs_srcdir
=$ac_srcdir;;
28336 .
) ac_abs_srcdir
=$ac_abs_builddir;;
28337 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
28338 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
28341 case $ac_abs_builddir in
28342 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
28344 case $ac_top_srcdir in
28345 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
28346 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
28347 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
28353 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28354 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
28357 if test x
"$ac_file" != x-
; then
28358 { echo "$as_me:$LINENO: creating $ac_file" >&5
28359 echo "$as_me: creating $ac_file" >&6;}
28362 # Let's still pretend it is `configure' which instantiates (i.e., don't
28363 # use $as_me), people would be surprised to read:
28364 # /* config.h. Generated by config.status. */
28365 if test x
"$ac_file" = x-
; then
28368 configure_input
="$ac_file. "
28370 configure_input
=$configure_input"Generated from `echo $ac_file_in |
28371 sed 's,.*/,,'` by configure."
28373 # First look for the input files in the build tree, otherwise in the
28375 ac_file_inputs
=`IFS=:
28376 for f in $ac_file_in; do
28378 -) echo $tmp/stdin ;;
28380 # Absolute (can't be DOS-style, as IFS=:)
28381 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28382 echo "$as_me: error: cannot find input file: $f" >&2;}
28383 { (exit 1); exit 1; }; }
28386 if test -f "$f"; then
28389 elif test -f "$srcdir/$f"; then
28394 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28395 echo "$as_me: error: cannot find input file: $f" >&2;}
28396 { (exit 1); exit 1; }; }
28399 done` ||
{ (exit 1); exit 1; }
28401 cat >>$CONFIG_STATUS <<_ACEOF
28405 cat >>$CONFIG_STATUS <<\_ACEOF
28407 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28408 s
,@configure_input@
,$configure_input,;t t
28409 s
,@srcdir@
,$ac_srcdir,;t t
28410 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
28411 s
,@top_srcdir@
,$ac_top_srcdir,;t t
28412 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
28413 s
,@builddir@
,$ac_builddir,;t t
28414 s
,@abs_builddir@
,$ac_abs_builddir,;t t
28415 s
,@top_builddir@
,$ac_top_builddir,;t t
28416 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
28417 s
,@INSTALL@
,$ac_INSTALL,;t t
28418 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28420 if test x"$ac_file" != x-; then
28421 mv $tmp/out $ac_file
28429 cat >>$CONFIG_STATUS <<\_ACEOF
28432 # CONFIG_HEADER section.
28435 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
28436 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28438 # ac_d sets the value in "#define NAME VALUE" lines.
28439 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
28440 ac_dB
='[ ].*$,\1#\2'
28443 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28444 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
28445 ac_uB
='$,\1#\2define\3'
28449 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
28450 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28452 - |
*:- |
*:-:* ) # input from stdin
28454 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
28455 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
28456 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
28457 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
28458 * ) ac_file_in
=$ac_file.
in ;;
28461 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
28462 echo "$as_me: creating $ac_file" >&6;}
28464 # First look for the input files in the build tree, otherwise in the
28466 ac_file_inputs
=`IFS=:
28467 for f in $ac_file_in; do
28469 -) echo $tmp/stdin ;;
28471 # Absolute (can't be DOS-style, as IFS=:)
28472 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28473 echo "$as_me: error: cannot find input file: $f" >&2;}
28474 { (exit 1); exit 1; }; }
28475 # Do quote $f, to prevent DOS paths from being IFS'd.
28478 if test -f "$f"; then
28481 elif test -f "$srcdir/$f"; then
28486 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28487 echo "$as_me: error: cannot find input file: $f" >&2;}
28488 { (exit 1); exit 1; }; }
28491 done` ||
{ (exit 1); exit 1; }
28492 # Remove the trailing spaces.
28493 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
28497 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28498 # `conftest.undefs', that substitutes the proper values into
28499 # config.h.in to produce config.h. The first handles `#define'
28500 # templates, and the second `#undef' templates.
28501 # And first: Protect against being on the right side of a sed subst in
28502 # config.status. Protect against being in an unquoted here document
28503 # in config.status.
28504 rm -f conftest.defines conftest.undefs
28505 # Using a here document instead of a string reduces the quoting nightmare.
28506 # Putting comments in sed scripts is not portable.
28508 # `end' is used to avoid that the second main sed command (meant for
28509 # 0-ary CPP macros) applies to n-ary macro definitions.
28510 # See the Autoconf documentation for `clear'.
28511 cat >confdef2sed.
sed <<\_ACEOF
28516 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28518 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28521 # If some macros were called several times there might be several times
28522 # the same #defines, which is useless. Nevertheless, we may not want to
28523 # sort them, since we want the *last* AC-DEFINE to be honored.
28524 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28525 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28526 rm -f confdef2sed.sed
28528 # This sed command replaces #undef with comments. This is necessary, for
28529 # example, in the case of _POSIX_SOURCE, which is predefined and required
28530 # on some systems where configure will not decide to define it.
28531 cat >>conftest.undefs <<\_ACEOF
28532 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28535 # Break up conftest.defines because some shells have a limit on the size
28536 # of here documents, and old seds have small limits too (100 cmds).
28537 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28538 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28539 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28540 echo ' :' >>$CONFIG_STATUS
28541 rm -f conftest.tail
28542 while grep . conftest.defines >/dev/null
28544 # Write a limited-size here document to $tmp/defines.sed.
28545 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28546 # Speed up: don't consider the non `#define' lines.
28547 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
28548 # Work around the forget-to-reset-the-flag bug.
28549 echo 't clr' >>$CONFIG_STATUS
28550 echo ': clr' >>$CONFIG_STATUS
28551 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
28553 sed -f $tmp/defines.sed $tmp/in >$tmp/out
28555 mv $tmp/out $tmp/in
28557 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
28558 rm -f conftest.defines
28559 mv conftest.
tail conftest.defines
28561 rm -f conftest.defines
28562 echo ' fi # grep' >>$CONFIG_STATUS
28563 echo >>$CONFIG_STATUS
28565 # Break up conftest.undefs because some shells have a limit on the size
28566 # of here documents, and old seds have small limits too (100 cmds).
28567 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
28568 rm -f conftest.
tail
28569 while grep . conftest.undefs
>/dev
/null
28571 # Write a limited-size here document to $tmp/undefs.sed.
28572 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28573 # Speed up: don't consider the non
`#undef'
28574 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
28575 # Work around the forget-to-reset-the-flag bug.
28576 echo 't clr' >>$CONFIG_STATUS
28577 echo ': clr' >>$CONFIG_STATUS
28578 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28580 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28582 mv $tmp/out $tmp/in
28584 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28585 rm -f conftest.undefs
28586 mv conftest.tail conftest.undefs
28588 rm -f conftest.undefs
28590 cat >>$CONFIG_STATUS <<\_ACEOF
28591 # Let's still pretend it is `configure
' which instantiates (i.e., don't
28592 # use $as_me), people would be surprised to read:
28593 # /* config.h. Generated by config.status. */
28594 if test x
"$ac_file" = x-
; then
28595 echo "/* Generated by configure. */" >$tmp/config.h
28597 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28599 cat $tmp/in >>$tmp/config.h
28601 if test x
"$ac_file" != x-
; then
28602 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
28603 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28604 echo "$as_me: $ac_file is unchanged" >&6;}
28606 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
28607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28608 X"$ac_file" : 'X\(//\)[^/]' \| \
28609 X"$ac_file" : 'X\(//\)$' \| \
28610 X"$ac_file" : 'X\(/\)' \| \
28611 . : '\(.\)' 2>/dev/null ||
28613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28615 /^X\(\/\/\)$/{ s//\1/; q; }
28616 /^X\(\/\).*/{ s//\1/; q; }
28618 { if $as_mkdir_p; then
28623 while test ! -d "$as_dir"; do
28624 as_dirs
="$as_dir $as_dirs"
28625 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
28626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28627 X"$as_dir" : 'X\(//\)[^/]' \| \
28628 X"$as_dir" : 'X\(//\)$' \| \
28629 X"$as_dir" : 'X\(/\)' \| \
28630 . : '\(.\)' 2>/dev/null ||
28632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28634 /^X\(\/\/\)$/{ s//\1/; q; }
28635 /^X\(\/\).*/{ s//\1/; q; }
28638 test ! -n "$as_dirs" || mkdir
$as_dirs
28639 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28640 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28641 { (exit 1); exit 1; }; }; }
28644 mv $tmp/config.h
$ac_file
28648 rm -f $tmp/config.h
28652 cat >>$CONFIG_STATUS <<\_ACEOF
28655 # CONFIG_COMMANDS section.
28657 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
28658 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
28659 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
28660 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
28661 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28662 X"$ac_dest" : 'X\(//\)[^/]' \| \
28663 X"$ac_dest" : 'X\(//\)$' \| \
28664 X"$ac_dest" : 'X\(/\)' \| \
28665 . : '\(.\)' 2>/dev/null ||
28667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28669 /^X\(\/\/\)$/{ s//\1/; q; }
28670 /^X\(\/\).*/{ s//\1/; q; }
28672 { if $as_mkdir_p; then
28677 while test ! -d "$as_dir"; do
28678 as_dirs
="$as_dir $as_dirs"
28679 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
28680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28681 X"$as_dir" : 'X\(//\)[^/]' \| \
28682 X"$as_dir" : 'X\(//\)$' \| \
28683 X"$as_dir" : 'X\(/\)' \| \
28684 . : '\(.\)' 2>/dev/null ||
28686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28688 /^X\(\/\/\)$/{ s//\1/; q; }
28689 /^X\(\/\).*/{ s//\1/; q; }
28692 test ! -n "$as_dirs" || mkdir
$as_dirs
28693 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28694 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28695 { (exit 1); exit 1; }; }; }
28699 if test "$ac_dir" != .
; then
28700 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28701 # A "../" for each directory in $ac_dir_suffix.
28702 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28704 ac_dir_suffix
= ac_top_builddir
=
28708 .
) # No --srcdir option. We are building in place.
28710 if test -z "$ac_top_builddir"; then
28713 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
28715 [\\/]* | ?
:[\\/]* ) # Absolute path.
28716 ac_srcdir
=$srcdir$ac_dir_suffix;
28717 ac_top_srcdir
=$srcdir ;;
28718 *) # Relative path.
28719 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
28720 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
28723 # Do not use `cd foo && pwd` to compute absolute paths, because
28724 # the directories may not exist.
28726 .
) ac_abs_builddir
="$ac_dir";;
28729 .
) ac_abs_builddir
=`pwd`;;
28730 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
28731 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
28734 case $ac_abs_builddir in
28735 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
28737 case ${ac_top_builddir}.
in
28738 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
28739 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
28740 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
28743 case $ac_abs_builddir in
28744 .
) ac_abs_srcdir
=$ac_srcdir;;
28747 .
) ac_abs_srcdir
=$ac_abs_builddir;;
28748 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
28749 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
28752 case $ac_abs_builddir in
28753 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
28755 case $ac_top_srcdir in
28756 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
28757 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
28758 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
28763 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28764 echo "$as_me: executing $ac_dest commands" >&6;}
28767 for ac_file
in $CONFIG_FILES; do
28768 # Support "outfile[:infile[:infile...]]"
28770 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
28772 # PO directories have a Makefile.in generated from Makefile.in.in.
28773 case "$ac_file" in */Makefile.
in)
28774 # Adjust a relative srcdir.
28775 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28776 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
28777 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28778 # In autoconf-2.13 it is called $ac_given_srcdir.
28779 # In autoconf-2.50 it is called $srcdir.
28780 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
28781 case "$ac_given_srcdir" in
28782 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
28783 /*) top_srcdir
="$ac_given_srcdir" ;;
28784 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
28786 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28787 rm -f "$ac_dir/POTFILES"
28788 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
28789 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28790 POMAKEFILEDEPS
="POTFILES.in"
28791 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
28792 # on $ac_dir but don't depend on user-specified configuration
28794 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28795 # The LINGUAS file contains the set of available languages.
28796 if test -n "$OBSOLETE_ALL_LINGUAS"; then
28797 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
28799 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28800 # Hide the ALL_LINGUAS assigment from automake.
28801 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28802 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
28804 # The set of available languages was given in configure.in.
28805 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28807 case "$ac_given_srcdir" in
28809 *) srcdirpre
='$(srcdir)/' ;;
28815 for lang
in $ALL_LINGUAS; do
28816 POFILES
="$POFILES $srcdirpre$lang.po"
28817 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
28818 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
28819 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
28821 # CATALOGS depends on both $ac_dir and the user's LINGUAS
28822 # environment variable.
28824 if test -n "$ALL_LINGUAS"; then
28825 for presentlang
in $ALL_LINGUAS; do
28827 if test "%UNSET%" != "$LINGUAS"; then
28828 desiredlanguages
="$LINGUAS"
28830 desiredlanguages
="$ALL_LINGUAS"
28832 for desiredlang
in $desiredlanguages; do
28833 # Use the presentlang catalog if desiredlang is
28834 # a. equal to presentlang, or
28835 # b. a variant of presentlang (because in this case,
28836 # presentlang can be used as a fallback for messages
28837 # which are not translated in the desiredlang catalog).
28838 case "$desiredlang" in
28839 "$presentlang"*) useit
=yes;;
28842 if test $useit = yes; then
28843 INST_LINGUAS
="$INST_LINGUAS $presentlang"
28848 if test -n "$INST_LINGUAS"; then
28849 for lang
in $INST_LINGUAS; do
28850 CATALOGS
="$CATALOGS $lang.gmo"
28853 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
28854 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"
28855 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
28856 if test -f "$f"; then
28858 *.orig |
*.bak |
*~
) ;;
28859 *) cat "$f" >> "$ac_dir/Makefile" ;;
28868 # Makefile uses this timestamp file to record whether config.h is up to date.
28869 echo timestamp
> stamp-h
28875 cat >>$CONFIG_STATUS <<\_ACEOF
28877 { (exit 0); exit 0; }
28879 chmod +x
$CONFIG_STATUS
28880 ac_clean_files
=$ac_clean_files_save
28883 # configure is writing to config.log, and then calls config.status.
28884 # config.status does its own redirection, appending to config.log.
28885 # Unfortunately, on DOS this fails, as config.log is still kept open
28886 # by configure, so config.status won't be able to write to it; its
28887 # output is simply discarded. So we exec the FD to /dev/null,
28888 # effectively closing config.log, so it can be properly (re)opened and
28889 # appended to by config.status. When coming back to configure, we
28890 # need to make the FD available again.
28891 if test "$no_create" != yes; then
28893 ac_config_status_args
=
28894 test "$silent" = yes &&
28895 ac_config_status_args
="$ac_config_status_args --quiet"
28897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28900 # would make configure fail if this is the last instruction.
28901 $ac_cs_success ||
{ (exit 1); exit 1; }