The appended patch fixes the root cause. gcc -O2 optimizes out some tests.
Thiemo --- libcaca-0.99.beta15/configure.ac~ 2008-09-27 19:11:55.000000000 +0100 +++ libcaca-0.99.beta15/configure.ac 2008-10-03 10:21:19.000000000 +0100 @@ -112,13 +112,13 @@ AC_TRY_COMPILE([#include <windows.h>],[S [AC_MSG_RESULT(no)]) AC_MSG_CHECKING(for fsin/fcos) -AC_TRY_COMPILE([],[double x; asm("fsin\n\tfcos":"=t"(x):);], +AC_TRY_COMPILE([],[double x; volatile asm("fsin\n\tfcos":"=t"(x):);], [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_FSIN_FCOS, 1, [Define to 1 if you have the `fsin' and `fcos' operands.])], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING(for fldln2/fxch/fyl2x) -AC_TRY_COMPILE([],[double x; asm("fldln2; fldln2; fxch; fyl2x":"=t"(x):);], +AC_TRY_COMPILE([],[double x; volatile asm("fldln2; fldln2; fxch; fyl2x":"=t"(x):);], [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the `fldln2' and other floating points operands.])], [AC_MSG_RESULT(no)]) --- libcaca-0.99.beta15.old/configure 2008-09-27 21:30:35.000000000 +0000 +++ libcaca-0.99.beta15/configure 2008-10-03 09:25:04.000000000 +0000 @@ -21854,7 +21854,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -double x; asm("fsin\n\tfcos":"=t"(x):); +double x; volatile asm("fsin\n\tfcos":"=t"(x):); ; return 0; } @@ -21905,7 +21905,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -double x; asm("fldln2; fldln2; fxch; fyl2x":"=t"(x):); +double x; volatile asm("fldln2; fldln2; fxch; fyl2x":"=t"(x):); ; return 0; } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]