X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=m4%2Facinclude.m4;h=c1e5c4bd9d3adea7155dfc3b5e964c06842a103d;hp=5ea34f0f54a3047beb0f8b89c1b8706747d985fc;hb=4b1f8050075d8912369b1cd27fba8815133839cf;hpb=377af7db1b7a7eef72d891328bb36a209ed23790 diff --git a/m4/acinclude.m4 b/m4/acinclude.m4 index 5ea34f0..c1e5c4b 100644 --- a/m4/acinclude.m4 +++ b/m4/acinclude.m4 @@ -289,7 +289,7 @@ if test "x$acx_pthread_ok" = xyes; then case "${host_cpu}-${host_os}" in *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";; *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";; - *-linux*) + *-linux* | *-k*bsd*-gnu*) if test x"$PTHREAD_CFLAGS" = "x-pthread"; then # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread. @@ -390,6 +390,10 @@ AC_CACHE_VAL([rd_cv_ieee_$2], # define isinf(a) (fpclassify(a) == FP_INFINITE) #endif +#if HAVE_MATH_H +#include +#endif + #include int main(void){ double rrdnan,rrdinf,rrdc,rrdzero;