Mercurial > mplayer.hg
comparison configure @ 27437:c755245032e7
Add check for ARM VFP instructions.
author | diego |
---|---|
date | Sun, 17 Aug 2008 22:02:05 +0000 |
parents | bb738b9ea7c4 |
children | ebf36d827c08 |
comparison
equal
deleted
inserted
replaced
27436:ad011045b17f | 27437:c755245032e7 |
---|---|
429 --enable-ssse3 enable SSSE3 [autodetect] | 429 --enable-ssse3 enable SSSE3 [autodetect] |
430 --enable-shm enable shm [autodetect] | 430 --enable-shm enable shm [autodetect] |
431 --enable-altivec enable AltiVec (PowerPC) [autodetect] | 431 --enable-altivec enable AltiVec (PowerPC) [autodetect] |
432 --enable-armv5te enable DSP extensions (ARM) [autodetect] | 432 --enable-armv5te enable DSP extensions (ARM) [autodetect] |
433 --enable-armv6 enable ARMv6 (ARM) [autodetect] | 433 --enable-armv6 enable ARMv6 (ARM) [autodetect] |
434 --enable-armvfp enable ARM VFP (ARM) [autodetect] | |
434 --enable-iwmmxt enable iWMMXt (ARM) [autodetect] | 435 --enable-iwmmxt enable iWMMXt (ARM) [autodetect] |
435 --disable-fastmemcpy disable 3DNow!/SSE/MMX optimized memcpy [enable] | 436 --disable-fastmemcpy disable 3DNow!/SSE/MMX optimized memcpy [enable] |
436 --enable-big-endian force byte order to big-endian [autodetect] | 437 --enable-big-endian force byte order to big-endian [autodetect] |
437 --enable-debug[=1-3] compile-in debugging information [disable] | 438 --enable-debug[=1-3] compile-in debugging information [disable] |
438 --enable-profile compile-in profiling information [disable] | 439 --enable-profile compile-in profiling information [disable] |
477 _ssse3=auto | 478 _ssse3=auto |
478 _cmov=auto | 479 _cmov=auto |
479 _fast_cmov=auto | 480 _fast_cmov=auto |
480 _armv5te=auto | 481 _armv5te=auto |
481 _armv6=auto | 482 _armv6=auto |
483 _armvfp=auto | |
482 _iwmmxt=auto | 484 _iwmmxt=auto |
483 _mtrr=auto | 485 _mtrr=auto |
484 _altivec=auto | 486 _altivec=auto |
485 _install=install | 487 _install=install |
486 _ranlib=ranlib | 488 _ranlib=ranlib |
1219 --disable-altivec) _altivec=no ;; | 1221 --disable-altivec) _altivec=no ;; |
1220 --enable-armv5te) _armv5te=yes ;; | 1222 --enable-armv5te) _armv5te=yes ;; |
1221 --disable-armv5te) _armv5te=no ;; | 1223 --disable-armv5te) _armv5te=no ;; |
1222 --enable-armv6) _armv6=yes ;; | 1224 --enable-armv6) _armv6=yes ;; |
1223 --disable-armv6) _armv6=no ;; | 1225 --disable-armv6) _armv6=no ;; |
1226 --enable-armvfp) _armvfp=yes ;; | |
1227 --disable-armvfp) _armvfp=no ;; | |
1224 --enable-iwmmxt) _iwmmxt=yes ;; | 1228 --enable-iwmmxt) _iwmmxt=yes ;; |
1225 --disable-iwmmxt) _iwmmxt=no ;; | 1229 --disable-iwmmxt) _iwmmxt=no ;; |
1226 --enable-mmx) _mmx=yes ;; | 1230 --enable-mmx) _mmx=yes ;; |
1227 --disable-mmx) # 3Dnow! and MMX2 require MMX | 1231 --disable-mmx) # 3Dnow! and MMX2 require MMX |
1228 _3dnow=no _3dnowext=no _mmx=no _mmxext=no ;; | 1232 _3dnow=no _3dnowext=no _mmx=no _mmxext=no ;; |
2500 _armv6=no | 2504 _armv6=no |
2501 cc_check && _armv6=yes | 2505 cc_check && _armv6=yes |
2502 fi | 2506 fi |
2503 echores "$_armv6" | 2507 echores "$_armv6" |
2504 | 2508 |
2509 echocheck "ARM VFP" | |
2510 if test $_armvfp = "auto" ; then | |
2511 cat > $TMPC << EOF | |
2512 int main(void) { __asm__ __volatile__ ("fadds s0, s0, s0"); return 0; } | |
2513 EOF | |
2514 _armvfp=no | |
2515 cc_check && _armvfp=yes | |
2516 fi | |
2517 echores "$_armvfp" | |
2518 | |
2505 echocheck "iWMMXt (Intel XScale SIMD instructions)" | 2519 echocheck "iWMMXt (Intel XScale SIMD instructions)" |
2506 if test $_iwmmxt = "auto" ; then | 2520 if test $_iwmmxt = "auto" ; then |
2507 cat > $TMPC << EOF | 2521 cat > $TMPC << EOF |
2508 int main(void) { __asm__ __volatile__ ("wunpckelub wr6, wr4"); return 0; } | 2522 int main(void) { __asm__ __volatile__ ("wunpckelub wr6, wr4"); return 0; } |
2509 EOF | 2523 EOF |
2511 cc_check && _iwmmxt=yes | 2525 cc_check && _iwmmxt=yes |
2512 fi | 2526 fi |
2513 echores "$_iwmmxt" | 2527 echores "$_iwmmxt" |
2514 fi | 2528 fi |
2515 | 2529 |
2516 _cpuexts_all='ALTIVEC MMX MMX2 3DNOW 3DNOWEX SSE SSE2 SSSE3 FAST_CMOV CMOV ARMV5TE ARMV6 IWMMXT MLIB MMI SH4 VIS MVI' | 2530 _cpuexts_all='ALTIVEC MMX MMX2 3DNOW 3DNOWEX SSE SSE2 SSSE3 FAST_CMOV CMOV ARMV5TE ARMV6 ARMVFP IWMMXT MLIB MMI SH4 VIS MVI' |
2517 test "$_altivec" = yes && _cpuexts="ALTIVEC $_cpuexts" | 2531 test "$_altivec" = yes && _cpuexts="ALTIVEC $_cpuexts" |
2518 test "$_mmx" = yes && _cpuexts="MMX $_cpuexts" | 2532 test "$_mmx" = yes && _cpuexts="MMX $_cpuexts" |
2519 test "$_mmxext" = yes && _cpuexts="MMX2 $_cpuexts" | 2533 test "$_mmxext" = yes && _cpuexts="MMX2 $_cpuexts" |
2520 test "$_3dnow" = yes && _cpuexts="3DNOW $_cpuexts" | 2534 test "$_3dnow" = yes && _cpuexts="3DNOW $_cpuexts" |
2521 test "$_3dnowext" = yes && _cpuexts="3DNOWEX $_cpuexts" | 2535 test "$_3dnowext" = yes && _cpuexts="3DNOWEX $_cpuexts" |
2524 test "$_ssse3" = yes && _cpuexts="SSSE3 $_cpuexts" | 2538 test "$_ssse3" = yes && _cpuexts="SSSE3 $_cpuexts" |
2525 test "$_cmov" = yes && _cpuexts="CMOV $_cpuexts" | 2539 test "$_cmov" = yes && _cpuexts="CMOV $_cpuexts" |
2526 test "$_fast_cmov" = yes && _cpuexts="FAST_CMOV $_cpuexts" | 2540 test "$_fast_cmov" = yes && _cpuexts="FAST_CMOV $_cpuexts" |
2527 test "$_armv5te" = yes && _cpuexts="ARMV5TE $_cpuexts" | 2541 test "$_armv5te" = yes && _cpuexts="ARMV5TE $_cpuexts" |
2528 test "$_armv6" = yes && _cpuexts="ARMV6 $_cpuexts" | 2542 test "$_armv6" = yes && _cpuexts="ARMV6 $_cpuexts" |
2543 test "$_armvfp" = yes && _cpuexts="ARMVFP $_cpuexts" | |
2529 test "$_iwmmxt" = yes && _cpuexts="IWMMXT $_cpuexts" | 2544 test "$_iwmmxt" = yes && _cpuexts="IWMMXT $_cpuexts" |
2530 test "$_vis" = yes && _cpuexts="VIS $_cpuexts" | 2545 test "$_vis" = yes && _cpuexts="VIS $_cpuexts" |
2531 test "$_mvi" = yes && _cpuexts="MVI $_cpuexts" | 2546 test "$_mvi" = yes && _cpuexts="MVI $_cpuexts" |
2532 | 2547 |
2533 # Checking kernel version... | 2548 # Checking kernel version... |