configure cleanup
authorBruce Momjian
Sun, 18 Jul 1999 17:38:25 +0000 (17:38 +0000)
committerBruce Momjian
Sun, 18 Jul 1999 17:38:25 +0000 (17:38 +0000)
src/backend/port/isinf.c
src/configure.in
src/include/config.h.in
src/include/utils/ps_status.h

index 7cf404afc903bc39e74816e72f695d316ef44f9c..1fa31f82634171c45a6fcf5a3821b86b50719864 100644 (file)
@@ -1,13 +1,18 @@
-/* $Id: isinf.c,v 1.9 1999/07/17 04:00:29 momjian Exp $ */
+/* $Id: isinf.c,v 1.10 1999/07/18 17:38:23 momjian Exp $ */
 
 #include 
 
 #include "config.h"
 
-#if HAVE_FPCLASS
+#ifdef NOT_USED
+
 #if HAVE_IEEEFP_H
 #include 
 #endif
+#if HAVE_FP_CLASS_H
+#include 
+#endif
+
 int
 isinf(double d)
 {
@@ -24,12 +29,6 @@ isinf(double d)
    return 0;
 }
 
-#else
-
-#if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D)
-#if HAVE_FP_CLASS_H
-#include 
-#endif
 int
 isinf(x)
 double     x;
@@ -50,19 +49,3 @@ double       x;
 }
 
 #endif
-#endif
-
-#if defined(HAVE_CLASS)
-int
-isinf(double x)
-{
-   int         fpclass = class(x);
-
-   if (fpclass == FP_PLUS_INF)
-       return 1;
-   if (fpclass == FP_MINUS_INF)
-       return -1;
-   return 0;
-}
-
-#endif
index a8dcfe1da9cab1263f30ffacb6cd4930789d5577..d9c2f14656e6c2aefb9ef7ab1322465662809b75 100644 (file)
@@ -660,17 +660,6 @@ AC_TRY_LINK([#include ],
        [AC_DEFINE(HAVE_FCNTL_SETLK) AC_MSG_RESULT(yes)],
        AC_MSG_RESULT(no))
 
-AC_MSG_CHECKING(for good DBL_MIN)
-AC_TRY_RUN([#include 
-#include 
-#ifdef HAVE_FLOAT_H
-# include 
-#endif
-main() { double d = DBL_MIN; if (d != DBL_MIN) exit(-1); else exit(0); }],
-   AC_MSG_RESULT(yes),
-   [AC_DEFINE(HAVE_DBL_MIN_PROBLEM) AC_MSG_RESULT(no)],
-   AC_MSG_RESULT(assuming ok on target machine))
-
 dnl Checks for library functions.
 AC_FUNC_MEMCMP
 AC_TYPE_SIGNAL
index 8f1489b05ee6bf4ce1fdaf5fabcd39ad79bed19c..69e5e6833c3c5b114107b650d87c2b94bba88082 100644 (file)
@@ -294,9 +294,6 @@ extern void srandom(unsigned int seed);
 /* Set to 1 if you want to Enable ASSERT CHECKING */
 #undef USE_ASSERT_CHECKING
 
-/* Set to 1 if your DBL_MIN is problematic */
-#undef HAVE_DBL_MIN_PROBLEM
-
 /* Set to 1 if type "long int" works and is 64 bits */
 #undef HAVE_LONG_INT_64
 
index 63f9b137c4696c474b1aa1a71805f9a40caec79b..bb7cb7bea365f7f3a9b1a724066d7349a382e466 100644 (file)
@@ -75,7 +75,7 @@ const char **ps_status = NULL
 #define PS_STATUS (ps_status ? *ps_status : "")
 #endif
 
-#ifdef DONT_HAVE_PS_STATUS
+#ifdef NO_PS_STATUS
 #define PS_DEFINE_BUFFER
 #define PS_INIT_STATUS(argc, argv, execname, username, hostname, dbname)
 #define PS_CLEAR_STATUS()