3 # From configure.in for Bash 2.04, version 2.77, from autoconf version 2.13
104 # Guess values for system-dependent variables and create Makefiles.
105 # Generated automatically using autoconf version 2.13
106 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
108 # This configure script is free software; the Free Software Foundation
109 # gives unlimited permission to copy, distribute and modify it.
113 ac_default_prefix=/usr/local
114 # Any additions from configure.in:
116 --with-afs if you are running AFS"
118 --with-bash-malloc use the Bash version of malloc"
120 --with-curses use the curses library instead of the termcap library"
122 --with-glibc-malloc use the GNU C library version of malloc"
124 --with-gnu-malloc synonym for --with-bash-malloc"
126 --with-installed-readline use a version of the readline library that is already installed"
128 --with-purecov configure to postprocess with pure coverage"
130 --with-purify configure to postprocess with purify"
132 --enable-minimal-config a minimal sh-like configuration"
134 --enable-alias enable shell aliases"
136 --enable-arith-for-command enable arithmetic for command"
138 --enable-array-variables include shell array variables"
140 --enable-bang-history turn on csh-style history substitution"
142 --enable-brace-expansion include brace expansion"
144 --enable-command-timing enable the time reserved word and command timing"
146 --enable-cond-command enable the conditional command"
148 --enable-directory-stack enable builtins pushd/popd/dirs"
150 --enable-disabled-builtins allow disabled builtins to still be invoked"
152 --enable-dparen-arithmetic include ((...)) command"
154 --enable-extended-glob include ksh-style extended pattern matching"
156 --enable-help-builtin include the help builtin"
158 --enable-history turn on command history"
160 --enable-job-control enable job control features"
162 --enable-net-redirections enable /dev/tcp/host/port redirection"
164 --enable-process-substitution enable process substitution"
166 --enable-progcomp enable programmable completion and the complete builtin"
168 --enable-prompt-string-decoding turn on escape character decoding in prompts"
170 --enable-readline turn on command line editing"
172 --enable-restricted enable a restricted shell"
174 --enable-select include select command"
176 --enable-usg-echo-default a synonym for --enable-xpg-echo-default"
178 --enable-xpg-echo-default make the echo builtin expand escape sequences by default"
180 --enable-profiling allow profiling with gprof"
182 --enable-static-link link bash statically, for use as a root shell"
184 # Initialize some variables set by options.
185 # The variables have the same names as the options, with
186 # dashes changed to underlines.
188 cache_file=./config.cache
197 program_transform_name=s,x,x,
205 bindir='${exec_prefix}/bin'
206 sbindir='${exec_prefix}/sbin'
207 libexecdir='${exec_prefix}/libexec'
208 datadir='${prefix}/share'
209 sysconfdir='${prefix}/etc'
210 sharedstatedir='${prefix}/com'
211 localstatedir='${prefix}/var'
212 libdir='${exec_prefix}/lib'
213 includedir='${prefix}/include'
214 oldincludedir='/usr/include'
215 infodir='${prefix}/info'
216 mandir='${prefix}/man'
218 # Initialize some other variables.
221 SHELL=${CONFIG_SHELL-/bin/sh}
222 # Maximum number of lines to put in a shell here document.
229 # If the previous option needs an argument, assign it.
230 if test -n "$ac_prev"; then
231 eval "$ac_prev=\$ac_option"
237 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
241 # Accept the important Cygnus configure options, so we can diagnose typos.
245 -bindir | --bindir | --bindi | --bind | --bin | --bi)
247 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
248 bindir="$ac_optarg" ;;
250 -build | --build | --buil | --bui | --bu)
252 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
253 build="$ac_optarg" ;;
255 -cache-file | --cache-file | --cache-fil | --cache-fi \
256 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
257 ac_prev=cache_file ;;
258 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
259 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
260 cache_file="$ac_optarg" ;;
262 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
264 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
266 datadir="$ac_optarg" ;;
268 -disable-* | --disable-*)
269 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
270 # Reject names that are not valid shell variable names.
271 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
272 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
274 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
275 eval "enable_${ac_feature}=no" ;;
277 -enable-* | --enable-*)
278 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
279 # Reject names that are not valid shell variable names.
280 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
281 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
283 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
288 eval "enable_${ac_feature}='$ac_optarg'" ;;
290 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
291 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
292 | --exec | --exe | --ex)
293 ac_prev=exec_prefix ;;
294 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
295 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
296 | --exec=* | --exe=* | --ex=*)
297 exec_prefix="$ac_optarg" ;;
299 -gas | --gas | --ga | --g)
300 # Obsolete; use --with-gas.
303 -help | --help | --hel | --he)
304 # Omit some internal or obsolete options to make the list less imposing.
305 # This message is too long to be a string in the A/UX 3.1 sh.
307 Usage: configure [options] [host]
308 Options: [defaults in brackets after descriptions]
310 --cache-file=FILE cache test results in FILE
311 --help print this message
312 --no-create do not create output files
313 --quiet, --silent do not print \`checking...' messages
314 --version print the version of autoconf that created configure
315 Directory and file names:
316 --prefix=PREFIX install architecture-independent files in PREFIX
318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
320 --bindir=DIR user executables in DIR [EPREFIX/bin]
321 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
322 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
323 --datadir=DIR read-only architecture-independent data in DIR
325 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
326 --sharedstatedir=DIR modifiable architecture-independent data in DIR
328 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
329 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
330 --includedir=DIR C header files in DIR [PREFIX/include]
331 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
332 --infodir=DIR info documentation in DIR [PREFIX/info]
333 --mandir=DIR man documentation in DIR [PREFIX/man]
334 --srcdir=DIR find the sources in DIR [configure dir or ..]
335 --program-prefix=PREFIX prepend PREFIX to installed program names
336 --program-suffix=SUFFIX append SUFFIX to installed program names
337 --program-transform-name=PROGRAM
338 run sed PROGRAM on installed program names
342 --build=BUILD configure for building on BUILD [BUILD=HOST]
343 --host=HOST configure for HOST [guessed]
344 --target=TARGET configure for TARGET [TARGET=HOST]
345 Features and packages:
346 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
347 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
348 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
349 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
350 --x-includes=DIR X include files are in DIR
351 --x-libraries=DIR X library files are in DIR
353 if test -n "$ac_help"; then
354 echo "--enable and --with options recognized:$ac_help"
358 -host | --host | --hos | --ho)
360 -host=* | --host=* | --hos=* | --ho=*)
363 -includedir | --includedir | --includedi | --included | --include \
364 | --includ | --inclu | --incl | --inc)
365 ac_prev=includedir ;;
366 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
367 | --includ=* | --inclu=* | --incl=* | --inc=*)
368 includedir="$ac_optarg" ;;
370 -infodir | --infodir | --infodi | --infod | --info | --inf)
372 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
373 infodir="$ac_optarg" ;;
375 -libdir | --libdir | --libdi | --libd)
377 -libdir=* | --libdir=* | --libdi=* | --libd=*)
378 libdir="$ac_optarg" ;;
380 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
381 | --libexe | --libex | --libe)
382 ac_prev=libexecdir ;;
383 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
384 | --libexe=* | --libex=* | --libe=*)
385 libexecdir="$ac_optarg" ;;
387 -localstatedir | --localstatedir | --localstatedi | --localstated \
388 | --localstate | --localstat | --localsta | --localst \
389 | --locals | --local | --loca | --loc | --lo)
390 ac_prev=localstatedir ;;
391 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
392 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
393 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
394 localstatedir="$ac_optarg" ;;
396 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
398 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
399 mandir="$ac_optarg" ;;
402 # Obsolete; use --without-fp.
405 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
409 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
410 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
413 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
414 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
415 | --oldin | --oldi | --old | --ol | --o)
416 ac_prev=oldincludedir ;;
417 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
418 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
419 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
420 oldincludedir="$ac_optarg" ;;
422 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
424 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
425 prefix="$ac_optarg" ;;
427 -program-prefix | --program-prefix | --program-prefi | --program-pref \
428 | --program-pre | --program-pr | --program-p)
429 ac_prev=program_prefix ;;
430 -program-prefix=* | --program-prefix=* | --program-prefi=* \
431 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
432 program_prefix="$ac_optarg" ;;
434 -program-suffix | --program-suffix | --program-suffi | --program-suff \
435 | --program-suf | --program-su | --program-s)
436 ac_prev=program_suffix ;;
437 -program-suffix=* | --program-suffix=* | --program-suffi=* \
438 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
439 program_suffix="$ac_optarg" ;;
441 -program-transform-name | --program-transform-name \
442 | --program-transform-nam | --program-transform-na \
443 | --program-transform-n | --program-transform- \
444 | --program-transform | --program-transfor \
445 | --program-transfo | --program-transf \
446 | --program-trans | --program-tran \
447 | --progr-tra | --program-tr | --program-t)
448 ac_prev=program_transform_name ;;
449 -program-transform-name=* | --program-transform-name=* \
450 | --program-transform-nam=* | --program-transform-na=* \
451 | --program-transform-n=* | --program-transform-=* \
452 | --program-transform=* | --program-transfor=* \
453 | --program-transfo=* | --program-transf=* \
454 | --program-trans=* | --program-tran=* \
455 | --progr-tra=* | --program-tr=* | --program-t=*)
456 program_transform_name="$ac_optarg" ;;
458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
459 | -silent | --silent | --silen | --sile | --sil)
462 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
464 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
466 sbindir="$ac_optarg" ;;
468 -sharedstatedir | --sharedstatedir | --sharedstatedi \
469 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
470 | --sharedst | --shareds | --shared | --share | --shar \
472 ac_prev=sharedstatedir ;;
473 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
474 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
475 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
477 sharedstatedir="$ac_optarg" ;;
479 -site | --site | --sit)
481 -site=* | --site=* | --sit=*)
484 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
486 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
487 srcdir="$ac_optarg" ;;
489 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
490 | --syscon | --sysco | --sysc | --sys | --sy)
491 ac_prev=sysconfdir ;;
492 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
493 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
494 sysconfdir="$ac_optarg" ;;
496 -target | --target | --targe | --targ | --tar | --ta | --t)
498 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
499 target="$ac_optarg" ;;
501 -v | -verbose | --verbose | --verbos | --verbo | --verb)
504 -version | --version | --versio | --versi | --vers)
505 echo "configure generated by autoconf version 2.13"
509 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
510 # Reject names that are not valid shell variable names.
511 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
512 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
514 ac_package=`echo $ac_package| sed 's/-/_/g'`
519 eval "with_${ac_package}='$ac_optarg'" ;;
521 -without-* | --without-*)
522 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
523 # Reject names that are not valid shell variable names.
524 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
525 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
527 ac_package=`echo $ac_package| sed 's/-/_/g'`
528 eval "with_${ac_package}=no" ;;
531 # Obsolete; use --with-x.
534 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
535 | --x-incl | --x-inc | --x-in | --x-i)
536 ac_prev=x_includes ;;
537 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
538 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
539 x_includes="$ac_optarg" ;;
541 -x-libraries | --x-libraries | --x-librarie | --x-librari \
542 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
543 ac_prev=x_libraries ;;
544 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
545 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
546 x_libraries="$ac_optarg" ;;
548 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
552 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
553 echo "configure: warning: $ac_option: invalid host type" 1>&2
555 if test "x$nonopt" != xNONE; then
556 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
564 if test -n "$ac_prev"; then
565 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
568 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
570 # File descriptor usage:
573 # 2 errors and warnings
574 # 3 some systems may open it to /dev/tty
575 # 4 used on the Kubota Titan
576 # 6 checking for... messages and results
577 # 5 compiler messages saved in config.log
578 if test "$silent" = yes; then
586 This file contains any messages produced by compilers while
587 running configure, to aid debugging if configure makes a mistake.
590 # Strip out --no-create and --no-recursion so they do not pile up.
591 # Also quote any args containing shell metacharacters.
596 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
597 | --no-cr | --no-c) ;;
598 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
599 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
600 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
601 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
602 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
607 # Only set these to C if already set. These must not be set unconditionally
608 # because not all systems understand e.g. LANG=C (notably SCO).
609 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
610 # Non-C LC_CTYPE values break the ctype check.
611 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
612 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
613 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
614 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
616 # confdefs.h avoids OS command line length limits that DEFS can exceed.
617 rm -rf conftest* confdefs.h
618 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
621 # A filename unique to this package, relative to the directory that
622 # configure is in, which we can look for to find out if srcdir is correct.
623 ac_unique_file=shell.h
625 # Find the source files, if location was not specified.
626 if test -z "$srcdir"; then
627 ac_srcdir_defaulted=yes
628 # Try the directory containing this script, then its parent.
630 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
631 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
633 if test ! -r $srcdir/$ac_unique_file; then
637 ac_srcdir_defaulted=no
639 if test ! -r $srcdir/$ac_unique_file; then
640 if test "$ac_srcdir_defaulted" = yes; then
641 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
643 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
646 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
648 # Prefer explicitly selected file to automatically selected ones.
649 if test -z "$CONFIG_SITE"; then
650 if test "x$prefix" != xNONE; then
651 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
653 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
656 for ac_site_file in $CONFIG_SITE; do
657 if test -r "$ac_site_file"; then
658 echo "loading site script $ac_site_file"
663 if test -r "$cache_file"; then
664 echo "loading cache $cache_file"
667 echo "creating cache $cache_file"
672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
673 ac_cpp='$CPP $CPPFLAGS'
674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
676 cross_compiling=$ac_cv_prog_cc_cross
680 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
681 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
682 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
689 ac_n= ac_c='\c' ac_t=
698 for ac_dir in ./support $srcdir/./support; do
699 if test -f $ac_dir/install-sh; then
701 ac_install_sh="$ac_aux_dir/install-sh -c"
703 elif test -f $ac_dir/install.sh; then
705 ac_install_sh="$ac_aux_dir/install.sh -c"
709 if test -z "$ac_aux_dir"; then
710 { echo "configure: error: can not find install-sh or install.sh in ./support $srcdir/./support" 1>&2; exit 1; }
712 ac_config_guess=$ac_aux_dir/config.guess
713 ac_config_sub=$ac_aux_dir/config.sub
714 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
718 # Make sure we can run config.sub.
719 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
720 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
723 echo $ac_n "checking host system type""... $ac_c" 1>&6
724 echo "configure:725: checking host system type" >&5
727 case "$host_alias" in
731 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
732 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
734 *) host_alias=$nonopt ;;
738 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
739 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
740 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
741 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
742 echo "$ac_t""$host" 1>&6
751 opt_with_installed_readline=no
755 case "${host_cpu}-${host_os}" in
756 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
757 *Ccray*-*) opt_bash_malloc=no ;; # Crays
758 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
759 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
760 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
761 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
762 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
763 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
764 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better
765 *-aix*) opt_bash_malloc=no ;; # AIX machines
766 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
767 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody
768 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
769 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2
770 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
771 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
772 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
773 *-cygwin32*) opt_bash_malloc=no ;; # Cygnus's CYGWIN32 environment
776 # Check whether --with-afs or --without-afs was given.
777 if test "${with_afs+set}" = set; then
782 # Check whether --with-bash-malloc or --without-bash-malloc was given.
783 if test "${with_bash_malloc+set}" = set; then
784 withval="$with_bash_malloc"
785 opt_bash_malloc=$withval
788 # Check whether --with-curses or --without-curses was given.
789 if test "${with_curses+set}" = set; then
790 withval="$with_curses"
794 # Check whether --with-glibc-malloc or --without-glibc-malloc was given.
795 if test "${with_glibc_malloc+set}" = set; then
796 withval="$with_glibc_malloc"
797 opt_glibc_malloc=$withval
800 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
801 if test "${with_gnu_malloc+set}" = set; then
802 withval="$with_gnu_malloc"
803 opt_bash_malloc=$withval
806 # Check whether --with-installed-readline or --without-installed-readline was given.
807 if test "${with_installed_readline+set}" = set; then
808 withval="$with_installed_readline"
809 opt_with_installed_readline=$withval
812 # Check whether --with-purecov or --without-purecov was given.
813 if test "${with_purecov+set}" = set; then
814 withval="$with_purecov"
818 # Check whether --with-purify or --without-purify was given.
819 if test "${with_purify+set}" = set; then
820 withval="$with_purify"
825 if test "$opt_glibc_malloc" = yes; then
826 MALLOC_TARGET=gmalloc
828 elif test "$opt_bash_malloc" = yes; then
831 cat >> confdefs.h <<\EOF
832 #define USING_BASH_MALLOC 1
836 MALLOC_TARGET=stubmalloc
840 if test "$opt_purify" = yes; then
846 if test "$opt_purecov" = yes; then
847 PURIFY="${PURIFY}purecov"
850 if test "$opt_afs" = yes; then
851 cat >> confdefs.h <<\EOF
857 if test "$opt_curses" = yes; then
861 opt_minimal_config=no
870 opt_process_subst=yes
871 opt_prompt_decoding=yes
874 opt_array_variables=yes
876 opt_extended_glob=yes
877 opt_brace_expansion=yes
878 opt_disabled_builtins=no
879 opt_command_timing=yes
882 opt_arith_for_command=yes
889 # Check whether --enable-minimal-config or --disable-minimal-config was given.
890 if test "${enable_minimal_config+set}" = set; then
891 enableval="$enable_minimal_config"
892 opt_minimal_config=$enableval
896 if test $opt_minimal_config = yes; then
897 opt_job_control=no opt_alias=no opt_readline=no
898 opt_history=no opt_bang_history=no opt_dirstack=no
899 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
900 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
901 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
902 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
903 opt_net_redirs=no opt_progcomp=no
906 # Check whether --enable-alias or --disable-alias was given.
907 if test "${enable_alias+set}" = set; then
908 enableval="$enable_alias"
912 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
913 if test "${enable_arith_for_command+set}" = set; then
914 enableval="$enable_arith_for_command"
915 opt_arith_for_command=$enableval
918 # Check whether --enable-array-variables or --disable-array-variables was given.
919 if test "${enable_array_variables+set}" = set; then
920 enableval="$enable_array_variables"
921 opt_array_variables=$enableval
924 # Check whether --enable-bang-history or --disable-bang-history was given.
925 if test "${enable_bang_history+set}" = set; then
926 enableval="$enable_bang_history"
927 opt_bang_history=$enableval
930 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
931 if test "${enable_brace_expansion+set}" = set; then
932 enableval="$enable_brace_expansion"
933 opt_brace_expansion=$enableval
936 # Check whether --enable-command-timing or --disable-command-timing was given.
937 if test "${enable_command_timing+set}" = set; then
938 enableval="$enable_command_timing"
939 opt_command_timing=$enableval
942 # Check whether --enable-cond-command or --disable-cond-command was given.
943 if test "${enable_cond_command+set}" = set; then
944 enableval="$enable_cond_command"
945 opt_cond_command=$enableval
948 # Check whether --enable-directory-stack or --disable-directory-stack was given.
949 if test "${enable_directory_stack+set}" = set; then
950 enableval="$enable_directory_stack"
951 opt_dirstack=$enableval
954 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
955 if test "${enable_disabled_builtins+set}" = set; then
956 enableval="$enable_disabled_builtins"
957 opt_disabled_builtins=$enableval
960 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
961 if test "${enable_dparen_arithmetic+set}" = set; then
962 enableval="$enable_dparen_arithmetic"
963 opt_dparen_arith=$enableval
966 # Check whether --enable-extended-glob or --disable-extended-glob was given.
967 if test "${enable_extended_glob+set}" = set; then
968 enableval="$enable_extended_glob"
969 opt_extended_glob=$enableval
972 # Check whether --enable-help-builtin or --disable-help-builtin was given.
973 if test "${enable_help_builtin+set}" = set; then
974 enableval="$enable_help_builtin"
978 # Check whether --enable-history or --disable-history was given.
979 if test "${enable_history+set}" = set; then
980 enableval="$enable_history"
981 opt_history=$enableval
984 # Check whether --enable-job-control or --disable-job-control was given.
985 if test "${enable_job_control+set}" = set; then
986 enableval="$enable_job_control"
987 opt_job_control=$enableval
990 # Check whether --enable-net-redirections or --disable-net-redirections was given.
991 if test "${enable_net_redirections+set}" = set; then
992 enableval="$enable_net_redirections"
993 opt_net_redirs=$enableval
996 # Check whether --enable-process-substitution or --disable-process-substitution was given.
997 if test "${enable_process_substitution+set}" = set; then
998 enableval="$enable_process_substitution"
999 opt_process_subst=$enableval
1002 # Check whether --enable-progcomp or --disable-progcomp was given.
1003 if test "${enable_progcomp+set}" = set; then
1004 enableval="$enable_progcomp"
1005 opt_progcomp=$enableval
1008 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1009 if test "${enable_prompt_string_decoding+set}" = set; then
1010 enableval="$enable_prompt_string_decoding"
1011 opt_prompt_decoding=$enableval
1014 # Check whether --enable-readline or --disable-readline was given.
1015 if test "${enable_readline+set}" = set; then
1016 enableval="$enable_readline"
1017 opt_readline=$enableval
1020 # Check whether --enable-restricted or --disable-restricted was given.
1021 if test "${enable_restricted+set}" = set; then
1022 enableval="$enable_restricted"
1023 opt_restricted=$enableval
1026 # Check whether --enable-select or --disable-select was given.
1027 if test "${enable_select+set}" = set; then
1028 enableval="$enable_select"
1029 opt_select=$enableval
1032 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1033 if test "${enable_usg_echo_default+set}" = set; then
1034 enableval="$enable_usg_echo_default"
1035 opt_xpg_echo=$enableval
1038 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1039 if test "${enable_xpg_echo_default+set}" = set; then
1040 enableval="$enable_xpg_echo_default"
1041 opt_xpg_echo=$enableval
1045 # Check whether --enable-profiling or --disable-profiling was given.
1046 if test "${enable_profiling+set}" = set; then
1047 enableval="$enable_profiling"
1048 opt_profiling=$enableval
1051 # Check whether --enable-static-link or --disable-static-link was given.
1052 if test "${enable_static_link+set}" = set; then
1053 enableval="$enable_static_link"
1054 opt_static_link=$enableval
1060 if test $opt_alias = yes; then
1061 cat >> confdefs.h <<\EOF
1066 if test $opt_dirstack = yes; then
1067 cat >> confdefs.h <<\EOF
1068 #define PUSHD_AND_POPD 1
1072 if test $opt_restricted = yes; then
1073 cat >> confdefs.h <<\EOF
1074 #define RESTRICTED_SHELL 1
1078 if test $opt_process_subst = yes; then
1079 cat >> confdefs.h <<\EOF
1080 #define PROCESS_SUBSTITUTION 1
1084 if test $opt_prompt_decoding = yes; then
1085 cat >> confdefs.h <<\EOF
1086 #define PROMPT_STRING_DECODE 1
1090 if test $opt_select = yes; then
1091 cat >> confdefs.h <<\EOF
1092 #define SELECT_COMMAND 1
1096 if test $opt_help = yes; then
1097 cat >> confdefs.h <<\EOF
1098 #define HELP_BUILTIN 1
1102 if test $opt_array_variables = yes; then
1103 cat >> confdefs.h <<\EOF
1104 #define ARRAY_VARS 1
1108 if test $opt_dparen_arith = yes; then
1109 cat >> confdefs.h <<\EOF
1110 #define DPAREN_ARITHMETIC 1
1114 if test $opt_brace_expansion = yes; then
1115 cat >> confdefs.h <<\EOF
1116 #define BRACE_EXPANSION 1
1120 if test $opt_disabled_builtins = yes; then
1121 cat >> confdefs.h <<\EOF
1122 #define DISABLED_BUILTINS 1
1126 if test $opt_command_timing = yes; then
1127 cat >> confdefs.h <<\EOF
1128 #define COMMAND_TIMING 1
1132 if test $opt_xpg_echo = yes ; then
1133 cat >> confdefs.h <<\EOF
1134 #define DEFAULT_ECHO_TO_XPG 1
1138 if test $opt_extended_glob = yes ; then
1139 cat >> confdefs.h <<\EOF
1140 #define EXTENDED_GLOB 1
1144 if test $opt_cond_command = yes ; then
1145 cat >> confdefs.h <<\EOF
1146 #define COND_COMMAND 1
1150 if test $opt_arith_for_command = yes; then
1151 cat >> confdefs.h <<\EOF
1152 #define ARITH_FOR_COMMAND 1
1156 if test $opt_net_redirs = yes; then
1157 cat >> confdefs.h <<\EOF
1158 #define NETWORK_REDIRECTIONS 1
1162 if test $opt_progcomp = yes; then
1163 cat >> confdefs.h <<\EOF
1164 #define PROGRAMMABLE_COMPLETION 1
1169 if test "$opt_minimal_config" = yes; then
1170 TESTSCRIPT=run-minimal
1185 echo "Beginning configuration for bash-$BASHVERS for ${host_cpu}-${host_vendor}-${host_os}"
1187 # Extract the first word of "gcc", so it can be a program name with args.
1188 set dummy gcc; ac_word=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 if test -n "$CC"; then
1195 ac_cv_prog_CC="$CC" # Let the user override the test.
1197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1199 for ac_dir in $ac_dummy; do
1200 test -z "$ac_dir" && ac_dir=.
1201 if test -f $ac_dir/$ac_word; then
1210 if test -n "$CC"; then
1211 echo "$ac_t""$CC" 1>&6
1213 echo "$ac_t""no" 1>&6
1216 if test -z "$CC"; then
1217 # Extract the first word of "cc", so it can be a program name with args.
1218 set dummy cc; ac_word=$2
1219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1220 echo "configure:1221: checking for $ac_word" >&5
1221 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 if test -n "$CC"; then
1225 ac_cv_prog_CC="$CC" # Let the user override the test.
1227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1230 for ac_dir in $ac_dummy; do
1231 test -z "$ac_dir" && ac_dir=.
1232 if test -f $ac_dir/$ac_word; then
1233 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1234 ac_prog_rejected=yes
1242 if test $ac_prog_rejected = yes; then
1243 # We found a bogon in the path, so make sure we never use it.
1244 set dummy $ac_cv_prog_CC
1246 if test $# -gt 0; then
1247 # We chose a different compiler from the bogus one.
1248 # However, it has the same basename, so the bogon will be chosen
1249 # first if we set CC to just the basename; use the full file name.
1251 set dummy "$ac_dir/$ac_word" "$@"
1259 if test -n "$CC"; then
1260 echo "$ac_t""$CC" 1>&6
1262 echo "$ac_t""no" 1>&6
1265 if test -z "$CC"; then
1266 case "`uname -s`" in
1268 # Extract the first word of "cl", so it can be a program name with args.
1269 set dummy cl; ac_word=$2
1270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1271 echo "configure:1272: checking for $ac_word" >&5
1272 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1275 if test -n "$CC"; then
1276 ac_cv_prog_CC="$CC" # Let the user override the test.
1278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1280 for ac_dir in $ac_dummy; do
1281 test -z "$ac_dir" && ac_dir=.
1282 if test -f $ac_dir/$ac_word; then
1291 if test -n "$CC"; then
1292 echo "$ac_t""$CC" 1>&6
1294 echo "$ac_t""no" 1>&6
1299 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1302 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1303 echo "configure:1304: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1310 cross_compiling=$ac_cv_prog_cc_cross
1312 cat > conftest.$ac_ext << EOF
1314 #line 1315 "configure"
1315 #include "confdefs.h"
1319 if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1320 ac_cv_prog_cc_works=yes
1321 # If we can't run a trivial program, we are probably using a cross compiler.
1322 if (./conftest; exit) 2>/dev/null; then
1323 ac_cv_prog_cc_cross=no
1325 ac_cv_prog_cc_cross=yes
1328 echo "configure: failed program was:" >&5
1329 cat conftest.$ac_ext >&5
1330 ac_cv_prog_cc_works=no
1334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1335 ac_cpp='$CPP $CPPFLAGS'
1336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1338 cross_compiling=$ac_cv_prog_cc_cross
1340 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1341 if test $ac_cv_prog_cc_works = no; then
1342 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1344 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1345 echo "configure:1346: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1346 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1347 cross_compiling=$ac_cv_prog_cc_cross
1349 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1350 echo "configure:1351: checking whether we are using GNU C" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 cat > conftest.c <<EOF
1359 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1366 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1368 if test $ac_cv_prog_gcc = yes; then
1374 ac_test_CFLAGS="${CFLAGS+set}"
1375 ac_save_CFLAGS="$CFLAGS"
1377 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1378 echo "configure:1379: checking whether ${CC-cc} accepts -g" >&5
1379 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1382 echo 'void f(){}' > conftest.c
1383 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1392 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1393 if test "$ac_test_CFLAGS" = set; then
1394 CFLAGS="$ac_save_CFLAGS"
1395 elif test $ac_cv_prog_cc_g = yes; then
1396 if test "$GCC" = yes; then
1402 if test "$GCC" = yes; then
1409 echo $ac_n "checking whether large file support needs explicit enabling""... $ac_c" 1>&6
1410 echo "configure:1411: checking whether large file support needs explicit enabling" >&5
1414 ac_shellvars='CPPFLAGS LDFLAGS LIBS'
1415 for ac_shellvar in $ac_shellvars; do
1416 case $ac_shellvar in
1417 CPPFLAGS) ac_lfsvar=LFS_CFLAGS ac_lfs64var=LFS64_CFLAGS ;;
1418 *) ac_lfsvar=LFS_$ac_shellvar ac_lfs64var=LFS64_$ac_shellvar ;;
1420 eval test '"${'$ac_shellvar'+set}"' = set && ac_set=$ac_shellvar
1421 (getconf $ac_lfsvar) >/dev/null 2>&1 || { ac_result=no; break; }
1422 ac_getconf=`getconf $ac_lfsvar`
1423 ac_getconf64=`getconf $ac_lfs64var`
1424 ac_getconfs=$ac_getconfs$ac_getconf\ $ac_getconf64
1425 eval ac_test_$ac_shellvar="\$ac_getconf\ \$ac_getconf64"
1427 case "$ac_result$ac_getconfs" in
1428 yes) ac_result=no ;;
1430 case "$ac_result$ac_set" in
1431 yes?*) ac_result="yes, but $ac_set is already set, so use its settings"
1433 echo "$ac_t""$ac_result" 1>&6
1436 for ac_shellvar in $ac_shellvars; do
1437 eval $ac_shellvar=\$ac_test_$ac_shellvar
1442 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1443 echo "configure:1444: checking for POSIXized ISC" >&5
1444 if test -d /etc/conf/kconfig.d &&
1445 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1447 echo "$ac_t""yes" 1>&6
1448 ISC=yes # If later tests want to check for ISC.
1449 cat >> confdefs.h <<\EOF
1450 #define _POSIX_SOURCE 1
1453 if test "$GCC" = yes; then
1459 echo "$ac_t""no" 1>&6
1463 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1464 echo "configure:1465: checking how to run the C preprocessor" >&5
1465 # On Suns, sometimes $CPP names a directory.
1466 if test -n "$CPP" && test -d "$CPP"; then
1469 if test -z "$CPP"; then
1470 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 # This must be in double quotes, not single quotes, because CPP may get
1474 # substituted into the Makefile and "${CC-cc}" will confuse make.
1476 # On the NeXT, cc -E runs the code through the compiler's parser,
1477 # not just through cpp.
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1485 { (eval echo configure:1486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1487 if test -z "$ac_err"; then
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1494 CPP="${CC-cc} -E -traditional-cpp"
1495 cat > conftest.$ac_ext <<EOF
1496 #line 1497 "configure"
1497 #include "confdefs.h"
1501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1502 { (eval echo configure:1503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1504 if test -z "$ac_err"; then
1508 echo "configure: failed program was:" >&5
1509 cat conftest.$ac_ext >&5
1511 CPP="${CC-cc} -nologo -E"
1512 cat > conftest.$ac_ext <<EOF
1513 #line 1514 "configure"
1514 #include "confdefs.h"
1518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1519 { (eval echo configure:1520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1521 if test -z "$ac_err"; then
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1535 ac_cv_prog_CPP="$CPP"
1537 CPP="$ac_cv_prog_CPP"
1539 ac_cv_prog_CPP="$CPP"
1541 echo "$ac_t""$CPP" 1>&6
1543 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1544 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1545 echo "configure:1546: checking for minix/config.h" >&5
1546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 #include <minix/config.h>
1554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1555 { (eval echo configure:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1557 if test -z "$ac_err"; then
1559 eval "ac_cv_header_$ac_safe=yes"
1562 echo "configure: failed program was:" >&5
1563 cat conftest.$ac_ext >&5
1565 eval "ac_cv_header_$ac_safe=no"
1569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1570 echo "$ac_t""yes" 1>&6
1573 echo "$ac_t""no" 1>&6
1577 if test "$MINIX" = yes; then
1578 cat >> confdefs.h <<\EOF
1579 #define _POSIX_SOURCE 1
1582 cat >> confdefs.h <<\EOF
1583 #define _POSIX_1_SOURCE 2
1586 cat >> confdefs.h <<\EOF
1593 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1594 echo "configure:1595: checking for Cygwin environment" >&5
1595 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1598 cat > conftest.$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1605 #define __CYGWIN__ __CYGWIN32__
1610 if { (eval echo configure:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1614 echo "configure: failed program was:" >&5
1615 cat conftest.$ac_ext >&5
1623 echo "$ac_t""$ac_cv_cygwin" 1>&6
1625 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1626 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1627 echo "configure:1628: checking for mingw32 environment" >&5
1628 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1639 if { (eval echo configure:1640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1643 echo "configure: failed program was:" >&5
1644 cat conftest.$ac_ext >&5
1652 echo "$ac_t""$ac_cv_mingw32" 1>&6
1654 test "$ac_cv_mingw32" = yes && MINGW32=yes
1657 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1658 echo "configure:1659: checking for executable suffix" >&5
1659 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1666 echo 'int main () { return 0; }' > conftest.$ac_ext
1668 if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1669 for file in conftest.*; do
1671 *.c | *.o | *.obj) ;;
1672 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1676 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1679 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1684 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1685 echo "$ac_t""${ac_cv_exeext}" 1>&6
1690 SIGNAMES_H=lsignames.h
1694 if test "x$cross_compiling" = "xyes"; then
1697 cross_cache=${srcdir}/cross-build/cygwin32.cache
1698 SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
1701 cross_cache=${srcdir}/cross-build/x86-beos.cache
1702 SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
1704 *) echo "configure: cross-compiling for $host is not supported" >&2
1707 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
1708 echo "loading cross-build cache file ${cross_cache}"
1715 if test -z "$CC_FOR_BUILD"; then
1716 if test "x$cross_compiling" = "xno"; then
1717 CC_FOR_BUILD='$(CC)'
1725 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
1727 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
1729 if test "$opt_profiling" = "yes"; then
1733 *) opt_static_link=yes ;;
1737 if test "$opt_static_link" = yes; then
1738 # if we're using gcc, add `-static' to LDFLAGS
1739 if test -n "$GCC" || test "$ac_cv_prog_gcc" = "yes"; then
1749 if test $ac_cv_prog_gcc = yes; then
1750 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1751 echo "configure:1752: checking whether ${CC-cc} needs -traditional" >&5
1752 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 ac_pattern="Autoconf.*'x'"
1756 cat > conftest.$ac_ext <<EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1763 egrep "$ac_pattern" >/dev/null 2>&1; then
1765 ac_cv_prog_gcc_traditional=yes
1768 ac_cv_prog_gcc_traditional=no
1773 if test $ac_cv_prog_gcc_traditional = no; then
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1781 egrep "$ac_pattern" >/dev/null 2>&1; then
1783 ac_cv_prog_gcc_traditional=yes
1790 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1791 if test $ac_cv_prog_gcc_traditional = yes; then
1792 CC="$CC -traditional"
1798 if test "$opt_readline" = yes && test "$opt_with_installed_readline" = "yes"
1802 if test -z "$TERMCAP_LIB" ; then
1804 if test "X$bash_cv_termcap_lib" = "X"; then
1807 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
1808 echo "configure:1809: checking which library has the termcap functions" >&5
1811 if eval "test \"`echo '$''{'bash_cv_termcap_lib'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
1815 echo "configure:1816: checking for tgetent in -ltermcap" >&5
1816 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
1817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 ac_save_LIBS="$LIBS"
1821 LIBS="-ltermcap $LIBS"
1822 cat > conftest.$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1825 /* Override any gcc2 internal prototype to avoid an error. */
1826 /* We use char because int might match the return type of a gcc2
1827 builtin and then its argument prototype would still apply. */
1834 if { (eval echo configure:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1836 eval "ac_cv_lib_$ac_lib_var=yes"
1838 echo "configure: failed program was:" >&5
1839 cat conftest.$ac_ext >&5
1841 eval "ac_cv_lib_$ac_lib_var=no"
1844 LIBS="$ac_save_LIBS"
1847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1848 echo "$ac_t""yes" 1>&6
1849 bash_cv_termcap_lib=libtermcap
1851 echo "$ac_t""no" 1>&6
1852 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
1853 echo "configure:1854: checking for tgetent in -lcurses" >&5
1854 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
1855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 ac_save_LIBS="$LIBS"
1859 LIBS="-lcurses $LIBS"
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1863 /* Override any gcc2 internal prototype to avoid an error. */
1864 /* We use char because int might match the return type of a gcc2
1865 builtin and then its argument prototype would still apply. */
1872 if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1874 eval "ac_cv_lib_$ac_lib_var=yes"
1876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1879 eval "ac_cv_lib_$ac_lib_var=no"
1882 LIBS="$ac_save_LIBS"
1885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1886 echo "$ac_t""yes" 1>&6
1887 bash_cv_termcap_lib=libcurses
1889 echo "$ac_t""no" 1>&6
1890 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
1891 echo "configure:1892: checking for tgetent in -lncurses" >&5
1892 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
1893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1896 ac_save_LIBS="$LIBS"
1897 LIBS="-lncurses $LIBS"
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 /* Override any gcc2 internal prototype to avoid an error. */
1902 /* We use char because int might match the return type of a gcc2
1903 builtin and then its argument prototype would still apply. */
1910 if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1912 eval "ac_cv_lib_$ac_lib_var=yes"
1914 echo "configure: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1917 eval "ac_cv_lib_$ac_lib_var=no"
1920 LIBS="$ac_save_LIBS"
1923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1924 echo "$ac_t""yes" 1>&6
1925 bash_cv_termcap_lib=libncurses
1927 echo "$ac_t""no" 1>&6
1928 bash_cv_termcap_lib=gnutermcap
1937 if test "X$_bash_needmsg" = "Xyes"; then
1938 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
1939 echo "configure:1940: checking which library has the termcap functions" >&5
1941 echo "$ac_t""using $bash_cv_termcap_lib" 1>&6
1942 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
1943 LDFLAGS="$LDFLAGS -L./lib/termcap"
1944 TERMCAP_LIB="./lib/termcap/libtermcap.a"
1945 TERMCAP_DEP="./lib/termcap/libtermcap.a"
1946 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
1947 TERMCAP_LIB=-ltermcap
1949 elif test $bash_cv_termcap_lib = libncurses; then
1950 TERMCAP_LIB=-lncurses
1953 TERMCAP_LIB=-lcurses
1959 test "x$prefix" = xNONE && _rl_prefix=$ac_default_prefix || _rl_prefix=${prefix}
1960 test "x$exec_prefix" = xNONE && _rl_exec_prefix=${_rl_prefix} || _rl_exec_prefix=${exec_prefix}
1962 echo $ac_n "checking version of installed readline library""... $ac_c" 1>&6
1963 echo "configure:1964: checking version of installed readline library" >&5
1964 _rl_version=`exec_prefix=${_rl_exec_prefix} ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/rlvers.sh -C "${CC}" -L ${libdir} -T ${TERMCAP_LIB}`
1965 echo "$ac_t""$_rl_version" 1>&6
1967 case "$_rl_version" in
1968 4.[1-9]*|5*|6*|7*|8*|9*) ;;
1969 *) opt_with_installed_readline=no
1970 echo "configure: warning: installed readline library is too old to be linked with bash" 1>&2
1971 echo "configure: warning: using private bash version" 1>&2
1974 unset _rl_version _rl_prefix _rl_exec_prefix
1977 if test $opt_readline = yes; then
1978 cat >> confdefs.h <<\EOF
1982 READLINE_LIB=-lreadline
1983 if test "$opt_with_installed_readline" = "yes" ; then
1984 RL_LIBDIR='$(libdir)'
1986 RL_INCLUDE='-I$(includedir)'
1988 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
1989 READLINE_DEP='$(READLINE_LIBRARY)'
1992 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
1993 READLINE_LIB= READLINE_DEP=
1995 if test $opt_history = yes || test $opt_bang_history = yes; then
1996 if test $opt_history = yes; then
1997 cat >> confdefs.h <<\EOF
2002 if test $opt_bang_history = yes; then
2003 cat >> confdefs.h <<\EOF
2004 #define BANG_HISTORY 1
2008 HISTORY_LIB=-lhistory
2009 if test "$opt_with_installed_readline" = "yes"; then
2010 HIST_LIBDIR='$(libdir)'
2012 RL_INCLUDE='-I$(includedir)'
2014 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
2015 HISTORY_DEP='$(HISTORY_LIBRARY)'
2018 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
2019 HISTORY_LIB= HISTORY_DEP=
2030 # Find a good install program. We prefer a C program (faster),
2031 # so one script is as good as another. But avoid the broken or
2032 # incompatible versions:
2033 # SysV /etc/install, /usr/sbin/install
2034 # SunOS /usr/etc/install
2035 # IRIX /sbin/install
2037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2040 # ./install, which can be erroneously created by make from ./install.sh.
2041 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2042 echo "configure:2043: checking for a BSD compatible install" >&5
2043 if test -z "$INSTALL"; then
2044 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2048 for ac_dir in $PATH; do
2049 # Account for people who put trailing slashes in PATH elements.
2051 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2053 # OSF1 and SCO ODT 3.0 have their own names for install.
2054 # Don't use installbsd from OSF since it installs stuff as root
2056 for ac_prog in ginstall scoinst install; do
2057 if test -f $ac_dir/$ac_prog; then
2058 if test $ac_prog = install &&
2059 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2060 # AIX install. It has an incompatible calling convention.
2063 ac_cv_path_install="$ac_dir/$ac_prog -c"
2074 if test "${ac_cv_path_install+set}" = set; then
2075 INSTALL="$ac_cv_path_install"
2077 # As a last resort, use the slow shell script. We don't cache a
2078 # path for INSTALL within a source directory, because that will
2079 # break other packages using the cache if that directory is
2080 # removed, or if the path is relative.
2081 INSTALL="$ac_install_sh"
2084 echo "$ac_t""$INSTALL" 1>&6
2086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2087 # It thinks the first close brace ends the variable substitution.
2088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2094 # Extract the first word of "ar", so it can be a program name with args.
2095 set dummy ar; ac_word=$2
2096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_word" >&5
2098 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 if test -n "$AR"; then
2102 ac_cv_prog_AR="$AR" # Let the user override the test.
2104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2106 for ac_dir in $ac_dummy; do
2107 test -z "$ac_dir" && ac_dir=.
2108 if test -f $ac_dir/$ac_word; then
2117 if test -n "$AR"; then
2118 echo "$ac_t""$AR" 1>&6
2120 echo "$ac_t""no" 1>&6
2123 test -n "$ARFLAGS" || ARFLAGS="cr"
2124 # Extract the first word of "ranlib", so it can be a program name with args.
2125 set dummy ranlib; ac_word=$2
2126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2127 echo "configure:2128: checking for $ac_word" >&5
2128 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 if test -n "$RANLIB"; then
2132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2136 for ac_dir in $ac_dummy; do
2137 test -z "$ac_dir" && ac_dir=.
2138 if test -f $ac_dir/$ac_word; then
2139 ac_cv_prog_RANLIB="ranlib"
2144 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2147 RANLIB="$ac_cv_prog_RANLIB"
2148 if test -n "$RANLIB"; then
2149 echo "$ac_t""$RANLIB" 1>&6
2151 echo "$ac_t""no" 1>&6
2154 for ac_prog in 'bison -y' byacc
2156 # Extract the first word of "$ac_prog", so it can be a program name with args.
2157 set dummy $ac_prog; ac_word=$2
2158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2159 echo "configure:2160: checking for $ac_word" >&5
2160 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 if test -n "$YACC"; then
2164 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2168 for ac_dir in $ac_dummy; do
2169 test -z "$ac_dir" && ac_dir=.
2170 if test -f $ac_dir/$ac_word; then
2171 ac_cv_prog_YACC="$ac_prog"
2178 YACC="$ac_cv_prog_YACC"
2179 if test -n "$YACC"; then
2180 echo "$ac_t""$YACC" 1>&6
2182 echo "$ac_t""no" 1>&6
2185 test -n "$YACC" && break
2187 test -n "$YACC" || YACC="yacc"
2189 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2190 echo "configure:2191: checking whether ${MAKE-make} sets \${MAKE}" >&5
2191 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2192 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 cat > conftestmake <<\EOF
2197 @echo 'ac_maketemp="${MAKE}"'
2199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2200 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2201 if test -n "$ac_maketemp"; then
2202 eval ac_cv_prog_make_${ac_make}_set=yes
2204 eval ac_cv_prog_make_${ac_make}_set=no
2208 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2209 echo "$ac_t""yes" 1>&6
2212 echo "$ac_t""no" 1>&6
2213 SET_MAKE="MAKE=${MAKE-make}"
2218 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
2219 *) MAKE_SHELL=/bin/sh ;;
2223 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2224 # for constant arguments. Useless!
2225 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2226 echo "configure:2227: checking for working alloca.h" >&5
2227 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2235 char *p = alloca(2 * sizeof(int));
2238 if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2240 ac_cv_header_alloca_h=yes
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2245 ac_cv_header_alloca_h=no
2250 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2251 if test $ac_cv_header_alloca_h = yes; then
2252 cat >> confdefs.h <<\EOF
2253 #define HAVE_ALLOCA_H 1
2258 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2259 echo "configure:2260: checking for alloca" >&5
2260 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2268 # define alloca __builtin_alloca
2271 # include <malloc.h>
2272 # define alloca _alloca
2275 # include <alloca.h>
2280 # ifndef alloca /* predefined by HP cc +Olibcalls */
2289 char *p = (char *) alloca(1);
2292 if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2294 ac_cv_func_alloca_works=yes
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2299 ac_cv_func_alloca_works=no
2304 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2305 if test $ac_cv_func_alloca_works = yes; then
2306 cat >> confdefs.h <<\EOF
2307 #define HAVE_ALLOCA 1
2312 if test $ac_cv_func_alloca_works = no; then
2313 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2314 # that cause trouble. Some versions do not even contain alloca or
2315 # contain a buggy version. If you still want to use their alloca,
2316 # use ar to extract alloca.o from them instead of compiling alloca.c.
2317 ALLOCA=alloca.${ac_objext}
2318 cat >> confdefs.h <<\EOF
2323 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2324 echo "configure:2325: checking whether alloca needs Cray hooks" >&5
2325 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 #if defined(CRAY) && ! defined(CRAY2)
2338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2339 egrep "webecray" >/dev/null 2>&1; then
2350 echo "$ac_t""$ac_cv_os_cray" 1>&6
2351 if test $ac_cv_os_cray = yes; then
2352 for ac_func in _getb67 GETB67 getb67; do
2353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2354 echo "configure:2355: checking for $ac_func" >&5
2355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2361 /* System header to define __stub macros and hopefully few prototypes,
2362 which can conflict with char $ac_func(); below. */
2364 /* Override any gcc2 internal prototype to avoid an error. */
2365 /* We use char because int might match the return type of a gcc2
2366 builtin and then its argument prototype would still apply. */
2371 /* The GNU C library defines this for functions which it implements
2372 to always fail with ENOSYS. Some functions are actually named
2373 something starting with __ and the normal name is an alias. */
2374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2382 if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2384 eval "ac_cv_func_$ac_func=yes"
2386 echo "configure: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2389 eval "ac_cv_func_$ac_func=no"
2394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 cat >> confdefs.h <<EOF
2397 #define CRAY_STACKSEG_END $ac_func
2402 echo "$ac_t""no" 1>&6
2408 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2409 echo "configure:2410: checking stack direction for C alloca" >&5
2410 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 if test "$cross_compiling" = yes; then
2414 ac_cv_c_stack_direction=0
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 find_stack_direction ()
2421 static char *addr = 0;
2426 return find_stack_direction ();
2429 return (&dummy > addr) ? 1 : -1;
2433 exit (find_stack_direction() < 0);
2436 if { (eval echo configure:2437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2438 ac_cv_c_stack_direction=1
2440 echo "configure: failed program was:" >&5
2441 cat conftest.$ac_ext >&5
2443 ac_cv_c_stack_direction=-1
2450 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2451 cat >> confdefs.h <<EOF
2452 #define STACK_DIRECTION $ac_cv_c_stack_direction
2457 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
2458 echo "configure:2459: checking whether getpgrp takes no argument" >&5
2459 if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 if test "$cross_compiling" = yes; then
2463 { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2470 * If this system has a BSD-style getpgrp(),
2471 * which takes a pid argument, exit unsuccessfully.
2473 * Snarfed from Chet Ramey's bash pgrp.c test program
2476 #include <sys/types.h>
2479 int pg1, pg2, pg3, pg4;
2480 int ng, np, s, child;
2491 * If all of these values are the same, it's pretty sure that
2492 * we're on a system that ignores getpgrp's first argument.
2494 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
2500 else if (child == 0) {
2503 * If this is Sys V, this will not work; pgrp will be
2504 * set to np because setpgrp just changes a pgrp to be
2505 * the same as the pid.
2508 ng = getpgrp(0); /* Same result for Sys V and BSD */
2521 if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2523 ac_cv_func_getpgrp_void=yes
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 ac_cv_func_getpgrp_void=no
2536 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
2537 if test $ac_cv_func_getpgrp_void = yes; then
2538 cat >> confdefs.h <<\EOF
2539 #define GETPGRP_VOID 1
2544 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2545 echo "configure:2546: checking whether setvbuf arguments are reversed" >&5
2546 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2549 if test "$cross_compiling" = yes; then
2550 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2556 /* If setvbuf has the reversed format, exit 0. */
2558 /* This call has the arguments reversed.
2559 A reversed system may check and see that the address of main
2560 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
2561 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2564 exit(0); /* Non-reversed systems segv here. */
2567 if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2569 ac_cv_func_setvbuf_reversed=yes
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 ac_cv_func_setvbuf_reversed=no
2579 rm -f core core.* *.core
2582 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2583 if test $ac_cv_func_setvbuf_reversed = yes; then
2584 cat >> confdefs.h <<\EOF
2585 #define SETVBUF_REVERSED 1
2590 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2591 echo "configure:2592: checking for vprintf" >&5
2592 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 /* System header to define __stub macros and hopefully few prototypes,
2599 which can conflict with char vprintf(); below. */
2601 /* Override any gcc2 internal prototype to avoid an error. */
2602 /* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2621 eval "ac_cv_func_vprintf=yes"
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2626 eval "ac_cv_func_vprintf=no"
2631 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2633 cat >> confdefs.h <<\EOF
2634 #define HAVE_VPRINTF 1
2638 echo "$ac_t""no" 1>&6
2641 if test "$ac_cv_func_vprintf" != yes; then
2642 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2643 echo "configure:2644: checking for _doprnt" >&5
2644 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 /* System header to define __stub macros and hopefully few prototypes,
2651 which can conflict with char _doprnt(); below. */
2653 /* Override any gcc2 internal prototype to avoid an error. */
2654 /* We use char because int might match the return type of a gcc2
2655 builtin and then its argument prototype would still apply. */
2660 /* The GNU C library defines this for functions which it implements
2661 to always fail with ENOSYS. Some functions are actually named
2662 something starting with __ and the normal name is an alias. */
2663 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2671 if { (eval echo configure:2672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2673 eval "ac_cv_func__doprnt=yes"
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2678 eval "ac_cv_func__doprnt=no"
2683 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2684 echo "$ac_t""yes" 1>&6
2685 cat >> confdefs.h <<\EOF
2686 #define HAVE_DOPRNT 1
2690 echo "$ac_t""no" 1>&6
2695 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
2696 echo "configure:2697: checking for wait3 that fills in rusage" >&5
2697 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 if test "$cross_compiling" = yes; then
2701 ac_cv_func_wait3_rusage=no
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2706 #include <sys/types.h>
2707 #include <sys/time.h>
2708 #include <sys/resource.h>
2710 /* HP-UX has wait3 but does not fill in rusage at all. */
2714 /* Use a field that we can force nonzero --
2715 voluntary context switches.
2716 For systems like NeXT and OSF/1 that don't set it,
2717 also use the system CPU time. And page faults (I/O) for Linux. */
2719 r.ru_stime.tv_sec = 0;
2720 r.ru_stime.tv_usec = 0;
2721 r.ru_majflt = r.ru_minflt = 0;
2723 case 0: /* Child. */
2724 sleep(1); /* Give up the CPU. */
2726 case -1: _exit(0); /* What can we do? */
2727 default: /* Parent. */
2729 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
2730 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
2731 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
2735 if { (eval echo configure:2736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2737 ac_cv_func_wait3_rusage=yes
2739 echo "configure: failed program was:" >&5
2740 cat conftest.$ac_ext >&5
2742 ac_cv_func_wait3_rusage=no
2749 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
2750 if test $ac_cv_func_wait3_rusage = yes; then
2751 cat >> confdefs.h <<\EOF
2752 #define HAVE_WAIT3 1
2757 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
2758 echo "configure:2759: checking for working strcoll" >&5
2759 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 if test "$cross_compiling" = yes; then
2763 ac_cv_func_strcoll_works=no
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2771 exit (strcoll ("abc", "def") >= 0 ||
2772 strcoll ("ABC", "DEF") >= 0 ||
2773 strcoll ("123", "456") >= 0);
2776 if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2778 ac_cv_func_strcoll_works=yes
2780 echo "configure: failed program was:" >&5
2781 cat conftest.$ac_ext >&5
2783 ac_cv_func_strcoll_works=no
2790 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
2791 if test $ac_cv_func_strcoll_works = yes; then
2792 cat >> confdefs.h <<\EOF
2793 #define HAVE_STRCOLL 1
2799 if test "$ac_cv_func_vprintf" = no; then
2800 echo $ac_n "checking for declaration of vprintf in stdio.h""... $ac_c" 1>&6
2801 echo "configure:2802: checking for declaration of vprintf in stdio.h" >&5
2802 cat > conftest.$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2808 egrep "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
2810 ac_cv_func_vprintf=yes
2814 echo "$ac_t""$ac_cv_func_vprintf" 1>&6
2815 if test $ac_cv_func_vprintf = yes; then
2816 cat >> confdefs.h <<\EOF
2817 #define HAVE_VPRINTF 1
2823 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2824 echo "configure:2825: checking return type of signal handlers" >&5
2825 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 #include <sys/types.h>
2837 extern "C" void (*signal (int, void (*)(int)))(int);
2839 void (*signal ()) ();
2846 if { (eval echo configure:2847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2848 ac_cv_type_signal=void
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2853 ac_cv_type_signal=int
2858 echo "$ac_t""$ac_cv_type_signal" 1>&6
2859 cat >> confdefs.h <<EOF
2860 #define RETSIGTYPE $ac_cv_type_signal
2865 echo $ac_n "checking for __setostype""... $ac_c" 1>&6
2866 echo "configure:2867: checking for __setostype" >&5
2867 if eval "test \"`echo '$''{'ac_cv_func___setostype'+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 __setostype(); 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___setostype) || defined (__stub_____setostype)
2894 if { (eval echo configure:2895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2896 eval "ac_cv_func___setostype=yes"
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2901 eval "ac_cv_func___setostype=no"
2906 if eval "test \"`echo '$ac_cv_func_'__setostype`\" = yes"; then
2907 echo "$ac_t""yes" 1>&6
2908 cat >> confdefs.h <<\EOF
2909 #define HAVE_SETOSTYPE 1
2913 echo "$ac_t""no" 1>&6
2916 echo $ac_n "checking for wait3""... $ac_c" 1>&6
2917 echo "configure:2918: checking for wait3" >&5
2918 if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2921 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2924 /* System header to define __stub macros and hopefully few prototypes,
2925 which can conflict with char wait3(); below. */
2927 /* Override any gcc2 internal prototype to avoid an error. */
2928 /* We use char because int might match the return type of a gcc2
2929 builtin and then its argument prototype would still apply. */
2934 /* The GNU C library defines this for functions which it implements
2935 to always fail with ENOSYS. Some functions are actually named
2936 something starting with __ and the normal name is an alias. */
2937 #if defined (__stub_wait3) || defined (__stub___wait3)
2945 if { (eval echo configure:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2947 eval "ac_cv_func_wait3=yes"
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2952 eval "ac_cv_func_wait3=no"
2957 if eval "test \"`echo '$ac_cv_func_'wait3`\" = yes"; then
2958 echo "$ac_t""yes" 1>&6
2959 cat >> confdefs.h <<\EOF
2960 #define HAVE_WAIT3 1
2964 echo "$ac_t""no" 1>&6
2968 echo $ac_n "checking for mkfifo""... $ac_c" 1>&6
2969 echo "configure:2970: checking for mkfifo" >&5
2970 if eval "test \"`echo '$''{'ac_cv_func_mkfifo'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 cat > conftest.$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2976 /* System header to define __stub macros and hopefully few prototypes,
2977 which can conflict with char mkfifo(); below. */
2979 /* Override any gcc2 internal prototype to avoid an error. */
2980 /* We use char because int might match the return type of a gcc2
2981 builtin and then its argument prototype would still apply. */
2986 /* The GNU C library defines this for functions which it implements
2987 to always fail with ENOSYS. Some functions are actually named
2988 something starting with __ and the normal name is an alias. */
2989 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2999 eval "ac_cv_func_mkfifo=yes"
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3004 eval "ac_cv_func_mkfifo=no"
3009 if eval "test \"`echo '$ac_cv_func_'mkfifo`\" = yes"; then
3010 echo "$ac_t""yes" 1>&6
3011 cat >> confdefs.h <<\EOF
3012 #define HAVE_MKFIFO 1
3016 echo "$ac_t""no" 1>&6
3017 cat >> confdefs.h <<\EOF
3018 #define MKFIFO_MISSING 1
3024 for ac_func in dup2 select getdtablesize getgroups gethostname \
3025 setdtablesize getpagesize killpg lstat getpeername sbrk \
3026 getrlimit getrusage gettimeofday waitpid tcgetpgrp rename
3028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3029 echo "configure:3030: checking for $ac_func" >&5
3030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 cat > conftest.$ac_ext <<EOF
3034 #line 3035 "configure"
3035 #include "confdefs.h"
3036 /* System header to define __stub macros and hopefully few prototypes,
3037 which can conflict with char $ac_func(); below. */
3039 /* Override any gcc2 internal prototype to avoid an error. */
3040 /* We use char because int might match the return type of a gcc2
3041 builtin and then its argument prototype would still apply. */
3046 /* The GNU C library defines this for functions which it implements
3047 to always fail with ENOSYS. Some functions are actually named
3048 something starting with __ and the normal name is an alias. */
3049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3057 if { (eval echo configure:3058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3059 eval "ac_cv_func_$ac_func=yes"
3061 echo "configure: failed program was:" >&5
3062 cat conftest.$ac_ext >&5
3064 eval "ac_cv_func_$ac_func=no"
3069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3070 echo "$ac_t""yes" 1>&6
3071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3072 cat >> confdefs.h <<EOF
3073 #define $ac_tr_func 1
3077 echo "$ac_t""no" 1>&6
3082 for ac_func in bcopy bzero confstr getcwd strcasecmp setenv putenv \
3083 setlinebuf setlocale strchr strerror strtod strtol \
3084 strtoul tcgetattr uname sysconf ulimit times tzset \
3085 siginterrupt memmove ttyname gethostbyname inet_aton \
3088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3089 echo "configure:3090: checking for $ac_func" >&5
3090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 cat > conftest.$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3096 /* System header to define __stub macros and hopefully few prototypes,
3097 which can conflict with char $ac_func(); below. */
3099 /* Override any gcc2 internal prototype to avoid an error. */
3100 /* We use char because int might match the return type of a gcc2
3101 builtin and then its argument prototype would still apply. */
3106 /* The GNU C library defines this for functions which it implements
3107 to always fail with ENOSYS. Some functions are actually named
3108 something starting with __ and the normal name is an alias. */
3109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3117 if { (eval echo configure:3118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3119 eval "ac_cv_func_$ac_func=yes"
3121 echo "configure: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3124 eval "ac_cv_func_$ac_func=no"
3129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3130 echo "$ac_t""yes" 1>&6
3131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3132 cat >> confdefs.h <<EOF
3133 #define $ac_tr_func 1
3137 echo "$ac_t""no" 1>&6
3142 for ac_hdr in libintl.h
3144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3146 echo "configure:3147: checking for $ac_hdr" >&5
3147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3156 { (eval echo configure:3157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3158 if test -z "$ac_err"; then
3160 eval "ac_cv_header_$ac_safe=yes"
3163 echo "configure: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3166 eval "ac_cv_header_$ac_safe=no"
3170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3171 echo "$ac_t""yes" 1>&6
3172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3173 cat >> confdefs.h <<EOF
3174 #define $ac_tr_hdr 1
3178 echo "$ac_t""no" 1>&6
3182 for ac_func in gettext textdomain bindtextdomain
3184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3185 echo "configure:3186: checking for $ac_func" >&5
3186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 cat > conftest.$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 /* System header to define __stub macros and hopefully few prototypes,
3193 which can conflict with char $ac_func(); below. */
3195 /* Override any gcc2 internal prototype to avoid an error. */
3196 /* We use char because int might match the return type of a gcc2
3197 builtin and then its argument prototype would still apply. */
3202 /* The GNU C library defines this for functions which it implements
3203 to always fail with ENOSYS. Some functions are actually named
3204 something starting with __ and the normal name is an alias. */
3205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3213 if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3215 eval "ac_cv_func_$ac_func=yes"
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3220 eval "ac_cv_func_$ac_func=no"
3225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3226 echo "$ac_t""yes" 1>&6
3227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3228 cat >> confdefs.h <<EOF
3229 #define $ac_tr_func 1
3233 echo "$ac_t""no" 1>&6
3238 if test "$ac_cv_func_bindtextdomain" = "no"; then
3239 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3240 echo "configure:3241: checking for bindtextdomain in -lintl" >&5
3241 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 ac_save_LIBS="$LIBS"
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 /* Override any gcc2 internal prototype to avoid an error. */
3251 /* We use char because int might match the return type of a gcc2
3252 builtin and then its argument prototype would still apply. */
3253 char bindtextdomain();
3259 if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3261 eval "ac_cv_lib_$ac_lib_var=yes"
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3266 eval "ac_cv_lib_$ac_lib_var=no"
3269 LIBS="$ac_save_LIBS"
3272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3273 echo "$ac_t""yes" 1>&6
3274 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3276 cat >> confdefs.h <<EOF
3277 #define $ac_tr_lib 1
3283 echo "$ac_t""no" 1>&6
3286 if test "$ac_cv_lib_intl" = "yes"; then
3287 for ac_func in gettext textdomain bindtextdomain
3289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3290 echo "configure:3291: checking for $ac_func" >&5
3291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 /* System header to define __stub macros and hopefully few prototypes,
3298 which can conflict with char $ac_func(); below. */
3300 /* Override any gcc2 internal prototype to avoid an error. */
3301 /* We use char because int might match the return type of a gcc2
3302 builtin and then its argument prototype would still apply. */
3307 /* The GNU C library defines this for functions which it implements
3308 to always fail with ENOSYS. Some functions are actually named
3309 something starting with __ and the normal name is an alias. */
3310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3318 if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3320 eval "ac_cv_func_$ac_func=yes"
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3325 eval "ac_cv_func_$ac_func=no"
3330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3333 cat >> confdefs.h <<EOF
3334 #define $ac_tr_func 1
3338 echo "$ac_t""no" 1>&6
3345 if test "$opt_static_link" != yes; then
3346 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3347 echo "configure:3348: checking for dlopen in -ldl" >&5
3348 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 ac_save_LIBS="$LIBS"
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 /* Override any gcc2 internal prototype to avoid an error. */
3358 /* We use char because int might match the return type of a gcc2
3359 builtin and then its argument prototype would still apply. */
3366 if { (eval echo configure:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3368 eval "ac_cv_lib_$ac_lib_var=yes"
3370 echo "configure: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3373 eval "ac_cv_lib_$ac_lib_var=no"
3376 LIBS="$ac_save_LIBS"
3379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3380 echo "$ac_t""yes" 1>&6
3381 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3382 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3383 cat >> confdefs.h <<EOF
3384 #define $ac_tr_lib 1
3390 echo "$ac_t""no" 1>&6
3393 for ac_func in dlopen dlclose dlsym
3395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3396 echo "configure:3397: checking for $ac_func" >&5
3397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* System header to define __stub macros and hopefully few prototypes,
3404 which can conflict with char $ac_func(); below. */
3406 /* Override any gcc2 internal prototype to avoid an error. */
3407 /* We use char because int might match the return type of a gcc2
3408 builtin and then its argument prototype would still apply. */
3413 /* The GNU C library defines this for functions which it implements
3414 to always fail with ENOSYS. Some functions are actually named
3415 something starting with __ and the normal name is an alias. */
3416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3424 if { (eval echo configure:3425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3426 eval "ac_cv_func_$ac_func=yes"
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3431 eval "ac_cv_func_$ac_func=no"
3436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3437 echo "$ac_t""yes" 1>&6
3438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3439 cat >> confdefs.h <<EOF
3440 #define $ac_tr_func 1
3444 echo "$ac_t""no" 1>&6
3450 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3451 echo "configure:3452: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3452 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 #include <sys/types.h>
3460 /* NetBSD declares sys_siglist in unistd.h. */
3461 #ifdef HAVE_UNISTD_H
3465 char *msg = *(sys_siglist + 1);
3468 if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3470 ac_cv_decl_sys_siglist=yes
3472 echo "configure: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3475 ac_cv_decl_sys_siglist=no
3480 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3481 if test $ac_cv_decl_sys_siglist = yes; then
3482 cat >> confdefs.h <<\EOF
3483 #define SYS_SIGLIST_DECLARED 1
3490 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3493 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3494 echo "configure:3495: checking for $ac_hdr that defines DIR" >&5
3495 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #include <sys/types.h>
3507 if { (eval echo configure:3508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3509 eval "ac_cv_header_dirent_$ac_safe=yes"
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3514 eval "ac_cv_header_dirent_$ac_safe=no"
3518 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3519 echo "$ac_t""yes" 1>&6
3520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3521 cat >> confdefs.h <<EOF
3522 #define $ac_tr_hdr 1
3524 ac_header_dirent=$ac_hdr; break
3526 echo "$ac_t""no" 1>&6
3529 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3530 if test $ac_header_dirent = dirent.h; then
3531 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3532 echo "configure:3533: checking for opendir in -ldir" >&5
3533 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3534 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3537 ac_save_LIBS="$LIBS"
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 /* Override any gcc2 internal prototype to avoid an error. */
3543 /* We use char because int might match the return type of a gcc2
3544 builtin and then its argument prototype would still apply. */
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3553 eval "ac_cv_lib_$ac_lib_var=yes"
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3558 eval "ac_cv_lib_$ac_lib_var=no"
3561 LIBS="$ac_save_LIBS"
3564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3565 echo "$ac_t""yes" 1>&6
3568 echo "$ac_t""no" 1>&6
3572 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3573 echo "configure:3574: checking for opendir in -lx" >&5
3574 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3576 echo $ac_n "(cached) $ac_c" 1>&6
3578 ac_save_LIBS="$LIBS"
3580 cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 /* Override any gcc2 internal prototype to avoid an error. */
3584 /* We use char because int might match the return type of a gcc2
3585 builtin and then its argument prototype would still apply. */
3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3594 eval "ac_cv_lib_$ac_lib_var=yes"
3596 echo "configure: failed program was:" >&5
3597 cat conftest.$ac_ext >&5
3599 eval "ac_cv_lib_$ac_lib_var=no"
3602 LIBS="$ac_save_LIBS"
3605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3606 echo "$ac_t""yes" 1>&6
3609 echo "$ac_t""no" 1>&6
3614 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3615 echo "configure:3616: checking whether time.h and sys/time.h may both be included" >&5
3616 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 #include <sys/types.h>
3623 #include <sys/time.h>
3629 if { (eval echo configure:3630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3631 ac_cv_header_time=yes
3633 echo "configure: failed program was:" >&5
3634 cat conftest.$ac_ext >&5
3636 ac_cv_header_time=no
3641 echo "$ac_t""$ac_cv_header_time" 1>&6
3642 if test $ac_cv_header_time = yes; then
3643 cat >> confdefs.h <<\EOF
3644 #define TIME_WITH_SYS_TIME 1
3650 for ac_hdr in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
3651 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
3654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3656 echo "configure:3657: checking for $ac_hdr" >&5
3657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
3665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3666 { (eval echo configure:3667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3668 if test -z "$ac_err"; then
3670 eval "ac_cv_header_$ac_safe=yes"
3673 echo "configure: failed program was:" >&5
3674 cat conftest.$ac_ext >&5
3676 eval "ac_cv_header_$ac_safe=no"
3680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3681 echo "$ac_t""yes" 1>&6
3682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3683 cat >> confdefs.h <<EOF
3684 #define $ac_tr_hdr 1
3688 echo "$ac_t""no" 1>&6
3692 for ac_hdr in sys/ptem.h sys/pte.h sys/stream.h sys/select.h sys/file.h \
3693 sys/resource.h sys/param.h sys/socket.h \
3694 sys/time.h sys/times.h sys/wait.h
3696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3698 echo "configure:3699: checking for $ac_hdr" >&5
3699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3700 echo $ac_n "(cached) $ac_c" 1>&6
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3708 { (eval echo configure:3709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3710 if test -z "$ac_err"; then
3712 eval "ac_cv_header_$ac_safe=yes"
3715 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3718 eval "ac_cv_header_$ac_safe=no"
3722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3723 echo "$ac_t""yes" 1>&6
3724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3725 cat >> confdefs.h <<EOF
3726 #define $ac_tr_hdr 1
3730 echo "$ac_t""no" 1>&6
3734 for ac_hdr in netinet/in.h arpa/inet.h
3736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3738 echo "configure:3739: checking for $ac_hdr" >&5
3739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3748 { (eval echo configure:3749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3750 if test -z "$ac_err"; then
3752 eval "ac_cv_header_$ac_safe=yes"
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3758 eval "ac_cv_header_$ac_safe=no"
3762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3765 cat >> confdefs.h <<EOF
3766 #define $ac_tr_hdr 1
3770 echo "$ac_t""no" 1>&6
3775 if test "$ac_cv_func_inet_aton" != 'yes'; then
3777 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3778 echo "configure:3779: checking for inet_aton" >&5
3779 if eval "test \"`echo '$''{'bash_cv_func_inet_aton'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3786 #include <sys/types.h>
3787 #include <netinet/in.h>
3788 #include <arpa/inet.h>
3791 inet_aton("127.0.0.1", &ap);
3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3796 bash_cv_func_inet_aton=yes
3798 echo "configure: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3801 bash_cv_func_inet_aton=no
3806 echo "$ac_t""$bash_cv_func_inet_aton" 1>&6
3807 if test $bash_cv_func_inet_aton = yes; then
3808 cat >> confdefs.h <<\EOF
3809 #define HAVE_INET_ATON 1
3817 irix4*) echo $ac_n "checking for getpwent in -lsun""... $ac_c" 1>&6
3818 echo "configure:3819: checking for getpwent in -lsun" >&5
3819 ac_lib_var=`echo sun'_'getpwent | sed 'y%./+-%__p_%'`
3820 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3823 ac_save_LIBS="$LIBS"
3825 cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3828 /* Override any gcc2 internal prototype to avoid an error. */
3829 /* We use char because int might match the return type of a gcc2
3830 builtin and then its argument prototype would still apply. */
3837 if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3839 eval "ac_cv_lib_$ac_lib_var=yes"
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3844 eval "ac_cv_lib_$ac_lib_var=no"
3847 LIBS="$ac_save_LIBS"
3850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3851 echo "$ac_t""yes" 1>&6
3852 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3853 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3854 cat >> confdefs.h <<EOF
3855 #define $ac_tr_lib 1
3861 echo "$ac_t""no" 1>&6
3866 if test "$ac_cv_func_getpeername" = no; then
3868 if test "X$bash_cv_have_socklib" = "X"; then
3871 echo $ac_n "checking for socket library""... $ac_c" 1>&6
3872 echo "configure:3873: checking for socket library" >&5
3875 if eval "test \"`echo '$''{'bash_cv_have_socklib'+set}'`\" = set"; then
3876 echo $ac_n "(cached) $ac_c" 1>&6
3878 echo $ac_n "checking for getpeername in -lsocket""... $ac_c" 1>&6
3879 echo "configure:3880: checking for getpeername in -lsocket" >&5
3880 ac_lib_var=`echo socket'_'getpeername | sed 'y%./+-%__p_%'`
3881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3884 ac_save_LIBS="$LIBS"
3885 LIBS="-lsocket -lnsl $LIBS"
3886 cat > conftest.$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 /* Override any gcc2 internal prototype to avoid an error. */
3890 /* We use char because int might match the return type of a gcc2
3891 builtin and then its argument prototype would still apply. */
3898 if { (eval echo configure:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3900 eval "ac_cv_lib_$ac_lib_var=yes"
3902 echo "configure: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3905 eval "ac_cv_lib_$ac_lib_var=no"
3908 LIBS="$ac_save_LIBS"
3911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3912 echo "$ac_t""yes" 1>&6
3913 bash_cv_have_socklib=yes
3915 echo "$ac_t""no" 1>&6
3916 bash_cv_have_socklib=no
3921 if test "X$_bash_needmsg" = Xyes; then
3922 echo "$ac_t""$bash_cv_have_socklib" 1>&6
3925 if test $bash_cv_have_socklib = yes; then
3926 # check for libnsl, add it to LIBS if present
3927 if test "X$bash_cv_have_libnsl" = "X"; then
3930 echo $ac_n "checking for libnsl""... $ac_c" 1>&6
3931 echo "configure:3932: checking for libnsl" >&5
3934 if eval "test \"`echo '$''{'bash_cv_have_libnsl'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3937 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
3938 echo "configure:3939: checking for t_open in -lnsl" >&5
3939 ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
3940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3943 ac_save_LIBS="$LIBS"
3945 cat > conftest.$ac_ext <<EOF
3946 #line 3947 "configure"
3947 #include "confdefs.h"
3948 /* Override any gcc2 internal prototype to avoid an error. */
3949 /* We use char because int might match the return type of a gcc2
3950 builtin and then its argument prototype would still apply. */
3957 if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3959 eval "ac_cv_lib_$ac_lib_var=yes"
3961 echo "configure: failed program was:" >&5
3962 cat conftest.$ac_ext >&5
3964 eval "ac_cv_lib_$ac_lib_var=no"
3967 LIBS="$ac_save_LIBS"
3970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3971 echo "$ac_t""yes" 1>&6
3972 bash_cv_have_libnsl=yes
3974 echo "$ac_t""no" 1>&6
3975 bash_cv_have_libnsl=no
3980 if test "X$_bash_needmsg" = Xyes; then
3981 echo "$ac_t""$bash_cv_have_libnsl" 1>&6
3984 if test $bash_cv_have_libnsl = yes; then
3985 LIBS="-lsocket -lnsl $LIBS"
3987 LIBS="-lsocket $LIBS"
3989 cat >> confdefs.h <<\EOF
3990 #define HAVE_LIBSOCKET 1
3993 cat >> confdefs.h <<\EOF
3994 #define HAVE_GETPEERNAME 1
4000 if test "$ac_cv_func_gethostbyname" = no; then
4001 if test "X$bash_cv_have_gethostbyname" = "X"; then
4004 echo $ac_n "checking for gethostbyname in socket library""... $ac_c" 1>&6
4005 echo "configure:4006: checking for gethostbyname in socket library" >&5
4008 if eval "test \"`echo '$''{'bash_cv_have_gethostbyname'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4011 cat > conftest.$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4017 hp = gethostbyname("localhost");
4021 if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4023 bash_cv_have_gethostbyname=yes
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4028 bash_cv_have_gethostbyname=no
4034 if test "X$_bash_needmsg" = Xyes; then
4035 echo $ac_n "checking for gethostbyname in socket library""... $ac_c" 1>&6
4036 echo "configure:4037: checking for gethostbyname in socket library" >&5
4038 echo "$ac_t""$bash_cv_have_gethostbyname" 1>&6
4039 if test "$bash_cv_have_gethostbyname" = yes; then
4040 cat >> confdefs.h <<\EOF
4041 #define HAVE_GETHOSTBYNAME 1
4048 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4049 echo "configure:4050: checking for uid_t in sys/types.h" >&5
4050 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 #include <sys/types.h>
4058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4059 egrep "uid_t" >/dev/null 2>&1; then
4061 ac_cv_type_uid_t=yes
4070 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4071 if test $ac_cv_type_uid_t = no; then
4072 cat >> confdefs.h <<\EOF
4076 cat >> confdefs.h <<\EOF
4082 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
4083 echo "configure:4084: checking type of array argument to getgroups" >&5
4084 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4087 if test "$cross_compiling" = yes; then
4088 ac_cv_type_getgroups=cross
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4094 /* Thanks to Mike Rendell for this test. */
4095 #include <sys/types.h>
4098 #define MAX(x, y) ((x) > (y) ? (x) : (y))
4103 union { gid_t gval; long lval; } val;
4106 for (i = 0; i < NGID; i++)
4107 gidset[i] = val.gval;
4108 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4110 /* Exit non-zero if getgroups seems to require an array of ints. This
4111 happens when gid_t is short but getgroups modifies an array of ints. */
4112 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4116 if { (eval echo configure:4117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4118 ac_cv_type_getgroups=gid_t
4120 echo "configure: failed program was:" >&5
4121 cat conftest.$ac_ext >&5
4123 ac_cv_type_getgroups=int
4128 if test $ac_cv_type_getgroups = cross; then
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
4137 ac_cv_type_getgroups=gid_t
4140 ac_cv_type_getgroups=int
4147 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
4148 cat >> confdefs.h <<EOF
4149 #define GETGROUPS_T $ac_cv_type_getgroups
4153 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4154 echo "configure:4155: checking for ANSI C header files" >&5
4155 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 cat > conftest.$ac_ext <<EOF
4159 #line 4160 "configure"
4160 #include "confdefs.h"
4166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4167 { (eval echo configure:4168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4169 if test -z "$ac_err"; then
4171 ac_cv_header_stdc=yes
4174 echo "configure: failed program was:" >&5
4175 cat conftest.$ac_ext >&5
4177 ac_cv_header_stdc=no
4181 if test $ac_cv_header_stdc = yes; then
4182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189 egrep "memchr" >/dev/null 2>&1; then
4193 ac_cv_header_stdc=no
4199 if test $ac_cv_header_stdc = yes; then
4200 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4201 cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4207 egrep "free" >/dev/null 2>&1; then
4211 ac_cv_header_stdc=no
4217 if test $ac_cv_header_stdc = yes; then
4218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4219 if test "$cross_compiling" = yes; then
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4226 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4227 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4229 int main () { int i; for (i = 0; i < 256; i++)
4230 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4234 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4241 ac_cv_header_stdc=no
4249 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4250 if test $ac_cv_header_stdc = yes; then
4251 cat >> confdefs.h <<\EOF
4252 #define STDC_HEADERS 1
4257 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4258 echo "configure:4259: checking for off_t" >&5
4259 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4265 #include <sys/types.h>
4271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4272 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4274 ac_cv_type_off_t=yes
4282 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4283 if test $ac_cv_type_off_t = no; then
4284 cat >> confdefs.h <<\EOF
4290 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4291 echo "configure:4292: checking for mode_t" >&5
4292 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4298 #include <sys/types.h>
4304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4305 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4307 ac_cv_type_mode_t=yes
4310 ac_cv_type_mode_t=no
4315 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4316 if test $ac_cv_type_mode_t = no; then
4317 cat >> confdefs.h <<\EOF
4323 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4324 echo "configure:4325: checking for uid_t in sys/types.h" >&5
4325 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 #include <sys/types.h>
4333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4334 egrep "uid_t" >/dev/null 2>&1; then
4336 ac_cv_type_uid_t=yes
4345 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4346 if test $ac_cv_type_uid_t = no; then
4347 cat >> confdefs.h <<\EOF
4351 cat >> confdefs.h <<\EOF
4357 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4358 echo "configure:4359: checking for pid_t" >&5
4359 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4365 #include <sys/types.h>
4371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4372 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4374 ac_cv_type_pid_t=yes
4382 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4383 if test $ac_cv_type_pid_t = no; then
4384 cat >> confdefs.h <<\EOF
4390 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4391 echo "configure:4392: checking for size_t" >&5
4392 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398 #include <sys/types.h>
4404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4405 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4407 ac_cv_type_size_t=yes
4410 ac_cv_type_size_t=no
4415 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4416 if test $ac_cv_type_size_t = no; then
4417 cat >> confdefs.h <<\EOF
4418 #define size_t unsigned
4423 echo $ac_n "checking for time_t""... $ac_c" 1>&6
4424 echo "configure:4425: checking for time_t" >&5
4425 if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 #include <sys/types.h>
4437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4438 egrep "(^|[^a-zA-Z_0-9])time_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4440 ac_cv_type_time_t=yes
4443 ac_cv_type_time_t=no
4448 echo "$ac_t""$ac_cv_type_time_t" 1>&6
4449 if test $ac_cv_type_time_t = no; then
4450 cat >> confdefs.h <<\EOF
4457 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4458 echo "configure:4459: checking return type of signal handlers" >&5
4459 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4465 #include <sys/types.h>
4471 extern "C" void (*signal (int, void (*)(int)))(int);
4473 void (*signal ()) ();
4480 if { (eval echo configure:4481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4482 ac_cv_type_signal=void
4484 echo "configure: failed program was:" >&5
4485 cat conftest.$ac_ext >&5
4487 ac_cv_type_signal=int
4492 echo "$ac_t""$ac_cv_type_signal" 1>&6
4493 cat >> confdefs.h <<EOF
4494 #define RETSIGTYPE $ac_cv_type_signal
4499 echo $ac_n "checking size of char""... $ac_c" 1>&6
4500 echo "configure:4501: checking size of char" >&5
4501 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4504 if test "$cross_compiling" = yes; then
4507 cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4513 FILE *f=fopen("conftestval", "w");
4515 fprintf(f, "%d\n", sizeof(char));
4519 if { (eval echo configure:4520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4521 ac_cv_sizeof_char=`cat conftestval`
4523 echo "configure: failed program was:" >&5
4524 cat conftest.$ac_ext >&5
4532 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
4533 cat >> confdefs.h <<EOF
4534 #define SIZEOF_CHAR $ac_cv_sizeof_char
4538 echo $ac_n "checking size of short""... $ac_c" 1>&6
4539 echo "configure:4540: checking size of short" >&5
4540 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4541 echo $ac_n "(cached) $ac_c" 1>&6
4543 if test "$cross_compiling" = yes; then
4544 ac_cv_sizeof_short=2
4546 cat > conftest.$ac_ext <<EOF
4547 #line 4548 "configure"
4548 #include "confdefs.h"
4552 FILE *f=fopen("conftestval", "w");
4554 fprintf(f, "%d\n", sizeof(short));
4558 if { (eval echo configure:4559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4560 ac_cv_sizeof_short=`cat conftestval`
4562 echo "configure: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4565 ac_cv_sizeof_short=0
4571 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4572 cat >> confdefs.h <<EOF
4573 #define SIZEOF_SHORT $ac_cv_sizeof_short
4577 echo $ac_n "checking size of int""... $ac_c" 1>&6
4578 echo "configure:4579: checking size of int" >&5
4579 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4582 if test "$cross_compiling" = yes; then
4585 cat > conftest.$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4591 FILE *f=fopen("conftestval", "w");
4593 fprintf(f, "%d\n", sizeof(int));
4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4599 ac_cv_sizeof_int=`cat conftestval`
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4610 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4611 cat >> confdefs.h <<EOF
4612 #define SIZEOF_INT $ac_cv_sizeof_int
4616 echo $ac_n "checking size of long""... $ac_c" 1>&6
4617 echo "configure:4618: checking size of long" >&5
4618 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 if test "$cross_compiling" = yes; then
4624 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4630 FILE *f=fopen("conftestval", "w");
4632 fprintf(f, "%d\n", sizeof(long));
4636 if { (eval echo configure:4637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4638 ac_cv_sizeof_long=`cat conftestval`
4640 echo "configure: failed program was:" >&5
4641 cat conftest.$ac_ext >&5
4649 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4650 cat >> confdefs.h <<EOF
4651 #define SIZEOF_LONG $ac_cv_sizeof_long
4655 echo $ac_n "checking size of char *""... $ac_c" 1>&6
4656 echo "configure:4657: checking size of char *" >&5
4657 if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 if test "$cross_compiling" = yes; then
4661 ac_cv_sizeof_char_p=4
4663 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4669 FILE *f=fopen("conftestval", "w");
4671 fprintf(f, "%d\n", sizeof(char *));
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4677 ac_cv_sizeof_char_p=`cat conftestval`
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4682 ac_cv_sizeof_char_p=0
4688 echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
4689 cat >> confdefs.h <<EOF
4690 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
4694 echo $ac_n "checking size of double""... $ac_c" 1>&6
4695 echo "configure:4696: checking size of double" >&5
4696 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4699 if test "$cross_compiling" = yes; then
4700 ac_cv_sizeof_double=8
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4708 FILE *f=fopen("conftestval", "w");
4710 fprintf(f, "%d\n", sizeof(double));
4714 if { (eval echo configure:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4716 ac_cv_sizeof_double=`cat conftestval`
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4721 ac_cv_sizeof_double=0
4727 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
4728 cat >> confdefs.h <<EOF
4729 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4734 echo $ac_n "checking for u_int""... $ac_c" 1>&6
4735 echo "configure:4736: checking for u_int" >&5
4736 if eval "test \"`echo '$''{'ac_cv_type_u_int'+set}'`\" = set"; then
4737 echo $ac_n "(cached) $ac_c" 1>&6
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 #include <sys/types.h>
4748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749 egrep "(^|[^a-zA-Z_0-9])u_int[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4751 ac_cv_type_u_int=yes
4759 echo "$ac_t""$ac_cv_type_u_int" 1>&6
4760 if test $ac_cv_type_u_int = no; then
4761 cat >> confdefs.h <<\EOF
4762 #define u_int unsigned int
4767 echo $ac_n "checking for u_long""... $ac_c" 1>&6
4768 echo "configure:4769: checking for u_long" >&5
4769 if eval "test \"`echo '$''{'ac_cv_type_u_long'+set}'`\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 cat > conftest.$ac_ext <<EOF
4773 #line 4774 "configure"
4774 #include "confdefs.h"
4775 #include <sys/types.h>
4781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782 egrep "(^|[^a-zA-Z_0-9])u_long[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4784 ac_cv_type_u_long=yes
4787 ac_cv_type_u_long=no
4792 echo "$ac_t""$ac_cv_type_u_long" 1>&6
4793 if test $ac_cv_type_u_long = no; then
4794 cat >> confdefs.h <<\EOF
4795 #define u_long unsigned long
4802 if test "$ac_cv_sizeof_short" = 2; then
4803 echo $ac_n "checking for bits16_t""... $ac_c" 1>&6
4804 echo "configure:4805: checking for bits16_t" >&5
4805 if eval "test \"`echo '$''{'ac_cv_type_bits16_t'+set}'`\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 cat > conftest.$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4811 #include <sys/types.h>
4817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4818 egrep "(^|[^a-zA-Z_0-9])bits16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4820 ac_cv_type_bits16_t=yes
4823 ac_cv_type_bits16_t=no
4828 echo "$ac_t""$ac_cv_type_bits16_t" 1>&6
4829 if test $ac_cv_type_bits16_t = no; then
4830 cat >> confdefs.h <<\EOF
4831 #define bits16_t short
4836 elif test "$ac_cv_sizeof_char" = 2; then
4837 echo $ac_n "checking for bits16_t""... $ac_c" 1>&6
4838 echo "configure:4839: checking for bits16_t" >&5
4839 if eval "test \"`echo '$''{'ac_cv_type_bits16_t'+set}'`\" = set"; then
4840 echo $ac_n "(cached) $ac_c" 1>&6
4842 cat > conftest.$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4845 #include <sys/types.h>
4851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4852 egrep "(^|[^a-zA-Z_0-9])bits16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4854 ac_cv_type_bits16_t=yes
4857 ac_cv_type_bits16_t=no
4862 echo "$ac_t""$ac_cv_type_bits16_t" 1>&6
4863 if test $ac_cv_type_bits16_t = no; then
4864 cat >> confdefs.h <<\EOF
4865 #define bits16_t char
4871 echo $ac_n "checking for bits16_t""... $ac_c" 1>&6
4872 echo "configure:4873: checking for bits16_t" >&5
4873 if eval "test \"`echo '$''{'ac_cv_type_bits16_t'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
4876 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4879 #include <sys/types.h>
4885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4886 egrep "(^|[^a-zA-Z_0-9])bits16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4888 ac_cv_type_bits16_t=yes
4891 ac_cv_type_bits16_t=no
4896 echo "$ac_t""$ac_cv_type_bits16_t" 1>&6
4897 if test $ac_cv_type_bits16_t = no; then
4898 cat >> confdefs.h <<\EOF
4899 #define bits16_t short
4907 if test "$ac_cv_sizeof_short" = 2; then
4908 echo $ac_n "checking for u_bits16_t""... $ac_c" 1>&6
4909 echo "configure:4910: checking for u_bits16_t" >&5
4910 if eval "test \"`echo '$''{'ac_cv_type_u_bits16_t'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 #include <sys/types.h>
4922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4923 egrep "(^|[^a-zA-Z_0-9])u_bits16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4925 ac_cv_type_u_bits16_t=yes
4928 ac_cv_type_u_bits16_t=no
4933 echo "$ac_t""$ac_cv_type_u_bits16_t" 1>&6
4934 if test $ac_cv_type_u_bits16_t = no; then
4935 cat >> confdefs.h <<\EOF
4936 #define u_bits16_t unsigned short
4941 elif test "$ac_cv_sizeof_char" = 2; then
4942 echo $ac_n "checking for u_bits16_t""... $ac_c" 1>&6
4943 echo "configure:4944: checking for u_bits16_t" >&5
4944 if eval "test \"`echo '$''{'ac_cv_type_u_bits16_t'+set}'`\" = set"; then
4945 echo $ac_n "(cached) $ac_c" 1>&6
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4950 #include <sys/types.h>
4956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4957 egrep "(^|[^a-zA-Z_0-9])u_bits16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4959 ac_cv_type_u_bits16_t=yes
4962 ac_cv_type_u_bits16_t=no
4967 echo "$ac_t""$ac_cv_type_u_bits16_t" 1>&6
4968 if test $ac_cv_type_u_bits16_t = no; then
4969 cat >> confdefs.h <<\EOF
4970 #define u_bits16_t unsigned char
4976 echo $ac_n "checking for u_bits16_t""... $ac_c" 1>&6
4977 echo "configure:4978: checking for u_bits16_t" >&5
4978 if eval "test \"`echo '$''{'ac_cv_type_u_bits16_t'+set}'`\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4981 cat > conftest.$ac_ext <<EOF
4982 #line 4983 "configure"
4983 #include "confdefs.h"
4984 #include <sys/types.h>
4990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4991 egrep "(^|[^a-zA-Z_0-9])u_bits16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4993 ac_cv_type_u_bits16_t=yes
4996 ac_cv_type_u_bits16_t=no
5001 echo "$ac_t""$ac_cv_type_u_bits16_t" 1>&6
5002 if test $ac_cv_type_u_bits16_t = no; then
5003 cat >> confdefs.h <<\EOF
5004 #define u_bits16_t unsigned short
5012 if test "$ac_cv_sizeof_int" = 4; then
5013 echo $ac_n "checking for bits32_t""... $ac_c" 1>&6
5014 echo "configure:5015: checking for bits32_t" >&5
5015 if eval "test \"`echo '$''{'ac_cv_type_bits32_t'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5018 cat > conftest.$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5021 #include <sys/types.h>
5027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5028 egrep "(^|[^a-zA-Z_0-9])bits32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5030 ac_cv_type_bits32_t=yes
5033 ac_cv_type_bits32_t=no
5038 echo "$ac_t""$ac_cv_type_bits32_t" 1>&6
5039 if test $ac_cv_type_bits32_t = no; then
5040 cat >> confdefs.h <<\EOF
5041 #define bits32_t int
5046 elif test "$ac_cv_sizeof_long" = 4; then
5047 echo $ac_n "checking for bits32_t""... $ac_c" 1>&6
5048 echo "configure:5049: checking for bits32_t" >&5
5049 if eval "test \"`echo '$''{'ac_cv_type_bits32_t'+set}'`\" = set"; then
5050 echo $ac_n "(cached) $ac_c" 1>&6
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055 #include <sys/types.h>
5061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5062 egrep "(^|[^a-zA-Z_0-9])bits32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5064 ac_cv_type_bits32_t=yes
5067 ac_cv_type_bits32_t=no
5072 echo "$ac_t""$ac_cv_type_bits32_t" 1>&6
5073 if test $ac_cv_type_bits32_t = no; then
5074 cat >> confdefs.h <<\EOF
5075 #define bits32_t long
5081 echo $ac_n "checking for bits32_t""... $ac_c" 1>&6
5082 echo "configure:5083: checking for bits32_t" >&5
5083 if eval "test \"`echo '$''{'ac_cv_type_bits32_t'+set}'`\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5089 #include <sys/types.h>
5095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5096 egrep "(^|[^a-zA-Z_0-9])bits32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5098 ac_cv_type_bits32_t=yes
5101 ac_cv_type_bits32_t=no
5106 echo "$ac_t""$ac_cv_type_bits32_t" 1>&6
5107 if test $ac_cv_type_bits32_t = no; then
5108 cat >> confdefs.h <<\EOF
5109 #define bits32_t int
5117 if test "$ac_cv_sizeof_int" = 4; then
5118 echo $ac_n "checking for u_bits32_t""... $ac_c" 1>&6
5119 echo "configure:5120: checking for u_bits32_t" >&5
5120 if eval "test \"`echo '$''{'ac_cv_type_u_bits32_t'+set}'`\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5123 cat > conftest.$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5126 #include <sys/types.h>
5132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5133 egrep "(^|[^a-zA-Z_0-9])u_bits32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5135 ac_cv_type_u_bits32_t=yes
5138 ac_cv_type_u_bits32_t=no
5143 echo "$ac_t""$ac_cv_type_u_bits32_t" 1>&6
5144 if test $ac_cv_type_u_bits32_t = no; then
5145 cat >> confdefs.h <<\EOF
5146 #define u_bits32_t unsigned int
5151 elif test "$ac_cv_sizeof_long" = 4; then
5152 echo $ac_n "checking for u_bits32_t""... $ac_c" 1>&6
5153 echo "configure:5154: checking for u_bits32_t" >&5
5154 if eval "test \"`echo '$''{'ac_cv_type_u_bits32_t'+set}'`\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5157 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5160 #include <sys/types.h>
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 egrep "(^|[^a-zA-Z_0-9])u_bits32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5169 ac_cv_type_u_bits32_t=yes
5172 ac_cv_type_u_bits32_t=no
5177 echo "$ac_t""$ac_cv_type_u_bits32_t" 1>&6
5178 if test $ac_cv_type_u_bits32_t = no; then
5179 cat >> confdefs.h <<\EOF
5180 #define u_bits32_t unsigned long
5186 echo $ac_n "checking for u_bits32_t""... $ac_c" 1>&6
5187 echo "configure:5188: checking for u_bits32_t" >&5
5188 if eval "test \"`echo '$''{'ac_cv_type_u_bits32_t'+set}'`\" = set"; then
5189 echo $ac_n "(cached) $ac_c" 1>&6
5191 cat > conftest.$ac_ext <<EOF
5192 #line 5193 "configure"
5193 #include "confdefs.h"
5194 #include <sys/types.h>
5200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5201 egrep "(^|[^a-zA-Z_0-9])u_bits32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5203 ac_cv_type_u_bits32_t=yes
5206 ac_cv_type_u_bits32_t=no
5211 echo "$ac_t""$ac_cv_type_u_bits32_t" 1>&6
5212 if test $ac_cv_type_u_bits32_t = no; then
5213 cat >> confdefs.h <<\EOF
5214 #define u_bits32_t unsigned int
5222 if test "$ac_sv_sizeof_char_p" = 8; then
5223 echo $ac_n "checking for bits64_t""... $ac_c" 1>&6
5224 echo "configure:5225: checking for bits64_t" >&5
5225 if eval "test \"`echo '$''{'ac_cv_type_bits64_t'+set}'`\" = set"; then
5226 echo $ac_n "(cached) $ac_c" 1>&6
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231 #include <sys/types.h>
5237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5238 egrep "(^|[^a-zA-Z_0-9])bits64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5240 ac_cv_type_bits64_t=yes
5243 ac_cv_type_bits64_t=no
5248 echo "$ac_t""$ac_cv_type_bits64_t" 1>&6
5249 if test $ac_cv_type_bits64_t = no; then
5250 cat >> confdefs.h <<\EOF
5251 #define bits64_t char *
5256 elif test "$ac_cv_sizeof_double" = 8; then
5257 echo $ac_n "checking for bits64_t""... $ac_c" 1>&6
5258 echo "configure:5259: checking for bits64_t" >&5
5259 if eval "test \"`echo '$''{'ac_cv_type_bits64_t'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 #include <sys/types.h>
5271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5272 egrep "(^|[^a-zA-Z_0-9])bits64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5274 ac_cv_type_bits64_t=yes
5277 ac_cv_type_bits64_t=no
5282 echo "$ac_t""$ac_cv_type_bits64_t" 1>&6
5283 if test $ac_cv_type_bits64_t = no; then
5284 cat >> confdefs.h <<\EOF
5285 #define bits64_t double
5290 elif test "$ac_cv_sizeof_long" = 8; then
5291 echo $ac_n "checking for bits64_t""... $ac_c" 1>&6
5292 echo "configure:5293: checking for bits64_t" >&5
5293 if eval "test \"`echo '$''{'ac_cv_type_bits64_t'+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>
5305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306 egrep "(^|[^a-zA-Z_0-9])bits64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5308 ac_cv_type_bits64_t=yes
5311 ac_cv_type_bits64_t=no
5316 echo "$ac_t""$ac_cv_type_bits64_t" 1>&6
5317 if test $ac_cv_type_bits64_t = no; then
5318 cat >> confdefs.h <<\EOF
5319 #define bits64_t long
5325 echo $ac_n "checking for bits64_t""... $ac_c" 1>&6
5326 echo "configure:5327: checking for bits64_t" >&5
5327 if eval "test \"`echo '$''{'ac_cv_type_bits64_t'+set}'`\" = set"; then
5328 echo $ac_n "(cached) $ac_c" 1>&6
5330 cat > conftest.$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5333 #include <sys/types.h>
5339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5340 egrep "(^|[^a-zA-Z_0-9])bits64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5342 ac_cv_type_bits64_t=yes
5345 ac_cv_type_bits64_t=no
5350 echo "$ac_t""$ac_cv_type_bits64_t" 1>&6
5351 if test $ac_cv_type_bits64_t = no; then
5352 cat >> confdefs.h <<\EOF
5353 #define bits64_t double
5362 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
5363 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
5364 echo "configure:5365: checking for ptrdiff_t" >&5
5365 if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5371 #include <sys/types.h>
5377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5378 egrep "(^|[^a-zA-Z_0-9])ptrdiff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5380 ac_cv_type_ptrdiff_t=yes
5383 ac_cv_type_ptrdiff_t=no
5388 echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
5389 if test $ac_cv_type_ptrdiff_t = no; then
5390 cat >> confdefs.h <<\EOF
5391 #define ptrdiff_t int
5396 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
5397 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
5398 echo "configure:5399: checking for ptrdiff_t" >&5
5399 if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
5400 echo $ac_n "(cached) $ac_c" 1>&6
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5405 #include <sys/types.h>
5411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412 egrep "(^|[^a-zA-Z_0-9])ptrdiff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5414 ac_cv_type_ptrdiff_t=yes
5417 ac_cv_type_ptrdiff_t=no
5422 echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
5423 if test $ac_cv_type_ptrdiff_t = no; then
5424 cat >> confdefs.h <<\EOF
5425 #define ptrdiff_t long
5431 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
5432 echo "configure:5433: checking for ptrdiff_t" >&5
5433 if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5436 cat > conftest.$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5439 #include <sys/types.h>
5445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5446 egrep "(^|[^a-zA-Z_0-9])ptrdiff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5448 ac_cv_type_ptrdiff_t=yes
5451 ac_cv_type_ptrdiff_t=no
5456 echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
5457 if test $ac_cv_type_ptrdiff_t = no; then
5458 cat >> confdefs.h <<\EOF
5459 #define ptrdiff_t int
5467 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5468 echo "configure:5469: checking whether stat file-mode macros are broken" >&5
5469 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5470 echo $ac_n "(cached) $ac_c" 1>&6
5472 cat > conftest.$ac_ext <<EOF
5473 #line 5474 "configure"
5474 #include "confdefs.h"
5475 #include <sys/types.h>
5476 #include <sys/stat.h>
5478 #if defined(S_ISBLK) && defined(S_IFDIR)
5479 # if S_ISBLK (S_IFDIR)
5484 #if defined(S_ISBLK) && defined(S_IFCHR)
5485 # if S_ISBLK (S_IFCHR)
5490 #if defined(S_ISLNK) && defined(S_IFREG)
5491 # if S_ISLNK (S_IFREG)
5496 #if defined(S_ISSOCK) && defined(S_IFREG)
5497 # if S_ISSOCK (S_IFREG)
5503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5504 egrep "You lose" >/dev/null 2>&1; then
5506 ac_cv_header_stat_broken=yes
5509 ac_cv_header_stat_broken=no
5515 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5516 if test $ac_cv_header_stat_broken = yes; then
5517 cat >> confdefs.h <<\EOF
5518 #define STAT_MACROS_BROKEN 1
5524 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
5525 echo "configure:5526: checking whether byte ordering is bigendian" >&5
5526 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5527 echo $ac_n "(cached) $ac_c" 1>&6
5529 ac_cv_c_bigendian=unknown
5530 # See if sys/param.h defines the BYTE_ORDER macro.
5531 cat > conftest.$ac_ext <<EOF
5532 #line 5533 "configure"
5533 #include "confdefs.h"
5534 #include <sys/types.h>
5535 #include <sys/param.h>
5538 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5543 if { (eval echo configure:5544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5545 # It does; now see whether it defined to BIG_ENDIAN or not.
5546 cat > conftest.$ac_ext <<EOF
5547 #line 5548 "configure"
5548 #include "confdefs.h"
5549 #include <sys/types.h>
5550 #include <sys/param.h>
5553 #if BYTE_ORDER != BIG_ENDIAN
5558 if { (eval echo configure:5559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5560 ac_cv_c_bigendian=yes
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5565 ac_cv_c_bigendian=no
5569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5573 if test $ac_cv_c_bigendian = unknown; then
5574 if test "$cross_compiling" = yes; then
5575 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5577 cat > conftest.$ac_ext <<EOF
5578 #line 5579 "configure"
5579 #include "confdefs.h"
5581 /* Are we little or big endian? From Harbison&Steele. */
5585 char c[sizeof (long)];
5588 exit (u.c[sizeof (long) - 1] == 1);
5591 if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5593 ac_cv_c_bigendian=no
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5598 ac_cv_c_bigendian=yes
5606 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5607 if test $ac_cv_c_bigendian = yes; then
5608 cat >> confdefs.h <<\EOF
5609 #define WORDS_BIGENDIAN 1
5615 # Pull the hash mark out of the macro call to avoid m4 problems.
5616 ac_msg="whether #! works in shell scripts"
5617 echo $ac_n "checking $ac_msg""... $ac_c" 1>&6
5618 echo "configure:5619: checking $ac_msg" >&5
5619 if eval "test \"`echo '$''{'ac_cv_sys_interpreter'+set}'`\" = set"; then
5620 echo $ac_n "(cached) $ac_c" 1>&6
5626 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
5627 if test $? -ne 69; then
5628 ac_cv_sys_interpreter=yes
5630 ac_cv_sys_interpreter=no
5635 echo "$ac_t""$ac_cv_sys_interpreter" 1>&6
5636 interpval="$ac_cv_sys_interpreter"
5638 if test $ac_cv_sys_interpreter = yes; then
5639 cat >> confdefs.h <<\EOF
5640 #define HAVE_HASH_BANG_EXEC 1
5644 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
5645 echo "configure:5646: checking for restartable system calls" >&5
5646 if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5649 if test "$cross_compiling" = yes; then
5650 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5652 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5655 /* Exit 0 (true) if wait returns something other than -1,
5656 i.e. the pid of the child, which means that wait was restarted
5657 after getting the signal. */
5658 #include <sys/types.h>
5662 int i = fork (), status;
5663 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
5664 signal (SIGINT, ucatch);
5666 if (status == -1) wait(&i);
5667 exit (status == -1);
5671 if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5673 ac_cv_sys_restartable_syscalls=yes
5675 echo "configure: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5678 ac_cv_sys_restartable_syscalls=no
5685 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
5686 if test $ac_cv_sys_restartable_syscalls = yes; then
5687 cat >> confdefs.h <<\EOF
5688 #define HAVE_RESTARTABLE_SYSCALLS 1
5694 if test "$ac_cv_func_lstat" = "no"; then
5695 echo $ac_n "checking for lstat""... $ac_c" 1>&6
5696 echo "configure:5697: checking for lstat" >&5
5697 if eval "test \"`echo '$''{'bash_cv_func_lstat'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5704 #include <sys/types.h>
5705 #include <sys/stat.h>
5708 lstat(".",(struct stat *)0);
5711 if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5713 bash_cv_func_lstat=yes
5715 echo "configure: failed program was:" >&5
5716 cat conftest.$ac_ext >&5
5718 bash_cv_func_lstat=no
5723 echo "$ac_t""$bash_cv_func_lstat" 1>&6
5724 if test $bash_cv_func_lstat = yes; then
5725 cat >> confdefs.h <<\EOF
5726 #define HAVE_LSTAT 1
5733 echo $ac_n "checking if dup2 fails to clear the close-on-exec flag""... $ac_c" 1>&6
5734 echo "configure:5735: checking if dup2 fails to clear the close-on-exec flag" >&5
5735 if eval "test \"`echo '$''{'bash_cv_dup2_broken'+set}'`\" = set"; then
5736 echo $ac_n "(cached) $ac_c" 1>&6
5738 if test "$cross_compiling" = yes; then
5739 echo "configure: warning: cannot check dup2 if cross compiling -- defaulting to no" 1>&2
5740 bash_cv_dup2_broken=no
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5746 #include <sys/types.h>
5751 fd1 = open("/dev/null", 2);
5752 if (fcntl(fd1, 2, 1) < 0)
5757 fl = fcntl(fd2, 1, 0);
5758 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
5763 if { (eval echo configure:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5765 bash_cv_dup2_broken=yes
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5770 bash_cv_dup2_broken=no
5778 echo "$ac_t""$bash_cv_dup2_broken" 1>&6
5779 if test $bash_cv_dup2_broken = yes; then
5780 cat >> confdefs.h <<\EOF
5781 #define DUP2_BROKEN 1
5787 echo $ac_n "checking whether pgrps need synchronization""... $ac_c" 1>&6
5788 echo "configure:5789: checking whether pgrps need synchronization" >&5
5789 if eval "test \"`echo '$''{'bash_cv_pgrp_pipe'+set}'`\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5792 if test "$cross_compiling" = yes; then
5793 echo "configure: warning: cannot check pgrp synchronization if cross compiling -- defaulting to no" 1>&2
5794 bash_cv_pgrp_pipe=no
5796 cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5800 #ifdef HAVE_UNISTD_H
5801 # include <unistd.h>
5805 # ifdef GETPGRP_VOID
5806 # define getpgID() getpgrp()
5808 # define getpgID() getpgrp(0)
5809 # define setpgid(x,y) setpgrp(x,y)
5811 int pid1, pid2, fds[2];
5815 switch (pid1 = fork()) {
5819 setpgid(0, getpid());
5822 setpgid(pid1, pid1);
5824 sleep(2); /* let first child die */
5829 switch (pid2 = fork()) {
5834 ok = getpgID() == pid1;
5835 write(fds[1], &ok, 1);
5838 setpgid(pid2, pid1);
5841 if (read(fds[0], &ok, 1) != 1)
5849 if { (eval echo configure:5850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5851 bash_cv_pgrp_pipe=no
5853 echo "configure: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5856 bash_cv_pgrp_pipe=yes
5864 echo "$ac_t""$bash_cv_pgrp_pipe" 1>&6
5865 if test $bash_cv_pgrp_pipe = yes; then
5866 cat >> confdefs.h <<\EOF
5873 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
5874 echo "configure:5875: checking for type of signal functions" >&5
5875 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5879 cat > conftest.$ac_ext <<EOF
5880 #line 5881 "configure"
5881 #include "confdefs.h"
5886 struct sigaction sa;
5887 sigemptyset(&ss); sigsuspend(&ss);
5888 sigaction(SIGINT, &sa, (struct sigaction *) 0);
5889 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
5893 if { (eval echo configure:5894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5895 bash_cv_signal_vintage=posix
5897 echo "configure: failed program was:" >&5
5898 cat conftest.$ac_ext >&5
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5907 int mask = sigmask(SIGINT);
5908 sigsetmask(mask); sigblock(mask); sigpause(mask);
5912 if { (eval echo configure:5913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5914 bash_cv_signal_vintage=4.2bsd
5916 echo "configure: failed program was:" >&5
5917 cat conftest.$ac_ext >&5
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5925 RETSIGTYPE foo() { }
5928 int mask = sigmask(SIGINT);
5929 sigset(SIGINT, foo); sigrelse(SIGINT);
5930 sighold(SIGINT); sigpause(SIGINT);
5934 if { (eval echo configure:5935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5936 bash_cv_signal_vintage=svr3
5938 echo "configure: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5941 bash_cv_signal_vintage=v7
5954 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
5955 if test "$bash_cv_signal_vintage" = posix; then
5956 cat >> confdefs.h <<\EOF
5957 #define HAVE_POSIX_SIGNALS 1
5960 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5961 cat >> confdefs.h <<\EOF
5962 #define HAVE_BSD_SIGNALS 1
5965 elif test "$bash_cv_signal_vintage" = svr3; then
5966 cat >> confdefs.h <<\EOF
5967 #define HAVE_USG_SIGHOLD 1
5973 if test "$ac_cv_sys_restartable_syscalls" = "no"; then
5975 echo $ac_n "checking for restartable system calls with posix sigaction""... $ac_c" 1>&6
5976 echo "configure:5977: checking for restartable system calls with posix sigaction" >&5
5977 if eval "test \"`echo '$''{'bash_cv_sys_restartable_syscalls'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5980 if test "$cross_compiling" = yes; then
5981 echo "configure: warning: cannot check restartable syscalls if cross compiling" 1>&2
5983 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure"
5985 #include "confdefs.h"
5986 /* Exit 0 (true) if wait returns something other than -1,
5987 i.e. the pid of the child, which means that wait was restarted
5988 after getting the signal. */
5989 #include <sys/types.h>
5991 static int caught = 0;
5992 void ucatch (isig) int isig; { caught = 1; }
5995 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5998 struct sigaction act, oact;
6001 act.sa_handler = ucatch;
6002 /* Might want to add SA_RESTART here, but bash's set_signal_handler
6005 sigemptyset(&act.sa_mask);
6006 sigemptyset(&oact.sa_mask);
6008 /* A possible race condition here, but in practice it never happens. */
6009 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
6010 sigaction(SIGINT, &act, &oact);
6012 if (status == -1) wait(&i);
6013 exit (status == -1);
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6020 bash_cv_sys_restartable_syscalls=yes
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6025 bash_cv_sys_restartable_syscalls=no
6033 echo "$ac_t""$bash_cv_sys_restartable_syscalls" 1>&6
6034 if test $bash_cv_sys_restartable_syscalls = yes; then
6035 cat >> confdefs.h <<\EOF
6036 #define HAVE_RESTARTABLE_SYSCALLS 1
6043 echo $ac_n "checking for sys_errlist and sys_nerr""... $ac_c" 1>&6
6044 echo "configure:6045: checking for sys_errlist and sys_nerr" >&5
6045 if eval "test \"`echo '$''{'bash_cv_sys_errlist'+set}'`\" = set"; then
6046 echo $ac_n "(cached) $ac_c" 1>&6
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6053 extern char *sys_errlist[];
6054 extern int sys_nerr;
6055 char *msg = sys_errlist[sys_nerr - 1];
6058 if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6060 bash_cv_sys_errlist=yes
6062 echo "configure: failed program was:" >&5
6063 cat conftest.$ac_ext >&5
6065 bash_cv_sys_errlist=no
6069 echo "$ac_t""$bash_cv_sys_errlist" 1>&6
6070 if test $bash_cv_sys_errlist = yes; then
6071 cat >> confdefs.h <<\EOF
6072 #define HAVE_SYS_ERRLIST 1
6078 echo $ac_n "checking for sys_siglist in system C library""... $ac_c" 1>&6
6079 echo "configure:6080: checking for sys_siglist in system C library" >&5
6080 if eval "test \"`echo '$''{'bash_cv_sys_siglist'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6083 if test "$cross_compiling" = yes; then
6084 echo "configure: warning: cannot check for sys_siglist if cross compiling -- defaulting to no" 1>&2
6085 bash_cv_sys_siglist=no
6087 cat > conftest.$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6091 #include <sys/types.h>
6093 #ifdef HAVE_UNISTD_H
6096 #ifndef SYS_SIGLIST_DECLARED
6097 extern char *sys_siglist[];
6101 char *msg = sys_siglist[2];
6105 if { (eval echo configure:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6107 bash_cv_sys_siglist=yes
6109 echo "configure: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6112 bash_cv_sys_siglist=no
6119 echo "$ac_t""$bash_cv_sys_siglist" 1>&6
6120 if test $bash_cv_sys_siglist = yes; then
6121 cat >> confdefs.h <<\EOF
6122 #define HAVE_SYS_SIGLIST 1
6127 echo $ac_n "checking for _sys_siglist in signal.h or unistd.h""... $ac_c" 1>&6
6128 echo "configure:6129: checking for _sys_siglist in signal.h or unistd.h" >&5
6129 if eval "test \"`echo '$''{'bash_cv_decl_under_sys_siglist'+set}'`\" = set"; then
6130 echo $ac_n "(cached) $ac_c" 1>&6
6132 cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6136 #include <sys/types.h>
6138 #ifdef HAVE_UNISTD_H
6142 char *msg = _sys_siglist[2];
6145 if { (eval echo configure:6146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6147 bash_cv_decl_under_sys_siglist=yes
6149 echo "configure: failed program was:" >&5
6150 cat conftest.$ac_ext >&5
6152 bash_cv_decl_under_sys_siglist=no
6156 echo "$ac_t""$bash_cv_decl_under_sys_siglist" 1>&6
6157 if test $bash_cv_decl_under_sys_siglist = yes; then
6158 cat >> confdefs.h <<\EOF
6159 #define UNDER_SYS_SIGLIST_DECLARED 1
6165 echo $ac_n "checking for _sys_siglist in system C library""... $ac_c" 1>&6
6166 echo "configure:6167: checking for _sys_siglist in system C library" >&5
6167 if eval "test \"`echo '$''{'bash_cv_under_sys_siglist'+set}'`\" = set"; then
6168 echo $ac_n "(cached) $ac_c" 1>&6
6170 if test "$cross_compiling" = yes; then
6171 echo "configure: warning: cannot check for _sys_siglist if cross compiling -- defaulting to no" 1>&2
6172 bash_cv_under_sys_siglist=no
6174 cat > conftest.$ac_ext <<EOF
6175 #line 6176 "configure"
6176 #include "confdefs.h"
6178 #include <sys/types.h>
6180 #ifdef HAVE_UNISTD_H
6183 #ifndef UNDER_SYS_SIGLIST_DECLARED
6184 extern char *_sys_siglist[];
6188 char *msg = (char *)_sys_siglist[2];
6192 if { (eval echo configure:6193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6194 bash_cv_under_sys_siglist=yes
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6199 bash_cv_under_sys_siglist=no
6206 echo "$ac_t""$bash_cv_under_sys_siglist" 1>&6
6207 if test $bash_cv_under_sys_siglist = yes; then
6208 cat >> confdefs.h <<\EOF
6209 #define HAVE_UNDER_SYS_SIGLIST 1
6215 echo $ac_n "checking whether signal handlers are of type void""... $ac_c" 1>&6
6216 echo "configure:6217: checking whether signal handlers are of type void" >&5
6217 if eval "test \"`echo '$''{'bash_cv_void_sighandler'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 #include <sys/types.h>
6231 void (*signal ()) ();
6236 if { (eval echo configure:6237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6238 bash_cv_void_sighandler=yes
6240 echo "configure: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6243 bash_cv_void_sighandler=no
6247 echo "$ac_t""$bash_cv_void_sighandler" 1>&6
6248 if test $bash_cv_void_sighandler = yes; then
6249 cat >> confdefs.h <<\EOF
6250 #define VOID_SIGHANDLER 1
6255 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
6256 echo "configure:6257: checking for clock_t" >&5
6257 if eval "test \"`echo '$''{'bash_cv_type_clock_t'+set}'`\" = set"; then
6258 echo $ac_n "(cached) $ac_c" 1>&6
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6263 #include <sys/types.h>
6267 #include <sys/times.h>
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 egrep "clock_t" >/dev/null 2>&1; then
6273 bash_cv_type_clock_t=yes
6276 bash_cv_type_clock_t=no
6282 echo "$ac_t""$bash_cv_type_clock_t" 1>&6
6284 if test $bash_cv_type_clock_t = no; then
6285 cat >> confdefs.h <<\EOF
6286 #define clock_t long
6291 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
6292 echo "configure:6293: checking for sigset_t" >&5
6293 if eval "test \"`echo '$''{'bash_cv_type_sigset_t'+set}'`\" = set"; then
6294 echo $ac_n "(cached) $ac_c" 1>&6
6296 cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6299 #include <sys/types.h>
6306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6307 egrep "sigset_t" >/dev/null 2>&1; then
6309 bash_cv_type_sigset_t=yes
6312 bash_cv_type_sigset_t=no
6318 echo "$ac_t""$bash_cv_type_sigset_t" 1>&6
6320 if test $bash_cv_type_sigset_t = no; then
6321 cat >> confdefs.h <<\EOF
6322 #define sigset_t int
6327 echo $ac_n "checking for quad_t""... $ac_c" 1>&6
6328 echo "configure:6329: checking for quad_t" >&5
6329 if eval "test \"`echo '$''{'bash_cv_type_quad_t'+set}'`\" = set"; then
6330 echo $ac_n "(cached) $ac_c" 1>&6
6332 cat > conftest.$ac_ext <<EOF
6333 #line 6334 "configure"
6334 #include "confdefs.h"
6335 #include <sys/types.h>
6342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6343 egrep "quad_t" >/dev/null 2>&1; then
6345 bash_cv_type_quad_t=yes
6348 bash_cv_type_quad_t=no
6354 echo "$ac_t""$bash_cv_type_quad_t" 1>&6
6355 if test $bash_cv_type_quad_t = yes; then
6356 cat >> confdefs.h <<\EOF
6357 #define HAVE_QUAD_T 1
6361 if test $bash_cv_type_quad_t = no; then
6362 cat >> confdefs.h <<\EOF
6368 echo $ac_n "checking for size and type of struct rlimit fields""... $ac_c" 1>&6
6369 echo "configure:6370: checking for size and type of struct rlimit fields" >&5
6370 if eval "test \"`echo '$''{'bash_cv_type_rlimit'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6373 cat > conftest.$ac_ext <<EOF
6374 #line 6375 "configure"
6375 #include "confdefs.h"
6376 #include <sys/types.h>
6377 #include <sys/resource.h>
6382 if { (eval echo configure:6383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6384 bash_cv_type_rlimit=rlim_t
6386 echo "configure: failed program was:" >&5
6387 cat conftest.$ac_ext >&5
6390 if test "$cross_compiling" = yes; then
6391 echo "configure: warning: cannot check quad_t if cross compiling -- defaulting to long" 1>&2
6392 bash_cv_type_rlimit=long
6394 cat > conftest.$ac_ext <<EOF
6395 #line 6396 "configure"
6396 #include "confdefs.h"
6398 #include <sys/types.h>
6399 #include <sys/time.h>
6400 #include <sys/resource.h>
6405 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6413 bash_cv_type_rlimit=quad_t
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 bash_cv_type_rlimit=long
6428 echo "$ac_t""$bash_cv_type_rlimit" 1>&6
6429 if test $bash_cv_type_rlimit = quad_t; then
6430 cat >> confdefs.h <<\EOF
6431 #define RLIMTYPE quad_t
6434 elif test $bash_cv_type_rlimit = rlim_t; then
6435 cat >> confdefs.h <<\EOF
6436 #define RLIMTYPE rlim_t
6442 echo $ac_n "checking for a c_line member of struct termios""... $ac_c" 1>&6
6443 echo "configure:6444: checking for a c_line member of struct termios" >&5
6444 if eval "test \"`echo '$''{'bash_cv_termios_ldisc'+set}'`\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6447 cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6450 #include <sys/types.h>
6451 #include <termios.h>
6453 struct termios t; int i; i = t.c_line;
6456 if { (eval echo configure:6457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6458 bash_cv_termios_ldisc=yes
6460 echo "configure: failed program was:" >&5
6461 cat conftest.$ac_ext >&5
6463 bash_cv_termios_ldisc=no
6467 echo "$ac_t""$bash_cv_termios_ldisc" 1>&6
6468 if test $bash_cv_termios_ldisc = yes; then
6469 cat >> confdefs.h <<\EOF
6470 #define TERMIOS_LDISC 1
6475 echo $ac_n "checking for a c_line member of struct termio""... $ac_c" 1>&6
6476 echo "configure:6477: checking for a c_line member of struct termio" >&5
6477 if eval "test \"`echo '$''{'bash_cv_termio_ldisc'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6480 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6483 #include <sys/types.h>
6486 struct termio t; int i; i = t.c_line;
6489 if { (eval echo configure:6490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6491 bash_cv_termio_ldisc=yes
6493 echo "configure: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6496 bash_cv_termio_ldisc=no
6500 echo "$ac_t""$bash_cv_termio_ldisc" 1>&6
6501 if test $bash_cv_termio_ldisc = yes; then
6502 cat >> confdefs.h <<\EOF
6503 #define TERMIO_LDISC 1
6509 echo $ac_n "checking if struct dirent has a d_ino member""... $ac_c" 1>&6
6510 echo "configure:6511: checking if struct dirent has a d_ino member" >&5
6511 if eval "test \"`echo '$''{'bash_cv_dirent_has_dino'+set}'`\" = set"; then
6512 echo $ac_n "(cached) $ac_c" 1>&6
6514 cat > conftest.$ac_ext <<EOF
6515 #line 6516 "configure"
6516 #include "confdefs.h"
6519 #include <sys/types.h>
6520 #ifdef HAVE_UNISTD_H
6521 # include <unistd.h>
6522 #endif /* HAVE_UNISTD_H */
6523 #if defined(HAVE_DIRENT_H)
6524 # include <dirent.h>
6526 # define dirent direct
6527 # ifdef HAVE_SYS_NDIR_H
6528 # include <sys/ndir.h>
6529 # endif /* SYSNDIR */
6530 # ifdef HAVE_SYS_DIR_H
6531 # include <sys/dir.h>
6532 # endif /* SYSDIR */
6536 #endif /* HAVE_DIRENT_H */
6540 struct dirent d; int z; z = d.d_ino;
6544 if { (eval echo configure:6545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6546 bash_cv_dirent_has_dino=yes
6548 echo "configure: failed program was:" >&5
6549 cat conftest.$ac_ext >&5
6551 bash_cv_dirent_has_dino=no
6556 echo "$ac_t""$bash_cv_dirent_has_dino" 1>&6
6557 if test $bash_cv_dirent_has_dino = yes; then
6558 cat >> confdefs.h <<\EOF
6559 #define STRUCT_DIRENT_HAS_D_INO 1
6565 echo $ac_n "checking if struct dirent has a d_fileno member""... $ac_c" 1>&6
6566 echo "configure:6567: checking if struct dirent has a d_fileno member" >&5
6567 if eval "test \"`echo '$''{'bash_cv_dirent_has_d_fileno'+set}'`\" = set"; then
6568 echo $ac_n "(cached) $ac_c" 1>&6
6570 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6575 #include <sys/types.h>
6576 #ifdef HAVE_UNISTD_H
6577 # include <unistd.h>
6578 #endif /* HAVE_UNISTD_H */
6579 #if defined(HAVE_DIRENT_H)
6580 # include <dirent.h>
6582 # define dirent direct
6583 # ifdef HAVE_SYS_NDIR_H
6584 # include <sys/ndir.h>
6585 # endif /* SYSNDIR */
6586 # ifdef HAVE_SYS_DIR_H
6587 # include <sys/dir.h>
6588 # endif /* SYSDIR */
6592 #endif /* HAVE_DIRENT_H */
6596 struct dirent d; int z; z = d.d_fileno;
6600 if { (eval echo configure:6601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6602 bash_cv_dirent_has_d_fileno=yes
6604 echo "configure: failed program was:" >&5
6605 cat conftest.$ac_ext >&5
6607 bash_cv_dirent_has_d_fileno=no
6612 echo "$ac_t""$bash_cv_dirent_has_d_fileno" 1>&6
6613 if test $bash_cv_dirent_has_d_fileno = yes; then
6614 cat >> confdefs.h <<\EOF
6615 #define STRUCT_DIRENT_HAS_D_FILENO 1
6620 echo $ac_n "checking for struct winsize in sys/ioctl.h and termios.h""... $ac_c" 1>&6
6621 echo "configure:6622: checking for struct winsize in sys/ioctl.h and termios.h" >&5
6622 if eval "test \"`echo '$''{'bash_cv_struct_winsize_header'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6625 cat > conftest.$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6628 #include <sys/types.h>
6629 #include <sys/ioctl.h>
6634 if { (eval echo configure:6635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6636 bash_cv_struct_winsize_header=ioctl_h
6638 echo "configure: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6641 cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644 #include <sys/types.h>
6645 #include <termios.h>
6650 if { (eval echo configure:6651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6652 bash_cv_struct_winsize_header=termios_h
6654 echo "configure: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6657 bash_cv_struct_winsize_header=other
6665 if test $bash_cv_struct_winsize_header = ioctl_h; then
6666 echo "$ac_t""sys/ioctl.h" 1>&6
6667 cat >> confdefs.h <<\EOF
6668 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
6671 elif test $bash_cv_struct_winsize_header = termios_h; then
6672 echo "$ac_t""termios.h" 1>&6
6673 cat >> confdefs.h <<\EOF
6674 #define STRUCT_WINSIZE_IN_TERMIOS 1
6678 echo "$ac_t""not found" 1>&6
6681 echo $ac_n "checking for struct timeval in sys/time.h and time.h""... $ac_c" 1>&6
6682 echo "configure:6683: checking for struct timeval in sys/time.h and time.h" >&5
6683 if eval "test \"`echo '$''{'bash_cv_struct_timeval'+set}'`\" = set"; then
6684 echo $ac_n "(cached) $ac_c" 1>&6
6687 cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure"
6689 #include "confdefs.h"
6690 #include <sys/time.h>
6692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6693 egrep "struct timeval" >/dev/null 2>&1; then
6695 bash_cv_struct_timeval=yes
6698 cat > conftest.$ac_ext <<EOF
6699 #line 6700 "configure"
6700 #include "confdefs.h"
6703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6704 egrep "struct timeval" >/dev/null 2>&1; then
6706 bash_cv_struct_timeval=yes
6709 bash_cv_struct_timeval=no
6719 echo "$ac_t""$bash_cv_struct_timeval" 1>&6
6720 if test $bash_cv_struct_timeval = yes; then
6721 cat >> confdefs.h <<\EOF
6722 #define HAVE_TIMEVAL 1
6728 echo $ac_n "checking for the existence of strsignal""... $ac_c" 1>&6
6729 echo "configure:6730: checking for the existence of strsignal" >&5
6730 if eval "test \"`echo '$''{'bash_cv_have_strsignal'+set}'`\" = set"; then
6731 echo $ac_n "(cached) $ac_c" 1>&6
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 #include <sys/types.h>
6739 char *s = (char *)strsignal(2);
6742 if { (eval echo configure:6743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6744 bash_cv_have_strsignal=yes
6746 echo "configure: failed program was:" >&5
6747 cat conftest.$ac_ext >&5
6749 bash_cv_have_strsignal=no
6754 echo "$ac_t""$bash_cv_have_strsignal" 1>&6
6755 if test $bash_cv_have_strsignal = yes; then
6756 cat >> confdefs.h <<\EOF
6757 #define HAVE_STRSIGNAL 1
6762 echo $ac_n "checking if opendir() opens non-directories""... $ac_c" 1>&6
6763 echo "configure:6764: checking if opendir() opens non-directories" >&5
6764 if eval "test \"`echo '$''{'bash_cv_opendir_not_robust'+set}'`\" = set"; then
6765 echo $ac_n "(cached) $ac_c" 1>&6
6767 if test "$cross_compiling" = yes; then
6768 echo "configure: warning: cannot check opendir if cross compiling -- defaulting to no" 1>&2
6769 bash_cv_opendir_not_robust=no
6772 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6777 #include <sys/types.h>
6779 #ifdef HAVE_UNISTD_H
6780 # include <unistd.h>
6781 #endif /* HAVE_UNISTD_H */
6782 #if defined(HAVE_DIRENT_H)
6783 # include <dirent.h>
6785 # define dirent direct
6786 # ifdef HAVE_SYS_NDIR_H
6787 # include <sys/ndir.h>
6788 # endif /* SYSNDIR */
6789 # ifdef HAVE_SYS_DIR_H
6790 # include <sys/dir.h>
6791 # endif /* SYSDIR */
6795 #endif /* HAVE_DIRENT_H */
6800 err = mkdir("/tmp/bash-aclocal", 0700);
6805 unlink("/tmp/bash-aclocal/not_a_directory");
6806 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
6809 dir = opendir("/tmp/bash-aclocal/not_a_directory");
6810 unlink("/tmp/bash-aclocal/not_a_directory");
6811 rmdir("/tmp/bash-aclocal");
6815 if { (eval echo configure:6816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6817 bash_cv_opendir_not_robust=yes
6819 echo "configure: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6822 bash_cv_opendir_not_robust=no
6829 echo "$ac_t""$bash_cv_opendir_not_robust" 1>&6
6830 if test $bash_cv_opendir_not_robust = yes; then
6831 cat >> confdefs.h <<\EOF
6832 #define OPENDIR_NOT_ROBUST 1
6837 echo $ac_n "checking for declaration of printf in <stdio.h>""... $ac_c" 1>&6
6838 echo "configure:6839: checking for declaration of printf in <stdio.h>" >&5
6839 if eval "test \"`echo '$''{'bash_cv_printf_declared'+set}'`\" = set"; then
6840 echo $ac_n "(cached) $ac_c" 1>&6
6842 if test "$cross_compiling" = yes; then
6843 echo "configure: warning: cannot check printf declaration if cross compiling -- defaulting to yes" 1>&2
6844 bash_cv_printf_declared=yes
6847 cat > conftest.$ac_ext <<EOF
6848 #line 6849 "configure"
6849 #include "confdefs.h"
6853 typedef int (*_bashfunc)(const char *, ...);
6855 typedef int (*_bashfunc)();
6860 pf = (_bashfunc) printf;
6865 if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6867 bash_cv_printf_declared=yes
6869 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6872 bash_cv_printf_declared=no
6879 echo "$ac_t""$bash_cv_printf_declared" 1>&6
6880 if test $bash_cv_printf_declared = yes; then
6881 cat >> confdefs.h <<\EOF
6882 #define PRINTF_DECLARED 1
6887 echo $ac_n "checking whether ulimit can substitute for getdtablesize""... $ac_c" 1>&6
6888 echo "configure:6889: checking whether ulimit can substitute for getdtablesize" >&5
6889 if eval "test \"`echo '$''{'bash_cv_ulimit_maxfds'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6892 if test "$cross_compiling" = yes; then
6893 echo "configure: warning: cannot check ulimit if cross compiling -- defaulting to no" 1>&2
6894 bash_cv_ulimit_maxfds=no
6897 cat > conftest.$ac_ext <<EOF
6898 #line 6899 "configure"
6899 #include "confdefs.h"
6903 long maxfds = ulimit(4, 0L);
6904 exit (maxfds == -1L);
6908 if { (eval echo configure:6909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6910 bash_cv_ulimit_maxfds=yes
6912 echo "configure: failed program was:" >&5
6913 cat conftest.$ac_ext >&5
6915 bash_cv_ulimit_maxfds=no
6922 echo "$ac_t""$bash_cv_ulimit_maxfds" 1>&6
6923 if test $bash_cv_ulimit_maxfds = yes; then
6924 cat >> confdefs.h <<\EOF
6925 #define ULIMIT_MAXFDS 1
6930 echo $ac_n "checking to see if getenv can be redefined""... $ac_c" 1>&6
6931 echo "configure:6932: checking to see if getenv can be redefined" >&5
6932 if eval "test \"`echo '$''{'bash_cv_getenv_redef'+set}'`\" = set"; then
6933 echo $ac_n "(cached) $ac_c" 1>&6
6935 if test "$cross_compiling" = yes; then
6936 echo "configure: warning: cannot check getenv redefinition if cross compiling -- defaulting to yes" 1>&2
6937 bash_cv_getenv_redef=yes
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6944 #ifdef HAVE_UNISTD_H
6945 # include <unistd.h>
6954 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
6958 #endif /* !__linux__ && !__bsdi__ && !convex */
6965 /* The next allows this program to run, but does not allow bash to link
6966 when it redefines getenv. I'm not really interested in figuring out
6971 s = getenv("ABCDE");
6972 exit(s == 0); /* force optimizer to leave getenv in */
6976 if { (eval echo configure:6977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6978 bash_cv_getenv_redef=yes
6980 echo "configure: failed program was:" >&5
6981 cat conftest.$ac_ext >&5
6983 bash_cv_getenv_redef=no
6990 echo "$ac_t""$bash_cv_getenv_redef" 1>&6
6991 if test $bash_cv_getenv_redef = yes; then
6992 cat >> confdefs.h <<\EOF
6993 #define CAN_REDEFINE_GETENV 1
6998 echo $ac_n "checking if getcwd() calls popen()""... $ac_c" 1>&6
6999 echo "configure:7000: checking if getcwd() calls popen()" >&5
7000 if eval "test \"`echo '$''{'bash_cv_getcwd_calls_popen'+set}'`\" = set"; then
7001 echo $ac_n "(cached) $ac_c" 1>&6
7003 if test "$cross_compiling" = yes; then
7004 echo "configure: warning: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" 1>&2
7005 bash_cv_getcwd_calls_popen=no
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7013 #ifdef HAVE_UNISTD_H
7026 popen(command, type)
7027 const char *command;
7031 return (FILE *)NULL;
7034 FILE *_popen(command, type)
7035 const char *command;
7038 return (popen (command, type));
7060 exit (popen_called);
7064 if { (eval echo configure:7065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7066 bash_cv_getcwd_calls_popen=no
7068 echo "configure: failed program was:" >&5
7069 cat conftest.$ac_ext >&5
7071 bash_cv_getcwd_calls_popen=yes
7078 echo "$ac_t""$bash_cv_getcwd_calls_popen" 1>&6
7079 if test $bash_cv_getcwd_calls_popen = yes; then
7080 cat >> confdefs.h <<\EOF
7081 #define GETCWD_BROKEN 1
7086 echo $ac_n "checking for declaration of sbrk in <unistd.h>""... $ac_c" 1>&6
7087 echo "configure:7088: checking for declaration of sbrk in <unistd.h>" >&5
7088 if eval "test \"`echo '$''{'bash_cv_sbrk_declared'+set}'`\" = set"; then
7089 echo $ac_n "(cached) $ac_c" 1>&6
7091 cat > conftest.$ac_ext <<EOF
7092 #line 7093 "configure"
7093 #include "confdefs.h"
7096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097 egrep "sbrk" >/dev/null 2>&1; then
7099 bash_cv_sbrk_declared=yes
7102 bash_cv_sbrk_declared=no
7108 echo "$ac_t""$bash_cv_sbrk_declared" 1>&6
7109 if test $bash_cv_sbrk_declared = yes; then
7110 cat >> confdefs.h <<\EOF
7111 #define SBRK_DECLARED 1
7117 echo $ac_n "checking for presence of POSIX-style sigsetjmp/siglongjmp""... $ac_c" 1>&6
7118 echo "configure:7119: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
7119 if eval "test \"`echo '$''{'bash_cv_func_sigsetjmp'+set}'`\" = set"; then
7120 echo $ac_n "(cached) $ac_c" 1>&6
7122 if test "$cross_compiling" = yes; then
7123 echo "configure: warning: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" 1>&2
7124 bash_cv_func_sigsetjmp=missing
7127 cat > conftest.$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7131 #ifdef HAVE_UNISTD_H
7134 #include <sys/types.h>
7140 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
7151 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
7152 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
7155 code = sigsetjmp(xx, 1);
7157 exit(0); /* could get sigmask and compare to oset here. */
7160 sigaddset(&set, SIGINT);
7161 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
7163 /* and siglongjmp */
7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7171 bash_cv_func_sigsetjmp=present
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7176 bash_cv_func_sigsetjmp=missing
7183 echo "$ac_t""$bash_cv_func_sigsetjmp" 1>&6
7184 if test $bash_cv_func_sigsetjmp = present; then
7185 cat >> confdefs.h <<\EOF
7186 #define HAVE_POSIX_SIGSETJMP 1
7192 echo $ac_n "checking whether or not strcoll and strcmp differ""... $ac_c" 1>&6
7193 echo "configure:7194: checking whether or not strcoll and strcmp differ" >&5
7194 if eval "test \"`echo '$''{'bash_cv_func_strcoll_broken'+set}'`\" = set"; then
7195 echo $ac_n "(cached) $ac_c" 1>&6
7197 if test "$cross_compiling" = yes; then
7198 echo "configure: warning: cannot check strcoll if cross compiling -- defaulting to no" 1>&2
7199 bash_cv_func_strcoll_broken=no
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7207 #if defined (HAVE_LOCALE_H)
7216 char *deflocale, *defcoll;
7218 #ifdef HAVE_SETLOCALE
7219 deflocale = setlocale(LC_ALL, "");
7220 defcoll = setlocale(LC_COLLATE, "");
7224 /* These two values are taken from tests/glob-test. */
7225 r1 = strcoll("abd", "aXd");
7229 r2 = strcmp("abd", "aXd");
7231 /* These two should both be greater than 0. It is permissible for
7232 a system to return different values, as long as the sign is the
7235 /* Exit with 1 (failure) if these two values are both > 0, since
7236 this tests whether strcoll(3) is broken with respect to strcmp(3)
7237 in the default locale. */
7238 exit (r1 > 0 && r2 > 0);
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7244 bash_cv_func_strcoll_broken=yes
7246 echo "configure: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7249 bash_cv_func_strcoll_broken=no
7256 echo "$ac_t""$bash_cv_func_strcoll_broken" 1>&6
7257 if test $bash_cv_func_strcoll_broken = yes; then
7258 cat >> confdefs.h <<\EOF
7259 #define STRCOLL_BROKEN 1
7267 echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
7268 echo "configure:7269: checking if signal handlers must be reinstalled when invoked" >&5
7269 if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
7270 echo $ac_n "(cached) $ac_c" 1>&6
7272 if test "$cross_compiling" = yes; then
7273 echo "configure: warning: cannot check signal handling if cross compiling -- defaulting to no" 1>&2
7274 bash_cv_must_reinstall_sighandlers=no
7277 cat > conftest.$ac_ext <<EOF
7278 #line 7279 "configure"
7279 #include "confdefs.h"
7282 #ifdef HAVE_UNISTD_H
7286 typedef RETSIGTYPE sigfunc();
7290 #ifdef HAVE_POSIX_SIGNALS
7292 set_signal_handler(sig, handler)
7296 struct sigaction act, oact;
7297 act.sa_handler = handler;
7299 sigemptyset (&act.sa_mask);
7300 sigemptyset (&oact.sa_mask);
7301 sigaction (sig, &act, &oact);
7302 return (oact.sa_handler);
7305 #define set_signal_handler(s, h) signal(s, h)
7318 set_signal_handler(SIGINT, sigint);
7319 kill((int)getpid(), SIGINT);
7320 kill((int)getpid(), SIGINT);
7325 if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7327 bash_cv_must_reinstall_sighandlers=no
7329 echo "configure: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7332 bash_cv_must_reinstall_sighandlers=yes
7339 echo "$ac_t""$bash_cv_must_reinstall_sighandlers" 1>&6
7340 if test $bash_cv_must_reinstall_sighandlers = yes; then
7341 cat >> confdefs.h <<\EOF
7342 #define MUST_REINSTALL_SIGHANDLERS 1
7348 echo $ac_n "checking for presence of necessary job control definitions""... $ac_c" 1>&6
7349 echo "configure:7350: checking for presence of necessary job control definitions" >&5
7350 if eval "test \"`echo '$''{'bash_cv_job_control_missing'+set}'`\" = set"; then
7351 echo $ac_n "(cached) $ac_c" 1>&6
7353 if test "$cross_compiling" = yes; then
7354 echo "configure: warning: cannot check job control if cross-compiling -- defaulting to missing" 1>&2
7355 bash_cv_job_control_missing=missing
7358 cat > conftest.$ac_ext <<EOF
7359 #line 7360 "configure"
7360 #include "confdefs.h"
7362 #include <sys/types.h>
7363 #ifdef HAVE_SYS_WAIT_H
7364 #include <sys/wait.h>
7366 #ifdef HAVE_UNISTD_H
7371 /* Add more tests in here as appropriate. */
7375 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
7379 /* signals and tty control. */
7380 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
7384 /* process control */
7385 #if !defined (WNOHANG) || !defined (WUNTRACED)
7389 /* Posix systems have tcgetpgrp and waitpid. */
7390 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
7394 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
7398 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
7399 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
7406 if { (eval echo configure:7407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7408 bash_cv_job_control_missing=present
7410 echo "configure: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7413 bash_cv_job_control_missing=missing
7420 echo "$ac_t""$bash_cv_job_control_missing" 1>&6
7421 if test $bash_cv_job_control_missing = missing; then
7422 cat >> confdefs.h <<\EOF
7423 #define JOB_CONTROL_MISSING 1
7428 echo $ac_n "checking for presence of named pipes""... $ac_c" 1>&6
7429 echo "configure:7430: checking for presence of named pipes" >&5
7430 if eval "test \"`echo '$''{'bash_cv_sys_named_pipes'+set}'`\" = set"; then
7431 echo $ac_n "(cached) $ac_c" 1>&6
7433 if test "$cross_compiling" = yes; then
7434 echo "configure: warning: cannot check for named pipes if cross-compiling -- defaulting to missing" 1>&2
7435 bash_cv_sys_named_pipes=missing
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7442 #include <sys/types.h>
7443 #include <sys/stat.h>
7444 #ifdef HAVE_UNISTD_H
7448 /* Add more tests in here as appropriate. */
7453 #if defined (HAVE_MKFIFO)
7457 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
7464 err = mkdir("/tmp/bash-aclocal", 0700);
7469 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
7471 rmdir ("/tmp/bash-aclocal");
7475 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
7476 rmdir ("/tmp/bash-aclocal");
7480 if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7482 bash_cv_sys_named_pipes=present
7484 echo "configure: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7487 bash_cv_sys_named_pipes=missing
7494 echo "$ac_t""$bash_cv_sys_named_pipes" 1>&6
7495 if test $bash_cv_sys_named_pipes = missing; then
7496 cat >> confdefs.h <<\EOF
7497 #define NAMED_PIPES_MISSING 1
7503 echo $ac_n "checking for TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
7504 echo "configure:7505: checking for TIOCGWINSZ in sys/ioctl.h" >&5
7505 if eval "test \"`echo '$''{'bash_cv_tiocgwinsz_in_ioctl'+set}'`\" = set"; then
7506 echo $ac_n "(cached) $ac_c" 1>&6
7508 cat > conftest.$ac_ext <<EOF
7509 #line 7510 "configure"
7510 #include "confdefs.h"
7511 #include <sys/types.h>
7512 #include <sys/ioctl.h>
7517 if { (eval echo configure:7518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7519 bash_cv_tiocgwinsz_in_ioctl=yes
7521 echo "configure: failed program was:" >&5
7522 cat conftest.$ac_ext >&5
7524 bash_cv_tiocgwinsz_in_ioctl=no
7529 echo "$ac_t""$bash_cv_tiocgwinsz_in_ioctl" 1>&6
7530 if test $bash_cv_tiocgwinsz_in_ioctl = yes; then
7531 cat >> confdefs.h <<\EOF
7532 #define GWINSZ_IN_SYS_IOCTL 1
7537 echo $ac_n "checking for TIOCSTAT in sys/ioctl.h""... $ac_c" 1>&6
7538 echo "configure:7539: checking for TIOCSTAT in sys/ioctl.h" >&5
7539 if eval "test \"`echo '$''{'bash_cv_tiocstat_in_ioctl'+set}'`\" = set"; then
7540 echo $ac_n "(cached) $ac_c" 1>&6
7542 cat > conftest.$ac_ext <<EOF
7543 #line 7544 "configure"
7544 #include "confdefs.h"
7545 #include <sys/types.h>
7546 #include <sys/ioctl.h>
7551 if { (eval echo configure:7552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7553 bash_cv_tiocstat_in_ioctl=yes
7555 echo "configure: failed program was:" >&5
7556 cat conftest.$ac_ext >&5
7558 bash_cv_tiocstat_in_ioctl=no
7563 echo "$ac_t""$bash_cv_tiocstat_in_ioctl" 1>&6
7564 if test $bash_cv_tiocstat_in_ioctl = yes; then
7565 cat >> confdefs.h <<\EOF
7566 #define TIOCSTAT_IN_SYS_IOCTL 1
7571 echo $ac_n "checking for FIONREAD in sys/ioctl.h""... $ac_c" 1>&6
7572 echo "configure:7573: checking for FIONREAD in sys/ioctl.h" >&5
7573 if eval "test \"`echo '$''{'bash_cv_fionread_in_ioctl'+set}'`\" = set"; then
7574 echo $ac_n "(cached) $ac_c" 1>&6
7576 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure"
7578 #include "confdefs.h"
7579 #include <sys/types.h>
7580 #include <sys/ioctl.h>
7585 if { (eval echo configure:7586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7587 bash_cv_fionread_in_ioctl=yes
7589 echo "configure: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7592 bash_cv_fionread_in_ioctl=no
7597 echo "$ac_t""$bash_cv_fionread_in_ioctl" 1>&6
7598 if test $bash_cv_fionread_in_ioctl = yes; then
7599 cat >> confdefs.h <<\EOF
7600 #define FIONREAD_IN_SYS_IOCTL 1
7606 echo $ac_n "checking for speed_t in sys/types.h""... $ac_c" 1>&6
7607 echo "configure:7608: checking for speed_t in sys/types.h" >&5
7608 if eval "test \"`echo '$''{'bash_cv_speed_t_in_sys_types'+set}'`\" = set"; then
7609 echo $ac_n "(cached) $ac_c" 1>&6
7611 cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure"
7613 #include "confdefs.h"
7614 #include <sys/types.h>
7619 if { (eval echo configure:7620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7621 bash_cv_speed_t_in_sys_types=yes
7623 echo "configure: failed program was:" >&5
7624 cat conftest.$ac_ext >&5
7626 bash_cv_speed_t_in_sys_types=no
7631 echo "$ac_t""$bash_cv_speed_t_in_sys_types" 1>&6
7632 if test $bash_cv_speed_t_in_sys_types = yes; then
7633 cat >> confdefs.h <<\EOF
7634 #define SPEED_T_IN_SYS_TYPES 1
7639 echo $ac_n "checking whether programs are able to redeclare getpw functions""... $ac_c" 1>&6
7640 echo "configure:7641: checking whether programs are able to redeclare getpw functions" >&5
7641 if eval "test \"`echo '$''{'bash_cv_can_redecl_getpw'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7644 cat > conftest.$ac_ext <<EOF
7645 #line 7646 "configure"
7646 #include "confdefs.h"
7647 #include <sys/types.h>
7649 extern struct passwd *getpwent();
7650 extern struct passwd *getpwuid();
7651 extern struct passwd *getpwnam();
7653 struct passwd *z; z = getpwent(); z = getpwuid(0); z = getpwnam("root");
7656 if { (eval echo configure:7657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7658 bash_cv_can_redecl_getpw=yes
7660 echo "configure: failed program was:" >&5
7661 cat conftest.$ac_ext >&5
7663 bash_cv_can_redecl_getpw=no
7668 echo "$ac_t""$bash_cv_can_redecl_getpw" 1>&6
7669 if test $bash_cv_can_redecl_getpw = no; then
7670 cat >> confdefs.h <<\EOF
7671 #define HAVE_GETPW_DECLS 1
7678 hpux*) echo $ac_n "checking whether $host_os needs _KERNEL for RLIMIT defines""... $ac_c" 1>&6
7679 echo "configure:7680: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
7680 if eval "test \"`echo '$''{'bash_cv_kernel_rlimit'+set}'`\" = set"; then
7681 echo $ac_n "(cached) $ac_c" 1>&6
7683 cat > conftest.$ac_ext <<EOF
7684 #line 7685 "configure"
7685 #include "confdefs.h"
7687 #include <sys/types.h>
7688 #include <sys/resource.h>
7697 if { (eval echo configure:7698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7699 bash_cv_kernel_rlimit=no
7701 echo "configure: failed program was:" >&5
7702 cat conftest.$ac_ext >&5
7704 cat > conftest.$ac_ext <<EOF
7705 #line 7706 "configure"
7706 #include "confdefs.h"
7708 #include <sys/types.h>
7710 #include <sys/resource.h>
7720 if { (eval echo configure:7721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7722 bash_cv_kernel_rlimit=yes
7724 echo "configure: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7727 bash_cv_kernel_rlimit=no
7735 echo "$ac_t""$bash_cv_kernel_rlimit" 1>&6
7736 if test $bash_cv_kernel_rlimit = yes; then
7737 cat >> confdefs.h <<\EOF
7738 #define RLIMIT_NEEDS_KERNEL 1
7745 if test "$opt_readline" = yes; then
7747 aix*) prefer_curses=yes ;;
7750 if test "X$bash_cv_termcap_lib" = "X"; then
7753 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
7754 echo "configure:7755: checking which library has the termcap functions" >&5
7757 if eval "test \"`echo '$''{'bash_cv_termcap_lib'+set}'`\" = set"; then
7758 echo $ac_n "(cached) $ac_c" 1>&6
7760 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
7761 echo "configure:7762: checking for tgetent in -ltermcap" >&5
7762 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
7763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7764 echo $ac_n "(cached) $ac_c" 1>&6
7766 ac_save_LIBS="$LIBS"
7767 LIBS="-ltermcap $LIBS"
7768 cat > conftest.$ac_ext <<EOF
7769 #line 7770 "configure"
7770 #include "confdefs.h"
7771 /* Override any gcc2 internal prototype to avoid an error. */
7772 /* We use char because int might match the return type of a gcc2
7773 builtin and then its argument prototype would still apply. */
7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7782 eval "ac_cv_lib_$ac_lib_var=yes"
7784 echo "configure: failed program was:" >&5
7785 cat conftest.$ac_ext >&5
7787 eval "ac_cv_lib_$ac_lib_var=no"
7790 LIBS="$ac_save_LIBS"
7793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7794 echo "$ac_t""yes" 1>&6
7795 bash_cv_termcap_lib=libtermcap
7797 echo "$ac_t""no" 1>&6
7798 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
7799 echo "configure:7800: checking for tgetent in -lcurses" >&5
7800 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
7801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7804 ac_save_LIBS="$LIBS"
7805 LIBS="-lcurses $LIBS"
7806 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7809 /* Override any gcc2 internal prototype to avoid an error. */
7810 /* We use char because int might match the return type of a gcc2
7811 builtin and then its argument prototype would still apply. */
7818 if { (eval echo configure:7819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7820 eval "ac_cv_lib_$ac_lib_var=yes"
7822 echo "configure: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7825 eval "ac_cv_lib_$ac_lib_var=no"
7828 LIBS="$ac_save_LIBS"
7831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7832 echo "$ac_t""yes" 1>&6
7833 bash_cv_termcap_lib=libcurses
7835 echo "$ac_t""no" 1>&6
7836 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
7837 echo "configure:7838: checking for tgetent in -lncurses" >&5
7838 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
7839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7840 echo $ac_n "(cached) $ac_c" 1>&6
7842 ac_save_LIBS="$LIBS"
7843 LIBS="-lncurses $LIBS"
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure"
7846 #include "confdefs.h"
7847 /* Override any gcc2 internal prototype to avoid an error. */
7848 /* We use char because int might match the return type of a gcc2
7849 builtin and then its argument prototype would still apply. */
7856 if { (eval echo configure:7857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7858 eval "ac_cv_lib_$ac_lib_var=yes"
7860 echo "configure: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7863 eval "ac_cv_lib_$ac_lib_var=no"
7866 LIBS="$ac_save_LIBS"
7869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7870 echo "$ac_t""yes" 1>&6
7871 bash_cv_termcap_lib=libncurses
7873 echo "$ac_t""no" 1>&6
7874 bash_cv_termcap_lib=gnutermcap
7883 if test "X$_bash_needmsg" = "Xyes"; then
7884 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
7885 echo "configure:7886: checking which library has the termcap functions" >&5
7887 echo "$ac_t""using $bash_cv_termcap_lib" 1>&6
7888 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
7889 LDFLAGS="$LDFLAGS -L./lib/termcap"
7890 TERMCAP_LIB="./lib/termcap/libtermcap.a"
7891 TERMCAP_DEP="./lib/termcap/libtermcap.a"
7892 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
7893 TERMCAP_LIB=-ltermcap
7895 elif test $bash_cv_termcap_lib = libncurses; then
7896 TERMCAP_LIB=-lncurses
7899 TERMCAP_LIB=-lcurses
7907 echo $ac_n "checking whether /dev/fd is available""... $ac_c" 1>&6
7908 echo "configure:7909: checking whether /dev/fd is available" >&5
7909 if eval "test \"`echo '$''{'bash_cv_dev_fd'+set}'`\" = set"; then
7910 echo $ac_n "(cached) $ac_c" 1>&6
7912 if test -d /dev/fd && test -r /dev/fd/0; then
7913 bash_cv_dev_fd=standard
7914 elif test -d /proc/self/fd && test -r /proc/self/fd/0; then
7915 bash_cv_dev_fd=whacky
7917 bash_cv_dev_fd=absent
7922 echo "$ac_t""$bash_cv_dev_fd" 1>&6
7923 if test $bash_cv_dev_fd = "standard"; then
7924 cat >> confdefs.h <<\EOF
7925 #define HAVE_DEV_FD 1
7928 cat >> confdefs.h <<\EOF
7929 #define DEV_FD_PREFIX "/dev/fd/"
7932 elif test $bash_cv_dev_fd = "whacky"; then
7933 cat >> confdefs.h <<\EOF
7934 #define HAVE_DEV_FD 1
7937 cat >> confdefs.h <<\EOF
7938 #define DEV_FD_PREFIX "/proc/self/fd/"
7943 echo $ac_n "checking whether /dev/stdin stdout stderr are available""... $ac_c" 1>&6
7944 echo "configure:7945: checking whether /dev/stdin stdout stderr are available" >&5
7945 if eval "test \"`echo '$''{'bash_cv_dev_stdin'+set}'`\" = set"; then
7946 echo $ac_n "(cached) $ac_c" 1>&6
7948 if test -d /dev/fd && test -r /dev/stdin; then
7949 bash_cv_dev_stdin=present
7950 elif test -d /proc/self/fd && test -r /dev/stdin; then
7951 bash_cv_dev_stdin=present
7953 bash_cv_dev_stdin=absent
7958 echo "$ac_t""$bash_cv_dev_stdin" 1>&6
7959 if test $bash_cv_dev_stdin = "present"; then
7960 cat >> confdefs.h <<\EOF
7961 #define HAVE_DEV_STDIN 1
7966 echo $ac_n "checking for default mail directory""... $ac_c" 1>&6
7967 echo "configure:7968: checking for default mail directory" >&5
7968 if eval "test \"`echo '$''{'bash_cv_mail_dir'+set}'`\" = set"; then
7969 echo $ac_n "(cached) $ac_c" 1>&6
7971 if test -d /var/mail; then
7972 bash_cv_mail_dir=/var/mail
7973 elif test -d /usr/mail; then
7974 bash_cv_mail_dir=/usr/mail
7975 elif test -d /var/spool/mail; then
7976 bash_cv_mail_dir=/var/spool/mail
7977 elif test -d /usr/spool/mail; then
7978 bash_cv_mail_dir=/usr/spool/mail
7980 bash_cv_mail_dir=unknown
7985 echo "$ac_t""$bash_cv_mail_dir" 1>&6
7986 if test $bash_cv_mail_dir = "/var/mail"; then
7987 cat >> confdefs.h <<\EOF
7988 #define DEFAULT_MAIL_DIRECTORY "/var/mail"
7991 elif test $bash_cv_mail_dir = "/usr/mail"; then
7992 cat >> confdefs.h <<\EOF
7993 #define DEFAULT_MAIL_DIRECTORY "/usr/mail"
7996 elif test $bash_cv_mail_dir = "/var/spool/mail"; then
7997 cat >> confdefs.h <<\EOF
7998 #define DEFAULT_MAIL_DIRECTORY "/var/spool/mail"
8001 elif test $bash_cv_mail_dir = "/usr/spool/mail"; then
8002 cat >> confdefs.h <<\EOF
8003 #define DEFAULT_MAIL_DIRECTORY "/usr/spool/mail"
8007 cat >> confdefs.h <<\EOF
8008 #define DEFAULT_MAIL_DIRECTORY "unknown"
8014 if test "$bash_cv_job_control_missing" = missing; then
8018 if test "$opt_job_control" = yes; then
8019 cat >> confdefs.h <<\EOF
8020 #define JOB_CONTROL 1
8034 case "${host_os}" in
8035 sysv4.2*) cat >> confdefs.h <<\EOF
8039 cat >> confdefs.h <<\EOF
8043 sysv4*) cat >> confdefs.h <<\EOF
8047 sysv5*) cat >> confdefs.h <<\EOF
8051 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
8052 hpux*) LOCAL_CFLAGS=-DHPUX ;;
8053 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
8054 isc*) LOCAL_CFLAGS=-Disc386 ;;
8055 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
8056 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
8057 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
8058 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
8059 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
8060 solaris2.5*) LOCAL_CFLAGS=-DSunOS5 ;;
8061 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
8062 linux*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
8063 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s -lunix -lncurses" ;;
8064 powerux*) LOCAL_LIBS="-lgen" ;;
8065 cygwin32*) LOCAL_LIBS="-luser32" ;;
8066 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG" ;;
8069 case "${host_os}-${CC}" in
8070 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
8071 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
8072 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
8075 case "${host_os}" in
8076 freebsd3*) if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
8077 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
8082 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
8085 case "$host_cpu-$host_os" in
8086 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
8089 case "$host_cpu-$host_vendor-$host_os" in
8090 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
8091 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
8095 # Shared object configuration section. These values are generated by
8096 # ${srcdir}/support/shobj-conf
8098 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
8100 echo $ac_n "checking shared object configuration for loadable builtins""... $ac_c" 1>&6
8101 echo "configure:8102: checking shared object configuration for loadable builtins" >&5
8102 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
8110 echo "$ac_t""$SHOBJ_STATUS" 1>&6
8113 # try to create a directory tree if the source is elsewhere
8114 # this should be packaged into a script accessible via ${srcdir}/support
8117 *) for d in doc tests support lib examples; do # dirs
8118 test -d $d || mkdir $d
8120 for ld in readline glob tilde malloc sh termcap; do # libdirs
8121 test -d lib/$ld || mkdir lib/$ld
8123 test -d examples/loadables || mkdir examples/loadables # loadable builtins
8124 test -d examples/loadables/perl || mkdir examples/loadables/perl
8151 #AC_SUBST(ALLOCA_SOURCE)
8152 #AC_SUBST(ALLOCA_OBJECT)
8155 cat > confcache <<\EOF
8156 # This file is a shell script that caches the results of configure
8157 # tests run on this system so they can be shared between configure
8158 # scripts and configure runs. It is not useful on other systems.
8159 # If it contains results you don't want to keep, you may remove or edit it.
8161 # By default, configure uses ./config.cache as the cache file,
8162 # creating it if it does not exist already. You can give configure
8163 # the --cache-file=FILE option to use a different cache file; that is
8164 # what configure does when it calls configure scripts in
8165 # subdirectories, so they share the cache.
8166 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8167 # config.status only pays attention to the cache file if you give it the
8168 # --recheck option to rerun configure.
8171 # The following way of writing the cache mishandles newlines in values,
8172 # but we know of no workaround that is simple, portable, and efficient.
8173 # So, don't put newlines in cache variables' values.
8174 # Ultrix sh set writes to stderr and can't be redirected directly,
8175 # and sets the high bit in the cache file unless we assign to the vars.
8177 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8179 # `set' does not quote correctly, so add quotes (double-quote substitution
8180 # turns \\\\ into \\, and sed turns \\ into \).
8182 -e "s/'/'\\\\''/g" \
8183 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8186 # `set' quotes correctly as required by POSIX, so do not add quotes.
8187 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8190 if cmp -s $cache_file confcache; then
8193 if test -w $cache_file; then
8194 echo "updating cache $cache_file"
8195 cat confcache > $cache_file
8197 echo "not updating unwritable cache $cache_file"
8202 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8204 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8205 # Let make expand exec_prefix.
8206 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8208 # Any assignment to VPATH causes Sun make to only execute
8209 # the first set of double-colon rules, so remove it if not needed.
8210 # If there is a colon in the path, we need to keep it.
8211 if test "x$srcdir" = x.; then
8212 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8215 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8217 DEFS=-DHAVE_CONFIG_H
8219 # Without the "./", some shells look in PATH for config.status.
8220 : ${CONFIG_STATUS=./config.status}
8222 echo creating $CONFIG_STATUS
8223 rm -f $CONFIG_STATUS
8224 cat > $CONFIG_STATUS <<EOF
8226 # Generated automatically by configure.
8227 # Run this file to recreate the current configuration.
8228 # This directory was configured as follows,
8229 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8231 # $0 $ac_configure_args
8233 # Compiler output produced by configure, useful for debugging
8234 # configure, is in ./config.log if it exists.
8236 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8239 case "\$ac_option" in
8240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8241 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8242 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8243 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8244 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8246 -help | --help | --hel | --he | --h)
8247 echo "\$ac_cs_usage"; exit 0 ;;
8248 *) echo "\$ac_cs_usage"; exit 1 ;;
8252 ac_given_srcdir=$srcdir
8253 ac_given_INSTALL="$INSTALL"
8255 trap 'rm -fr `echo "Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile \
8256 lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile \
8257 lib/tilde/Makefile doc/Makefile support/Makefile \
8258 examples/loadables/Makefile examples/loadables/perl/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8260 cat >> $CONFIG_STATUS <<EOF
8262 # Protect against being on the right side of a sed subst in config.status.
8263 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8264 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8268 s%@CFLAGS@%$CFLAGS%g
8269 s%@CPPFLAGS@%$CPPFLAGS%g
8270 s%@CXXFLAGS@%$CXXFLAGS%g
8271 s%@FFLAGS@%$FFLAGS%g
8273 s%@LDFLAGS@%$LDFLAGS%g
8275 s%@exec_prefix@%$exec_prefix%g
8276 s%@prefix@%$prefix%g
8277 s%@program_transform_name@%$program_transform_name%g
8278 s%@bindir@%$bindir%g
8279 s%@sbindir@%$sbindir%g
8280 s%@libexecdir@%$libexecdir%g
8281 s%@datadir@%$datadir%g
8282 s%@sysconfdir@%$sysconfdir%g
8283 s%@sharedstatedir@%$sharedstatedir%g
8284 s%@localstatedir@%$localstatedir%g
8285 s%@libdir@%$libdir%g
8286 s%@includedir@%$includedir%g
8287 s%@oldincludedir@%$oldincludedir%g
8288 s%@infodir@%$infodir%g
8289 s%@mandir@%$mandir%g
8291 s%@host_alias@%$host_alias%g
8292 s%@host_cpu@%$host_cpu%g
8293 s%@host_vendor@%$host_vendor%g
8294 s%@host_os@%$host_os%g
8295 s%@TESTSCRIPT@%$TESTSCRIPT%g
8296 s%@PURIFY@%$PURIFY%g
8297 s%@MALLOC_TARGET@%$MALLOC_TARGET%g
8298 s%@MALLOC_SRC@%$MALLOC_SRC%g
8299 s%@htmldir@%$htmldir%g
8302 s%@EXEEXT@%$EXEEXT%g
8303 s%@SIGNAMES_H@%$SIGNAMES_H%g
8304 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
8305 s%@STATIC_LD@%$STATIC_LD%g
8306 s%@READLINE_LIB@%$READLINE_LIB%g
8307 s%@READLINE_DEP@%$READLINE_DEP%g
8308 s%@RL_LIBDIR@%$RL_LIBDIR%g
8309 s%@RL_INCLUDE@%$RL_INCLUDE%g
8310 s%@HISTORY_LIB@%$HISTORY_LIB%g
8311 s%@HISTORY_DEP@%$HISTORY_DEP%g
8312 s%@HIST_LIBDIR@%$HIST_LIBDIR%g
8313 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8314 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8315 s%@INSTALL_DATA@%$INSTALL_DATA%g
8317 s%@RANLIB@%$RANLIB%g
8319 s%@SET_MAKE@%$SET_MAKE%g
8320 s%@MAKE_SHELL@%$MAKE_SHELL%g
8321 s%@ALLOCA@%$ALLOCA%g
8322 s%@TERMCAP_LIB@%$TERMCAP_LIB%g
8323 s%@TERMCAP_DEP@%$TERMCAP_DEP%g
8324 s%@JOBS_O@%$JOBS_O%g
8325 s%@SHOBJ_CC@%$SHOBJ_CC%g
8326 s%@SHOBJ_CFLAGS@%$SHOBJ_CFLAGS%g
8327 s%@SHOBJ_LD@%$SHOBJ_LD%g
8328 s%@SHOBJ_LDFLAGS@%$SHOBJ_LDFLAGS%g
8329 s%@SHOBJ_XLDFLAGS@%$SHOBJ_XLDFLAGS%g
8330 s%@SHOBJ_LIBS@%$SHOBJ_LIBS%g
8331 s%@SHOBJ_STATUS@%$SHOBJ_STATUS%g
8332 s%@PROFILE_FLAGS@%$PROFILE_FLAGS%g
8333 s%@incdir@%$incdir%g
8334 s%@BUILD_DIR@%$BUILD_DIR%g
8335 s%@ARFLAGS@%$ARFLAGS%g
8336 s%@BASHVERS@%$BASHVERS%g
8337 s%@BASHPATCH@%$BASHPATCH%g
8338 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
8339 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
8340 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
8341 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
8346 cat >> $CONFIG_STATUS <<\EOF
8348 # Split the substitutions into bite-sized pieces for seds with
8349 # small command number limits, like on Digital OSF/1 and HP-UX.
8350 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8351 ac_file=1 # Number of current file.
8352 ac_beg=1 # First line for current file.
8353 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8356 while $ac_more_lines; do
8357 if test $ac_beg -gt 1; then
8358 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8360 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8362 if test ! -s conftest.s$ac_file; then
8364 rm -f conftest.s$ac_file
8366 if test -z "$ac_sed_cmds"; then
8367 ac_sed_cmds="sed -f conftest.s$ac_file"
8369 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8371 ac_file=`expr $ac_file + 1`
8373 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8376 if test -z "$ac_sed_cmds"; then
8381 cat >> $CONFIG_STATUS <<EOF
8383 CONFIG_FILES=\${CONFIG_FILES-"Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile \
8384 lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile \
8385 lib/tilde/Makefile doc/Makefile support/Makefile \
8386 examples/loadables/Makefile examples/loadables/perl/Makefile"}
8388 cat >> $CONFIG_STATUS <<\EOF
8389 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8390 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8392 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8393 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8394 *) ac_file_in="${ac_file}.in" ;;
8397 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8399 # Remove last slash and all that follows it. Not all systems have dirname.
8400 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8401 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8402 # The file is in a subdirectory.
8403 test ! -d "$ac_dir" && mkdir "$ac_dir"
8404 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8405 # A "../" for each directory in $ac_dir_suffix.
8406 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8408 ac_dir_suffix= ac_dots=
8411 case "$ac_given_srcdir" in
8413 if test -z "$ac_dots"; then top_srcdir=.
8414 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8415 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8417 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8418 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8421 case "$ac_given_INSTALL" in
8422 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8423 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8426 echo creating "$ac_file"
8428 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8430 *Makefile*) ac_comsub="1i\\
8431 # $configure_input" ;;
8435 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8437 s%@configure_input@%$configure_input%g
8438 s%@srcdir@%$srcdir%g
8439 s%@top_srcdir@%$top_srcdir%g
8440 s%@INSTALL@%$INSTALL%g
8441 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8445 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8446 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8448 # ac_d sets the value in "#define NAME VALUE" lines.
8449 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8450 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8453 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8454 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8455 ac_uB='\([ ]\)%\1#\2define\3'
8458 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8459 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8460 ac_eB='$%\1#\2define\3'
8464 if test "${CONFIG_HEADERS+set}" != set; then
8466 cat >> $CONFIG_STATUS <<EOF
8467 CONFIG_HEADERS="config.h"
8469 cat >> $CONFIG_STATUS <<\EOF
8471 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8472 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8474 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8475 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8476 *) ac_file_in="${ac_file}.in" ;;
8479 echo creating $ac_file
8481 rm -f conftest.frag conftest.in conftest.out
8482 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8483 cat $ac_file_inputs > conftest.in
8487 # Transform confdefs.h into a sed script conftest.vals that substitutes
8488 # the proper values into config.h.in to produce config.h. And first:
8489 # Protect against being on the right side of a sed subst in config.status.
8490 # Protect against being in an unquoted here document in config.status.
8492 cat > conftest.hdr <<\EOF
8495 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8499 sed -n -f conftest.hdr confdefs.h > conftest.vals
8502 # This sed command replaces #undef with comments. This is necessary, for
8503 # example, in the case of _POSIX_SOURCE, which is predefined and required
8504 # on some systems where configure will not decide to define it.
8505 cat >> conftest.vals <<\EOF
8506 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8509 # Break up conftest.vals because some shells have a limit on
8510 # the size of here documents, and old seds have small limits too.
8515 ac_lines=`grep -c . conftest.vals`
8516 # grep -c gives empty output for an empty file on some AIX systems.
8517 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8518 # Write a limited-size here document to conftest.frag.
8519 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8520 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8522 sed -f conftest.frag conftest.in > conftest.out
8524 mv conftest.out conftest.in
8526 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8528 mv conftest.tail conftest.vals
8532 cat >> $CONFIG_STATUS <<\EOF
8533 rm -f conftest.frag conftest.h
8534 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8535 cat conftest.in >> conftest.h
8537 if cmp -s $ac_file conftest.h 2>/dev/null; then
8538 echo "$ac_file is unchanged"
8541 # Remove last slash and all that follows it. Not all systems have dirname.
8542 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8543 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8544 # The file is in a subdirectory.
8545 test ! -d "$ac_dir" && mkdir "$ac_dir"
8548 mv conftest.h $ac_file
8553 cat >> $CONFIG_STATUS <<EOF
8556 cat >> $CONFIG_STATUS <<\EOF
8558 # Makefile uses this timestamp file to record whether config.h is up to date.
8559 echo timestamp > stamp-h
8563 chmod +x $CONFIG_STATUS
8564 rm -fr confdefs* $ac_clean_files
8565 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1