From be20ad989249b52e3166181aa2ee9df71cb7fea3 Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 21 Mar 2004 02:32:48 +0000 Subject: [PATCH] better generation of config.h.in (if needed) please note this is still only used by BuildGNU.sh, not by the MirOS build process --- configure | 350 +++++++++++++++++++++++++++--------------------------- 1 file changed, 176 insertions(+), 174 deletions(-) diff --git a/configure b/configure index 6b77d51..b58d37e 100644 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# $MirBSD: configure,v 1.3 2004/03/21 01:25:05 tg Exp $ +# $MirBSD: configure,v 1.4 2004/03/21 02:32:48 tg Exp $ # # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13.20020210 @@ -576,7 +576,8 @@ else fi -test -s config.h.in || cp config.h config.h.in +test -s config.h.in || sed -e 's!^/\* #undef \(.*\) \*/!#undef \1!' \ + -e 's!^#define \(.*\) 1!#undef \1!' config.h.in def_path_unix="/bin:/usr/bin:/sbin:/usr/sbin" def_path_os2="c:/usr/bin;c:/os2;/os2" @@ -609,10 +610,11 @@ if test "${enable_shell+set}" = set; then enableval="$enable_shell" : else - enable_shell=sh + enable_shell=mirbsdksh fi case $enable_shell in + mirbsdksh) enable_shell=ksh ;; ksh) cat >> confdefs.h <<\EOF #define KSH 1 EOF @@ -786,7 +788,7 @@ esac # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:795: checking for $ac_word" >&5 +echo "configure:797: checking for $ac_word" >&5 if eval "test \"$(echo '$''{'ac_cv_prog_CC'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -815,7 +817,7 @@ fi echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:824: checking whether we are using GNU C" >&5 +echo "configure:826: checking whether we are using GNU C" >&5 if eval "test \"$(echo '$''{'ac_cv_prog_gcc'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -836,7 +838,7 @@ if test $ac_cv_prog_gcc = yes; then GCC=yes if test "${CFLAGS+set}" != set; then echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:845: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:847: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"$(echo '$''{'ac_cv_prog_gcc_g'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -863,7 +865,7 @@ else fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:872: checking how to run the C preprocessor" >&5 +echo "configure:874: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -878,13 +880,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=$(grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$") if test -z "$ac_err"; then : @@ -895,13 +897,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=$(grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$") if test -z "$ac_err"; then : @@ -912,13 +914,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=$(grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$") if test -z "$ac_err"; then : @@ -944,13 +946,13 @@ echo "$ac_t""$CPP" 1>&6 if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 -echo "configure:953: checking whether ${CC-cc} needs -traditional" >&5 +echo "configure:955: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"$(echo '$''{'ac_cv_prog_gcc_traditional'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_pattern="Autoconf.*'x'" cat > conftest.$ac_ext < Autoconf TIOCGETP @@ -968,7 +970,7 @@ rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext < Autoconf TCGETA @@ -997,7 +999,7 @@ LDSTATIC=${LDSTATIC-} test X"$LDSTATIC" != X && LDFLAGS="${LDFLAGS+$LDFLAGS }$LDSTATIC" echo $ac_n "checking if this is a problematic os""... $ac_c" 1>&6 -echo "configure:1006: checking if this is a problematic os" >&5 +echo "configure:1008: checking if this is a problematic os" >&5 if eval "test \"$(echo '$''{'ksh_cv_os_type'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1008,7 +1010,7 @@ else case $i in #(( AIX) cat > conftest.$ac_ext < conftest.$ac_ext < EOF @@ -1048,17 +1050,17 @@ rm -f conftest* MINIX) ac_safe=$(echo "minix/config.h" | sed 'y%./+-%__p_%') echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 -echo "configure:1057: checking for minix/config.h" >&5 +echo "configure:1059: checking for minix/config.h" >&5 if eval "test \"$(echo '$''{'ac_cv_header_$ac_safe'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=$(grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$") if test -z "$ac_err"; then rm -rf conftest* @@ -1083,7 +1085,7 @@ fi # Both native SCO cpp and gcc understand this (leave comments in) CPPFLAGS="$CPPFLAGS -C" cat > conftest.$ac_ext < EOF @@ -1097,7 +1099,7 @@ rm -f conftest* ;; #( OS2_EMX) cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ksh_cv_os_type=$i else @@ -1180,7 +1182,7 @@ fi rm -f conftest* ;; #( HPUX) cat > conftest.$ac_ext < conftest.$ac_ext < #if !defined(SIGINT) || !defined(SIGQUIT) @@ -1302,7 +1304,7 @@ rm -f conftest* # # name is used in test program echo $ac_n "checking for bug in getwd""... $ac_c" 1>&6 -echo "configure:1311: checking for bug in getwd" >&5 +echo "configure:1313: checking for bug in getwd" >&5 if eval "test \"$(echo '$''{'ksh_cv_hpux_getwd_bug'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1312,7 +1314,7 @@ else echo "configure: warning: assuming getwd broken" 1>&2; ksh_cv_hpux_getwd_bug=yes else cat > conftest.$ac_ext <&6 -echo "configure:1400: checking for $ac_hdr that defines DIR" >&5 +echo "configure:1402: checking for $ac_hdr that defines DIR" >&5 if eval "test \"$(echo '$''{'ac_cv_header_dirent_$ac_safe'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include <$ac_hdr> @@ -1404,7 +1406,7 @@ int main() { DIR *dirp = 0; ; return 0; } EOF -if { (eval echo configure:1413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" else @@ -1429,7 +1431,7 @@ done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 -echo "configure:1438: checking for opendir in -ldir" >&5 +echo "configure:1440: checking for opendir in -ldir" >&5 ac_lib_var=$(echo dir'_'opendir | sed 'y%./+-%__p_%') if eval "test \"$(echo '$''{'ac_cv_lib_$ac_lib_var'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1437,7 +1439,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1467,7 +1469,7 @@ if eval "test \"$(echo '$ac_cv_lib_'$ac_lib_var)\" = yes"; then else echo "$ac_t""no" 1>&6 echo $ac_n "checking for opendir in -lndir""... $ac_c" 1>&6 -echo "configure:1476: checking for opendir in -lndir" >&5 +echo "configure:1478: checking for opendir in -lndir" >&5 ac_lib_var=$(echo ndir'_'opendir | sed 'y%./+-%__p_%') if eval "test \"$(echo '$''{'ac_cv_lib_$ac_lib_var'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1475,7 +1477,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lndir $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1510,7 +1512,7 @@ fi else echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 -echo "configure:1519: checking for opendir in -lx" >&5 +echo "configure:1521: checking for opendir in -lx" >&5 ac_lib_var=$(echo x'_'opendir | sed 'y%./+-%__p_%') if eval "test \"$(echo '$''{'ac_cv_lib_$ac_lib_var'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1518,7 +1520,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1552,12 +1554,12 @@ fi fi echo $ac_n "checking for sane unistd.h""... $ac_c" 1>&6 -echo "configure:1561: checking for sane unistd.h" >&5 +echo "configure:1563: checking for sane unistd.h" >&5 if eval "test \"$(echo '$''{'ksh_cv_header_unistd'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -1570,7 +1572,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:1579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ksh_cv_header_unistd=yes else @@ -1591,12 +1593,12 @@ EOF fi echo $ac_n "checking terminal interface""... $ac_c" 1>&6 -echo "configure:1600: checking terminal interface" >&5 +echo "configure:1602: checking terminal interface" >&5 if eval "test \"$(echo '$''{'ksh_cv_term_check'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { @@ -1611,7 +1613,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ksh_cv_term_check=termios else @@ -1619,7 +1621,7 @@ else cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext < int main() { @@ -1636,7 +1638,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ksh_cv_term_check=bsd else @@ -1645,17 +1647,17 @@ else rm -rf conftest* ac_safe=$(echo "termio.h" | sed 'y%./+-%__p_%') echo $ac_n "checking for termio.h""... $ac_c" 1>&6 -echo "configure:1654: checking for termio.h" >&5 +echo "configure:1656: checking for termio.h" >&5 if eval "test \"$(echo '$''{'ac_cv_header_$ac_safe'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=$(grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$") if test -z "$ac_err"; then rm -rf conftest* @@ -1701,17 +1703,17 @@ for ac_hdr in stddef.h stdlib.h string.h memory.h fcntl.h limits.h paths.h \ do ac_safe=$(echo "$ac_hdr" | sed 'y%./+-%__p_%') echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1710: checking for $ac_hdr" >&5 +echo "configure:1712: checking for $ac_hdr" >&5 if eval "test \"$(echo '$''{'ac_cv_header_$ac_safe'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=$(grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$") if test -z "$ac_err"; then rm -rf conftest* @@ -1738,12 +1740,12 @@ fi done echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:1747: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:1749: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"$(echo '$''{'ac_cv_header_time'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -1752,7 +1754,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:1761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -1773,12 +1775,12 @@ EOF fi echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 -echo "configure:1782: checking for sys/wait.h that is POSIX.1 compatible" >&5 +echo "configure:1784: checking for sys/wait.h that is POSIX.1 compatible" >&5 if eval "test \"$(echo '$''{'ksh_cv_header_sys_wait_h'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -1794,7 +1796,7 @@ wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } EOF -if { (eval echo configure:1803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ksh_cv_header_sys_wait_h=yes else @@ -1819,17 +1821,17 @@ else do ac_safe=$(echo "$ac_hdr" | sed 'y%./+-%__p_%') echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1828: checking for $ac_hdr" >&5 +echo "configure:1830: checking for $ac_hdr" >&5 if eval "test \"$(echo '$''{'ac_cv_header_$ac_safe'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=$(grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$") if test -z "$ac_err"; then rm -rf conftest* @@ -1857,12 +1859,12 @@ done fi echo $ac_n "checking for off_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:1866: checking for off_t in sys/types.h" >&5 +echo "configure:1868: checking for off_t in sys/types.h" >&5 if eval "test \"$(echo '$''{'ac_cv_type_off_t'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -1892,12 +1894,12 @@ EOF fi echo $ac_n "checking for mode_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:1901: checking for mode_t in sys/types.h" >&5 +echo "configure:1903: checking for mode_t in sys/types.h" >&5 if eval "test \"$(echo '$''{'ac_cv_type_mode_t'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -1927,12 +1929,12 @@ EOF fi echo $ac_n "checking for pid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:1936: checking for pid_t in sys/types.h" >&5 +echo "configure:1938: checking for pid_t in sys/types.h" >&5 if eval "test \"$(echo '$''{'ac_cv_type_pid_t'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -1962,12 +1964,12 @@ EOF fi echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:1971: checking for uid_t in sys/types.h" >&5 +echo "configure:1973: checking for uid_t in sys/types.h" >&5 if eval "test \"$(echo '$''{'ac_cv_type_uid_t'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -2004,12 +2006,12 @@ EOF fi echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:2013: checking return type of signal handlers" >&5 +echo "configure:2015: checking return type of signal handlers" >&5 if eval "test \"$(echo '$''{'ac_cv_type_signal'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2026,7 +2028,7 @@ int main() { int i; ; return 0; } EOF -if { (eval echo configure:2035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -2055,7 +2057,7 @@ cat >> confdefs.h <&6 -echo "configure:2064: checking size of int" >&5 +echo "configure:2066: checking size of int" >&5 if eval "test \"$(echo '$''{'ac_cv_sizeof_int'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2063,7 +2065,7 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() @@ -2090,7 +2092,7 @@ EOF echo $ac_n "checking size of long""... $ac_c" 1>&6 -echo "configure:2099: checking size of long" >&5 +echo "configure:2101: checking size of long" >&5 if eval "test \"$(echo '$''{'ac_cv_sizeof_long'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2098,7 +2100,7 @@ else { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < main() @@ -2125,12 +2127,12 @@ EOF echo $ac_n "checking for clock_t in any of , and ""... $ac_c" 1>&6 -echo "configure:2134: checking for clock_t in any of , and " >&5 +echo "configure:2136: checking for clock_t in any of , and " >&5 if eval "test \"$(echo '$''{'ac_cv_type_clock_t'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -2165,12 +2167,12 @@ EOF fi echo $ac_n "checking for sigset_t in and ""... $ac_c" 1>&6 -echo "configure:2174: checking for sigset_t in and " >&5 +echo "configure:2176: checking for sigset_t in and " >&5 if eval "test \"$(echo '$''{'ac_cv_type_sigset_t'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -2200,12 +2202,12 @@ EOF fi echo $ac_n "checking for rlim_t in and ""... $ac_c" 1>&6 -echo "configure:2209: checking for rlim_t in and " >&5 +echo "configure:2211: checking for rlim_t in and " >&5 if eval "test \"$(echo '$''{'ac_cv_type_rlim_t'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -2231,7 +2233,7 @@ fi echo "$ac_t""$ac_cv_type_rlim_t" 1>&6 if test $ac_cv_type_rlim_t = no; then echo $ac_n "checking what to set rlim_t to""... $ac_c" 1>&6 -echo "configure:2240: checking what to set rlim_t to" >&5 +echo "configure:2242: checking what to set rlim_t to" >&5 if test $ac_cv_header_sys_resource_h = yes; then if eval "test \"$(echo '$''{'ksh_cv_rlim_check'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2241,7 +2243,7 @@ else else cat > conftest.$ac_ext < @@ -2276,7 +2278,7 @@ EOF fi echo $ac_n "checking for working memmove""... $ac_c" 1>&6 -echo "configure:2285: checking for working memmove" >&5 +echo "configure:2287: checking for working memmove" >&5 if eval "test \"$(echo '$''{'ksh_cv_func_memmove'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2284,7 +2286,7 @@ else echo "configure: warning: assuming memmove broken" 1>&2; ksh_cv_func_memmove=no else cat > conftest.$ac_ext <&6 -echo "configure:2337: checking for working bcopy" >&5 +echo "configure:2339: checking for working bcopy" >&5 if eval "test \"$(echo '$''{'ksh_cv_func_bcopy'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2336,7 +2338,7 @@ else echo "configure: warning: assuming bcopy broken" 1>&2; ksh_cv_func_bcopy=no else cat > conftest.$ac_ext <&6 -echo "configure:2390: checking for memset" >&5 +echo "configure:2392: checking for memset" >&5 if eval "test \"$(echo '$''{'ksh_cv_func_memset'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ksh_cv_func_memset=yes else @@ -2428,12 +2430,12 @@ for ac_func in confstr dup2 flock getcwd getwd killpg nice \ ulimit waitpid wait3 do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2437: checking for $ac_func" >&5 +echo "configure:2439: checking for $ac_func" >&5 if eval "test \"$(echo '$''{'ac_cv_func_$ac_func'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2483,12 +2485,12 @@ done for ac_func in sigsetjmp _setjmp do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2492: checking for $ac_func" >&5 +echo "configure:2494: checking for $ac_func" >&5 if eval "test \"$(echo '$''{'ac_cv_func_$ac_func'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2538,12 +2540,12 @@ done for ac_func in valloc getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2547: checking for $ac_func" >&5 +echo "configure:2549: checking for $ac_func" >&5 if eval "test \"$(echo '$''{'ac_cv_func_$ac_func'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2591,7 +2593,7 @@ fi done echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:2600: checking for working mmap" >&5 +echo "configure:2602: checking for working mmap" >&5 if eval "test \"$(echo '$''{'ac_cv_func_mmap'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2599,7 +2601,7 @@ else ac_cv_func_mmap=no else cat > conftest.$ac_ext <&6 -echo "configure:2700: checking for lstat" >&5 +echo "configure:2702: checking for lstat" >&5 if eval "test \"$(echo '$''{'ksh_cv_func_lstat'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -2709,7 +2711,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ksh_cv_func_lstat=yes else @@ -2730,19 +2732,19 @@ EOF fi echo $ac_n "checking for sys_errlist declaration in errno.h""... $ac_c" 1>&6 -echo "configure:2739: checking for sys_errlist declaration in errno.h" >&5 +echo "configure:2741: checking for sys_errlist declaration in errno.h" >&5 if eval "test \"$(echo '$''{'ksh_cv_decl_sys_errlist'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *msg = *(sys_errlist + 1); if (msg && *msg) return 12; ; return 0; } EOF -if { (eval echo configure:2751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ksh_cv_decl_sys_errlist=yes else @@ -2766,12 +2768,12 @@ EOF else echo $ac_n "checking for sys_errlist in library""... $ac_c" 1>&6 -echo "configure:2775: checking for sys_errlist in library" >&5 +echo "configure:2777: checking for sys_errlist in library" >&5 if eval "test \"$(echo '$''{'ksh_cv_var_sys_errlist'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ksh_cv_var_sys_errlist=yes else @@ -2806,12 +2808,12 @@ EOF fi echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 -echo "configure:2815: checking for sys_siglist declaration in signal.h or unistd.h" >&5 +echo "configure:2817: checking for sys_siglist declaration in signal.h or unistd.h" >&5 if eval "test \"$(echo '$''{'ac_cv_decl_sys_siglist'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2823,7 +2825,7 @@ int main() { char *msg = *(sys_siglist + 1); ; return 0; } EOF -if { (eval echo configure:2832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_sys_siglist=yes else @@ -2850,12 +2852,12 @@ EOF else echo $ac_n "checking for sys_siglist in library""... $ac_c" 1>&6 -echo "configure:2859: checking for sys_siglist in library" >&5 +echo "configure:2861: checking for sys_siglist in library" >&5 if eval "test \"$(echo '$''{'ksh_cv_var_sys_siglist'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ksh_cv_var_sys_siglist=yes else @@ -2889,12 +2891,12 @@ EOF fi echo $ac_n "checking time() declaration in time.h""... $ac_c" 1>&6 -echo "configure:2898: checking time() declaration in time.h" >&5 +echo "configure:2900: checking time() declaration in time.h" >&5 if eval "test \"$(echo '$''{'ksh_cv_time_delcared'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2902,7 +2904,7 @@ int main() { time_t (*f)() = time; if (f) return 12; ; return 0; } EOF -if { (eval echo configure:2911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ksh_cv_time_delcared=yes else @@ -2923,7 +2925,7 @@ EOF fi echo $ac_n "checking if times() is present/working""... $ac_c" 1>&6 -echo "configure:2932: checking if times() is present/working" >&5 +echo "configure:2934: checking if times() is present/working" >&5 if eval "test \"$(echo '$''{'ksh_cv_func_times_ok'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2932,7 +2934,7 @@ else else cat > conftest.$ac_ext < @@ -2978,12 +2980,12 @@ EOF for ac_func in getrusage do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2987: checking for $ac_func" >&5 +echo "configure:2989: checking for $ac_func" >&5 if eval "test \"$(echo '$''{'ac_cv_func_$ac_func'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3033,12 +3035,12 @@ done fi echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 -echo "configure:3042: checking whether stat file-mode macros are broken" >&5 +echo "configure:3044: checking whether stat file-mode macros are broken" >&5 if eval "test \"$(echo '$''{'ac_cv_header_stat_broken'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3095,12 +3097,12 @@ EOF fi echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 -echo "configure:3104: checking for st_rdev in struct stat" >&5 +echo "configure:3106: checking for st_rdev in struct stat" >&5 if eval "test \"$(echo '$''{'ac_cv_struct_st_rdev'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3108,7 +3110,7 @@ int main() { struct stat s; s.st_rdev; ; return 0; } EOF -if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_st_rdev=yes else @@ -3129,12 +3131,12 @@ EOF fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:3138: checking for working const" >&5 +echo "configure:3140: checking for working const" >&5 if eval "test \"$(echo '$''{'ac_cv_c_const'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -3204,12 +3206,12 @@ EOF fi echo $ac_n "checking if compiler understands void""... $ac_c" 1>&6 -echo "configure:3213: checking if compiler understands void" >&5 +echo "configure:3215: checking if compiler understands void" >&5 if eval "test \"$(echo '$''{'ksh_cv_c_void'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ksh_cv_c_void=yes else @@ -3243,12 +3245,12 @@ EOF fi echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6 -echo "configure:3252: checking if compiler understands volatile" >&5 +echo "configure:3254: checking if compiler understands volatile" >&5 if eval "test \"$(echo '$''{'ksh_cv_c_volatile'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ksh_cv_c_volatile=yes else @@ -3280,12 +3282,12 @@ EOF fi echo $ac_n "checking if compiler understands prototypes""... $ac_c" 1>&6 -echo "configure:3289: checking if compiler understands prototypes" >&5 +echo "configure:3291: checking if compiler understands prototypes" >&5 if eval "test \"$(echo '$''{'ksh_cv_c_prototypes'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -3299,7 +3301,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:3308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ksh_cv_c_prototypes=yes else @@ -3320,12 +3322,12 @@ EOF fi echo $ac_n "checking if C compiler groks __attribute__((.. ))""... $ac_c" 1>&6 -echo "configure:3329: checking if C compiler groks __attribute__((.. ))" >&5 +echo "configure:3331: checking if C compiler groks __attribute__((.. ))" >&5 if eval "test \"$(echo '$''{'ksh_cv_c_func_attr'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -3342,7 +3344,7 @@ int main() { test_nr("%d", 10); test_cnst(2); test_uk(); test_nr(); ; return 0; } EOF -if { (eval echo configure:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ksh_cv_c_func_attr=yes else @@ -3365,7 +3367,7 @@ EOF # Pull the hash mark out of the macro call to avoid m4 problems. ac_msg="whether #! works in shell scripts" echo $ac_n "checking $ac_msg""... $ac_c" 1>&6 -echo "configure:3374: checking $ac_msg" >&5 +echo "configure:3376: checking $ac_msg" >&5 if eval "test \"$(echo '$''{'ac_cv_sys_interpreter'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3392,7 +3394,7 @@ EOF fi echo $ac_n "checking if dup2() works (ie, resets the close-on-exec flag)""... $ac_c" 1>&6 -echo "configure:3401: checking if dup2() works (ie, resets the close-on-exec flag)" >&5 +echo "configure:3403: checking if dup2() works (ie, resets the close-on-exec flag)" >&5 if eval "test \"$(echo '$''{'ksh_cv_dup2_clexec_ok'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3401,7 +3403,7 @@ else ksh_cv_dup2_clexec_ok=no else cat > conftest.$ac_ext < @@ -3451,12 +3453,12 @@ EOF fi echo $ac_n "checking flavour of signal routines""... $ac_c" 1>&6 -echo "configure:3460: checking flavour of signal routines" >&5 +echo "configure:3462: checking flavour of signal routines" >&5 if eval "test \"$(echo '$''{'ksh_cv_signal_check'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { @@ -3469,7 +3471,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ksh_cv_signal_check=posix else @@ -3477,7 +3479,7 @@ else cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext < int main() { @@ -3487,7 +3489,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ksh_cv_signal_check=bsd42 else @@ -3495,7 +3497,7 @@ else cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext < RETSIGTYPE foo() { } @@ -3507,7 +3509,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ksh_cv_signal_check=bsd41 else @@ -3545,7 +3547,7 @@ EOF EOF echo $ac_n "checking if signals interrupt read()""... $ac_c" 1>&6 -echo "configure:3554: checking if signals interrupt read()" >&5 +echo "configure:3556: checking if signals interrupt read()" >&5 if eval "test \"$(echo '$''{'ksh_cv_signals_interrupt'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3554,7 +3556,7 @@ else else cat > conftest.$ac_ext < @@ -3677,7 +3679,7 @@ EOF fi echo $ac_n "checking flavour of pgrp routines""... $ac_c" 1>&6 -echo "configure:3686: checking flavour of pgrp routines" >&5 +echo "configure:3688: checking flavour of pgrp routines" >&5 if eval "test \"$(echo '$''{'ksh_cv_pgrp_check'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3685,7 +3687,7 @@ else { echo "configure: error: cannot taste pgrp routines when cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext <&2; exit 1; } else cat > conftest.$ac_ext <&2; exit 1; } else cat > conftest.$ac_ext <&6 -echo "configure:3839: checking if process group synchronization is required" >&5 +echo "configure:3841: checking if process group synchronization is required" >&5 if eval "test \"$(echo '$''{'ksh_cv_need_pgrp_sync'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3839,7 +3841,7 @@ else ksh_cv_need_pgrp_sync=yes else cat > conftest.$ac_ext <&6 -echo "configure:3912: checking if opendir() fails to open non-directories" >&5 +echo "configure:3914: checking if opendir() fails to open non-directories" >&5 if eval "test \"$(echo '$''{'ksh_cv_opendir_ok'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3912,7 +3914,7 @@ else ksh_cv_opendir_ok=no else cat > conftest.$ac_ext < @@ -3971,7 +3973,7 @@ EOF fi echo $ac_n "checking if you have /dev/fd/n""... $ac_c" 1>&6 -echo "configure:3980: checking if you have /dev/fd/n" >&5 +echo "configure:3982: checking if you have /dev/fd/n" >&5 if eval "test \"$(echo '$''{'ksh_cv_dev_fd'+set}')\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3980,7 +3982,7 @@ else ksh_cv_dev_fd=no else cat > conftest.$ac_ext <