summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-10-14 11:12:33 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-10-14 11:12:33 +0000
commit5da60469f9a9513c28c9d715d818f7d789972e90 (patch)
tree9fe44df8bb670a822bb62142bfd7008137378599 /autoconf
parentf0429fd1ca7f6d359a33c20617785d7572a0292d (diff)
downloadllvm-5da60469f9a9513c28c9d715d818f7d789972e90.tar.gz
llvm-5da60469f9a9513c28c9d715d818f7d789972e90.tar.bz2
llvm-5da60469f9a9513c28c9d715d818f7d789972e90.tar.xz
Undo pthread patch from rev. 83930 & 83823. Credit to Paul Davey.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac4
1 files changed, 1 insertions, 3 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 49c1c87594..f1b060e948 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -974,9 +974,7 @@ AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1],
dnl pthread locking functions are optional - but llvm will not be thread-safe
dnl without locks.
if test "$ENABLE_THREADS" -eq 1 ; then
- AC_SEARCH_LIBS(pthread_mutex_init,pthread,
- AC_DEFINE([HAVE_PTHREAD],[1],
- [Have pthread]))
+ AC_CHECK_LIB(pthread, pthread_mutex_init)
AC_SEARCH_LIBS(pthread_mutex_lock,pthread,
AC_DEFINE([HAVE_PTHREAD_MUTEX_LOCK],[1],
[Have pthread_mutex_lock]))