Mercurial > mplayer.hg
comparison configure @ 32657:cccc340868f4
Simplify vector declarations and fast inttypes check with statement_check().
author | diego |
---|---|
date | Sun, 02 Jan 2011 11:49:48 +0000 |
parents | 85f0d7406e07 |
children | 7246ea769aef |
comparison
equal
deleted
inserted
replaced
32656:b3b553ad6da8 | 32657:cccc340868f4 |
---|---|
2776 fi | 2776 fi |
2777 fi | 2777 fi |
2778 echores "$_altivec_gcc_flags" | 2778 echores "$_altivec_gcc_flags" |
2779 | 2779 |
2780 # check if the compiler supports braces for vector declarations | 2780 # check if the compiler supports braces for vector declarations |
2781 cat > $TMPC << EOF | 2781 statement_check "$inc_altivec_h" '(vector int) {1}' $_altivec_gcc_flags || |
2782 $inc_altivec_h | 2782 die "You need a compiler that supports {} in AltiVec vector declarations." |
2783 int main(void) { (vector int) {1}; return 0; } | |
2784 EOF | |
2785 cc_check $_altivec_gcc_flags || die "You need a compiler that supports {} in AltiVec vector declarations." | |
2786 | 2783 |
2787 # Disable runtime cpudetection if we cannot generate AltiVec code or | 2784 # Disable runtime cpudetection if we cannot generate AltiVec code or |
2788 # AltiVec is disabled by the user. | 2785 # AltiVec is disabled by the user. |
2789 test "$_runtime_cpudetection" = yes && test "$_altivec" = no \ | 2786 test "$_runtime_cpudetection" = yes && test "$_altivec" = no \ |
2790 && _runtime_cpudetection=no | 2787 && _runtime_cpudetection=no |
3393 fi | 3390 fi |
3394 fi | 3391 fi |
3395 | 3392 |
3396 | 3393 |
3397 echocheck "int_fastXY_t in inttypes.h" | 3394 echocheck "int_fastXY_t in inttypes.h" |
3398 cat > $TMPC << EOF | |
3399 #include <inttypes.h> | |
3400 int main(void) { volatile int_fast16_t v = 0; return v; } | |
3401 EOF | |
3402 _fast_inttypes=no | 3395 _fast_inttypes=no |
3403 cc_check && _fast_inttypes=yes | 3396 statement_check "inttypes.h" 'volatile int_fast16_t v = 0' && _fast_inttypes=yes |
3404 if test "$_fast_inttypes" = no ; then | 3397 if test "$_fast_inttypes" = no ; then |
3405 def_fast_inttypes=' | 3398 def_fast_inttypes=' |
3406 typedef signed char int_fast8_t; | 3399 typedef signed char int_fast8_t; |
3407 typedef signed int int_fast16_t; | 3400 typedef signed int int_fast16_t; |
3408 typedef signed int int_fast32_t; | 3401 typedef signed int int_fast32_t; |