[llvm-commits] CVS: llvm/include/Config/alloca.h assert.h config.h.in dlfcn.h errno.h fcntl.h limits.h link.h malloc.h memory.h stdint.h stdio.h stdlib.h string.h strings.h time.h unistd.h
John Criswell
criswell at cs.uiuc.edu
Mon Jun 30 17:01:15 PDT 2003
Changes in directory llvm/include/Config:
alloca.h updated: 1.1 -> 1.2
assert.h updated: 1.1 -> 1.2
config.h.in updated: 1.1 -> 1.2
dlfcn.h updated: 1.1 -> 1.2
errno.h updated: 1.1 -> 1.2
fcntl.h updated: 1.1 -> 1.2
limits.h updated: 1.1 -> 1.2
link.h updated: 1.1 -> 1.2
malloc.h updated: 1.1 -> 1.2
memory.h updated: 1.1 -> 1.2
stdint.h updated: 1.1 -> 1.2
stdio.h updated: 1.1 -> 1.2
stdlib.h updated: 1.1 -> 1.2
string.h updated: 1.1 -> 1.2
strings.h updated: 1.1 -> 1.2
time.h updated: 1.1 -> 1.2
unistd.h updated: 1.1 -> 1.2
---
Log message:
Merged in autoconf branch. This provides configuration via the autoconf
system.
---
Diffs of the changes:
Index: llvm/include/Config/alloca.h
diff -u /dev/null llvm/include/Config/alloca.h:1.2
--- /dev/null Mon Jun 30 16:59:28 2003
+++ llvm/include/Config/alloca.h Mon Jun 30 16:58:17 2003
@@ -0,0 +1,46 @@
+/*
+ * Header file: alloc.h
+ *
+ * Description:
+ * This header file includes the infamous alloc.h header file if the
+ * autoconf system has found it. It hides all of the autoconf details
+ * from the rest of the application source code.
+ */
+
+#ifndef _CONFIG_ALLOC_H
+#define _CONFIG_ALLOC_H
+
+#include "Config/config.h"
+
+/*
+ * This is a modified version of that suggested by the Autoconf manual.
+ * 1) The #pragma is indented so that pre-ANSI C compilers ignore it.
+ * 2) If alloca.h cannot be found, then try stdlib.h. Some platforms
+ * (notably FreeBSD) defined alloca() there.
+ */
+#ifndef __GNUC__
+# ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+# ifdef _AIX
+ # pragma alloca
+# else
+# ifndef alloca
+ char * alloca ();
+# endif
+# endif
+# endif
+#else
+# ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+# ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+# else
+# error "The function alloca() is required but not found!"
+# endif
+# endif
+#endif
+
+#endif
+
Index: llvm/include/Config/assert.h
diff -u /dev/null llvm/include/Config/assert.h:1.2
--- /dev/null Mon Jun 30 16:59:28 2003
+++ llvm/include/Config/assert.h Mon Jun 30 16:58:17 2003
@@ -0,0 +1,23 @@
+/*
+ * Header file: assert.h
+ *
+ * Description:
+ * This header file includes the assert.h header file if the
+ * autoconf system has found it.
+ */
+
+#ifndef _CONFIG_ASSERT_H
+#define _CONFIG_ASSERT_H
+
+#include "Config/config.h"
+
+/*
+ * This is the suggested use by the Autoconf manual.
+ * 1) The #pragma is indented so that pre-ANSI C compilers ignore it.
+ */
+#ifdef HAVE_ASSERT_H
+#include <assert.h>
+#endif
+
+#endif
+
Index: llvm/include/Config/config.h.in
diff -u /dev/null llvm/include/Config/config.h.in:1.2
--- /dev/null Mon Jun 30 16:59:28 2003
+++ llvm/include/Config/config.h.in Mon Jun 30 16:58:17 2003
@@ -0,0 +1,210 @@
+/* config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
+ systems. This function is required for `alloca.c' support on those systems.
+ */
+#undef CRAY_STACKSEG_END
+
+/* Define to 1 if using `alloca.c'. */
+#undef C_ALLOCA
+
+/* Define to 1 if you have `alloca', as a function or macro. */
+#undef HAVE_ALLOCA
+
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
+ */
+#undef HAVE_ALLOCA_H
+
+/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
+#undef HAVE_DOPRNT
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#undef HAVE_FCNTL_H
+
+/* Define to 1 if you have the `getcwd' function. */
+#undef HAVE_GETCWD
+
+/* Define to 1 if you have the `getpagesize' function. */
+#undef HAVE_GETPAGESIZE
+
+/* Define to 1 if you have the `gettimeofday' function. */
+#undef HAVE_GETTIMEOFDAY
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the `dl' library (-ldl). */
+#undef HAVE_LIBDL
+
+/* Define to 1 if you have the `elf' library (-lelf). */
+#undef HAVE_LIBELF
+
+/* Define to 1 if you have the `m' library (-lm). */
+#undef HAVE_LIBM
+
+/* Define to 1 if you have the `papi' library (-lpapi). */
+#undef HAVE_LIBPAPI
+
+/* Define to 1 if you have the <limits.h> header file. */
+#undef HAVE_LIMITS_H
+
+/* Define to 1 if you have the <malloc.h> header file. */
+#undef HAVE_MALLOC_H
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have a working `mmap' system call. */
+#undef HAVE_MMAP
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the `strcspn' function. */
+#undef HAVE_STRCSPN
+
+/* Define to 1 if you have the `strdup' function. */
+#undef HAVE_STRDUP
+
+/* Define to 1 if you have the `strerror' function. */
+#undef HAVE_STRERROR
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the `strspn' function. */
+#undef HAVE_STRSPN
+
+/* Define to 1 if you have the `strstr' function. */
+#undef HAVE_STRSTR
+
+/* Define to 1 if you have the `strtod' function. */
+#undef HAVE_STRTOD
+
+/* Define to 1 if you have the `strtol' function. */
+#undef HAVE_STRTOL
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#undef HAVE_SYS_TIME_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
+#undef HAVE_SYS_WAIT_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the `vprintf' function. */
+#undef HAVE_VPRINTF
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define as the return type of signal handlers (`int' or `void'). */
+#undef RETSIGTYPE
+
+/* Define to 1 if the `setvbuf' function takes the buffering type as its
+ second argument and the buffer pointer as the third, as on System V before
+ release 3. */
+#undef SETVBUF_REVERSED
+
+/* If using the C implementation of alloca, define if you know the
+ direction of stack growth for your system; otherwise it will be
+ automatically deduced at run-time.
+ STACK_DIRECTION > 0 => grows toward higher addresses
+ STACK_DIRECTION < 0 => grows toward lower addresses
+ STACK_DIRECTION = 0 => direction of growth unknown */
+#undef STACK_DIRECTION
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#undef TIME_WITH_SYS_TIME
+
+/* Define to 1 if your <sys/time.h> declares `struct tm'. */
+#undef TM_IN_SYS_TIME
+
+/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
+ `char[]'. */
+#undef YYTEXT_POINTER
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const
+
+/* Define as `__inline' if that's what the C compiler calls it, or to nothing
+ if it is not supported. */
+#undef inline
+
+/* Define to `int' if <sys/types.h> does not define. */
+#undef pid_t
+
+/* Define to `unsigned' if <sys/types.h> does not define. */
+#undef size_t
+
+/* Define to mark the machine as having little endian */
+#ifndef ENDIAN_LITTLE
+#undef ENDIAN_LITTLE
+#endif
+
+/* Define to mark the machine as having big endian */
+#ifndef ENDIAN_BIG
+#undef ENDIAN_BIG
+#endif
+
+/* Define to indicate how to include hash_map */
+#undef HAVE_STD_EXT_HASH_MAP
+#undef HAVE_GNU_EXT_HASH_MAP
+
+/* Define to incdicate how to include has_set */
+#undef HAVE_STD_EXT_HASH_SET
+#undef HAVE_GNU_EXT_HASH_SET
+
+/* Indicates whether we have STL iterators */
+#undef HAVE_STD_ITERATOR
+
+/* Indicates which slist we should use */
+#undef HAVE_EXT_SLIST
+
+/* Indicates whether we have the MALLINFO functionality */
+#undef HAVE_MALLINFO
+
+/* Indicates if we have MAP_ANONYMOUS */
+#undef HAVE_MMAP_ANONYMOUS
+
+/* Indicates whether we have MMAP header file */
+#undef HAVE_SYS_MMAN_H
+
+/* Indicates that we have assert.h */
+#undef HAVE_ASSERT_H
+
+/* Macros for various header files */
+#undef HAVE_SIGNAL_H
+#undef HAVE_ERRNO_H
+#undef HAVE_SYS_RESOURCE_H
+#undef HAVE_MATH_H
+#undef HAVE_DLFCN_H
+#undef HAVE_LINK_H
Index: llvm/include/Config/dlfcn.h
diff -u /dev/null llvm/include/Config/dlfcn.h:1.2
--- /dev/null Mon Jun 30 16:59:29 2003
+++ llvm/include/Config/dlfcn.h Mon Jun 30 16:58:17 2003
@@ -0,0 +1,27 @@
+/*
+ * Header file: dlfcn.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for dlfcn.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_DLFCN_H
+#define _CONFIG_DLFCN_H
+
+#include "Config/config.h"
+
+/*
+ * According to the man pages on dlopen(), we sometimes need link.h. So,
+ * go grab it just in case.
+ */
+#ifdef HAVE_DLFCN_H
+#include <dlfcn.h>
+
+#ifdef HAVE_LINK_H
+#include <link.h>
+#endif
+
+#endif
+
+#endif
Index: llvm/include/Config/errno.h
diff -u /dev/null llvm/include/Config/errno.h:1.2
--- /dev/null Mon Jun 30 16:59:29 2003
+++ llvm/include/Config/errno.h Mon Jun 30 16:58:17 2003
@@ -0,0 +1,18 @@
+/*
+ * Header file: errno.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for errno.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_ERRNO_H
+#define _CONFIG_ERRNO_H
+
+#include "Config/config.h"
+
+#ifdef HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
+#endif
Index: llvm/include/Config/fcntl.h
diff -u /dev/null llvm/include/Config/fcntl.h:1.2
--- /dev/null Mon Jun 30 16:59:29 2003
+++ llvm/include/Config/fcntl.h Mon Jun 30 16:58:17 2003
@@ -0,0 +1,18 @@
+/*
+ * Header file: fcntl.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for fcntl.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_FCNTL_H
+#define _CONFIG_FCNTL_H
+
+#include "Config/config.h"
+
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+
+#endif
Index: llvm/include/Config/limits.h
diff -u /dev/null llvm/include/Config/limits.h:1.2
--- /dev/null Mon Jun 30 16:59:29 2003
+++ llvm/include/Config/limits.h Mon Jun 30 16:58:17 2003
@@ -0,0 +1,18 @@
+/*
+ * Header file: limits.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for limits.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_LIMITS_H
+#define _CONFIG_LIMITS_H
+
+#include "Config/config.h"
+
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
+#endif
Index: llvm/include/Config/link.h
diff -u /dev/null llvm/include/Config/link.h:1.2
--- /dev/null Mon Jun 30 16:59:29 2003
+++ llvm/include/Config/link.h Mon Jun 30 16:58:17 2003
@@ -0,0 +1,18 @@
+/*
+ * Header file: link.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for link.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_LINK_H
+#define _CONFIG_LINK_H
+
+#include "Config/config.h"
+
+#ifdef HAVE_LINK_H
+#include <link.h>
+#endif
+
+#endif
Index: llvm/include/Config/malloc.h
diff -u /dev/null llvm/include/Config/malloc.h:1.2
--- /dev/null Mon Jun 30 16:59:29 2003
+++ llvm/include/Config/malloc.h Mon Jun 30 16:58:17 2003
@@ -0,0 +1,20 @@
+/*
+ * Header file: malloc.h
+ *
+ * Description:
+ * This header file includes the infamous malloc.h header file if the
+ * autoconf system has found it. It hides all of the autoconf details
+ * from the rest of the application source code.
+ */
+
+#ifndef _SUPPORT_MALLOC_H
+#define _SUPPORT_MALLOC_H
+
+#include "Config/config.h"
+
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
+
+#endif
+
Index: llvm/include/Config/memory.h
diff -u /dev/null llvm/include/Config/memory.h:1.2
--- /dev/null Mon Jun 30 16:59:29 2003
+++ llvm/include/Config/memory.h Mon Jun 30 16:58:17 2003
@@ -0,0 +1,18 @@
+/*
+ * Header file: memory.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for memory.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_MEMORY_H
+#define _CONFIG_MEMORY_H
+
+#include "Config/config.h"
+
+#ifdef HAVE_MEMORY_H
+#include <memory.h>
+#endif
+
+#endif
Index: llvm/include/Config/stdint.h
diff -u /dev/null llvm/include/Config/stdint.h:1.2
--- /dev/null Mon Jun 30 16:59:29 2003
+++ llvm/include/Config/stdint.h Mon Jun 30 16:58:17 2003
@@ -0,0 +1,18 @@
+/*
+ * Header file: stdint.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for stdint.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_STDINT_H
+#define _CONFIG_STDINT_H
+
+#include "Config/config.h"
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
+#endif
Index: llvm/include/Config/stdio.h
diff -u /dev/null llvm/include/Config/stdio.h:1.2
--- /dev/null Mon Jun 30 16:59:29 2003
+++ llvm/include/Config/stdio.h Mon Jun 30 16:58:18 2003
@@ -0,0 +1,22 @@
+/*
+ * Header file: stdio.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for stdio.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_STDIO_H
+#define _CONFIG_STDIO_H
+
+#include "Config/config.h"
+
+/*
+ * Assume that stdio.h exists if autoconf find the ANSI C header files.
+ * I'd think stdlib.h would be here to, but I guess not.
+ */
+#ifdef STDC_HEADERS
+#include <stdio.h>
+#endif
+
+#endif
Index: llvm/include/Config/stdlib.h
diff -u /dev/null llvm/include/Config/stdlib.h:1.2
--- /dev/null Mon Jun 30 16:59:29 2003
+++ llvm/include/Config/stdlib.h Mon Jun 30 16:58:18 2003
@@ -0,0 +1,18 @@
+/*
+ * Header file: stdlib.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for stdlib.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_STDLIB_H
+#define _CONFIG_STDLIB_H
+
+#include "Config/config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#endif
Index: llvm/include/Config/string.h
diff -u /dev/null llvm/include/Config/string.h:1.2
--- /dev/null Mon Jun 30 16:59:29 2003
+++ llvm/include/Config/string.h Mon Jun 30 16:58:18 2003
@@ -0,0 +1,18 @@
+/*
+ * Header file: string.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for string.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_STRING_H
+#define _CONFIG_STRING_H
+
+#include "Config/config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#endif
Index: llvm/include/Config/strings.h
diff -u /dev/null llvm/include/Config/strings.h:1.2
--- /dev/null Mon Jun 30 16:59:30 2003
+++ llvm/include/Config/strings.h Mon Jun 30 16:58:18 2003
@@ -0,0 +1,18 @@
+/*
+ * Header file: strings.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for strings.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_STRINGS_H
+#define _CONFIG_STRINGS_H
+
+#include "Config/config.h"
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#endif
Index: llvm/include/Config/time.h
diff -u /dev/null llvm/include/Config/time.h:1.2
--- /dev/null Mon Jun 30 16:59:30 2003
+++ llvm/include/Config/time.h Mon Jun 30 16:58:18 2003
@@ -0,0 +1,28 @@
+/*
+ * Header file: time.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for time.h (if it lives
+ * on the system).
+ *
+ * The added benefit of this header file is that it removes the
+ * "time with sys/time" problem.
+ *
+ * According to the autoconf manual, some systems have a sys/time.h that
+ * includes time.h, but time.h is not written to handle multiple
+ * inclusion. This means that a program including sys/time.h cannot
+ * also include time.h.
+ *
+ * This header file fixes that problem.
+ */
+
+#ifndef _CONFIG_TIME_H
+#define _CONFIG_TIME_H
+
+#include "Config/config.h"
+
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+
+#endif
Index: llvm/include/Config/unistd.h
diff -u /dev/null llvm/include/Config/unistd.h:1.2
--- /dev/null Mon Jun 30 16:59:30 2003
+++ llvm/include/Config/unistd.h Mon Jun 30 16:58:18 2003
@@ -0,0 +1,18 @@
+/*
+ * Header file: unistd.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for unistd.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_UNISTD_H
+#define _CONFIG_UNISTD_H
+
+#include "Config/config.h"
+
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
+#endif
More information about the llvm-commits
mailing list