diff options
author | Reid Spencer <reid@x10sys.com> | 2007-08-17 05:44:59 +0000 |
---|---|---|
committer | Reid Spencer <reid@x10sys.com> | 2007-08-17 05:44:59 +0000 |
commit | 9dcffddd7c3fd5d2583a54164da794165884770c (patch) | |
tree | c9f559f1b11c80d30d11647f9896bfabc04ccf8c /autoconf | |
parent | 6af4c7ac30245f8be58a5e3a5e4a84cd82db49a9 (diff) | |
download | external_llvm-9dcffddd7c3fd5d2583a54164da794165884770c.zip external_llvm-9dcffddd7c3fd5d2583a54164da794165884770c.tar.gz external_llvm-9dcffddd7c3fd5d2583a54164da794165884770c.tar.bz2 |
Fix PR1606:
The AC_CHECK_HEADER macro was used instead of AC_CHECK_HEADERS. The former does
not automatically add a #define to the configure variables while the latter
does. Consequently, the HAVE_PTHREAD_H symbol was not defined which caused the
Mutex.cpp file to compile to an empty implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 5ba07c8..b639c88 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -689,10 +689,11 @@ AC_HEADER_TIME AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h]) AC_CHECK_HEADERS([malloc.h setjmp.h signal.h stdint.h unistd.h utime.h]) -AC_CHECK_HEADERS([windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h]) +AC_CHECK_HEADERS([windows.h]) +AC_CHECK_HEADERS([sys/mman.h sys/param.h sys/resource.h sys/time.h]) AC_CHECK_HEADERS([sys/types.h malloc/malloc.h mach/mach.h]) if test "$ENABLE_THREADS" -eq 1 ; then - AC_CHECK_HEADER(pthread.h, + AC_CHECK_HEADERS(pthread.h, AC_SUBST(HAVE_PTHREAD, 1), AC_SUBST(HAVE_PTHREAD, 0)) else |