-/* $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 <math.h>
#include "config.h"
-#if HAVE_FPCLASS
+#ifdef NOT_USED
+
#if HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
+#if HAVE_FP_CLASS_H
+#include <fp_class.h>
+#endif
+
int
isinf(double d)
{
return 0;
}
-#else
-
-#if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D)
-#if HAVE_FP_CLASS_H
-#include <fp_class.h>
-#endif
int
isinf(x)
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
[AC_DEFINE(HAVE_FCNTL_SETLK) AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no))
-AC_MSG_CHECKING(for good DBL_MIN)
-AC_TRY_RUN([#include <stdlib.h>
-#include <math.h>
-#ifdef HAVE_FLOAT_H
-# include <float.h>
-#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
/* 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
#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()