[llvm-commits] CVS: llvm/autoconf/configure.ac
Reid Spencer
reid at x10sys.com
Tue Jul 12 00:19:26 PDT 2005
Changes in directory llvm/autoconf:
configure.ac updated: 1.186 -> 1.187
---
Log message:
In support of PR418: http://llvm.cs.uiuc.edu/PR418 :
Make sure that -lpthread gets added to LIBS variable which puts it at the
end of the tools' link commands, if libpthread.a is found.
Add a test for pthread.h so we can use #ifdef HAVE_PTHREAD_H
---
Diffs of the changes: (+4 -1)
configure.ac | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.186 llvm/autoconf/configure.ac:1.187
--- llvm/autoconf/configure.ac:1.186 Mon Jun 6 14:29:36 2005
+++ llvm/autoconf/configure.ac Tue Jul 12 02:19:13 2005
@@ -417,6 +417,7 @@
dnl libelf is for sparc only; we can ignore it if we don't have it
AC_CHECK_LIB(elf, elf_begin)
+
dnl lt_dlopen may be required for plugin support.
AC_SEARCH_LIBS(lt_dlopen,ltdl,AC_DEFINE([HAVE_LT_DLOPEN],[1],
[Define if lt_dlopen() is available on this platform]),
@@ -434,6 +435,7 @@
dnl pthread locking functions are optional - but llvm will not be thread-safe
dnl without locks.
+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]))
@@ -456,7 +458,8 @@
AC_HEADER_TIME
AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h])
-AC_CHECK_HEADERS([malloc.h signal.h stdint.h unistd.h utime.h windows.h])
+AC_CHECK_HEADERS([malloc.h pthread.h signal.h stdint.h unistd.h utime.h])
+AC_CHECK_HEADERS([windows.h])
AC_CHECK_HEADERS([sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h])
AC_CHECK_HEADERS([rw/stdex/hash_map.h rw/stdex/hash_set.h])
More information about the llvm-commits
mailing list