Commit 2fef93a8 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

configure: Fix the isinf() detection. Fixes compilation on Solaris.

parent 86bd0461
...@@ -21374,7 +21374,7 @@ cat >>conftest.$ac_ext <<_ACEOF ...@@ -21374,7 +21374,7 @@ cat >>conftest.$ac_ext <<_ACEOF
int int
main () main ()
{ {
float f = 0.0; isinf(f) float f = 0.0; int i=isinf(f)
; ;
return 0; return 0;
} }
......
...@@ -1612,7 +1612,7 @@ fi ...@@ -1612,7 +1612,7 @@ fi
dnl Check for isinf dnl Check for isinf
AC_CACHE_CHECK([for isinf], ac_cv_have_isinf, AC_CACHE_CHECK([for isinf], ac_cv_have_isinf,
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"])) AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], [[float f = 0.0; int i=isinf(f)]])],[ac_cv_have_isinf="yes"],[ac_cv_have_isinf="no"]))
if test "$ac_cv_have_isinf" = "yes" if test "$ac_cv_have_isinf" = "yes"
then then
AC_DEFINE(HAVE_ISINF, 1, [Define to 1 if you have the `isinf' function.]) AC_DEFINE(HAVE_ISINF, 1, [Define to 1 if you have the `isinf' function.])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment