summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-12-05 19:29:01 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-12-05 19:29:01 +0000
commit5f268f77600250a97d3a3dc1e7d9e8a51f81f875 (patch)
tree12b93817174fffbca610b36ce3c44f425a4cd288 /autoconf
parenta327e7fea987769152e06c10e58fea81ca2bc556 (diff)
Add check for pthread_mutex_lock() in -lpthread (or otherwise).
Regenerated configure w/ autoconf-2.57. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 27047478551..d1df826dd78 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -294,6 +294,10 @@ AC_SEARCH_LIBS(dlopen,dl,AC_DEFINE([HAVE_DLOPEN],[1],[Define if dlopen() is avai
dnl mallinfo is optional; the code can compile (minus features) without it
AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1],[Define if mallinfo() is available on this platform.]))
+dnl pthread locking functions are optional - but llvm will not be thread-safe
+dnl without locks.
+AC_SEARCH_LIBS(pthread_mutex_lock,pthread,AC_DEFINE(HAVE_PTHREAD_MUTEX_LOCK,1,[Define if PThread mutexes (e.g., pthread_mutex_lock) are available in the system's thread library.]))
+
dnl
dnl The math libraries are used by the test code, but not by the actual LLVM
dnl code.