summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-10-08 21:44:07 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-10-08 21:44:07 +0000
commita25d7ca200b8acc61372207c24f3547f424f4a3e (patch)
treedb6c56ecb80d7005ed5226f1ca8d1d2588154b09 /autoconf
parentb68e33476ea90e84c261d065d852b998836b9238 (diff)
downloadllvm-a25d7ca200b8acc61372207c24f3547f424f4a3e.tar.gz
llvm-a25d7ca200b8acc61372207c24f3547f424f4a3e.tar.bz2
llvm-a25d7ca200b8acc61372207c24f3547f424f4a3e.tar.xz
Use 3-arg form of AC_DEFINE.
Check for strsignal(), which isn't found everywhere, and sys_siglist, which can be used to implement it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac12
1 files changed, 8 insertions, 4 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 3df9b9b4a7..c57d62dda4 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -407,10 +407,10 @@ dnl libelf is for sparc only; we can ignore it if we don't have it
AC_CHECK_LIB(elf, elf_begin)
dnl dlopen() is required for plugin support.
-AC_SEARCH_LIBS(dlopen,dl,AC_DEFINE([HAVE_DLOPEN],[1]),AC_MSG_WARN([dlopen() not found - disabling plugin support]))
+AC_SEARCH_LIBS(dlopen,dl,AC_DEFINE([HAVE_DLOPEN],[1],[Define if dlopen() is available on this platform.]),AC_MSG_WARN([dlopen() not found - disabling plugin support]))
dnl mallinfo is optional; the code can compile (minus features) without it
-AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1]))
+AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1],[Define if mallinfo() is available on this platform.]))
dnl
dnl The math libraries are used by the test code, but not by the actual LLVM
@@ -449,7 +449,7 @@ AC_C_CONST
AC_C_INLINE
dnl Check for machine endian-ness
-AC_C_BIGENDIAN(AC_DEFINE([ENDIAN_BIG]),AC_DEFINE(ENDIAN_LITTLE))
+AC_C_BIGENDIAN(AC_DEFINE([ENDIAN_BIG],[],[Define if the machine is Big-Endian]),AC_DEFINE([ENDIAN_LITTLE],[],[Define if the machine is Little-Endian]))
dnl Check for types
AC_TYPE_PID_T
@@ -481,7 +481,11 @@ then
fi
AC_HEADER_MMAP_ANONYMOUS
AC_TYPE_SIGNAL
-AC_CHECK_FUNCS(getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll)
+AC_CHECK_FUNCS(getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll strsignal)
+AC_CHECK_DECLS([sys_siglist],[],[],[
+#if HAVE_SIGNAL_H
+#include <signal.h>
+#endif])
dnl
dnl Need to check mmap for MAP_PRIVATE, MAP_ANONYMOUS, MAP_ANON, MAP_FIXED