From ea186e9321fbb4aa05920eebe45b631a23584b7a Mon Sep 17 00:00:00 2001
From: tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Thu, 2 Aug 2001 16:53:38 +0000
Subject: [PATCH] 2001-08-02  David Billinghurst <David.Billinghurst>

	* configure: Rebuilt.
	* configure.in:  POSIX threads on cygwin does not link with
	-lpthreads.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44574 138bc75d-0d04-0410-961f-82ee72b054a4
---
 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 0c25c7cc39d8..635eb37e411d 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-02  David Billinghurst <David.Billinghurst>
+
+	* configure: Rebuilt.
+	* configure.in:  POSIX threads on cygwin does not link with
+	-lpthreads.
+
 2001-07-03  Tom Tromey  <tromey@redhat.com>
 
 	Fix for PR bootstrap/3281:
diff --git a/boehm-gc/configure b/boehm-gc/configure
index efbb687437fa..560ccb3c04e2 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 <<EOF
-#line 2672 "configure"
+#line 2675 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -2679,7 +2682,7 @@ int main() {
 dlopen()
 ; return 0; }
 EOF
-if { (eval echo configure:2683: \"$ac_link\") 1>&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 ef1760a6022a..ec835e11c363 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)
-- 
GitLab