[llvm-commits] CVS: llvm/autoconf/configure.ac

Reid Spencer reid at x10sys.com
Thu Nov 30 16:37:32 PST 2006



Changes in directory llvm/autoconf:

configure.ac updated: 1.252 -> 1.253
---
Log message:

For PR1019: http://llvm.org/PR1019 :
Add HAVE_PTHREAD to makefiles with support from configure and use it to
determine whether to build examples/ParallelJIT.
Patch by Anton Korobeynikov.


---
Diffs of the changes:  (+5 -1)

 configure.ac |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.252 llvm/autoconf/configure.ac:1.253
--- llvm/autoconf/configure.ac:1.252	Thu Nov 16 21:32:33 2006
+++ llvm/autoconf/configure.ac	Thu Nov 30 18:37:14 2006
@@ -637,7 +637,11 @@
 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===-----------------------------------------------------------------------===






More information about the llvm-commits mailing list