Changeset 2871 for libcaca


Ignore:
Timestamp:
Oct 5, 2008, 5:50:11 PM (11 years ago)
Author:
Sam Hocevar
Message:

Fix detection of floating point assembly instructions. They were
incorrectly detcted as present because gcc was optimising them away.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r2864 r2871  
    114114
    115115AC_MSG_CHECKING(for fsin/fcos)
    116 AC_TRY_COMPILE([],[double x; asm("fsin\n\tfcos":"=t"(x):);],
     116AC_TRY_COMPILE([],[double x; asm volatile("fsin\n\tfcos":"=t"(x):);],
    117117 [AC_MSG_RESULT(yes)
    118   AC_DEFINE(HAVE_FSIN_FCOS, 1, [Define to 1 if you have the `fsin' and `fcos' operands.])],
     118  AC_DEFINE(HAVE_FSIN_FCOS, 1, [Define to 1 if you have the `fsin' and `fcos' instructions.])],
    119119 [AC_MSG_RESULT(no)])
    120120
    121121AC_MSG_CHECKING(for fldln2/fxch/fyl2x)
    122 AC_TRY_COMPILE([],[double x; asm("fldln2; fldln2; fxch; fyl2x":"=t"(x):);],
     122AC_TRY_COMPILE([],[double x; asm volatile("fldln2; fldln2; fxch; fyl2x":"=t"(x):);],
    123123 [AC_MSG_RESULT(yes)
    124   AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the `fldln2' and other floating points operands.])],
     124  AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the `fldln2' and other floating point instructions.])],
    125125 [AC_MSG_RESULT(no)])
    126126
Note: See TracChangeset for help on using the changeset viewer.