configure
changeset 10835 0e9e7a128391
parent 10797 c23bdf7436b3
child 10847 425040bd82be
     1.1 --- a/configure	Sun Jan 22 20:27:48 2017 -0500
     1.2 +++ b/configure	Mon Jan 23 01:05:44 2017 -0500
     1.3 @@ -798,6 +798,7 @@
     1.4  enable_3dnow
     1.5  enable_sse
     1.6  enable_sse2
     1.7 +enable_sse3
     1.8  enable_altivec
     1.9  enable_oss
    1.10  enable_alsa
    1.11 @@ -1527,7 +1528,8 @@
    1.12    --enable-mmx            use MMX assembly routines [[default=yes]]
    1.13    --enable-3dnow          use 3DNow! assembly routines [[default=yes]]
    1.14    --enable-sse            use SSE assembly routines [[default=yes]]
    1.15 -  --enable-sse2           use SSE2 assembly routines [[default=no]]
    1.16 +  --enable-sse2           use SSE2 assembly routines [[default=maybe]]
    1.17 +  --enable-sse3           use SSE3 assembly routines [[default=maybe]]
    1.18    --enable-altivec        use Altivec assembly routines [[default=yes]]
    1.19    --enable-oss            support the OSS audio API [[default=maybe]]
    1.20    --enable-alsa           support the ALSA audio API [[default=yes]]
    1.21 @@ -17308,6 +17310,63 @@
    1.22          fi
    1.23      fi
    1.24  
    1.25 +    # Check whether --enable-sse3 was given.
    1.26 +if test "${enable_sse3+set}" = set; then :
    1.27 +  enableval=$enable_sse3;
    1.28 +else
    1.29 +  enable_sse3=$default_ssemath
    1.30 +fi
    1.31 +
    1.32 +    if test x$enable_sse3 = xyes; then
    1.33 +        save_CFLAGS="$CFLAGS"
    1.34 +        have_gcc_sse3=no
    1.35 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
    1.36 +$as_echo_n "checking for GCC -msse3 option... " >&6; }
    1.37 +        sse3_CFLAGS="-msse3"
    1.38 +        CFLAGS="$save_CFLAGS $sse3_CFLAGS"
    1.39 +
    1.40 +        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.41 +/* end confdefs.h.  */
    1.42 +
    1.43 +        #ifdef __MINGW32__
    1.44 +        #include <_mingw.h>
    1.45 +        #ifdef __MINGW64_VERSION_MAJOR
    1.46 +        #include <intrin.h>
    1.47 +        #else
    1.48 +        #include <pmmintrin.h>
    1.49 +        #endif
    1.50 +        #else
    1.51 +        #include <pmmintrin.h>
    1.52 +        #endif
    1.53 +        #ifndef __SSE2__
    1.54 +        #error Assembler CPP flag not enabled
    1.55 +        #endif
    1.56 +
    1.57 +int
    1.58 +main ()
    1.59 +{
    1.60 +
    1.61 +
    1.62 +  ;
    1.63 +  return 0;
    1.64 +}
    1.65 +_ACEOF
    1.66 +if ac_fn_c_try_compile "$LINENO"; then :
    1.67 +
    1.68 +        have_gcc_sse3=yes
    1.69 +
    1.70 +fi
    1.71 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.72 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
    1.73 +$as_echo "$have_gcc_sse3" >&6; }
    1.74 +        CFLAGS="$save_CFLAGS"
    1.75 +
    1.76 +        if test x$have_gcc_sse3 = xyes; then
    1.77 +            EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
    1.78 +            SUMMARY_math="${SUMMARY_math} sse3"
    1.79 +        fi
    1.80 +    fi
    1.81 +
    1.82      # Check whether --enable-altivec was given.
    1.83  if test "${enable_altivec+set}" = set; then :
    1.84    enableval=$enable_altivec;