3 # From configure.in for Readline 4.1, version 2.22, from autoconf version 2.13
106 # Guess values for system-dependent variables and create Makefiles.
107 # Generated automatically using autoconf version 2.13
108 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
110 # This configure script is free software; the Free Software Foundation
111 # gives unlimited permission to copy, distribute and modify it.
115 ac_default_prefix=/usr/local
116 # Any additions from configure.in:
118 --with-curses use the curses library instead of the termcap library"
120 # Initialize some variables set by options.
121 # The variables have the same names as the options, with
122 # dashes changed to underlines.
124 cache_file=./config.cache
133 program_transform_name=s,x,x,
141 bindir='${exec_prefix}/bin'
142 sbindir='${exec_prefix}/sbin'
143 libexecdir='${exec_prefix}/libexec'
144 datadir='${prefix}/share'
145 sysconfdir='${prefix}/etc'
146 sharedstatedir='${prefix}/com'
147 localstatedir='${prefix}/var'
148 libdir='${exec_prefix}/lib'
149 includedir='${prefix}/include'
150 oldincludedir='/usr/include'
151 infodir='${prefix}/info'
152 mandir='${prefix}/man'
154 # Initialize some other variables.
157 SHELL=${CONFIG_SHELL-/bin/sh}
158 # Maximum number of lines to put in a shell here document.
165 # If the previous option needs an argument, assign it.
166 if test -n "$ac_prev"; then
167 eval "$ac_prev=\$ac_option"
173 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
177 # Accept the important Cygnus configure options, so we can diagnose typos.
181 -bindir | --bindir | --bindi | --bind | --bin | --bi)
183 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
184 bindir="$ac_optarg" ;;
186 -build | --build | --buil | --bui | --bu)
188 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
189 build="$ac_optarg" ;;
191 -cache-file | --cache-file | --cache-fil | --cache-fi \
192 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
193 ac_prev=cache_file ;;
194 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
195 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
196 cache_file="$ac_optarg" ;;
198 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
200 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
202 datadir="$ac_optarg" ;;
204 -disable-* | --disable-*)
205 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
206 # Reject names that are not valid shell variable names.
207 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
208 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
210 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
211 eval "enable_${ac_feature}=no" ;;
213 -enable-* | --enable-*)
214 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
215 # Reject names that are not valid shell variable names.
216 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
217 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
219 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
224 eval "enable_${ac_feature}='$ac_optarg'" ;;
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix="$ac_optarg" ;;
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
239 -help | --help | --hel | --he)
240 # Omit some internal or obsolete options to make the list less imposing.
241 # This message is too long to be a string in the A/UX 3.1 sh.
243 Usage: configure [options] [host]
244 Options: [defaults in brackets after descriptions]
246 --cache-file=FILE cache test results in FILE
247 --help print this message
248 --no-create do not create output files
249 --quiet, --silent do not print \`checking...' messages
250 --version print the version of autoconf that created configure
251 Directory and file names:
252 --prefix=PREFIX install architecture-independent files in PREFIX
254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
256 --bindir=DIR user executables in DIR [EPREFIX/bin]
257 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
258 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
259 --datadir=DIR read-only architecture-independent data in DIR
261 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
262 --sharedstatedir=DIR modifiable architecture-independent data in DIR
264 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
265 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
266 --includedir=DIR C header files in DIR [PREFIX/include]
267 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
268 --infodir=DIR info documentation in DIR [PREFIX/info]
269 --mandir=DIR man documentation in DIR [PREFIX/man]
270 --srcdir=DIR find the sources in DIR [configure dir or ..]
271 --program-prefix=PREFIX prepend PREFIX to installed program names
272 --program-suffix=SUFFIX append SUFFIX to installed program names
273 --program-transform-name=PROGRAM
274 run sed PROGRAM on installed program names
278 --build=BUILD configure for building on BUILD [BUILD=HOST]
279 --host=HOST configure for HOST [guessed]
280 --target=TARGET configure for TARGET [TARGET=HOST]
281 Features and packages:
282 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
283 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
284 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
285 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
286 --x-includes=DIR X include files are in DIR
287 --x-libraries=DIR X library files are in DIR
289 if test -n "$ac_help"; then
290 echo "--enable and --with options recognized:$ac_help"
294 -host | --host | --hos | --ho)
296 -host=* | --host=* | --hos=* | --ho=*)
299 -includedir | --includedir | --includedi | --included | --include \
300 | --includ | --inclu | --incl | --inc)
301 ac_prev=includedir ;;
302 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
303 | --includ=* | --inclu=* | --incl=* | --inc=*)
304 includedir="$ac_optarg" ;;
306 -infodir | --infodir | --infodi | --infod | --info | --inf)
308 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
309 infodir="$ac_optarg" ;;
311 -libdir | --libdir | --libdi | --libd)
313 -libdir=* | --libdir=* | --libdi=* | --libd=*)
314 libdir="$ac_optarg" ;;
316 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
317 | --libexe | --libex | --libe)
318 ac_prev=libexecdir ;;
319 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
320 | --libexe=* | --libex=* | --libe=*)
321 libexecdir="$ac_optarg" ;;
323 -localstatedir | --localstatedir | --localstatedi | --localstated \
324 | --localstate | --localstat | --localsta | --localst \
325 | --locals | --local | --loca | --loc | --lo)
326 ac_prev=localstatedir ;;
327 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
328 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
329 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
330 localstatedir="$ac_optarg" ;;
332 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
334 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
335 mandir="$ac_optarg" ;;
338 # Obsolete; use --without-fp.
341 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
345 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
346 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
349 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
350 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
351 | --oldin | --oldi | --old | --ol | --o)
352 ac_prev=oldincludedir ;;
353 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
354 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
355 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
356 oldincludedir="$ac_optarg" ;;
358 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
360 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
361 prefix="$ac_optarg" ;;
363 -program-prefix | --program-prefix | --program-prefi | --program-pref \
364 | --program-pre | --program-pr | --program-p)
365 ac_prev=program_prefix ;;
366 -program-prefix=* | --program-prefix=* | --program-prefi=* \
367 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
368 program_prefix="$ac_optarg" ;;
370 -program-suffix | --program-suffix | --program-suffi | --program-suff \
371 | --program-suf | --program-su | --program-s)
372 ac_prev=program_suffix ;;
373 -program-suffix=* | --program-suffix=* | --program-suffi=* \
374 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
375 program_suffix="$ac_optarg" ;;
377 -program-transform-name | --program-transform-name \
378 | --program-transform-nam | --program-transform-na \
379 | --program-transform-n | --program-transform- \
380 | --program-transform | --program-transfor \
381 | --program-transfo | --program-transf \
382 | --program-trans | --program-tran \
383 | --progr-tra | --program-tr | --program-t)
384 ac_prev=program_transform_name ;;
385 -program-transform-name=* | --program-transform-name=* \
386 | --program-transform-nam=* | --program-transform-na=* \
387 | --program-transform-n=* | --program-transform-=* \
388 | --program-transform=* | --program-transfor=* \
389 | --program-transfo=* | --program-transf=* \
390 | --program-trans=* | --program-tran=* \
391 | --progr-tra=* | --program-tr=* | --program-t=*)
392 program_transform_name="$ac_optarg" ;;
394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
395 | -silent | --silent | --silen | --sile | --sil)
398 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
400 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
402 sbindir="$ac_optarg" ;;
404 -sharedstatedir | --sharedstatedir | --sharedstatedi \
405 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
406 | --sharedst | --shareds | --shared | --share | --shar \
408 ac_prev=sharedstatedir ;;
409 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
410 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
411 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
413 sharedstatedir="$ac_optarg" ;;
415 -site | --site | --sit)
417 -site=* | --site=* | --sit=*)
420 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
422 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
423 srcdir="$ac_optarg" ;;
425 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
426 | --syscon | --sysco | --sysc | --sys | --sy)
427 ac_prev=sysconfdir ;;
428 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
429 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
430 sysconfdir="$ac_optarg" ;;
432 -target | --target | --targe | --targ | --tar | --ta | --t)
434 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
435 target="$ac_optarg" ;;
437 -v | -verbose | --verbose | --verbos | --verbo | --verb)
440 -version | --version | --versio | --versi | --vers)
441 echo "configure generated by autoconf version 2.13"
445 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
446 # Reject names that are not valid shell variable names.
447 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
448 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
450 ac_package=`echo $ac_package| sed 's/-/_/g'`
455 eval "with_${ac_package}='$ac_optarg'" ;;
457 -without-* | --without-*)
458 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
459 # Reject names that are not valid shell variable names.
460 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
461 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
463 ac_package=`echo $ac_package| sed 's/-/_/g'`
464 eval "with_${ac_package}=no" ;;
467 # Obsolete; use --with-x.
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes="$ac_optarg" ;;
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries="$ac_optarg" ;;
484 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
488 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
489 echo "configure: warning: $ac_option: invalid host type" 1>&2
491 if test "x$nonopt" != xNONE; then
492 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
500 if test -n "$ac_prev"; then
501 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
504 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
506 # File descriptor usage:
509 # 2 errors and warnings
510 # 3 some systems may open it to /dev/tty
511 # 4 used on the Kubota Titan
512 # 6 checking for... messages and results
513 # 5 compiler messages saved in config.log
514 if test "$silent" = yes; then
522 This file contains any messages produced by compilers while
523 running configure, to aid debugging if configure makes a mistake.
526 # Strip out --no-create and --no-recursion so they do not pile up.
527 # Also quote any args containing shell metacharacters.
532 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
533 | --no-cr | --no-c) ;;
534 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
535 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
536 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
537 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
538 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
543 # Only set these to C if already set. These must not be set unconditionally
544 # because not all systems understand e.g. LANG=C (notably SCO).
545 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
546 # Non-C LC_CTYPE values break the ctype check.
547 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
548 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
549 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
550 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
552 # confdefs.h avoids OS command line length limits that DEFS can exceed.
553 rm -rf conftest* confdefs.h
554 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
557 # A filename unique to this package, relative to the directory that
558 # configure is in, which we can look for to find out if srcdir is correct.
559 ac_unique_file=readline.h
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted=yes
564 # Try the directory containing this script, then its parent.
566 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
569 if test ! -r $srcdir/$ac_unique_file; then
573 ac_srcdir_defaulted=no
575 if test ! -r $srcdir/$ac_unique_file; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
579 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
582 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
584 # Prefer explicitly selected file to automatically selected ones.
585 if test -z "$CONFIG_SITE"; then
586 if test "x$prefix" != xNONE; then
587 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
589 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
592 for ac_site_file in $CONFIG_SITE; do
593 if test -r "$ac_site_file"; then
594 echo "loading site script $ac_site_file"
599 if test -r "$cache_file"; then
600 echo "loading cache $cache_file"
603 echo "creating cache $cache_file"
608 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
609 ac_cpp='$CPP $CPPFLAGS'
610 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
611 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
612 cross_compiling=$ac_cv_prog_cc_cross
616 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
617 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
618 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
625 ac_n= ac_c='\c' ac_t=
634 for ac_dir in ./support $srcdir/./support; do
635 if test -f $ac_dir/install-sh; then
637 ac_install_sh="$ac_aux_dir/install-sh -c"
639 elif test -f $ac_dir/install.sh; then
641 ac_install_sh="$ac_aux_dir/install.sh -c"
645 if test -z "$ac_aux_dir"; then
646 { echo "configure: error: can not find install-sh or install.sh in ./support $srcdir/./support" 1>&2; exit 1; }
648 ac_config_guess=$ac_aux_dir/config.guess
649 ac_config_sub=$ac_aux_dir/config.sub
650 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
654 # Make sure we can run config.sub.
655 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
656 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
659 echo $ac_n "checking host system type""... $ac_c" 1>&6
660 echo "configure:661: checking host system type" >&5
663 case "$host_alias" in
667 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
668 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
670 *) host_alias=$nonopt ;;
674 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
675 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
676 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
677 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
678 echo "$ac_t""$host" 1>&6
684 # Check whether --with-curses or --without-curses was given.
685 if test "${with_curses+set}" = set; then
686 withval="$with_curses"
691 if test "$opt_curses" = "yes"; then
695 # We want these before the checks, so the checks can modify their values.
696 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
698 # Extract the first word of "gcc", so it can be a program name with args.
699 set dummy gcc; ac_word=$2
700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
701 echo "configure:702: checking for $ac_word" >&5
702 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
705 if test -n "$CC"; then
706 ac_cv_prog_CC="$CC" # Let the user override the test.
708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
710 for ac_dir in $ac_dummy; do
711 test -z "$ac_dir" && ac_dir=.
712 if test -f $ac_dir/$ac_word; then
721 if test -n "$CC"; then
722 echo "$ac_t""$CC" 1>&6
724 echo "$ac_t""no" 1>&6
727 if test -z "$CC"; then
728 # Extract the first word of "cc", so it can be a program name with args.
729 set dummy cc; ac_word=$2
730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
731 echo "configure:732: checking for $ac_word" >&5
732 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
735 if test -n "$CC"; then
736 ac_cv_prog_CC="$CC" # Let the user override the test.
738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
741 for ac_dir in $ac_dummy; do
742 test -z "$ac_dir" && ac_dir=.
743 if test -f $ac_dir/$ac_word; then
744 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
753 if test $ac_prog_rejected = yes; then
754 # We found a bogon in the path, so make sure we never use it.
755 set dummy $ac_cv_prog_CC
757 if test $# -gt 0; then
758 # We chose a different compiler from the bogus one.
759 # However, it has the same basename, so the bogon will be chosen
760 # first if we set CC to just the basename; use the full file name.
762 set dummy "$ac_dir/$ac_word" "$@"
770 if test -n "$CC"; then
771 echo "$ac_t""$CC" 1>&6
773 echo "$ac_t""no" 1>&6
776 if test -z "$CC"; then
779 # Extract the first word of "cl", so it can be a program name with args.
780 set dummy cl; ac_word=$2
781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
782 echo "configure:783: checking for $ac_word" >&5
783 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
786 if test -n "$CC"; then
787 ac_cv_prog_CC="$CC" # Let the user override the test.
789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
791 for ac_dir in $ac_dummy; do
792 test -z "$ac_dir" && ac_dir=.
793 if test -f $ac_dir/$ac_word; then
802 if test -n "$CC"; then
803 echo "$ac_t""$CC" 1>&6
805 echo "$ac_t""no" 1>&6
810 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
813 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
814 echo "configure:815: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
817 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
818 ac_cpp='$CPP $CPPFLAGS'
819 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
820 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
821 cross_compiling=$ac_cv_prog_cc_cross
823 cat > conftest.$ac_ext << EOF
825 #line 826 "configure"
826 #include "confdefs.h"
830 if { (eval echo configure:831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
831 ac_cv_prog_cc_works=yes
832 # If we can't run a trivial program, we are probably using a cross compiler.
833 if (./conftest; exit) 2>/dev/null; then
834 ac_cv_prog_cc_cross=no
836 ac_cv_prog_cc_cross=yes
839 echo "configure: failed program was:" >&5
840 cat conftest.$ac_ext >&5
841 ac_cv_prog_cc_works=no
845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
846 ac_cpp='$CPP $CPPFLAGS'
847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
849 cross_compiling=$ac_cv_prog_cc_cross
851 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
852 if test $ac_cv_prog_cc_works = no; then
853 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
855 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
856 echo "configure:857: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
857 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
858 cross_compiling=$ac_cv_prog_cc_cross
860 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
861 echo "configure:862: checking whether we are using GNU C" >&5
862 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
865 cat > conftest.c <<EOF
870 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
877 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
879 if test $ac_cv_prog_gcc = yes; then
885 ac_test_CFLAGS="${CFLAGS+set}"
886 ac_save_CFLAGS="$CFLAGS"
888 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
889 echo "configure:890: checking whether ${CC-cc} accepts -g" >&5
890 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 echo 'void f(){}' > conftest.c
894 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
903 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
904 if test "$ac_test_CFLAGS" = set; then
905 CFLAGS="$ac_save_CFLAGS"
906 elif test $ac_cv_prog_cc_g = yes; then
907 if test "$GCC" = yes; then
913 if test "$GCC" = yes; then
920 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
921 echo "configure:922: checking how to run the C preprocessor" >&5
922 # On Suns, sometimes $CPP names a directory.
923 if test -n "$CPP" && test -d "$CPP"; then
926 if test -z "$CPP"; then
927 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 # This must be in double quotes, not single quotes, because CPP may get
931 # substituted into the Makefile and "${CC-cc}" will confuse make.
933 # On the NeXT, cc -E runs the code through the compiler's parser,
934 # not just through cpp.
935 cat > conftest.$ac_ext <<EOF
936 #line 937 "configure"
937 #include "confdefs.h"
941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
942 { (eval echo configure:943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
944 if test -z "$ac_err"; then
948 echo "configure: failed program was:" >&5
949 cat conftest.$ac_ext >&5
951 CPP="${CC-cc} -E -traditional-cpp"
952 cat > conftest.$ac_ext <<EOF
953 #line 954 "configure"
954 #include "confdefs.h"
958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
959 { (eval echo configure:960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
961 if test -z "$ac_err"; then
965 echo "configure: failed program was:" >&5
966 cat conftest.$ac_ext >&5
968 CPP="${CC-cc} -nologo -E"
969 cat > conftest.$ac_ext <<EOF
970 #line 971 "configure"
971 #include "confdefs.h"
975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
976 { (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
978 if test -z "$ac_err"; then
982 echo "configure: failed program was:" >&5
983 cat conftest.$ac_ext >&5
992 ac_cv_prog_CPP="$CPP"
994 CPP="$ac_cv_prog_CPP"
996 ac_cv_prog_CPP="$CPP"
998 echo "$ac_t""$CPP" 1>&6
1000 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1001 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1002 echo "configure:1003: checking for minix/config.h" >&5
1003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 cat > conftest.$ac_ext <<EOF
1007 #line 1008 "configure"
1008 #include "confdefs.h"
1009 #include <minix/config.h>
1011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1012 { (eval echo configure:1013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1014 if test -z "$ac_err"; then
1016 eval "ac_cv_header_$ac_safe=yes"
1019 echo "configure: failed program was:" >&5
1020 cat conftest.$ac_ext >&5
1022 eval "ac_cv_header_$ac_safe=no"
1026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1027 echo "$ac_t""yes" 1>&6
1030 echo "$ac_t""no" 1>&6
1034 if test "$MINIX" = yes; then
1035 cat >> confdefs.h <<\EOF
1036 #define _POSIX_SOURCE 1
1039 cat >> confdefs.h <<\EOF
1040 #define _POSIX_1_SOURCE 2
1043 cat >> confdefs.h <<\EOF
1050 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
1051 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
1053 if test $ac_cv_prog_gcc = yes; then
1054 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1055 echo "configure:1056: checking whether ${CC-cc} needs -traditional" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 ac_pattern="Autoconf.*'x'"
1060 cat > conftest.$ac_ext <<EOF
1061 #line 1062 "configure"
1062 #include "confdefs.h"
1066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1067 egrep "$ac_pattern" >/dev/null 2>&1; then
1069 ac_cv_prog_gcc_traditional=yes
1072 ac_cv_prog_gcc_traditional=no
1077 if test $ac_cv_prog_gcc_traditional = no; then
1078 cat > conftest.$ac_ext <<EOF
1079 #line 1080 "configure"
1080 #include "confdefs.h"
1084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1085 egrep "$ac_pattern" >/dev/null 2>&1; then
1087 ac_cv_prog_gcc_traditional=yes
1094 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1095 if test $ac_cv_prog_gcc_traditional = yes; then
1096 CC="$CC -traditional"
1100 # Find a good install program. We prefer a C program (faster),
1101 # so one script is as good as another. But avoid the broken or
1102 # incompatible versions:
1103 # SysV /etc/install, /usr/sbin/install
1104 # SunOS /usr/etc/install
1105 # IRIX /sbin/install
1107 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1108 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1109 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1110 # ./install, which can be erroneously created by make from ./install.sh.
1111 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1112 echo "configure:1113: checking for a BSD compatible install" >&5
1113 if test -z "$INSTALL"; then
1114 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1118 for ac_dir in $PATH; do
1119 # Account for people who put trailing slashes in PATH elements.
1121 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1123 # OSF1 and SCO ODT 3.0 have their own names for install.
1124 # Don't use installbsd from OSF since it installs stuff as root
1126 for ac_prog in ginstall scoinst install; do
1127 if test -f $ac_dir/$ac_prog; then
1128 if test $ac_prog = install &&
1129 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1130 # AIX install. It has an incompatible calling convention.
1133 ac_cv_path_install="$ac_dir/$ac_prog -c"
1144 if test "${ac_cv_path_install+set}" = set; then
1145 INSTALL="$ac_cv_path_install"
1147 # As a last resort, use the slow shell script. We don't cache a
1148 # path for INSTALL within a source directory, because that will
1149 # break other packages using the cache if that directory is
1150 # removed, or if the path is relative.
1151 INSTALL="$ac_install_sh"
1154 echo "$ac_t""$INSTALL" 1>&6
1156 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1157 # It thinks the first close brace ends the variable substitution.
1158 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1160 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1162 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1164 # Extract the first word of "ar", so it can be a program name with args.
1165 set dummy ar; ac_word=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1171 if test -n "$AR"; then
1172 ac_cv_prog_AR="$AR" # Let the user override the test.
1174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1176 for ac_dir in $ac_dummy; do
1177 test -z "$ac_dir" && ac_dir=.
1178 if test -f $ac_dir/$ac_word; then
1187 if test -n "$AR"; then
1188 echo "$ac_t""$AR" 1>&6
1190 echo "$ac_t""no" 1>&6
1193 test -n "$ARFLAGS" || ARFLAGS="cr"
1194 # Extract the first word of "ranlib", so it can be a program name with args.
1195 set dummy ranlib; ac_word=$2
1196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197 echo "configure:1198: checking for $ac_word" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 if test -n "$RANLIB"; then
1202 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1206 for ac_dir in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir=.
1208 if test -f $ac_dir/$ac_word; then
1209 ac_cv_prog_RANLIB="ranlib"
1214 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1217 RANLIB="$ac_cv_prog_RANLIB"
1218 if test -n "$RANLIB"; then
1219 echo "$ac_t""$RANLIB" 1>&6
1221 echo "$ac_t""no" 1>&6
1228 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1229 echo "configure:1230: checking return type of signal handlers" >&5
1230 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 #include <sys/types.h>
1242 extern "C" void (*signal (int, void (*)(int)))(int);
1244 void (*signal ()) ();
1251 if { (eval echo configure:1252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1253 ac_cv_type_signal=void
1255 echo "configure: failed program was:" >&5
1256 cat conftest.$ac_ext >&5
1258 ac_cv_type_signal=int
1263 echo "$ac_t""$ac_cv_type_signal" 1>&6
1264 cat >> confdefs.h <<EOF
1265 #define RETSIGTYPE $ac_cv_type_signal
1270 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1271 echo "configure:1272: checking whether stat file-mode macros are broken" >&5
1272 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1275 cat > conftest.$ac_ext <<EOF
1276 #line 1277 "configure"
1277 #include "confdefs.h"
1278 #include <sys/types.h>
1279 #include <sys/stat.h>
1281 #if defined(S_ISBLK) && defined(S_IFDIR)
1282 # if S_ISBLK (S_IFDIR)
1287 #if defined(S_ISBLK) && defined(S_IFCHR)
1288 # if S_ISBLK (S_IFCHR)
1293 #if defined(S_ISLNK) && defined(S_IFREG)
1294 # if S_ISLNK (S_IFREG)
1299 #if defined(S_ISSOCK) && defined(S_IFREG)
1300 # if S_ISSOCK (S_IFREG)
1306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1307 egrep "You lose" >/dev/null 2>&1; then
1309 ac_cv_header_stat_broken=yes
1312 ac_cv_header_stat_broken=no
1318 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1319 if test $ac_cv_header_stat_broken = yes; then
1320 cat >> confdefs.h <<\EOF
1321 #define STAT_MACROS_BROKEN 1
1327 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1330 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1331 echo "configure:1332: checking for $ac_hdr that defines DIR" >&5
1332 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 cat > conftest.$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1338 #include <sys/types.h>
1344 if { (eval echo configure:1345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1346 eval "ac_cv_header_dirent_$ac_safe=yes"
1348 echo "configure: failed program was:" >&5
1349 cat conftest.$ac_ext >&5
1351 eval "ac_cv_header_dirent_$ac_safe=no"
1355 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1358 cat >> confdefs.h <<EOF
1359 #define $ac_tr_hdr 1
1361 ac_header_dirent=$ac_hdr; break
1363 echo "$ac_t""no" 1>&6
1366 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1367 if test $ac_header_dirent = dirent.h; then
1368 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1369 echo "configure:1370: checking for opendir in -ldir" >&5
1370 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1374 ac_save_LIBS="$LIBS"
1376 cat > conftest.$ac_ext <<EOF
1377 #line 1378 "configure"
1378 #include "confdefs.h"
1379 /* Override any gcc2 internal prototype to avoid an error. */
1380 /* We use char because int might match the return type of a gcc2
1381 builtin and then its argument prototype would still apply. */
1388 if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1390 eval "ac_cv_lib_$ac_lib_var=yes"
1392 echo "configure: failed program was:" >&5
1393 cat conftest.$ac_ext >&5
1395 eval "ac_cv_lib_$ac_lib_var=no"
1398 LIBS="$ac_save_LIBS"
1401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1402 echo "$ac_t""yes" 1>&6
1405 echo "$ac_t""no" 1>&6
1409 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1410 echo "configure:1411: checking for opendir in -lx" >&5
1411 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1413 echo $ac_n "(cached) $ac_c" 1>&6
1415 ac_save_LIBS="$LIBS"
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1420 /* Override any gcc2 internal prototype to avoid an error. */
1421 /* We use char because int might match the return type of a gcc2
1422 builtin and then its argument prototype would still apply. */
1429 if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1431 eval "ac_cv_lib_$ac_lib_var=yes"
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1436 eval "ac_cv_lib_$ac_lib_var=no"
1439 LIBS="$ac_save_LIBS"
1442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1443 echo "$ac_t""yes" 1>&6
1446 echo "$ac_t""no" 1>&6
1452 for ac_func in lstat memmove putenv select setenv setlocale \
1453 strcasecmp tcgetattr
1455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1456 echo "configure:1457: checking for $ac_func" >&5
1457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1463 /* System header to define __stub macros and hopefully few prototypes,
1464 which can conflict with char $ac_func(); below. */
1466 /* Override any gcc2 internal prototype to avoid an error. */
1467 /* We use char because int might match the return type of a gcc2
1468 builtin and then its argument prototype would still apply. */
1473 /* The GNU C library defines this for functions which it implements
1474 to always fail with ENOSYS. Some functions are actually named
1475 something starting with __ and the normal name is an alias. */
1476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1484 if { (eval echo configure:1485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1486 eval "ac_cv_func_$ac_func=yes"
1488 echo "configure: failed program was:" >&5
1489 cat conftest.$ac_ext >&5
1491 eval "ac_cv_func_$ac_func=no"
1496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1497 echo "$ac_t""yes" 1>&6
1498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1499 cat >> confdefs.h <<EOF
1500 #define $ac_tr_func 1
1504 echo "$ac_t""no" 1>&6
1509 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
1510 echo "configure:1511: checking for working strcoll" >&5
1511 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1514 if test "$cross_compiling" = yes; then
1515 ac_cv_func_strcoll_works=no
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1523 exit (strcoll ("abc", "def") >= 0 ||
1524 strcoll ("ABC", "DEF") >= 0 ||
1525 strcoll ("123", "456") >= 0);
1528 if { (eval echo configure:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1530 ac_cv_func_strcoll_works=yes
1532 echo "configure: failed program was:" >&5
1533 cat conftest.$ac_ext >&5
1535 ac_cv_func_strcoll_works=no
1542 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
1543 if test $ac_cv_func_strcoll_works = yes; then
1544 cat >> confdefs.h <<\EOF
1545 #define HAVE_STRCOLL 1
1551 for ac_hdr in unistd.h stdlib.h varargs.h stdarg.h string.h \
1552 sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
1553 termcap.h termios.h termio.h sys/file.h locale.h
1555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1557 echo "configure:1558: checking for $ac_hdr" >&5
1558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1567 { (eval echo configure:1568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1569 if test -z "$ac_err"; then
1571 eval "ac_cv_header_$ac_safe=yes"
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1577 eval "ac_cv_header_$ac_safe=no"
1581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1582 echo "$ac_t""yes" 1>&6
1583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1584 cat >> confdefs.h <<EOF
1585 #define $ac_tr_hdr 1
1589 echo "$ac_t""no" 1>&6
1595 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
1596 echo "configure:1597: checking for type of signal functions" >&5
1597 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1601 cat > conftest.$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1608 struct sigaction sa;
1609 sigemptyset(&ss); sigsuspend(&ss);
1610 sigaction(SIGINT, &sa, (struct sigaction *) 0);
1611 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
1615 if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1617 bash_cv_signal_vintage=posix
1619 echo "configure: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1623 cat > conftest.$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1629 int mask = sigmask(SIGINT);
1630 sigsetmask(mask); sigblock(mask); sigpause(mask);
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1636 bash_cv_signal_vintage=4.2bsd
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1647 RETSIGTYPE foo() { }
1650 int mask = sigmask(SIGINT);
1651 sigset(SIGINT, foo); sigrelse(SIGINT);
1652 sighold(SIGINT); sigpause(SIGINT);
1656 if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1658 bash_cv_signal_vintage=svr3
1660 echo "configure: failed program was:" >&5
1661 cat conftest.$ac_ext >&5
1663 bash_cv_signal_vintage=v7
1676 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
1677 if test "$bash_cv_signal_vintage" = posix; then
1678 cat >> confdefs.h <<\EOF
1679 #define HAVE_POSIX_SIGNALS 1
1682 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
1683 cat >> confdefs.h <<\EOF
1684 #define HAVE_BSD_SIGNALS 1
1687 elif test "$bash_cv_signal_vintage" = svr3; then
1688 cat >> confdefs.h <<\EOF
1689 #define HAVE_USG_SIGHOLD 1
1696 echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
1697 echo "configure:1698: checking if signal handlers must be reinstalled when invoked" >&5
1698 if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1701 if test "$cross_compiling" = yes; then
1702 echo "configure: warning: cannot check signal handling if cross compiling -- defaulting to no" 1>&2
1703 bash_cv_must_reinstall_sighandlers=no
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1711 #ifdef HAVE_UNISTD_H
1715 typedef RETSIGTYPE sigfunc();
1719 #ifdef HAVE_POSIX_SIGNALS
1721 set_signal_handler(sig, handler)
1725 struct sigaction act, oact;
1726 act.sa_handler = handler;
1728 sigemptyset (&act.sa_mask);
1729 sigemptyset (&oact.sa_mask);
1730 sigaction (sig, &act, &oact);
1731 return (oact.sa_handler);
1734 #define set_signal_handler(s, h) signal(s, h)
1747 set_signal_handler(SIGINT, sigint);
1748 kill((int)getpid(), SIGINT);
1749 kill((int)getpid(), SIGINT);
1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1756 bash_cv_must_reinstall_sighandlers=no
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1761 bash_cv_must_reinstall_sighandlers=yes
1768 echo "$ac_t""$bash_cv_must_reinstall_sighandlers" 1>&6
1769 if test $bash_cv_must_reinstall_sighandlers = yes; then
1770 cat >> confdefs.h <<\EOF
1771 #define MUST_REINSTALL_SIGHANDLERS 1
1778 echo $ac_n "checking for presence of POSIX-style sigsetjmp/siglongjmp""... $ac_c" 1>&6
1779 echo "configure:1780: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
1780 if eval "test \"`echo '$''{'bash_cv_func_sigsetjmp'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 if test "$cross_compiling" = yes; then
1784 echo "configure: warning: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" 1>&2
1785 bash_cv_func_sigsetjmp=missing
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1792 #ifdef HAVE_UNISTD_H
1795 #include <sys/types.h>
1801 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
1812 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
1813 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
1816 code = sigsetjmp(xx, 1);
1818 exit(0); /* could get sigmask and compare to oset here. */
1821 sigaddset(&set, SIGINT);
1822 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
1824 /* and siglongjmp */
1830 if { (eval echo configure:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1832 bash_cv_func_sigsetjmp=present
1834 echo "configure: failed program was:" >&5
1835 cat conftest.$ac_ext >&5
1837 bash_cv_func_sigsetjmp=missing
1844 echo "$ac_t""$bash_cv_func_sigsetjmp" 1>&6
1845 if test $bash_cv_func_sigsetjmp = present; then
1846 cat >> confdefs.h <<\EOF
1847 #define HAVE_POSIX_SIGSETJMP 1
1852 echo $ac_n "checking for lstat""... $ac_c" 1>&6
1853 echo "configure:1854: checking for lstat" >&5
1854 if eval "test \"`echo '$''{'bash_cv_func_lstat'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1861 #include <sys/types.h>
1862 #include <sys/stat.h>
1865 lstat(".",(struct stat *)0);
1868 if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1870 bash_cv_func_lstat=yes
1872 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1875 bash_cv_func_lstat=no
1880 echo "$ac_t""$bash_cv_func_lstat" 1>&6
1881 if test $bash_cv_func_lstat = yes; then
1882 cat >> confdefs.h <<\EOF
1883 #define HAVE_LSTAT 1
1888 echo $ac_n "checking whether programs are able to redeclare getpw functions""... $ac_c" 1>&6
1889 echo "configure:1890: checking whether programs are able to redeclare getpw functions" >&5
1890 if eval "test \"`echo '$''{'bash_cv_can_redecl_getpw'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1893 cat > conftest.$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1896 #include <sys/types.h>
1898 extern struct passwd *getpwent();
1899 extern struct passwd *getpwuid();
1900 extern struct passwd *getpwnam();
1902 struct passwd *z; z = getpwent(); z = getpwuid(0); z = getpwnam("root");
1905 if { (eval echo configure:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1907 bash_cv_can_redecl_getpw=yes
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1912 bash_cv_can_redecl_getpw=no
1917 echo "$ac_t""$bash_cv_can_redecl_getpw" 1>&6
1918 if test $bash_cv_can_redecl_getpw = no; then
1919 cat >> confdefs.h <<\EOF
1920 #define HAVE_GETPW_DECLS 1
1926 echo $ac_n "checking whether or not strcoll and strcmp differ""... $ac_c" 1>&6
1927 echo "configure:1928: checking whether or not strcoll and strcmp differ" >&5
1928 if eval "test \"`echo '$''{'bash_cv_func_strcoll_broken'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 if test "$cross_compiling" = yes; then
1932 echo "configure: warning: cannot check strcoll if cross compiling -- defaulting to no" 1>&2
1933 bash_cv_func_strcoll_broken=no
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1941 #if defined (HAVE_LOCALE_H)
1950 char *deflocale, *defcoll;
1952 #ifdef HAVE_SETLOCALE
1953 deflocale = setlocale(LC_ALL, "");
1954 defcoll = setlocale(LC_COLLATE, "");
1958 /* These two values are taken from tests/glob-test. */
1959 r1 = strcoll("abd", "aXd");
1963 r2 = strcmp("abd", "aXd");
1965 /* These two should both be greater than 0. It is permissible for
1966 a system to return different values, as long as the sign is the
1969 /* Exit with 1 (failure) if these two values are both > 0, since
1970 this tests whether strcoll(3) is broken with respect to strcmp(3)
1971 in the default locale. */
1972 exit (r1 > 0 && r2 > 0);
1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1978 bash_cv_func_strcoll_broken=yes
1980 echo "configure: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1983 bash_cv_func_strcoll_broken=no
1990 echo "$ac_t""$bash_cv_func_strcoll_broken" 1>&6
1991 if test $bash_cv_func_strcoll_broken = yes; then
1992 cat >> confdefs.h <<\EOF
1993 #define STRCOLL_BROKEN 1
1999 echo $ac_n "checking whether signal handlers are of type void""... $ac_c" 1>&6
2000 echo "configure:2001: checking whether signal handlers are of type void" >&5
2001 if eval "test \"`echo '$''{'bash_cv_void_sighandler'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 cat > conftest.$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2007 #include <sys/types.h>
2015 void (*signal ()) ();
2020 if { (eval echo configure:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2022 bash_cv_void_sighandler=yes
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2027 bash_cv_void_sighandler=no
2031 echo "$ac_t""$bash_cv_void_sighandler" 1>&6
2032 if test $bash_cv_void_sighandler = yes; then
2033 cat >> confdefs.h <<\EOF
2034 #define VOID_SIGHANDLER 1
2039 echo $ac_n "checking for TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2040 echo "configure:2041: checking for TIOCGWINSZ in sys/ioctl.h" >&5
2041 if eval "test \"`echo '$''{'bash_cv_tiocgwinsz_in_ioctl'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2044 cat > conftest.$ac_ext <<EOF
2045 #line 2046 "configure"
2046 #include "confdefs.h"
2047 #include <sys/types.h>
2048 #include <sys/ioctl.h>
2053 if { (eval echo configure:2054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2055 bash_cv_tiocgwinsz_in_ioctl=yes
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2060 bash_cv_tiocgwinsz_in_ioctl=no
2065 echo "$ac_t""$bash_cv_tiocgwinsz_in_ioctl" 1>&6
2066 if test $bash_cv_tiocgwinsz_in_ioctl = yes; then
2067 cat >> confdefs.h <<\EOF
2068 #define GWINSZ_IN_SYS_IOCTL 1
2073 echo $ac_n "checking for TIOCSTAT in sys/ioctl.h""... $ac_c" 1>&6
2074 echo "configure:2075: checking for TIOCSTAT in sys/ioctl.h" >&5
2075 if eval "test \"`echo '$''{'bash_cv_tiocstat_in_ioctl'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 cat > conftest.$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2081 #include <sys/types.h>
2082 #include <sys/ioctl.h>
2087 if { (eval echo configure:2088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2089 bash_cv_tiocstat_in_ioctl=yes
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2094 bash_cv_tiocstat_in_ioctl=no
2099 echo "$ac_t""$bash_cv_tiocstat_in_ioctl" 1>&6
2100 if test $bash_cv_tiocstat_in_ioctl = yes; then
2101 cat >> confdefs.h <<\EOF
2102 #define TIOCSTAT_IN_SYS_IOCTL 1
2107 echo $ac_n "checking for FIONREAD in sys/ioctl.h""... $ac_c" 1>&6
2108 echo "configure:2109: checking for FIONREAD in sys/ioctl.h" >&5
2109 if eval "test \"`echo '$''{'bash_cv_fionread_in_ioctl'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2115 #include <sys/types.h>
2116 #include <sys/ioctl.h>
2121 if { (eval echo configure:2122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2123 bash_cv_fionread_in_ioctl=yes
2125 echo "configure: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2128 bash_cv_fionread_in_ioctl=no
2133 echo "$ac_t""$bash_cv_fionread_in_ioctl" 1>&6
2134 if test $bash_cv_fionread_in_ioctl = yes; then
2135 cat >> confdefs.h <<\EOF
2136 #define FIONREAD_IN_SYS_IOCTL 1
2141 echo $ac_n "checking for speed_t in sys/types.h""... $ac_c" 1>&6
2142 echo "configure:2143: checking for speed_t in sys/types.h" >&5
2143 if eval "test \"`echo '$''{'bash_cv_speed_t_in_sys_types'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 cat > conftest.$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 #include <sys/types.h>
2154 if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2156 bash_cv_speed_t_in_sys_types=yes
2158 echo "configure: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2161 bash_cv_speed_t_in_sys_types=no
2166 echo "$ac_t""$bash_cv_speed_t_in_sys_types" 1>&6
2167 if test $bash_cv_speed_t_in_sys_types = yes; then
2168 cat >> confdefs.h <<\EOF
2169 #define SPEED_T_IN_SYS_TYPES 1
2174 echo $ac_n "checking for struct winsize in sys/ioctl.h and termios.h""... $ac_c" 1>&6
2175 echo "configure:2176: checking for struct winsize in sys/ioctl.h and termios.h" >&5
2176 if eval "test \"`echo '$''{'bash_cv_struct_winsize_header'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 #include <sys/types.h>
2183 #include <sys/ioctl.h>
2188 if { (eval echo configure:2189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2190 bash_cv_struct_winsize_header=ioctl_h
2192 echo "configure: failed program was:" >&5
2193 cat conftest.$ac_ext >&5
2195 cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 #include <sys/types.h>
2199 #include <termios.h>
2204 if { (eval echo configure:2205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2206 bash_cv_struct_winsize_header=termios_h
2208 echo "configure: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2211 bash_cv_struct_winsize_header=other
2219 if test $bash_cv_struct_winsize_header = ioctl_h; then
2220 echo "$ac_t""sys/ioctl.h" 1>&6
2221 cat >> confdefs.h <<\EOF
2222 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
2225 elif test $bash_cv_struct_winsize_header = termios_h; then
2226 echo "$ac_t""termios.h" 1>&6
2227 cat >> confdefs.h <<\EOF
2228 #define STRUCT_WINSIZE_IN_TERMIOS 1
2232 echo "$ac_t""not found" 1>&6
2236 echo $ac_n "checking if struct dirent has a d_ino member""... $ac_c" 1>&6
2237 echo "configure:2238: checking if struct dirent has a d_ino member" >&5
2238 if eval "test \"`echo '$''{'bash_cv_dirent_has_dino'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 cat > conftest.$ac_ext <<EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2246 #include <sys/types.h>
2247 #ifdef HAVE_UNISTD_H
2248 # include <unistd.h>
2249 #endif /* HAVE_UNISTD_H */
2250 #if defined(HAVE_DIRENT_H)
2251 # include <dirent.h>
2253 # define dirent direct
2254 # ifdef HAVE_SYS_NDIR_H
2255 # include <sys/ndir.h>
2256 # endif /* SYSNDIR */
2257 # ifdef HAVE_SYS_DIR_H
2258 # include <sys/dir.h>
2259 # endif /* SYSDIR */
2263 #endif /* HAVE_DIRENT_H */
2267 struct dirent d; int z; z = d.d_ino;
2271 if { (eval echo configure:2272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2273 bash_cv_dirent_has_dino=yes
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2278 bash_cv_dirent_has_dino=no
2283 echo "$ac_t""$bash_cv_dirent_has_dino" 1>&6
2284 if test $bash_cv_dirent_has_dino = yes; then
2285 cat >> confdefs.h <<\EOF
2286 #define STRUCT_DIRENT_HAS_D_INO 1
2292 echo $ac_n "checking if struct dirent has a d_fileno member""... $ac_c" 1>&6
2293 echo "configure:2294: checking if struct dirent has a d_fileno member" >&5
2294 if eval "test \"`echo '$''{'bash_cv_dirent_has_d_fileno'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2302 #include <sys/types.h>
2303 #ifdef HAVE_UNISTD_H
2304 # include <unistd.h>
2305 #endif /* HAVE_UNISTD_H */
2306 #if defined(HAVE_DIRENT_H)
2307 # include <dirent.h>
2309 # define dirent direct
2310 # ifdef HAVE_SYS_NDIR_H
2311 # include <sys/ndir.h>
2312 # endif /* SYSNDIR */
2313 # ifdef HAVE_SYS_DIR_H
2314 # include <sys/dir.h>
2315 # endif /* SYSDIR */
2319 #endif /* HAVE_DIRENT_H */
2323 struct dirent d; int z; z = d.d_fileno;
2327 if { (eval echo configure:2328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2329 bash_cv_dirent_has_d_fileno=yes
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 bash_cv_dirent_has_d_fileno=no
2339 echo "$ac_t""$bash_cv_dirent_has_d_fileno" 1>&6
2340 if test $bash_cv_dirent_has_d_fileno = yes; then
2341 cat >> confdefs.h <<\EOF
2342 #define STRUCT_DIRENT_HAS_D_FILENO 1
2349 aix*) prefer_curses=yes ;;
2352 if test "X$bash_cv_termcap_lib" = "X"; then
2355 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
2356 echo "configure:2357: checking which library has the termcap functions" >&5
2359 if eval "test \"`echo '$''{'bash_cv_termcap_lib'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
2363 echo "configure:2364: checking for tgetent in -ltermcap" >&5
2364 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
2365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 ac_save_LIBS="$LIBS"
2369 LIBS="-ltermcap $LIBS"
2370 cat > conftest.$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2373 /* Override any gcc2 internal prototype to avoid an error. */
2374 /* We use char because int might match the return type of a gcc2
2375 builtin and then its argument prototype would still apply. */
2382 if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2384 eval "ac_cv_lib_$ac_lib_var=yes"
2386 echo "configure: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2389 eval "ac_cv_lib_$ac_lib_var=no"
2392 LIBS="$ac_save_LIBS"
2395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2396 echo "$ac_t""yes" 1>&6
2397 bash_cv_termcap_lib=libtermcap
2399 echo "$ac_t""no" 1>&6
2400 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
2401 echo "configure:2402: checking for tgetent in -lcurses" >&5
2402 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
2403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 ac_save_LIBS="$LIBS"
2407 LIBS="-lcurses $LIBS"
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411 /* Override any gcc2 internal prototype to avoid an error. */
2412 /* We use char because int might match the return type of a gcc2
2413 builtin and then its argument prototype would still apply. */
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2422 eval "ac_cv_lib_$ac_lib_var=yes"
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2427 eval "ac_cv_lib_$ac_lib_var=no"
2430 LIBS="$ac_save_LIBS"
2433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2434 echo "$ac_t""yes" 1>&6
2435 bash_cv_termcap_lib=libcurses
2437 echo "$ac_t""no" 1>&6
2438 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
2439 echo "configure:2440: checking for tgetent in -lncurses" >&5
2440 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
2441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 ac_save_LIBS="$LIBS"
2445 LIBS="-lncurses $LIBS"
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 /* Override any gcc2 internal prototype to avoid an error. */
2450 /* We use char because int might match the return type of a gcc2
2451 builtin and then its argument prototype would still apply. */
2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2460 eval "ac_cv_lib_$ac_lib_var=yes"
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2465 eval "ac_cv_lib_$ac_lib_var=no"
2468 LIBS="$ac_save_LIBS"
2471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2472 echo "$ac_t""yes" 1>&6
2473 bash_cv_termcap_lib=libncurses
2475 echo "$ac_t""no" 1>&6
2476 bash_cv_termcap_lib=gnutermcap
2485 if test "X$_bash_needmsg" = "Xyes"; then
2486 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
2487 echo "configure:2488: checking which library has the termcap functions" >&5
2489 echo "$ac_t""using $bash_cv_termcap_lib" 1>&6
2490 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
2491 LDFLAGS="$LDFLAGS -L./lib/termcap"
2492 TERMCAP_LIB="./lib/termcap/libtermcap.a"
2493 TERMCAP_DEP="./lib/termcap/libtermcap.a"
2494 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
2495 TERMCAP_LIB=-ltermcap
2497 elif test $bash_cv_termcap_lib = libncurses; then
2498 TERMCAP_LIB=-lncurses
2501 TERMCAP_LIB=-lcurses
2505 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
2506 TERMCAP_LIB=-ltermcap #default
2510 *cray*) LOCAL_CFLAGS=-DCRAY ;;
2514 isc*) LOCAL_CFLAGS=-Disc386 ;;
2517 # shared library configuration section
2519 # Shared object configuration section. These values are generated by
2520 # ${srcdir}/support/shobj-conf
2522 if test -f ${srcdir}/support/shobj-conf; then
2523 echo $ac_n "checking configuration for building shared libraries""... $ac_c" 1>&6
2524 echo "configure:2525: checking configuration for building shared libraries" >&5
2525 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
2538 echo "$ac_t""$SHLIB_STATUS" 1>&6
2540 # shared library versioning
2541 # quoted for m4 so I can use character classes
2542 SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
2543 SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
2549 msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file
2550 *) BUILD_DIR=`pwd` ;;
2571 cat > confcache <<\EOF
2572 # This file is a shell script that caches the results of configure
2573 # tests run on this system so they can be shared between configure
2574 # scripts and configure runs. It is not useful on other systems.
2575 # If it contains results you don't want to keep, you may remove or edit it.
2577 # By default, configure uses ./config.cache as the cache file,
2578 # creating it if it does not exist already. You can give configure
2579 # the --cache-file=FILE option to use a different cache file; that is
2580 # what configure does when it calls configure scripts in
2581 # subdirectories, so they share the cache.
2582 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2583 # config.status only pays attention to the cache file if you give it the
2584 # --recheck option to rerun configure.
2587 # The following way of writing the cache mishandles newlines in values,
2588 # but we know of no workaround that is simple, portable, and efficient.
2589 # So, don't put newlines in cache variables' values.
2590 # Ultrix sh set writes to stderr and can't be redirected directly,
2591 # and sets the high bit in the cache file unless we assign to the vars.
2593 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2595 # `set' does not quote correctly, so add quotes (double-quote substitution
2596 # turns \\\\ into \\, and sed turns \\ into \).
2598 -e "s/'/'\\\\''/g" \
2599 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2602 # `set' quotes correctly as required by POSIX, so do not add quotes.
2603 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2606 if cmp -s $cache_file confcache; then
2609 if test -w $cache_file; then
2610 echo "updating cache $cache_file"
2611 cat confcache > $cache_file
2613 echo "not updating unwritable cache $cache_file"
2618 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2620 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2621 # Let make expand exec_prefix.
2622 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2624 # Any assignment to VPATH causes Sun make to only execute
2625 # the first set of double-colon rules, so remove it if not needed.
2626 # If there is a colon in the path, we need to keep it.
2627 if test "x$srcdir" = x.; then
2628 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2631 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2633 DEFS=-DHAVE_CONFIG_H
2635 # Without the "./", some shells look in PATH for config.status.
2636 : ${CONFIG_STATUS=./config.status}
2638 echo creating $CONFIG_STATUS
2639 rm -f $CONFIG_STATUS
2640 cat > $CONFIG_STATUS <<EOF
2642 # Generated automatically by configure.
2643 # Run this file to recreate the current configuration.
2644 # This directory was configured as follows,
2645 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2647 # $0 $ac_configure_args
2649 # Compiler output produced by configure, useful for debugging
2650 # configure, is in ./config.log if it exists.
2652 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2655 case "\$ac_option" in
2656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2657 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2658 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2659 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2660 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2662 -help | --help | --hel | --he | --h)
2663 echo "\$ac_cs_usage"; exit 0 ;;
2664 *) echo "\$ac_cs_usage"; exit 1 ;;
2668 ac_given_srcdir=$srcdir
2669 ac_given_INSTALL="$INSTALL"
2671 trap 'rm -fr `echo "Makefile doc/Makefile examples/Makefile shlib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2673 cat >> $CONFIG_STATUS <<EOF
2675 # Protect against being on the right side of a sed subst in config.status.
2676 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2677 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2681 s%@CFLAGS@%$CFLAGS%g
2682 s%@CPPFLAGS@%$CPPFLAGS%g
2683 s%@CXXFLAGS@%$CXXFLAGS%g
2684 s%@FFLAGS@%$FFLAGS%g
2686 s%@LDFLAGS@%$LDFLAGS%g
2688 s%@exec_prefix@%$exec_prefix%g
2689 s%@prefix@%$prefix%g
2690 s%@program_transform_name@%$program_transform_name%g
2691 s%@bindir@%$bindir%g
2692 s%@sbindir@%$sbindir%g
2693 s%@libexecdir@%$libexecdir%g
2694 s%@datadir@%$datadir%g
2695 s%@sysconfdir@%$sysconfdir%g
2696 s%@sharedstatedir@%$sharedstatedir%g
2697 s%@localstatedir@%$localstatedir%g
2698 s%@libdir@%$libdir%g
2699 s%@includedir@%$includedir%g
2700 s%@oldincludedir@%$oldincludedir%g
2701 s%@infodir@%$infodir%g
2702 s%@mandir@%$mandir%g
2704 s%@host_alias@%$host_alias%g
2705 s%@host_cpu@%$host_cpu%g
2706 s%@host_vendor@%$host_vendor%g
2707 s%@host_os@%$host_os%g
2710 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2711 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2712 s%@INSTALL_DATA@%$INSTALL_DATA%g
2714 s%@RANLIB@%$RANLIB%g
2715 s%@MAKE_SHELL@%$MAKE_SHELL%g
2716 s%@SHOBJ_CC@%$SHOBJ_CC%g
2717 s%@SHOBJ_CFLAGS@%$SHOBJ_CFLAGS%g
2718 s%@SHOBJ_LD@%$SHOBJ_LD%g
2719 s%@SHOBJ_LDFLAGS@%$SHOBJ_LDFLAGS%g
2720 s%@SHOBJ_XLDFLAGS@%$SHOBJ_XLDFLAGS%g
2721 s%@SHOBJ_LIBS@%$SHOBJ_LIBS%g
2722 s%@SHOBJ_STATUS@%$SHOBJ_STATUS%g
2723 s%@SHLIB_STATUS@%$SHLIB_STATUS%g
2724 s%@SHLIB_XLDFLAGS@%$SHLIB_XLDFLAGS%g
2725 s%@SHLIB_LIBSUFF@%$SHLIB_LIBSUFF%g
2726 s%@SHLIB_LIBVERSION@%$SHLIB_LIBVERSION%g
2727 s%@SHLIB_LIBS@%$SHLIB_LIBS%g
2728 s%@SHLIB_MAJOR@%$SHLIB_MAJOR%g
2729 s%@SHLIB_MINOR@%$SHLIB_MINOR%g
2730 s%@BUILD_DIR@%$BUILD_DIR%g
2731 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
2732 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
2733 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
2734 s%@ARFLAGS@%$ARFLAGS%g
2735 s%@LIBVERSION@%$LIBVERSION%g
2736 s%@TERMCAP_LIB@%$TERMCAP_LIB%g
2741 cat >> $CONFIG_STATUS <<\EOF
2743 # Split the substitutions into bite-sized pieces for seds with
2744 # small command number limits, like on Digital OSF/1 and HP-UX.
2745 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2746 ac_file=1 # Number of current file.
2747 ac_beg=1 # First line for current file.
2748 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2751 while $ac_more_lines; do
2752 if test $ac_beg -gt 1; then
2753 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2755 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2757 if test ! -s conftest.s$ac_file; then
2759 rm -f conftest.s$ac_file
2761 if test -z "$ac_sed_cmds"; then
2762 ac_sed_cmds="sed -f conftest.s$ac_file"
2764 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2766 ac_file=`expr $ac_file + 1`
2768 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2771 if test -z "$ac_sed_cmds"; then
2776 cat >> $CONFIG_STATUS <<EOF
2778 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile examples/Makefile shlib/Makefile"}
2780 cat >> $CONFIG_STATUS <<\EOF
2781 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2784 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2785 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2786 *) ac_file_in="${ac_file}.in" ;;
2789 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2791 # Remove last slash and all that follows it. Not all systems have dirname.
2792 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2793 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2794 # The file is in a subdirectory.
2795 test ! -d "$ac_dir" && mkdir "$ac_dir"
2796 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2797 # A "../" for each directory in $ac_dir_suffix.
2798 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2800 ac_dir_suffix= ac_dots=
2803 case "$ac_given_srcdir" in
2805 if test -z "$ac_dots"; then top_srcdir=.
2806 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2807 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2809 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2810 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2813 case "$ac_given_INSTALL" in
2814 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2815 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2818 echo creating "$ac_file"
2820 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2822 *Makefile*) ac_comsub="1i\\
2823 # $configure_input" ;;
2827 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2829 s%@configure_input@%$configure_input%g
2830 s%@srcdir@%$srcdir%g
2831 s%@top_srcdir@%$top_srcdir%g
2832 s%@INSTALL@%$INSTALL%g
2833 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2837 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2838 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2840 # ac_d sets the value in "#define NAME VALUE" lines.
2841 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2842 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2845 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2846 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2847 ac_uB='\([ ]\)%\1#\2define\3'
2850 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2851 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2852 ac_eB='$%\1#\2define\3'
2856 if test "${CONFIG_HEADERS+set}" != set; then
2858 cat >> $CONFIG_STATUS <<EOF
2859 CONFIG_HEADERS="config.h"
2861 cat >> $CONFIG_STATUS <<\EOF
2863 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2864 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2866 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2867 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2868 *) ac_file_in="${ac_file}.in" ;;
2871 echo creating $ac_file
2873 rm -f conftest.frag conftest.in conftest.out
2874 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2875 cat $ac_file_inputs > conftest.in
2879 # Transform confdefs.h into a sed script conftest.vals that substitutes
2880 # the proper values into config.h.in to produce config.h. And first:
2881 # Protect against being on the right side of a sed subst in config.status.
2882 # Protect against being in an unquoted here document in config.status.
2884 cat > conftest.hdr <<\EOF
2887 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2891 sed -n -f conftest.hdr confdefs.h > conftest.vals
2894 # This sed command replaces #undef with comments. This is necessary, for
2895 # example, in the case of _POSIX_SOURCE, which is predefined and required
2896 # on some systems where configure will not decide to define it.
2897 cat >> conftest.vals <<\EOF
2898 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2901 # Break up conftest.vals because some shells have a limit on
2902 # the size of here documents, and old seds have small limits too.
2907 ac_lines=`grep -c . conftest.vals`
2908 # grep -c gives empty output for an empty file on some AIX systems.
2909 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2910 # Write a limited-size here document to conftest.frag.
2911 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2912 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2914 sed -f conftest.frag conftest.in > conftest.out
2916 mv conftest.out conftest.in
2918 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2920 mv conftest.tail conftest.vals
2924 cat >> $CONFIG_STATUS <<\EOF
2925 rm -f conftest.frag conftest.h
2926 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2927 cat conftest.in >> conftest.h
2929 if cmp -s $ac_file conftest.h 2>/dev/null; then
2930 echo "$ac_file is unchanged"
2933 # Remove last slash and all that follows it. Not all systems have dirname.
2934 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2935 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2936 # The file is in a subdirectory.
2937 test ! -d "$ac_dir" && mkdir "$ac_dir"
2940 mv conftest.h $ac_file
2945 cat >> $CONFIG_STATUS <<EOF
2948 cat >> $CONFIG_STATUS <<\EOF
2950 # Makefile uses this timestamp file to record whether config.h is up to date.
2955 chmod +x $CONFIG_STATUS
2956 rm -fr confdefs* $ac_clean_files
2957 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1