summaryrefslogtreecommitdiff
path: root/m4/isnand.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-10-19 14:05:30 +0200
committerBruno Haible <bruno@clisp.org>2008-10-19 14:05:30 +0200
commitfebae7ee2b8b61030ed32d2b5b53316b240434f2 (patch)
tree61d3e7334cbf1957d640d942891020f34662111b /m4/isnand.m4
parente5e9d7f6a05ec4d205deba79ccd196f4ab7120d7 (diff)
downloadgnulib-febae7ee2b8b61030ed32d2b5b53316b240434f2.tar.gz
Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
Diffstat (limited to 'm4/isnand.m4')
-rw-r--r--m4/isnand.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/m4/isnand.m4 b/m4/isnand.m4
index fbb03f8795..35bdfa7d8f 100644
--- a/m4/isnand.m4
+++ b/m4/isnand.m4
@@ -1,12 +1,14 @@
-# isnand.m4 serial 4
+# isnand.m4 serial 5
dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl Check how to get or define isnand().
+
AC_DEFUN([gl_FUNC_ISNAND],
[
+ AC_REQUIRE([gl_MATH_H_DEFAULTS])
ISNAND_LIBM=
gl_HAVE_ISNAND_NO_LIBM
if test $gl_cv_func_isnand_no_libm = no; then
@@ -19,10 +21,9 @@ AC_DEFUN([gl_FUNC_ISNAND],
if test $gl_cv_func_isnand_no_libm = yes \
|| test $gl_cv_func_isnand_in_libm = yes; then
gl_func_isnand=yes
- AC_DEFINE([HAVE_ISNAND], 1,
- [Define if the isnan(double) function is available.])
else
gl_func_isnand=no
+ HAVE_ISNAND=0
gl_BUILD_ISNAND
fi
AC_SUBST([ISNAND_LIBM])