2013-01-30 01:37:49 +00:00
|
|
|
dnl
|
|
|
|
dnl This function determins if the isinf function isavailable on this
|
|
|
|
dnl platform.
|
|
|
|
dnl
|
|
|
|
|
2004-09-07 14:23:53 +00:00
|
|
|
AC_DEFUN([AC_FUNC_ISINF],[
|
2013-01-30 01:37:49 +00:00
|
|
|
|
2004-10-27 23:03:44 +00:00
|
|
|
AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_math_h],
|
2004-09-07 14:23:53 +00:00
|
|
|
[isinf], [<math.h>],
|
2004-10-27 23:03:44 +00:00
|
|
|
[float f; isinf(f);])
|
|
|
|
if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
|
2013-01-30 01:37:49 +00:00
|
|
|
AC_DEFINE([HAVE_ISINF_IN_MATH_H], [1],
|
|
|
|
[Set to 1 if the isinf function is found in <math.h>])
|
2004-10-27 23:03:44 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_cmath],
|
2004-09-07 14:23:53 +00:00
|
|
|
[isinf], [<cmath>],
|
2004-10-27 23:03:44 +00:00
|
|
|
[float f; isinf(f);])
|
|
|
|
if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
|
2013-01-30 01:37:49 +00:00
|
|
|
AC_DEFINE([HAVE_ISINF_IN_CMATH], [1],
|
|
|
|
[Set to 1 if the isinf function is found in <cmath>])
|
2004-10-27 23:03:44 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SINGLE_CXX_CHECK([ac_cv_func_std_isinf_in_cmath],
|
2004-09-07 14:23:53 +00:00
|
|
|
[std::isinf], [<cmath>],
|
2012-03-26 02:09:01 +00:00
|
|
|
[float f; std::isinf(f);])
|
2004-10-27 23:03:44 +00:00
|
|
|
if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
|
2013-01-30 01:37:49 +00:00
|
|
|
AC_DEFINE([HAVE_STD_ISINF_IN_CMATH], [1],
|
|
|
|
[Set to 1 if the std::isinf function is found in <cmath>])
|
2004-10-27 23:03:44 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SINGLE_CXX_CHECK([ac_cv_func_finite_in_ieeefp_h],
|
2004-09-07 14:23:53 +00:00
|
|
|
[finite], [<ieeefp.h>],
|
2004-10-27 23:03:44 +00:00
|
|
|
[float f; finite(f);])
|
2004-10-28 05:04:20 +00:00
|
|
|
if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
|
2013-01-30 01:37:49 +00:00
|
|
|
AC_DEFINE([HAVE_FINITE_IN_IEEEFP_H], [1],
|
|
|
|
[Set to 1 if the finite function is found in <ieeefp.h>])
|
2004-10-27 23:03:44 +00:00
|
|
|
fi
|
|
|
|
|
2004-09-07 14:23:53 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
|