1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-19 05:41:16 +00:00

cosmetics: Simplify altivec.h test.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26631 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2008-05-01 13:49:53 +00:00
parent a37b456dd8
commit d5859f1ae6

12
configure vendored
View File

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