configure.in
changeset 10835 0e9e7a128391
parent 10797 c23bdf7436b3
child 10847 425040bd82be
equal deleted inserted replaced
10834:336efe4fc373 10835:0e9e7a128391
   591             SUMMARY_math="${SUMMARY_math} sse"
   591             SUMMARY_math="${SUMMARY_math} sse"
   592         fi
   592         fi
   593     fi
   593     fi
   594 
   594 
   595     AC_ARG_ENABLE(sse2,
   595     AC_ARG_ENABLE(sse2,
   596 AC_HELP_STRING([--enable-sse2], [use SSE2 assembly routines [[default=no]]]),
   596 AC_HELP_STRING([--enable-sse2], [use SSE2 assembly routines [[default=maybe]]]),
   597                   , enable_sse2=$default_ssemath)
   597                   , enable_sse2=$default_ssemath)
   598     if test x$enable_sse2 = xyes; then
   598     if test x$enable_sse2 = xyes; then
   599         save_CFLAGS="$CFLAGS"
   599         save_CFLAGS="$CFLAGS"
   600         have_gcc_sse2=no
   600         have_gcc_sse2=no
   601         AC_MSG_CHECKING(for GCC -msse2 option)
   601         AC_MSG_CHECKING(for GCC -msse2 option)
   624         CFLAGS="$save_CFLAGS"
   624         CFLAGS="$save_CFLAGS"
   625 
   625 
   626         if test x$have_gcc_sse2 = xyes; then
   626         if test x$have_gcc_sse2 = xyes; then
   627             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
   627             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
   628             SUMMARY_math="${SUMMARY_math} sse2"
   628             SUMMARY_math="${SUMMARY_math} sse2"
       
   629         fi
       
   630     fi
       
   631 
       
   632     AC_ARG_ENABLE(sse3,
       
   633 AC_HELP_STRING([--enable-sse3], [use SSE3 assembly routines [[default=maybe]]]),
       
   634                   , enable_sse3=$default_ssemath)
       
   635     if test x$enable_sse3 = xyes; then
       
   636         save_CFLAGS="$CFLAGS"
       
   637         have_gcc_sse3=no
       
   638         AC_MSG_CHECKING(for GCC -msse3 option)
       
   639         sse3_CFLAGS="-msse3"
       
   640         CFLAGS="$save_CFLAGS $sse3_CFLAGS"
       
   641 
       
   642         AC_TRY_COMPILE([
       
   643         #ifdef __MINGW32__
       
   644         #include <_mingw.h>
       
   645         #ifdef __MINGW64_VERSION_MAJOR
       
   646         #include <intrin.h>
       
   647         #else
       
   648         #include <pmmintrin.h>
       
   649         #endif
       
   650         #else
       
   651         #include <pmmintrin.h>
       
   652         #endif
       
   653         #ifndef __SSE2__
       
   654         #error Assembler CPP flag not enabled
       
   655         #endif
       
   656         ],[
       
   657         ],[
       
   658         have_gcc_sse3=yes
       
   659         ])
       
   660         AC_MSG_RESULT($have_gcc_sse3)
       
   661         CFLAGS="$save_CFLAGS"
       
   662 
       
   663         if test x$have_gcc_sse3 = xyes; then
       
   664             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
       
   665             SUMMARY_math="${SUMMARY_math} sse3"
   629         fi
   666         fi
   630     fi
   667     fi
   631 
   668 
   632     AC_ARG_ENABLE(altivec,
   669     AC_ARG_ENABLE(altivec,
   633 AC_HELP_STRING([--enable-altivec], [use Altivec assembly routines [[default=yes]]]),
   670 AC_HELP_STRING([--enable-altivec], [use Altivec assembly routines [[default=yes]]]),