comparison configure @ 27318:bb5ed9aa34fc

Remove AltiVec vector declaration compiler compatibility macros. The original problem was that FSF and Apple gcc used a different syntax for vector declarations, i.e. {} vs. (). Nowadays Apple gcc versions support the standard {} syntax and versions that support {} are available on all relevant Mac OS X versions. Thus the greater compatibility is no longer worth cluttering the code with macros.
author diego
date Sat, 26 Jul 2008 12:26:04 +0000
parents f8711d691a46
children 09cf111f68b8
comparison
equal deleted inserted replaced
27317:5707f04b8e69 27318:bb5ed9aa34fc
2468 echores "$_altivec_gcc_flags" 2468 echores "$_altivec_gcc_flags"
2469 2469
2470 # check if the compiler supports braces for vector declarations 2470 # check if the compiler supports braces for vector declarations
2471 cat > $TMPC << EOF 2471 cat > $TMPC << EOF
2472 $inc_altivec_h 2472 $inc_altivec_h
2473 #define AVV(x...) {x} 2473 int main(void) { (vector int) {1}; return 0; }
2474 int main(void) { (vector int) AVV(1); return 0; } 2474 EOF
2475 EOF 2475 cc_check $_altivec_gcc_flags || die "You need a compiler that supports {} in AltiVec vector declarations."
2476 cc_check $_altivec_gcc_flags &&
2477 _def_altivec_vector_braces='#define HAVE_ALTIVEC_VECTOR_BRACES 1'
2478 2476
2479 # Disable runtime cpudetection if we cannot generate AltiVec code or 2477 # Disable runtime cpudetection if we cannot generate AltiVec code or
2480 # AltiVec is disabled by the user. 2478 # AltiVec is disabled by the user.
2481 test "$_runtime_cpudetection" = yes && test "$_altivec" = no \ 2479 test "$_runtime_cpudetection" = yes && test "$_altivec" = no \
2482 && _runtime_cpudetection=no 2480 && _runtime_cpudetection=no
8628 8626
8629 /* Extension defines */ 8627 /* Extension defines */
8630 `ff_config_enable "$_cpuexts_all" "$_cpuexts" "HAVE"` 8628 `ff_config_enable "$_cpuexts_all" "$_cpuexts" "HAVE"`
8631 8629
8632 $_def_altivec_h // enables usage of altivec.h 8630 $_def_altivec_h // enables usage of altivec.h
8633 $_def_altivec_vector_braces
8634 8631
8635 /* libvo options */ 8632 /* libvo options */
8636 #define SCREEN_SIZE_X 1 8633 #define SCREEN_SIZE_X 1
8637 #define SCREEN_SIZE_Y 1 8634 #define SCREEN_SIZE_Y 1
8638 $_def_x11 8635 $_def_x11