summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-02-23 22:07:01 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-02-23 22:07:01 +0000
commit1133eaf376cb3819df7f8301807f259968ca6b3c (patch)
treeba8dc8eb410ee361fe392854912db660d3db6ce1 /autoconf
parent6c3fd8101dfe012778a9b129a81fd8d9d477ec77 (diff)
Add SUBSTing checks for sys/types.h and inttypes.h; add DataTypes.h to AC_OUTPUT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac17
1 files changed, 15 insertions, 2 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index f8d091ea961..fd4870c520a 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -234,6 +234,18 @@ AC_HEADER_SYS_WAIT
dnl Checks for POSIX and other various system-specific header files
AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h)
+dnl Check for things that need to be included in public headers, and so
+dnl for which we may not have access to a HAVE_* preprocessor #define.
+dnl (primarily used in DataTypes.h)
+AC_CHECK_HEADER([sys/types.h],
+ [INCLUDE_SYS_TYPES_H='#include <sys/types.h>'],
+ [INCLUDE_SYS_TYPES_H=''])
+AC_SUBST(INCLUDE_SYS_TYPES_H)
+AC_CHECK_HEADER([inttypes.h],
+ [INCLUDE_INTTYPES_H='#include <inttypes.h>'],
+ [INCLUDE_INTTYPES_H=''])
+AC_SUBST(INCLUDE_INTTYPES_H)
+
dnl Check for types
AC_TYPE_PID_T
AC_TYPE_SIZE_T
@@ -446,10 +458,11 @@ AC_DEFINE_UNQUOTED(SHLIBEXT,"$SHLIBEXT",
dnl Create the output files
AC_OUTPUT(Makefile.config
- include/Support/iterator
+ include/Support/DataTypes.h
+ include/Support/ThreadSupport.h
include/Support/hash_map
include/Support/hash_set
- include/Support/ThreadSupport.h)
+ include/Support/iterator)
dnl Warn loudly if llvm-gcc was not obviously working
if test $llvmgccwarn = yes