Home | History | Annotate | Download | only in m4
      1 dnl
      2 dnl This function determins if the isinf function isavailable on this
      3 dnl platform.
      4 dnl
      5 
      6 AC_DEFUN([AC_FUNC_ISINF],[
      7 
      8 AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_math_h],   
      9                     [isinf], [<math.h>],
     10                     [float f; isinf(f);])
     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>])
     14 fi
     15 
     16 AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_cmath],    
     17                     [isinf], [<cmath>],
     18                     [float f; isinf(f);])
     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>])
     22 fi
     23 
     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>])
     30 fi
     31 
     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>])
     38 fi
     39 
     40 ])
     41 
     42 
     43