diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-12-05 19:29:01 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-12-05 19:29:01 +0000 |
commit | 5f268f77600250a97d3a3dc1e7d9e8a51f81f875 (patch) | |
tree | 12b93817174fffbca610b36ce3c44f425a4cd288 /autoconf | |
parent | a327e7fea987769152e06c10e58fea81ca2bc556 (diff) | |
download | external_llvm-5f268f77600250a97d3a3dc1e7d9e8a51f81f875.zip external_llvm-5f268f77600250a97d3a3dc1e7d9e8a51f81f875.tar.gz external_llvm-5f268f77600250a97d3a3dc1e7d9e8a51f81f875.tar.bz2 |
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.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 2704747..d1df826 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. |