2 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
9 AC_REQUIRE([gl_MATH_H_DEFAULTS])
10 AC_REQUIRE([gl_FUNC_ISNANF])
11 AC_REQUIRE([gl_FUNC_ISNAND])
12 AC_REQUIRE([gl_FUNC_ISNANL])
14 ISNAN_LIBM="$ISNANF_LIBM $ISNAND_LIBM $ISNANL_LIBM"
15 AC_SUBST([ISNAN_LIBM])
17 # If we replaced any of the underlying isnan* functions, replace
18 # the isnan macro; it undoubtedly suffers from the same flaws.
19 AC_MSG_CHECKING([whether isnan macro works])
20 if test $gl_func_isnanf = yes \
21 && test $gl_func_isnand = yes \
22 && test $gl_func_isnanl = yes; then
25 # Make sure the rpl_isnan[fdl] functions get built.