]> git.saurik.com Git - apt.git/commitdiff
configure.ac: Re-enable pthread support for thread-local _error
authorJulian Andres Klode <jak@debian.org>
Fri, 5 Aug 2016 23:51:41 +0000 (01:51 +0200)
committerJulian Andres Klode <jak@debian.org>
Fri, 5 Aug 2016 23:54:55 +0000 (01:54 +0200)
This was disabled in 1999 by jgg due to "glibc bugs". Let's hope
those are fixed now, 17 years later.

configure.ac

index d030dc63237e69e6b25177c06499f30aba991193..ce547ab74e77d71c9ccff3c72e64b162cd11f4a3 100644 (file)
@@ -55,12 +55,12 @@ SOCKETLIBS="$LIBS"
 AC_SUBST(SOCKETLIBS)
 LIBS="$SAVE_LIBS"
 
-dnl Checks for pthread -- disabled due to glibc bugs jgg
-dnl AC_CHECK_LIB(pthread, pthread_create,[AC_DEFINE(HAVE_PTHREAD) PTHREADLIB="-lpthread"])
+dnl Checks for pthread
+AC_CHECK_LIB(pthread, pthread_create,[AC_DEFINE(HAVE_PTHREAD) PTHREADLIB="-lpthread"])
 AC_SUBST(PTHREADLIB)
-dnl if test "$PTHREADLIB" != "-lpthread"; then
-dnl   AC_MSG_ERROR(failed: I need posix threads, pthread)
-dnl fi
+if test "$PTHREADLIB" != "-lpthread"; then
+  AC_MSG_ERROR(failed: I need posix threads, pthread)
+fi
 
 dnl Check for BDB
 saveLIBS="$LIBS"