3 # From configure.in for Bash 2.03, version 2.49, from autoconf version 2.12
92 # Guess values for system-dependent variables and create Makefiles.
93 # Generated automatically using autoconf version 2.12
94 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
96 # This configure script is free software; the Free Software Foundation
97 # gives unlimited permission to copy, distribute and modify it.
101 ac_default_prefix
=/usr
/local
102 # Any additions from configure.in:
104 --with-afs if you are running AFS"
106 --with-curses use the curses library instead of the termcap library"
108 --with-glibc-malloc use the GNU C library version of malloc"
110 --with-gnu-malloc use the GNU version of malloc"
112 --with-installed-readline use a version of the readline library that is already installed"
114 --with-purecov configure to postprocess with pure coverage"
116 --with-purify configure to postprocess with purify"
118 --enable-minimal-config a minimal sh-like configuration"
120 --enable-alias enable shell aliases"
122 --enable-array-variables include shell array variables"
124 --enable-bang-history turn on csh-style history substitution"
126 --enable-brace-expansion include brace expansion"
128 --enable-command-timing enable the time reserved word and command timing"
130 --enable-cond-command enable the conditional command"
132 --enable-directory-stack enable builtins pushd/popd/dirs"
134 --enable-disabled-builtins allow disabled builtins to still be invoked"
136 --enable-dparen-arithmetic include ((...)) command"
138 --enable-extended-glob include ksh-style extended pattern matching"
140 --enable-help-builtin include the help builtin"
142 --enable-history turn on command history"
144 --enable-job-control enable job control features"
146 --enable-process-substitution enable process substitution"
148 --enable-prompt-string-decoding turn on escape character decoding in prompts"
150 --enable-readline turn on command line editing"
152 --enable-restricted enable a restricted shell"
154 --enable-select include select command"
156 --enable-usg-echo-default make the echo builtin expand escape sequences by default"
158 --enable-profiling allow profiling with gprof"
160 --enable-static-link link bash statically, for use as a root shell"
162 # Initialize some variables set by options.
163 # The variables have the same names as the options, with
164 # dashes changed to underlines.
166 cache_file
=.
/config.cache
175 program_transform_name
=s
,x
,x
,
183 bindir
='${exec_prefix}/bin'
184 sbindir
='${exec_prefix}/sbin'
185 libexecdir
='${exec_prefix}/libexec'
186 datadir
='${prefix}/share'
187 sysconfdir
='${prefix}/etc'
188 sharedstatedir
='${prefix}/com'
189 localstatedir
='${prefix}/var'
190 libdir
='${exec_prefix}/lib'
191 includedir
='${prefix}/include'
192 oldincludedir
='/usr/include'
193 infodir
='${prefix}/info'
194 mandir
='${prefix}/man'
196 # Initialize some other variables.
199 # Maximum number of lines to put in a shell here document.
206 # If the previous option needs an argument, assign it.
207 if test -n "$ac_prev"; then
208 eval "$ac_prev=\$ac_option"
214 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
218 # Accept the important Cygnus configure options, so we can diagnose typos.
222 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
224 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
225 bindir
="$ac_optarg" ;;
227 -build |
--build |
--buil |
--bui |
--bu)
229 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
230 build
="$ac_optarg" ;;
232 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
233 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
234 ac_prev
=cache_file
;;
235 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
236 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
237 cache_file
="$ac_optarg" ;;
239 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
241 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
243 datadir
="$ac_optarg" ;;
245 -disable-* |
--disable-*)
246 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
247 # Reject names that are not valid shell variable names.
248 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
249 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
251 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
252 eval "enable_${ac_feature}=no" ;;
254 -enable-* |
--enable-*)
255 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
256 # Reject names that are not valid shell variable names.
257 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
258 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
260 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
265 eval "enable_${ac_feature}='$ac_optarg'" ;;
267 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
268 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
269 |
--exec |
--exe |
--ex)
270 ac_prev
=exec_prefix
;;
271 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
272 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
273 |
--exec=* |
--exe=* |
--ex=*)
274 exec_prefix
="$ac_optarg" ;;
276 -gas |
--gas |
--ga |
--g)
277 # Obsolete; use --with-gas.
280 -help |
--help |
--hel |
--he)
281 # Omit some internal or obsolete options to make the list less imposing.
282 # This message is too long to be a string in the A/UX 3.1 sh.
284 Usage: configure [options] [host]
285 Options: [defaults in brackets after descriptions]
287 --cache-file=FILE cache test results in FILE
288 --help print this message
289 --no-create do not create output files
290 --quiet, --silent do not print \`checking...' messages
291 --version print the version of autoconf that created configure
292 Directory and file names:
293 --prefix=PREFIX install architecture-independent files in PREFIX
295 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
297 --bindir=DIR user executables in DIR [EPREFIX/bin]
298 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
299 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
300 --datadir=DIR read-only architecture-independent data in DIR
302 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
303 --sharedstatedir=DIR modifiable architecture-independent data in DIR
305 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
306 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
307 --includedir=DIR C header files in DIR [PREFIX/include]
308 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
309 --infodir=DIR info documentation in DIR [PREFIX/info]
310 --mandir=DIR man documentation in DIR [PREFIX/man]
311 --srcdir=DIR find the sources in DIR [configure dir or ..]
312 --program-prefix=PREFIX prepend PREFIX to installed program names
313 --program-suffix=SUFFIX append SUFFIX to installed program names
314 --program-transform-name=PROGRAM
315 run sed PROGRAM on installed program names
319 --build=BUILD configure for building on BUILD [BUILD=HOST]
320 --host=HOST configure for HOST [guessed]
321 --target=TARGET configure for TARGET [TARGET=HOST]
322 Features and packages:
323 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
324 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
325 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
326 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
327 --x-includes=DIR X include files are in DIR
328 --x-libraries=DIR X library files are in DIR
330 if test -n "$ac_help"; then
331 echo "--enable and --with options recognized:$ac_help"
335 -host |
--host |
--hos |
--ho)
337 -host=* |
--host=* |
--hos=* |
--ho=*)
340 -includedir |
--includedir |
--includedi |
--included |
--include \
341 |
--includ |
--inclu |
--incl |
--inc)
342 ac_prev
=includedir
;;
343 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
344 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
345 includedir
="$ac_optarg" ;;
347 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
349 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
350 infodir
="$ac_optarg" ;;
352 -libdir |
--libdir |
--libdi |
--libd)
354 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
355 libdir
="$ac_optarg" ;;
357 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
358 |
--libexe |
--libex |
--libe)
359 ac_prev
=libexecdir
;;
360 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
361 |
--libexe=* |
--libex=* |
--libe=*)
362 libexecdir
="$ac_optarg" ;;
364 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
365 |
--localstate |
--localstat |
--localsta |
--localst \
366 |
--locals |
--local |
--loca |
--loc |
--lo)
367 ac_prev
=localstatedir
;;
368 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
369 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
370 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
371 localstatedir
="$ac_optarg" ;;
373 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
375 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
376 mandir
="$ac_optarg" ;;
379 # Obsolete; use --without-fp.
382 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
386 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
387 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
390 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
391 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
392 |
--oldin |
--oldi |
--old |
--ol |
--o)
393 ac_prev
=oldincludedir
;;
394 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
395 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
396 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
397 oldincludedir
="$ac_optarg" ;;
399 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
401 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
402 prefix
="$ac_optarg" ;;
404 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
405 |
--program-pre |
--program-pr |
--program-p)
406 ac_prev
=program_prefix
;;
407 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
408 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
409 program_prefix
="$ac_optarg" ;;
411 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
412 |
--program-suf |
--program-su |
--program-s)
413 ac_prev
=program_suffix
;;
414 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
415 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
416 program_suffix
="$ac_optarg" ;;
418 -program-transform-name |
--program-transform-name \
419 |
--program-transform-nam |
--program-transform-na \
420 |
--program-transform-n |
--program-transform- \
421 |
--program-transform |
--program-transfor \
422 |
--program-transfo |
--program-transf \
423 |
--program-trans |
--program-tran \
424 |
--progr-tra |
--program-tr |
--program-t)
425 ac_prev
=program_transform_name
;;
426 -program-transform-name=* |
--program-transform-name=* \
427 |
--program-transform-nam=* |
--program-transform-na=* \
428 |
--program-transform-n=* |
--program-transform-=* \
429 |
--program-transform=* |
--program-transfor=* \
430 |
--program-transfo=* |
--program-transf=* \
431 |
--program-trans=* |
--program-tran=* \
432 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
433 program_transform_name
="$ac_optarg" ;;
435 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
436 |
-silent |
--silent |
--silen |
--sile |
--sil)
439 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
441 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
443 sbindir
="$ac_optarg" ;;
445 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
446 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
447 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
449 ac_prev
=sharedstatedir
;;
450 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
451 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
452 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
454 sharedstatedir
="$ac_optarg" ;;
456 -site |
--site |
--sit)
458 -site=* |
--site=* |
--sit=*)
461 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
463 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
464 srcdir
="$ac_optarg" ;;
466 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
467 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
468 ac_prev
=sysconfdir
;;
469 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
470 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
471 sysconfdir
="$ac_optarg" ;;
473 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
475 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
476 target
="$ac_optarg" ;;
478 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
481 -version |
--version |
--versio |
--versi |
--vers)
482 echo "configure generated by autoconf version 2.12"
486 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
487 # Reject names that are not valid shell variable names.
488 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
489 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
491 ac_package
=`echo $ac_package| sed 's/-/_/g'`
496 eval "with_${ac_package}='$ac_optarg'" ;;
498 -without-* |
--without-*)
499 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
500 # Reject names that are not valid shell variable names.
501 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
502 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
504 ac_package
=`echo $ac_package| sed 's/-/_/g'`
505 eval "with_${ac_package}=no" ;;
508 # Obsolete; use --with-x.
511 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
512 |
--x-incl |
--x-inc |
--x-in |
--x-i)
513 ac_prev
=x_includes
;;
514 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
515 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
516 x_includes
="$ac_optarg" ;;
518 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
519 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
520 ac_prev
=x_libraries
;;
521 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
522 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
523 x_libraries
="$ac_optarg" ;;
525 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
529 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
530 echo "configure: warning: $ac_option: invalid host type" 1>&2
532 if test "x$nonopt" != xNONE
; then
533 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
541 if test -n "$ac_prev"; then
542 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
545 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
547 # File descriptor usage:
550 # 2 errors and warnings
551 # 3 some systems may open it to /dev/tty
552 # 4 used on the Kubota Titan
553 # 6 checking for... messages and results
554 # 5 compiler messages saved in config.log
555 if test "$silent" = yes; then
563 This file contains any messages produced by compilers while
564 running configure, to aid debugging if configure makes a mistake.
567 # Strip out --no-create and --no-recursion so they do not pile up.
568 # Also quote any args containing shell metacharacters.
573 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
574 |
--no-cr |
--no-c) ;;
575 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
576 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
577 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
578 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
579 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
584 # Only set these to C if already set. These must not be set unconditionally
585 # because not all systems understand e.g. LANG=C (notably SCO).
586 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
587 # Non-C LC_CTYPE values break the ctype check.
588 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
589 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
590 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
591 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
593 # confdefs.h avoids OS command line length limits that DEFS can exceed.
594 rm -rf conftest
* confdefs.h
595 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
598 # A filename unique to this package, relative to the directory that
599 # configure is in, which we can look for to find out if srcdir is correct.
600 ac_unique_file
=shell.h
602 # Find the source files, if location was not specified.
603 if test -z "$srcdir"; then
604 ac_srcdir_defaulted
=yes
605 # Try the directory containing this script, then its parent.
607 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
608 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
610 if test ! -r $srcdir/$ac_unique_file; then
614 ac_srcdir_defaulted
=no
616 if test ! -r $srcdir/$ac_unique_file; then
617 if test "$ac_srcdir_defaulted" = yes; then
618 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
620 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
623 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
625 # Prefer explicitly selected file to automatically selected ones.
626 if test -z "$CONFIG_SITE"; then
627 if test "x$prefix" != xNONE
; then
628 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
630 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
633 for ac_site_file
in $CONFIG_SITE; do
634 if test -r "$ac_site_file"; then
635 echo "loading site script $ac_site_file"
640 if test -r "$cache_file"; then
641 echo "loading cache $cache_file"
644 echo "creating cache $cache_file"
649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
650 ac_cpp
='$CPP $CPPFLAGS'
651 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
652 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
653 cross_compiling
=$ac_cv_prog_cc_cross
655 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
656 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
657 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
664 ac_n
= ac_c
='\c' ac_t
=
673 for ac_dir
in .
/support
$srcdir/.
/support
; do
674 if test -f $ac_dir/install-sh
; then
676 ac_install_sh
="$ac_aux_dir/install-sh -c"
678 elif test -f $ac_dir/install.sh
; then
680 ac_install_sh
="$ac_aux_dir/install.sh -c"
684 if test -z "$ac_aux_dir"; then
685 { echo "configure: error: can not find install-sh or install.sh in ./support $srcdir/./support" 1>&2; exit 1; }
687 ac_config_guess
=$ac_aux_dir/config.guess
688 ac_config_sub
=$ac_aux_dir/config.sub
689 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
693 # Make sure we can run config.sub.
694 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
695 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
698 echo $ac_n "checking host system type""... $ac_c" 1>&6
699 echo "configure:700: checking host system type" >&5
702 case "$host_alias" in
706 if host_alias
=`$ac_config_guess`; then :
707 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
709 *) host_alias
=$nonopt ;;
713 host=`$ac_config_sub $host_alias`
714 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
715 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
716 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
717 echo "$ac_t""$host" 1>&6
726 opt_with_installed_readline
=no
728 case "${host_cpu}-${host_os}" in
729 alpha
*-*) opt_gnu_malloc
=no
;; # alpha running osf/1 or linux
730 *Ccray
*-*) opt_gnu_malloc
=no
;; # Crays
731 *-osf1*) opt_gnu_malloc
=no
;; # other osf/1 machines
732 sparc-svr4
*) opt_gnu_malloc
=no
;; # sparc SVR4, SVR4.2
733 sparc-netbsd
*) opt_gnu_malloc
=no
;; # needs 8-byte alignment
734 mips-irix6
*) opt_gnu_malloc
=no
;; # needs 8-byte alignment
735 sparc-linux
*) opt_gnu_malloc
=no
;; # sparc running linux; requires ELF
736 #*-freebsd*) opt_gnu_malloc=no ;; # they claim it's better
737 *-aix*) opt_gnu_malloc
=no
;; # AIX machines
738 *-nextstep*) opt_gnu_malloc
=no
;; # NeXT machines running NeXTstep
739 *-rhapsody*) opt_gnu_malloc
=no
;; # Apple Rhapsody
740 *-dgux*) opt_gnu_malloc
=no
;; # DG/UX machines
741 *-qnx*) opt_gnu_malloc
=no
;; # QNX 4.2
742 *-machten4) opt_gnu_malloc
=no
;; # MachTen 4.x
743 *-bsdi2.1|
*-bsdi3.?
) opt_gnu_malloc
=no
; : ${CC:=shlicc2} ;; # for loadable builtins
744 *-beos*) opt_gnu_malloc
=no
;; # they say it's suitable
745 *-cygwin32*) opt_gnu_malloc
=no
;; # Cygnus's CYGWIN32 environment
748 # Check whether --with-afs or --without-afs was given.
749 if test "${with_afs+set}" = set; then
754 # Check whether --with-curses or --without-curses was given.
755 if test "${with_curses+set}" = set; then
756 withval
="$with_curses"
760 # Check whether --with-glibc-malloc or --without-glibc-malloc was given.
761 if test "${with_glibc_malloc+set}" = set; then
762 withval
="$with_glibc_malloc"
763 opt_glibc_malloc
=$withval
766 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
767 if test "${with_gnu_malloc+set}" = set; then
768 withval
="$with_gnu_malloc"
769 opt_gnu_malloc
=$withval
772 # Check whether --with-installed-readline or --without-installed-readline was given.
773 if test "${with_installed_readline+set}" = set; then
774 withval
="$with_installed_readline"
775 opt_with_installed_readline
=$withval
778 # Check whether --with-purecov or --without-purecov was given.
779 if test "${with_purecov+set}" = set; then
780 withval
="$with_purecov"
784 # Check whether --with-purify or --without-purify was given.
785 if test "${with_purify+set}" = set; then
786 withval
="$with_purify"
791 if test "$opt_glibc_malloc" = yes; then
792 MALLOC_TARGET
=gmalloc
794 elif test "$opt_gnu_malloc" = yes; then
798 MALLOC_TARGET
=stubmalloc
802 if test "$opt_purify" = yes; then
808 if test "$opt_purecov" = yes; then
809 PURIFY
="${PURIFY}purecov"
812 if test "$opt_afs" = yes; then
813 cat >> confdefs.h
<<\EOF
819 if test "$opt_curses" = yes; then
823 opt_minimal_config
=no
832 opt_process_subst
=yes
833 opt_prompt_decoding
=yes
836 opt_array_variables
=yes
838 opt_extended_glob
=yes
839 opt_brace_expansion
=yes
840 opt_disabled_builtins
=no
841 opt_command_timing
=yes
848 # Check whether --enable-minimal-config or --disable-minimal-config was given.
849 if test "${enable_minimal_config+set}" = set; then
850 enableval
="$enable_minimal_config"
851 opt_minimal_config
=$enableval
855 if test $opt_minimal_config = yes; then
856 opt_job_control
=no opt_alias
=no opt_readline
=no
857 opt_history
=no opt_bang_history
=no opt_dirstack
=no
858 opt_restricted
=no opt_process_subst
=no opt_prompt_decoding
=no
859 opt_select
=no opt_help
=no opt_array_variables
=no opt_dparen_arith
=no
860 opt_brace_expansion
=no opt_disabled_builtins
=no opt_command_timing
=no
861 opt_extended_glob
=no opt_cond_command
=no
864 # Check whether --enable-alias or --disable-alias was given.
865 if test "${enable_alias+set}" = set; then
866 enableval
="$enable_alias"
870 # Check whether --enable-array-variables or --disable-array-variables was given.
871 if test "${enable_array_variables+set}" = set; then
872 enableval
="$enable_array_variables"
873 opt_array_variables
=$enableval
876 # Check whether --enable-bang-history or --disable-bang-history was given.
877 if test "${enable_bang_history+set}" = set; then
878 enableval
="$enable_bang_history"
879 opt_bang_history
=$enableval
882 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
883 if test "${enable_brace_expansion+set}" = set; then
884 enableval
="$enable_brace_expansion"
885 opt_brace_expansion
=$enableval
888 # Check whether --enable-command-timing or --disable-command-timing was given.
889 if test "${enable_command_timing+set}" = set; then
890 enableval
="$enable_command_timing"
891 opt_command_timing
=$enableval
894 # Check whether --enable-cond-command or --disable-cond-command was given.
895 if test "${enable_cond_command+set}" = set; then
896 enableval
="$enable_cond_command"
897 opt_cond_command
=$enableval
900 # Check whether --enable-directory-stack or --disable-directory-stack was given.
901 if test "${enable_directory_stack+set}" = set; then
902 enableval
="$enable_directory_stack"
903 opt_dirstack
=$enableval
906 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
907 if test "${enable_disabled_builtins+set}" = set; then
908 enableval
="$enable_disabled_builtins"
909 opt_disabled_builtins
=$enableval
912 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
913 if test "${enable_dparen_arithmetic+set}" = set; then
914 enableval
="$enable_dparen_arithmetic"
915 opt_dparen_arith
=$enableval
918 # Check whether --enable-extended-glob or --disable-extended-glob was given.
919 if test "${enable_extended_glob+set}" = set; then
920 enableval
="$enable_extended_glob"
921 opt_extended_glob
=$enableval
924 # Check whether --enable-help-builtin or --disable-help-builtin was given.
925 if test "${enable_help_builtin+set}" = set; then
926 enableval
="$enable_help_builtin"
930 # Check whether --enable-history or --disable-history was given.
931 if test "${enable_history+set}" = set; then
932 enableval
="$enable_history"
933 opt_history
=$enableval
936 # Check whether --enable-job-control or --disable-job-control was given.
937 if test "${enable_job_control+set}" = set; then
938 enableval
="$enable_job_control"
939 opt_job_control
=$enableval
942 # Check whether --enable-process-substitution or --disable-process-substitution was given.
943 if test "${enable_process_substitution+set}" = set; then
944 enableval
="$enable_process_substitution"
945 opt_process_subst
=$enableval
948 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
949 if test "${enable_prompt_string_decoding+set}" = set; then
950 enableval
="$enable_prompt_string_decoding"
951 opt_prompt_decoding
=$enableval
954 # Check whether --enable-readline or --disable-readline was given.
955 if test "${enable_readline+set}" = set; then
956 enableval
="$enable_readline"
957 opt_readline
=$enableval
960 # Check whether --enable-restricted or --disable-restricted was given.
961 if test "${enable_restricted+set}" = set; then
962 enableval
="$enable_restricted"
963 opt_restricted
=$enableval
966 # Check whether --enable-select or --disable-select was given.
967 if test "${enable_select+set}" = set; then
968 enableval
="$enable_select"
969 opt_select
=$enableval
972 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
973 if test "${enable_usg_echo_default+set}" = set; then
974 enableval
="$enable_usg_echo_default"
975 opt_usg_echo
=$enableval
979 # Check whether --enable-profiling or --disable-profiling was given.
980 if test "${enable_profiling+set}" = set; then
981 enableval
="$enable_profiling"
982 opt_profiling
=$enableval
985 # Check whether --enable-static-link or --disable-static-link was given.
986 if test "${enable_static_link+set}" = set; then
987 enableval
="$enable_static_link"
988 opt_static_link
=$enableval
994 if test $opt_alias = yes; then
995 cat >> confdefs.h
<<\EOF
1000 if test $opt_dirstack = yes; then
1001 cat >> confdefs.h
<<\EOF
1002 #define PUSHD_AND_POPD 1
1006 if test $opt_restricted = yes; then
1007 cat >> confdefs.h
<<\EOF
1008 #define RESTRICTED_SHELL 1
1012 if test $opt_process_subst = yes; then
1013 cat >> confdefs.h
<<\EOF
1014 #define PROCESS_SUBSTITUTION 1
1018 if test $opt_prompt_decoding = yes; then
1019 cat >> confdefs.h
<<\EOF
1020 #define PROMPT_STRING_DECODE 1
1024 if test $opt_select = yes; then
1025 cat >> confdefs.h
<<\EOF
1026 #define SELECT_COMMAND 1
1030 if test $opt_help = yes; then
1031 cat >> confdefs.h
<<\EOF
1032 #define HELP_BUILTIN 1
1036 if test $opt_array_variables = yes; then
1037 cat >> confdefs.h
<<\EOF
1038 #define ARRAY_VARS 1
1042 if test $opt_dparen_arith = yes; then
1043 cat >> confdefs.h
<<\EOF
1044 #define DPAREN_ARITHMETIC 1
1048 if test $opt_brace_expansion = yes; then
1049 cat >> confdefs.h
<<\EOF
1050 #define BRACE_EXPANSION 1
1054 if test $opt_disabled_builtins = yes; then
1055 cat >> confdefs.h
<<\EOF
1056 #define DISABLED_BUILTINS 1
1060 if test $opt_command_timing = yes; then
1061 cat >> confdefs.h
<<\EOF
1062 #define COMMAND_TIMING 1
1066 if test $opt_usg_echo = yes ; then
1067 cat >> confdefs.h
<<\EOF
1068 #define DEFAULT_ECHO_TO_USG 1
1072 if test $opt_extended_glob = yes ; then
1073 cat >> confdefs.h
<<\EOF
1074 #define EXTENDED_GLOB 1
1078 if test $opt_cond_command = yes ; then
1079 cat >> confdefs.h
<<\EOF
1080 #define COND_COMMAND 1
1085 if test "$opt_minimal_config" = yes; then
1086 TESTSCRIPT
=run-minimal
1099 echo "Beginning configuration for bash-$BASHVERS for ${host_cpu}-${host_vendor}-${host_os}"
1101 # Extract the first word of "gcc", so it can be a program name with args.
1102 set dummy gcc
; ac_word
=$2
1103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1104 echo "configure:1105: checking for $ac_word" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1108 if test -n "$CC"; then
1109 ac_cv_prog_CC
="$CC" # Let the user override the test.
1111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1112 for ac_dir
in $PATH; do
1113 test -z "$ac_dir" && ac_dir
=.
1114 if test -f $ac_dir/$ac_word; then
1123 if test -n "$CC"; then
1124 echo "$ac_t""$CC" 1>&6
1126 echo "$ac_t""no" 1>&6
1129 if test -z "$CC"; then
1130 # Extract the first word of "cc", so it can be a program name with args.
1131 set dummy cc
; ac_word
=$2
1132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1133 echo "configure:1134: checking for $ac_word" >&5
1134 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1137 if test -n "$CC"; then
1138 ac_cv_prog_CC
="$CC" # Let the user override the test.
1140 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1142 for ac_dir
in $PATH; do
1143 test -z "$ac_dir" && ac_dir
=.
1144 if test -f $ac_dir/$ac_word; then
1145 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1146 ac_prog_rejected
=yes
1154 if test $ac_prog_rejected = yes; then
1155 # We found a bogon in the path, so make sure we never use it.
1156 set dummy
$ac_cv_prog_CC
1158 if test $# -gt 0; then
1159 # We chose a different compiler from the bogus one.
1160 # However, it has the same basename, so the bogon will be chosen
1161 # first if we set CC to just the basename; use the full file name.
1163 set dummy
"$ac_dir/$ac_word" "$@"
1171 if test -n "$CC"; then
1172 echo "$ac_t""$CC" 1>&6
1174 echo "$ac_t""no" 1>&6
1177 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1180 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1184 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1185 ac_cpp
='$CPP $CPPFLAGS'
1186 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1187 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1188 cross_compiling
=$ac_cv_prog_cc_cross
1190 cat > conftest.
$ac_ext <<EOF
1191 #line 1192 "configure"
1192 #include "confdefs.h"
1195 if { (eval echo configure
:1196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1196 ac_cv_prog_cc_works
=yes
1197 # If we can't run a trivial program, we are probably using a cross compiler.
1198 if (.
/conftest
; exit) 2>/dev
/null
; then
1199 ac_cv_prog_cc_cross
=no
1201 ac_cv_prog_cc_cross
=yes
1204 echo "configure: failed program was:" >&5
1205 cat conftest.
$ac_ext >&5
1206 ac_cv_prog_cc_works
=no
1210 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1211 if test $ac_cv_prog_cc_works = no
; then
1212 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1214 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1216 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1217 cross_compiling
=$ac_cv_prog_cc_cross
1219 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1220 echo "configure:1221: checking whether we are using GNU C" >&5
1221 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 cat > conftest.c
<<EOF
1229 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1236 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1238 if test $ac_cv_prog_gcc = yes; then
1240 ac_test_CFLAGS
="${CFLAGS+set}"
1241 ac_save_CFLAGS
="$CFLAGS"
1243 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether ${CC-cc} accepts -g" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1248 echo 'void f(){}' > conftest.c
1249 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1258 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1259 if test "$ac_test_CFLAGS" = set; then
1260 CFLAGS
="$ac_save_CFLAGS"
1261 elif test $ac_cv_prog_cc_g = yes; then
1268 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1271 echo $ac_n "checking whether large file support needs explicit enabling""... $ac_c" 1>&6
1272 echo "configure:1273: checking whether large file support needs explicit enabling" >&5
1276 ac_shellvars
='CPPFLAGS LDFLAGS LIBS'
1277 for ac_shellvar
in $ac_shellvars; do
1278 case $ac_shellvar in
1279 CPPFLAGS
) ac_lfsvar
=LFS_CFLAGS ac_lfs64var
=LFS64_CFLAGS
;;
1280 *) ac_lfsvar
=LFS_
$ac_shellvar ac_lfs64var
=LFS64_
$ac_shellvar ;;
1282 eval test '"${'$ac_shellvar'+set}"' = set && ac_set
=$ac_shellvar
1283 (getconf
$ac_lfsvar) >/dev
/null
2>&1 ||
{ ac_result
=no
; break; }
1284 ac_getconf
=`getconf $ac_lfsvar`
1285 ac_getconf64
=`getconf $ac_lfs64var`
1286 ac_getconfs
=$ac_getconfs$ac_getconf\
$ac_getconf64
1287 eval ac_test_
$ac_shellvar="\$ac_getconf\ \$ac_getconf64"
1289 case "$ac_result$ac_getconfs" in
1290 yes) ac_result
=no
;;
1292 case "$ac_result$ac_set" in
1293 yes?
*) ac_result
="yes, but $ac_set is already set, so use its settings"
1295 echo "$ac_t""$ac_result" 1>&6
1298 for ac_shellvar
in $ac_shellvars; do
1299 eval $ac_shellvar=\
$ac_test_$ac_shellvar
1303 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1304 echo "configure:1305: checking for POSIXized ISC" >&5
1305 if test -d /etc
/conf
/kconfig.d
&&
1306 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1308 echo "$ac_t""yes" 1>&6
1309 ISC
=yes # If later tests want to check for ISC.
1310 cat >> confdefs.h
<<\EOF
1311 #define _POSIX_SOURCE 1
1314 if test "$GCC" = yes; then
1320 echo "$ac_t""no" 1>&6
1324 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1325 echo "configure:1326: checking how to run the C preprocessor" >&5
1326 # On Suns, sometimes $CPP names a directory.
1327 if test -n "$CPP" && test -d "$CPP"; then
1330 if test -z "$CPP"; then
1331 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 # This must be in double quotes, not single quotes, because CPP may get
1335 # substituted into the Makefile and "${CC-cc}" will confuse make.
1337 # On the NeXT, cc -E runs the code through the compiler's parser,
1338 # not just through cpp.
1339 cat > conftest.
$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1345 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1346 { (eval echo configure
:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1347 ac_err
=`grep -v '^ *+' conftest.out`
1348 if test -z "$ac_err"; then
1352 echo "configure: failed program was:" >&5
1353 cat conftest.
$ac_ext >&5
1355 CPP
="${CC-cc} -E -traditional-cpp"
1356 cat > conftest.
$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1362 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1363 { (eval echo configure
:1364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1364 ac_err
=`grep -v '^ *+' conftest.out`
1365 if test -z "$ac_err"; then
1369 echo "configure: failed program was:" >&5
1370 cat conftest.
$ac_ext >&5
1377 ac_cv_prog_CPP
="$CPP"
1379 CPP
="$ac_cv_prog_CPP"
1381 ac_cv_prog_CPP
="$CPP"
1383 echo "$ac_t""$CPP" 1>&6
1385 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1386 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1387 echo "configure:1388: checking for minix/config.h" >&5
1388 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1391 cat > conftest.
$ac_ext <<EOF
1392 #line 1393 "configure"
1393 #include "confdefs.h"
1394 #include <minix/config.h>
1396 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1397 { (eval echo configure
:1398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1398 ac_err
=`grep -v '^ *+' conftest.out`
1399 if test -z "$ac_err"; then
1401 eval "ac_cv_header_$ac_safe=yes"
1404 echo "configure: failed program was:" >&5
1405 cat conftest.
$ac_ext >&5
1407 eval "ac_cv_header_$ac_safe=no"
1411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1412 echo "$ac_t""yes" 1>&6
1415 echo "$ac_t""no" 1>&6
1419 if test "$MINIX" = yes; then
1420 cat >> confdefs.h
<<\EOF
1421 #define _POSIX_SOURCE 1
1424 cat >> confdefs.h
<<\EOF
1425 #define _POSIX_1_SOURCE 2
1428 cat >> confdefs.h
<<\EOF
1436 SIGNAMES_H
=lsignames.h
1440 if test "x$cross_compiling" = "xyes"; then
1443 cross_cache
=${srcdir}/cross-build
/cygwin32.cache
1444 SIGNAMES_H
='$(srcdir)/cross-build/win32sig.h'
1447 cross_cache
=${srcdir}/cross-build
/x86-beos.cache
1448 SIGNAMES_H
='${srcdir}/cross-build/beos-sig.h'
1450 *) echo "configure: cross-compiling for $host is not supported" >&2
1453 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
1454 echo "loading cross-build cache file ${cross_cache}"
1461 if test -z "$CC_FOR_BUILD"; then
1462 if test "x$cross_compiling" = "xno"; then
1463 CC_FOR_BUILD
='$(CC)'
1471 test -z "$CFLAGS" && CFLAGS
=-g auto_cflags
=1
1473 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O2"
1475 if test "$opt_profiling" = "yes"; then
1479 *) opt_static_link
=yes ;;
1483 if test "$opt_static_link" = yes; then
1484 # if we're using gcc, add `-static' to LDFLAGS
1485 if test -n "$GCC" ||
test "$ac_cv_prog_gcc" = "yes"; then
1495 if test $ac_cv_prog_gcc = yes; then
1496 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1497 echo "configure:1498: checking whether ${CC-cc} needs -traditional" >&5
1498 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 ac_pattern
="Autoconf.*'x'"
1502 cat > conftest.
$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1509 egrep "$ac_pattern" >/dev
/null
2>&1; then
1511 ac_cv_prog_gcc_traditional
=yes
1514 ac_cv_prog_gcc_traditional
=no
1519 if test $ac_cv_prog_gcc_traditional = no
; then
1520 cat > conftest.
$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1527 egrep "$ac_pattern" >/dev
/null
2>&1; then
1529 ac_cv_prog_gcc_traditional
=yes
1536 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1537 if test $ac_cv_prog_gcc_traditional = yes; then
1538 CC
="$CC -traditional"
1544 if test "$opt_readline" = yes && test "$opt_with_installed_readline" = "yes"
1548 test "x$prefix" = xNONE
&& _rl_prefix
=$ac_default_prefix || _rl_prefix
=${prefix}
1549 test "x$exec_prefix" = xNONE
&& _rl_exec_prefix
=${_rl_prefix} || _rl_exec_prefix
=${exec_prefix}
1551 echo $ac_n "checking version of installed readline library""... $ac_c" 1>&6
1552 echo "configure:1553: checking version of installed readline library" >&5
1553 _rl_version
=`exec_prefix=${_rl_exec_prefix} ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/rlvers.sh -C "${CC}" -L ${libdir}`
1554 echo "$ac_t""$_rl_version" 1>&6
1556 case "$_rl_version" in
1557 3*|
4*|
5*|
6*|
7*|
8*|
9*) ;;
1558 *) opt_with_installed_readline
=no
1559 echo "configure: warning: installed readline library is too old to be linked with bash" 1>&2
1560 echo "configure: warning: using private bash version" 1>&2
1563 unset _rl_version _rl_prefix _rl_exec_prefix
1566 if test $opt_readline = yes; then
1567 cat >> confdefs.h
<<\EOF
1571 READLINE_LIB
=-lreadline
1572 if test "$opt_with_installed_readline" = "yes" ; then
1573 RL_LIBDIR
='$(libdir)'
1575 RL_INCLUDE
='-I$(includedir)'
1577 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
1578 READLINE_DEP
='$(READLINE_LIBRARY)'
1581 RL_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
1582 READLINE_LIB
= READLINE_DEP
=
1584 if test $opt_history = yes ||
test $opt_bang_history = yes; then
1585 if test $opt_history = yes; then
1586 cat >> confdefs.h
<<\EOF
1591 if test $opt_bang_history = yes; then
1592 cat >> confdefs.h
<<\EOF
1593 #define BANG_HISTORY 1
1597 HISTORY_LIB
=-lhistory
1598 if test "$opt_with_installed_readline" = "yes"; then
1599 HIST_LIBDIR
='$(libdir)'
1601 RL_INCLUDE
='-I$(includedir)'
1603 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
1604 HISTORY_DEP
='$(HISTORY_LIBRARY)'
1607 HIST_LIBDIR
='$(dot)/$(LIBSUBDIR)/readline'
1608 HISTORY_LIB
= HISTORY_DEP
=
1619 # Find a good install program. We prefer a C program (faster),
1620 # so one script is as good as another. But avoid the broken or
1621 # incompatible versions:
1622 # SysV /etc/install, /usr/sbin/install
1623 # SunOS /usr/etc/install
1624 # IRIX /sbin/install
1626 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1627 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1628 # ./install, which can be erroneously created by make from ./install.sh.
1629 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1630 echo "configure:1631: checking for a BSD compatible install" >&5
1631 if test -z "$INSTALL"; then
1632 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1636 for ac_dir
in $PATH; do
1637 # Account for people who put trailing slashes in PATH elements.
1639 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1641 # OSF1 and SCO ODT 3.0 have their own names for install.
1642 for ac_prog
in ginstall installbsd scoinst
install; do
1643 if test -f $ac_dir/$ac_prog; then
1644 if test $ac_prog = install &&
1645 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1646 # AIX install. It has an incompatible calling convention.
1647 # OSF/1 installbsd also uses dspmsg, but is usable.
1650 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1661 if test "${ac_cv_path_install+set}" = set; then
1662 INSTALL
="$ac_cv_path_install"
1664 # As a last resort, use the slow shell script. We don't cache a
1665 # path for INSTALL within a source directory, because that will
1666 # break other packages using the cache if that directory is
1667 # removed, or if the path is relative.
1668 INSTALL
="$ac_install_sh"
1671 echo "$ac_t""$INSTALL" 1>&6
1673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1674 # It thinks the first close brace ends the variable substitution.
1675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1677 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1679 # Extract the first word of "ar", so it can be a program name with args.
1680 set dummy
ar; ac_word
=$2
1681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1682 echo "configure:1683: checking for $ac_word" >&5
1683 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 if test -n "$AR"; then
1687 ac_cv_prog_AR
="$AR" # Let the user override the test.
1689 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1690 for ac_dir
in $PATH; do
1691 test -z "$ac_dir" && ac_dir
=.
1692 if test -f $ac_dir/$ac_word; then
1701 if test -n "$AR"; then
1702 echo "$ac_t""$AR" 1>&6
1704 echo "$ac_t""no" 1>&6
1707 test -n "$ARFLAGS" || ARFLAGS
="cr"
1708 # Extract the first word of "ranlib", so it can be a program name with args.
1709 set dummy ranlib
; ac_word
=$2
1710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1711 echo "configure:1712: checking for $ac_word" >&5
1712 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1715 if test -n "$RANLIB"; then
1716 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1718 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1719 for ac_dir
in $PATH; do
1720 test -z "$ac_dir" && ac_dir
=.
1721 if test -f $ac_dir/$ac_word; then
1722 ac_cv_prog_RANLIB
="ranlib"
1727 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1730 RANLIB
="$ac_cv_prog_RANLIB"
1731 if test -n "$RANLIB"; then
1732 echo "$ac_t""$RANLIB" 1>&6
1734 echo "$ac_t""no" 1>&6
1737 for ac_prog
in 'bison -y' byacc
1739 # Extract the first word of "$ac_prog", so it can be a program name with args.
1740 set dummy
$ac_prog; ac_word
=$2
1741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_word" >&5
1743 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 if test -n "$YACC"; then
1747 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1749 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1750 for ac_dir
in $PATH; do
1751 test -z "$ac_dir" && ac_dir
=.
1752 if test -f $ac_dir/$ac_word; then
1753 ac_cv_prog_YACC
="$ac_prog"
1760 YACC
="$ac_cv_prog_YACC"
1761 if test -n "$YACC"; then
1762 echo "$ac_t""$YACC" 1>&6
1764 echo "$ac_t""no" 1>&6
1767 test -n "$YACC" && break
1769 test -n "$YACC" || YACC
="yacc"
1771 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1772 echo "configure:1773: checking whether ${MAKE-make} sets \${MAKE}" >&5
1773 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1774 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 cat > conftestmake
<<\EOF
1779 @
echo 'ac_maketemp="${MAKE}"'
1781 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1782 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1783 if test -n "$ac_maketemp"; then
1784 eval ac_cv_prog_make_
${ac_make}_set
=yes
1786 eval ac_cv_prog_make_
${ac_make}_set
=no
1790 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1791 echo "$ac_t""yes" 1>&6
1794 echo "$ac_t""no" 1>&6
1795 SET_MAKE
="MAKE=${MAKE-make}"
1800 opennt
*|interix
*) MAKE_SHELL
="$OPENNT_ROOT/bin/sh" ;;
1801 *) MAKE_SHELL
=/bin
/sh
;;
1805 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1806 # for constant arguments. Useless!
1807 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1808 echo "configure:1809: checking for working alloca.h" >&5
1809 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 cat > conftest.
$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1817 char *p = alloca(2 * sizeof(int));
1820 if { (eval echo configure
:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1822 ac_cv_header_alloca_h
=yes
1824 echo "configure: failed program was:" >&5
1825 cat conftest.
$ac_ext >&5
1827 ac_cv_header_alloca_h
=no
1832 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1833 if test $ac_cv_header_alloca_h = yes; then
1834 cat >> confdefs.h
<<\EOF
1835 #define HAVE_ALLOCA_H 1
1840 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1841 echo "configure:1842: checking for alloca" >&5
1842 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1850 # define alloca __builtin_alloca
1853 # include <alloca.h>
1858 # ifndef alloca /* predefined by HP cc +Olibcalls */
1866 char *p = (char *) alloca(1);
1869 if { (eval echo configure
:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1871 ac_cv_func_alloca_works
=yes
1873 echo "configure: failed program was:" >&5
1874 cat conftest.
$ac_ext >&5
1876 ac_cv_func_alloca_works
=no
1881 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1882 if test $ac_cv_func_alloca_works = yes; then
1883 cat >> confdefs.h
<<\EOF
1884 #define HAVE_ALLOCA 1
1889 if test $ac_cv_func_alloca_works = no
; then
1890 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1891 # that cause trouble. Some versions do not even contain alloca or
1892 # contain a buggy version. If you still want to use their alloca,
1893 # use ar to extract alloca.o from them instead of compiling alloca.c.
1895 cat >> confdefs.h
<<\EOF
1900 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1901 echo "configure:1902: checking whether alloca needs Cray hooks" >&5
1902 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 cat > conftest.
$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1908 #if defined(CRAY) && ! defined(CRAY2)
1915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1916 egrep "webecray" >/dev
/null
2>&1; then
1927 echo "$ac_t""$ac_cv_os_cray" 1>&6
1928 if test $ac_cv_os_cray = yes; then
1929 for ac_func
in _getb67 GETB67 getb67
; do
1930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1931 echo "configure:1932: checking for $ac_func" >&5
1932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 cat > conftest.
$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1938 /* System header to define __stub macros and hopefully few prototypes,
1939 which can conflict with char $ac_func(); below. */
1941 /* Override any gcc2 internal prototype to avoid an error. */
1942 /* We use char because int might match the return type of a gcc2
1943 builtin and then its argument prototype would still apply. */
1948 /* The GNU C library defines this for functions which it implements
1949 to always fail with ENOSYS. Some functions are actually named
1950 something starting with __ and the normal name is an alias. */
1951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1959 if { (eval echo configure
:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1961 eval "ac_cv_func_$ac_func=yes"
1963 echo "configure: failed program was:" >&5
1964 cat conftest.
$ac_ext >&5
1966 eval "ac_cv_func_$ac_func=no"
1971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1972 echo "$ac_t""yes" 1>&6
1973 cat >> confdefs.h
<<EOF
1974 #define CRAY_STACKSEG_END $ac_func
1979 echo "$ac_t""no" 1>&6
1985 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1986 echo "configure:1987: checking stack direction for C alloca" >&5
1987 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 if test "$cross_compiling" = yes; then
1991 ac_cv_c_stack_direction
=0
1993 cat > conftest.
$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1996 find_stack_direction ()
1998 static char *addr = 0;
2003 return find_stack_direction ();
2006 return (&dummy > addr) ? 1 : -1;
2010 exit (find_stack_direction() < 0);
2013 if { (eval echo configure
:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2015 ac_cv_c_stack_direction
=1
2017 echo "configure: failed program was:" >&5
2018 cat conftest.
$ac_ext >&5
2020 ac_cv_c_stack_direction
=-1
2027 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2028 cat >> confdefs.h
<<EOF
2029 #define STACK_DIRECTION $ac_cv_c_stack_direction
2034 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
2035 echo "configure:2036: checking whether getpgrp takes no argument" >&5
2036 if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 if test "$cross_compiling" = yes; then
2040 { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
2042 cat > conftest.
$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2047 * If this system has a BSD-style getpgrp(),
2048 * which takes a pid argument, exit unsuccessfully.
2050 * Snarfed from Chet Ramey's bash pgrp.c test program
2053 #include <sys/types.h>
2056 int pg1, pg2, pg3, pg4;
2057 int ng, np, s, child;
2068 * If all of these values are the same, it's pretty sure that
2069 * we're on a system that ignores getpgrp's first argument.
2071 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
2077 else if (child == 0) {
2080 * If this is Sys V, this will not work; pgrp will be
2081 * set to np because setpgrp just changes a pgrp to be
2082 * the same as the pid.
2085 ng = getpgrp(0); /* Same result for Sys V and BSD */
2098 if { (eval echo configure
:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2100 ac_cv_func_getpgrp_void
=yes
2102 echo "configure: failed program was:" >&5
2103 cat conftest.
$ac_ext >&5
2105 ac_cv_func_getpgrp_void
=no
2113 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
2114 if test $ac_cv_func_getpgrp_void = yes; then
2115 cat >> confdefs.h
<<\EOF
2116 #define GETPGRP_VOID 1
2121 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2122 echo "configure:2123: checking whether setvbuf arguments are reversed" >&5
2123 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 if test "$cross_compiling" = yes; then
2127 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2129 cat > conftest.
$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2133 /* If setvbuf has the reversed format, exit 0. */
2135 /* This call has the arguments reversed.
2136 A reversed system may check and see that the address of main
2137 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
2138 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2141 exit(0); /* Non-reversed systems segv here. */
2144 if { (eval echo configure
:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2146 ac_cv_func_setvbuf_reversed
=yes
2148 echo "configure: failed program was:" >&5
2149 cat conftest.
$ac_ext >&5
2151 ac_cv_func_setvbuf_reversed
=no
2156 rm -f core core.
* *.core
2159 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2160 if test $ac_cv_func_setvbuf_reversed = yes; then
2161 cat >> confdefs.h
<<\EOF
2162 #define SETVBUF_REVERSED 1
2167 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2168 echo "configure:2169: checking for vprintf" >&5
2169 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 cat > conftest.
$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2175 /* System header to define __stub macros and hopefully few prototypes,
2176 which can conflict with char vprintf(); below. */
2178 /* Override any gcc2 internal prototype to avoid an error. */
2179 /* We use char because int might match the return type of a gcc2
2180 builtin and then its argument prototype would still apply. */
2185 /* The GNU C library defines this for functions which it implements
2186 to always fail with ENOSYS. Some functions are actually named
2187 something starting with __ and the normal name is an alias. */
2188 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2196 if { (eval echo configure
:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2198 eval "ac_cv_func_vprintf=yes"
2200 echo "configure: failed program was:" >&5
2201 cat conftest.
$ac_ext >&5
2203 eval "ac_cv_func_vprintf=no"
2208 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2209 echo "$ac_t""yes" 1>&6
2210 cat >> confdefs.h
<<\EOF
2211 #define HAVE_VPRINTF 1
2215 echo "$ac_t""no" 1>&6
2218 if test "$ac_cv_func_vprintf" != yes; then
2219 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2220 echo "configure:2221: checking for _doprnt" >&5
2221 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 cat > conftest.
$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2227 /* System header to define __stub macros and hopefully few prototypes,
2228 which can conflict with char _doprnt(); below. */
2230 /* Override any gcc2 internal prototype to avoid an error. */
2231 /* We use char because int might match the return type of a gcc2
2232 builtin and then its argument prototype would still apply. */
2237 /* The GNU C library defines this for functions which it implements
2238 to always fail with ENOSYS. Some functions are actually named
2239 something starting with __ and the normal name is an alias. */
2240 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2248 if { (eval echo configure
:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2250 eval "ac_cv_func__doprnt=yes"
2252 echo "configure: failed program was:" >&5
2253 cat conftest.
$ac_ext >&5
2255 eval "ac_cv_func__doprnt=no"
2260 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 cat >> confdefs.h
<<\EOF
2263 #define HAVE_DOPRNT 1
2267 echo "$ac_t""no" 1>&6
2272 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
2273 echo "configure:2274: checking for wait3 that fills in rusage" >&5
2274 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 if test "$cross_compiling" = yes; then
2278 ac_cv_func_wait3_rusage
=no
2280 cat > conftest.
$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2283 #include <sys/types.h>
2284 #include <sys/time.h>
2285 #include <sys/resource.h>
2287 /* HP-UX has wait3 but does not fill in rusage at all. */
2291 /* Use a field that we can force nonzero --
2292 voluntary context switches.
2293 For systems like NeXT and OSF/1 that don't set it,
2294 also use the system CPU time. And page faults (I/O) for Linux. */
2296 r.ru_stime.tv_sec = 0;
2297 r.ru_stime.tv_usec = 0;
2298 r.ru_majflt = r.ru_minflt = 0;
2300 case 0: /* Child. */
2301 sleep(1); /* Give up the CPU. */
2303 case -1: _exit(0); /* What can we do? */
2304 default: /* Parent. */
2306 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
2307 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
2308 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
2312 if { (eval echo configure
:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2314 ac_cv_func_wait3_rusage
=yes
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 ac_cv_func_wait3_rusage
=no
2326 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
2327 if test $ac_cv_func_wait3_rusage = yes; then
2328 cat >> confdefs.h
<<\EOF
2329 #define HAVE_WAIT3 1
2334 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
2335 echo "configure:2336: checking for working strcoll" >&5
2336 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2339 if test "$cross_compiling" = yes; then
2340 ac_cv_func_strcoll_works
=no
2342 cat > conftest.
$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2348 exit (strcoll ("abc", "def") >= 0 ||
2349 strcoll ("ABC", "DEF") >= 0 ||
2350 strcoll ("123", "456") >= 0);
2353 if { (eval echo configure
:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2355 ac_cv_func_strcoll_works
=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2360 ac_cv_func_strcoll_works
=no
2367 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
2368 if test $ac_cv_func_strcoll_works = yes; then
2369 cat >> confdefs.h
<<\EOF
2370 #define HAVE_STRCOLL 1
2376 if test "$ac_cv_func_vprintf" = no
; then
2377 echo $ac_n "checking for declaration of vprintf in stdio.h""... $ac_c" 1>&6
2378 echo "configure:2379: checking for declaration of vprintf in stdio.h" >&5
2379 cat > conftest.
$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2385 egrep "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev
/null
2>&1; then
2387 ac_cv_func_vprintf
=yes
2391 echo "$ac_t""$ac_cv_func_vprintf" 1>&6
2392 if test $ac_cv_func_vprintf = yes; then
2393 cat >> confdefs.h
<<\EOF
2394 #define HAVE_VPRINTF 1
2400 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2401 echo "configure:2402: checking return type of signal handlers" >&5
2402 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 cat > conftest.
$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 #include <sys/types.h>
2414 extern "C" void (*signal (int, void (*)(int)))(int);
2416 void (*signal ()) ();
2423 if { (eval echo configure
:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2425 ac_cv_type_signal
=void
2427 echo "configure: failed program was:" >&5
2428 cat conftest.
$ac_ext >&5
2430 ac_cv_type_signal
=int
2435 echo "$ac_t""$ac_cv_type_signal" 1>&6
2436 cat >> confdefs.h
<<EOF
2437 #define RETSIGTYPE $ac_cv_type_signal
2442 echo $ac_n "checking for __setostype""... $ac_c" 1>&6
2443 echo "configure:2444: checking for __setostype" >&5
2444 if eval "test \"`echo '$''{'ac_cv_func___setostype'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2447 cat > conftest.
$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2450 /* System header to define __stub macros and hopefully few prototypes,
2451 which can conflict with char __setostype(); below. */
2453 /* Override any gcc2 internal prototype to avoid an error. */
2454 /* We use char because int might match the return type of a gcc2
2455 builtin and then its argument prototype would still apply. */
2460 /* The GNU C library defines this for functions which it implements
2461 to always fail with ENOSYS. Some functions are actually named
2462 something starting with __ and the normal name is an alias. */
2463 #if defined (__stub___setostype) || defined (__stub_____setostype)
2471 if { (eval echo configure
:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2473 eval "ac_cv_func___setostype=yes"
2475 echo "configure: failed program was:" >&5
2476 cat conftest.
$ac_ext >&5
2478 eval "ac_cv_func___setostype=no"
2483 if eval "test \"`echo '$ac_cv_func_'__setostype`\" = yes"; then
2484 echo "$ac_t""yes" 1>&6
2485 cat >> confdefs.h
<<\EOF
2486 #define HAVE_SETOSTYPE 1
2490 echo "$ac_t""no" 1>&6
2493 echo $ac_n "checking for wait3""... $ac_c" 1>&6
2494 echo "configure:2495: checking for wait3" >&5
2495 if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.
$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 /* System header to define __stub macros and hopefully few prototypes,
2502 which can conflict with char wait3(); below. */
2504 /* Override any gcc2 internal prototype to avoid an error. */
2505 /* We use char because int might match the return type of a gcc2
2506 builtin and then its argument prototype would still apply. */
2511 /* The GNU C library defines this for functions which it implements
2512 to always fail with ENOSYS. Some functions are actually named
2513 something starting with __ and the normal name is an alias. */
2514 #if defined (__stub_wait3) || defined (__stub___wait3)
2522 if { (eval echo configure
:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2524 eval "ac_cv_func_wait3=yes"
2526 echo "configure: failed program was:" >&5
2527 cat conftest.
$ac_ext >&5
2529 eval "ac_cv_func_wait3=no"
2534 if eval "test \"`echo '$ac_cv_func_'wait3`\" = yes"; then
2535 echo "$ac_t""yes" 1>&6
2536 cat >> confdefs.h
<<\EOF
2537 #define HAVE_WAIT3 1
2541 echo "$ac_t""no" 1>&6
2545 echo $ac_n "checking for mkfifo""... $ac_c" 1>&6
2546 echo "configure:2547: checking for mkfifo" >&5
2547 if eval "test \"`echo '$''{'ac_cv_func_mkfifo'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.
$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2553 /* System header to define __stub macros and hopefully few prototypes,
2554 which can conflict with char mkfifo(); below. */
2556 /* Override any gcc2 internal prototype to avoid an error. */
2557 /* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2563 /* The GNU C library defines this for functions which it implements
2564 to always fail with ENOSYS. Some functions are actually named
2565 something starting with __ and the normal name is an alias. */
2566 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
2574 if { (eval echo configure
:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2576 eval "ac_cv_func_mkfifo=yes"
2578 echo "configure: failed program was:" >&5
2579 cat conftest.
$ac_ext >&5
2581 eval "ac_cv_func_mkfifo=no"
2586 if eval "test \"`echo '$ac_cv_func_'mkfifo`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 cat >> confdefs.h
<<\EOF
2589 #define HAVE_MKFIFO 1
2593 echo "$ac_t""no" 1>&6
2594 cat >> confdefs.h
<<\EOF
2595 #define MKFIFO_MISSING 1
2601 for ac_func
in dup2
select getdtablesize getgroups gethostname \
2602 setdtablesize getpagesize killpg lstat getpeername sbrk \
2603 getrlimit getrusage gettimeofday waitpid tcgetpgrp rename
2605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2606 echo "configure:2607: checking for $ac_func" >&5
2607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2610 cat > conftest.
$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 /* System header to define __stub macros and hopefully few prototypes,
2614 which can conflict with char $ac_func(); below. */
2616 /* Override any gcc2 internal prototype to avoid an error. */
2617 /* We use char because int might match the return type of a gcc2
2618 builtin and then its argument prototype would still apply. */
2623 /* The GNU C library defines this for functions which it implements
2624 to always fail with ENOSYS. Some functions are actually named
2625 something starting with __ and the normal name is an alias. */
2626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2634 if { (eval echo configure
:2635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2636 eval "ac_cv_func_$ac_func=yes"
2638 echo "configure: failed program was:" >&5
2639 cat conftest.
$ac_ext >&5
2641 eval "ac_cv_func_$ac_func=no"
2646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2647 echo "$ac_t""yes" 1>&6
2648 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2649 cat >> confdefs.h
<<EOF
2650 #define $ac_tr_func 1
2654 echo "$ac_t""no" 1>&6
2659 for ac_func
in bcopy bzero confstr getcwd strcasecmp setenv putenv \
2660 setlinebuf setlocale strchr strerror strtod strtol \
2661 strtoul tcgetattr uname sysconf
ulimit times tzset \
2662 siginterrupt memmove
2664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2665 echo "configure:2666: checking for $ac_func" >&5
2666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2669 cat > conftest.
$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 /* System header to define __stub macros and hopefully few prototypes,
2673 which can conflict with char $ac_func(); below. */
2675 /* Override any gcc2 internal prototype to avoid an error. */
2676 /* We use char because int might match the return type of a gcc2
2677 builtin and then its argument prototype would still apply. */
2682 /* The GNU C library defines this for functions which it implements
2683 to always fail with ENOSYS. Some functions are actually named
2684 something starting with __ and the normal name is an alias. */
2685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2693 if { (eval echo configure
:2694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2695 eval "ac_cv_func_$ac_func=yes"
2697 echo "configure: failed program was:" >&5
2698 cat conftest.
$ac_ext >&5
2700 eval "ac_cv_func_$ac_func=no"
2705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2707 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2708 cat >> confdefs.h
<<EOF
2709 #define $ac_tr_func 1
2713 echo "$ac_t""no" 1>&6
2718 for ac_hdr
in libintl.h
2720 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2722 echo "configure:2723: checking for $ac_hdr" >&5
2723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 cat > conftest.
$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2731 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2732 { (eval echo configure
:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2733 ac_err
=`grep -v '^ *+' conftest.out`
2734 if test -z "$ac_err"; then
2736 eval "ac_cv_header_$ac_safe=yes"
2739 echo "configure: failed program was:" >&5
2740 cat conftest.
$ac_ext >&5
2742 eval "ac_cv_header_$ac_safe=no"
2746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2747 echo "$ac_t""yes" 1>&6
2748 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2749 cat >> confdefs.h
<<EOF
2750 #define $ac_tr_hdr 1
2754 echo "$ac_t""no" 1>&6
2758 for ac_func
in gettext textdomain bindtextdomain
2760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2761 echo "configure:2762: checking for $ac_func" >&5
2762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 cat > conftest.
$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2768 /* System header to define __stub macros and hopefully few prototypes,
2769 which can conflict with char $ac_func(); below. */
2771 /* Override any gcc2 internal prototype to avoid an error. */
2772 /* We use char because int might match the return type of a gcc2
2773 builtin and then its argument prototype would still apply. */
2778 /* The GNU C library defines this for functions which it implements
2779 to always fail with ENOSYS. Some functions are actually named
2780 something starting with __ and the normal name is an alias. */
2781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2789 if { (eval echo configure
:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2791 eval "ac_cv_func_$ac_func=yes"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.
$ac_ext >&5
2796 eval "ac_cv_func_$ac_func=no"
2801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2803 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2804 cat >> confdefs.h
<<EOF
2805 #define $ac_tr_func 1
2809 echo "$ac_t""no" 1>&6
2814 if test "$ac_cv_func_bindtextdomain" = "no"; then
2815 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2816 echo "configure:2817: checking for bindtextdomain in -lintl" >&5
2817 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 ac_save_LIBS
="$LIBS"
2823 cat > conftest.
$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826 /* Override any gcc2 internal prototype to avoid an error. */
2827 /* We use char because int might match the return type of a gcc2
2828 builtin and then its argument prototype would still apply. */
2829 char bindtextdomain();
2835 if { (eval echo configure
:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2837 eval "ac_cv_lib_$ac_lib_var=yes"
2839 echo "configure: failed program was:" >&5
2840 cat conftest.
$ac_ext >&5
2842 eval "ac_cv_lib_$ac_lib_var=no"
2845 LIBS
="$ac_save_LIBS"
2848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2849 echo "$ac_t""yes" 1>&6
2850 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2851 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2852 cat >> confdefs.h
<<EOF
2853 #define $ac_tr_lib 1
2859 echo "$ac_t""no" 1>&6
2862 if test "$ac_cv_lib_intl" = "yes"; then
2863 for ac_func
in gettext textdomain bindtextdomain
2865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2866 echo "configure:2867: checking for $ac_func" >&5
2867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 cat > conftest.
$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2873 /* System header to define __stub macros and hopefully few prototypes,
2874 which can conflict with char $ac_func(); below. */
2876 /* Override any gcc2 internal prototype to avoid an error. */
2877 /* We use char because int might match the return type of a gcc2
2878 builtin and then its argument prototype would still apply. */
2883 /* The GNU C library defines this for functions which it implements
2884 to always fail with ENOSYS. Some functions are actually named
2885 something starting with __ and the normal name is an alias. */
2886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2894 if { (eval echo configure
:2895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2896 eval "ac_cv_func_$ac_func=yes"
2898 echo "configure: failed program was:" >&5
2899 cat conftest.
$ac_ext >&5
2901 eval "ac_cv_func_$ac_func=no"
2906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2907 echo "$ac_t""yes" 1>&6
2908 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2909 cat >> confdefs.h
<<EOF
2910 #define $ac_tr_func 1
2914 echo "$ac_t""no" 1>&6
2921 if test "$opt_static_link" != yes; then
2922 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2923 echo "configure:2924: checking for dlopen in -ldl" >&5
2924 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 ac_save_LIBS
="$LIBS"
2930 cat > conftest.
$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933 /* Override any gcc2 internal prototype to avoid an error. */
2934 /* We use char because int might match the return type of a gcc2
2935 builtin and then its argument prototype would still apply. */
2942 if { (eval echo configure
:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2944 eval "ac_cv_lib_$ac_lib_var=yes"
2946 echo "configure: failed program was:" >&5
2947 cat conftest.
$ac_ext >&5
2949 eval "ac_cv_lib_$ac_lib_var=no"
2952 LIBS
="$ac_save_LIBS"
2955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2956 echo "$ac_t""yes" 1>&6
2957 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2958 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2959 cat >> confdefs.h
<<EOF
2960 #define $ac_tr_lib 1
2966 echo "$ac_t""no" 1>&6
2969 for ac_func
in dlopen dlclose dlsym
2971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2972 echo "configure:2973: checking for $ac_func" >&5
2973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 cat > conftest.
$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2979 /* System header to define __stub macros and hopefully few prototypes,
2980 which can conflict with char $ac_func(); below. */
2982 /* Override any gcc2 internal prototype to avoid an error. */
2983 /* We use char because int might match the return type of a gcc2
2984 builtin and then its argument prototype would still apply. */
2989 /* The GNU C library defines this for functions which it implements
2990 to always fail with ENOSYS. Some functions are actually named
2991 something starting with __ and the normal name is an alias. */
2992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3000 if { (eval echo configure
:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3002 eval "ac_cv_func_$ac_func=yes"
3004 echo "configure: failed program was:" >&5
3005 cat conftest.
$ac_ext >&5
3007 eval "ac_cv_func_$ac_func=no"
3012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3014 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3015 cat >> confdefs.h
<<EOF
3016 #define $ac_tr_func 1
3020 echo "$ac_t""no" 1>&6
3026 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3027 echo "configure:3028: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3028 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.
$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034 #include <sys/types.h>
3036 /* NetBSD declares sys_siglist in unistd.h. */
3037 #ifdef HAVE_UNISTD_H
3041 char *msg = *(sys_siglist + 1);
3044 if { (eval echo configure
:3045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3046 ac_cv_decl_sys_siglist
=yes
3048 echo "configure: failed program was:" >&5
3049 cat conftest.
$ac_ext >&5
3051 ac_cv_decl_sys_siglist
=no
3056 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3057 if test $ac_cv_decl_sys_siglist = yes; then
3058 cat >> confdefs.h
<<\EOF
3059 #define SYS_SIGLIST_DECLARED 1
3066 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
3068 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3069 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3070 echo "configure:3071: checking for $ac_hdr that defines DIR" >&5
3071 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 cat > conftest.
$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3077 #include <sys/types.h>
3083 if { (eval echo configure
:3084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3085 eval "ac_cv_header_dirent_$ac_safe=yes"
3087 echo "configure: failed program was:" >&5
3088 cat conftest.
$ac_ext >&5
3090 eval "ac_cv_header_dirent_$ac_safe=no"
3094 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
3096 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3097 cat >> confdefs.h
<<EOF
3098 #define $ac_tr_hdr 1
3100 ac_header_dirent
=$ac_hdr; break
3102 echo "$ac_t""no" 1>&6
3105 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3106 if test $ac_header_dirent = dirent.h
; then
3107 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3108 echo "configure:3109: checking for opendir in -ldir" >&5
3109 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 ac_save_LIBS
="$LIBS"
3115 cat > conftest.
$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3118 /* Override any gcc2 internal prototype to avoid an error. */
3119 /* We use char because int might match the return type of a gcc2
3120 builtin and then its argument prototype would still apply. */
3127 if { (eval echo configure
:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3129 eval "ac_cv_lib_$ac_lib_var=yes"
3131 echo "configure: failed program was:" >&5
3132 cat conftest.
$ac_ext >&5
3134 eval "ac_cv_lib_$ac_lib_var=no"
3137 LIBS
="$ac_save_LIBS"
3140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3141 echo "$ac_t""yes" 1>&6
3144 echo "$ac_t""no" 1>&6
3148 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3149 echo "configure:3150: checking for opendir in -lx" >&5
3150 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 ac_save_LIBS
="$LIBS"
3156 cat > conftest.
$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 /* Override any gcc2 internal prototype to avoid an error. */
3160 /* We use char because int might match the return type of a gcc2
3161 builtin and then its argument prototype would still apply. */
3168 if { (eval echo configure
:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3170 eval "ac_cv_lib_$ac_lib_var=yes"
3172 echo "configure: failed program was:" >&5
3173 cat conftest.
$ac_ext >&5
3175 eval "ac_cv_lib_$ac_lib_var=no"
3178 LIBS
="$ac_save_LIBS"
3181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3182 echo "$ac_t""yes" 1>&6
3185 echo "$ac_t""no" 1>&6
3190 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3191 echo "configure:3192: checking whether time.h and sys/time.h may both be included" >&5
3192 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 cat > conftest.
$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 #include <sys/types.h>
3199 #include <sys/time.h>
3205 if { (eval echo configure
:3206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3207 ac_cv_header_time
=yes
3209 echo "configure: failed program was:" >&5
3210 cat conftest.
$ac_ext >&5
3212 ac_cv_header_time
=no
3217 echo "$ac_t""$ac_cv_header_time" 1>&6
3218 if test $ac_cv_header_time = yes; then
3219 cat >> confdefs.h
<<\EOF
3220 #define TIME_WITH_SYS_TIME 1
3226 for ac_hdr
in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
3227 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
3230 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_hdr" >&5
3233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.
$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3241 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3242 { (eval echo configure
:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3243 ac_err
=`grep -v '^ *+' conftest.out`
3244 if test -z "$ac_err"; then
3246 eval "ac_cv_header_$ac_safe=yes"
3249 echo "configure: failed program was:" >&5
3250 cat conftest.
$ac_ext >&5
3252 eval "ac_cv_header_$ac_safe=no"
3256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3257 echo "$ac_t""yes" 1>&6
3258 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3259 cat >> confdefs.h
<<EOF
3260 #define $ac_tr_hdr 1
3264 echo "$ac_t""no" 1>&6
3268 for ac_hdr
in sys
/ptem.h sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h \
3269 sys
/resource.h sys
/param.h sys
/socket.h \
3270 sys
/time.h sys
/times.h sys
/wait.h
3272 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3274 echo "configure:3275: checking for $ac_hdr" >&5
3275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3278 cat > conftest.
$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3283 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3284 { (eval echo configure
:3285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3285 ac_err
=`grep -v '^ *+' conftest.out`
3286 if test -z "$ac_err"; then
3288 eval "ac_cv_header_$ac_safe=yes"
3291 echo "configure: failed program was:" >&5
3292 cat conftest.
$ac_ext >&5
3294 eval "ac_cv_header_$ac_safe=no"
3298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3299 echo "$ac_t""yes" 1>&6
3300 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3301 cat >> confdefs.h
<<EOF
3302 #define $ac_tr_hdr 1
3306 echo "$ac_t""no" 1>&6
3311 if test "$ac_cv_func_getpeername" = no
; then
3313 if test "X$bash_cv_have_socklib" = "X"; then
3316 echo $ac_n "checking for socket library""... $ac_c" 1>&6
3317 echo "configure:3318: checking for socket library" >&5
3320 if eval "test \"`echo '$''{'bash_cv_have_socklib'+set}'`\" = set"; then
3321 echo $ac_n "(cached) $ac_c" 1>&6
3323 echo $ac_n "checking for getpeername in -lsocket""... $ac_c" 1>&6
3324 echo "configure:3325: checking for getpeername in -lsocket" >&5
3325 ac_lib_var
=`echo socket'_'getpeername | sed 'y%./+-%__p_%'`
3326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3329 ac_save_LIBS
="$LIBS"
3330 LIBS
="-lsocket -lnsl $LIBS"
3331 cat > conftest.
$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 /* Override any gcc2 internal prototype to avoid an error. */
3335 /* We use char because int might match the return type of a gcc2
3336 builtin and then its argument prototype would still apply. */
3343 if { (eval echo configure
:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3345 eval "ac_cv_lib_$ac_lib_var=yes"
3347 echo "configure: failed program was:" >&5
3348 cat conftest.
$ac_ext >&5
3350 eval "ac_cv_lib_$ac_lib_var=no"
3353 LIBS
="$ac_save_LIBS"
3356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3357 echo "$ac_t""yes" 1>&6
3358 bash_cv_have_socklib
=yes
3360 echo "$ac_t""no" 1>&6
3361 bash_cv_have_socklib
=no
3366 if test "X$_bash_needmsg" = Xyes
; then
3367 echo "$ac_t""$bash_cv_have_socklib" 1>&6
3370 if test $bash_cv_have_socklib = yes; then
3371 # check for libnsl, add it to LIBS if present
3372 if test "X$bash_cv_have_libnsl" = "X"; then
3375 echo $ac_n "checking for libnsl""... $ac_c" 1>&6
3376 echo "configure:3377: checking for libnsl" >&5
3379 if eval "test \"`echo '$''{'bash_cv_have_libnsl'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
3383 echo "configure:3384: checking for t_open in -lnsl" >&5
3384 ac_lib_var
=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
3385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 ac_save_LIBS
="$LIBS"
3390 cat > conftest.
$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 /* Override any gcc2 internal prototype to avoid an error. */
3394 /* We use char because int might match the return type of a gcc2
3395 builtin and then its argument prototype would still apply. */
3402 if { (eval echo configure
:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3404 eval "ac_cv_lib_$ac_lib_var=yes"
3406 echo "configure: failed program was:" >&5
3407 cat conftest.
$ac_ext >&5
3409 eval "ac_cv_lib_$ac_lib_var=no"
3412 LIBS
="$ac_save_LIBS"
3415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3416 echo "$ac_t""yes" 1>&6
3417 bash_cv_have_libnsl
=yes
3419 echo "$ac_t""no" 1>&6
3420 bash_cv_have_libnsl
=no
3425 if test "X$_bash_needmsg" = Xyes
; then
3426 echo "$ac_t""$bash_cv_have_libnsl" 1>&6
3429 if test $bash_cv_have_libnsl = yes; then
3430 LIBS
="-lsocket -lnsl $LIBS"
3432 LIBS
="-lsocket $LIBS"
3434 cat >> confdefs.h
<<\EOF
3435 #define HAVE_LIBSOCKET 1
3438 cat >> confdefs.h
<<\EOF
3439 #define HAVE_GETPEERNAME 1
3446 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3447 echo "configure:3448: checking for uid_t in sys/types.h" >&5
3448 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3451 cat > conftest.
$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 #include <sys/types.h>
3456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3457 egrep "uid_t" >/dev
/null
2>&1; then
3459 ac_cv_type_uid_t
=yes
3468 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3469 if test $ac_cv_type_uid_t = no
; then
3470 cat >> confdefs.h
<<\EOF
3474 cat >> confdefs.h
<<\EOF
3480 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3481 echo "configure:3482: checking type of array argument to getgroups" >&5
3482 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 if test "$cross_compiling" = yes; then
3486 ac_cv_type_getgroups
=cross
3488 cat > conftest.
$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3492 /* Thanks to Mike Rendell for this test. */
3493 #include <sys/types.h>
3496 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3501 union { gid_t gval; long lval; } val;
3504 for (i = 0; i < NGID; i++)
3505 gidset[i] = val.gval;
3506 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3508 /* Exit non-zero if getgroups seems to require an array of ints. This
3509 happens when gid_t is short but getgroups modifies an array of ints. */
3510 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3514 if { (eval echo configure
:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3516 ac_cv_type_getgroups
=gid_t
3518 echo "configure: failed program was:" >&5
3519 cat conftest.
$ac_ext >&5
3521 ac_cv_type_getgroups
=int
3526 if test $ac_cv_type_getgroups = cross
; then
3527 cat > conftest.
$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3533 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3535 ac_cv_type_getgroups
=gid_t
3538 ac_cv_type_getgroups
=int
3545 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3546 cat >> confdefs.h
<<EOF
3547 #define GETGROUPS_T $ac_cv_type_getgroups
3551 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3552 echo "configure:3553: checking for ANSI C header files" >&5
3553 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 cat > conftest.
$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3564 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3565 { (eval echo configure
:3566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3566 ac_err
=`grep -v '^ *+' conftest.out`
3567 if test -z "$ac_err"; then
3569 ac_cv_header_stdc
=yes
3572 echo "configure: failed program was:" >&5
3573 cat conftest.
$ac_ext >&5
3575 ac_cv_header_stdc
=no
3579 if test $ac_cv_header_stdc = yes; then
3580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3581 cat > conftest.
$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3587 egrep "memchr" >/dev
/null
2>&1; then
3591 ac_cv_header_stdc
=no
3597 if test $ac_cv_header_stdc = yes; then
3598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3599 cat > conftest.
$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3605 egrep "free" >/dev
/null
2>&1; then
3609 ac_cv_header_stdc
=no
3615 if test $ac_cv_header_stdc = yes; then
3616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3617 if test "$cross_compiling" = yes; then
3620 cat > conftest.
$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3624 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3625 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3626 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3627 int main () { int i; for (i = 0; i < 256; i++)
3628 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3632 if { (eval echo configure
:3633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3636 echo "configure: failed program was:" >&5
3637 cat conftest.
$ac_ext >&5
3639 ac_cv_header_stdc
=no
3647 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3648 if test $ac_cv_header_stdc = yes; then
3649 cat >> confdefs.h
<<\EOF
3650 #define STDC_HEADERS 1
3655 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3656 echo "configure:3657: checking for off_t" >&5
3657 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3660 cat > conftest.
$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3663 #include <sys/types.h>
3669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3670 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3672 ac_cv_type_off_t
=yes
3680 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3681 if test $ac_cv_type_off_t = no
; then
3682 cat >> confdefs.h
<<\EOF
3688 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3689 echo "configure:3690: checking for mode_t" >&5
3690 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 cat > conftest.
$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 #include <sys/types.h>
3702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3703 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3705 ac_cv_type_mode_t
=yes
3708 ac_cv_type_mode_t
=no
3713 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3714 if test $ac_cv_type_mode_t = no
; then
3715 cat >> confdefs.h
<<\EOF
3721 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3722 echo "configure:3723: checking for uid_t in sys/types.h" >&5
3723 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3726 cat > conftest.
$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 #include <sys/types.h>
3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 egrep "uid_t" >/dev
/null
2>&1; then
3734 ac_cv_type_uid_t
=yes
3743 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3744 if test $ac_cv_type_uid_t = no
; then
3745 cat >> confdefs.h
<<\EOF
3749 cat >> confdefs.h
<<\EOF
3755 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3756 echo "configure:3757: checking for pid_t" >&5
3757 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 cat > conftest.
$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #include <sys/types.h>
3769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3770 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3772 ac_cv_type_pid_t
=yes
3780 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3781 if test $ac_cv_type_pid_t = no
; then
3782 cat >> confdefs.h
<<\EOF
3788 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3789 echo "configure:3790: checking for size_t" >&5
3790 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 cat > conftest.
$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 #include <sys/types.h>
3802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3803 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3805 ac_cv_type_size_t
=yes
3808 ac_cv_type_size_t
=no
3813 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3814 if test $ac_cv_type_size_t = no
; then
3815 cat >> confdefs.h
<<\EOF
3816 #define size_t unsigned
3821 echo $ac_n "checking for time_t""... $ac_c" 1>&6
3822 echo "configure:3823: checking for time_t" >&5
3823 if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3826 cat > conftest.
$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3829 #include <sys/types.h>
3835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3836 egrep "time_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3838 ac_cv_type_time_t
=yes
3841 ac_cv_type_time_t
=no
3846 echo "$ac_t""$ac_cv_type_time_t" 1>&6
3847 if test $ac_cv_type_time_t = no
; then
3848 cat >> confdefs.h
<<\EOF
3855 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3856 echo "configure:3857: checking return type of signal handlers" >&5
3857 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3860 cat > conftest.
$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 #include <sys/types.h>
3869 extern "C" void (*signal (int, void (*)(int)))(int);
3871 void (*signal ()) ();
3878 if { (eval echo configure
:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3880 ac_cv_type_signal
=void
3882 echo "configure: failed program was:" >&5
3883 cat conftest.
$ac_ext >&5
3885 ac_cv_type_signal
=int
3890 echo "$ac_t""$ac_cv_type_signal" 1>&6
3891 cat >> confdefs.h
<<EOF
3892 #define RETSIGTYPE $ac_cv_type_signal
3897 echo $ac_n "checking size of int""... $ac_c" 1>&6
3898 echo "configure:3899: checking size of int" >&5
3899 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3902 if test "$cross_compiling" = yes; then
3905 cat > conftest.
$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3911 FILE *f=fopen("conftestval", "w");
3913 fprintf(f, "%d\n", sizeof(int));
3917 if { (eval echo configure
:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3919 ac_cv_sizeof_int
=`cat conftestval`
3921 echo "configure: failed program was:" >&5
3922 cat conftest.
$ac_ext >&5
3930 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3931 cat >> confdefs.h
<<EOF
3932 #define SIZEOF_INT $ac_cv_sizeof_int
3936 echo $ac_n "checking size of long""... $ac_c" 1>&6
3937 echo "configure:3938: checking size of long" >&5
3938 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3941 if test "$cross_compiling" = yes; then
3944 cat > conftest.
$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3950 FILE *f=fopen("conftestval", "w");
3952 fprintf(f, "%d\n", sizeof(long));
3956 if { (eval echo configure
:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3958 ac_cv_sizeof_long
=`cat conftestval`
3960 echo "configure: failed program was:" >&5
3961 cat conftest.
$ac_ext >&5
3969 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3970 cat >> confdefs.h
<<EOF
3971 #define SIZEOF_LONG $ac_cv_sizeof_long
3975 echo $ac_n "checking size of char *""... $ac_c" 1>&6
3976 echo "configure:3977: checking size of char *" >&5
3977 if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3980 if test "$cross_compiling" = yes; then
3981 ac_cv_sizeof_char_p
=4
3983 cat > conftest.
$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3989 FILE *f=fopen("conftestval", "w");
3991 fprintf(f, "%d\n", sizeof(char *));
3995 if { (eval echo configure
:3996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3997 ac_cv_sizeof_char_p
=`cat conftestval`
3999 echo "configure: failed program was:" >&5
4000 cat conftest.
$ac_ext >&5
4002 ac_cv_sizeof_char_p
=0
4008 echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
4009 cat >> confdefs.h
<<EOF
4010 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
4014 echo $ac_n "checking size of double""... $ac_c" 1>&6
4015 echo "configure:4016: checking size of double" >&5
4016 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4019 if test "$cross_compiling" = yes; then
4020 ac_cv_sizeof_double
=8
4022 cat > conftest.
$ac_ext <<EOF
4023 #line 4024 "configure"
4024 #include "confdefs.h"
4028 FILE *f=fopen("conftestval", "w");
4030 fprintf(f, "%d\n", sizeof(double));
4034 if { (eval echo configure
:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4036 ac_cv_sizeof_double
=`cat conftestval`
4038 echo "configure: failed program was:" >&5
4039 cat conftest.
$ac_ext >&5
4041 ac_cv_sizeof_double
=0
4047 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
4048 cat >> confdefs.h
<<EOF
4049 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4055 if test "$ac_cv_sizeof_int" = 4; then
4056 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
4057 echo "configure:4058: checking for int32_t" >&5
4058 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4061 cat > conftest.
$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4064 #include <sys/types.h>
4070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4071 egrep "int32_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4073 ac_cv_type_int32_t
=yes
4076 ac_cv_type_int32_t
=no
4081 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
4082 if test $ac_cv_type_int32_t = no
; then
4083 cat >> confdefs.h
<<\EOF
4089 elif test "$ac_cv_sizeof_long" = 4; then
4090 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
4091 echo "configure:4092: checking for int32_t" >&5
4092 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4095 cat > conftest.
$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4098 #include <sys/types.h>
4104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105 egrep "int32_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4107 ac_cv_type_int32_t
=yes
4110 ac_cv_type_int32_t
=no
4115 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
4116 if test $ac_cv_type_int32_t = no
; then
4117 cat >> confdefs.h
<<\EOF
4118 #define int32_t long
4124 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
4125 echo "configure:4126: checking for int32_t" >&5
4126 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4129 cat > conftest.
$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 #include <sys/types.h>
4138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139 egrep "int32_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4141 ac_cv_type_int32_t
=yes
4144 ac_cv_type_int32_t
=no
4149 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
4150 if test $ac_cv_type_int32_t = no
; then
4151 cat >> confdefs.h
<<\EOF
4160 if test "$ac_cv_sizeof_int" = 4; then
4161 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
4162 echo "configure:4163: checking for u_int32_t" >&5
4163 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4166 cat > conftest.
$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4169 #include <sys/types.h>
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 egrep "u_int32_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4178 ac_cv_type_u_int32_t
=yes
4181 ac_cv_type_u_int32_t
=no
4186 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
4187 if test $ac_cv_type_u_int32_t = no
; then
4188 cat >> confdefs.h
<<\EOF
4189 #define u_int32_t unsigned int
4194 elif test "$ac_cv_sizeof_long" = 4; then
4195 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
4196 echo "configure:4197: checking for u_int32_t" >&5
4197 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4200 cat > conftest.
$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 #include <sys/types.h>
4209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4210 egrep "u_int32_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4212 ac_cv_type_u_int32_t
=yes
4215 ac_cv_type_u_int32_t
=no
4220 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
4221 if test $ac_cv_type_u_int32_t = no
; then
4222 cat >> confdefs.h
<<\EOF
4223 #define u_int32_t unsigned long
4229 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
4230 echo "configure:4231: checking for u_int32_t" >&5
4231 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 cat > conftest.
$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4237 #include <sys/types.h>
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 egrep "u_int32_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4246 ac_cv_type_u_int32_t
=yes
4249 ac_cv_type_u_int32_t
=no
4254 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
4255 if test $ac_cv_type_u_int32_t = no
; then
4256 cat >> confdefs.h
<<\EOF
4257 #define u_int32_t unsigned int
4265 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
4266 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
4267 echo "configure:4268: checking for ptrdiff_t" >&5
4268 if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
4269 echo $ac_n "(cached) $ac_c" 1>&6
4271 cat > conftest.
$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274 #include <sys/types.h>
4280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4281 egrep "ptrdiff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4283 ac_cv_type_ptrdiff_t
=yes
4286 ac_cv_type_ptrdiff_t
=no
4291 echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
4292 if test $ac_cv_type_ptrdiff_t = no
; then
4293 cat >> confdefs.h
<<\EOF
4294 #define ptrdiff_t int
4299 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
4300 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
4301 echo "configure:4302: checking for ptrdiff_t" >&5
4302 if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
4303 echo $ac_n "(cached) $ac_c" 1>&6
4305 cat > conftest.
$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4308 #include <sys/types.h>
4314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4315 egrep "ptrdiff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4317 ac_cv_type_ptrdiff_t
=yes
4320 ac_cv_type_ptrdiff_t
=no
4325 echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
4326 if test $ac_cv_type_ptrdiff_t = no
; then
4327 cat >> confdefs.h
<<\EOF
4328 #define ptrdiff_t long
4334 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
4335 echo "configure:4336: checking for ptrdiff_t" >&5
4336 if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 cat > conftest.
$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 #include <sys/types.h>
4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349 egrep "ptrdiff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4351 ac_cv_type_ptrdiff_t
=yes
4354 ac_cv_type_ptrdiff_t
=no
4359 echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
4360 if test $ac_cv_type_ptrdiff_t = no
; then
4361 cat >> confdefs.h
<<\EOF
4362 #define ptrdiff_t int
4370 if test "$ac_sv_sizeof_char_p" = 8; then
4371 echo $ac_n "checking for bits64_t""... $ac_c" 1>&6
4372 echo "configure:4373: checking for bits64_t" >&5
4373 if eval "test \"`echo '$''{'ac_cv_type_bits64_t'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4376 cat > conftest.
$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4379 #include <sys/types.h>
4385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4386 egrep "bits64_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4388 ac_cv_type_bits64_t
=yes
4391 ac_cv_type_bits64_t
=no
4396 echo "$ac_t""$ac_cv_type_bits64_t" 1>&6
4397 if test $ac_cv_type_bits64_t = no
; then
4398 cat >> confdefs.h
<<\EOF
4399 #define bits64_t char *
4404 elif test "$ac_cv_sizeof_double" = 8; then
4405 echo $ac_n "checking for bits64_t""... $ac_c" 1>&6
4406 echo "configure:4407: checking for bits64_t" >&5
4407 if eval "test \"`echo '$''{'ac_cv_type_bits64_t'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4410 cat > conftest.
$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 #include <sys/types.h>
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 egrep "bits64_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4422 ac_cv_type_bits64_t
=yes
4425 ac_cv_type_bits64_t
=no
4430 echo "$ac_t""$ac_cv_type_bits64_t" 1>&6
4431 if test $ac_cv_type_bits64_t = no
; then
4432 cat >> confdefs.h
<<\EOF
4433 #define bits64_t double
4438 elif test "$ac_cv_sizeof_long" = 8; then
4439 echo $ac_n "checking for bits64_t""... $ac_c" 1>&6
4440 echo "configure:4441: checking for bits64_t" >&5
4441 if eval "test \"`echo '$''{'ac_cv_type_bits64_t'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4444 cat > conftest.
$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4447 #include <sys/types.h>
4453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4454 egrep "bits64_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4456 ac_cv_type_bits64_t
=yes
4459 ac_cv_type_bits64_t
=no
4464 echo "$ac_t""$ac_cv_type_bits64_t" 1>&6
4465 if test $ac_cv_type_bits64_t = no
; then
4466 cat >> confdefs.h
<<\EOF
4467 #define bits64_t long
4473 echo $ac_n "checking for bits64_t""... $ac_c" 1>&6
4474 echo "configure:4475: checking for bits64_t" >&5
4475 if eval "test \"`echo '$''{'ac_cv_type_bits64_t'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 cat > conftest.
$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4481 #include <sys/types.h>
4487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4488 egrep "bits64_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4490 ac_cv_type_bits64_t
=yes
4493 ac_cv_type_bits64_t
=no
4498 echo "$ac_t""$ac_cv_type_bits64_t" 1>&6
4499 if test $ac_cv_type_bits64_t = no
; then
4500 cat >> confdefs.h
<<\EOF
4501 #define bits64_t double
4509 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4510 echo "configure:4511: checking whether stat file-mode macros are broken" >&5
4511 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4514 cat > conftest.
$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 #include <sys/types.h>
4518 #include <sys/stat.h>
4520 #if defined(S_ISBLK) && defined(S_IFDIR)
4521 # if S_ISBLK (S_IFDIR)
4526 #if defined(S_ISBLK) && defined(S_IFCHR)
4527 # if S_ISBLK (S_IFCHR)
4532 #if defined(S_ISLNK) && defined(S_IFREG)
4533 # if S_ISLNK (S_IFREG)
4538 #if defined(S_ISSOCK) && defined(S_IFREG)
4539 # if S_ISSOCK (S_IFREG)
4545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4546 egrep "You lose" >/dev
/null
2>&1; then
4548 ac_cv_header_stat_broken
=yes
4551 ac_cv_header_stat_broken
=no
4557 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4558 if test $ac_cv_header_stat_broken = yes; then
4559 cat >> confdefs.h
<<\EOF
4560 #define STAT_MACROS_BROKEN 1
4565 cat > conftest.
$ac_ext <<EOF
4566 #line 4567 "configure"
4567 #include "confdefs.h"
4568 #include <sys/time.h>
4570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4571 egrep "struct timeval" >/dev
/null
2>&1; then
4573 bash_cv_struct_timeval
=yes
4577 if test -z "$bash_cv_struct_timeval"; then
4578 cat > conftest.
$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584 egrep "struct timeval" >/dev
/null
2>&1; then
4586 bash_cv_struct_timeval
=yes
4589 bash_cv_struct_timeval
=no
4594 if test $bash_cv_struct_timeval = yes; then
4595 cat >> confdefs.h
<<\EOF
4596 #define HAVE_TIMEVAL 1
4601 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4602 echo "configure:4603: checking whether byte ordering is bigendian" >&5
4603 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4606 ac_cv_c_bigendian
=unknown
4607 # See if sys/param.h defines the BYTE_ORDER macro.
4608 cat > conftest.
$ac_ext <<EOF
4609 #line 4610 "configure"
4610 #include "confdefs.h"
4611 #include <sys/types.h>
4612 #include <sys/param.h>
4615 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4620 if { (eval echo configure
:4621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4622 # It does; now see whether it defined to BIG_ENDIAN or not.
4623 cat > conftest.
$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 #include <sys/types.h>
4627 #include <sys/param.h>
4630 #if BYTE_ORDER != BIG_ENDIAN
4635 if { (eval echo configure
:4636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4637 ac_cv_c_bigendian
=yes
4639 echo "configure: failed program was:" >&5
4640 cat conftest.
$ac_ext >&5
4642 ac_cv_c_bigendian
=no
4646 echo "configure: failed program was:" >&5
4647 cat conftest.
$ac_ext >&5
4650 if test $ac_cv_c_bigendian = unknown
; then
4651 if test "$cross_compiling" = yes; then
4652 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4654 cat > conftest.
$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4658 /* Are we little or big endian? From Harbison&Steele. */
4662 char c[sizeof (long)];
4665 exit (u.c[sizeof (long) - 1] == 1);
4668 if { (eval echo configure
:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4670 ac_cv_c_bigendian
=no
4672 echo "configure: failed program was:" >&5
4673 cat conftest.
$ac_ext >&5
4675 ac_cv_c_bigendian
=yes
4683 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4684 if test $ac_cv_c_bigendian = yes; then
4685 cat >> confdefs.h
<<\EOF
4686 #define WORDS_BIGENDIAN 1
4692 # Pull the hash mark out of the macro call to avoid m4 problems.
4693 ac_msg
="whether #! works in shell scripts"
4694 echo $ac_n "checking $ac_msg""... $ac_c" 1>&6
4695 echo "configure:4696: checking $ac_msg" >&5
4696 if eval "test \"`echo '$''{'ac_cv_sys_interpreter'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4703 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
)
4704 if test $?
-ne 69; then
4705 ac_cv_sys_interpreter
=yes
4707 ac_cv_sys_interpreter
=no
4712 echo "$ac_t""$ac_cv_sys_interpreter" 1>&6
4714 if test $ac_cv_sys_interpreter = yes; then
4715 cat >> confdefs.h
<<\EOF
4716 #define HAVE_HASH_BANG_EXEC 1
4720 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
4721 echo "configure:4722: checking for restartable system calls" >&5
4722 if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4725 if test "$cross_compiling" = yes; then
4726 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4728 cat > conftest.
$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 /* Exit 0 (true) if wait returns something other than -1,
4732 i.e. the pid of the child, which means that wait was restarted
4733 after getting the signal. */
4734 #include <sys/types.h>
4738 int i = fork (), status;
4739 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
4740 signal (SIGINT, ucatch);
4742 if (status == -1) wait(&i);
4743 exit (status == -1);
4747 if { (eval echo configure
:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4749 ac_cv_sys_restartable_syscalls
=yes
4751 echo "configure: failed program was:" >&5
4752 cat conftest.
$ac_ext >&5
4754 ac_cv_sys_restartable_syscalls
=no
4761 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
4762 if test $ac_cv_sys_restartable_syscalls = yes; then
4763 cat >> confdefs.h
<<\EOF
4764 #define HAVE_RESTARTABLE_SYSCALLS 1
4770 if test "$ac_cv_func_lstat" = "no"; then
4771 echo $ac_n "checking for lstat""... $ac_c" 1>&6
4772 echo "configure:4773: checking for lstat" >&5
4773 if eval "test \"`echo '$''{'bash_cv_func_lstat'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4776 cat > conftest.
$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4780 #include <sys/types.h>
4781 #include <sys/stat.h>
4784 lstat(".",(struct stat *)0);
4787 if { (eval echo configure
:4788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4789 bash_cv_func_lstat
=yes
4791 echo "configure: failed program was:" >&5
4792 cat conftest.
$ac_ext >&5
4794 bash_cv_func_lstat
=no
4799 echo "$ac_t""$bash_cv_func_lstat" 1>&6
4800 if test $bash_cv_func_lstat = yes; then
4801 cat >> confdefs.h
<<\EOF
4802 #define HAVE_LSTAT 1
4809 echo $ac_n "checking if dup2 fails to clear the close-on-exec flag""... $ac_c" 1>&6
4810 echo "configure:4811: checking if dup2 fails to clear the close-on-exec flag" >&5
4811 if eval "test \"`echo '$''{'bash_cv_dup2_broken'+set}'`\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4814 if test "$cross_compiling" = yes; then
4815 echo "configure: warning: cannot check dup2 if cross compiling -- defaulting to no" 1>&2
4816 bash_cv_dup2_broken
=no
4818 cat > conftest.
$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4822 #include <sys/types.h>
4827 fd1 = open("/dev/null", 2);
4828 if (fcntl(fd1, 2, 1) < 0)
4833 fl = fcntl(fd2, 1, 0);
4834 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
4839 if { (eval echo configure
:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4841 bash_cv_dup2_broken
=yes
4843 echo "configure: failed program was:" >&5
4844 cat conftest.
$ac_ext >&5
4846 bash_cv_dup2_broken
=no
4854 echo "$ac_t""$bash_cv_dup2_broken" 1>&6
4855 if test $bash_cv_dup2_broken = yes; then
4856 cat >> confdefs.h
<<\EOF
4857 #define DUP2_BROKEN 1
4863 echo $ac_n "checking whether pgrps need synchronization""... $ac_c" 1>&6
4864 echo "configure:4865: checking whether pgrps need synchronization" >&5
4865 if eval "test \"`echo '$''{'bash_cv_pgrp_pipe'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4868 if test "$cross_compiling" = yes; then
4869 echo "configure: warning: cannot check pgrp synchronization if cross compiling -- defaulting to no" 1>&2
4870 bash_cv_pgrp_pipe
=no
4872 cat > conftest.
$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4876 #ifdef HAVE_UNISTD_H
4877 # include <unistd.h>
4881 # ifdef GETPGRP_VOID
4882 # define getpgID() getpgrp()
4884 # define getpgID() getpgrp(0)
4885 # define setpgid(x,y) setpgrp(x,y)
4887 int pid1, pid2, fds[2];
4891 switch (pid1 = fork()) {
4895 setpgid(0, getpid());
4898 setpgid(pid1, pid1);
4900 sleep(2); /* let first child die */
4905 switch (pid2 = fork()) {
4910 ok = getpgID() == pid1;
4911 write(fds[1], &ok, 1);
4914 setpgid(pid2, pid1);
4917 if (read(fds[0], &ok, 1) != 1)
4925 if { (eval echo configure
:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4927 bash_cv_pgrp_pipe
=no
4929 echo "configure: failed program was:" >&5
4930 cat conftest.
$ac_ext >&5
4932 bash_cv_pgrp_pipe
=yes
4940 echo "$ac_t""$bash_cv_pgrp_pipe" 1>&6
4941 if test $bash_cv_pgrp_pipe = yes; then
4942 cat >> confdefs.h
<<\EOF
4949 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
4950 echo "configure:4951: checking for type of signal functions" >&5
4951 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4955 cat > conftest.
$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4962 struct sigaction sa;
4963 sigemptyset(&ss); sigsuspend(&ss);
4964 sigaction(SIGINT, &sa, (struct sigaction *) 0);
4965 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
4969 if { (eval echo configure
:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4971 bash_cv_signal_vintage
=posix
4973 echo "configure: failed program was:" >&5
4974 cat conftest.
$ac_ext >&5
4977 cat > conftest.
$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4983 int mask = sigmask(SIGINT);
4984 sigsetmask(mask); sigblock(mask); sigpause(mask);
4988 if { (eval echo configure
:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4990 bash_cv_signal_vintage
=4.2bsd
4992 echo "configure: failed program was:" >&5
4993 cat conftest.
$ac_ext >&5
4996 cat > conftest.
$ac_ext <<EOF
4997 #line 4998 "configure"
4998 #include "confdefs.h"
5001 RETSIGTYPE foo() { }
5004 int mask = sigmask(SIGINT);
5005 sigset(SIGINT, foo); sigrelse(SIGINT);
5006 sighold(SIGINT); sigpause(SIGINT);
5010 if { (eval echo configure
:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5012 bash_cv_signal_vintage
=svr3
5014 echo "configure: failed program was:" >&5
5015 cat conftest.
$ac_ext >&5
5017 bash_cv_signal_vintage
=v7
5030 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
5031 if test "$bash_cv_signal_vintage" = posix
; then
5032 cat >> confdefs.h
<<\EOF
5033 #define HAVE_POSIX_SIGNALS 1
5036 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5037 cat >> confdefs.h
<<\EOF
5038 #define HAVE_BSD_SIGNALS 1
5041 elif test "$bash_cv_signal_vintage" = svr3
; then
5042 cat >> confdefs.h
<<\EOF
5043 #define HAVE_USG_SIGHOLD 1
5049 if test "$ac_cv_sys_restartable_syscalls" = "no"; then
5051 echo $ac_n "checking for restartable system calls with posix sigaction""... $ac_c" 1>&6
5052 echo "configure:5053: checking for restartable system calls with posix sigaction" >&5
5053 if eval "test \"`echo '$''{'bash_cv_sys_restartable_syscalls'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5056 if test "$cross_compiling" = yes; then
5057 echo "configure: warning: cannot check restartable syscalls if cross compiling" 1>&2
5059 cat > conftest.
$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5062 /* Exit 0 (true) if wait returns something other than -1,
5063 i.e. the pid of the child, which means that wait was restarted
5064 after getting the signal. */
5065 #include <sys/types.h>
5067 static int caught = 0;
5068 void ucatch (isig) int isig; { caught = 1; }
5071 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5074 struct sigaction act, oact;
5077 act.sa_handler = ucatch;
5078 /* Might want to add SA_RESTART here, but bash's set_signal_handler
5081 sigemptyset(&act.sa_mask);
5082 sigemptyset(&oact.sa_mask);
5084 /* A possible race condition here, but in practice it never happens. */
5085 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
5086 sigaction(SIGINT, &act, &oact);
5088 if (status == -1) wait(&i);
5089 exit (status == -1);
5094 if { (eval echo configure
:5095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5096 bash_cv_sys_restartable_syscalls
=yes
5098 echo "configure: failed program was:" >&5
5099 cat conftest.
$ac_ext >&5
5101 bash_cv_sys_restartable_syscalls
=no
5109 echo "$ac_t""$bash_cv_sys_restartable_syscalls" 1>&6
5110 if test $bash_cv_sys_restartable_syscalls = yes; then
5111 cat >> confdefs.h
<<\EOF
5112 #define HAVE_RESTARTABLE_SYSCALLS 1
5119 echo $ac_n "checking for sys_errlist and sys_nerr""... $ac_c" 1>&6
5120 echo "configure:5121: checking for sys_errlist and sys_nerr" >&5
5121 if eval "test \"`echo '$''{'bash_cv_sys_errlist'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5124 cat > conftest.
$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5129 extern char *sys_errlist[];
5130 extern int sys_nerr;
5131 char *msg = sys_errlist[sys_nerr - 1];
5134 if { (eval echo configure
:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5136 bash_cv_sys_errlist
=yes
5138 echo "configure: failed program was:" >&5
5139 cat conftest.
$ac_ext >&5
5141 bash_cv_sys_errlist
=no
5145 echo "$ac_t""$bash_cv_sys_errlist" 1>&6
5146 if test $bash_cv_sys_errlist = yes; then
5147 cat >> confdefs.h
<<\EOF
5148 #define HAVE_SYS_ERRLIST 1
5154 echo $ac_n "checking for sys_siglist in system C library""... $ac_c" 1>&6
5155 echo "configure:5156: checking for sys_siglist in system C library" >&5
5156 if eval "test \"`echo '$''{'bash_cv_sys_siglist'+set}'`\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5159 if test "$cross_compiling" = yes; then
5160 echo "configure: warning: cannot check for sys_siglist if cross compiling -- defaulting to no" 1>&2
5161 bash_cv_sys_siglist
=no
5163 cat > conftest.
$ac_ext <<EOF
5164 #line 5165 "configure"
5165 #include "confdefs.h"
5167 #include <sys/types.h>
5169 #ifdef HAVE_UNISTD_H
5172 #ifndef SYS_SIGLIST_DECLARED
5173 extern char *sys_siglist[];
5177 char *msg = sys_siglist[2];
5181 if { (eval echo configure
:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5183 bash_cv_sys_siglist
=yes
5185 echo "configure: failed program was:" >&5
5186 cat conftest.
$ac_ext >&5
5188 bash_cv_sys_siglist
=no
5195 echo "$ac_t""$bash_cv_sys_siglist" 1>&6
5196 if test $bash_cv_sys_siglist = yes; then
5197 cat >> confdefs.h
<<\EOF
5198 #define HAVE_SYS_SIGLIST 1
5203 echo $ac_n "checking for _sys_siglist in signal.h or unistd.h""... $ac_c" 1>&6
5204 echo "configure:5205: checking for _sys_siglist in signal.h or unistd.h" >&5
5205 if eval "test \"`echo '$''{'bash_cv_decl_under_sys_siglist'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 cat > conftest.
$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5212 #include <sys/types.h>
5214 #ifdef HAVE_UNISTD_H
5218 char *msg = _sys_siglist[2];
5221 if { (eval echo configure
:5222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5223 bash_cv_decl_under_sys_siglist
=yes
5225 echo "configure: failed program was:" >&5
5226 cat conftest.
$ac_ext >&5
5228 bash_cv_decl_under_sys_siglist
=no
5232 echo "$ac_t""$bash_cv_decl_under_sys_siglist" 1>&6
5233 if test $bash_cv_decl_under_sys_siglist = yes; then
5234 cat >> confdefs.h
<<\EOF
5235 #define UNDER_SYS_SIGLIST_DECLARED 1
5241 echo $ac_n "checking for _sys_siglist in system C library""... $ac_c" 1>&6
5242 echo "configure:5243: checking for _sys_siglist in system C library" >&5
5243 if eval "test \"`echo '$''{'bash_cv_under_sys_siglist'+set}'`\" = set"; then
5244 echo $ac_n "(cached) $ac_c" 1>&6
5246 if test "$cross_compiling" = yes; then
5247 echo "configure: warning: cannot check for _sys_siglist if cross compiling -- defaulting to no" 1>&2
5248 bash_cv_under_sys_siglist
=no
5250 cat > conftest.
$ac_ext <<EOF
5251 #line 5252 "configure"
5252 #include "confdefs.h"
5254 #include <sys/types.h>
5256 #ifdef HAVE_UNISTD_H
5259 #ifndef UNDER_SYS_SIGLIST_DECLARED
5260 extern char *_sys_siglist[];
5264 char *msg = (char *)_sys_siglist[2];
5268 if { (eval echo configure
:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5270 bash_cv_under_sys_siglist
=yes
5272 echo "configure: failed program was:" >&5
5273 cat conftest.
$ac_ext >&5
5275 bash_cv_under_sys_siglist
=no
5282 echo "$ac_t""$bash_cv_under_sys_siglist" 1>&6
5283 if test $bash_cv_under_sys_siglist = yes; then
5284 cat >> confdefs.h
<<\EOF
5285 #define HAVE_UNDER_SYS_SIGLIST 1
5291 echo $ac_n "checking whether signal handlers are of type void""... $ac_c" 1>&6
5292 echo "configure:5293: checking whether signal handlers are of type void" >&5
5293 if eval "test \"`echo '$''{'bash_cv_void_sighandler'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 cat > conftest.
$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 #include <sys/types.h>
5307 void (*signal ()) ();
5312 if { (eval echo configure
:5313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5314 bash_cv_void_sighandler
=yes
5316 echo "configure: failed program was:" >&5
5317 cat conftest.
$ac_ext >&5
5319 bash_cv_void_sighandler
=no
5323 echo "$ac_t""$bash_cv_void_sighandler" 1>&6
5324 if test $bash_cv_void_sighandler = yes; then
5325 cat >> confdefs.h
<<\EOF
5326 #define VOID_SIGHANDLER 1
5331 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
5332 echo "configure:5333: checking for clock_t" >&5
5333 if eval "test \"`echo '$''{'bash_cv_type_clock_t'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5336 cat > conftest.
$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 #include <sys/types.h>
5343 #include <sys/times.h>
5346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5347 egrep "clock_t" >/dev
/null
2>&1; then
5349 bash_cv_type_clock_t
=yes
5352 bash_cv_type_clock_t
=no
5358 echo "$ac_t""$bash_cv_type_clock_t" 1>&6
5360 if test $bash_cv_type_clock_t = no
; then
5361 cat >> confdefs.h
<<\EOF
5362 #define clock_t long
5367 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
5368 echo "configure:5369: checking for sigset_t" >&5
5369 if eval "test \"`echo '$''{'bash_cv_type_sigset_t'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5372 cat > conftest.
$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 #include <sys/types.h>
5382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383 egrep "sigset_t" >/dev
/null
2>&1; then
5385 bash_cv_type_sigset_t
=yes
5388 bash_cv_type_sigset_t
=no
5394 echo "$ac_t""$bash_cv_type_sigset_t" 1>&6
5396 if test $bash_cv_type_sigset_t = no
; then
5397 cat >> confdefs.h
<<\EOF
5398 #define sigset_t int
5403 echo $ac_n "checking for quad_t""... $ac_c" 1>&6
5404 echo "configure:5405: checking for quad_t" >&5
5405 if eval "test \"`echo '$''{'bash_cv_type_quad_t'+set}'`\" = set"; then
5406 echo $ac_n "(cached) $ac_c" 1>&6
5408 cat > conftest.
$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5411 #include <sys/types.h>
5418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5419 egrep "quad_t" >/dev
/null
2>&1; then
5421 bash_cv_type_quad_t
=yes
5424 bash_cv_type_quad_t
=no
5430 echo "$ac_t""$bash_cv_type_quad_t" 1>&6
5431 if test $bash_cv_type_quad_t = yes; then
5432 cat >> confdefs.h
<<\EOF
5433 #define HAVE_QUAD_T 1
5437 if test $bash_cv_type_quad_t = no
; then
5438 cat >> confdefs.h
<<\EOF
5444 echo $ac_n "checking for size and type of struct rlimit fields""... $ac_c" 1>&6
5445 echo "configure:5446: checking for size and type of struct rlimit fields" >&5
5446 if eval "test \"`echo '$''{'bash_cv_type_rlimit'+set}'`\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5449 cat > conftest.
$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5452 #include <sys/types.h>
5453 #include <sys/resource.h>
5458 if { (eval echo configure
:5459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5460 bash_cv_type_rlimit
=rlim_t
5462 echo "configure: failed program was:" >&5
5463 cat conftest.
$ac_ext >&5
5466 if test "$cross_compiling" = yes; then
5467 echo "configure: warning: cannot check quad_t if cross compiling -- defaulting to long" 1>&2
5468 bash_cv_type_rlimit
=long
5470 cat > conftest.
$ac_ext <<EOF
5471 #line 5472 "configure"
5472 #include "confdefs.h"
5474 #include <sys/types.h>
5475 #include <sys/time.h>
5476 #include <sys/resource.h>
5481 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
5487 if { (eval echo configure
:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5489 bash_cv_type_rlimit
=quad_t
5491 echo "configure: failed program was:" >&5
5492 cat conftest.
$ac_ext >&5
5494 bash_cv_type_rlimit
=long
5504 echo "$ac_t""$bash_cv_type_rlimit" 1>&6
5505 if test $bash_cv_type_rlimit = quad_t
; then
5506 cat >> confdefs.h
<<\EOF
5507 #define RLIMTYPE quad_t
5510 elif test $bash_cv_type_rlimit = rlim_t
; then
5511 cat >> confdefs.h
<<\EOF
5512 #define RLIMTYPE rlim_t
5518 echo $ac_n "checking for a c_line member of struct termios""... $ac_c" 1>&6
5519 echo "configure:5520: checking for a c_line member of struct termios" >&5
5520 if eval "test \"`echo '$''{'bash_cv_termios_ldisc'+set}'`\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5523 cat > conftest.
$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5526 #include <sys/types.h>
5527 #include <termios.h>
5529 struct termios t; int i; i = t.c_line;
5532 if { (eval echo configure
:5533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5534 bash_cv_termios_ldisc
=yes
5536 echo "configure: failed program was:" >&5
5537 cat conftest.
$ac_ext >&5
5539 bash_cv_termios_ldisc
=no
5543 echo "$ac_t""$bash_cv_termios_ldisc" 1>&6
5544 if test $bash_cv_termios_ldisc = yes; then
5545 cat >> confdefs.h
<<\EOF
5546 #define TERMIOS_LDISC 1
5551 echo $ac_n "checking for a c_line member of struct termio""... $ac_c" 1>&6
5552 echo "configure:5553: checking for a c_line member of struct termio" >&5
5553 if eval "test \"`echo '$''{'bash_cv_termio_ldisc'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5556 cat > conftest.
$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5559 #include <sys/types.h>
5562 struct termio t; int i; i = t.c_line;
5565 if { (eval echo configure
:5566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5567 bash_cv_termio_ldisc
=yes
5569 echo "configure: failed program was:" >&5
5570 cat conftest.
$ac_ext >&5
5572 bash_cv_termio_ldisc
=no
5576 echo "$ac_t""$bash_cv_termio_ldisc" 1>&6
5577 if test $bash_cv_termio_ldisc = yes; then
5578 cat >> confdefs.h
<<\EOF
5579 #define TERMIO_LDISC 1
5585 echo $ac_n "checking if struct dirent has a d_ino member""... $ac_c" 1>&6
5586 echo "configure:5587: checking if struct dirent has a d_ino member" >&5
5587 if eval "test \"`echo '$''{'bash_cv_dirent_has_dino'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 cat > conftest.
$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5595 #include <sys/types.h>
5596 #ifdef HAVE_UNISTD_H
5597 # include <unistd.h>
5598 #endif /* HAVE_UNISTD_H */
5599 #if defined(HAVE_DIRENT_H)
5600 # include <dirent.h>
5602 # define dirent direct
5603 # ifdef HAVE_SYS_NDIR_H
5604 # include <sys/ndir.h>
5605 # endif /* SYSNDIR */
5606 # ifdef HAVE_SYS_DIR_H
5607 # include <sys/dir.h>
5608 # endif /* SYSDIR */
5612 #endif /* HAVE_DIRENT_H */
5616 struct dirent d; int z; z = d.d_ino;
5620 if { (eval echo configure
:5621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5622 bash_cv_dirent_has_dino
=yes
5624 echo "configure: failed program was:" >&5
5625 cat conftest.
$ac_ext >&5
5627 bash_cv_dirent_has_dino
=no
5632 echo "$ac_t""$bash_cv_dirent_has_dino" 1>&6
5633 if test $bash_cv_dirent_has_dino = yes; then
5634 cat >> confdefs.h
<<\EOF
5635 #define STRUCT_DIRENT_HAS_D_INO 1
5641 echo $ac_n "checking if struct dirent has a d_fileno member""... $ac_c" 1>&6
5642 echo "configure:5643: checking if struct dirent has a d_fileno member" >&5
5643 if eval "test \"`echo '$''{'bash_cv_dirent_has_d_fileno'+set}'`\" = set"; then
5644 echo $ac_n "(cached) $ac_c" 1>&6
5646 cat > conftest.
$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5651 #include <sys/types.h>
5652 #ifdef HAVE_UNISTD_H
5653 # include <unistd.h>
5654 #endif /* HAVE_UNISTD_H */
5655 #if defined(HAVE_DIRENT_H)
5656 # include <dirent.h>
5658 # define dirent direct
5659 # ifdef HAVE_SYS_NDIR_H
5660 # include <sys/ndir.h>
5661 # endif /* SYSNDIR */
5662 # ifdef HAVE_SYS_DIR_H
5663 # include <sys/dir.h>
5664 # endif /* SYSDIR */
5668 #endif /* HAVE_DIRENT_H */
5672 struct dirent d; int z; z = d.d_fileno;
5676 if { (eval echo configure
:5677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5678 bash_cv_dirent_has_d_fileno
=yes
5680 echo "configure: failed program was:" >&5
5681 cat conftest.
$ac_ext >&5
5683 bash_cv_dirent_has_d_fileno
=no
5688 echo "$ac_t""$bash_cv_dirent_has_d_fileno" 1>&6
5689 if test $bash_cv_dirent_has_d_fileno = yes; then
5690 cat >> confdefs.h
<<\EOF
5691 #define STRUCT_DIRENT_HAS_D_FILENO 1
5696 echo $ac_n "checking for struct winsize in sys/ioctl.h and termios.h""... $ac_c" 1>&6
5697 echo "configure:5698: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5698 if eval "test \"`echo '$''{'bash_cv_struct_winsize_header'+set}'`\" = set"; then
5699 echo $ac_n "(cached) $ac_c" 1>&6
5701 cat > conftest.
$ac_ext <<EOF
5702 #line 5703 "configure"
5703 #include "confdefs.h"
5704 #include <sys/types.h>
5705 #include <sys/ioctl.h>
5710 if { (eval echo configure
:5711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5712 bash_cv_struct_winsize_header
=ioctl_h
5714 echo "configure: failed program was:" >&5
5715 cat conftest.
$ac_ext >&5
5717 cat > conftest.
$ac_ext <<EOF
5718 #line 5719 "configure"
5719 #include "confdefs.h"
5720 #include <sys/types.h>
5721 #include <termios.h>
5726 if { (eval echo configure
:5727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5728 bash_cv_struct_winsize_header
=termios_h
5730 echo "configure: failed program was:" >&5
5731 cat conftest.
$ac_ext >&5
5733 bash_cv_struct_winsize_header
=other
5741 if test $bash_cv_struct_winsize_header = ioctl_h
; then
5742 echo "$ac_t""sys/ioctl.h" 1>&6
5743 cat >> confdefs.h
<<\EOF
5744 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
5747 elif test $bash_cv_struct_winsize_header = termios_h
; then
5748 echo "$ac_t""termios.h" 1>&6
5749 cat >> confdefs.h
<<\EOF
5750 #define STRUCT_WINSIZE_IN_TERMIOS 1
5754 echo "$ac_t""not found" 1>&6
5758 echo $ac_n "checking for the existence of strsignal""... $ac_c" 1>&6
5759 echo "configure:5760: checking for the existence of strsignal" >&5
5760 if eval "test \"`echo '$''{'bash_cv_have_strsignal'+set}'`\" = set"; then
5761 echo $ac_n "(cached) $ac_c" 1>&6
5763 cat > conftest.
$ac_ext <<EOF
5764 #line 5765 "configure"
5765 #include "confdefs.h"
5766 #include <sys/types.h>
5769 char *s = (char *)strsignal(2);
5772 if { (eval echo configure
:5773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5774 bash_cv_have_strsignal
=yes
5776 echo "configure: failed program was:" >&5
5777 cat conftest.
$ac_ext >&5
5779 bash_cv_have_strsignal
=no
5784 echo "$ac_t""$bash_cv_have_strsignal" 1>&6
5785 if test $bash_cv_have_strsignal = yes; then
5786 cat >> confdefs.h
<<\EOF
5787 #define HAVE_STRSIGNAL 1
5792 echo $ac_n "checking if opendir() opens non-directories""... $ac_c" 1>&6
5793 echo "configure:5794: checking if opendir() opens non-directories" >&5
5794 if eval "test \"`echo '$''{'bash_cv_opendir_not_robust'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5797 if test "$cross_compiling" = yes; then
5798 echo "configure: warning: cannot check opendir if cross compiling -- defaulting to no" 1>&2
5799 bash_cv_opendir_not_robust
=no
5802 cat > conftest.
$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5807 #include <sys/types.h>
5809 #ifdef HAVE_UNISTD_H
5810 # include <unistd.h>
5811 #endif /* HAVE_UNISTD_H */
5812 #if defined(HAVE_DIRENT_H)
5813 # include <dirent.h>
5815 # define dirent direct
5816 # ifdef HAVE_SYS_NDIR_H
5817 # include <sys/ndir.h>
5818 # endif /* SYSNDIR */
5819 # ifdef HAVE_SYS_DIR_H
5820 # include <sys/dir.h>
5821 # endif /* SYSDIR */
5825 #endif /* HAVE_DIRENT_H */
5830 unlink("/tmp/not_a_directory");
5831 fd = open("/tmp/not_a_directory", O_WRONLY|O_CREAT, 0666);
5834 dir = opendir("/tmp/not_a_directory");
5835 unlink("/tmp/not_a_directory");
5839 if { (eval echo configure
:5840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5841 bash_cv_opendir_not_robust
=yes
5843 echo "configure: failed program was:" >&5
5844 cat conftest.
$ac_ext >&5
5846 bash_cv_opendir_not_robust
=no
5853 echo "$ac_t""$bash_cv_opendir_not_robust" 1>&6
5854 if test $bash_cv_opendir_not_robust = yes; then
5855 cat >> confdefs.h
<<\EOF
5856 #define OPENDIR_NOT_ROBUST 1
5861 echo $ac_n "checking for declaration of printf in <stdio.h>""... $ac_c" 1>&6
5862 echo "configure:5863: checking for declaration of printf in <stdio.h>" >&5
5863 if eval "test \"`echo '$''{'bash_cv_printf_declared'+set}'`\" = set"; then
5864 echo $ac_n "(cached) $ac_c" 1>&6
5866 if test "$cross_compiling" = yes; then
5867 echo "configure: warning: cannot check printf declaration if cross compiling -- defaulting to yes" 1>&2
5868 bash_cv_printf_declared
=yes
5871 cat > conftest.
$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5877 typedef int (*_bashfunc)(const char *, ...);
5879 typedef int (*_bashfunc)();
5884 pf = (_bashfunc) printf;
5889 if { (eval echo configure
:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5891 bash_cv_printf_declared
=yes
5893 echo "configure: failed program was:" >&5
5894 cat conftest.
$ac_ext >&5
5896 bash_cv_printf_declared
=no
5903 echo "$ac_t""$bash_cv_printf_declared" 1>&6
5904 if test $bash_cv_printf_declared = yes; then
5905 cat >> confdefs.h
<<\EOF
5906 #define PRINTF_DECLARED 1
5911 echo $ac_n "checking whether ulimit can substitute for getdtablesize""... $ac_c" 1>&6
5912 echo "configure:5913: checking whether ulimit can substitute for getdtablesize" >&5
5913 if eval "test \"`echo '$''{'bash_cv_ulimit_maxfds'+set}'`\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
5916 if test "$cross_compiling" = yes; then
5917 echo "configure: warning: cannot check ulimit if cross compiling -- defaulting to no" 1>&2
5918 bash_cv_ulimit_maxfds
=no
5921 cat > conftest.
$ac_ext <<EOF
5922 #line 5923 "configure"
5923 #include "confdefs.h"
5927 long maxfds = ulimit(4, 0L);
5928 exit (maxfds == -1L);
5932 if { (eval echo configure
:5933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5934 bash_cv_ulimit_maxfds
=yes
5936 echo "configure: failed program was:" >&5
5937 cat conftest.
$ac_ext >&5
5939 bash_cv_ulimit_maxfds
=no
5946 echo "$ac_t""$bash_cv_ulimit_maxfds" 1>&6
5947 if test $bash_cv_ulimit_maxfds = yes; then
5948 cat >> confdefs.h
<<\EOF
5949 #define ULIMIT_MAXFDS 1
5954 echo $ac_n "checking to see if getenv can be redefined""... $ac_c" 1>&6
5955 echo "configure:5956: checking to see if getenv can be redefined" >&5
5956 if eval "test \"`echo '$''{'bash_cv_getenv_redef'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5959 if test "$cross_compiling" = yes; then
5960 echo "configure: warning: cannot check getenv redefinition if cross compiling -- defaulting to yes" 1>&2
5961 bash_cv_getenv_redef
=yes
5964 cat > conftest.
$ac_ext <<EOF
5965 #line 5966 "configure"
5966 #include "confdefs.h"
5968 #ifdef HAVE_UNISTD_H
5969 # include <unistd.h>
5978 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
5982 #endif /* !__linux__ && !__bsdi__ && !convex */
5989 /* The next allows this program to run, but does not allow bash to link
5990 when it redefines getenv. I'm not really interested in figuring out
5995 s = getenv("ABCDE");
5996 exit(s == 0); /* force optimizer to leave getenv in */
6000 if { (eval echo configure
:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6002 bash_cv_getenv_redef
=yes
6004 echo "configure: failed program was:" >&5
6005 cat conftest.
$ac_ext >&5
6007 bash_cv_getenv_redef
=no
6014 echo "$ac_t""$bash_cv_getenv_redef" 1>&6
6015 if test $bash_cv_getenv_redef = yes; then
6016 cat >> confdefs.h
<<\EOF
6017 #define CAN_REDEFINE_GETENV 1
6022 echo $ac_n "checking if getcwd() calls popen()""... $ac_c" 1>&6
6023 echo "configure:6024: checking if getcwd() calls popen()" >&5
6024 if eval "test \"`echo '$''{'bash_cv_getcwd_calls_popen'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 if test "$cross_compiling" = yes; then
6028 echo "configure: warning: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" 1>&2
6029 bash_cv_getcwd_calls_popen
=no
6032 cat > conftest.
$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6037 #ifdef HAVE_UNISTD_H
6050 popen(command, type)
6051 const char *command;
6055 return (FILE *)NULL;
6058 FILE *_popen(command, type)
6059 const char *command;
6062 return (popen (command, type));
6084 exit (popen_called);
6088 if { (eval echo configure
:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6090 bash_cv_getcwd_calls_popen
=no
6092 echo "configure: failed program was:" >&5
6093 cat conftest.
$ac_ext >&5
6095 bash_cv_getcwd_calls_popen
=yes
6102 echo "$ac_t""$bash_cv_getcwd_calls_popen" 1>&6
6103 if test $bash_cv_getcwd_calls_popen = yes; then
6104 cat >> confdefs.h
<<\EOF
6105 #define GETCWD_BROKEN 1
6110 echo $ac_n "checking for declaration of sbrk in <unistd.h>""... $ac_c" 1>&6
6111 echo "configure:6112: checking for declaration of sbrk in <unistd.h>" >&5
6112 if eval "test \"`echo '$''{'bash_cv_sbrk_declared'+set}'`\" = set"; then
6113 echo $ac_n "(cached) $ac_c" 1>&6
6115 cat > conftest.
$ac_ext <<EOF
6116 #line 6117 "configure"
6117 #include "confdefs.h"
6120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6121 egrep "sbrk" >/dev
/null
2>&1; then
6123 bash_cv_sbrk_declared
=yes
6126 bash_cv_sbrk_declared
=no
6132 echo "$ac_t""$bash_cv_sbrk_declared" 1>&6
6133 if test $bash_cv_sbrk_declared = yes; then
6134 cat >> confdefs.h
<<\EOF
6135 #define SBRK_DECLARED 1
6141 echo $ac_n "checking for presence of POSIX-style sigsetjmp/siglongjmp""... $ac_c" 1>&6
6142 echo "configure:6143: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
6143 if eval "test \"`echo '$''{'bash_cv_func_sigsetjmp'+set}'`\" = set"; then
6144 echo $ac_n "(cached) $ac_c" 1>&6
6146 if test "$cross_compiling" = yes; then
6147 echo "configure: warning: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" 1>&2
6148 bash_cv_func_sigsetjmp
=missing
6151 cat > conftest.
$ac_ext <<EOF
6152 #line 6153 "configure"
6153 #include "confdefs.h"
6155 #ifdef HAVE_UNISTD_H
6158 #include <sys/types.h>
6164 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
6175 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
6176 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
6179 code = sigsetjmp(xx, 1);
6181 exit(0); /* could get sigmask and compare to oset here. */
6184 sigaddset(&set, SIGINT);
6185 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
6187 /* and siglongjmp */
6193 if { (eval echo configure
:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6195 bash_cv_func_sigsetjmp
=present
6197 echo "configure: failed program was:" >&5
6198 cat conftest.
$ac_ext >&5
6200 bash_cv_func_sigsetjmp
=missing
6207 echo "$ac_t""$bash_cv_func_sigsetjmp" 1>&6
6208 if test $bash_cv_func_sigsetjmp = present
; then
6209 cat >> confdefs.h
<<\EOF
6210 #define HAVE_POSIX_SIGSETJMP 1
6216 echo $ac_n "checking whether or not strcoll and strcmp differ""... $ac_c" 1>&6
6217 echo "configure:6218: checking whether or not strcoll and strcmp differ" >&5
6218 if eval "test \"`echo '$''{'bash_cv_func_strcoll_broken'+set}'`\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6221 if test "$cross_compiling" = yes; then
6222 echo "configure: warning: cannot check strcoll if cross compiling -- defaulting to no" 1>&2
6223 bash_cv_func_strcoll_broken
=no
6226 cat > conftest.
$ac_ext <<EOF
6227 #line 6228 "configure"
6228 #include "confdefs.h"
6231 #if defined (HAVE_LOCALE_H)
6240 char *deflocale, *defcoll;
6242 #ifdef HAVE_SETLOCALE
6243 deflocale = setlocale(LC_ALL, "");
6244 defcoll = setlocale(LC_COLLATE, "");
6248 /* These two values are taken from tests/glob-test. */
6249 r1 = strcoll("abd", "aXd");
6253 r2 = strcmp("abd", "aXd");
6255 /* These two should both be greater than 0. It is permissible for
6256 a system to return different values, as long as the sign is the
6259 /* Exit with 1 (failure) if these two values are both > 0, since
6260 this tests whether strcoll(3) is broken with respect to strcmp(3)
6261 in the default locale. */
6262 exit (r1 > 0 && r2 > 0);
6266 if { (eval echo configure
:6267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6268 bash_cv_func_strcoll_broken
=yes
6270 echo "configure: failed program was:" >&5
6271 cat conftest.
$ac_ext >&5
6273 bash_cv_func_strcoll_broken
=no
6280 echo "$ac_t""$bash_cv_func_strcoll_broken" 1>&6
6281 if test $bash_cv_func_strcoll_broken = yes; then
6282 cat >> confdefs.h
<<\EOF
6283 #define STRCOLL_BROKEN 1
6291 echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
6292 echo "configure:6293: checking if signal handlers must be reinstalled when invoked" >&5
6293 if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
6294 echo $ac_n "(cached) $ac_c" 1>&6
6296 if test "$cross_compiling" = yes; then
6297 echo "configure: warning: cannot check signal handling if cross compiling -- defaulting to no" 1>&2
6298 bash_cv_must_reinstall_sighandlers
=no
6301 cat > conftest.
$ac_ext <<EOF
6302 #line 6303 "configure"
6303 #include "confdefs.h"
6306 #ifdef HAVE_UNISTD_H
6310 typedef RETSIGTYPE sigfunc();
6314 #ifdef HAVE_POSIX_SIGNALS
6316 set_signal_handler(sig, handler)
6320 struct sigaction act, oact;
6321 act.sa_handler = handler;
6323 sigemptyset (&act.sa_mask);
6324 sigemptyset (&oact.sa_mask);
6325 sigaction (sig, &act, &oact);
6326 return (oact.sa_handler);
6329 #define set_signal_handler(s, h) signal(s, h)
6342 set_signal_handler(SIGINT, sigint);
6343 kill((int)getpid(), SIGINT);
6344 kill((int)getpid(), SIGINT);
6349 if { (eval echo configure
:6350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6351 bash_cv_must_reinstall_sighandlers
=no
6353 echo "configure: failed program was:" >&5
6354 cat conftest.
$ac_ext >&5
6356 bash_cv_must_reinstall_sighandlers
=yes
6363 echo "$ac_t""$bash_cv_must_reinstall_sighandlers" 1>&6
6364 if test $bash_cv_must_reinstall_sighandlers = yes; then
6365 cat >> confdefs.h
<<\EOF
6366 #define MUST_REINSTALL_SIGHANDLERS 1
6372 echo $ac_n "checking for presence of necessary job control definitions""... $ac_c" 1>&6
6373 echo "configure:6374: checking for presence of necessary job control definitions" >&5
6374 if eval "test \"`echo '$''{'bash_cv_job_control_missing'+set}'`\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6377 if test "$cross_compiling" = yes; then
6378 echo "configure: warning: cannot check job control if cross-compiling -- defaulting to missing" 1>&2
6379 bash_cv_job_control_missing
=missing
6382 cat > conftest.
$ac_ext <<EOF
6383 #line 6384 "configure"
6384 #include "confdefs.h"
6386 #include <sys/types.h>
6387 #ifdef HAVE_SYS_WAIT_H
6388 #include <sys/wait.h>
6390 #ifdef HAVE_UNISTD_H
6395 /* Add more tests in here as appropriate. */
6399 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
6403 /* signals and tty control. */
6404 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
6408 /* process control */
6409 #if !defined (WNOHANG) || !defined (WUNTRACED)
6413 /* Posix systems have tcgetpgrp and waitpid. */
6414 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
6418 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
6422 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
6423 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
6430 if { (eval echo configure
:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6432 bash_cv_job_control_missing
=present
6434 echo "configure: failed program was:" >&5
6435 cat conftest.
$ac_ext >&5
6437 bash_cv_job_control_missing
=missing
6444 echo "$ac_t""$bash_cv_job_control_missing" 1>&6
6445 if test $bash_cv_job_control_missing = missing
; then
6446 cat >> confdefs.h
<<\EOF
6447 #define JOB_CONTROL_MISSING 1
6452 echo $ac_n "checking for presence of named pipes""... $ac_c" 1>&6
6453 echo "configure:6454: checking for presence of named pipes" >&5
6454 if eval "test \"`echo '$''{'bash_cv_sys_named_pipes'+set}'`\" = set"; then
6455 echo $ac_n "(cached) $ac_c" 1>&6
6457 if test "$cross_compiling" = yes; then
6458 echo "configure: warning: cannot check for named pipes if cross-compiling -- defaulting to missing" 1>&2
6459 bash_cv_sys_named_pipes
=missing
6462 cat > conftest.
$ac_ext <<EOF
6463 #line 6464 "configure"
6464 #include "confdefs.h"
6466 #include <sys/types.h>
6467 #include <sys/stat.h>
6468 #ifdef HAVE_UNISTD_H
6472 /* Add more tests in here as appropriate. */
6477 #if defined (HAVE_MKFIFO)
6481 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
6489 fd = mknod ("/tmp/sh-np-autoconf", 0666 | S_IFIFO, 0);
6493 unlink ("/tmp/sh-np-autoconf");
6497 if { (eval echo configure
:6498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6499 bash_cv_sys_named_pipes
=present
6501 echo "configure: failed program was:" >&5
6502 cat conftest.
$ac_ext >&5
6504 bash_cv_sys_named_pipes
=missing
6511 echo "$ac_t""$bash_cv_sys_named_pipes" 1>&6
6512 if test $bash_cv_sys_named_pipes = missing
; then
6513 cat >> confdefs.h
<<\EOF
6514 #define NAMED_PIPES_MISSING 1
6520 echo $ac_n "checking for TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
6521 echo "configure:6522: checking for TIOCGWINSZ in sys/ioctl.h" >&5
6522 if eval "test \"`echo '$''{'bash_cv_tiocgwinsz_in_ioctl'+set}'`\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6525 cat > conftest.
$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6528 #include <sys/types.h>
6529 #include <sys/ioctl.h>
6534 if { (eval echo configure
:6535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6536 bash_cv_tiocgwinsz_in_ioctl
=yes
6538 echo "configure: failed program was:" >&5
6539 cat conftest.
$ac_ext >&5
6541 bash_cv_tiocgwinsz_in_ioctl
=no
6546 echo "$ac_t""$bash_cv_tiocgwinsz_in_ioctl" 1>&6
6547 if test $bash_cv_tiocgwinsz_in_ioctl = yes; then
6548 cat >> confdefs.h
<<\EOF
6549 #define GWINSZ_IN_SYS_IOCTL 1
6554 echo $ac_n "checking for TIOCSTAT in sys/ioctl.h""... $ac_c" 1>&6
6555 echo "configure:6556: checking for TIOCSTAT in sys/ioctl.h" >&5
6556 if eval "test \"`echo '$''{'bash_cv_tiocstat_in_ioctl'+set}'`\" = set"; then
6557 echo $ac_n "(cached) $ac_c" 1>&6
6559 cat > conftest.
$ac_ext <<EOF
6560 #line 6561 "configure"
6561 #include "confdefs.h"
6562 #include <sys/types.h>
6563 #include <sys/ioctl.h>
6568 if { (eval echo configure
:6569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6570 bash_cv_tiocstat_in_ioctl
=yes
6572 echo "configure: failed program was:" >&5
6573 cat conftest.
$ac_ext >&5
6575 bash_cv_tiocstat_in_ioctl
=no
6580 echo "$ac_t""$bash_cv_tiocstat_in_ioctl" 1>&6
6581 if test $bash_cv_tiocstat_in_ioctl = yes; then
6582 cat >> confdefs.h
<<\EOF
6583 #define TIOCSTAT_IN_SYS_IOCTL 1
6588 echo $ac_n "checking for FIONREAD in sys/ioctl.h""... $ac_c" 1>&6
6589 echo "configure:6590: checking for FIONREAD in sys/ioctl.h" >&5
6590 if eval "test \"`echo '$''{'bash_cv_fionread_in_ioctl'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6593 cat > conftest.
$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 #include <sys/types.h>
6597 #include <sys/ioctl.h>
6602 if { (eval echo configure
:6603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6604 bash_cv_fionread_in_ioctl
=yes
6606 echo "configure: failed program was:" >&5
6607 cat conftest.
$ac_ext >&5
6609 bash_cv_fionread_in_ioctl
=no
6614 echo "$ac_t""$bash_cv_fionread_in_ioctl" 1>&6
6615 if test $bash_cv_fionread_in_ioctl = yes; then
6616 cat >> confdefs.h
<<\EOF
6617 #define FIONREAD_IN_SYS_IOCTL 1
6623 echo $ac_n "checking for speed_t in sys/types.h""... $ac_c" 1>&6
6624 echo "configure:6625: checking for speed_t in sys/types.h" >&5
6625 if eval "test \"`echo '$''{'bash_cv_speed_t_in_sys_types'+set}'`\" = set"; then
6626 echo $ac_n "(cached) $ac_c" 1>&6
6628 cat > conftest.
$ac_ext <<EOF
6629 #line 6630 "configure"
6630 #include "confdefs.h"
6631 #include <sys/types.h>
6636 if { (eval echo configure
:6637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6638 bash_cv_speed_t_in_sys_types
=yes
6640 echo "configure: failed program was:" >&5
6641 cat conftest.
$ac_ext >&5
6643 bash_cv_speed_t_in_sys_types
=no
6648 echo "$ac_t""$bash_cv_speed_t_in_sys_types" 1>&6
6649 if test $bash_cv_speed_t_in_sys_types = yes; then
6650 cat >> confdefs.h
<<\EOF
6651 #define SPEED_T_IN_SYS_TYPES 1
6656 echo $ac_n "checking whether programs are able to redeclare getpw functions""... $ac_c" 1>&6
6657 echo "configure:6658: checking whether programs are able to redeclare getpw functions" >&5
6658 if eval "test \"`echo '$''{'bash_cv_can_redecl_getpw'+set}'`\" = set"; then
6659 echo $ac_n "(cached) $ac_c" 1>&6
6661 cat > conftest.
$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6664 #include <sys/types.h>
6666 extern struct passwd *getpwent();
6667 extern struct passwd *getpwuid();
6668 extern struct passwd *getpwnam();
6670 struct passwd *z; z = getpwent(); z = getpwuid(0); z = getpwnam("root");
6673 if { (eval echo configure
:6674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6675 bash_cv_can_redecl_getpw
=yes
6677 echo "configure: failed program was:" >&5
6678 cat conftest.
$ac_ext >&5
6680 bash_cv_can_redecl_getpw
=no
6685 echo "$ac_t""$bash_cv_can_redecl_getpw" 1>&6
6686 if test $bash_cv_can_redecl_getpw = no
; then
6687 cat >> confdefs.h
<<\EOF
6688 #define HAVE_GETPW_DECLS 1
6695 hpux
*) echo $ac_n "checking whether $host_os needs _KERNEL for RLIMIT defines""... $ac_c" 1>&6
6696 echo "configure:6697: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
6697 if eval "test \"`echo '$''{'bash_cv_kernel_rlimit'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6700 cat > conftest.
$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6704 #include <sys/types.h>
6705 #include <sys/resource.h>
6714 if { (eval echo configure
:6715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6716 bash_cv_kernel_rlimit
=no
6718 echo "configure: failed program was:" >&5
6719 cat conftest.
$ac_ext >&5
6721 cat > conftest.
$ac_ext <<EOF
6722 #line 6723 "configure"
6723 #include "confdefs.h"
6725 #include <sys/types.h>
6727 #include <sys/resource.h>
6737 if { (eval echo configure
:6738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6739 bash_cv_kernel_rlimit
=yes
6741 echo "configure: failed program was:" >&5
6742 cat conftest.
$ac_ext >&5
6744 bash_cv_kernel_rlimit
=no
6752 echo "$ac_t""$bash_cv_kernel_rlimit" 1>&6
6753 if test $bash_cv_kernel_rlimit = yes; then
6754 cat >> confdefs.h
<<\EOF
6755 #define RLIMIT_NEEDS_KERNEL 1
6762 if test "$opt_readline" = yes; then
6764 aix
*) prefer_curses
=yes ;;
6767 if test "X$bash_cv_termcap_lib" = "X"; then
6770 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
6771 echo "configure:6772: checking which library has the termcap functions" >&5
6774 if eval "test \"`echo '$''{'bash_cv_termcap_lib'+set}'`\" = set"; then
6775 echo $ac_n "(cached) $ac_c" 1>&6
6777 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
6778 echo "configure:6779: checking for tgetent in -ltermcap" >&5
6779 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
6780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6781 echo $ac_n "(cached) $ac_c" 1>&6
6783 ac_save_LIBS
="$LIBS"
6784 LIBS
="-ltermcap $LIBS"
6785 cat > conftest.
$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 /* Override any gcc2 internal prototype to avoid an error. */
6789 /* We use char because int might match the return type of a gcc2
6790 builtin and then its argument prototype would still apply. */
6797 if { (eval echo configure
:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6799 eval "ac_cv_lib_$ac_lib_var=yes"
6801 echo "configure: failed program was:" >&5
6802 cat conftest.
$ac_ext >&5
6804 eval "ac_cv_lib_$ac_lib_var=no"
6807 LIBS
="$ac_save_LIBS"
6810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 bash_cv_termcap_lib
=libtermcap
6814 echo "$ac_t""no" 1>&6
6815 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
6816 echo "configure:6817: checking for tgetent in -lcurses" >&5
6817 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
6818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6819 echo $ac_n "(cached) $ac_c" 1>&6
6821 ac_save_LIBS
="$LIBS"
6822 LIBS
="-lcurses $LIBS"
6823 cat > conftest.
$ac_ext <<EOF
6824 #line 6825 "configure"
6825 #include "confdefs.h"
6826 /* Override any gcc2 internal prototype to avoid an error. */
6827 /* We use char because int might match the return type of a gcc2
6828 builtin and then its argument prototype would still apply. */
6835 if { (eval echo configure
:6836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6837 eval "ac_cv_lib_$ac_lib_var=yes"
6839 echo "configure: failed program was:" >&5
6840 cat conftest.
$ac_ext >&5
6842 eval "ac_cv_lib_$ac_lib_var=no"
6845 LIBS
="$ac_save_LIBS"
6848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6849 echo "$ac_t""yes" 1>&6
6850 bash_cv_termcap_lib
=libcurses
6852 echo "$ac_t""no" 1>&6
6853 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
6854 echo "configure:6855: checking for tgetent in -lncurses" >&5
6855 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
6856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6857 echo $ac_n "(cached) $ac_c" 1>&6
6859 ac_save_LIBS
="$LIBS"
6860 LIBS
="-lncurses $LIBS"
6861 cat > conftest.
$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 /* Override any gcc2 internal prototype to avoid an error. */
6865 /* We use char because int might match the return type of a gcc2
6866 builtin and then its argument prototype would still apply. */
6873 if { (eval echo configure
:6874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6875 eval "ac_cv_lib_$ac_lib_var=yes"
6877 echo "configure: failed program was:" >&5
6878 cat conftest.
$ac_ext >&5
6880 eval "ac_cv_lib_$ac_lib_var=no"
6883 LIBS
="$ac_save_LIBS"
6886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6887 echo "$ac_t""yes" 1>&6
6888 bash_cv_termcap_lib
=libncurses
6890 echo "$ac_t""no" 1>&6
6891 bash_cv_termcap_lib
=gnutermcap
6900 if test "X$_bash_needmsg" = "Xyes"; then
6901 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
6902 echo "configure:6903: checking which library has the termcap functions" >&5
6904 echo "$ac_t""using $bash_cv_termcap_lib" 1>&6
6905 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
6906 LDFLAGS
="$LDFLAGS -L./lib/termcap"
6907 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
6908 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
6909 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
6910 TERMCAP_LIB
=-ltermcap
6912 elif test $bash_cv_termcap_lib = libncurses
; then
6913 TERMCAP_LIB
=-lncurses
6916 TERMCAP_LIB
=-lcurses
6924 echo $ac_n "checking whether /dev/fd is available""... $ac_c" 1>&6
6925 echo "configure:6926: checking whether /dev/fd is available" >&5
6926 if eval "test \"`echo '$''{'bash_cv_dev_fd'+set}'`\" = set"; then
6927 echo $ac_n "(cached) $ac_c" 1>&6
6929 if test -d /dev
/fd
&& test -r /dev
/fd
/0; then
6930 bash_cv_dev_fd
=standard
6931 elif test -d /proc
/self
/fd
&& test -r /proc
/self
/fd
/0; then
6932 bash_cv_dev_fd
=whacky
6934 bash_cv_dev_fd
=absent
6939 echo "$ac_t""$bash_cv_dev_fd" 1>&6
6940 if test $bash_cv_dev_fd = "standard"; then
6941 cat >> confdefs.h
<<\EOF
6942 #define HAVE_DEV_FD 1
6945 cat >> confdefs.h
<<\EOF
6946 #define DEV_FD_PREFIX "/dev/fd/"
6949 elif test $bash_cv_dev_fd = "whacky"; then
6950 cat >> confdefs.h
<<\EOF
6951 #define HAVE_DEV_FD 1
6954 cat >> confdefs.h
<<\EOF
6955 #define DEV_FD_PREFIX "/proc/self/fd/"
6960 echo $ac_n "checking for default mail directory""... $ac_c" 1>&6
6961 echo "configure:6962: checking for default mail directory" >&5
6962 if eval "test \"`echo '$''{'bash_cv_mail_dir'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6965 if test -d /var
/mail; then
6966 bash_cv_mail_dir
=/var
/mail
6967 elif test -d /usr
/mail; then
6968 bash_cv_mail_dir
=/usr
/mail
6969 elif test -d /var
/spool
/mail; then
6970 bash_cv_mail_dir
=/var
/spool
/mail
6971 elif test -d /usr
/spool
/mail; then
6972 bash_cv_mail_dir
=/usr
/spool
/mail
6974 bash_cv_mail_dir
=unknown
6979 echo "$ac_t""$bash_cv_mail_dir" 1>&6
6980 if test $bash_cv_mail_dir = "/var/mail"; then
6981 cat >> confdefs.h
<<\EOF
6982 #define DEFAULT_MAIL_DIRECTORY "/var/mail"
6985 elif test $bash_cv_mail_dir = "/usr/mail"; then
6986 cat >> confdefs.h
<<\EOF
6987 #define DEFAULT_MAIL_DIRECTORY "/usr/mail"
6990 elif test $bash_cv_mail_dir = "/var/spool/mail"; then
6991 cat >> confdefs.h
<<\EOF
6992 #define DEFAULT_MAIL_DIRECTORY "/var/spool/mail"
6995 elif test $bash_cv_mail_dir = "/usr/spool/mail"; then
6996 cat >> confdefs.h
<<\EOF
6997 #define DEFAULT_MAIL_DIRECTORY "/usr/spool/mail"
7001 cat >> confdefs.h
<<\EOF
7002 #define DEFAULT_MAIL_DIRECTORY "unknown"
7008 if test "$bash_cv_job_control_missing" = missing
; then
7012 if test "$opt_job_control" = yes; then
7013 cat >> confdefs.h
<<\EOF
7014 #define JOB_CONTROL 1
7028 case "${host_os}" in
7029 sysv4.2
*) cat >> confdefs.h
<<\EOF
7033 cat >> confdefs.h
<<\EOF
7037 sysv4
*) cat >> confdefs.h
<<\EOF
7041 sysv5
*) cat >> confdefs.h
<<\EOF
7045 hpux9
*) LOCAL_CFLAGS
="-DHPUX9 -DHPUX" ;;
7046 hpux
*) LOCAL_CFLAGS
=-DHPUX ;;
7047 dgux
*) LOCAL_CFLAGS
=-D_DGUX_SOURCE; LOCAL_LIBS
=-ldgc ;;
7048 isc
*) LOCAL_CFLAGS
=-Disc386;;
7049 sco3.2v5
*) LOCAL_CFLAGS
="-b elf -DWAITPID_BROKEN -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
7050 sco3.2v4
*) LOCAL_CFLAGS
="-DMUST_UNBLOCK_CHLD -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
7051 sco3.2
*) LOCAL_CFLAGS
=-DMUST_UNBLOCK_CHLD ;;
7052 sunos4
*) LOCAL_CFLAGS
=-DSunOS4 ;;
7053 solaris2.5
*) LOCAL_CFLAGS
=-DSunOS5 ;;
7054 lynxos
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
7055 linux
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
7056 *qnx
*) LOCAL_CFLAGS
="-Dqnx -F -3s" LOCAL_LDFLAGS
="-3s -lunix -lncurses" ;;
7057 powerux
*) LOCAL_LIBS
="-lgen" ;;
7058 cygwin32
*) LOCAL_LIBS
="-luser32" ;;
7059 opennt
*|interix
*) LOCAL_CFLAGS
="-DNO_MAIN_ENV_ARG" ;;
7062 case "${host_os}-${CC}" in
7063 aix4.2
*-*gcc
*) LOCAL_LDFLAGS
="-Xlinker -bexpall -Xlinker -brtl" ;;
7064 aix4.2
*) LOCAL_LDFLAGS
="-bexpall -brtl" ;;
7065 bsdi4
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
7069 *cray
*) LOCAL_CFLAGS
="-DCRAY" ;; # shell var so config.h can use it
7072 case "$host_cpu-$host_os" in
7073 ibmrt-
*bsd4
*) LOCAL_CFLAGS
="-ma -U__STDC__" ;;
7076 case "$host_cpu-$host_vendor-$host_os" in
7077 m88k-motorola-sysv3
) LOCAL_CFLAGS
=-DWAITPID_BROKEN ;;
7078 mips-pyramid-sysv4
) LOCAL_CFLAGS
=-Xa ;;
7082 # Shared object configuration section. These values are generated by
7083 # ${srcdir}/support/shobj-conf
7085 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support
/shobj-conf
7087 echo $ac_n "checking shared object configuration for loadable builtins""... $ac_c" 1>&6
7088 echo "configure:7089: checking shared object configuration for loadable builtins" >&5
7089 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C ${CC} -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
7097 echo "$ac_t""$SHOBJ_STATUS" 1>&6
7100 # try to create a directory tree if the source is elsewhere
7101 # this should be packaged into a script accessible via ${srcdir}/support
7104 *) for d
in doc tests support lib examples
; do # dirs
7105 test -d $d || mkdir
$d
7107 for ld
in readline glob tilde malloc sh termcap
; do # libdirs
7108 test -d lib
/$ld || mkdir lib
/$ld
7110 test -d examples
/loadables || mkdir examples
/loadables
# loadable builtins
7137 #AC_SUBST(ALLOCA_SOURCE)
7138 #AC_SUBST(ALLOCA_OBJECT)
7141 cat > confcache
<<\EOF
7142 # This file is a shell script that caches the results of configure
7143 # tests run on this system so they can be shared between configure
7144 # scripts and configure runs. It is not useful on other systems.
7145 # If it contains results you don't want to keep, you may remove or edit it.
7147 # By default, configure uses ./config.cache as the cache file,
7148 # creating it if it does not exist already. You can give configure
7149 # the --cache-file=FILE option to use a different cache file; that is
7150 # what configure does when it calls configure scripts in
7151 # subdirectories, so they share the cache.
7152 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7153 # config.status only pays attention to the cache file if you give it the
7154 # --recheck option to rerun configure.
7157 # The following way of writing the cache mishandles newlines in values,
7158 # but we know of no workaround that is simple, portable, and efficient.
7159 # So, don't put newlines in cache variables' values.
7160 # Ultrix sh set writes to stderr and can't be redirected directly,
7161 # and sets the high bit in the cache file unless we assign to the vars.
7163 case `(ac_space=' '; set) 2>&1` in
7165 # `set' does not quote correctly, so add quotes (double-quote substitution
7166 # turns \\\\ into \\, and sed turns \\ into \).
7168 -e "s/'/'\\\\''/g" \
7169 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7172 # `set' quotes correctly as required by POSIX, so do not add quotes.
7173 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7176 if cmp -s $cache_file confcache
; then
7179 if test -w $cache_file; then
7180 echo "updating cache $cache_file"
7181 cat confcache
> $cache_file
7183 echo "not updating unwritable cache $cache_file"
7188 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7190 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7191 # Let make expand exec_prefix.
7192 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7194 # Any assignment to VPATH causes Sun make to only execute
7195 # the first set of double-colon rules, so remove it if not needed.
7196 # If there is a colon in the path, we need to keep it.
7197 if test "x$srcdir" = x.
; then
7198 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7201 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7203 DEFS
=-DHAVE_CONFIG_H
7205 # Without the "./", some shells look in PATH for config.status.
7206 : ${CONFIG_STATUS=./config.status}
7208 echo creating
$CONFIG_STATUS
7209 rm -f $CONFIG_STATUS
7210 cat > $CONFIG_STATUS <<EOF
7212 # Generated automatically by configure.
7213 # Run this file to recreate the current configuration.
7214 # This directory was configured as follows,
7215 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7217 # $0 $ac_configure_args
7219 # Compiler output produced by configure, useful for debugging
7220 # configure, is in ./config.log if it exists.
7222 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7225 case "\$ac_option" in
7226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7227 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7228 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7229 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7230 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7232 -help | --help | --hel | --he | --h)
7233 echo "\$ac_cs_usage"; exit 0 ;;
7234 *) echo "\$ac_cs_usage"; exit 1 ;;
7238 ac_given_srcdir=$srcdir
7239 ac_given_INSTALL="$INSTALL"
7241 trap 'rm -fr `echo "Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile \
7242 lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile \
7243 lib/tilde/Makefile doc/Makefile support/Makefile \
7244 examples/loadables/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7246 cat >> $CONFIG_STATUS <<EOF
7248 # Protect against being on the right side of a sed subst in config.status.
7249 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7250 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7253 s%@CFLAGS@%$CFLAGS%g
7254 s%@CPPFLAGS@%$CPPFLAGS%g
7255 s%@CXXFLAGS@%$CXXFLAGS%g
7257 s%@LDFLAGS@%$LDFLAGS%g
7259 s%@exec_prefix@%$exec_prefix%g
7260 s%@prefix@%$prefix%g
7261 s%@program_transform_name@%$program_transform_name%g
7262 s%@bindir@%$bindir%g
7263 s%@sbindir@%$sbindir%g
7264 s%@libexecdir@%$libexecdir%g
7265 s%@datadir@%$datadir%g
7266 s%@sysconfdir@%$sysconfdir%g
7267 s%@sharedstatedir@%$sharedstatedir%g
7268 s%@localstatedir@%$localstatedir%g
7269 s%@libdir@%$libdir%g
7270 s%@includedir@%$includedir%g
7271 s%@oldincludedir@%$oldincludedir%g
7272 s%@infodir@%$infodir%g
7273 s%@mandir@%$mandir%g
7275 s%@host_alias@%$host_alias%g
7276 s%@host_cpu@%$host_cpu%g
7277 s%@host_vendor@%$host_vendor%g
7278 s%@host_os@%$host_os%g
7279 s%@TESTSCRIPT@%$TESTSCRIPT%g
7280 s%@PURIFY@%$PURIFY%g
7281 s%@MALLOC_TARGET@%$MALLOC_TARGET%g
7282 s%@MALLOC_SRC@%$MALLOC_SRC%g
7285 s%@SIGNAMES_H@%$SIGNAMES_H%g
7286 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7287 s%@STATIC_LD@%$STATIC_LD%g
7288 s%@READLINE_LIB@%$READLINE_LIB%g
7289 s%@READLINE_DEP@%$READLINE_DEP%g
7290 s%@RL_LIBDIR@%$RL_LIBDIR%g
7291 s%@RL_INCLUDE@%$RL_INCLUDE%g
7292 s%@HISTORY_LIB@%$HISTORY_LIB%g
7293 s%@HISTORY_DEP@%$HISTORY_DEP%g
7294 s%@HIST_LIBDIR@%$HIST_LIBDIR%g
7295 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7296 s%@INSTALL_DATA@%$INSTALL_DATA%g
7298 s%@RANLIB@%$RANLIB%g
7300 s%@SET_MAKE@%$SET_MAKE%g
7301 s%@MAKE_SHELL@%$MAKE_SHELL%g
7302 s%@ALLOCA@%$ALLOCA%g
7303 s%@TERMCAP_LIB@%$TERMCAP_LIB%g
7304 s%@TERMCAP_DEP@%$TERMCAP_DEP%g
7305 s%@JOBS_O@%$JOBS_O%g
7306 s%@SHOBJ_CC@%$SHOBJ_CC%g
7307 s%@SHOBJ_CFLAGS@%$SHOBJ_CFLAGS%g
7308 s%@SHOBJ_LD@%$SHOBJ_LD%g
7309 s%@SHOBJ_LDFLAGS@%$SHOBJ_LDFLAGS%g
7310 s%@SHOBJ_XLDFLAGS@%$SHOBJ_XLDFLAGS%g
7311 s%@SHOBJ_LIBS@%$SHOBJ_LIBS%g
7312 s%@SHOBJ_STATUS@%$SHOBJ_STATUS%g
7313 s%@PROFILE_FLAGS@%$PROFILE_FLAGS%g
7314 s%@incdir@%$incdir%g
7315 s%@BUILD_DIR@%$BUILD_DIR%g
7316 s%@ARFLAGS@%$ARFLAGS%g
7317 s%@BASHVERS@%$BASHVERS%g
7318 s%@BASHPATCH@%$BASHPATCH%g
7319 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
7320 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
7321 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
7322 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
7327 cat >> $CONFIG_STATUS <<\EOF
7329 # Split the substitutions into bite-sized pieces for seds with
7330 # small command number limits, like on Digital OSF/1 and HP-UX.
7331 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7332 ac_file
=1 # Number of current file.
7333 ac_beg
=1 # First line for current file.
7334 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7337 while $ac_more_lines; do
7338 if test $ac_beg -gt 1; then
7339 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7341 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7343 if test ! -s conftest.s
$ac_file; then
7345 rm -f conftest.s
$ac_file
7347 if test -z "$ac_sed_cmds"; then
7348 ac_sed_cmds
="sed -f conftest.s$ac_file"
7350 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7352 ac_file
=`expr $ac_file + 1`
7354 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7357 if test -z "$ac_sed_cmds"; then
7362 cat >> $CONFIG_STATUS <<EOF
7364 CONFIG_FILES=\${CONFIG_FILES-"Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile \
7365 lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile \
7366 lib/tilde/Makefile doc/Makefile support/Makefile \
7367 examples/loadables/Makefile"}
7369 cat >> $CONFIG_STATUS <<\EOF
7370 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7371 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7373 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7374 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7375 *) ac_file_in
="${ac_file}.in" ;;
7378 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7380 # Remove last slash and all that follows it. Not all systems have dirname.
7381 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7382 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7383 # The file is in a subdirectory.
7384 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7385 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7386 # A "../" for each directory in $ac_dir_suffix.
7387 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7389 ac_dir_suffix
= ac_dots
=
7392 case "$ac_given_srcdir" in
7394 if test -z "$ac_dots"; then top_srcdir
=.
7395 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7396 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7398 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7399 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7402 case "$ac_given_INSTALL" in
7403 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7404 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7407 echo creating
"$ac_file"
7409 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7411 *Makefile
*) ac_comsub
="1i\\
7412 # $configure_input" ;;
7416 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7418 s%@configure_input@%$configure_input%g
7419 s%@srcdir@%$srcdir%g
7420 s%@top_srcdir@%$top_srcdir%g
7421 s%@INSTALL@%$INSTALL%g
7422 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7426 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7427 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7429 # ac_d sets the value in "#define NAME VALUE" lines.
7430 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7431 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7434 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7435 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7436 ac_uB
='\([ ]\)%\1#\2define\3'
7439 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7440 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7441 ac_eB
='$%\1#\2define\3'
7445 if test "${CONFIG_HEADERS+set}" != set; then
7447 cat >> $CONFIG_STATUS <<EOF
7448 CONFIG_HEADERS="config.h"
7450 cat >> $CONFIG_STATUS <<\EOF
7452 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7455 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7456 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7457 *) ac_file_in
="${ac_file}.in" ;;
7460 echo creating
$ac_file
7462 rm -f conftest.frag conftest.
in conftest.out
7463 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7464 cat $ac_file_inputs > conftest.
in
7468 # Transform confdefs.h into a sed script conftest.vals that substitutes
7469 # the proper values into config.h.in to produce config.h. And first:
7470 # Protect against being on the right side of a sed subst in config.status.
7471 # Protect against being in an unquoted here document in config.status.
7473 cat > conftest.hdr
<<\EOF
7476 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7480 sed -n -f conftest.hdr confdefs.h > conftest.vals
7483 # This sed command replaces #undef with comments. This is necessary, for
7484 # example, in the case of _POSIX_SOURCE, which is predefined and required
7485 # on some systems where configure will not decide to define it.
7486 cat >> conftest.vals <<\EOF
7487 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7490 # Break up conftest.vals because some shells have a limit on
7491 # the size of here documents, and old seds have small limits too.
7496 ac_lines=`grep -c . conftest.vals
`
7497 # grep -c gives empty output for an empty file on some AIX systems.
7498 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7499 # Write a limited-size here document to conftest.frag.
7500 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7501 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7503 sed -f conftest.frag conftest.in > conftest.out
7505 mv conftest.out conftest.in
7507 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7509 mv conftest.tail conftest.vals
7513 cat >> $CONFIG_STATUS <<\EOF
7514 rm -f conftest.frag conftest.h
7515 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7516 cat conftest.in >> conftest.h
7518 if cmp -s $ac_file conftest.h 2>/dev/null; then
7519 echo "$ac_file is unchanged"
7522 # Remove last slash and all that follows it. Not all systems have dirname.
7523 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7524 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7525 # The file is in a subdirectory.
7526 test ! -d "$ac_dir" && mkdir "$ac_dir"
7529 mv conftest.h $ac_file
7534 cat >> $CONFIG_STATUS <<EOF
7537 cat >> $CONFIG_STATUS <<\EOF
7539 # Makefile uses this timestamp file to record whether config.h is up to date.
7540 echo timestamp > stamp-h
7544 chmod +x $CONFIG_STATUS
7545 rm -fr confdefs* $ac_clean_files
7546 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1