From a2d6e915822ebb61a846b8b4043bc977665b22d3 Mon Sep 17 00:00:00 2001 From: David Billinghurst Date: Thu, 2 Aug 2001 16:53:38 +0000 Subject: [PATCH] configure.in: POSIX threads on cygwin does not link with -lpthreads. 2001-08-02 David Billinghurst * configure: Rebuilt. * configure.in: POSIX threads on cygwin does not link with -lpthreads. From-SVN: r44574 --- boehm-gc/ChangeLog | 6 ++++++ boehm-gc/configure | 9 ++++++--- boehm-gc/configure.in | 3 +++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index 0c25c7cc39d..635eb37e411 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,9 @@ +2001-08-02 David Billinghurst + + * configure: Rebuilt. + * configure.in: POSIX threads on cygwin does not link with + -lpthreads. + 2001-07-03 Tom Tromey Fix for PR bootstrap/3281: diff --git a/boehm-gc/configure b/boehm-gc/configure index efbb687437f..560ccb3c04e 100755 --- a/boehm-gc/configure +++ b/boehm-gc/configure @@ -2647,6 +2647,9 @@ EOF #define IRIX_THREADS 1 EOF + ;; + *-*-cygwin*) + THREADLIBS= ;; esac ;; @@ -2660,7 +2663,7 @@ esac echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:2664: checking for dlopen in -ldl" >&5 +echo "configure:2667: checking for dlopen in -ldl" >&5 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2668,7 +2671,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2686: \"$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 diff --git a/boehm-gc/configure.in b/boehm-gc/configure.in index ef1760a6022..ec835e11c36 100644 --- a/boehm-gc/configure.in +++ b/boehm-gc/configure.in @@ -56,6 +56,9 @@ case "$THREADS" in *-*-irix*) AC_DEFINE(IRIX_THREADS) ;; + *-*-cygwin*) + THREADLIBS= + ;; esac ;; decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)