3 # From configure.in for Bash 2.01, version 1.28, from autoconf version 2.12
79 # Guess values for system-dependent variables and create Makefiles.
80 # Generated automatically using autoconf version 2.12
81 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83 # This configure script is free software; the Free Software Foundation
84 # gives unlimited permission to copy, distribute and modify it.
88 ac_default_prefix
=/usr
/local
89 # Any additions from configure.in:
91 --with-afs if you are running AFS"
93 --with-curses use the curses library instead of the termcap library"
95 --with-glibc-malloc use the GNU C library version of malloc"
97 --with-gnu-malloc use the GNU version of malloc"
99 --with-purecov configure to postprocess with pure coverage"
101 --with-purify configure to postprocess with purify"
103 --enable-minimal-config a minimal sh-like configuration"
105 --enable-alias enable shell aliases"
107 --enable-array-variables include shell array variables"
109 --enable-bang-history turn on csh-style history substitution"
111 --enable-brace-expansion include brace expansion"
113 --enable-command-timing enable the time reserved word and command timing"
115 --enable-directory-stack enable builtins pushd/popd/dirs"
117 --enable-disabled-builtins allow disabled builtins to still be invoked"
119 --enable-dparen-arithmetic include ((...)) command"
121 --enable-help-builtin include the help builtin"
123 --enable-history turn on command history"
125 --enable-job-control enable job control features"
127 --enable-process-substitution enable process substitution"
129 --enable-prompt-string-decoding turn on escape character decoding in prompts"
131 --enable-readline turn on command line editing"
133 --enable-restricted enable a restricted shell"
135 --enable-select include select command"
137 --enable-usg-echo-default make the echo builtin expand escape sequences by default"
139 # Initialize some variables set by options.
140 # The variables have the same names as the options, with
141 # dashes changed to underlines.
143 cache_file
=.
/config.cache
152 program_transform_name
=s
,x
,x
,
160 bindir
='${exec_prefix}/bin'
161 sbindir
='${exec_prefix}/sbin'
162 libexecdir
='${exec_prefix}/libexec'
163 datadir
='${prefix}/share'
164 sysconfdir
='${prefix}/etc'
165 sharedstatedir
='${prefix}/com'
166 localstatedir
='${prefix}/var'
167 libdir
='${exec_prefix}/lib'
168 includedir
='${prefix}/include'
169 oldincludedir
='/usr/include'
170 infodir
='${prefix}/info'
171 mandir
='${prefix}/man'
173 # Initialize some other variables.
176 # Maximum number of lines to put in a shell here document.
183 # If the previous option needs an argument, assign it.
184 if test -n "$ac_prev"; then
185 eval "$ac_prev=\$ac_option"
191 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
195 # Accept the important Cygnus configure options, so we can diagnose typos.
199 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
201 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
202 bindir
="$ac_optarg" ;;
204 -build |
--build |
--buil |
--bui |
--bu)
206 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
207 build
="$ac_optarg" ;;
209 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
210 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
211 ac_prev
=cache_file
;;
212 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
213 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
214 cache_file
="$ac_optarg" ;;
216 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
218 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
220 datadir
="$ac_optarg" ;;
222 -disable-* |
--disable-*)
223 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
224 # Reject names that are not valid shell variable names.
225 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
226 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
228 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
229 eval "enable_${ac_feature}=no" ;;
231 -enable-* |
--enable-*)
232 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
233 # Reject names that are not valid shell variable names.
234 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
235 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
237 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
242 eval "enable_${ac_feature}='$ac_optarg'" ;;
244 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
245 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
246 |
--exec |
--exe |
--ex)
247 ac_prev
=exec_prefix
;;
248 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
249 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
250 |
--exec=* |
--exe=* |
--ex=*)
251 exec_prefix
="$ac_optarg" ;;
253 -gas |
--gas |
--ga |
--g)
254 # Obsolete; use --with-gas.
257 -help |
--help |
--hel |
--he)
258 # Omit some internal or obsolete options to make the list less imposing.
259 # This message is too long to be a string in the A/UX 3.1 sh.
261 Usage: configure [options] [host]
262 Options: [defaults in brackets after descriptions]
264 --cache-file=FILE cache test results in FILE
265 --help print this message
266 --no-create do not create output files
267 --quiet, --silent do not print \`checking...' messages
268 --version print the version of autoconf that created configure
269 Directory and file names:
270 --prefix=PREFIX install architecture-independent files in PREFIX
272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
274 --bindir=DIR user executables in DIR [EPREFIX/bin]
275 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
276 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
277 --datadir=DIR read-only architecture-independent data in DIR
279 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
280 --sharedstatedir=DIR modifiable architecture-independent data in DIR
282 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
283 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
284 --includedir=DIR C header files in DIR [PREFIX/include]
285 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
286 --infodir=DIR info documentation in DIR [PREFIX/info]
287 --mandir=DIR man documentation in DIR [PREFIX/man]
288 --srcdir=DIR find the sources in DIR [configure dir or ..]
289 --program-prefix=PREFIX prepend PREFIX to installed program names
290 --program-suffix=SUFFIX append SUFFIX to installed program names
291 --program-transform-name=PROGRAM
292 run sed PROGRAM on installed program names
296 --build=BUILD configure for building on BUILD [BUILD=HOST]
297 --host=HOST configure for HOST [guessed]
298 --target=TARGET configure for TARGET [TARGET=HOST]
299 Features and packages:
300 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
302 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
303 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
304 --x-includes=DIR X include files are in DIR
305 --x-libraries=DIR X library files are in DIR
307 if test -n "$ac_help"; then
308 echo "--enable and --with options recognized:$ac_help"
312 -host |
--host |
--hos |
--ho)
314 -host=* |
--host=* |
--hos=* |
--ho=*)
317 -includedir |
--includedir |
--includedi |
--included |
--include \
318 |
--includ |
--inclu |
--incl |
--inc)
319 ac_prev
=includedir
;;
320 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
321 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
322 includedir
="$ac_optarg" ;;
324 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
326 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
327 infodir
="$ac_optarg" ;;
329 -libdir |
--libdir |
--libdi |
--libd)
331 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
332 libdir
="$ac_optarg" ;;
334 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
335 |
--libexe |
--libex |
--libe)
336 ac_prev
=libexecdir
;;
337 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
338 |
--libexe=* |
--libex=* |
--libe=*)
339 libexecdir
="$ac_optarg" ;;
341 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
342 |
--localstate |
--localstat |
--localsta |
--localst \
343 |
--locals |
--local |
--loca |
--loc |
--lo)
344 ac_prev
=localstatedir
;;
345 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
346 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
347 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
348 localstatedir
="$ac_optarg" ;;
350 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
352 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
353 mandir
="$ac_optarg" ;;
356 # Obsolete; use --without-fp.
359 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
363 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
364 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
367 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
368 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
369 |
--oldin |
--oldi |
--old |
--ol |
--o)
370 ac_prev
=oldincludedir
;;
371 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
372 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
373 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
374 oldincludedir
="$ac_optarg" ;;
376 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
378 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
379 prefix
="$ac_optarg" ;;
381 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
382 |
--program-pre |
--program-pr |
--program-p)
383 ac_prev
=program_prefix
;;
384 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
385 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
386 program_prefix
="$ac_optarg" ;;
388 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
389 |
--program-suf |
--program-su |
--program-s)
390 ac_prev
=program_suffix
;;
391 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
392 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
393 program_suffix
="$ac_optarg" ;;
395 -program-transform-name |
--program-transform-name \
396 |
--program-transform-nam |
--program-transform-na \
397 |
--program-transform-n |
--program-transform- \
398 |
--program-transform |
--program-transfor \
399 |
--program-transfo |
--program-transf \
400 |
--program-trans |
--program-tran \
401 |
--progr-tra |
--program-tr |
--program-t)
402 ac_prev
=program_transform_name
;;
403 -program-transform-name=* |
--program-transform-name=* \
404 |
--program-transform-nam=* |
--program-transform-na=* \
405 |
--program-transform-n=* |
--program-transform-=* \
406 |
--program-transform=* |
--program-transfor=* \
407 |
--program-transfo=* |
--program-transf=* \
408 |
--program-trans=* |
--program-tran=* \
409 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
410 program_transform_name
="$ac_optarg" ;;
412 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
413 |
-silent |
--silent |
--silen |
--sile |
--sil)
416 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
418 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
420 sbindir
="$ac_optarg" ;;
422 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
423 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
424 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
426 ac_prev
=sharedstatedir
;;
427 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
428 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
429 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
431 sharedstatedir
="$ac_optarg" ;;
433 -site |
--site |
--sit)
435 -site=* |
--site=* |
--sit=*)
438 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
440 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
441 srcdir
="$ac_optarg" ;;
443 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
444 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
445 ac_prev
=sysconfdir
;;
446 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
447 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
448 sysconfdir
="$ac_optarg" ;;
450 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
452 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
453 target
="$ac_optarg" ;;
455 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
458 -version |
--version |
--versio |
--versi |
--vers)
459 echo "configure generated by autoconf version 2.12"
463 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
464 # Reject names that are not valid shell variable names.
465 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
466 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
468 ac_package
=`echo $ac_package| sed 's/-/_/g'`
473 eval "with_${ac_package}='$ac_optarg'" ;;
475 -without-* |
--without-*)
476 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
477 # Reject names that are not valid shell variable names.
478 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
479 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
481 ac_package
=`echo $ac_package| sed 's/-/_/g'`
482 eval "with_${ac_package}=no" ;;
485 # Obsolete; use --with-x.
488 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
489 |
--x-incl |
--x-inc |
--x-in |
--x-i)
490 ac_prev
=x_includes
;;
491 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
492 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
493 x_includes
="$ac_optarg" ;;
495 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
496 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
497 ac_prev
=x_libraries
;;
498 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
499 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
500 x_libraries
="$ac_optarg" ;;
502 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
506 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
507 echo "configure: warning: $ac_option: invalid host type" 1>&2
509 if test "x$nonopt" != xNONE
; then
510 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
518 if test -n "$ac_prev"; then
519 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
522 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
524 # File descriptor usage:
527 # 2 errors and warnings
528 # 3 some systems may open it to /dev/tty
529 # 4 used on the Kubota Titan
530 # 6 checking for... messages and results
531 # 5 compiler messages saved in config.log
532 if test "$silent" = yes; then
540 This file contains any messages produced by compilers while
541 running configure, to aid debugging if configure makes a mistake.
544 # Strip out --no-create and --no-recursion so they do not pile up.
545 # Also quote any args containing shell metacharacters.
550 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
551 |
--no-cr |
--no-c) ;;
552 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
553 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
554 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
555 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
556 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
561 # Only set these to C if already set. These must not be set unconditionally
562 # because not all systems understand e.g. LANG=C (notably SCO).
563 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
564 # Non-C LC_CTYPE values break the ctype check.
565 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
566 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
567 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
568 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
570 # confdefs.h avoids OS command line length limits that DEFS can exceed.
571 rm -rf conftest
* confdefs.h
572 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
575 # A filename unique to this package, relative to the directory that
576 # configure is in, which we can look for to find out if srcdir is correct.
577 ac_unique_file
=shell.h
579 # Find the source files, if location was not specified.
580 if test -z "$srcdir"; then
581 ac_srcdir_defaulted
=yes
582 # Try the directory containing this script, then its parent.
584 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
585 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
587 if test ! -r $srcdir/$ac_unique_file; then
591 ac_srcdir_defaulted
=no
593 if test ! -r $srcdir/$ac_unique_file; then
594 if test "$ac_srcdir_defaulted" = yes; then
595 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
597 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
600 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
602 # Prefer explicitly selected file to automatically selected ones.
603 if test -z "$CONFIG_SITE"; then
604 if test "x$prefix" != xNONE
; then
605 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
607 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
610 for ac_site_file
in $CONFIG_SITE; do
611 if test -r "$ac_site_file"; then
612 echo "loading site script $ac_site_file"
617 if test -r "$cache_file"; then
618 echo "loading cache $cache_file"
621 echo "creating cache $cache_file"
626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
627 ac_cpp
='$CPP $CPPFLAGS'
628 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
629 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
630 cross_compiling
=$ac_cv_prog_cc_cross
632 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
633 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
634 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
641 ac_n
= ac_c
='\c' ac_t
=
650 for ac_dir
in .
/support
$srcdir/.
/support
; do
651 if test -f $ac_dir/install-sh
; then
653 ac_install_sh
="$ac_aux_dir/install-sh -c"
655 elif test -f $ac_dir/install.sh
; then
657 ac_install_sh
="$ac_aux_dir/install.sh -c"
661 if test -z "$ac_aux_dir"; then
662 { echo "configure: error: can not find install-sh or install.sh in ./support $srcdir/./support" 1>&2; exit 1; }
664 ac_config_guess
=$ac_aux_dir/config.guess
665 ac_config_sub
=$ac_aux_dir/config.sub
666 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
670 # Make sure we can run config.sub.
671 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
672 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
675 echo $ac_n "checking host system type""... $ac_c" 1>&6
676 echo "configure:677: checking host system type" >&5
679 case "$host_alias" in
683 if host_alias
=`$ac_config_guess`; then :
684 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
686 *) host_alias
=$nonopt ;;
690 host=`$ac_config_sub $host_alias`
691 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
692 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
693 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
694 echo "$ac_t""$host" 1>&6
704 case "${host_cpu}-${host_os}" in
705 alpha-
*) opt_gnu_malloc
=no
;; # alpha running osf/1 or linux
706 *cray
*-*) opt_gnu_malloc
=no
;; # Crays
707 *-osf1*) opt_gnu_malloc
=no
;; # other osf/1 machines
708 sparc-svr4
*) opt_gnu_malloc
=no
;; # sparc SVR4, SVR4.2
709 sparc-netbsd
*) opt_gnu_malloc
=no
;; # needs 8-byte alignment
710 sgi-irix6
*) opt_gnu_malloc
=no
;; # needs 8-byte alignment
711 sparc-linux
*) opt_gnu_malloc
=no
;; # sparc running linux; requires ELF
712 *-freebsd*) opt_gnu_malloc
=no
;; # they claim it's better
713 *-aix*) opt_gnu_malloc
=no
;; # AIX machines
714 *-nextstep*) opt_gnu_malloc
=no
;; # NeXT machines running NeXTstep
715 *-dgux*) opt_gnu_malloc
=no
;; # DG/UX machines
716 *-qnx*) opt_gnu_malloc
=no
;; # QNX 4.2
717 *-machten4) opt_gnu_malloc
=no
;; # MachTen 4.x
718 *-bsdi2.1|
*-bsdi3.0
) opt_gnu_malloc
=no
; : ${CC:=shlicc2} ;; # for loadable builtins
721 # Check whether --with-afs or --without-afs was given.
722 if test "${with_afs+set}" = set; then
727 # Check whether --with-curses or --without-curses was given.
728 if test "${with_curses+set}" = set; then
729 withval
="$with_curses"
733 # Check whether --with-glibc-malloc or --without-glibc-malloc was given.
734 if test "${with_glibc_malloc+set}" = set; then
735 withval
="$with_glibc_malloc"
736 opt_glibc_malloc
=$withval
739 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
740 if test "${with_gnu_malloc+set}" = set; then
741 withval
="$with_gnu_malloc"
742 opt_gnu_malloc
=$withval
745 # Check whether --with-purecov or --without-purecov was given.
746 if test "${with_purecov+set}" = set; then
747 withval
="$with_purecov"
751 # Check whether --with-purify or --without-purify was given.
752 if test "${with_purify+set}" = set; then
753 withval
="$with_purify"
758 if test "$opt_glibc_malloc" = yes; then
759 MALLOC_TARGET
=gmalloc
761 elif test "$opt_gnu_malloc" = yes; then
765 MALLOC_TARGET
=stubmalloc
769 if test "$opt_purify" = yes; then
775 if test "$opt_purecov" = yes; then
776 PURIFY
="${PURIFY}purecov"
779 if test "$opt_afs" = yes; then
780 cat >> confdefs.h
<<\EOF
786 if test "$opt_curses" = yes; then
790 opt_minimal_config
=no
799 opt_process_subst
=yes
800 opt_prompt_decoding
=yes
803 opt_array_variables
=yes
805 opt_brace_expansion
=yes
806 opt_disabled_builtins
=no
807 opt_command_timing
=yes
810 # Check whether --enable-minimal-config or --disable-minimal-config was given.
811 if test "${enable_minimal_config+set}" = set; then
812 enableval
="$enable_minimal_config"
813 opt_minimal_config
=$enableval
817 if test $opt_minimal_config = yes; then
818 opt_job_control
=no opt_alias
=no opt_readline
=no
819 opt_history
=no opt_bang_history
=no opt_dirstack
=no
820 opt_restricted
=no opt_process_subst
=no opt_prompt_decoding
=no
821 opt_select
=no opt_help
=no opt_array_variables
=no opt_dparen_arith
=no
822 opt_brace_expansion
=no opt_disabled_builtins
=no opt_command_timing
=no
825 # Check whether --enable-alias or --disable-alias was given.
826 if test "${enable_alias+set}" = set; then
827 enableval
="$enable_alias"
831 # Check whether --enable-array-variables or --disable-array-variables was given.
832 if test "${enable_array_variables+set}" = set; then
833 enableval
="$enable_array_variables"
834 opt_array_variables
=$enableval
837 # Check whether --enable-bang-history or --disable-bang-history was given.
838 if test "${enable_bang_history+set}" = set; then
839 enableval
="$enable_bang_history"
840 opt_bang_history
=$enableval
843 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
844 if test "${enable_brace_expansion+set}" = set; then
845 enableval
="$enable_brace_expansion"
846 opt_brace_expansion
=$enableval
849 # Check whether --enable-command-timing or --disable-command-timing was given.
850 if test "${enable_command_timing+set}" = set; then
851 enableval
="$enable_command_timing"
852 opt_command_timing
=$enableval
855 # Check whether --enable-directory-stack or --disable-directory-stack was given.
856 if test "${enable_directory_stack+set}" = set; then
857 enableval
="$enable_directory_stack"
858 opt_dirstack
=$enableval
861 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
862 if test "${enable_disabled_builtins+set}" = set; then
863 enableval
="$enable_disabled_builtins"
864 opt_disabled_builtins
=$enableval
867 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
868 if test "${enable_dparen_arithmetic+set}" = set; then
869 enableval
="$enable_dparen_arithmetic"
870 opt_dparen_arith
=$enableval
873 # Check whether --enable-help-builtin or --disable-help-builtin was given.
874 if test "${enable_help_builtin+set}" = set; then
875 enableval
="$enable_help_builtin"
879 # Check whether --enable-history or --disable-history was given.
880 if test "${enable_history+set}" = set; then
881 enableval
="$enable_history"
882 opt_history
=$enableval
885 # Check whether --enable-job-control or --disable-job-control was given.
886 if test "${enable_job_control+set}" = set; then
887 enableval
="$enable_job_control"
888 opt_job_control
=$enableval
891 # Check whether --enable-process-substitution or --disable-process-substitution was given.
892 if test "${enable_process_substitution+set}" = set; then
893 enableval
="$enable_process_substitution"
894 opt_process_subst
=$enableval
897 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
898 if test "${enable_prompt_string_decoding+set}" = set; then
899 enableval
="$enable_prompt_string_decoding"
900 opt_prompt_decoding
=$enableval
903 # Check whether --enable-readline or --disable-readline was given.
904 if test "${enable_readline+set}" = set; then
905 enableval
="$enable_readline"
906 opt_readline
=$enableval
909 # Check whether --enable-restricted or --disable-restricted was given.
910 if test "${enable_restricted+set}" = set; then
911 enableval
="$enable_restricted"
912 opt_restricted
=$enableval
915 # Check whether --enable-select or --disable-select was given.
916 if test "${enable_select+set}" = set; then
917 enableval
="$enable_select"
918 opt_select
=$enableval
921 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
922 if test "${enable_usg_echo_default+set}" = set; then
923 enableval
="$enable_usg_echo_default"
924 opt_usg_echo
=$enableval
929 if test $opt_alias = yes; then
930 cat >> confdefs.h
<<\EOF
935 if test $opt_readline = yes; then
936 cat >> confdefs.h
<<\EOF
940 READLINE_LIB
=-lreadline
941 READLINE_DEP
='$(READLINE_LIBRARY)'
943 READLINE_LIB
= READLINE_DEP
=
945 if test $opt_history = yes; then
946 cat >> confdefs.h
<<\EOF
950 HISTORY_LIB
=-lhistory
951 HISTORY_DEP
='$(HISTORY_LIBRARY)'
953 HISTORY_LIB
= HISTORY_DEP
=
955 if test $opt_bang_history = yes; then
956 cat >> confdefs.h
<<\EOF
957 #define BANG_HISTORY 1
960 HISTORY_LIB
=-lhistory
961 HISTORY_DEP
='$(HISTORY_LIBRARY)'
963 HISTORY_LIB
= HISTORY_DEP
=
965 if test $opt_dirstack = yes; then
966 cat >> confdefs.h
<<\EOF
967 #define PUSHD_AND_POPD 1
971 if test $opt_restricted = yes; then
972 cat >> confdefs.h
<<\EOF
973 #define RESTRICTED_SHELL 1
977 if test $opt_process_subst = yes; then
978 cat >> confdefs.h
<<\EOF
979 #define PROCESS_SUBSTITUTION 1
983 if test $opt_prompt_decoding = yes; then
984 cat >> confdefs.h
<<\EOF
985 #define PROMPT_STRING_DECODE 1
989 if test $opt_select = yes; then
990 cat >> confdefs.h
<<\EOF
991 #define SELECT_COMMAND 1
995 if test $opt_help = yes; then
996 cat >> confdefs.h
<<\EOF
997 #define HELP_BUILTIN 1
1001 if test $opt_array_variables = yes; then
1002 cat >> confdefs.h
<<\EOF
1003 #define ARRAY_VARS 1
1007 if test $opt_dparen_arith = yes; then
1008 cat >> confdefs.h
<<\EOF
1009 #define DPAREN_ARITHMETIC 1
1013 if test $opt_brace_expansion = yes; then
1014 cat >> confdefs.h
<<\EOF
1015 #define BRACE_EXPANSION 1
1019 if test $opt_disabled_builtins = yes; then
1020 cat >> confdefs.h
<<\EOF
1021 #define DISABLED_BUILTINS 1
1025 if test $opt_command_timing = yes; then
1026 cat >> confdefs.h
<<\EOF
1027 #define COMMAND_TIMING 1
1031 if test $opt_usg_echo = yes ; then
1032 cat >> confdefs.h
<<\EOF
1033 #define DEFAULT_ECHO_TO_USG 1
1038 if test "$opt_minimal_config" = yes; then
1039 TESTSCRIPT
=run-minimal
1056 echo "Beginning configuration for bash-$BASHVERS"
1058 # Extract the first word of "gcc", so it can be a program name with args.
1059 set dummy gcc
; ac_word
=$2
1060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1061 echo "configure:1062: checking for $ac_word" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 if test -n "$CC"; then
1066 ac_cv_prog_CC
="$CC" # Let the user override the test.
1068 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1069 for ac_dir
in $PATH; do
1070 test -z "$ac_dir" && ac_dir
=.
1071 if test -f $ac_dir/$ac_word; then
1080 if test -n "$CC"; then
1081 echo "$ac_t""$CC" 1>&6
1083 echo "$ac_t""no" 1>&6
1086 if test -z "$CC"; then
1087 # Extract the first word of "cc", so it can be a program name with args.
1088 set dummy cc
; ac_word
=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 if test -n "$CC"; then
1095 ac_cv_prog_CC
="$CC" # Let the user override the test.
1097 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1099 for ac_dir
in $PATH; do
1100 test -z "$ac_dir" && ac_dir
=.
1101 if test -f $ac_dir/$ac_word; then
1102 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1103 ac_prog_rejected
=yes
1111 if test $ac_prog_rejected = yes; then
1112 # We found a bogon in the path, so make sure we never use it.
1113 set dummy
$ac_cv_prog_CC
1115 if test $# -gt 0; then
1116 # We chose a different compiler from the bogus one.
1117 # However, it has the same basename, so the bogon will be chosen
1118 # first if we set CC to just the basename; use the full file name.
1120 set dummy
"$ac_dir/$ac_word" "$@"
1128 if test -n "$CC"; then
1129 echo "$ac_t""$CC" 1>&6
1131 echo "$ac_t""no" 1>&6
1134 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1137 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1141 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1142 ac_cpp
='$CPP $CPPFLAGS'
1143 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1144 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1145 cross_compiling
=$ac_cv_prog_cc_cross
1147 cat > conftest.
$ac_ext <<EOF
1148 #line 1149 "configure"
1149 #include "confdefs.h"
1152 if { (eval echo configure
:1153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1153 ac_cv_prog_cc_works
=yes
1154 # If we can't run a trivial program, we are probably using a cross compiler.
1155 if (.
/conftest
; exit) 2>/dev
/null
; then
1156 ac_cv_prog_cc_cross
=no
1158 ac_cv_prog_cc_cross
=yes
1161 echo "configure: failed program was:" >&5
1162 cat conftest.
$ac_ext >&5
1163 ac_cv_prog_cc_works
=no
1167 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1168 if test $ac_cv_prog_cc_works = no
; then
1169 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1171 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1172 echo "configure:1173: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1173 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1174 cross_compiling
=$ac_cv_prog_cc_cross
1176 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1177 echo "configure:1178: checking whether we are using GNU C" >&5
1178 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 cat > conftest.c
<<EOF
1186 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1193 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1195 if test $ac_cv_prog_gcc = yes; then
1197 ac_test_CFLAGS
="${CFLAGS+set}"
1198 ac_save_CFLAGS
="$CFLAGS"
1200 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1201 echo "configure:1202: checking whether ${CC-cc} accepts -g" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 echo 'void f(){}' > conftest.c
1206 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1215 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1216 if test "$ac_test_CFLAGS" = set; then
1217 CFLAGS
="$ac_save_CFLAGS"
1218 elif test $ac_cv_prog_cc_g = yes; then
1225 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1228 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1229 echo "configure:1230: checking for POSIXized ISC" >&5
1230 if test -d /etc
/conf
/kconfig.d
&&
1231 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1233 echo "$ac_t""yes" 1>&6
1234 ISC
=yes # If later tests want to check for ISC.
1235 cat >> confdefs.h
<<\EOF
1236 #define _POSIX_SOURCE 1
1239 if test "$GCC" = yes; then
1245 echo "$ac_t""no" 1>&6
1249 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1250 echo "configure:1251: checking how to run the C preprocessor" >&5
1251 # On Suns, sometimes $CPP names a directory.
1252 if test -n "$CPP" && test -d "$CPP"; then
1255 if test -z "$CPP"; then
1256 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 # This must be in double quotes, not single quotes, because CPP may get
1260 # substituted into the Makefile and "${CC-cc}" will confuse make.
1262 # On the NeXT, cc -E runs the code through the compiler's parser,
1263 # not just through cpp.
1264 cat > conftest.
$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1270 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1271 { (eval echo configure
:1272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1272 ac_err
=`grep -v '^ *+' conftest.out`
1273 if test -z "$ac_err"; then
1277 echo "configure: failed program was:" >&5
1278 cat conftest.
$ac_ext >&5
1280 CPP
="${CC-cc} -E -traditional-cpp"
1281 cat > conftest.
$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1287 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1288 { (eval echo configure
:1289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1289 ac_err
=`grep -v '^ *+' conftest.out`
1290 if test -z "$ac_err"; then
1294 echo "configure: failed program was:" >&5
1295 cat conftest.
$ac_ext >&5
1302 ac_cv_prog_CPP
="$CPP"
1304 CPP
="$ac_cv_prog_CPP"
1306 ac_cv_prog_CPP
="$CPP"
1308 echo "$ac_t""$CPP" 1>&6
1310 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1311 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1312 echo "configure:1313: checking for minix/config.h" >&5
1313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 cat > conftest.
$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1319 #include <minix/config.h>
1321 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1322 { (eval echo configure
:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1323 ac_err
=`grep -v '^ *+' conftest.out`
1324 if test -z "$ac_err"; then
1326 eval "ac_cv_header_$ac_safe=yes"
1329 echo "configure: failed program was:" >&5
1330 cat conftest.
$ac_ext >&5
1332 eval "ac_cv_header_$ac_safe=no"
1336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1337 echo "$ac_t""yes" 1>&6
1340 echo "$ac_t""no" 1>&6
1344 if test "$MINIX" = yes; then
1345 cat >> confdefs.h
<<\EOF
1346 #define _POSIX_SOURCE 1
1349 cat >> confdefs.h
<<\EOF
1350 #define _POSIX_1_SOURCE 2
1353 cat >> confdefs.h
<<\EOF
1360 test -z "$CFLAGS" && CFLAGS
=-g auto_cflags
=1
1362 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O2"
1368 if test $ac_cv_prog_gcc = yes; then
1369 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1370 echo "configure:1371: checking whether ${CC-cc} needs -traditional" >&5
1371 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1374 ac_pattern
="Autoconf.*'x'"
1375 cat > conftest.
$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1382 egrep "$ac_pattern" >/dev
/null
2>&1; then
1384 ac_cv_prog_gcc_traditional
=yes
1387 ac_cv_prog_gcc_traditional
=no
1392 if test $ac_cv_prog_gcc_traditional = no
; then
1393 cat > conftest.
$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1400 egrep "$ac_pattern" >/dev
/null
2>&1; then
1402 ac_cv_prog_gcc_traditional
=yes
1409 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1410 if test $ac_cv_prog_gcc_traditional = yes; then
1411 CC
="$CC -traditional"
1416 # Find a good install program. We prefer a C program (faster),
1417 # so one script is as good as another. But avoid the broken or
1418 # incompatible versions:
1419 # SysV /etc/install, /usr/sbin/install
1420 # SunOS /usr/etc/install
1421 # IRIX /sbin/install
1423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1425 # ./install, which can be erroneously created by make from ./install.sh.
1426 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1427 echo "configure:1428: checking for a BSD compatible install" >&5
1428 if test -z "$INSTALL"; then
1429 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1433 for ac_dir
in $PATH; do
1434 # Account for people who put trailing slashes in PATH elements.
1436 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1438 # OSF1 and SCO ODT 3.0 have their own names for install.
1439 for ac_prog
in ginstall installbsd scoinst
install; do
1440 if test -f $ac_dir/$ac_prog; then
1441 if test $ac_prog = install &&
1442 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1443 # AIX install. It has an incompatible calling convention.
1444 # OSF/1 installbsd also uses dspmsg, but is usable.
1447 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1458 if test "${ac_cv_path_install+set}" = set; then
1459 INSTALL
="$ac_cv_path_install"
1461 # As a last resort, use the slow shell script. We don't cache a
1462 # path for INSTALL within a source directory, because that will
1463 # break other packages using the cache if that directory is
1464 # removed, or if the path is relative.
1465 INSTALL
="$ac_install_sh"
1468 echo "$ac_t""$INSTALL" 1>&6
1470 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1471 # It thinks the first close brace ends the variable substitution.
1472 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1474 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1476 # Extract the first word of "ar", so it can be a program name with args.
1477 set dummy
ar; ac_word
=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1483 if test -n "$AR"; then
1484 ac_cv_prog_AR
="$AR" # Let the user override the test.
1486 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1487 for ac_dir
in $PATH; do
1488 test -z "$ac_dir" && ac_dir
=.
1489 if test -f $ac_dir/$ac_word; then
1498 if test -n "$AR"; then
1499 echo "$ac_t""$AR" 1>&6
1501 echo "$ac_t""no" 1>&6
1504 # Extract the first word of "ranlib", so it can be a program name with args.
1505 set dummy ranlib
; ac_word
=$2
1506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1507 echo "configure:1508: checking for $ac_word" >&5
1508 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 if test -n "$RANLIB"; then
1512 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1514 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1515 for ac_dir
in $PATH; do
1516 test -z "$ac_dir" && ac_dir
=.
1517 if test -f $ac_dir/$ac_word; then
1518 ac_cv_prog_RANLIB
="ranlib"
1523 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1526 RANLIB
="$ac_cv_prog_RANLIB"
1527 if test -n "$RANLIB"; then
1528 echo "$ac_t""$RANLIB" 1>&6
1530 echo "$ac_t""no" 1>&6
1533 for ac_prog
in 'bison -y' byacc
1535 # Extract the first word of "$ac_prog", so it can be a program name with args.
1536 set dummy
$ac_prog; ac_word
=$2
1537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1538 echo "configure:1539: checking for $ac_word" >&5
1539 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1542 if test -n "$YACC"; then
1543 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1545 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1546 for ac_dir
in $PATH; do
1547 test -z "$ac_dir" && ac_dir
=.
1548 if test -f $ac_dir/$ac_word; then
1549 ac_cv_prog_YACC
="$ac_prog"
1556 YACC
="$ac_cv_prog_YACC"
1557 if test -n "$YACC"; then
1558 echo "$ac_t""$YACC" 1>&6
1560 echo "$ac_t""no" 1>&6
1563 test -n "$YACC" && break
1565 test -n "$YACC" || YACC
="yacc"
1567 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1568 echo "configure:1569: checking whether ${MAKE-make} sets \${MAKE}" >&5
1569 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1570 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 cat > conftestmake
<<\EOF
1575 @
echo 'ac_maketemp="${MAKE}"'
1577 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1578 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1579 if test -n "$ac_maketemp"; then
1580 eval ac_cv_prog_make_
${ac_make}_set
=yes
1582 eval ac_cv_prog_make_
${ac_make}_set
=no
1586 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1587 echo "$ac_t""yes" 1>&6
1590 echo "$ac_t""no" 1>&6
1591 SET_MAKE
="MAKE=${MAKE-make}"
1595 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1596 # for constant arguments. Useless!
1597 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1598 echo "configure:1599: checking for working alloca.h" >&5
1599 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 cat > conftest.
$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1607 char *p = alloca(2 * sizeof(int));
1610 if { (eval echo configure
:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1612 ac_cv_header_alloca_h
=yes
1614 echo "configure: failed program was:" >&5
1615 cat conftest.
$ac_ext >&5
1617 ac_cv_header_alloca_h
=no
1622 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1623 if test $ac_cv_header_alloca_h = yes; then
1624 cat >> confdefs.h
<<\EOF
1625 #define HAVE_ALLOCA_H 1
1630 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1631 echo "configure:1632: checking for alloca" >&5
1632 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 cat > conftest.
$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1640 # define alloca __builtin_alloca
1643 # include <alloca.h>
1648 # ifndef alloca /* predefined by HP cc +Olibcalls */
1656 char *p = (char *) alloca(1);
1659 if { (eval echo configure
:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1661 ac_cv_func_alloca_works
=yes
1663 echo "configure: failed program was:" >&5
1664 cat conftest.
$ac_ext >&5
1666 ac_cv_func_alloca_works
=no
1671 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1672 if test $ac_cv_func_alloca_works = yes; then
1673 cat >> confdefs.h
<<\EOF
1674 #define HAVE_ALLOCA 1
1679 if test $ac_cv_func_alloca_works = no
; then
1680 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1681 # that cause trouble. Some versions do not even contain alloca or
1682 # contain a buggy version. If you still want to use their alloca,
1683 # use ar to extract alloca.o from them instead of compiling alloca.c.
1685 cat >> confdefs.h
<<\EOF
1690 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1691 echo "configure:1692: checking whether alloca needs Cray hooks" >&5
1692 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1695 cat > conftest.
$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1698 #if defined(CRAY) && ! defined(CRAY2)
1705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1706 egrep "webecray" >/dev
/null
2>&1; then
1717 echo "$ac_t""$ac_cv_os_cray" 1>&6
1718 if test $ac_cv_os_cray = yes; then
1719 for ac_func
in _getb67 GETB67 getb67
; do
1720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1721 echo "configure:1722: checking for $ac_func" >&5
1722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 cat > conftest.
$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 /* System header to define __stub macros and hopefully few prototypes,
1729 which can conflict with char $ac_func(); below. */
1731 /* Override any gcc2 internal prototype to avoid an error. */
1732 /* We use char because int might match the return type of a gcc2
1733 builtin and then its argument prototype would still apply. */
1738 /* The GNU C library defines this for functions which it implements
1739 to always fail with ENOSYS. Some functions are actually named
1740 something starting with __ and the normal name is an alias. */
1741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1749 if { (eval echo configure
:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1751 eval "ac_cv_func_$ac_func=yes"
1753 echo "configure: failed program was:" >&5
1754 cat conftest.
$ac_ext >&5
1756 eval "ac_cv_func_$ac_func=no"
1761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1762 echo "$ac_t""yes" 1>&6
1763 cat >> confdefs.h
<<EOF
1764 #define CRAY_STACKSEG_END $ac_func
1769 echo "$ac_t""no" 1>&6
1775 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1776 echo "configure:1777: checking stack direction for C alloca" >&5
1777 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 if test "$cross_compiling" = yes; then
1781 ac_cv_c_stack_direction
=0
1783 cat > conftest.
$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1786 find_stack_direction ()
1788 static char *addr = 0;
1793 return find_stack_direction ();
1796 return (&dummy > addr) ? 1 : -1;
1800 exit (find_stack_direction() < 0);
1803 if { (eval echo configure
:1804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1805 ac_cv_c_stack_direction
=1
1807 echo "configure: failed program was:" >&5
1808 cat conftest.
$ac_ext >&5
1810 ac_cv_c_stack_direction
=-1
1817 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1818 cat >> confdefs.h
<<EOF
1819 #define STACK_DIRECTION $ac_cv_c_stack_direction
1824 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
1825 echo "configure:1826: checking whether getpgrp takes no argument" >&5
1826 if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 if test "$cross_compiling" = yes; then
1830 { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
1832 cat > conftest.
$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1837 * If this system has a BSD-style getpgrp(),
1838 * which takes a pid argument, exit unsuccessfully.
1840 * Snarfed from Chet Ramey's bash pgrp.c test program
1843 #include <sys/types.h>
1846 int pg1, pg2, pg3, pg4;
1847 int ng, np, s, child;
1858 * If all of these values are the same, it's pretty sure that
1859 * we're on a system that ignores getpgrp's first argument.
1861 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
1867 else if (child == 0) {
1870 * If this is Sys V, this will not work; pgrp will be
1871 * set to np because setpgrp just changes a pgrp to be
1872 * the same as the pid.
1875 ng = getpgrp(0); /* Same result for Sys V and BSD */
1888 if { (eval echo configure
:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1890 ac_cv_func_getpgrp_void
=yes
1892 echo "configure: failed program was:" >&5
1893 cat conftest.
$ac_ext >&5
1895 ac_cv_func_getpgrp_void
=no
1903 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
1904 if test $ac_cv_func_getpgrp_void = yes; then
1905 cat >> confdefs.h
<<\EOF
1906 #define GETPGRP_VOID 1
1911 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
1912 echo "configure:1913: checking whether setvbuf arguments are reversed" >&5
1913 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 if test "$cross_compiling" = yes; then
1917 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1919 cat > conftest.
$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1923 /* If setvbuf has the reversed format, exit 0. */
1925 /* This call has the arguments reversed.
1926 A reversed system may check and see that the address of main
1927 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
1928 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
1931 exit(0); /* Non-reversed systems segv here. */
1934 if { (eval echo configure
:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1936 ac_cv_func_setvbuf_reversed
=yes
1938 echo "configure: failed program was:" >&5
1939 cat conftest.
$ac_ext >&5
1941 ac_cv_func_setvbuf_reversed
=no
1946 rm -f core core.
* *.core
1949 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
1950 if test $ac_cv_func_setvbuf_reversed = yes; then
1951 cat >> confdefs.h
<<\EOF
1952 #define SETVBUF_REVERSED 1
1957 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1958 echo "configure:1959: checking for vprintf" >&5
1959 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 cat > conftest.
$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1965 /* System header to define __stub macros and hopefully few prototypes,
1966 which can conflict with char vprintf(); below. */
1968 /* Override any gcc2 internal prototype to avoid an error. */
1969 /* We use char because int might match the return type of a gcc2
1970 builtin and then its argument prototype would still apply. */
1975 /* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1986 if { (eval echo configure
:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1988 eval "ac_cv_func_vprintf=yes"
1990 echo "configure: failed program was:" >&5
1991 cat conftest.
$ac_ext >&5
1993 eval "ac_cv_func_vprintf=no"
1998 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1999 echo "$ac_t""yes" 1>&6
2000 cat >> confdefs.h
<<\EOF
2001 #define HAVE_VPRINTF 1
2005 echo "$ac_t""no" 1>&6
2008 if test "$ac_cv_func_vprintf" != yes; then
2009 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2010 echo "configure:2011: checking for _doprnt" >&5
2011 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 cat > conftest.
$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2017 /* System header to define __stub macros and hopefully few prototypes,
2018 which can conflict with char _doprnt(); below. */
2020 /* Override any gcc2 internal prototype to avoid an error. */
2021 /* We use char because int might match the return type of a gcc2
2022 builtin and then its argument prototype would still apply. */
2027 /* The GNU C library defines this for functions which it implements
2028 to always fail with ENOSYS. Some functions are actually named
2029 something starting with __ and the normal name is an alias. */
2030 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2038 if { (eval echo configure
:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2040 eval "ac_cv_func__doprnt=yes"
2042 echo "configure: failed program was:" >&5
2043 cat conftest.
$ac_ext >&5
2045 eval "ac_cv_func__doprnt=no"
2050 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2051 echo "$ac_t""yes" 1>&6
2052 cat >> confdefs.h
<<\EOF
2053 #define HAVE_DOPRNT 1
2057 echo "$ac_t""no" 1>&6
2062 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
2063 echo "configure:2064: checking for wait3 that fills in rusage" >&5
2064 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 if test "$cross_compiling" = yes; then
2068 ac_cv_func_wait3_rusage
=no
2070 cat > conftest.
$ac_ext <<EOF
2071 #line 2072 "configure"
2072 #include "confdefs.h"
2073 #include <sys/types.h>
2074 #include <sys/time.h>
2075 #include <sys/resource.h>
2077 /* HP-UX has wait3 but does not fill in rusage at all. */
2081 /* Use a field that we can force nonzero --
2082 voluntary context switches.
2083 For systems like NeXT and OSF/1 that don't set it,
2084 also use the system CPU time. And page faults (I/O) for Linux. */
2086 r.ru_stime.tv_sec = 0;
2087 r.ru_stime.tv_usec = 0;
2088 r.ru_majflt = r.ru_minflt = 0;
2090 case 0: /* Child. */
2091 sleep(1); /* Give up the CPU. */
2093 case -1: _exit(0); /* What can we do? */
2094 default: /* Parent. */
2096 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
2097 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
2098 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
2102 if { (eval echo configure
:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2104 ac_cv_func_wait3_rusage
=yes
2106 echo "configure: failed program was:" >&5
2107 cat conftest.
$ac_ext >&5
2109 ac_cv_func_wait3_rusage
=no
2116 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
2117 if test $ac_cv_func_wait3_rusage = yes; then
2118 cat >> confdefs.h
<<\EOF
2119 #define HAVE_WAIT3 1
2124 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
2125 echo "configure:2126: checking for working strcoll" >&5
2126 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 if test "$cross_compiling" = yes; then
2130 ac_cv_func_strcoll_works
=no
2132 cat > conftest.
$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2138 exit (strcoll ("abc", "def") >= 0 ||
2139 strcoll ("ABC", "DEF") >= 0 ||
2140 strcoll ("123", "456") >= 0);
2143 if { (eval echo configure
:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2145 ac_cv_func_strcoll_works
=yes
2147 echo "configure: failed program was:" >&5
2148 cat conftest.
$ac_ext >&5
2150 ac_cv_func_strcoll_works
=no
2157 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
2158 if test $ac_cv_func_strcoll_works = yes; then
2159 cat >> confdefs.h
<<\EOF
2160 #define HAVE_STRCOLL 1
2166 if test "$ac_cv_func_vprintf" = no
; then
2167 echo $ac_n "checking for declaration of vprintf in stdio.h""... $ac_c" 1>&6
2168 echo "configure:2169: checking for declaration of vprintf in stdio.h" >&5
2169 cat > conftest.
$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2175 egrep "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev
/null
2>&1; then
2177 ac_cv_func_vprintf
=yes
2181 echo "$ac_t""$ac_cv_func_vprintf" 1>&6
2182 if test $ac_cv_func_vprintf = yes; then
2183 cat >> confdefs.h
<<\EOF
2184 #define HAVE_VPRINTF 1
2190 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2191 echo "configure:2192: checking return type of signal handlers" >&5
2192 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 cat > conftest.
$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 #include <sys/types.h>
2204 extern "C" void (*signal (int, void (*)(int)))(int);
2206 void (*signal ()) ();
2213 if { (eval echo configure
:2214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2215 ac_cv_type_signal
=void
2217 echo "configure: failed program was:" >&5
2218 cat conftest.
$ac_ext >&5
2220 ac_cv_type_signal
=int
2225 echo "$ac_t""$ac_cv_type_signal" 1>&6
2226 cat >> confdefs.h
<<EOF
2227 #define RETSIGTYPE $ac_cv_type_signal
2232 echo $ac_n "checking for __setostype""... $ac_c" 1>&6
2233 echo "configure:2234: checking for __setostype" >&5
2234 if eval "test \"`echo '$''{'ac_cv_func___setostype'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.
$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 /* System header to define __stub macros and hopefully few prototypes,
2241 which can conflict with char __setostype(); below. */
2243 /* Override any gcc2 internal prototype to avoid an error. */
2244 /* We use char because int might match the return type of a gcc2
2245 builtin and then its argument prototype would still apply. */
2250 /* The GNU C library defines this for functions which it implements
2251 to always fail with ENOSYS. Some functions are actually named
2252 something starting with __ and the normal name is an alias. */
2253 #if defined (__stub___setostype) || defined (__stub_____setostype)
2261 if { (eval echo configure
:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2263 eval "ac_cv_func___setostype=yes"
2265 echo "configure: failed program was:" >&5
2266 cat conftest.
$ac_ext >&5
2268 eval "ac_cv_func___setostype=no"
2273 if eval "test \"`echo '$ac_cv_func_'__setostype`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2275 cat >> confdefs.h
<<\EOF
2276 #define HAVE_SETOSTYPE 1
2280 echo "$ac_t""no" 1>&6
2283 echo $ac_n "checking for wait3""... $ac_c" 1>&6
2284 echo "configure:2285: checking for wait3" >&5
2285 if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 cat > conftest.
$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 /* System header to define __stub macros and hopefully few prototypes,
2292 which can conflict with char wait3(); below. */
2294 /* Override any gcc2 internal prototype to avoid an error. */
2295 /* We use char because int might match the return type of a gcc2
2296 builtin and then its argument prototype would still apply. */
2301 /* The GNU C library defines this for functions which it implements
2302 to always fail with ENOSYS. Some functions are actually named
2303 something starting with __ and the normal name is an alias. */
2304 #if defined (__stub_wait3) || defined (__stub___wait3)
2312 if { (eval echo configure
:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2314 eval "ac_cv_func_wait3=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 eval "ac_cv_func_wait3=no"
2324 if eval "test \"`echo '$ac_cv_func_'wait3`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 cat >> confdefs.h
<<\EOF
2327 #define HAVE_WAIT3 1
2331 echo "$ac_t""no" 1>&6
2335 echo $ac_n "checking for mkfifo""... $ac_c" 1>&6
2336 echo "configure:2337: checking for mkfifo" >&5
2337 if eval "test \"`echo '$''{'ac_cv_func_mkfifo'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 cat > conftest.
$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2343 /* System header to define __stub macros and hopefully few prototypes,
2344 which can conflict with char mkfifo(); below. */
2346 /* Override any gcc2 internal prototype to avoid an error. */
2347 /* We use char because int might match the return type of a gcc2
2348 builtin and then its argument prototype would still apply. */
2353 /* The GNU C library defines this for functions which it implements
2354 to always fail with ENOSYS. Some functions are actually named
2355 something starting with __ and the normal name is an alias. */
2356 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
2364 if { (eval echo configure
:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2366 eval "ac_cv_func_mkfifo=yes"
2368 echo "configure: failed program was:" >&5
2369 cat conftest.
$ac_ext >&5
2371 eval "ac_cv_func_mkfifo=no"
2376 if eval "test \"`echo '$ac_cv_func_'mkfifo`\" = yes"; then
2377 echo "$ac_t""yes" 1>&6
2378 cat >> confdefs.h
<<\EOF
2379 #define HAVE_MKFIFO 1
2383 echo "$ac_t""no" 1>&6
2384 cat >> confdefs.h
<<\EOF
2385 #define MKFIFO_MISSING 1
2391 for ac_func
in dup2
select getdtablesize getgroups gethostname \
2392 setdtablesize getpagesize killpg lstat getpeername \
2393 getrlimit getrusage gettimeofday waitpid tcgetpgrp
2395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2396 echo "configure:2397: checking for $ac_func" >&5
2397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 cat > conftest.
$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 /* System header to define __stub macros and hopefully few prototypes,
2404 which can conflict with char $ac_func(); below. */
2406 /* Override any gcc2 internal prototype to avoid an error. */
2407 /* We use char because int might match the return type of a gcc2
2408 builtin and then its argument prototype would still apply. */
2413 /* The GNU C library defines this for functions which it implements
2414 to always fail with ENOSYS. Some functions are actually named
2415 something starting with __ and the normal name is an alias. */
2416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2424 if { (eval echo configure
:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2426 eval "ac_cv_func_$ac_func=yes"
2428 echo "configure: failed program was:" >&5
2429 cat conftest.
$ac_ext >&5
2431 eval "ac_cv_func_$ac_func=no"
2436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2437 echo "$ac_t""yes" 1>&6
2438 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2439 cat >> confdefs.h
<<EOF
2440 #define $ac_tr_func 1
2444 echo "$ac_t""no" 1>&6
2449 for ac_func
in bcopy bzero confstr getcwd strcasecmp setenv putenv \
2450 setlinebuf setlocale strchr strerror tcgetattr uname \
2451 sysconf
ulimit times tzset siginterrupt memmove
2453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2454 echo "configure:2455: checking for $ac_func" >&5
2455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2458 cat > conftest.
$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2461 /* System header to define __stub macros and hopefully few prototypes,
2462 which can conflict with char $ac_func(); below. */
2464 /* Override any gcc2 internal prototype to avoid an error. */
2465 /* We use char because int might match the return type of a gcc2
2466 builtin and then its argument prototype would still apply. */
2471 /* The GNU C library defines this for functions which it implements
2472 to always fail with ENOSYS. Some functions are actually named
2473 something starting with __ and the normal name is an alias. */
2474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2482 if { (eval echo configure
:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2484 eval "ac_cv_func_$ac_func=yes"
2486 echo "configure: failed program was:" >&5
2487 cat conftest.
$ac_ext >&5
2489 eval "ac_cv_func_$ac_func=no"
2494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2497 cat >> confdefs.h
<<EOF
2498 #define $ac_tr_func 1
2502 echo "$ac_t""no" 1>&6
2507 for ac_hdr
in libintl.h
2509 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2511 echo "configure:2512: checking for $ac_hdr" >&5
2512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 cat > conftest.
$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2520 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2521 { (eval echo configure
:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2522 ac_err
=`grep -v '^ *+' conftest.out`
2523 if test -z "$ac_err"; then
2525 eval "ac_cv_header_$ac_safe=yes"
2528 echo "configure: failed program was:" >&5
2529 cat conftest.
$ac_ext >&5
2531 eval "ac_cv_header_$ac_safe=no"
2535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2536 echo "$ac_t""yes" 1>&6
2537 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2538 cat >> confdefs.h
<<EOF
2539 #define $ac_tr_hdr 1
2543 echo "$ac_t""no" 1>&6
2547 for ac_func
in gettext textdomain bindtextdomain
2549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_func" >&5
2551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 cat > conftest.
$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 /* System header to define __stub macros and hopefully few prototypes,
2558 which can conflict with char $ac_func(); below. */
2560 /* Override any gcc2 internal prototype to avoid an error. */
2561 /* We use char because int might match the return type of a gcc2
2562 builtin and then its argument prototype would still apply. */
2567 /* The GNU C library defines this for functions which it implements
2568 to always fail with ENOSYS. Some functions are actually named
2569 something starting with __ and the normal name is an alias. */
2570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2578 if { (eval echo configure
:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2580 eval "ac_cv_func_$ac_func=yes"
2582 echo "configure: failed program was:" >&5
2583 cat conftest.
$ac_ext >&5
2585 eval "ac_cv_func_$ac_func=no"
2590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2591 echo "$ac_t""yes" 1>&6
2592 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2593 cat >> confdefs.h
<<EOF
2594 #define $ac_tr_func 1
2598 echo "$ac_t""no" 1>&6
2603 if test "$ac_cv_func_bindtextdomain" = "no"; then
2604 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2605 echo "configure:2606: checking for bindtextdomain in -lintl" >&5
2606 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2610 ac_save_LIBS
="$LIBS"
2612 cat > conftest.
$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2615 /* Override any gcc2 internal prototype to avoid an error. */
2616 /* We use char because int might match the return type of a gcc2
2617 builtin and then its argument prototype would still apply. */
2618 char bindtextdomain();
2624 if { (eval echo configure
:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2626 eval "ac_cv_lib_$ac_lib_var=yes"
2628 echo "configure: failed program was:" >&5
2629 cat conftest.
$ac_ext >&5
2631 eval "ac_cv_lib_$ac_lib_var=no"
2634 LIBS
="$ac_save_LIBS"
2637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2639 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2641 cat >> confdefs.h
<<EOF
2642 #define $ac_tr_lib 1
2648 echo "$ac_t""no" 1>&6
2651 if test "$ac_cv_lib_intl" = "yes"; then
2652 for ac_func
in gettext textdomain bindtextdomain
2654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2655 echo "configure:2656: checking for $ac_func" >&5
2656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 cat > conftest.
$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 /* System header to define __stub macros and hopefully few prototypes,
2663 which can conflict with char $ac_func(); below. */
2665 /* Override any gcc2 internal prototype to avoid an error. */
2666 /* We use char because int might match the return type of a gcc2
2667 builtin and then its argument prototype would still apply. */
2672 /* The GNU C library defines this for functions which it implements
2673 to always fail with ENOSYS. Some functions are actually named
2674 something starting with __ and the normal name is an alias. */
2675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2683 if { (eval echo configure
:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2685 eval "ac_cv_func_$ac_func=yes"
2687 echo "configure: failed program was:" >&5
2688 cat conftest.
$ac_ext >&5
2690 eval "ac_cv_func_$ac_func=no"
2695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2696 echo "$ac_t""yes" 1>&6
2697 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2698 cat >> confdefs.h
<<EOF
2699 #define $ac_tr_func 1
2703 echo "$ac_t""no" 1>&6
2710 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2711 echo "configure:2712: checking for dlopen in -ldl" >&5
2712 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 ac_save_LIBS
="$LIBS"
2718 cat > conftest.
$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2721 /* Override any gcc2 internal prototype to avoid an error. */
2722 /* We use char because int might match the return type of a gcc2
2723 builtin and then its argument prototype would still apply. */
2730 if { (eval echo configure
:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2732 eval "ac_cv_lib_$ac_lib_var=yes"
2734 echo "configure: failed program was:" >&5
2735 cat conftest.
$ac_ext >&5
2737 eval "ac_cv_lib_$ac_lib_var=no"
2740 LIBS
="$ac_save_LIBS"
2743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2744 echo "$ac_t""yes" 1>&6
2745 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2746 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2747 cat >> confdefs.h
<<EOF
2748 #define $ac_tr_lib 1
2754 echo "$ac_t""no" 1>&6
2757 for ac_func
in dlopen dlclose dlsym
2759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2760 echo "configure:2761: checking for $ac_func" >&5
2761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 cat > conftest.
$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2767 /* System header to define __stub macros and hopefully few prototypes,
2768 which can conflict with char $ac_func(); below. */
2770 /* Override any gcc2 internal prototype to avoid an error. */
2771 /* We use char because int might match the return type of a gcc2
2772 builtin and then its argument prototype would still apply. */
2777 /* The GNU C library defines this for functions which it implements
2778 to always fail with ENOSYS. Some functions are actually named
2779 something starting with __ and the normal name is an alias. */
2780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2788 if { (eval echo configure
:2789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2790 eval "ac_cv_func_$ac_func=yes"
2792 echo "configure: failed program was:" >&5
2793 cat conftest.
$ac_ext >&5
2795 eval "ac_cv_func_$ac_func=no"
2800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2801 echo "$ac_t""yes" 1>&6
2802 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2803 cat >> confdefs.h
<<EOF
2804 #define $ac_tr_func 1
2808 echo "$ac_t""no" 1>&6
2813 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2814 echo "configure:2815: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2815 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2818 cat > conftest.
$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2821 #include <sys/types.h>
2823 /* NetBSD declares sys_siglist in unistd.h. */
2824 #ifdef HAVE_UNISTD_H
2828 char *msg = *(sys_siglist + 1);
2831 if { (eval echo configure
:2832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2833 ac_cv_decl_sys_siglist
=yes
2835 echo "configure: failed program was:" >&5
2836 cat conftest.
$ac_ext >&5
2838 ac_cv_decl_sys_siglist
=no
2843 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2844 if test $ac_cv_decl_sys_siglist = yes; then
2845 cat >> confdefs.h
<<\EOF
2846 #define SYS_SIGLIST_DECLARED 1
2853 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2855 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2856 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2857 echo "configure:2858: checking for $ac_hdr that defines DIR" >&5
2858 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 cat > conftest.
$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 #include <sys/types.h>
2870 if { (eval echo configure
:2871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2872 eval "ac_cv_header_dirent_$ac_safe=yes"
2874 echo "configure: failed program was:" >&5
2875 cat conftest.
$ac_ext >&5
2877 eval "ac_cv_header_dirent_$ac_safe=no"
2881 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2884 cat >> confdefs.h
<<EOF
2885 #define $ac_tr_hdr 1
2887 ac_header_dirent
=$ac_hdr; break
2889 echo "$ac_t""no" 1>&6
2892 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2893 if test $ac_header_dirent = dirent.h
; then
2894 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2895 echo "configure:2896: checking for opendir in -ldir" >&5
2896 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2898 echo $ac_n "(cached) $ac_c" 1>&6
2900 ac_save_LIBS
="$LIBS"
2902 cat > conftest.
$ac_ext <<EOF
2903 #line 2904 "configure"
2904 #include "confdefs.h"
2905 /* Override any gcc2 internal prototype to avoid an error. */
2906 /* We use char because int might match the return type of a gcc2
2907 builtin and then its argument prototype would still apply. */
2914 if { (eval echo configure
:2915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2916 eval "ac_cv_lib_$ac_lib_var=yes"
2918 echo "configure: failed program was:" >&5
2919 cat conftest.
$ac_ext >&5
2921 eval "ac_cv_lib_$ac_lib_var=no"
2924 LIBS
="$ac_save_LIBS"
2927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2928 echo "$ac_t""yes" 1>&6
2931 echo "$ac_t""no" 1>&6
2935 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2936 echo "configure:2937: checking for opendir in -lx" >&5
2937 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 ac_save_LIBS
="$LIBS"
2943 cat > conftest.
$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 /* Override any gcc2 internal prototype to avoid an error. */
2947 /* We use char because int might match the return type of a gcc2
2948 builtin and then its argument prototype would still apply. */
2955 if { (eval echo configure
:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2957 eval "ac_cv_lib_$ac_lib_var=yes"
2959 echo "configure: failed program was:" >&5
2960 cat conftest.
$ac_ext >&5
2962 eval "ac_cv_lib_$ac_lib_var=no"
2965 LIBS
="$ac_save_LIBS"
2968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2969 echo "$ac_t""yes" 1>&6
2972 echo "$ac_t""no" 1>&6
2977 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2978 echo "configure:2979: checking whether time.h and sys/time.h may both be included" >&5
2979 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2982 cat > conftest.
$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2985 #include <sys/types.h>
2986 #include <sys/time.h>
2992 if { (eval echo configure
:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2994 ac_cv_header_time
=yes
2996 echo "configure: failed program was:" >&5
2997 cat conftest.
$ac_ext >&5
2999 ac_cv_header_time
=no
3004 echo "$ac_t""$ac_cv_header_time" 1>&6
3005 if test $ac_cv_header_time = yes; then
3006 cat >> confdefs.h
<<\EOF
3007 #define TIME_WITH_SYS_TIME 1
3013 for ac_hdr
in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
3014 memory.h locale.h termcap.h termio.h termios.h dlfcn.h
3016 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3018 echo "configure:3019: checking for $ac_hdr" >&5
3019 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3022 cat > conftest.
$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3027 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3028 { (eval echo configure
:3029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3029 ac_err
=`grep -v '^ *+' conftest.out`
3030 if test -z "$ac_err"; then
3032 eval "ac_cv_header_$ac_safe=yes"
3035 echo "configure: failed program was:" >&5
3036 cat conftest.
$ac_ext >&5
3038 eval "ac_cv_header_$ac_safe=no"
3042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3043 echo "$ac_t""yes" 1>&6
3044 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3045 cat >> confdefs.h
<<EOF
3046 #define $ac_tr_hdr 1
3050 echo "$ac_t""no" 1>&6
3054 for ac_hdr
in sys
/ptem.h sys
/pte.h sys
/stream.h sys
/select.h sys
/file.h \
3055 sys
/resource.h sys
/param.h sys
/socket.h \
3056 sys
/time.h sys
/times.h sys
/wait.h
3058 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3060 echo "configure:3061: checking for $ac_hdr" >&5
3061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3064 cat > conftest.
$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3069 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3070 { (eval echo configure
:3071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3071 ac_err
=`grep -v '^ *+' conftest.out`
3072 if test -z "$ac_err"; then
3074 eval "ac_cv_header_$ac_safe=yes"
3077 echo "configure: failed program was:" >&5
3078 cat conftest.
$ac_ext >&5
3080 eval "ac_cv_header_$ac_safe=no"
3084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3085 echo "$ac_t""yes" 1>&6
3086 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3087 cat >> confdefs.h
<<EOF
3088 #define $ac_tr_hdr 1
3092 echo "$ac_t""no" 1>&6
3097 if test "$ac_cv_func_getpeername" = no
; then
3099 if test "X$bash_cv_have_socklib" = "X"; then
3102 echo $ac_n "checking for socket library""... $ac_c" 1>&6
3103 echo "configure:3104: checking for socket library" >&5
3106 if eval "test \"`echo '$''{'bash_cv_have_socklib'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 echo $ac_n "checking for getpeername in -lsocket""... $ac_c" 1>&6
3110 echo "configure:3111: checking for getpeername in -lsocket" >&5
3111 ac_lib_var
=`echo socket'_'getpeername | sed 'y%./+-%__p_%'`
3112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 ac_save_LIBS
="$LIBS"
3116 LIBS
="-lsocket -lnsl $LIBS"
3117 cat > conftest.
$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 /* Override any gcc2 internal prototype to avoid an error. */
3121 /* We use char because int might match the return type of a gcc2
3122 builtin and then its argument prototype would still apply. */
3129 if { (eval echo configure
:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3131 eval "ac_cv_lib_$ac_lib_var=yes"
3133 echo "configure: failed program was:" >&5
3134 cat conftest.
$ac_ext >&5
3136 eval "ac_cv_lib_$ac_lib_var=no"
3139 LIBS
="$ac_save_LIBS"
3142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3143 echo "$ac_t""yes" 1>&6
3144 bash_cv_have_socklib
=yes
3146 echo "$ac_t""no" 1>&6
3147 bash_cv_have_socklib
=no
3152 if test "X$_bash_needmsg" = Xyes
; then
3153 echo "$ac_t""$bash_cv_have_socklib" 1>&6
3156 if test $bash_cv_have_socklib = yes; then
3157 # check for libnsl, add it to LIBS if present
3158 if test "X$bash_cv_have_libnsl" = "X"; then
3161 echo $ac_n "checking for libnsl""... $ac_c" 1>&6
3162 echo "configure:3163: checking for libnsl" >&5
3165 if eval "test \"`echo '$''{'bash_cv_have_libnsl'+set}'`\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3168 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
3169 echo "configure:3170: checking for t_open in -lnsl" >&5
3170 ac_lib_var
=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
3171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 ac_save_LIBS
="$LIBS"
3176 cat > conftest.
$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 /* Override any gcc2 internal prototype to avoid an error. */
3180 /* We use char because int might match the return type of a gcc2
3181 builtin and then its argument prototype would still apply. */
3188 if { (eval echo configure
:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3190 eval "ac_cv_lib_$ac_lib_var=yes"
3192 echo "configure: failed program was:" >&5
3193 cat conftest.
$ac_ext >&5
3195 eval "ac_cv_lib_$ac_lib_var=no"
3198 LIBS
="$ac_save_LIBS"
3201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3202 echo "$ac_t""yes" 1>&6
3203 bash_cv_have_libnsl
=yes
3205 echo "$ac_t""no" 1>&6
3206 bash_cv_have_libnsl
=no
3211 if test "X$_bash_needmsg" = Xyes
; then
3212 echo "$ac_t""$bash_cv_have_libnsl" 1>&6
3215 if test $bash_cv_have_libnsl = yes; then
3216 LIBS
="-lsocket -lnsl $LIBS"
3218 LIBS
="-lsocket $LIBS"
3220 cat >> confdefs.h
<<\EOF
3221 #define HAVE_LIBSOCKET 1
3224 cat >> confdefs.h
<<\EOF
3225 #define HAVE_GETPEERNAME 1
3232 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3233 echo "configure:3234: checking for uid_t in sys/types.h" >&5
3234 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3237 cat > conftest.
$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240 #include <sys/types.h>
3242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3243 egrep "uid_t" >/dev
/null
2>&1; then
3245 ac_cv_type_uid_t
=yes
3254 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3255 if test $ac_cv_type_uid_t = no
; then
3256 cat >> confdefs.h
<<\EOF
3260 cat >> confdefs.h
<<\EOF
3266 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3267 echo "configure:3268: checking type of array argument to getgroups" >&5
3268 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3271 if test "$cross_compiling" = yes; then
3272 ac_cv_type_getgroups
=cross
3274 cat > conftest.
$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3278 /* Thanks to Mike Rendell for this test. */
3279 #include <sys/types.h>
3282 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3287 union { gid_t gval; long lval; } val;
3290 for (i = 0; i < NGID; i++)
3291 gidset[i] = val.gval;
3292 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3294 /* Exit non-zero if getgroups seems to require an array of ints. This
3295 happens when gid_t is short but getgroups modifies an array of ints. */
3296 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3300 if { (eval echo configure
:3301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3302 ac_cv_type_getgroups
=gid_t
3304 echo "configure: failed program was:" >&5
3305 cat conftest.
$ac_ext >&5
3307 ac_cv_type_getgroups
=int
3312 if test $ac_cv_type_getgroups = cross
; then
3313 cat > conftest.
$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3319 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3321 ac_cv_type_getgroups
=gid_t
3324 ac_cv_type_getgroups
=int
3331 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3332 cat >> confdefs.h
<<EOF
3333 #define GETGROUPS_T $ac_cv_type_getgroups
3337 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3338 echo "configure:3339: checking for ANSI C header files" >&5
3339 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3342 cat > conftest.
$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3350 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3351 { (eval echo configure
:3352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3352 ac_err
=`grep -v '^ *+' conftest.out`
3353 if test -z "$ac_err"; then
3355 ac_cv_header_stdc
=yes
3358 echo "configure: failed program was:" >&5
3359 cat conftest.
$ac_ext >&5
3361 ac_cv_header_stdc
=no
3365 if test $ac_cv_header_stdc = yes; then
3366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3367 cat > conftest.
$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3373 egrep "memchr" >/dev
/null
2>&1; then
3377 ac_cv_header_stdc
=no
3383 if test $ac_cv_header_stdc = yes; then
3384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3385 cat > conftest.
$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3391 egrep "free" >/dev
/null
2>&1; then
3395 ac_cv_header_stdc
=no
3401 if test $ac_cv_header_stdc = yes; then
3402 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3403 if test "$cross_compiling" = yes; then
3406 cat > conftest.
$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3410 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3411 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3413 int main () { int i; for (i = 0; i < 256; i++)
3414 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3418 if { (eval echo configure
:3419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3422 echo "configure: failed program was:" >&5
3423 cat conftest.
$ac_ext >&5
3425 ac_cv_header_stdc
=no
3433 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3434 if test $ac_cv_header_stdc = yes; then
3435 cat >> confdefs.h
<<\EOF
3436 #define STDC_HEADERS 1
3441 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3442 echo "configure:3443: checking for off_t" >&5
3443 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3446 cat > conftest.
$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3449 #include <sys/types.h>
3455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3456 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3458 ac_cv_type_off_t
=yes
3466 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3467 if test $ac_cv_type_off_t = no
; then
3468 cat >> confdefs.h
<<\EOF
3474 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3475 echo "configure:3476: checking for mode_t" >&5
3476 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 cat > conftest.
$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3482 #include <sys/types.h>
3488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3489 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3491 ac_cv_type_mode_t
=yes
3494 ac_cv_type_mode_t
=no
3499 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3500 if test $ac_cv_type_mode_t = no
; then
3501 cat >> confdefs.h
<<\EOF
3507 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3508 echo "configure:3509: checking for uid_t in sys/types.h" >&5
3509 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 cat > conftest.
$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 #include <sys/types.h>
3517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3518 egrep "uid_t" >/dev
/null
2>&1; then
3520 ac_cv_type_uid_t
=yes
3529 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3530 if test $ac_cv_type_uid_t = no
; then
3531 cat >> confdefs.h
<<\EOF
3535 cat >> confdefs.h
<<\EOF
3541 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3542 echo "configure:3543: checking for pid_t" >&5
3543 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 cat > conftest.
$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3549 #include <sys/types.h>
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3558 ac_cv_type_pid_t
=yes
3566 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3567 if test $ac_cv_type_pid_t = no
; then
3568 cat >> confdefs.h
<<\EOF
3574 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3575 echo "configure:3576: checking for size_t" >&5
3576 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 cat > conftest.
$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 #include <sys/types.h>
3588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3591 ac_cv_type_size_t
=yes
3594 ac_cv_type_size_t
=no
3599 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3600 if test $ac_cv_type_size_t = no
; then
3601 cat >> confdefs.h
<<\EOF
3602 #define size_t unsigned
3607 echo $ac_n "checking for time_t""... $ac_c" 1>&6
3608 echo "configure:3609: checking for time_t" >&5
3609 if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 cat > conftest.
$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 #include <sys/types.h>
3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 egrep "time_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3624 ac_cv_type_time_t
=yes
3627 ac_cv_type_time_t
=no
3632 echo "$ac_t""$ac_cv_type_time_t" 1>&6
3633 if test $ac_cv_type_time_t = no
; then
3634 cat >> confdefs.h
<<\EOF
3641 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3642 echo "configure:3643: checking return type of signal handlers" >&5
3643 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 cat > conftest.
$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3649 #include <sys/types.h>
3655 extern "C" void (*signal (int, void (*)(int)))(int);
3657 void (*signal ()) ();
3664 if { (eval echo configure
:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3666 ac_cv_type_signal
=void
3668 echo "configure: failed program was:" >&5
3669 cat conftest.
$ac_ext >&5
3671 ac_cv_type_signal
=int
3676 echo "$ac_t""$ac_cv_type_signal" 1>&6
3677 cat >> confdefs.h
<<EOF
3678 #define RETSIGTYPE $ac_cv_type_signal
3683 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3684 echo "configure:3685: checking whether stat file-mode macros are broken" >&5
3685 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3688 cat > conftest.
$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 #include <sys/types.h>
3692 #include <sys/stat.h>
3694 #if defined(S_ISBLK) && defined(S_IFDIR)
3695 # if S_ISBLK (S_IFDIR)
3700 #if defined(S_ISBLK) && defined(S_IFCHR)
3701 # if S_ISBLK (S_IFCHR)
3706 #if defined(S_ISLNK) && defined(S_IFREG)
3707 # if S_ISLNK (S_IFREG)
3712 #if defined(S_ISSOCK) && defined(S_IFREG)
3713 # if S_ISSOCK (S_IFREG)
3719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3720 egrep "You lose" >/dev
/null
2>&1; then
3722 ac_cv_header_stat_broken
=yes
3725 ac_cv_header_stat_broken
=no
3731 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3732 if test $ac_cv_header_stat_broken = yes; then
3733 cat >> confdefs.h
<<\EOF
3734 #define STAT_MACROS_BROKEN 1
3739 cat > conftest.
$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 #include <sys/time.h>
3744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3745 egrep "struct timeval" >/dev
/null
2>&1; then
3747 bash_cv_struct_timeval
=yes
3751 if test -z "$bash_cv_struct_timeval"; then
3752 cat > conftest.
$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3758 egrep "struct timeval" >/dev
/null
2>&1; then
3760 bash_cv_struct_timeval
=yes
3763 bash_cv_struct_timeval
=no
3768 if test $bash_cv_struct_timeval = yes; then
3769 cat >> confdefs.h
<<\EOF
3770 #define HAVE_TIMEVAL 1
3775 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3776 echo "configure:3777: checking whether byte ordering is bigendian" >&5
3777 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 ac_cv_c_bigendian
=unknown
3781 # See if sys/param.h defines the BYTE_ORDER macro.
3782 cat > conftest.
$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3785 #include <sys/types.h>
3786 #include <sys/param.h>
3789 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3794 if { (eval echo configure
:3795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3796 # It does; now see whether it defined to BIG_ENDIAN or not.
3797 cat > conftest.
$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 #include <sys/types.h>
3801 #include <sys/param.h>
3804 #if BYTE_ORDER != BIG_ENDIAN
3809 if { (eval echo configure
:3810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3811 ac_cv_c_bigendian
=yes
3813 echo "configure: failed program was:" >&5
3814 cat conftest.
$ac_ext >&5
3816 ac_cv_c_bigendian
=no
3820 echo "configure: failed program was:" >&5
3821 cat conftest.
$ac_ext >&5
3824 if test $ac_cv_c_bigendian = unknown
; then
3825 if test "$cross_compiling" = yes; then
3826 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3828 cat > conftest.
$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3832 /* Are we little or big endian? From Harbison&Steele. */
3836 char c[sizeof (long)];
3839 exit (u.c[sizeof (long) - 1] == 1);
3842 if { (eval echo configure
:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3844 ac_cv_c_bigendian
=no
3846 echo "configure: failed program was:" >&5
3847 cat conftest.
$ac_ext >&5
3849 ac_cv_c_bigendian
=yes
3857 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3858 if test $ac_cv_c_bigendian = yes; then
3859 cat >> confdefs.h
<<\EOF
3860 #define WORDS_BIGENDIAN 1
3866 # Pull the hash mark out of the macro call to avoid m4 problems.
3867 ac_msg
="whether #! works in shell scripts"
3868 echo $ac_n "checking $ac_msg""... $ac_c" 1>&6
3869 echo "configure:3870: checking $ac_msg" >&5
3870 if eval "test \"`echo '$''{'ac_cv_sys_interpreter'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3877 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
)
3878 if test $?
-ne 69; then
3879 ac_cv_sys_interpreter
=yes
3881 ac_cv_sys_interpreter
=no
3886 echo "$ac_t""$ac_cv_sys_interpreter" 1>&6
3888 if test $ac_cv_sys_interpreter = yes; then
3889 cat >> confdefs.h
<<\EOF
3890 #define HAVE_HASH_BANG_EXEC 1
3894 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
3895 echo "configure:3896: checking for restartable system calls" >&5
3896 if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 if test "$cross_compiling" = yes; then
3900 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3902 cat > conftest.
$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3905 /* Exit 0 (true) if wait returns something other than -1,
3906 i.e. the pid of the child, which means that wait was restarted
3907 after getting the signal. */
3908 #include <sys/types.h>
3912 int i = fork (), status;
3913 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
3914 signal (SIGINT, ucatch);
3916 if (status == -1) wait(&i);
3917 exit (status == -1);
3921 if { (eval echo configure
:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3923 ac_cv_sys_restartable_syscalls
=yes
3925 echo "configure: failed program was:" >&5
3926 cat conftest.
$ac_ext >&5
3928 ac_cv_sys_restartable_syscalls
=no
3935 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
3936 if test $ac_cv_sys_restartable_syscalls = yes; then
3937 cat >> confdefs.h
<<\EOF
3938 #define HAVE_RESTARTABLE_SYSCALLS 1
3944 if test "$ac_cv_func_lstat" = "no"; then
3945 echo $ac_n "checking for lstat""... $ac_c" 1>&6
3946 echo "configure:3947: checking for lstat" >&5
3947 if eval "test \"`echo '$''{'bash_cv_func_lstat'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3950 cat > conftest.
$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3954 #include <sys/types.h>
3955 #include <sys/stat.h>
3958 lstat("",(struct stat *)0);
3961 if { (eval echo configure
:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3963 bash_cv_func_lstat
=yes
3965 echo "configure: failed program was:" >&5
3966 cat conftest.
$ac_ext >&5
3968 bash_cv_func_lstat
=no
3973 echo "$ac_t""$bash_cv_func_lstat" 1>&6
3974 if test $bash_cv_func_lstat = yes; then
3975 cat >> confdefs.h
<<\EOF
3976 #define HAVE_LSTAT 1
3983 echo $ac_n "checking if dup2 fails to clear the close-on-exec flag""... $ac_c" 1>&6
3984 echo "configure:3985: checking if dup2 fails to clear the close-on-exec flag" >&5
3985 if eval "test \"`echo '$''{'bash_cv_dup2_broken'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3988 if test "$cross_compiling" = yes; then
3989 { echo "configure: error: cannot check dup2 if cross compiling" 1>&2; exit 1; }
3991 cat > conftest.
$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3995 #include <sys/types.h>
4000 fd1 = open("/dev/null", 2);
4001 if (fcntl(fd1, 2, 1) < 0)
4006 fl = fcntl(fd2, 1, 0);
4007 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
4012 if { (eval echo configure
:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4014 bash_cv_dup2_broken
=yes
4016 echo "configure: failed program was:" >&5
4017 cat conftest.
$ac_ext >&5
4019 bash_cv_dup2_broken
=no
4027 echo "$ac_t""$bash_cv_dup2_broken" 1>&6
4028 if test $bash_cv_dup2_broken = yes; then
4029 cat >> confdefs.h
<<\EOF
4030 #define DUP2_BROKEN 1
4036 echo $ac_n "checking whether pgrps need synchronization""... $ac_c" 1>&6
4037 echo "configure:4038: checking whether pgrps need synchronization" >&5
4038 if eval "test \"`echo '$''{'bash_cv_pgrp_pipe'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 if test "$cross_compiling" = yes; then
4042 { echo "configure: error: cannot check pgrp synchronization if cross compiling" 1>&2; exit 1; }
4044 cat > conftest.
$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4048 #ifdef HAVE_UNISTD_H
4049 # include <unistd.h>
4053 # ifdef GETPGRP_VOID
4054 # define getpgID() getpgrp()
4056 # define getpgID() getpgrp(0)
4057 # define setpgid(x,y) setpgrp(x,y)
4059 int pid1, pid2, fds[2];
4063 switch (pid1 = fork()) {
4067 setpgid(0, getpid());
4070 setpgid(pid1, pid1);
4072 sleep(2); /* let first child die */
4077 switch (pid2 = fork()) {
4082 ok = getpgID() == pid1;
4083 write(fds[1], &ok, 1);
4086 setpgid(pid2, pid1);
4089 if (read(fds[0], &ok, 1) != 1)
4097 if { (eval echo configure
:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4099 bash_cv_pgrp_pipe
=no
4101 echo "configure: failed program was:" >&5
4102 cat conftest.
$ac_ext >&5
4104 bash_cv_pgrp_pipe
=yes
4112 echo "$ac_t""$bash_cv_pgrp_pipe" 1>&6
4113 if test $bash_cv_pgrp_pipe = yes; then
4114 cat >> confdefs.h
<<\EOF
4121 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
4122 echo "configure:4123: checking for type of signal functions" >&5
4123 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
4124 echo $ac_n "(cached) $ac_c" 1>&6
4127 cat > conftest.
$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4134 struct sigaction sa;
4135 sigemptyset(&ss); sigsuspend(&ss);
4136 sigaction(SIGINT, &sa, (struct sigaction *) 0);
4137 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
4141 if { (eval echo configure
:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4143 bash_cv_signal_vintage
=posix
4145 echo "configure: failed program was:" >&5
4146 cat conftest.
$ac_ext >&5
4149 cat > conftest.
$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4155 int mask = sigmask(SIGINT);
4156 sigsetmask(mask); sigblock(mask); sigpause(mask);
4160 if { (eval echo configure
:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4162 bash_cv_signal_vintage
=4.2bsd
4164 echo "configure: failed program was:" >&5
4165 cat conftest.
$ac_ext >&5
4168 cat > conftest.
$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4173 RETSIGTYPE foo() { }
4176 int mask = sigmask(SIGINT);
4177 sigset(SIGINT, foo); sigrelse(SIGINT);
4178 sighold(SIGINT); sigpause(SIGINT);
4182 if { (eval echo configure
:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4184 bash_cv_signal_vintage
=svr3
4186 echo "configure: failed program was:" >&5
4187 cat conftest.
$ac_ext >&5
4189 bash_cv_signal_vintage
=v7
4202 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
4203 if test "$bash_cv_signal_vintage" = posix
; then
4204 cat >> confdefs.h
<<\EOF
4205 #define HAVE_POSIX_SIGNALS 1
4208 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
4209 cat >> confdefs.h
<<\EOF
4210 #define HAVE_BSD_SIGNALS 1
4213 elif test "$bash_cv_signal_vintage" = svr3
; then
4214 cat >> confdefs.h
<<\EOF
4215 #define HAVE_USG_SIGHOLD 1
4221 echo $ac_n "checking for sys_errlist and sys_nerr""... $ac_c" 1>&6
4222 echo "configure:4223: checking for sys_errlist and sys_nerr" >&5
4223 if eval "test \"`echo '$''{'bash_cv_sys_errlist'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4226 cat > conftest.
$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4231 extern char *sys_errlist[];
4232 extern int sys_nerr;
4233 char *msg = sys_errlist[sys_nerr - 1];
4236 if { (eval echo configure
:4237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4238 bash_cv_sys_errlist
=yes
4240 echo "configure: failed program was:" >&5
4241 cat conftest.
$ac_ext >&5
4243 bash_cv_sys_errlist
=no
4247 echo "$ac_t""$bash_cv_sys_errlist" 1>&6
4248 if test $bash_cv_sys_errlist = yes; then
4249 cat >> confdefs.h
<<\EOF
4250 #define HAVE_SYS_ERRLIST 1
4256 echo $ac_n "checking for sys_siglist in system C library""... $ac_c" 1>&6
4257 echo "configure:4258: checking for sys_siglist in system C library" >&5
4258 if eval "test \"`echo '$''{'bash_cv_sys_siglist'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 if test "$cross_compiling" = yes; then
4262 { echo "configure: error: cannot check for sys_siglist if cross compiling" 1>&2; exit 1; }
4264 cat > conftest.
$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4268 #include <sys/types.h>
4270 #ifdef HAVE_UNISTD_H
4273 #ifndef SYS_SIGLIST_DECLARED
4274 extern char *sys_siglist[];
4278 char *msg = sys_siglist[2];
4282 if { (eval echo configure
:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4284 bash_cv_sys_siglist
=yes
4286 echo "configure: failed program was:" >&5
4287 cat conftest.
$ac_ext >&5
4289 bash_cv_sys_siglist
=no
4295 echo "$ac_t""$bash_cv_sys_siglist" 1>&6
4296 if test $bash_cv_sys_siglist = yes; then
4297 cat >> confdefs.h
<<\EOF
4298 #define HAVE_SYS_SIGLIST 1
4303 echo $ac_n "checking for _sys_siglist in signal.h or unistd.h""... $ac_c" 1>&6
4304 echo "configure:4305: checking for _sys_siglist in signal.h or unistd.h" >&5
4305 if eval "test \"`echo '$''{'bash_cv_decl_under_sys_siglist'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 cat > conftest.
$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4312 #include <sys/types.h>
4314 #ifdef HAVE_UNISTD_H
4318 char *msg = _sys_siglist[2];
4321 if { (eval echo configure
:4322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4323 bash_cv_decl_under_sys_siglist
=yes
4325 echo "configure: failed program was:" >&5
4326 cat conftest.
$ac_ext >&5
4328 bash_cv_decl_under_sys_siglist
=no
4332 echo "$ac_t""$bash_cv_decl_under_sys_siglist" 1>&6
4333 if test $bash_cv_decl_under_sys_siglist = yes; then
4334 cat >> confdefs.h
<<\EOF
4335 #define UNDER_SYS_SIGLIST_DECLARED 1
4341 echo $ac_n "checking for _sys_siglist in system C library""... $ac_c" 1>&6
4342 echo "configure:4343: checking for _sys_siglist in system C library" >&5
4343 if eval "test \"`echo '$''{'bash_cv_under_sys_siglist'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 if test "$cross_compiling" = yes; then
4347 { echo "configure: error: cannot check for _sys_siglist if cross compiling" 1>&2; exit 1; }
4349 cat > conftest.
$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4353 #include <sys/types.h>
4355 #ifdef HAVE_UNISTD_H
4358 #ifndef UNDER_SYS_SIGLIST_DECLARED
4359 extern char *_sys_siglist[];
4363 char *msg = (char *)_sys_siglist[2];
4367 if { (eval echo configure
:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4369 bash_cv_under_sys_siglist
=yes
4371 echo "configure: failed program was:" >&5
4372 cat conftest.
$ac_ext >&5
4374 bash_cv_under_sys_siglist
=no
4380 echo "$ac_t""$bash_cv_under_sys_siglist" 1>&6
4381 if test $bash_cv_under_sys_siglist = yes; then
4382 cat >> confdefs.h
<<\EOF
4383 #define HAVE_UNDER_SYS_SIGLIST 1
4389 echo $ac_n "checking whether signal handlers are of type void""... $ac_c" 1>&6
4390 echo "configure:4391: checking whether signal handlers are of type void" >&5
4391 if eval "test \"`echo '$''{'bash_cv_void_sighandler'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4394 cat > conftest.
$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4397 #include <sys/types.h>
4405 void (*signal ()) ();
4410 if { (eval echo configure
:4411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4412 bash_cv_void_sighandler
=yes
4414 echo "configure: failed program was:" >&5
4415 cat conftest.
$ac_ext >&5
4417 bash_cv_void_sighandler
=no
4421 echo "$ac_t""$bash_cv_void_sighandler" 1>&6
4422 if test $bash_cv_void_sighandler = yes; then
4423 cat >> confdefs.h
<<\EOF
4424 #define VOID_SIGHANDLER 1
4429 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4430 echo "configure:4431: checking for clock_t" >&5
4431 if eval "test \"`echo '$''{'bash_cv_type_clock_t'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 cat > conftest.
$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 #include <sys/types.h>
4441 #include <sys/times.h>
4444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4445 egrep "clock_t" >/dev
/null
2>&1; then
4447 bash_cv_type_clock_t
=yes
4450 bash_cv_type_clock_t
=no
4456 echo "$ac_t""$bash_cv_type_clock_t" 1>&6
4458 if test $bash_cv_type_clock_t = no
; then
4459 cat >> confdefs.h
<<\EOF
4460 #define clock_t long
4465 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4466 echo "configure:4467: checking for sigset_t" >&5
4467 if eval "test \"`echo '$''{'bash_cv_type_sigset_t'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 cat > conftest.
$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 #include <sys/types.h>
4480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4481 egrep "sigset_t" >/dev
/null
2>&1; then
4483 bash_cv_type_sigset_t
=yes
4486 bash_cv_type_sigset_t
=no
4492 echo "$ac_t""$bash_cv_type_sigset_t" 1>&6
4494 if test $bash_cv_type_sigset_t = no
; then
4495 cat >> confdefs.h
<<\EOF
4496 #define sigset_t int
4501 echo $ac_n "checking for quad_t""... $ac_c" 1>&6
4502 echo "configure:4503: checking for quad_t" >&5
4503 if eval "test \"`echo '$''{'bash_cv_type_quad_t'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 cat > conftest.
$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4509 #include <sys/types.h>
4516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517 egrep "quad_t" >/dev
/null
2>&1; then
4519 bash_cv_type_quad_t
=yes
4522 bash_cv_type_quad_t
=no
4528 echo "$ac_t""$bash_cv_type_quad_t" 1>&6
4529 if test $bash_cv_type_quad_t = yes; then
4530 cat >> confdefs.h
<<\EOF
4531 #define HAVE_QUAD_T 1
4535 if test $bash_cv_type_quad_t = no
; then
4536 cat >> confdefs.h
<<\EOF
4542 echo $ac_n "checking for size and type of struct rlimit fields""... $ac_c" 1>&6
4543 echo "configure:4544: checking for size and type of struct rlimit fields" >&5
4544 if eval "test \"`echo '$''{'bash_cv_type_rlimit'+set}'`\" = set"; then
4545 echo $ac_n "(cached) $ac_c" 1>&6
4547 cat > conftest.
$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4550 #include <sys/types.h>
4555 if { (eval echo configure
:4556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4557 bash_cv_type_rlimit
=rlim_t
4559 echo "configure: failed program was:" >&5
4560 cat conftest.
$ac_ext >&5
4563 if test "$cross_compiling" = yes; then
4564 { echo "configure: error: cannot check quad_t if cross compiling" 1>&2; exit 1; }
4566 cat > conftest.
$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4570 #include <sys/types.h>
4571 #include <sys/time.h>
4572 #include <sys/resource.h>
4577 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
4583 if { (eval echo configure
:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4585 bash_cv_type_rlimit
=quad_t
4587 echo "configure: failed program was:" >&5
4588 cat conftest.
$ac_ext >&5
4590 bash_cv_type_rlimit
=long
4600 echo "$ac_t""$bash_cv_type_rlimit" 1>&6
4601 if test $bash_cv_type_rlimit = quad_t
; then
4602 cat >> confdefs.h
<<\EOF
4603 #define RLIMTYPE quad_t
4606 elif test $bash_cv_type_rlimit = rlim_t
; then
4607 cat >> confdefs.h
<<\EOF
4608 #define RLIMTYPE rlim_t
4614 echo $ac_n "checking for a c_line member of struct termios""... $ac_c" 1>&6
4615 echo "configure:4616: checking for a c_line member of struct termios" >&5
4616 if eval "test \"`echo '$''{'bash_cv_termios_ldisc'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 cat > conftest.
$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4622 #include <sys/types.h>
4623 #include <termios.h>
4625 struct termios t; int i; i = t.c_line;
4628 if { (eval echo configure
:4629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4630 bash_cv_termios_ldisc
=yes
4632 echo "configure: failed program was:" >&5
4633 cat conftest.
$ac_ext >&5
4635 bash_cv_termios_ldisc
=no
4639 echo "$ac_t""$bash_cv_termios_ldisc" 1>&6
4640 if test $bash_cv_termios_ldisc = yes; then
4641 cat >> confdefs.h
<<\EOF
4642 #define TERMIOS_LDISC 1
4647 echo $ac_n "checking for a c_line member of struct termio""... $ac_c" 1>&6
4648 echo "configure:4649: checking for a c_line member of struct termio" >&5
4649 if eval "test \"`echo '$''{'bash_cv_termio_ldisc'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 cat > conftest.
$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4655 #include <sys/types.h>
4658 struct termio t; int i; i = t.c_line;
4661 if { (eval echo configure
:4662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4663 bash_cv_termio_ldisc
=yes
4665 echo "configure: failed program was:" >&5
4666 cat conftest.
$ac_ext >&5
4668 bash_cv_termio_ldisc
=no
4672 echo "$ac_t""$bash_cv_termio_ldisc" 1>&6
4673 if test $bash_cv_termio_ldisc = yes; then
4674 cat >> confdefs.h
<<\EOF
4675 #define TERMIO_LDISC 1
4681 echo $ac_n "checking if struct dirent has a d_ino member""... $ac_c" 1>&6
4682 echo "configure:4683: checking if struct dirent has a d_ino member" >&5
4683 if eval "test \"`echo '$''{'bash_cv_dirent_has_dino'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4686 cat > conftest.
$ac_ext <<EOF
4687 #line 4688 "configure"
4688 #include "confdefs.h"
4691 #include <sys/types.h>
4692 #ifdef HAVE_UNISTD_H
4693 # include <unistd.h>
4694 #endif /* HAVE_UNISTD_H */
4695 #if defined(HAVE_DIRENT_H)
4696 # include <dirent.h>
4698 # define dirent direct
4699 # ifdef HAVE_SYS_NDIR_H
4700 # include <sys/ndir.h>
4701 # endif /* SYSNDIR */
4702 # ifdef HAVE_SYS_DIR_H
4703 # include <sys/dir.h>
4704 # endif /* SYSDIR */
4708 #endif /* HAVE_DIRENT_H */
4712 struct dirent d; int z; z = d.d_ino;
4716 if { (eval echo configure
:4717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4718 bash_cv_dirent_has_dino
=yes
4720 echo "configure: failed program was:" >&5
4721 cat conftest.
$ac_ext >&5
4723 bash_cv_dirent_has_dino
=no
4728 echo "$ac_t""$bash_cv_dirent_has_dino" 1>&6
4729 if test $bash_cv_dirent_has_dino = yes; then
4730 cat >> confdefs.h
<<\EOF
4731 #define STRUCT_DIRENT_HAS_D_INO 1
4737 echo $ac_n "checking if struct dirent has a d_fileno member""... $ac_c" 1>&6
4738 echo "configure:4739: checking if struct dirent has a d_fileno member" >&5
4739 if eval "test \"`echo '$''{'bash_cv_dirent_has_d_fileno'+set}'`\" = set"; then
4740 echo $ac_n "(cached) $ac_c" 1>&6
4742 cat > conftest.
$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4747 #include <sys/types.h>
4748 #ifdef HAVE_UNISTD_H
4749 # include <unistd.h>
4750 #endif /* HAVE_UNISTD_H */
4751 #if defined(HAVE_DIRENT_H)
4752 # include <dirent.h>
4754 # define dirent direct
4755 # ifdef HAVE_SYS_NDIR_H
4756 # include <sys/ndir.h>
4757 # endif /* SYSNDIR */
4758 # ifdef HAVE_SYS_DIR_H
4759 # include <sys/dir.h>
4760 # endif /* SYSDIR */
4764 #endif /* HAVE_DIRENT_H */
4768 struct dirent d; int z; z = d.d_fileno;
4772 if { (eval echo configure
:4773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4774 bash_cv_dirent_has_d_fileno
=yes
4776 echo "configure: failed program was:" >&5
4777 cat conftest.
$ac_ext >&5
4779 bash_cv_dirent_has_d_fileno
=no
4784 echo "$ac_t""$bash_cv_dirent_has_d_fileno" 1>&6
4785 if test $bash_cv_dirent_has_d_fileno = yes; then
4786 cat >> confdefs.h
<<\EOF
4787 #define STRUCT_DIRENT_HAS_D_FILENO 1
4792 echo $ac_n "checking for struct winsize in sys/ioctl.h""... $ac_c" 1>&6
4793 echo "configure:4794: checking for struct winsize in sys/ioctl.h" >&5
4794 if eval "test \"`echo '$''{'bash_cv_struct_winsize_in_ioctl'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4797 cat > conftest.
$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4800 #include <sys/types.h>
4801 #include <sys/ioctl.h>
4806 if { (eval echo configure
:4807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4808 bash_cv_struct_winsize_in_ioctl
=yes
4810 echo "configure: failed program was:" >&5
4811 cat conftest.
$ac_ext >&5
4813 bash_cv_struct_winsize_in_ioctl
=no
4818 echo "$ac_t""$bash_cv_struct_winsize_in_ioctl" 1>&6
4819 if test $bash_cv_struct_winsize_in_ioctl = yes; then
4820 cat >> confdefs.h
<<\EOF
4821 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
4827 echo $ac_n "checking for the existance of strsignal""... $ac_c" 1>&6
4828 echo "configure:4829: checking for the existance of strsignal" >&5
4829 if eval "test \"`echo '$''{'bash_cv_have_strsignal'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4832 cat > conftest.
$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 #include <sys/types.h>
4838 char *s = (char *)strsignal(2);
4841 if { (eval echo configure
:4842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4843 bash_cv_have_strsignal
=yes
4845 echo "configure: failed program was:" >&5
4846 cat conftest.
$ac_ext >&5
4848 bash_cv_have_strsignal
=no
4853 echo "$ac_t""$bash_cv_have_strsignal" 1>&6
4854 if test $bash_cv_have_strsignal = yes; then
4855 cat >> confdefs.h
<<\EOF
4856 #define HAVE_STRSIGNAL 1
4861 echo $ac_n "checking if opendir() opens non-directories""... $ac_c" 1>&6
4862 echo "configure:4863: checking if opendir() opens non-directories" >&5
4863 if eval "test \"`echo '$''{'bash_cv_opendir_not_robust'+set}'`\" = set"; then
4864 echo $ac_n "(cached) $ac_c" 1>&6
4866 if test "$cross_compiling" = yes; then
4867 { echo "configure: error: cannot check opendir if cross compiling" 1>&2; exit 1; }
4869 cat > conftest.
$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4874 #include <sys/types.h>
4876 #ifdef HAVE_UNISTD_H
4877 # include <unistd.h>
4878 #endif /* HAVE_UNISTD_H */
4879 #if defined(HAVE_DIRENT_H)
4880 # include <dirent.h>
4882 # define dirent direct
4883 # ifdef HAVE_SYS_NDIR_H
4884 # include <sys/ndir.h>
4885 # endif /* SYSNDIR */
4886 # ifdef HAVE_SYS_DIR_H
4887 # include <sys/dir.h>
4888 # endif /* SYSDIR */
4892 #endif /* HAVE_DIRENT_H */
4897 unlink("/tmp/not_a_directory");
4898 fd = open("/tmp/not_a_directory", O_WRONLY|O_CREAT, 0666);
4901 dir = opendir("/tmp/not_a_directory");
4902 unlink("/tmp/not_a_directory");
4906 if { (eval echo configure
:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4908 bash_cv_opendir_not_robust
=yes
4910 echo "configure: failed program was:" >&5
4911 cat conftest.
$ac_ext >&5
4913 bash_cv_opendir_not_robust
=no
4920 echo "$ac_t""$bash_cv_opendir_not_robust" 1>&6
4921 if test $bash_cv_opendir_not_robust = yes; then
4922 cat >> confdefs.h
<<\EOF
4923 #define OPENDIR_NOT_ROBUST 1
4928 echo $ac_n "checking for declaration of printf in <stdio.h>""... $ac_c" 1>&6
4929 echo "configure:4930: checking for declaration of printf in <stdio.h>" >&5
4930 if eval "test \"`echo '$''{'bash_cv_printf_declared'+set}'`\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4933 if test "$cross_compiling" = yes; then
4934 { echo "configure: error: cannot check printf declaration if cross compiling" 1>&2; exit 1; }
4936 cat > conftest.
$ac_ext <<EOF
4937 #line 4938 "configure"
4938 #include "confdefs.h"
4942 typedef int (*_bashfunc)(const char *, ...);
4944 typedef int (*_bashfunc)();
4949 pf = (_bashfunc) printf;
4954 if { (eval echo configure
:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4956 bash_cv_printf_declared
=yes
4958 echo "configure: failed program was:" >&5
4959 cat conftest.
$ac_ext >&5
4961 bash_cv_printf_declared
=no
4968 echo "$ac_t""$bash_cv_printf_declared" 1>&6
4969 if test $bash_cv_printf_declared = yes; then
4970 cat >> confdefs.h
<<\EOF
4971 #define PRINTF_DECLARED 1
4976 echo $ac_n "checking whether ulimit can substitute for getdtablesize""... $ac_c" 1>&6
4977 echo "configure:4978: checking whether ulimit can substitute for getdtablesize" >&5
4978 if eval "test \"`echo '$''{'bash_cv_ulimit_maxfds'+set}'`\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4981 if test "$cross_compiling" = yes; then
4982 { echo "configure: error: cannot check ulimit if cross compiling" 1>&2; exit 1; }
4984 cat > conftest.
$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4990 long maxfds = ulimit(4, 0L);
4991 exit (maxfds == -1L);
4995 if { (eval echo configure
:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4997 bash_cv_ulimit_maxfds
=yes
4999 echo "configure: failed program was:" >&5
5000 cat conftest.
$ac_ext >&5
5002 bash_cv_ulimit_maxfds
=no
5009 echo "$ac_t""$bash_cv_ulimit_maxfds" 1>&6
5010 if test $bash_cv_ulimit_maxfds = yes; then
5011 cat >> confdefs.h
<<\EOF
5012 #define ULIMIT_MAXFDS 1
5017 echo $ac_n "checking to see if getenv can be redefined""... $ac_c" 1>&6
5018 echo "configure:5019: checking to see if getenv can be redefined" >&5
5019 if eval "test \"`echo '$''{'bash_cv_getenv_redef'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 if test "$cross_compiling" = yes; then
5023 { echo "configure: error: cannot check getenv redefinition if cross compiling" 1>&2; exit 1; }
5025 cat > conftest.
$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5029 #ifdef HAVE_UNISTD_H
5030 # include <unistd.h>
5039 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
5043 #endif /* !__linux__ && !__bsdi__ && !convex */
5050 /* The next allows this program to run, but does not allow bash to link
5051 when it redefines getenv. I'm not really interested in figuring out
5056 s = getenv("ABCDE");
5057 exit(s == 0); /* force optimizer to leave getenv in */
5061 if { (eval echo configure
:5062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5063 bash_cv_getenv_redef
=yes
5065 echo "configure: failed program was:" >&5
5066 cat conftest.
$ac_ext >&5
5068 bash_cv_getenv_redef
=no
5075 echo "$ac_t""$bash_cv_getenv_redef" 1>&6
5076 if test $bash_cv_getenv_redef = yes; then
5077 cat >> confdefs.h
<<\EOF
5078 #define CAN_REDEFINE_GETENV 1
5083 echo $ac_n "checking if getcwd() calls popen()""... $ac_c" 1>&6
5084 echo "configure:5085: checking if getcwd() calls popen()" >&5
5085 if eval "test \"`echo '$''{'bash_cv_getcwd_calls_popen'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 if test "$cross_compiling" = yes; then
5089 { echo "configure: error: cannot check whether getcwd calls popen if cross compiling" 1>&2; exit 1; }
5091 cat > conftest.
$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5096 #ifdef HAVE_UNISTD_H
5109 popen(command, type)
5110 const char *command;
5114 return (FILE *)NULL;
5117 FILE *_popen(command, type)
5118 const char *command;
5121 return (popen (command, type));
5143 exit (popen_called);
5147 if { (eval echo configure
:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5149 bash_cv_getcwd_calls_popen
=no
5151 echo "configure: failed program was:" >&5
5152 cat conftest.
$ac_ext >&5
5154 bash_cv_getcwd_calls_popen
=yes
5161 echo "$ac_t""$bash_cv_getcwd_calls_popen" 1>&6
5162 if test $bash_cv_getcwd_calls_popen = yes; then
5163 cat >> confdefs.h
<<\EOF
5164 #define GETCWD_BROKEN 1
5169 echo $ac_n "checking for declaration of sbrk in <unistd.h>""... $ac_c" 1>&6
5170 echo "configure:5171: checking for declaration of sbrk in <unistd.h>" >&5
5171 if eval "test \"`echo '$''{'bash_cv_sbrk_declared'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 cat > conftest.
$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5180 egrep "sbrk" >/dev
/null
2>&1; then
5182 bash_cv_sbrk_declared
=yes
5185 bash_cv_sbrk_declared
=no
5191 echo "$ac_t""$bash_cv_sbrk_declared" 1>&6
5192 if test $bash_cv_sbrk_declared = yes; then
5193 cat >> confdefs.h
<<\EOF
5194 #define SBRK_DECLARED 1
5200 echo $ac_n "checking for presence of POSIX-style sigsetjmp/siglongjmp""... $ac_c" 1>&6
5201 echo "configure:5202: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5202 if eval "test \"`echo '$''{'bash_cv_func_sigsetjmp'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5205 if test "$cross_compiling" = yes; then
5206 { echo "configure: error: cannot check for sigsetjmp/siglongjmp if cross-compiling" 1>&2; exit 1; }
5208 cat > conftest.
$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5212 #ifdef HAVE_UNISTD_H
5215 #include <sys/types.h>
5221 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5232 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5233 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5236 code = sigsetjmp(xx, 1);
5238 exit(0); /* could get sigmask and compare to oset here. */
5241 sigaddset(&set, SIGINT);
5242 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5244 /* and siglongjmp */
5250 if { (eval echo configure
:5251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5252 bash_cv_func_sigsetjmp
=present
5254 echo "configure: failed program was:" >&5
5255 cat conftest.
$ac_ext >&5
5257 bash_cv_func_sigsetjmp
=missing
5265 echo "$ac_t""$bash_cv_func_sigsetjmp" 1>&6
5266 if test $bash_cv_func_sigsetjmp = present
; then
5267 cat >> confdefs.h
<<\EOF
5268 #define HAVE_POSIX_SIGSETJMP 1
5274 echo $ac_n "checking whether or not strcoll and strcmp differ""... $ac_c" 1>&6
5275 echo "configure:5276: checking whether or not strcoll and strcmp differ" >&5
5276 if eval "test \"`echo '$''{'bash_cv_func_strcoll_broken'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6
5279 if test "$cross_compiling" = yes; then
5280 { echo "configure: error: cannot check strcoll if cross compiling" 1>&2; exit 1; }
5282 cat > conftest.
$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5287 #if defined (HAVE_LOCALE_H)
5296 char *deflocale, *defcoll;
5298 #ifdef HAVE_SETLOCALE
5299 deflocale = setlocale(LC_ALL, "");
5300 defcoll = setlocale(LC_COLLATE, "");
5304 /* These two values are taken from tests/glob-test. */
5305 r1 = strcoll("abd", "aXd");
5309 r2 = strcmp("abd", "aXd");
5311 /* These two should both be greater than 0. It is permissible for
5312 a system to return different values, as long as the sign is the
5315 /* Exit with 1 (failure) if these two values are both > 0, since
5316 this tests whether strcoll(3) is broken with respect to strcmp(3)
5317 in the default locale. */
5318 exit (r1 > 0 && r2 > 0);
5322 if { (eval echo configure
:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5324 bash_cv_func_strcoll_broken
=yes
5326 echo "configure: failed program was:" >&5
5327 cat conftest.
$ac_ext >&5
5329 bash_cv_func_strcoll_broken
=no
5337 echo "$ac_t""$bash_cv_func_strcoll_broken" 1>&6
5338 if test $bash_cv_func_strcoll_broken = yes; then
5339 cat >> confdefs.h
<<\EOF
5340 #define STRCOLL_BROKEN 1
5348 echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
5349 echo "configure:5350: checking if signal handlers must be reinstalled when invoked" >&5
5350 if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 if test "$cross_compiling" = yes; then
5354 { echo "configure: error: cannot check signal handling if cross compiling" 1>&2; exit 1; }
5356 cat > conftest.
$ac_ext <<EOF
5357 #line 5358 "configure"
5358 #include "confdefs.h"
5361 #ifdef HAVE_UNISTD_H
5365 typedef RETSIGTYPE sigfunc();
5369 #ifdef HAVE_POSIX_SIGNALS
5371 set_signal_handler(sig, handler)
5375 struct sigaction act, oact;
5376 act.sa_handler = handler;
5378 sigemptyset (&act.sa_mask);
5379 sigemptyset (&oact.sa_mask);
5380 sigaction (sig, &act, &oact);
5381 return (oact.sa_handler);
5384 #define set_signal_handler(s, h) signal(s, h)
5397 set_signal_handler(SIGINT, sigint);
5398 kill((int)getpid(), SIGINT);
5399 kill((int)getpid(), SIGINT);
5404 if { (eval echo configure
:5405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5406 bash_cv_must_reinstall_sighandlers
=no
5408 echo "configure: failed program was:" >&5
5409 cat conftest.
$ac_ext >&5
5411 bash_cv_must_reinstall_sighandlers
=yes
5418 echo "$ac_t""$bash_cv_must_reinstall_sighandlers" 1>&6
5419 if test $bash_cv_must_reinstall_sighandlers = yes; then
5420 cat >> confdefs.h
<<\EOF
5421 #define MUST_REINSTALL_SIGHANDLERS 1
5427 echo $ac_n "checking for presence of necessary job control definitions""... $ac_c" 1>&6
5428 echo "configure:5429: checking for presence of necessary job control definitions" >&5
5429 if eval "test \"`echo '$''{'bash_cv_job_control_missing'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5432 if test "$cross_compiling" = yes; then
5433 { echo "configure: error: cannot check job control if cross-compiling" 1>&2; exit 1; }
5435 cat > conftest.
$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5439 #include <sys/types.h>
5440 #ifdef HAVE_SYS_WAIT_H
5441 #include <sys/wait.h>
5443 #ifdef HAVE_UNISTD_H
5448 /* Add more tests in here as appropriate. */
5452 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
5456 /* signals and tty control. */
5457 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
5461 /* process control */
5462 #if !defined (WNOHANG) || !defined (WUNTRACED)
5466 /* Posix systems have tcgetpgrp and waitpid. */
5467 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
5471 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
5475 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
5476 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
5483 if { (eval echo configure
:5484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5485 bash_cv_job_control_missing
=present
5487 echo "configure: failed program was:" >&5
5488 cat conftest.
$ac_ext >&5
5490 bash_cv_job_control_missing
=missing
5498 echo "$ac_t""$bash_cv_job_control_missing" 1>&6
5499 if test $bash_cv_job_control_missing = missing
; then
5500 cat >> confdefs.h
<<\EOF
5501 #define JOB_CONTROL_MISSING 1
5506 echo $ac_n "checking for presence of named pipes""... $ac_c" 1>&6
5507 echo "configure:5508: checking for presence of named pipes" >&5
5508 if eval "test \"`echo '$''{'bash_cv_sys_named_pipes'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5511 if test "$cross_compiling" = yes; then
5512 { echo "configure: error: cannot check for named pipes if cross-compiling" 1>&2; exit 1; }
5514 cat > conftest.
$ac_ext <<EOF
5515 #line 5516 "configure"
5516 #include "confdefs.h"
5518 #include <sys/types.h>
5519 #include <sys/stat.h>
5520 #ifdef HAVE_UNISTD_H
5524 /* Add more tests in here as appropriate. */
5529 #if defined (HAVE_MKFIFO)
5533 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
5541 fd = mknod ("/tmp/sh-np-autoconf", 0666 | S_IFIFO, 0);
5545 unlink ("/tmp/sh-np-autoconf");
5549 if { (eval echo configure
:5550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5551 bash_cv_sys_named_pipes
=present
5553 echo "configure: failed program was:" >&5
5554 cat conftest.
$ac_ext >&5
5556 bash_cv_sys_named_pipes
=missing
5564 echo "$ac_t""$bash_cv_sys_named_pipes" 1>&6
5565 if test $bash_cv_sys_named_pipes = missing
; then
5566 cat >> confdefs.h
<<\EOF
5567 #define NAMED_PIPES_MISSING 1
5573 echo $ac_n "checking for TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
5574 echo "configure:5575: checking for TIOCGWINSZ in sys/ioctl.h" >&5
5575 if eval "test \"`echo '$''{'bash_cv_tiocgwinsz_in_ioctl'+set}'`\" = set"; then
5576 echo $ac_n "(cached) $ac_c" 1>&6
5578 cat > conftest.
$ac_ext <<EOF
5579 #line 5580 "configure"
5580 #include "confdefs.h"
5581 #include <sys/types.h>
5582 #include <sys/ioctl.h>
5587 if { (eval echo configure
:5588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5589 bash_cv_tiocgwinsz_in_ioctl
=yes
5591 echo "configure: failed program was:" >&5
5592 cat conftest.
$ac_ext >&5
5594 bash_cv_tiocgwinsz_in_ioctl
=no
5599 echo "$ac_t""$bash_cv_tiocgwinsz_in_ioctl" 1>&6
5600 if test $bash_cv_tiocgwinsz_in_ioctl = yes; then
5601 cat >> confdefs.h
<<\EOF
5602 #define GWINSZ_IN_SYS_IOCTL 1
5607 echo $ac_n "checking for TIOCSTAT in sys/ioctl.h""... $ac_c" 1>&6
5608 echo "configure:5609: checking for TIOCSTAT in sys/ioctl.h" >&5
5609 if eval "test \"`echo '$''{'bash_cv_tiocstat_in_ioctl'+set}'`\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5612 cat > conftest.
$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 #include <sys/types.h>
5616 #include <sys/ioctl.h>
5621 if { (eval echo configure
:5622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5623 bash_cv_tiocstat_in_ioctl
=yes
5625 echo "configure: failed program was:" >&5
5626 cat conftest.
$ac_ext >&5
5628 bash_cv_tiocstat_in_ioctl
=no
5633 echo "$ac_t""$bash_cv_tiocstat_in_ioctl" 1>&6
5634 if test $bash_cv_tiocstat_in_ioctl = yes; then
5635 cat >> confdefs.h
<<\EOF
5636 #define TIOCSTAT_IN_SYS_IOCTL 1
5641 echo $ac_n "checking for FIONREAD in sys/ioctl.h""... $ac_c" 1>&6
5642 echo "configure:5643: checking for FIONREAD in sys/ioctl.h" >&5
5643 if eval "test \"`echo '$''{'bash_cv_fionread_in_ioctl'+set}'`\" = set"; then
5644 echo $ac_n "(cached) $ac_c" 1>&6
5646 cat > conftest.
$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5649 #include <sys/types.h>
5650 #include <sys/ioctl.h>
5655 if { (eval echo configure
:5656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5657 bash_cv_fionread_in_ioctl
=yes
5659 echo "configure: failed program was:" >&5
5660 cat conftest.
$ac_ext >&5
5662 bash_cv_fionread_in_ioctl
=no
5667 echo "$ac_t""$bash_cv_fionread_in_ioctl" 1>&6
5668 if test $bash_cv_fionread_in_ioctl = yes; then
5669 cat >> confdefs.h
<<\EOF
5670 #define FIONREAD_IN_SYS_IOCTL 1
5676 echo $ac_n "checking for speed_t in sys/types.h""... $ac_c" 1>&6
5677 echo "configure:5678: checking for speed_t in sys/types.h" >&5
5678 if eval "test \"`echo '$''{'bash_cv_speed_t_in_sys_types'+set}'`\" = set"; then
5679 echo $ac_n "(cached) $ac_c" 1>&6
5681 cat > conftest.
$ac_ext <<EOF
5682 #line 5683 "configure"
5683 #include "confdefs.h"
5684 #include <sys/types.h>
5689 if { (eval echo configure
:5690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5691 bash_cv_speed_t_in_sys_types
=yes
5693 echo "configure: failed program was:" >&5
5694 cat conftest.
$ac_ext >&5
5696 bash_cv_speed_t_in_sys_types
=no
5701 echo "$ac_t""$bash_cv_speed_t_in_sys_types" 1>&6
5702 if test $bash_cv_speed_t_in_sys_types = yes; then
5703 cat >> confdefs.h
<<\EOF
5704 #define SPEED_T_IN_SYS_TYPES 1
5709 echo $ac_n "checking whether programs are able to redeclare getpw functions""... $ac_c" 1>&6
5710 echo "configure:5711: checking whether programs are able to redeclare getpw functions" >&5
5711 if eval "test \"`echo '$''{'bash_cv_can_redecl_getpw'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5714 cat > conftest.
$ac_ext <<EOF
5715 #line 5716 "configure"
5716 #include "confdefs.h"
5717 #include <sys/types.h>
5719 extern struct passwd *getpwent();
5720 extern struct passwd *getpwuid();
5721 extern struct passwd *getpwnam();
5723 struct passwd *z; z = getpwent(); z = getpwuid(0); z = getpwnam("root");
5726 if { (eval echo configure
:5727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5728 bash_cv_can_redecl_getpw
=yes
5730 echo "configure: failed program was:" >&5
5731 cat conftest.
$ac_ext >&5
5733 bash_cv_can_redecl_getpw
=no
5738 echo "$ac_t""$bash_cv_can_redecl_getpw" 1>&6
5739 if test $bash_cv_can_redecl_getpw = no
; then
5740 cat >> confdefs.h
<<\EOF
5741 #define HAVE_GETPW_DECLS 1
5748 hpux
*) echo $ac_n "checking whether $host_os needs _KERNEL for RLIMIT defines""... $ac_c" 1>&6
5749 echo "configure:5750: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
5750 if eval "test \"`echo '$''{'bash_cv_kernel_rlimit'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
5753 cat > conftest.
$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5757 #include <sys/types.h>
5758 #include <sys/resource.h>
5767 if { (eval echo configure
:5768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5769 bash_cv_kernel_rlimit
=no
5771 echo "configure: failed program was:" >&5
5772 cat conftest.
$ac_ext >&5
5774 cat > conftest.
$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5778 #include <sys/types.h>
5780 #include <sys/resource.h>
5790 if { (eval echo configure
:5791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5792 bash_cv_kernel_rlimit
=yes
5794 echo "configure: failed program was:" >&5
5795 cat conftest.
$ac_ext >&5
5797 bash_cv_kernel_rlimit
=no
5805 echo "$ac_t""$bash_cv_kernel_rlimit" 1>&6
5806 if test $bash_cv_kernel_rlimit = yes; then
5807 cat >> confdefs.h
<<\EOF
5808 #define RLIMIT_NEEDS_KERNEL 1
5815 if test "$opt_readline" = yes; then
5817 aix
*) prefer_curses
=yes ;;
5820 if test "X$bash_cv_termcap_lib" = "X"; then
5823 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
5824 echo "configure:5825: checking which library has the termcap functions" >&5
5827 if eval "test \"`echo '$''{'bash_cv_termcap_lib'+set}'`\" = set"; then
5828 echo $ac_n "(cached) $ac_c" 1>&6
5830 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5831 echo "configure:5832: checking for tgetent in -ltermcap" >&5
5832 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5836 ac_save_LIBS
="$LIBS"
5837 LIBS
="-ltermcap $LIBS"
5838 cat > conftest.
$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5841 /* Override any gcc2 internal prototype to avoid an error. */
5842 /* We use char because int might match the return type of a gcc2
5843 builtin and then its argument prototype would still apply. */
5850 if { (eval echo configure
:5851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5852 eval "ac_cv_lib_$ac_lib_var=yes"
5854 echo "configure: failed program was:" >&5
5855 cat conftest.
$ac_ext >&5
5857 eval "ac_cv_lib_$ac_lib_var=no"
5860 LIBS
="$ac_save_LIBS"
5863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5864 echo "$ac_t""yes" 1>&6
5865 bash_cv_termcap_lib
=libtermcap
5867 echo "$ac_t""no" 1>&6
5868 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5869 echo "configure:5870: checking for tgetent in -lcurses" >&5
5870 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5872 echo $ac_n "(cached) $ac_c" 1>&6
5874 ac_save_LIBS
="$LIBS"
5875 LIBS
="-lcurses $LIBS"
5876 cat > conftest.
$ac_ext <<EOF
5877 #line 5878 "configure"
5878 #include "confdefs.h"
5879 /* Override any gcc2 internal prototype to avoid an error. */
5880 /* We use char because int might match the return type of a gcc2
5881 builtin and then its argument prototype would still apply. */
5888 if { (eval echo configure
:5889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5890 eval "ac_cv_lib_$ac_lib_var=yes"
5892 echo "configure: failed program was:" >&5
5893 cat conftest.
$ac_ext >&5
5895 eval "ac_cv_lib_$ac_lib_var=no"
5898 LIBS
="$ac_save_LIBS"
5901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5902 echo "$ac_t""yes" 1>&6
5903 bash_cv_termcap_lib
=libcurses
5905 echo "$ac_t""no" 1>&6
5906 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5907 echo "configure:5908: checking for tgetent in -lncurses" >&5
5908 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5910 echo $ac_n "(cached) $ac_c" 1>&6
5912 ac_save_LIBS
="$LIBS"
5913 LIBS
="-lncurses $LIBS"
5914 cat > conftest.
$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5917 /* Override any gcc2 internal prototype to avoid an error. */
5918 /* We use char because int might match the return type of a gcc2
5919 builtin and then its argument prototype would still apply. */
5926 if { (eval echo configure
:5927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5928 eval "ac_cv_lib_$ac_lib_var=yes"
5930 echo "configure: failed program was:" >&5
5931 cat conftest.
$ac_ext >&5
5933 eval "ac_cv_lib_$ac_lib_var=no"
5936 LIBS
="$ac_save_LIBS"
5939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5940 echo "$ac_t""yes" 1>&6
5941 bash_cv_termcap_lib
=libncurses
5943 echo "$ac_t""no" 1>&6
5944 bash_cv_termcap_lib
=gnutermcap
5953 if test "X$_bash_needmsg" = "Xyes"; then
5954 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
5955 echo "configure:5956: checking which library has the termcap functions" >&5
5957 echo "$ac_t""using $bash_cv_termcap_lib" 1>&6
5958 if test $bash_cv_termcap_lib = gnutermcap
; then
5959 LDFLAGS
="$LDFLAGS -L./lib/termcap"
5960 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
5961 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
5962 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
5963 TERMCAP_LIB
=-ltermcap
5965 elif test $bash_cv_termcap_lib = libncurses
; then
5966 TERMCAP_LIB
=-lncurses
5969 TERMCAP_LIB
=-lcurses
5977 echo $ac_n "checking whether /dev/fd is available""... $ac_c" 1>&6
5978 echo "configure:5979: checking whether /dev/fd is available" >&5
5979 if eval "test \"`echo '$''{'bash_cv_dev_fd'+set}'`\" = set"; then
5980 echo $ac_n "(cached) $ac_c" 1>&6
5982 if test -d /dev
/fd
&& test -r /dev
/fd
/0; then
5983 bash_cv_dev_fd
=standard
5984 elif test -d /proc
/self
/fd
&& test -r /proc
/self
/fd
/0; then
5985 bash_cv_dev_fd
=whacky
5987 bash_cv_dev_fd
=absent
5992 echo "$ac_t""$bash_cv_dev_fd" 1>&6
5993 if test $bash_cv_dev_fd = "standard"; then
5994 cat >> confdefs.h
<<\EOF
5995 #define HAVE_DEV_FD 1
5998 cat >> confdefs.h
<<\EOF
5999 #define DEV_FD_PREFIX "/dev/fd/"
6002 elif test $bash_cv_dev_fd = "whacky"; then
6003 cat >> confdefs.h
<<\EOF
6004 #define HAVE_DEV_FD 1
6007 cat >> confdefs.h
<<\EOF
6008 #define DEV_FD_PREFIX "/proc/self/fd/"
6013 echo $ac_n "checking for default mail directory""... $ac_c" 1>&6
6014 echo "configure:6015: checking for default mail directory" >&5
6015 if eval "test \"`echo '$''{'bash_cv_mail_dir'+set}'`\" = set"; then
6016 echo $ac_n "(cached) $ac_c" 1>&6
6018 if test -d /var
/mail; then
6019 bash_cv_mail_dir
=/var
/mail
6020 elif test -d /usr
/mail; then
6021 bash_cv_mail_dir
=/usr
/mail
6022 elif test -d /var
/spool
/mail; then
6023 bash_cv_mail_dir
=/var
/spool
/mail
6024 elif test -d /usr
/spool
/mail; then
6025 bash_cv_mail_dir
=/usr
/spool
/mail
6027 bash_cv_mail_dir
=unknown
6032 echo "$ac_t""$bash_cv_mail_dir" 1>&6
6033 if test $bash_cv_mail_dir = "/var/mail"; then
6034 cat >> confdefs.h
<<\EOF
6035 #define DEFAULT_MAIL_DIRECTORY "/var/mail"
6038 elif test $bash_cv_mail_dir = "/usr/mail"; then
6039 cat >> confdefs.h
<<\EOF
6040 #define DEFAULT_MAIL_DIRECTORY "/usr/mail"
6043 elif test $bash_cv_mail_dir = "/var/spool/mail"; then
6044 cat >> confdefs.h
<<\EOF
6045 #define DEFAULT_MAIL_DIRECTORY "/var/spool/mail"
6048 elif test $bash_cv_mail_dir = "/usr/spool/mail"; then
6049 cat >> confdefs.h
<<\EOF
6050 #define DEFAULT_MAIL_DIRECTORY "/usr/spool/mail"
6054 cat >> confdefs.h
<<\EOF
6055 #define DEFAULT_MAIL_DIRECTORY "unknown"
6061 if test "$bash_cv_job_control_missing" = missing
; then
6065 if test "$opt_job_control" = yes; then
6066 cat >> confdefs.h
<<\EOF
6067 #define JOB_CONTROL 1
6082 sysv4.2
*) cat >> confdefs.h
<<\EOF
6086 cat >> confdefs.h
<<\EOF
6090 sysv4
*) cat >> confdefs.h
<<\EOF
6094 hpux
*) LOCAL_CFLAGS
=-DHPUX ;;
6095 dgux
*) LOCAL_CFLAGS
=-D_DGUX_SOURCE; LOCAL_LIBS
=-ldgc ;;
6096 isc
*) LOCAL_CFLAGS
=-Disc386;;
6097 sco3.2v5
*) LOCAL_CFLAGS
="-DWAITPID_BROKEN -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
6098 sco3.2v4
*) LOCAL_CFLAGS
="-DMUST_UNBLOCK_CHLD -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
6099 sco3.2
*) LOCAL_CFLAGS
=-DMUST_UNBLOCK_CHLD ;;
6100 sunos4
*) LOCAL_CFLAGS
=-DSunOS4 ;;
6101 solaris2.5
*) LOCAL_CFLAGS
=-DSunOS5 ;;
6102 linux
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
6103 aix4.2
*) LOCAL_LDFLAGS
="-bexpall -brtl" ;;# allow dynamic loading
6104 *qnx
*) LOCAL_CFLAGS
="-Dqnx -F -3s" LOCAL_LDFLAGS
="-3s -lunix -lncurses" ;;
6105 powerux
) LOCAL_LIBS
="-lgen" ;;
6109 *cray
*) LOCAL_CFLAGS
="-DCRAY" ;; # shell var so config.h can use it
6112 case "$host_cpu-$host_os" in
6113 ibmrt-
*bsd4
*) LOCAL_CFLAGS
="-ma -U__STDC__" ;;
6116 case "$host_cpu-$host_vendor-$host_os" in
6117 m88k-motorola-sysv3
) LOCAL_CFLAGS
=-DWAITPID_BROKEN ;;
6118 mips-pyramid-sysv4
) LOCAL_CFLAGS
=-Xa ;;
6121 # try to create a directory tree if the source is elsewhere
6122 # this should be packaged into a script accessible via ${srcdir}/support
6125 *) for d
in doc tests support lib
; do # dirs
6126 test -d $d || mkdir
$d
6128 for ld
in readline glob tilde malloc termcap
; do # libdirs
6129 test -d lib
/$ld || mkdir lib
/$ld
6153 #AC_SUBST(ALLOCA_SOURCE)
6154 #AC_SUBST(ALLOCA_OBJECT)
6157 cat > confcache
<<\EOF
6158 # This file is a shell script that caches the results of configure
6159 # tests run on this system so they can be shared between configure
6160 # scripts and configure runs. It is not useful on other systems.
6161 # If it contains results you don't want to keep, you may remove or edit it.
6163 # By default, configure uses ./config.cache as the cache file,
6164 # creating it if it does not exist already. You can give configure
6165 # the --cache-file=FILE option to use a different cache file; that is
6166 # what configure does when it calls configure scripts in
6167 # subdirectories, so they share the cache.
6168 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6169 # config.status only pays attention to the cache file if you give it the
6170 # --recheck option to rerun configure.
6173 # The following way of writing the cache mishandles newlines in values,
6174 # but we know of no workaround that is simple, portable, and efficient.
6175 # So, don't put newlines in cache variables' values.
6176 # Ultrix sh set writes to stderr and can't be redirected directly,
6177 # and sets the high bit in the cache file unless we assign to the vars.
6179 case `(ac_space=' '; set) 2>&1` in
6181 # `set' does not quote correctly, so add quotes (double-quote substitution
6182 # turns \\\\ into \\, and sed turns \\ into \).
6184 -e "s/'/'\\\\''/g" \
6185 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6188 # `set' quotes correctly as required by POSIX, so do not add quotes.
6189 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6192 if cmp -s $cache_file confcache
; then
6195 if test -w $cache_file; then
6196 echo "updating cache $cache_file"
6197 cat confcache
> $cache_file
6199 echo "not updating unwritable cache $cache_file"
6204 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6206 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6207 # Let make expand exec_prefix.
6208 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6210 # Any assignment to VPATH causes Sun make to only execute
6211 # the first set of double-colon rules, so remove it if not needed.
6212 # If there is a colon in the path, we need to keep it.
6213 if test "x$srcdir" = x.
; then
6214 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6217 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6219 DEFS
=-DHAVE_CONFIG_H
6221 # Without the "./", some shells look in PATH for config.status.
6222 : ${CONFIG_STATUS=./config.status}
6224 echo creating
$CONFIG_STATUS
6225 rm -f $CONFIG_STATUS
6226 cat > $CONFIG_STATUS <<EOF
6228 # Generated automatically by configure.
6229 # Run this file to recreate the current configuration.
6230 # This directory was configured as follows,
6231 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6233 # $0 $ac_configure_args
6235 # Compiler output produced by configure, useful for debugging
6236 # configure, is in ./config.log if it exists.
6238 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6241 case "\$ac_option" in
6242 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6243 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6244 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6245 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6246 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6248 -help | --help | --hel | --he | --h)
6249 echo "\$ac_cs_usage"; exit 0 ;;
6250 *) echo "\$ac_cs_usage"; exit 1 ;;
6254 ac_given_srcdir=$srcdir
6255 ac_given_INSTALL="$INSTALL"
6257 trap 'rm -fr `echo "Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile \
6258 lib/malloc/Makefile lib/termcap/Makefile lib/tilde/Makefile \
6259 doc/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6261 cat >> $CONFIG_STATUS <<EOF
6263 # Protect against being on the right side of a sed subst in config.status.
6264 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6265 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6268 s%@CFLAGS@%$CFLAGS%g
6269 s%@CPPFLAGS@%$CPPFLAGS%g
6270 s%@CXXFLAGS@%$CXXFLAGS%g
6272 s%@LDFLAGS@%$LDFLAGS%g
6274 s%@exec_prefix@%$exec_prefix%g
6275 s%@prefix@%$prefix%g
6276 s%@program_transform_name@%$program_transform_name%g
6277 s%@bindir@%$bindir%g
6278 s%@sbindir@%$sbindir%g
6279 s%@libexecdir@%$libexecdir%g
6280 s%@datadir@%$datadir%g
6281 s%@sysconfdir@%$sysconfdir%g
6282 s%@sharedstatedir@%$sharedstatedir%g
6283 s%@localstatedir@%$localstatedir%g
6284 s%@libdir@%$libdir%g
6285 s%@includedir@%$includedir%g
6286 s%@oldincludedir@%$oldincludedir%g
6287 s%@infodir@%$infodir%g
6288 s%@mandir@%$mandir%g
6290 s%@host_alias@%$host_alias%g
6291 s%@host_cpu@%$host_cpu%g
6292 s%@host_vendor@%$host_vendor%g
6293 s%@host_os@%$host_os%g
6294 s%@TESTSCRIPT@%$TESTSCRIPT%g
6295 s%@PURIFY@%$PURIFY%g
6296 s%@MALLOC_TARGET@%$MALLOC_TARGET%g
6297 s%@MALLOC_SRC@%$MALLOC_SRC%g
6298 s%@READLINE_LIB@%$READLINE_LIB%g
6299 s%@READLINE_DEP@%$READLINE_DEP%g
6300 s%@HISTORY_LIB@%$HISTORY_LIB%g
6301 s%@HISTORY_DEP@%$HISTORY_DEP%g
6304 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6305 s%@INSTALL_DATA@%$INSTALL_DATA%g
6307 s%@RANLIB@%$RANLIB%g
6309 s%@SET_MAKE@%$SET_MAKE%g
6310 s%@ALLOCA@%$ALLOCA%g
6311 s%@TERMCAP_LIB@%$TERMCAP_LIB%g
6312 s%@TERMCAP_DEP@%$TERMCAP_DEP%g
6313 s%@JOBS_O@%$JOBS_O%g
6314 s%@incdir@%$incdir%g
6315 s%@BUILD_DIR@%$BUILD_DIR%g
6316 s%@BASHVERS@%$BASHVERS%g
6317 s%@BASHPATCH@%$BASHPATCH%g
6318 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
6319 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
6320 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
6321 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
6326 cat >> $CONFIG_STATUS <<\EOF
6328 # Split the substitutions into bite-sized pieces for seds with
6329 # small command number limits, like on Digital OSF/1 and HP-UX.
6330 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6331 ac_file
=1 # Number of current file.
6332 ac_beg
=1 # First line for current file.
6333 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6336 while $ac_more_lines; do
6337 if test $ac_beg -gt 1; then
6338 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6340 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6342 if test ! -s conftest.s
$ac_file; then
6344 rm -f conftest.s
$ac_file
6346 if test -z "$ac_sed_cmds"; then
6347 ac_sed_cmds
="sed -f conftest.s$ac_file"
6349 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6351 ac_file
=`expr $ac_file + 1`
6353 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6356 if test -z "$ac_sed_cmds"; then
6361 cat >> $CONFIG_STATUS <<EOF
6363 CONFIG_FILES=\${CONFIG_FILES-"Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile \
6364 lib/malloc/Makefile lib/termcap/Makefile lib/tilde/Makefile \
6367 cat >> $CONFIG_STATUS <<\EOF
6368 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6369 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6371 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6372 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6373 *) ac_file_in
="${ac_file}.in" ;;
6376 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6378 # Remove last slash and all that follows it. Not all systems have dirname.
6379 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6380 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6381 # The file is in a subdirectory.
6382 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6383 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6384 # A "../" for each directory in $ac_dir_suffix.
6385 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6387 ac_dir_suffix
= ac_dots
=
6390 case "$ac_given_srcdir" in
6392 if test -z "$ac_dots"; then top_srcdir
=.
6393 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6394 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6396 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6397 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6400 case "$ac_given_INSTALL" in
6401 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6402 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6405 echo creating
"$ac_file"
6407 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6409 *Makefile
*) ac_comsub
="1i\\
6410 # $configure_input" ;;
6414 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6416 s%@configure_input@%$configure_input%g
6417 s%@srcdir@%$srcdir%g
6418 s%@top_srcdir@%$top_srcdir%g
6419 s%@INSTALL@%$INSTALL%g
6420 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6424 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6425 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6427 # ac_d sets the value in "#define NAME VALUE" lines.
6428 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6429 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6432 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6433 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6434 ac_uB
='\([ ]\)%\1#\2define\3'
6437 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6438 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6439 ac_eB
='$%\1#\2define\3'
6443 if test "${CONFIG_HEADERS+set}" != set; then
6445 cat >> $CONFIG_STATUS <<EOF
6446 CONFIG_HEADERS="config.h"
6448 cat >> $CONFIG_STATUS <<\EOF
6450 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6451 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6453 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6454 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6455 *) ac_file_in
="${ac_file}.in" ;;
6458 echo creating
$ac_file
6460 rm -f conftest.frag conftest.
in conftest.out
6461 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6462 cat $ac_file_inputs > conftest.
in
6466 # Transform confdefs.h into a sed script conftest.vals that substitutes
6467 # the proper values into config.h.in to produce config.h. And first:
6468 # Protect against being on the right side of a sed subst in config.status.
6469 # Protect against being in an unquoted here document in config.status.
6471 cat > conftest.hdr
<<\EOF
6474 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6478 sed -n -f conftest.hdr confdefs.h > conftest.vals
6481 # This sed command replaces #undef with comments. This is necessary, for
6482 # example, in the case of _POSIX_SOURCE, which is predefined and required
6483 # on some systems where configure will not decide to define it.
6484 cat >> conftest.vals <<\EOF
6485 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6488 # Break up conftest.vals because some shells have a limit on
6489 # the size of here documents, and old seds have small limits too.
6494 ac_lines=`grep -c . conftest.vals
`
6495 # grep -c gives empty output for an empty file on some AIX systems.
6496 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6497 # Write a limited-size here document to conftest.frag.
6498 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6499 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6501 sed -f conftest.frag conftest.in > conftest.out
6503 mv conftest.out conftest.in
6505 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6507 mv conftest.tail conftest.vals
6511 cat >> $CONFIG_STATUS <<\EOF
6512 rm -f conftest.frag conftest.h
6513 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6514 cat conftest.in >> conftest.h
6516 if cmp -s $ac_file conftest.h 2>/dev/null; then
6517 echo "$ac_file is unchanged"
6520 # Remove last slash and all that follows it. Not all systems have dirname.
6521 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6522 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6523 # The file is in a subdirectory.
6524 test ! -d "$ac_dir" && mkdir "$ac_dir"
6527 mv conftest.h $ac_file
6532 cat >> $CONFIG_STATUS <<EOF
6535 cat >> $CONFIG_STATUS <<\EOF
6537 # Makefile uses this timestamp file to record whether config.h is up to date.
6538 echo timestamp > stamp-h
6542 chmod +x $CONFIG_STATUS
6543 rm -fr confdefs* $ac_clean_files
6544 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1