From 313a7b1d9130a6a70853f04b8b4e73c678241d3f Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sat, 6 Aug 2016 01:51:41 +0200 Subject: [PATCH] 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. --- configure.ac | 10 +++++----- 1 file 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" -- 2.47.2