altivec support under netbsd, patch by Matthew Green

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12142 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2004-04-06 16:13:52 +00:00
parent 1d497e2d82
commit e6b6bc90ed
1 changed files with 12 additions and 0 deletions

12
configure vendored
View File

@ -878,6 +878,18 @@ EOF
_altivec=yes
fi
fi
# only gcc 3.4 works reliably with altivec code under netbsd
if netbsd ; then
case $cc_version in
2*|3.0*|3.1*|3.2*|3.3*)
;;
*)
if [ `sysctl -n machdep.altivec` -eq 1 ]; then
_altivec=yes
fi
;;
esac
fi
if test "$_altivec" = yes; then
echores "$proc altivec"
else