2 # This function determines if the isnan function is available on this
5 AC_DEFUN([AC_FUNC_ISNAN],[
6 AC_SINGLE_CXX_CHECK([ac_cv_func_isnan_in_math_h],
10 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
11 AC_DEFINE([HAVE_ISNAN_IN_MATH_H],1,[Set to 1 if the isnan function is found in <math.h>])
14 AC_SINGLE_CXX_CHECK([ac_cv_func_isnan_in_cmath],
17 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18 AC_DEFINE([HAVE_ISNAN_IN_CMATH],1,[Set to 1 if the isnan function is found in <cmath>])
21 AC_SINGLE_CXX_CHECK([ac_cv_func_std_isnan_in_cmath],
22 [std::isnan], [<cmath>],
23 [float f; std::isnan(f);])
24 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
25 AC_DEFINE([HAVE_STD_ISNAN_IN_CMATH],1,[Set to 1 if the std::isnan function is found in <cmath>])