Look for an isfinite function

This commit is contained in:
Chris Robinson 2011-07-20 03:18:11 -07:00
parent 244d60fb96
commit 5a484f7493

View File

@ -256,6 +256,16 @@ IF(NOT HAVE_VSNPRINTF)
ADD_DEFINITIONS(-Dvsnprintf=_vsnprintf)
ENDIF()
CHECK_SYMBOL_EXISTS(isfinite math.h HAVE_ISFINITE)
IF(NOT HAVE_ISFINITE)
CHECK_FUNCTION_EXISTS(_finite HAVE__FINITE)
IF(NOT HAVE__FINITE)
MESSAGE(FATAL_ERROR "No isfinite function found, please report!")
ENDIF()
ADD_DEFINITIONS(-Disfinite=_finite)
ENDIF()
CHECK_SYMBOL_EXISTS(isnan math.h HAVE_ISNAN)
IF(NOT HAVE_ISNAN)
CHECK_FUNCTION_EXISTS(_isnan HAVE__ISNAN)