Code

fixing the solaris build
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 8 Dec 2007 22:17:25 +0000 (22:17 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 8 Dec 2007 22:17:25 +0000 (22:17 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1254 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/configure.ac

index e3d16d75b26f161e3a6e55c8c996d18ad6586ce3..aa8c5203ead755d7894c2c9dc1520e79e4675d82 100644 (file)
@@ -194,12 +194,15 @@ char *strchr (), *strrchr ();
 /* for Solaris */
 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
 #  define HAVE_ISINF 1
+#  ifdef isinf
+#  undef isinf /* confuse autoconf */
+#  endif
 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
 #endif
 
 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
-#  undefine isnan
+#  undef isnan  /* confuse autoconf to NOT remove this */
 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
 #endif