From b7d0012d204e3e12bce89585b47b77f9ce705ae3 Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 4 Aug 2006 15:06:18 +0000 Subject: [PATCH] copy of the solaris isnan hack from configure.ac git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@866 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/acinclude.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/program/acinclude.m4 b/program/acinclude.m4 index 93673957..a4c7d228 100644 --- a/program/acinclude.m4 +++ b/program/acinclude.m4 @@ -362,6 +362,12 @@ AC_CACHE_VAL([rd_cv_ieee_$2], # 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)) +# undef isnan +# define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN) +#endif + /* Digital UNIX */ #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H)) # define HAVE_ISINF 1 -- 2.30.2