summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-10 13:41:10 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-10 13:41:10 +0000
commit87836bc7c8cb2dfc512c92c849ecc719610213df (patch)
treedaab7e9955a6fe68ae13957e8864c347042973d5 /configure
parent26f561576260616c4f1f4d7b0a93337bc23f3470 (diff)
downloadmpv-87836bc7c8cb2dfc512c92c849ecc719610213df.tar.bz2
mpv-87836bc7c8cb2dfc512c92c849ecc719610213df.tar.xz
Simplify AltiVec CFLAG test.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26717 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 4 insertions, 13 deletions
diff --git a/configure b/configure
index 5f249bfed1..29ef701d88 100755
--- a/configure
+++ b/configure
@@ -2416,7 +2416,7 @@ 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=''
+ p='none'
cat > $TMPC << EOF
int main(void) { return 0; }
EOF
@@ -2425,23 +2425,14 @@ EOF
# 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...
- if test -z "$p"; then
- cc_check $Darwin_flags && p='Darwin'
- fi
- if test -z "$p"; then
- cc_check $FSF_flags && p='FSF'
- fi
+ 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
- if test -z "$p"; then
- p=none
- else
- p="$p-style ($_altivec_gcc_flags)"
- fi
- echores "$p"
+ echores "$p-style ($_altivec_gcc_flags)"
# check if <altivec.h> should be included
echocheck "altivec.h"