Mercurial > mplayer.hg
comparison configure @ 23331:a35d0ad65e72
Add SSSE3 check
author | zuxy |
---|---|
date | Sun, 20 May 2007 05:04:14 +0000 |
parents | d98c777b8b6b |
children | a982544e5c08 |
comparison
equal
deleted
inserted
replaced
23330:4a38fdda5d72 | 23331:a35d0ad65e72 |
---|---|
407 --enable-mmxext enable MMX2 (Pentium III, Athlon) [autodetect] | 407 --enable-mmxext enable MMX2 (Pentium III, Athlon) [autodetect] |
408 --enable-3dnow enable 3DNow! [autodetect] | 408 --enable-3dnow enable 3DNow! [autodetect] |
409 --enable-3dnowext enable extended 3DNow! [autodetect] | 409 --enable-3dnowext enable extended 3DNow! [autodetect] |
410 --enable-sse enable SSE [autodetect] | 410 --enable-sse enable SSE [autodetect] |
411 --enable-sse2 enable SSE2 [autodetect] | 411 --enable-sse2 enable SSE2 [autodetect] |
412 --enable-ssse3 enable SSSE3 [autodetect] | |
412 --enable-shm enable shm [autodetect] | 413 --enable-shm enable shm [autodetect] |
413 --enable-altivec enable AltiVec (PowerPC) [autodetect] | 414 --enable-altivec enable AltiVec (PowerPC) [autodetect] |
414 --enable-armv5te enable DSP extensions (ARM) [autodetect] | 415 --enable-armv5te enable DSP extensions (ARM) [autodetect] |
415 --enable-armv6 enable ARMv6 (ARM) [autodetect] | 416 --enable-armv6 enable ARMv6 (ARM) [autodetect] |
416 --enable-iwmmxt enable iWMMXt (ARM) [autodetect] | 417 --enable-iwmmxt enable iWMMXt (ARM) [autodetect] |
456 _3dnow=auto | 457 _3dnow=auto |
457 _3dnowext=auto | 458 _3dnowext=auto |
458 _mmxext=auto | 459 _mmxext=auto |
459 _sse=auto | 460 _sse=auto |
460 _sse2=auto | 461 _sse2=auto |
462 _ssse3=auto | |
461 _cmov=auto | 463 _cmov=auto |
462 _fast_cmov=auto | 464 _fast_cmov=auto |
463 _armv5te=auto | 465 _armv5te=auto |
464 _armv6=auto | 466 _armv6=auto |
465 _iwmmxt=auto | 467 _iwmmxt=auto |
1110 | 1112 |
1111 --enable-sse) _sse=yes ;; | 1113 --enable-sse) _sse=yes ;; |
1112 --disable-sse) _sse=no ;; | 1114 --disable-sse) _sse=no ;; |
1113 --enable-sse2) _sse2=yes ;; | 1115 --enable-sse2) _sse2=yes ;; |
1114 --disable-sse2) _sse2=no ;; | 1116 --disable-sse2) _sse2=no ;; |
1117 --enable-ssse3) _ssse3=yes ;; | |
1118 --disable-ssse3) _ssse3=no ;; | |
1115 --enable-mmxext) _mmxext=yes ;; | 1119 --enable-mmxext) _mmxext=yes ;; |
1116 --disable-mmxext) _mmxext=no ;; | 1120 --disable-mmxext) _mmxext=no ;; |
1117 --enable-3dnow) _3dnow=yes ;; | 1121 --enable-3dnow) _3dnow=yes ;; |
1118 --disable-3dnow) _3dnow=no _3dnowext=no ;; | 1122 --disable-3dnow) _3dnow=no _3dnowext=no ;; |
1119 --enable-3dnowext) _3dnow=yes _3dnowext=yes ;; | 1123 --enable-3dnowext) _3dnow=yes _3dnowext=yes ;; |
1553 extcheck $_mmxext "mmxext" "sfence" | 1557 extcheck $_mmxext "mmxext" "sfence" |
1554 extcheck $_3dnow "3dnow" "femms" | 1558 extcheck $_3dnow "3dnow" "femms" |
1555 extcheck $_3dnowext "3dnowext" "pswapd %%mm0, %%mm0" | 1559 extcheck $_3dnowext "3dnowext" "pswapd %%mm0, %%mm0" |
1556 extcheck $_sse "sse" "xorps %%xmm0, %%xmm0" || _gcc3_ext="$_gcc3_ext -mno-sse" | 1560 extcheck $_sse "sse" "xorps %%xmm0, %%xmm0" || _gcc3_ext="$_gcc3_ext -mno-sse" |
1557 extcheck $_sse2 "sse2" "xorpd %%xmm0, %%xmm0" || _gcc3_ext="$_gcc3_ext -mno-sse2" | 1561 extcheck $_sse2 "sse2" "xorpd %%xmm0, %%xmm0" || _gcc3_ext="$_gcc3_ext -mno-sse2" |
1562 extcheck $_ssse3 "ssse3" "pabsd %%xmm0, %%xmm0" | |
1558 extcheck $_cmov "cmov" "cmovb %%eax,%%ebx" | 1563 extcheck $_cmov "cmov" "cmovb %%eax,%%ebx" |
1559 | 1564 |
1560 echocheck "mtrr support" | 1565 echocheck "mtrr support" |
1561 if test "$_mtrr" = kernel_check ; then | 1566 if test "$_mtrr" = kernel_check ; then |
1562 _mtrr="yes" | 1567 _mtrr="yes" |
2205 _3dnow=yes | 2210 _3dnow=yes |
2206 _3dnowext=yes | 2211 _3dnowext=yes |
2207 _mmxext=yes | 2212 _mmxext=yes |
2208 _sse=yes | 2213 _sse=yes |
2209 _sse2=yes | 2214 _sse2=yes |
2215 _ssse3=yes | |
2210 _mtrr=yes | 2216 _mtrr=yes |
2211 fi | 2217 fi |
2212 if ppc; then | 2218 if ppc; then |
2213 _altivec=yes | 2219 _altivec=yes |
2214 fi | 2220 fi |
2298 # echo 'xorpd %xmm0, %xmm0' >> $TMPS | 2304 # echo 'xorpd %xmm0, %xmm0' >> $TMPS |
2299 #fi | 2305 #fi |
2300 if test "$_cmov" = yes ; then | 2306 if test "$_cmov" = yes ; then |
2301 _pref_as_version='2.10.1' | 2307 _pref_as_version='2.10.1' |
2302 echo 'cmovb %eax, %ebx' >> $TMPS | 2308 echo 'cmovb %eax, %ebx' >> $TMPS |
2309 fi | |
2310 if test "$_ssse3" = yes ; then | |
2311 _pref_as_version='2.16.92' | |
2312 echo 'pabsd %xmm0, %xmm1' >> $TMPS | |
2303 fi | 2313 fi |
2304 $_as $TMPS -o $TMPO > /dev/null 2>&1 || as_verc_fail=yes | 2314 $_as $TMPS -o $TMPO > /dev/null 2>&1 || as_verc_fail=yes |
2305 | 2315 |
2306 if test "$as_verc_fail" != yes ; then | 2316 if test "$as_verc_fail" != yes ; then |
2307 echores "ok" | 2317 echores "ok" |
2469 test "$_3dnowext" = yes && _def_3dnowext='#define HAVE_3DNOWEX 1' | 2479 test "$_3dnowext" = yes && _def_3dnowext='#define HAVE_3DNOWEX 1' |
2470 _def_sse='#undef HAVE_SSE' | 2480 _def_sse='#undef HAVE_SSE' |
2471 test "$_sse" = yes && _def_sse='#define HAVE_SSE 1' | 2481 test "$_sse" = yes && _def_sse='#define HAVE_SSE 1' |
2472 _def_sse2='#undef HAVE_SSE2' | 2482 _def_sse2='#undef HAVE_SSE2' |
2473 test "$_sse2" = yes && _def_sse2='#define HAVE_SSE2 1' | 2483 test "$_sse2" = yes && _def_sse2='#define HAVE_SSE2 1' |
2484 _def_ssse3='#undef HAVE_SSSE3' | |
2485 test "$_ssse3" = yes && _def_ssse3='#define HAVE_SSSE3 1' | |
2474 _def_cmov='#undef HAVE_CMOV' | 2486 _def_cmov='#undef HAVE_CMOV' |
2475 test "$_cmov" = yes && _def_cmov='#define HAVE_CMOV 1' | 2487 test "$_cmov" = yes && _def_cmov='#define HAVE_CMOV 1' |
2476 _def_fast_cmov='#undef HAVE_FAST_CMOV' | 2488 _def_fast_cmov='#undef HAVE_FAST_CMOV' |
2477 test "$_fast_cmov" = yes && _def_fast_cmov='#define HAVE_FAST_CMOV 1' | 2489 test "$_fast_cmov" = yes && _def_fast_cmov='#define HAVE_FAST_CMOV 1' |
2478 _def_armv5te='#undef HAVE_ARMV5TE' | 2490 _def_armv5te='#undef HAVE_ARMV5TE' |
8334 $_def_3dnowext // only define if you have 3DNOWEXT (AMD Athlon, etc.) | 8346 $_def_3dnowext // only define if you have 3DNOWEXT (AMD Athlon, etc.) |
8335 $_def_mmx // only define if you have MMX (newer x86 chips, not P54C/PPro) | 8347 $_def_mmx // only define if you have MMX (newer x86 chips, not P54C/PPro) |
8336 $_def_mmxext // only define if you have MMX2 (Athlon/PIII/4/CelII) | 8348 $_def_mmxext // only define if you have MMX2 (Athlon/PIII/4/CelII) |
8337 $_def_sse // only define if you have SSE (Intel Pentium III/4 or Celeron II) | 8349 $_def_sse // only define if you have SSE (Intel Pentium III/4 or Celeron II) |
8338 $_def_sse2 // only define if you have SSE2 (Intel Pentium 4) | 8350 $_def_sse2 // only define if you have SSE2 (Intel Pentium 4) |
8351 $_def_ssse3 // only define if you have SSSE3 (Intel Core 2) | |
8339 $_def_cmov // only define if you have CMOV (i686+, without VIA C3) | 8352 $_def_cmov // only define if you have CMOV (i686+, without VIA C3) |
8340 $_def_fast_cmov // only define if CMOV is fast | 8353 $_def_fast_cmov // only define if CMOV is fast |
8341 $_def_altivec // only define if you have Altivec (G4) | 8354 $_def_altivec // only define if you have Altivec (G4) |
8342 $_def_armv5te // only define if you have Enhanced DSP Extensions (ARM) | 8355 $_def_armv5te // only define if you have Enhanced DSP Extensions (ARM) |
8343 $_def_armv6 // only define if you have ARMv6 | 8356 $_def_armv6 // only define if you have ARMv6 |