summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-10 14:54:51 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-10 14:54:51 +0000
commitb77add3447cb5814feaf1ef26f124c6e00b11eb2 (patch)
treecf164ce646c2bebe9ef326ab1b04b792e2afcc3a /configure
parentdd73597f8cb84cbbf6d21607f58a4693e350f493 (diff)
downloadmpv-b77add3447cb5814feaf1ef26f124c6e00b11eb2.tar.bz2
mpv-b77add3447cb5814feaf1ef26f124c6e00b11eb2.tar.xz
Simplify AltiVec compiler flag test.
Add a note about the new build system to the AUTHORS file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26719 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 6 insertions, 14 deletions
diff --git a/configure b/configure
index 29ef701d88..b97e1901d9 100755
--- a/configure
+++ b/configure
@@ -2414,25 +2414,17 @@ echores $_asmalign_pot
if test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ; then
# check if AltiVec is supported by the compiler, and how to enable it
- echocheck "GCC altivec support"
- _altivec_gcc_flags=''
- p='none'
+ echocheck "GCC AltiVec flags"
cat > $TMPC << EOF
int main(void) { return 0; }
EOF
- FSF_flags='-maltivec -mabi=altivec'
- Darwin_flags='-faltivec'
-
# check for Darwin-style flags first, since gcc-3.3 (August Update
# from Apple) on MacOS 10.2.8 accepts but ignores FSF-style flags...
- cc_check $Darwin_flags && p='Darwin' \
- || cc_check $FSF_flags && p='FSF'
- case $p in
- FSF) _altivec_gcc_flags="$FSF_flags" _altivec=yes ;;
- Darwin) _altivec_gcc_flags="$Darwin_flags" _altivec=yes ;;
- *) _altivec=no ;;
- esac
- echores "$p-style ($_altivec_gcc_flags)"
+ cc_check -faltivec && _altivec_gcc_flags=-faltivec \
+ || cc_check -maltivec -mabi=altivec \
+ && _altivec_gcc_flags="-maltivec -mabi=altivec" \
+ || _altivec=no
+ echores "$_altivec_gcc_flags"
# check if <altivec.h> should be included
echocheck "altivec.h"