summaryrefslogtreecommitdiff
path: root/src/configure.in
diff options
context:
space:
mode:
authorTom Lane1999-10-02 17:45:31 +0000
committerTom Lane1999-10-02 17:45:31 +0000
commit1f122a7c4c9562dfe31b9a2c44b5b843bfca40bd (patch)
tree3c5a40f5820aa7b6441baff23bc504ee60fdbcbe /src/configure.in
parent54204e6c78f3a227ee1769908524d15d8fe2d0b8 (diff)
Replace float.c's #ifdef finite check with a proper autoconf check, so it
works if finite() is a function. Patch from Christof Petig.
Diffstat (limited to 'src/configure.in')
-rw-r--r--src/configure.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configure.in b/src/configure.in
index 4db172b82d9..c0a7d5f4854 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -769,6 +769,12 @@ AC_CHECK_FUNC(rint,
AC_DEFINE(HAVE_RINT),
AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT), , $HPUXMATHLIB))
+AC_MSG_CHECKING(for finite() macro or function)
+AC_TRY_LINK([#include <math.h>],
+ [int dummy=finite(1.0);],
+ [AC_DEFINE(HAVE_FINITE) AC_MSG_RESULT(yes)],
+ AC_MSG_RESULT(no))
+
dnl Check to see if we have a working 64-bit integer type.
dnl This breaks down into two steps:
dnl (1) figure out if the compiler has a 64-bit int type with working