Reid Spencer | 53ecd51 | 2004-09-07 14:23:53 +0000 | [diff] [blame] | 1 | # |
| 2 | # This function determins if the the isinf function isavailable on this |
| 3 | # platform. |
| 4 | # |
| 5 | AC_DEFUN([AC_FUNC_ISINF],[ |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 6 | AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_math_h], |
Reid Spencer | 53ecd51 | 2004-09-07 14:23:53 +0000 | [diff] [blame] | 7 | [isinf], [<math.h>], |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 8 | [float f; isinf(f);]) |
| 9 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
| 10 | AC_DEFINE([HAVE_ISINF_IN_MATH_H],1,[Set to 1 if the isinf function is found in <math.h>]) |
| 11 | fi |
| 12 | |
| 13 | AC_SINGLE_CXX_CHECK([ac_cv_func_isinf_in_cmath], |
Reid Spencer | 53ecd51 | 2004-09-07 14:23:53 +0000 | [diff] [blame] | 14 | [isinf], [<cmath>], |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 15 | [float f; isinf(f);]) |
| 16 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
| 17 | AC_DEFINE([HAVE_ISINF_IN_CMATH],1,[Set to 1 if the isinf function is found in <cmath>]) |
| 18 | fi |
| 19 | |
| 20 | AC_SINGLE_CXX_CHECK([ac_cv_func_std_isinf_in_cmath], |
Reid Spencer | 53ecd51 | 2004-09-07 14:23:53 +0000 | [diff] [blame] | 21 | [std::isinf], [<cmath>], |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22 | [float f; std::isinf(f)}]) |
| 23 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
| 24 | AC_DEFINE([HAVE_STD_ISINF_IN_CMATH],1,[Set to 1 if the std::isinf function is found in <cmath>]) |
| 25 | fi |
| 26 | |
| 27 | AC_SINGLE_CXX_CHECK([ac_cv_func_finite_in_ieeefp_h], |
Reid Spencer | 53ecd51 | 2004-09-07 14:23:53 +0000 | [diff] [blame] | 28 | [finite], [<ieeefp.h>], |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29 | [float f; finite(f);]) |
Reid Spencer | cd9bbdd | 2004-10-28 05:04:20 +0000 | [diff] [blame] | 30 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | 1d460f9 | 2004-10-28 04:17:05 +0000 | [diff] [blame] | 31 | AC_DEFINE([HAVE_FINITE_IN_IEEEFP_H],1,[Set to 1 if the finite function is found in <ieeefp.h>]) |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32 | fi |
| 33 | |
Reid Spencer | 53ecd51 | 2004-09-07 14:23:53 +0000 | [diff] [blame] | 34 | ]) |
| 35 | |
| 36 | |