Mercurial > mplayer.hg
comparison configure @ 18230:d1b308e2e693
cosmetics: Rename the _3dnowex and _mmx2 processor flag variables to _3dnowext
and _mmxext to match the processor flag names (needed in upcoming patches).
author | diego |
---|---|
date | Sun, 23 Apr 2006 22:56:29 +0000 |
parents | 8ea3b8660dd7 |
children | 7fc264d87f83 |
comparison
equal
deleted
inserted
replaced
18229:e0d18b30598c | 18230:d1b308e2e693 |
---|---|
349 this option is obsolete and will be removed soon, | 349 this option is obsolete and will be removed soon, |
350 use --with-install instead. | 350 use --with-install instead. |
351 | 351 |
352 Advanced options: | 352 Advanced options: |
353 --enable-mmx build with MMX support [autodetect] | 353 --enable-mmx build with MMX support [autodetect] |
354 --enable-mmx2 build with MMX2 support (PIII, Athlon) [autodetect] | 354 --enable-mmxext build with MMX2 support (PIII, Athlon) [autodetect] |
355 --enable-3dnow build with 3DNow! support [autodetect] | 355 --enable-3dnow build with 3DNow! support [autodetect] |
356 --enable-3dnowex build with extended 3DNow! support [autodetect] | 356 --enable-3dnowext build with extended 3DNow! support [autodetect] |
357 --enable-sse build with SSE support [autodetect] | 357 --enable-sse build with SSE support [autodetect] |
358 --enable-sse2 build with SSE2 support [autodetect] | 358 --enable-sse2 build with SSE2 support [autodetect] |
359 --enable-shm build with shm support [autodetect] | 359 --enable-shm build with shm support [autodetect] |
360 --enable-altivec build with Altivec support (PowerPC) [autodetect] | 360 --enable-altivec build with Altivec support (PowerPC) [autodetect] |
361 --disable-fastmemcpy disable 3DNow!/SSE/MMX optimized memcpy() [enable] | 361 --disable-fastmemcpy disable 3DNow!/SSE/MMX optimized memcpy() [enable] |
791 pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2 | _head 1` | 791 pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2 | _head 1` |
792 fi | 792 fi |
793 | 793 |
794 _mmx=no | 794 _mmx=no |
795 _3dnow=no | 795 _3dnow=no |
796 _3dnowex=no | 796 _3dnowext=no |
797 _mmx2=no | 797 _mmxext=no |
798 _sse=no | 798 _sse=no |
799 _sse2=no | 799 _sse2=no |
800 _mtrr=no | 800 _mtrr=no |
801 | 801 |
802 for i in $pparam ; do | 802 for i in $pparam ; do |
803 case "$i" in | 803 case "$i" in |
804 3dnow) _3dnow=yes ;; | 804 3dnow) _3dnow=yes ;; |
805 3dnowext) _3dnowex=yes ;; | 805 3dnowext) _3dnowext=yes ;; |
806 mmx) _mmx=yes ;; | 806 mmx) _mmx=yes ;; |
807 mmxext) _mmx2=yes ;; | 807 mmxext) _mmxext=yes ;; |
808 mtrr|k6_mtrr|cyrix_arr) _mtrr=yes ;; | 808 mtrr|k6_mtrr|cyrix_arr) _mtrr=yes ;; |
809 xmm|sse|kni) _sse=yes _mmx2=yes ;; | 809 xmm|sse|kni) _sse=yes _mmxext=yes ;; |
810 sse2) _sse2=yes ;; | 810 sse2) _sse2=yes ;; |
811 esac | 811 esac |
812 done | 812 done |
813 } | 813 } |
814 | 814 |
1387 | 1387 |
1388 if test "$_runtime_cpudetection" = yes ; then | 1388 if test "$_runtime_cpudetection" = yes ; then |
1389 if x86; then | 1389 if x86; then |
1390 _mmx=yes | 1390 _mmx=yes |
1391 _3dnow=yes | 1391 _3dnow=yes |
1392 _3dnowex=yes | 1392 _3dnowext=yes |
1393 _mmx2=yes | 1393 _mmxext=yes |
1394 _sse=yes | 1394 _sse=yes |
1395 _sse2=yes | 1395 _sse2=yes |
1396 _mtrr=yes | 1396 _mtrr=yes |
1397 fi | 1397 fi |
1398 if ppc; then | 1398 if ppc; then |
1426 fi | 1426 fi |
1427 return 0 | 1427 return 0 |
1428 } | 1428 } |
1429 | 1429 |
1430 extcheck $_mmx "mmx" "emms" || _mmx=no | 1430 extcheck $_mmx "mmx" "emms" || _mmx=no |
1431 extcheck $_mmx2 "mmx2" "sfence" || _mmx2=no | 1431 extcheck $_mmxext "mmxext" "sfence" || _mmxext=no |
1432 extcheck $_3dnow "3dnow" "femms" || _3dnow=no | 1432 extcheck $_3dnow "3dnow" "femms" || _3dnow=no |
1433 extcheck $_3dnowex "3dnowex" "pswapd %%mm0, %%mm0" || _3dnowex=no | 1433 extcheck $_3dnowext "3dnowext" "pswapd %%mm0, %%mm0" || _3dnowext=no |
1434 extcheck $_sse "sse" "xorps %%xmm0, %%xmm0" || _sse=no _gcc3_ext="$_gcc3_ext -mno-sse" | 1434 extcheck $_sse "sse" "xorps %%xmm0, %%xmm0" || _sse=no _gcc3_ext="$_gcc3_ext -mno-sse" |
1435 extcheck $_sse2 "sse2" "xorpd %%xmm0, %%xmm0" || _sse2=no _gcc3_ext="$_gcc3_ext -mno-sse2" | 1435 extcheck $_sse2 "sse2" "xorpd %%xmm0, %%xmm0" || _sse2=no _gcc3_ext="$_gcc3_ext -mno-sse2" |
1436 echocheck "mtrr support" | 1436 echocheck "mtrr support" |
1437 echores "$_mtrr" | 1437 echores "$_mtrr" |
1438 | 1438 |
2000 | 2000 |
2001 --enable-sse) _sse=yes ;; | 2001 --enable-sse) _sse=yes ;; |
2002 --disable-sse) _sse=no ;; | 2002 --disable-sse) _sse=no ;; |
2003 --enable-sse2) _sse2=yes ;; | 2003 --enable-sse2) _sse2=yes ;; |
2004 --disable-sse2) _sse2=no ;; | 2004 --disable-sse2) _sse2=no ;; |
2005 --enable-mmx2) _mmx2=yes ;; | 2005 --enable-mmxext) _mmxext=yes ;; |
2006 --disable-mmx2) _mmx2=no ;; | 2006 --disable-mmxext) _mmxext=no ;; |
2007 --enable-3dnow) _3dnow=yes ;; | 2007 --enable-3dnow) _3dnow=yes ;; |
2008 --disable-3dnow) _3dnow=no _3dnowex=no ;; | 2008 --disable-3dnow) _3dnow=no _3dnowext=no ;; |
2009 --enable-3dnowex) _3dnow=yes _3dnowex=yes ;; | 2009 --enable-3dnowext) _3dnow=yes _3dnowext=yes ;; |
2010 --disable-3dnowex) _3dnowex=no ;; | 2010 --disable-3dnowext) _3dnowext=no ;; |
2011 --enable-altivec) _altivec=yes ;; | 2011 --enable-altivec) _altivec=yes ;; |
2012 --disable-altivec) _altivec=no ;; | 2012 --disable-altivec) _altivec=no ;; |
2013 --enable-mmx) _mmx=yes ;; | 2013 --enable-mmx) _mmx=yes ;; |
2014 --disable-mmx) # 3Dnow! and MMX2 require MMX | 2014 --disable-mmx) # 3Dnow! and MMX2 require MMX |
2015 _3dnow=no _3dnowex=no _mmx=no _mmx2=no ;; | 2015 _3dnow=no _3dnowext=no _mmx=no _mmxext=no ;; |
2016 | 2016 |
2017 --enable-win32) _win32=yes ;; | 2017 --enable-win32) _win32=yes ;; |
2018 --disable-win32) _win32=no _dshow=no ;; | 2018 --disable-win32) _win32=no _dshow=no ;; |
2019 --enable-dshow) _win32=yes _dshow=yes ;; | 2019 --enable-dshow) _win32=yes _dshow=yes ;; |
2020 --disable-dshow) _dshow=no ;; | 2020 --disable-dshow) _dshow=no ;; |
2132 fi | 2132 fi |
2133 if test "$_3dnow" = yes ; then | 2133 if test "$_3dnow" = yes ; then |
2134 _pref_as_version='2.10.1' | 2134 _pref_as_version='2.10.1' |
2135 echo 'femms' >> $TMPS | 2135 echo 'femms' >> $TMPS |
2136 fi | 2136 fi |
2137 if test "$_3dnowex" = yes ; then | 2137 if test "$_3dnowext" = yes ; then |
2138 _pref_as_version='2.10.1' | 2138 _pref_as_version='2.10.1' |
2139 echo 'pswapd %mm0, %mm0' >> $TMPS | 2139 echo 'pswapd %mm0, %mm0' >> $TMPS |
2140 fi | 2140 fi |
2141 if test "$_mmx2" = yes ; then | 2141 if test "$_mmxext" = yes ; then |
2142 _pref_as_version='2.10.1' | 2142 _pref_as_version='2.10.1' |
2143 echo 'movntq %mm0, (%eax)' >> $TMPS | 2143 echo 'movntq %mm0, (%eax)' >> $TMPS |
2144 fi | 2144 fi |
2145 if test "$_sse" = yes ; then | 2145 if test "$_sse" = yes ; then |
2146 _pref_as_version='2.10.1' | 2146 _pref_as_version='2.10.1' |
2252 fi | 2252 fi |
2253 fi | 2253 fi |
2254 | 2254 |
2255 _def_mmx='#undef HAVE_MMX' | 2255 _def_mmx='#undef HAVE_MMX' |
2256 test "$_mmx" = yes && _def_mmx='#define HAVE_MMX 1' | 2256 test "$_mmx" = yes && _def_mmx='#define HAVE_MMX 1' |
2257 _def_mmx2='#undef HAVE_MMX2' | 2257 _def_mmxext='#undef HAVE_MMX2' |
2258 test "$_mmx2" = yes && _def_mmx2='#define HAVE_MMX2 1' | 2258 test "$_mmxext" = yes && _def_mmxext='#define HAVE_MMX2 1' |
2259 _def_3dnow='#undef HAVE_3DNOW' | 2259 _def_3dnow='#undef HAVE_3DNOW' |
2260 test "$_3dnow" = yes && _def_3dnow='#define HAVE_3DNOW 1' | 2260 test "$_3dnow" = yes && _def_3dnow='#define HAVE_3DNOW 1' |
2261 _def_3dnowex='#undef HAVE_3DNOWEX' | 2261 _def_3dnowext='#undef HAVE_3DNOWEX' |
2262 test "$_3dnowex" = yes && _def_3dnowex='#define HAVE_3DNOWEX 1' | 2262 test "$_3dnowext" = yes && _def_3dnowext='#define HAVE_3DNOWEX 1' |
2263 _def_sse='#undef HAVE_SSE' | 2263 _def_sse='#undef HAVE_SSE' |
2264 test "$_sse" = yes && _def_sse='#define HAVE_SSE 1' | 2264 test "$_sse" = yes && _def_sse='#define HAVE_SSE 1' |
2265 _def_sse2='#undef HAVE_SSE2' | 2265 _def_sse2='#undef HAVE_SSE2' |
2266 test "$_sse2" = yes && _def_sse2='#define HAVE_SSE2 1' | 2266 test "$_sse2" = yes && _def_sse2='#define HAVE_SSE2 1' |
2267 | 2267 |
7404 # --- Some stuff for autoconfigure ---- | 7404 # --- Some stuff for autoconfigure ---- |
7405 $_target_arch | 7405 $_target_arch |
7406 $_confwin32 | 7406 $_confwin32 |
7407 TARGET_CPU=$iproc | 7407 TARGET_CPU=$iproc |
7408 TARGET_MMX = $_mmx | 7408 TARGET_MMX = $_mmx |
7409 TARGET_MMX2 = $_mmx2 | 7409 TARGET_MMX2 = $_mmxext |
7410 TARGET_3DNOW = $_3dnow | 7410 TARGET_3DNOW = $_3dnow |
7411 TARGET_3DNOWEX = $_3dnowex | 7411 TARGET_3DNOWEX = $_3dnowext |
7412 TARGET_SSE = $_sse | 7412 TARGET_SSE = $_sse |
7413 TARGET_ALTIVEC = $_altivec | 7413 TARGET_ALTIVEC = $_altivec |
7414 TARGET_VIS = $_vis | 7414 TARGET_VIS = $_vis |
7415 | 7415 |
7416 # --- GUI stuff --- | 7416 # --- GUI stuff --- |
8043 /* do we have gethostbyname2? */ | 8043 /* do we have gethostbyname2? */ |
8044 $_def_gethostbyname2 | 8044 $_def_gethostbyname2 |
8045 | 8045 |
8046 /* Extension defines */ | 8046 /* Extension defines */ |
8047 $_def_3dnow // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) | 8047 $_def_3dnow // only define if you have 3DNOW (AMD k6-2, AMD Athlon, iDT WinChip, etc.) |
8048 $_def_3dnowex // only define if you have 3DNOWEX (AMD Athlon, etc.) | 8048 $_def_3dnowext // only define if you have 3DNOWEXT (AMD Athlon, etc.) |
8049 $_def_mmx // only define if you have MMX (newer x86 chips, not P54C/PPro) | 8049 $_def_mmx // only define if you have MMX (newer x86 chips, not P54C/PPro) |
8050 $_def_mmx2 // only define if you have MMX2 (Athlon/PIII/4/CelII) | 8050 $_def_mmxext // only define if you have MMX2 (Athlon/PIII/4/CelII) |
8051 $_def_sse // only define if you have SSE (Intel Pentium III/4 or Celeron II) | 8051 $_def_sse // only define if you have SSE (Intel Pentium III/4 or Celeron II) |
8052 $_def_sse2 // only define if you have SSE2 (Intel Pentium 4) | 8052 $_def_sse2 // only define if you have SSE2 (Intel Pentium 4) |
8053 $_def_altivec // only define if you have Altivec (G4) | 8053 $_def_altivec // only define if you have Altivec (G4) |
8054 | 8054 |
8055 $_def_altivec_h // enables usage of altivec.h | 8055 $_def_altivec_h // enables usage of altivec.h |