Commit f39556e2 authored by diego's avatar diego

Properly check for AltiVec CFLAGS instead of guessing based on compiler vendor.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12448 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cba7e5eb
......@@ -1532,12 +1532,9 @@ fi
# AltiVec flags: The FSF version of GCC differs from the Apple version
if enabled altivec; then
if test -n "`$cc -v 2>&1 | grep version | grep Apple`"; then
add_cflags "-faltivec"
else
add_cflags "-maltivec -mabi=altivec"
check_header altivec.h
fi
check_cflags -maltivec -mabi=altivec &&
check_header altivec.h ||
check_cflags -faltivec
# check if our compiler supports Motorola AltiVec C API
enabled altivec_h &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment