From 50453ad879d0d93854de5a3385776bd799e8f35c Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 12 May 1999 22:36:23 +0000 Subject: [PATCH] update --- config.h.in | 3 +++ configure | 42 ++++++++++++++++++++++++------------------ 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/config.h.in b/config.h.in index f0fc880721..dc890fc9c5 100644 --- a/config.h.in +++ b/config.h.in @@ -42,6 +42,9 @@ /* define on Solaris to get sigwait() to work using pthreads semantics */ #undef _POSIX_PTHREAD_SEMANTICS +/* define if LinuxThreads is in use */ +#undef HAVE_LINUXTHREADS + /* Define if you have the header file. */ #undef HAVE_FCNTL_H diff --git a/configure b/configure index 04d166dd70..b833559dbc 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh -# From configure.in Revision: 1.24 +# From configure.in Revision: 1.25 @@ -1588,6 +1588,12 @@ case "$host" in *-bsdi3.1*) cat >> confdefs.h <<\EOF #define NEED_PTHREAD_INIT 1 +EOF + + ;; + *-linux*) + cat >> confdefs.h <<\EOF +#define HAVE_LINUXTHREADS 1 EOF ;; @@ -1598,7 +1604,7 @@ case "$host" in ;; *) echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 -echo "configure:1602: checking for socket in -lsocket" >&5 +echo "configure:1608: checking for socket in -lsocket" >&5 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1606,7 +1612,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1645,7 +1651,7 @@ else fi echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6 -echo "configure:1649: checking for inet_ntoa in -lnsl" >&5 +echo "configure:1655: checking for inet_ntoa in -lnsl" >&5 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1653,7 +1659,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1695,12 +1701,12 @@ fi esac echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6 -echo "configure:1699: checking for inet_ntop" >&5 +echo "configure:1705: checking for inet_ntop" >&5 if eval "test \"`echo '$''{'ac_cv_func_inet_ntop'+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; then +if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_inet_ntop=yes" else @@ -1750,12 +1756,12 @@ EOF fi echo $ac_n "checking for inet_pton""... $ac_c" 1>&6 -echo "configure:1754: checking for inet_pton" >&5 +echo "configure:1760: checking for inet_pton" >&5 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+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; then +if { (eval echo configure:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_inet_pton=yes" else @@ -1805,12 +1811,12 @@ EOF fi echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 -echo "configure:1809: checking for inet_aton" >&5 +echo "configure:1815: checking for inet_aton" >&5 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+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; then +if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_inet_aton=yes" else @@ -1904,9 +1910,9 @@ esac echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6 -echo "configure:1908: checking for sa_len in struct sockaddr" >&5 +echo "configure:1914: checking for sa_len in struct sockaddr" >&5 cat > conftest.$ac_ext < EOF