summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-06 01:51:41 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-06 01:54:55 +0200
commit313a7b1d9130a6a70853f04b8b4e73c678241d3f (patch)
tree4ff3944ae41904e46e2d9f76894540459803f70d /configure.ac
parentb559d4846018c3adac362c6f1d0d697956586208 (diff)
configure.ac: Re-enable pthread support for thread-local _error
This was disabled in 1999 by jgg due to "glibc bugs". Let's hope those are fixed now, 17 years later.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index d030dc632..ce547ab74 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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"