Browse Source

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

Originally committed as revision 12448 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Diego Biurrun 17 years ago
parent
commit
4477b9f424
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      configure

+ 3
- 6
configure View File

@@ -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 &&


Loading…
Cancel
Save