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

2001-08-02  David Billinghurst <David.Billinghurst>

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

From-SVN: r44574
This commit is contained in:
David Billinghurst 2001-08-02 16:53:38 +00:00 committed by Tom Tromey
parent 578672a267
commit a2d6e91582
3 changed files with 15 additions and 3 deletions

View File

@ -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:

9
boehm-gc/configure vendored
View File

@ -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

View File

@ -56,6 +56,9 @@ case "$THREADS" in
*-*-irix*)
AC_DEFINE(IRIX_THREADS)
;;
*-*-cygwin*)
THREADLIBS=
;;
esac
;;
decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)