Mercurial > mplayer.hg
changeset 26894:3aa8ad5202ea
Check for AltiVec vector declaration syntax.
author | diego |
---|---|
date | Fri, 30 May 2008 11:45:08 +0000 |
parents | fbd332ed6562 |
children | 2aadf9302854 |
files | configure |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Thu May 29 21:28:07 2008 +0000 +++ b/configure Fri May 30 11:45:08 2008 +0000 @@ -2437,9 +2437,19 @@ int main(void) { return 0; } EOF cc_check $_altivec_gcc_flags && _have_altivec_h=yes \ + && inc_altivec_h="#include <altivec.h>" \ && _def_altivec_h='#define HAVE_ALTIVEC_H 1' echores "$_have_altivec_h" + # check if the compiler supports braces for vector declarations + cat > $TMPC << EOF +$inc_altivec_h +#define AVV(x...) {x} +int main (void) { (vector int) AVV(1); return 0; } +EOF + cc_check $_altivec_gcc_flags && + _def_altivec_vector_braces='#define HAVE_ALTIVEC_VECTOR_BRACES 1' + # Disable runtime cpudetection if we cannot generate AltiVec code or # AltiVec is disabled by the user. test "$_runtime_cpudetection" = yes && test "$_altivec" = no \ @@ -8488,6 +8498,7 @@ `ff_config_enable "$_cpuexts_all" "$_cpuexts" "HAVE"` $_def_altivec_h // enables usage of altivec.h +$_def_altivec_vector_braces /* libvo options */ #define SCREEN_SIZE_X 1