[MPlayer-cvslog] r32744 - trunk/configure

diego subversion at mplayerhq.hu
Sun Jan 2 12:49:48 CET 2011


Author: diego
Date: Sun Jan  2 12:49:48 2011
New Revision: 32744

Log:
Simplify vector declarations and fast inttypes check with statement_check().

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sat Jan  1 20:39:19 2011	(r32743)
+++ trunk/configure	Sun Jan  2 12:49:48 2011	(r32744)
@@ -2778,11 +2778,8 @@ if ppc && ( test "$_altivec" = yes || te
     echores "$_altivec_gcc_flags"
 
     # check if the compiler supports braces for vector declarations
-    cat > $TMPC << EOF
-$inc_altivec_h
-int main(void) { (vector int) {1}; return 0; }
-EOF
-    cc_check $_altivec_gcc_flags || die "You need a compiler that supports {} in AltiVec vector declarations."
+    statement_check "$inc_altivec_h" '(vector int) {1}' $_altivec_gcc_flags ||
+        die "You need a compiler that supports {} in AltiVec vector declarations."
 
     # Disable runtime cpudetection if we cannot generate AltiVec code or
     # AltiVec is disabled by the user.
@@ -3395,12 +3392,8 @@ fi
 
 
 echocheck "int_fastXY_t in inttypes.h"
-cat > $TMPC << EOF
-#include <inttypes.h>
-int main(void) { volatile int_fast16_t v = 0; return v; }
-EOF
 _fast_inttypes=no
-cc_check && _fast_inttypes=yes
+statement_check "inttypes.h" 'volatile int_fast16_t v = 0' && _fast_inttypes=yes
 if test "$_fast_inttypes" = no ; then
   def_fast_inttypes='
     typedef signed char int_fast8_t;


More information about the MPlayer-cvslog mailing list