configure.in
changeset 5259 6a65c1fc07af
parent 5226 710d00cb3a6a
child 5314 ead9bbbdcaf3
equal deleted inserted replaced
5258:f26314c20071 5259:6a65c1fc07af
   499         if test x$have_gcc_mmx = xyes; then
   499         if test x$have_gcc_mmx = xyes; then
   500             EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
   500             EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
   501         fi
   501         fi
   502     fi
   502     fi
   503 
   503 
   504     AC_ARG_ENABLE(3dnow,
       
   505 AC_HELP_STRING([--enable-3dnow], [use MMX assembly routines [[default=yes]]]),
       
   506                   , enable_3dnow=yes)
       
   507     if test x$enable_3dnow = xyes; then
       
   508         save_CFLAGS="$CFLAGS"
       
   509         have_gcc_3dnow=no
       
   510         AC_MSG_CHECKING(for GCC -m3dnow option)
       
   511         amd3dnow_CFLAGS="-m3dnow"
       
   512         CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
       
   513 
       
   514         AC_TRY_COMPILE([
       
   515         #include <mm3dnow.h>
       
   516         #ifndef __3dNOW__
       
   517         #error Assembler CPP flag not enabled
       
   518         #endif
       
   519         ],[
       
   520         ],[
       
   521         have_gcc_3dnow=yes
       
   522         ])
       
   523         AC_MSG_RESULT($have_gcc_3dnow)
       
   524         CFLAGS="$save_CFLAGS"
       
   525 
       
   526         if test x$have_gcc_3dnow = xyes; then
       
   527             EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
       
   528         fi
       
   529     fi
       
   530 
       
   531     AC_ARG_ENABLE(sse,
   504     AC_ARG_ENABLE(sse,
   532 AC_HELP_STRING([--enable-sse], [use SSE assembly routines [[default=yes]]]),
   505 AC_HELP_STRING([--enable-sse], [use SSE assembly routines [[default=yes]]]),
   533                   , enable_sse=yes)
   506                   , enable_sse=yes)
   534     if test x$enable_sse = xyes; then
   507     if test x$enable_sse = xyes; then
   535         save_CFLAGS="$CFLAGS"
   508         save_CFLAGS="$CFLAGS"
   595         AC_MSG_RESULT($have_gcc_sse2)
   568         AC_MSG_RESULT($have_gcc_sse2)
   596         CFLAGS="$save_CFLAGS"
   569         CFLAGS="$save_CFLAGS"
   597 
   570 
   598         if test x$have_gcc_sse2 = xyes; then
   571         if test x$have_gcc_sse2 = xyes; then
   599             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
   572             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
   600         fi
       
   601     fi
       
   602 
       
   603     AC_ARG_ENABLE(altivec,
       
   604 AC_HELP_STRING([--enable-altivec], [use Altivec assembly routines [[default=yes]]]),
       
   605                   , enable_altivec=yes)
       
   606     if test x$enable_altivec = xyes; then
       
   607         save_CFLAGS="$CFLAGS"
       
   608         have_gcc_altivec=no
       
   609         have_altivec_h_hdr=no
       
   610         altivec_CFLAGS="-maltivec"
       
   611         CFLAGS="$save_CFLAGS $altivec_CFLAGS"
       
   612 
       
   613         AC_MSG_CHECKING(for Altivec with GCC altivec.h and -maltivec option)
       
   614         AC_TRY_COMPILE([
       
   615         #include <altivec.h>
       
   616         vector unsigned int vzero() {
       
   617             return vec_splat_u32(0);
       
   618         }
       
   619         ],[
       
   620         ],[
       
   621         have_gcc_altivec=yes
       
   622         have_altivec_h_hdr=yes
       
   623         ])
       
   624         AC_MSG_RESULT($have_gcc_altivec)
       
   625 
       
   626         if test x$have_gcc_altivec = xno; then
       
   627             AC_MSG_CHECKING(for Altivec with GCC -maltivec option)
       
   628             AC_TRY_COMPILE([
       
   629             vector unsigned int vzero() {
       
   630                 return vec_splat_u32(0);
       
   631             }
       
   632             ],[
       
   633             ],[
       
   634             have_gcc_altivec=yes
       
   635             ])
       
   636             AC_MSG_RESULT($have_gcc_altivec)
       
   637         fi
       
   638 
       
   639         if test x$have_gcc_altivec = xno; then
       
   640             AC_MSG_CHECKING(for Altivec with GCC altivec.h and -faltivec option)
       
   641             altivec_CFLAGS="-faltivec"
       
   642             CFLAGS="$save_CFLAGS $altivec_CFLAGS"
       
   643             AC_TRY_COMPILE([
       
   644             #include <altivec.h>
       
   645             vector unsigned int vzero() {
       
   646                 return vec_splat_u32(0);
       
   647             }
       
   648             ],[
       
   649             ],[
       
   650             have_gcc_altivec=yes
       
   651             have_altivec_h_hdr=yes
       
   652             ])
       
   653             AC_MSG_RESULT($have_gcc_altivec)
       
   654         fi
       
   655 
       
   656         if test x$have_gcc_altivec = xno; then
       
   657             AC_MSG_CHECKING(for Altivec with GCC -faltivec option)
       
   658             AC_TRY_COMPILE([
       
   659             vector unsigned int vzero() {
       
   660                 return vec_splat_u32(0);
       
   661             }
       
   662             ],[
       
   663             ],[
       
   664             have_gcc_altivec=yes
       
   665             ])
       
   666             AC_MSG_RESULT($have_gcc_altivec)
       
   667         fi
       
   668         CFLAGS="$save_CFLAGS"
       
   669 
       
   670         if test x$have_gcc_altivec = xyes; then
       
   671             AC_DEFINE(SDL_ALTIVEC_BLITTERS)
       
   672             if test x$have_altivec_h_hdr = xyes; then
       
   673               AC_DEFINE(HAVE_ALTIVEC_H)
       
   674             fi
       
   675             EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
       
   676         fi
   573         fi
   677     fi
   574     fi
   678 fi
   575 fi
   679 
   576 
   680 dnl See if the OSS audio interface is supported
   577 dnl See if the OSS audio interface is supported