libport: Fix the detection of isfinite().
This commit is contained in:
parent
1577fb6c3f
commit
6f22057c21
|
@ -15771,6 +15771,7 @@ if ${ac_cv_have_isfinite+:} false; then :
|
|||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#define _GNU_SOURCE
|
||||
#include <math.h>
|
||||
int
|
||||
main ()
|
||||
|
|
|
@ -2534,7 +2534,8 @@ dnl Check for isfinite
|
|||
ac_save_LIBS="$LIBS"
|
||||
LIBS="$LIBS -lm"
|
||||
AC_CACHE_CHECK([for isfinite], ac_cv_have_isfinite,
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; return isfinite(f)]])],[ac_cv_have_isfinite="yes"],[ac_cv_have_isfinite="no"]))
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define _GNU_SOURCE
|
||||
#include <math.h>]], [[float f = 0.0; return isfinite(f)]])],[ac_cv_have_isfinite="yes"],[ac_cv_have_isfinite="no"]))
|
||||
if test "$ac_cv_have_isfinite" = "yes"
|
||||
then
|
||||
AC_DEFINE(HAVE_ISFINITE, 1, [Define to 1 if you have the `isfinite' function.])
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
# define _GNU_SOURCE /* for pread/pwrite */
|
||||
# define _GNU_SOURCE /* for pread/pwrite, isfinite */
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <math.h>
|
||||
|
|
Loading…
Reference in New Issue