comparison configure @ 15591:3d32bc09b975

The default CFLAGS settings include -ffast-math and GCC 3.4.3 therefore optimizes the lrintf call in the test away, effectively turning it into a NOP. The attached patch forces -ffast-math of for this test. patch by Joerg Sonnenberger <joerg - at -britannica - dot - bec - dot - de>
author diego
date Sun, 29 May 2005 23:16:22 +0000
parents e848b20cd449
children 1c18214c932b
comparison
equal deleted inserted replaced
15590:e848b20cd449 15591:3d32bc09b975
2449 2449
2450 2450
2451 echocheck "lrintf" 2451 echocheck "lrintf"
2452 cat > $TMPC << EOF 2452 cat > $TMPC << EOF
2453 #include <math.h> 2453 #include <math.h>
2454 int main(void) { (void) lrintf(0.0); return 0; } 2454 int main(void) { long (*foo)(double); foo = lrintf; (void)(*foo)(0.0); return 0; }
2455 EOF 2455 EOF
2456 _lrintf=no 2456 _lrintf=no
2457 cc_check $_ld_lm && _lrintf=yes 2457 cc_check $_ld_lm && _lrintf=yes
2458 if test "$_lrintf" = yes ; then 2458 if test "$_lrintf" = yes ; then
2459 _def_lrintf="#define HAVE_LRINTF 1" 2459 _def_lrintf="#define HAVE_LRINTF 1"