Add a HAVE_MACH_MACH_H #define to detect the presence of the mach/mach.h
authorReid Spencer <rspencer@reidspencer.com>
Thu, 14 Sep 2006 06:17:21 +0000 (06:17 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 14 Sep 2006 06:17:21 +0000 (06:17 +0000)
header file on Darwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30319 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac
configure
include/llvm/Config/config.h.in

index 1490d00982700dfc13d4562ca99ff420ae82ace3..65a1ce3956b3f12eeb95e8d018cc9b4bcf60818c 100644 (file)
@@ -619,7 +619,7 @@ 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([sys/types.h malloc/malloc.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)
 fi
index 7f35be5d566eb4f508d17c66ae6389c3b086797e..06c053140ce9c328dcd29796a31c8bdc0241d698 100755 (executable)
--- a/configure
+++ b/configure
@@ -28833,7 +28833,8 @@ done
 
 
 
-for ac_header in sys/types.h malloc/malloc.h
+
+for ac_header in sys/types.h malloc/malloc.h mach/mach.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
index 705e8558e1f9822ea023abdd66f0b7d51b16dd84..0c12b1d5ed24cf7f111a21438d7c1514ac89ba29 100644 (file)
 /* Define if lt_dlopen() is available on this platform */
 #undef HAVE_LT_DLOPEN
 
+/* Define to 1 if you have the <mach/mach.h> header file. */
+#undef HAVE_MACH_MACH_H
+
 /* Define to 1 if you have the <mach-o/dyld.h> header file. */
 #undef HAVE_MACH_O_DYLD_H