diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-01 00:37:14 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-01 00:37:14 +0000 |
commit | 1000b73397bd72b71ede338caf5b6379072d94a4 (patch) | |
tree | 5dda0d342d7e1d3011f7ad7c76c07e4a93a1681c /autoconf | |
parent | 481169e7011b39708154713fe595e8d059c1586f (diff) |
For PR1019:
Add HAVE_PTHREAD to makefiles with support from configure and use it to
determine whether to build examples/ParallelJIT.
Patch by Anton Korobeynikov.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 4b9e0c31fd..cc299e63d1 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -637,7 +637,11 @@ 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([sys/types.h malloc/malloc.h mach/mach.h]) if test "$ENABLE_THREADS" -eq 1 ; then - AC_CHECK_HEADERS(pthread.h) + AC_CHECK_HEADER(pthread.h, + AC_SUBST(HAVE_PTHREAD, 1), + AC_SUBST(HAVE_PTHREAD, 0)) +else + AC_SUBST(HAVE_PTHREAD, 0) fi dnl===-----------------------------------------------------------------------=== |