X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=configure.ac;h=e50796edaa116d13ecec02c53c134ee5bb39e487;hb=169e55d4e90a5bb35ca1b638fe4ece2d0a12e48f;hp=56b9532f802ac979f25d84ef3304e913260a47e3;hpb=7f408c1ae7d1011c489fbd9123b1dd03d869e088;p=rrdtool.git diff --git a/configure.ac b/configure.ac index 56b9532..e50796e 100644 --- a/configure.ac +++ b/configure.ac @@ -103,6 +103,12 @@ char *strchr (), *strrchr (); # 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 + /* for OSF1 Digital Unix */ #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H)) # define HAVE_ISINF 1