From 12d37bc0456ebba75bb3e0d7e0159f909db9c4fb Mon Sep 17 00:00:00 2001 From: bdc Date: Sat, 4 Nov 1995 04:31:50 +0000 Subject: [PATCH] *** empty log message *** --- configure | 125 ++++++++++++++++++++++++++++++++------------------- configure.in | 2 +- 2 files changed, 81 insertions(+), 46 deletions(-) diff --git a/configure b/configure index 6289f76..475761e 100755 --- a/configure +++ b/configure @@ -519,6 +519,61 @@ else test "${CFLAGS+set}" = set || CFLAGS="-g" fi +echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 +if test -d /etc/conf/kconfig.d && + grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 +then + echo "$ac_t""yes" 1>&6 + ISC=yes # If later tests want to check for ISC. + cat >> confdefs.h <<\EOF +#define _POSIX_SOURCE 1 +EOF + + if test "$GCC" = yes; then + CC="$CC -posix" + else + CC="$CC -Xp" + fi +else + echo "$ac_t""no" 1>&6 + ISC= +fi + + + case "$host" in + *-*-linux* ) + echo $ac_n "checking for broken Linux that needs -static with -g""... $ac_c" 1>&6 + if eval "test \"`echo '$''{'scsh_cv_linux_static_debug'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <&6 + if test $scsh_cv_linux_static_debug = yes; then + LDFLAGS="-static ${LDFLAGS}" + fi + ;; + esac + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: @@ -599,32 +654,12 @@ else echo "$ac_t""no" 1>&6 fi -echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 -if test -d /etc/conf/kconfig.d && - grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 -then - echo "$ac_t""yes" 1>&6 - ISC=yes # If later tests want to check for ISC. - cat >> confdefs.h <<\EOF -#define _POSIX_SOURCE 1 -EOF - - if test "$GCC" = yes; then - CC="$CC -posix" - else - CC="$CC -Xp" - fi -else - echo "$ac_t""no" 1>&6 - ISC= -fi - echo $ac_n "checking for working const""... $ac_c" 1>&6 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < #include @@ -741,7 +776,7 @@ if eval $ac_compile; then rm -rf conftest* # It does; now see whether it defined to BIG_ENDIAN or not. cat > conftest.$ac_ext < #include @@ -770,7 +805,7 @@ if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&6 else cat > conftest.$ac_ext < #include @@ -1287,7 +1322,7 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error @@ -1301,7 +1336,7 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error @@ -1334,7 +1369,7 @@ 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 @@ -1369,7 +1404,7 @@ 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 <&6 else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext < conftest.$ac_ext < int main() { return 0; } @@ -1628,7 +1663,7 @@ EOF else cat > conftest.$ac_ext < int main() { return 0; } @@ -1663,7 +1698,7 @@ EOF else cat > conftest.$ac_ext < int main() { return 0; } @@ -1697,7 +1732,7 @@ EOF else cat > conftest.$ac_ext < int main() { return 0; } @@ -1732,7 +1767,7 @@ EOF else cat > conftest.$ac_ext < #include diff --git a/configure.in b/configure.in index 74b1a15..98e4e05 100644 --- a/configure.in +++ b/configure.in @@ -206,10 +206,10 @@ AC_CONFIG_HEADER(sysdep.h) AC_CANONICAL_HOST AC_PROG_CC +AC_ISC_POSIX SCSH_LINUX_STATIC_DEBUG AC_PROG_INSTALL AC_PROG_RANLIB -AC_ISC_POSIX AC_C_CONST AC_C_BIGENDIAN