2 dnl This function determins if the isinf function isavailable on this
6 AC_DEFUN([AC_FUNC_ISINF],[
8 AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_math_h],
11 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
12 AC_DEFINE([HAVE_ISINF_IN_MATH_H], [1],
13 [Set to 1 if the isinf function is found in <math.h>])
16 AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_cmath],
19 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20 AC_DEFINE([HAVE_ISINF_IN_CMATH], [1],
21 [Set to 1 if the isinf function is found in <cmath>])
24 AC_SINGLE_CXX_CHECK([ac_cv_func_std_isinf_in_cmath],
25 [std::isinf], [<cmath>],
26 [float f; std::isinf(f);])
27 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28 AC_DEFINE([HAVE_STD_ISINF_IN_CMATH], [1],
29 [Set to 1 if the std::isinf function is found in <cmath>])
32 AC_SINGLE_CXX_CHECK([ac_cv_func_finite_in_ieeefp_h],
33 [finite], [<ieeefp.h>],
34 [float f; finite(f);])
35 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
36 AC_DEFINE([HAVE_FINITE_IN_IEEEFP_H], [1],
37 [Set to 1 if the finite function is found in <ieeefp.h>])