Mercurial > mplayer.hg
comparison configure @ 26599:ebdaff17896e
cosmetics: Simplify altivec.h test.
author | diego |
---|---|
date | Thu, 01 May 2008 13:49:53 +0000 |
parents | ee15950f50a7 |
children | 921d501d924b |
comparison
equal
deleted
inserted
replaced
26598:ee15950f50a7 | 26599:ebdaff17896e |
---|---|
2495 | 2495 |
2496 echores "$p" | 2496 echores "$p" |
2497 fi | 2497 fi |
2498 | 2498 |
2499 # check if <altivec.h> should be included | 2499 # check if <altivec.h> should be included |
2500 | 2500 echocheck "altivec.h" |
2501 _def_altivec_h='#undef HAVE_ALTIVEC_H' | 2501 _def_altivec_h='#undef HAVE_ALTIVEC_H' |
2502 | 2502 _have_altivec_h=no |
2503 echocheck "altivec.h" | |
2504 cat > $TMPC << EOF | 2503 cat > $TMPC << EOF |
2505 #include <altivec.h> | 2504 #include <altivec.h> |
2506 int main(void) { return 0; } | 2505 int main(void) { return 0; } |
2507 EOF | 2506 EOF |
2508 _have_altivec_h=no | 2507 cc_check $_altivec_gcc_flags && _have_altivec_h=yes \ |
2509 cc_check $_altivec_gcc_flags && _have_altivec_h=yes | 2508 && _def_altivec_h='#define HAVE_ALTIVEC_H 1' |
2510 if test "$_have_altivec_h" = yes ; then | |
2511 _def_altivec_h='#define HAVE_ALTIVEC_H 1' | |
2512 fi | |
2513 echores "$_have_altivec_h" | 2509 echores "$_have_altivec_h" |
2514 | 2510 |
2515 # disable runtime cpudetection if | 2511 # disable runtime cpudetection if |
2516 # - we cannot generate altivec code | 2512 # - we cannot generate altivec code |
2517 # - altivec is disabled by the user | 2513 # - altivec is disabled by the user |