Commit 4477b9f4 authored by Diego Biurrun's avatar Diego Biurrun

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

Originally committed as revision 12448 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b96644bf
...@@ -1532,12 +1532,9 @@ fi ...@@ -1532,12 +1532,9 @@ fi
# AltiVec flags: The FSF version of GCC differs from the Apple version # AltiVec flags: The FSF version of GCC differs from the Apple version
if enabled altivec; then if enabled altivec; then
if test -n "`$cc -v 2>&1 | grep version | grep Apple`"; then check_cflags -maltivec -mabi=altivec &&
add_cflags "-faltivec" check_header altivec.h ||
else check_cflags -faltivec
add_cflags "-maltivec -mabi=altivec"
check_header altivec.h
fi
# check if our compiler supports Motorola AltiVec C API # check if our compiler supports Motorola AltiVec C API
enabled altivec_h && 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