harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r370520 - /incubator/harmony/enhanced/jchevm/configure.ac
Date Thu, 19 Jan 2006 16:13:44 GMT
Author: archie
Date: Thu Jan 19 08:13:41 2006
New Revision: 370520

URL: http://svn.apache.org/viewcvs?rev=370520&view=rev
Log:
Remove -lpthread vs. -pthread configure hack. This was only needed for
older (obsolete) versions of FreeBSD.

Modified:
    incubator/harmony/enhanced/jchevm/configure.ac

Modified: incubator/harmony/enhanced/jchevm/configure.ac
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/jchevm/configure.ac?rev=370520&r1=370519&r2=370520&view=diff
==============================================================================
--- incubator/harmony/enhanced/jchevm/configure.ac (original)
+++ incubator/harmony/enhanced/jchevm/configure.ac Thu Jan 19 08:13:41 2006
@@ -76,18 +76,9 @@
 	[AC_MSG_ERROR([required library libz missing])])
 AC_CHECK_LIB(popt, poptGetContext,,
 	[AC_MSG_ERROR([required library libpopt missing])])
+AC_CHECK_LIB(pthread, pthread_create,,
+	[AC_MSG_ERROR([required library pthread missing])])
 AC_CHECK_LIB(dl, dlopen,,,)
-
-# Check for pthread library, linking either via -pthread or -lpthread
-AC_MSG_CHECKING([whether -pthread gets us the pthread library])
-[old_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS -pthread"]
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>
-	    void *x=&pthread_create;]])],
-	[AC_MSG_RESULT(yes)],
-	[AC_MSG_RESULT(no)
-	[LDFLAGS="$old_LDFLAGS"]
-	AC_CHECK_LIB(pthread, pthread_create,,
-	    [AC_MSG_ERROR([required library libpthread missing])])])
 
 # Check for thread local storage support
 AC_MSG_CHECKING([for thread local variable support])



Mime
View raw message