comparison configure @ 33498:a2700dc1d5e6

Add support for detecting VFPV3, required for compiling libavcodec for some ARM targets.
author reimar
date Sat, 11 Jun 2011 16:38:49 +0000
parents 60b84f05d865
children e4f533bf5a9a
comparison
equal deleted inserted replaced
33497:ce4d5759f9c1 33498:a2700dc1d5e6
557 --enable-altivec enable AltiVec (PowerPC) [autodetect] 557 --enable-altivec enable AltiVec (PowerPC) [autodetect]
558 --enable-armv5te enable DSP extensions (ARM) [autodetect] 558 --enable-armv5te enable DSP extensions (ARM) [autodetect]
559 --enable-armv6 enable ARMv6 (ARM) [autodetect] 559 --enable-armv6 enable ARMv6 (ARM) [autodetect]
560 --enable-armv6t2 enable ARMv6t2 (ARM) [autodetect] 560 --enable-armv6t2 enable ARMv6t2 (ARM) [autodetect]
561 --enable-armvfp enable ARM VFP (ARM) [autodetect] 561 --enable-armvfp enable ARM VFP (ARM) [autodetect]
562 --enable-vfpv3 enable ARM VFPV3 (ARM) [autodetect]
562 --enable-neon enable NEON (ARM) [autodetect] 563 --enable-neon enable NEON (ARM) [autodetect]
563 --enable-iwmmxt enable iWMMXt (ARM) [autodetect] 564 --enable-iwmmxt enable iWMMXt (ARM) [autodetect]
564 --disable-fastmemcpy disable 3DNow!/SSE/MMX optimized memcpy [enable] 565 --disable-fastmemcpy disable 3DNow!/SSE/MMX optimized memcpy [enable]
565 --enable-hardcoded-tables put tables in binary instead of calculating them at startup [disable] 566 --enable-hardcoded-tables put tables in binary instead of calculating them at startup [disable]
566 --enable-big-endian force byte order to big-endian [autodetect] 567 --enable-big-endian force byte order to big-endian [autodetect]
608 _fast_clz=auto 609 _fast_clz=auto
609 _armv5te=auto 610 _armv5te=auto
610 _armv6=auto 611 _armv6=auto
611 _armv6t2=auto 612 _armv6t2=auto
612 _armvfp=auto 613 _armvfp=auto
614 vfpv3=auto
613 neon=auto 615 neon=auto
614 _iwmmxt=auto 616 _iwmmxt=auto
615 _mtrr=auto 617 _mtrr=auto
616 _altivec=auto 618 _altivec=auto
617 _install=install 619 _install=install
1402 --disable-armv6) _armv6=no ;; 1404 --disable-armv6) _armv6=no ;;
1403 --enable-armv6t2) _armv6t2=yes ;; 1405 --enable-armv6t2) _armv6t2=yes ;;
1404 --disable-armv6t2) _armv6t2=no ;; 1406 --disable-armv6t2) _armv6t2=no ;;
1405 --enable-armvfp) _armvfp=yes ;; 1407 --enable-armvfp) _armvfp=yes ;;
1406 --disable-armvfp) _armvfp=no ;; 1408 --disable-armvfp) _armvfp=no ;;
1409 --enable-vfpv3) vfpv3=yes ;;
1410 --disable-vfpv3) vfpv3=no ;;
1407 --enable-neon) neon=yes ;; 1411 --enable-neon) neon=yes ;;
1408 --disable-neon) neon=no ;; 1412 --disable-neon) neon=no ;;
1409 --enable-iwmmxt) _iwmmxt=yes ;; 1413 --enable-iwmmxt) _iwmmxt=yes ;;
1410 --disable-iwmmxt) _iwmmxt=no ;; 1414 --disable-iwmmxt) _iwmmxt=no ;;
1411 --enable-mmx) _mmx=yes ;; 1415 --enable-mmx) _mmx=yes ;;
2909 _armvfp=no 2913 _armvfp=no
2910 inline_asm_check '"fadds s0, s0, s0"' && _armvfp=yes 2914 inline_asm_check '"fadds s0, s0, s0"' && _armvfp=yes
2911 fi 2915 fi
2912 echores "$_armvfp" 2916 echores "$_armvfp"
2913 2917
2918 echocheck "ARM VFPV3"
2919 if test $vfpv3 = "auto" ; then
2920 vfpv3=no
2921 inline_asm_check '"vmov.f32 s0, #1.0"' && vfpv3=yes
2922 fi
2923 echores "$vfpv3"
2924
2914 echocheck "ARM NEON" 2925 echocheck "ARM NEON"
2915 if test $neon = "auto" ; then 2926 if test $neon = "auto" ; then
2916 neon=no 2927 neon=no
2917 inline_asm_check '"vadd.i16 q0, q0, q0"' && neon=yes 2928 inline_asm_check '"vadd.i16 q0, q0, q0"' && neon=yes
2918 fi 2929 fi
2924 inline_asm_check '"wunpckelub wr6, wr4"' && _iwmmxt=yes 2935 inline_asm_check '"wunpckelub wr6, wr4"' && _iwmmxt=yes
2925 fi 2936 fi
2926 echores "$_iwmmxt" 2937 echores "$_iwmmxt"
2927 fi 2938 fi
2928 2939
2929 cpuexts_all='ALTIVEC MMX MMX2 AMD3DNOW AMD3DNOWEXT SSE SSE2 SSSE3 FAST_CMOV CMOV FAST_CLZ PLD ARMV5TE ARMV6 ARMV6T2 ARMVFP NEON IWMMXT MMI VIS MVI' 2940 cpuexts_all='ALTIVEC MMX MMX2 AMD3DNOW AMD3DNOWEXT SSE SSE2 SSSE3 FAST_CMOV CMOV FAST_CLZ PLD ARMV5TE ARMV6 ARMV6T2 ARMVFP VFPV3 NEON IWMMXT MMI VIS MVI'
2930 test "$_altivec" = yes && cpuexts="ALTIVEC $cpuexts" 2941 test "$_altivec" = yes && cpuexts="ALTIVEC $cpuexts"
2931 test "$_mmx" = yes && cpuexts="MMX $cpuexts" 2942 test "$_mmx" = yes && cpuexts="MMX $cpuexts"
2932 test "$_mmxext" = yes && cpuexts="MMX2 $cpuexts" 2943 test "$_mmxext" = yes && cpuexts="MMX2 $cpuexts"
2933 test "$_3dnow" = yes && cpuexts="AMD3DNOW $cpuexts" 2944 test "$_3dnow" = yes && cpuexts="AMD3DNOW $cpuexts"
2934 test "$_3dnowext" = yes && cpuexts="AMD3DNOWEXT $cpuexts" 2945 test "$_3dnowext" = yes && cpuexts="AMD3DNOWEXT $cpuexts"
2941 test "$pld" = yes && cpuexts="PLD $cpuexts" 2952 test "$pld" = yes && cpuexts="PLD $cpuexts"
2942 test "$_armv5te" = yes && cpuexts="ARMV5TE $cpuexts" 2953 test "$_armv5te" = yes && cpuexts="ARMV5TE $cpuexts"
2943 test "$_armv6" = yes && cpuexts="ARMV6 $cpuexts" 2954 test "$_armv6" = yes && cpuexts="ARMV6 $cpuexts"
2944 test "$_armv6t2" = yes && cpuexts="ARMV6T2 $cpuexts" 2955 test "$_armv6t2" = yes && cpuexts="ARMV6T2 $cpuexts"
2945 test "$_armvfp" = yes && cpuexts="ARMVFP $cpuexts" 2956 test "$_armvfp" = yes && cpuexts="ARMVFP $cpuexts"
2957 test "$vfpv3" = yes && cpuexts="VFPV3 $cpuexts"
2946 test "$neon" = yes && cpuexts="NEON $cpuexts" 2958 test "$neon" = yes && cpuexts="NEON $cpuexts"
2947 test "$_iwmmxt" = yes && cpuexts="IWMMXT $cpuexts" 2959 test "$_iwmmxt" = yes && cpuexts="IWMMXT $cpuexts"
2948 test "$_vis" = yes && cpuexts="VIS $cpuexts" 2960 test "$_vis" = yes && cpuexts="VIS $cpuexts"
2949 test "$_mvi" = yes && cpuexts="MVI $cpuexts" 2961 test "$_mvi" = yes && cpuexts="MVI $cpuexts"
2950 2962