summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-01 13:49:53 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-01 13:49:53 +0000
commitd5859f1ae6fd17408a64874dafe49f8a1c26c5d0 (patch)
tree25d647b7be357630326517a7a43c3d491ad0dc67
parenta37b456dd8af9d2e2e10a281a0c7b0d5fca2a0a8 (diff)
downloadmpv-d5859f1ae6fd17408a64874dafe49f8a1c26c5d0.tar.bz2
mpv-d5859f1ae6fd17408a64874dafe49f8a1c26c5d0.tar.xz
cosmetics: Simplify altivec.h test.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26631 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure12
1 files changed, 4 insertions, 8 deletions
diff --git a/configure b/configure
index 33fe8d5273..b6cff78287 100755
--- a/configure
+++ b/configure
@@ -2497,19 +2497,15 @@ EOF
fi
# check if <altivec.h> should be included
-
- _def_altivec_h='#undef HAVE_ALTIVEC_H'
-
echocheck "altivec.h"
+ _def_altivec_h='#undef HAVE_ALTIVEC_H'
+ _have_altivec_h=no
cat > $TMPC << EOF
#include <altivec.h>
int main(void) { return 0; }
EOF
- _have_altivec_h=no
- cc_check $_altivec_gcc_flags && _have_altivec_h=yes
- if test "$_have_altivec_h" = yes ; then
- _def_altivec_h='#define HAVE_ALTIVEC_H 1'
- fi
+ cc_check $_altivec_gcc_flags && _have_altivec_h=yes \
+ && _def_altivec_h='#define HAVE_ALTIVEC_H 1'
echores "$_have_altivec_h"
# disable runtime cpudetection if