Simplify VIS detection. Also adds ENABLE_VIS define and changes "#define HAVE_VIS = yes"

to something more sane...


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24207 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-08-26 12:07:37 +00:00
parent 801976dc82
commit 0ae4749513
1 changed files with 3 additions and 5 deletions

8
configure vendored
View File

@ -1964,7 +1964,7 @@ EOF
sun4c) proc=v7 ;; sun4c) proc=v7 ;;
sun4d) proc=v8 ;; sun4d) proc=v8 ;;
sun4m) proc=v8 ;; sun4m) proc=v8 ;;
sun4u) proc=ultrasparc _vis='yes' _def_vis='#define HAVE_VIS = yes' ;; sun4u) proc=ultrasparc _vis='yes' ;;
sun4v) proc=v9 ;; sun4v) proc=v9 ;;
*) proc=v8 ;; *) proc=v8 ;;
esac esac
@ -1981,7 +1981,6 @@ EOF
_arch='SPARC' _arch='SPARC'
_target_arch='ARCH_SPARC = yes' _target_arch='ARCH_SPARC = yes'
_vis='yes' _vis='yes'
_def_vis='#define HAVE_VIS = yes'
iproc='sparc' iproc='sparc'
proc='v9' proc='v9'
_march='' _march=''
@ -2522,7 +2521,7 @@ EOF
echores "$_iwmmxt" echores "$_iwmmxt"
fi fi
_cpuexts_all='ALTIVEC MMX MMX2 3DNOW 3DNOWEX SSE SSE2 SSSE3 FAST_CMOV CMOV ARMV5TE ARMV6 IWMMXT MLIB MMI SH4 BFIN' _cpuexts_all='ALTIVEC MMX MMX2 3DNOW 3DNOWEX SSE SSE2 SSSE3 FAST_CMOV CMOV ARMV5TE ARMV6 IWMMXT MLIB MMI SH4 BFIN VIS'
test "$_altivec" = yes && _cpuexts="ALTIVEC $_cpuexts" test "$_altivec" = yes && _cpuexts="ALTIVEC $_cpuexts"
test "$_mmx" = yes && _cpuexts="MMX $_cpuexts" test "$_mmx" = yes && _cpuexts="MMX $_cpuexts"
test "$_mmxext" = yes && _cpuexts="MMX2 $_cpuexts" test "$_mmxext" = yes && _cpuexts="MMX2 $_cpuexts"
@ -2536,6 +2535,7 @@ test "$_fast_cmov" = yes && _cpuexts="FAST_CMOV $_cpuexts"
test "$_armv5te" = yes && _cpuexts="ARMV5TE $_cpuexts" test "$_armv5te" = yes && _cpuexts="ARMV5TE $_cpuexts"
test "$_armv6" = yes && _cpuexts="ARMV6 $_cpuexts" test "$_armv6" = yes && _cpuexts="ARMV6 $_cpuexts"
test "$_iwmmxt" = yes && _cpuexts="IWMMXT $_cpuexts" test "$_iwmmxt" = yes && _cpuexts="IWMMXT $_cpuexts"
test "$_vis" = yes && _cpuexts="VIS $_cpuexts"
# Checking kernel version... # Checking kernel version...
if x86_32 && linux ; then if x86_32 && linux ; then
@ -8365,8 +8365,6 @@ $_def_gethostbyname2
$_def_altivec_h // enables usage of altivec.h $_def_altivec_h // enables usage of altivec.h
$_def_vis // only define if you have VIS ( ultrasparc )
/* libmpeg2 uses a different feature test macro for mediaLib */ /* libmpeg2 uses a different feature test macro for mediaLib */
#ifdef HAVE_MLIB #ifdef HAVE_MLIB
#define LIBMPEG2_MLIB 1 #define LIBMPEG2_MLIB 1