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

This commit is contained in:
Francois Gouget 2008-06-26 15:59:05 +02:00 committed by Alexandre Julliard
parent 86bd0461a5
commit 2fef93a857
2 changed files with 2 additions and 2 deletions

2
configure vendored
View File

@ -21374,7 +21374,7 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
float f = 0.0; isinf(f)
float f = 0.0; int i=isinf(f)
;
return 0;
}

View File

@ -1612,7 +1612,7 @@ fi
dnl Check for 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"
then
AC_DEFINE(HAVE_ISINF, 1, [Define to 1 if you have the `isinf' function.])