comparison configure @ 24187:4ad5ef881aa1

Simplify VIS detection. Also adds ENABLE_VIS define and changes "#define HAVE_VIS = yes" to something more sane...
author reimar
date Sun, 26 Aug 2007 12:07:37 +0000
parents c329fa49da96
children dfb10921490b
comparison
equal deleted inserted replaced
24186:c00a882a3adc 24187:4ad5ef881aa1
1962 case "`echo $karch`" in 1962 case "`echo $karch`" in
1963 sun4) proc=v7 ;; 1963 sun4) proc=v7 ;;
1964 sun4c) proc=v7 ;; 1964 sun4c) proc=v7 ;;
1965 sun4d) proc=v8 ;; 1965 sun4d) proc=v8 ;;
1966 sun4m) proc=v8 ;; 1966 sun4m) proc=v8 ;;
1967 sun4u) proc=ultrasparc _vis='yes' _def_vis='#define HAVE_VIS = yes' ;; 1967 sun4u) proc=ultrasparc _vis='yes' ;;
1968 sun4v) proc=v9 ;; 1968 sun4v) proc=v9 ;;
1969 *) proc=v8 ;; 1969 *) proc=v8 ;;
1970 esac 1970 esac
1971 echores "$proc" 1971 echores "$proc"
1972 else 1972 else
1979 1979
1980 sparc64) 1980 sparc64)
1981 _arch='SPARC' 1981 _arch='SPARC'
1982 _target_arch='ARCH_SPARC = yes' 1982 _target_arch='ARCH_SPARC = yes'
1983 _vis='yes' 1983 _vis='yes'
1984 _def_vis='#define HAVE_VIS = yes'
1985 iproc='sparc' 1984 iproc='sparc'
1986 proc='v9' 1985 proc='v9'
1987 _march='' 1986 _march=''
1988 _mcpu="-mcpu=$proc" 1987 _mcpu="-mcpu=$proc"
1989 _optimizing="$proc" 1988 _optimizing="$proc"
2520 cc_check && _iwmmxt=yes 2519 cc_check && _iwmmxt=yes
2521 fi 2520 fi
2522 echores "$_iwmmxt" 2521 echores "$_iwmmxt"
2523 fi 2522 fi
2524 2523
2525 _cpuexts_all='ALTIVEC MMX MMX2 3DNOW 3DNOWEX SSE SSE2 SSSE3 FAST_CMOV CMOV ARMV5TE ARMV6 IWMMXT MLIB MMI SH4 BFIN' 2524 _cpuexts_all='ALTIVEC MMX MMX2 3DNOW 3DNOWEX SSE SSE2 SSSE3 FAST_CMOV CMOV ARMV5TE ARMV6 IWMMXT MLIB MMI SH4 BFIN VIS'
2526 test "$_altivec" = yes && _cpuexts="ALTIVEC $_cpuexts" 2525 test "$_altivec" = yes && _cpuexts="ALTIVEC $_cpuexts"
2527 test "$_mmx" = yes && _cpuexts="MMX $_cpuexts" 2526 test "$_mmx" = yes && _cpuexts="MMX $_cpuexts"
2528 test "$_mmxext" = yes && _cpuexts="MMX2 $_cpuexts" 2527 test "$_mmxext" = yes && _cpuexts="MMX2 $_cpuexts"
2529 test "$_3dnow" = yes && _cpuexts="3DNOW $_cpuexts" 2528 test "$_3dnow" = yes && _cpuexts="3DNOW $_cpuexts"
2530 test "$_3dnowext" = yes && _cpuexts="3DNOWEX $_cpuexts" 2529 test "$_3dnowext" = yes && _cpuexts="3DNOWEX $_cpuexts"
2534 test "$_cmov" = yes && _cpuexts="CMOV $_cpuexts" 2533 test "$_cmov" = yes && _cpuexts="CMOV $_cpuexts"
2535 test "$_fast_cmov" = yes && _cpuexts="FAST_CMOV $_cpuexts" 2534 test "$_fast_cmov" = yes && _cpuexts="FAST_CMOV $_cpuexts"
2536 test "$_armv5te" = yes && _cpuexts="ARMV5TE $_cpuexts" 2535 test "$_armv5te" = yes && _cpuexts="ARMV5TE $_cpuexts"
2537 test "$_armv6" = yes && _cpuexts="ARMV6 $_cpuexts" 2536 test "$_armv6" = yes && _cpuexts="ARMV6 $_cpuexts"
2538 test "$_iwmmxt" = yes && _cpuexts="IWMMXT $_cpuexts" 2537 test "$_iwmmxt" = yes && _cpuexts="IWMMXT $_cpuexts"
2538 test "$_vis" = yes && _cpuexts="VIS $_cpuexts"
2539 2539
2540 # Checking kernel version... 2540 # Checking kernel version...
2541 if x86_32 && linux ; then 2541 if x86_32 && linux ; then
2542 _k_verc_problem=no 2542 _k_verc_problem=no
2543 kernel_version=`uname -r 2>&1` 2543 kernel_version=`uname -r 2>&1`
8363 /* Extension defines */ 8363 /* Extension defines */
8364 `ff_config_enable "$_cpuexts_all" "$_cpuexts" "HAVE"` 8364 `ff_config_enable "$_cpuexts_all" "$_cpuexts" "HAVE"`
8365 8365
8366 $_def_altivec_h // enables usage of altivec.h 8366 $_def_altivec_h // enables usage of altivec.h
8367 8367
8368 $_def_vis // only define if you have VIS ( ultrasparc )
8369
8370 /* libmpeg2 uses a different feature test macro for mediaLib */ 8368 /* libmpeg2 uses a different feature test macro for mediaLib */
8371 #ifdef HAVE_MLIB 8369 #ifdef HAVE_MLIB
8372 #define LIBMPEG2_MLIB 1 8370 #define LIBMPEG2_MLIB 1
8373 #endif 8371 #endif
8374 8372