Jakub Jelinek <[EMAIL PROTECTED]> writes:

> Guess that's because AC_HAVE_FUNCS(isinf) is wrong.
> isinf/isfinite/fpclassify are all documented as macros in ISO C99.
> So
>    [AC_MSG_CHECKING(for isinf with <math.h>)
>      AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>
> volatile int x; volatile float f;]], [[x = isinf(f)]])],[AC_MSG_RESULT(yes)
>        AC_DEFINE(HAVE_ISINF)],[AC_MSG_RESULT(no)])])
> should be reasonably safe for now.

Perhaps it should just check whether the macro isinf exists (but still use
AC_CHECK_FUNCS(isinf) for pre-C99 hosts).

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to