From 8f4873e3cfbeb446d43e1f8bacc9b6eca0ca7dbe Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 8 Dec 2007 22:17:25 +0000 Subject: [PATCH] fixing the solaris build git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1254 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/program/configure.ac b/program/configure.ac index e3d16d75..aa8c5203 100644 --- a/program/configure.ac +++ b/program/configure.ac @@ -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 -- 2.30.2