summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-01-19 08:22:40 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-01-19 08:22:40 +0000
commitf4bb9b1fa76564704a4ab6c27d5d72180b493e9a (patch)
treeb5963b312adc51ac00e08b57557a34b6ecee550c
parentbc528efa76e8d0f225630e4677c8e74d17f23fc5 (diff)
downloadllvm-f4bb9b1fa76564704a4ab6c27d5d72180b493e9a.tar.gz
llvm-f4bb9b1fa76564704a4ab6c27d5d72180b493e9a.tar.bz2
llvm-f4bb9b1fa76564704a4ab6c27d5d72180b493e9a.tar.xz
For PR696:
Add checks for ceil, ceilf, floor, and floorf git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25453 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--autoconf/configure.ac4
-rwxr-xr-xconfigure8
-rw-r--r--include/llvm/Config/config.h.in12
3 files changed, 20 insertions, 4 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 09f45e86bf..1ccef0ad97 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -523,8 +523,8 @@ dnl=== SECTION 8: Check for specific functions needed
dnl===
dnl===-----------------------------------------------------------------------===
-AC_CHECK_FUNCS([backtrace getcwd getpagesize getrusage gettimeofday ])
-AC_CHECK_FUNCS([isatty mkdtemp mkstemp mktemp ])
+AC_CHECK_FUNCS([backtrace ceil ceilf floor floorf getcwd getpagesize getrusage])
+AC_CHECK_FUNCS([gettimeofday isatty mkdtemp mkstemp mktemp ])
AC_CHECK_FUNCS([realpath sbrk setrlimit strdup strerror strerror_r ])
AC_CHECK_FUNCS([strtoll strtoq sysconf malloc_zone_statistics ])
AC_C_PRINTF_A
diff --git a/configure b/configure
index fe357b2664..9daf472f1b 100755
--- a/configure
+++ b/configure
@@ -27752,7 +27752,10 @@ fi
-for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
+
+
+
+for ac_func in backtrace ceil ceilf floor floorf getcwd getpagesize getrusage
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -27857,7 +27860,8 @@ done
-for ac_func in isatty mkdtemp mkstemp mktemp
+
+for ac_func in gettimeofday isatty mkdtemp mkstemp mktemp
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in
index 0a9bffa18b..2166163f48 100644
--- a/include/llvm/Config/config.h.in
+++ b/include/llvm/Config/config.h.in
@@ -51,6 +51,12 @@
/* Does not have bi-directional iterator */
#undef HAVE_BI_ITERATOR
+/* Define to 1 if you have the `ceil' function. */
+#undef HAVE_CEIL
+
+/* Define to 1 if you have the `ceilf' function. */
+#undef HAVE_CEILF
+
/* Define to 1 if you have the `closedir' function. */
#undef HAVE_CLOSEDIR
@@ -97,6 +103,12 @@
/* Set to 1 if the finite function is found in <ieeefp.h> */
#undef HAVE_FINITE_IN_IEEEFP_H
+/* Define to 1 if you have the `floor' function. */
+#undef HAVE_FLOOR
+
+/* Define to 1 if you have the `floorf' function. */
+#undef HAVE_FLOORF
+
/* Does not have forward iterator */
#undef HAVE_FWD_ITERATOR