OSDN Git Service

Simplify altivec.h test.
authorDiego Biurrun <diego@biurrun.de>
Fri, 30 May 2008 10:12:56 +0000 (10:12 +0000)
committerDiego Biurrun <diego@biurrun.de>
Fri, 30 May 2008 10:12:56 +0000 (10:12 +0000)
Originally committed as revision 13554 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 2b3bd1c..c50e92b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1531,13 +1531,10 @@ fi
 # AltiVec flags: The FSF version of GCC differs from the Apple version
 if enabled altivec; then
     check_cflags -maltivec -mabi=altivec && \
-        check_header altivec.h || \
+        { check_header altivec.h && inc_altivec_h="#include <altivec.h>" ; } || \
         check_cflags -faltivec
 
     # check if our compiler supports Motorola AltiVec C API
-    enabled altivec_h &&
-        inc_altivec_h="#include <altivec.h>" ||
-        inc_altivec_h=
     check_cc <<EOF || disable altivec
 $inc_altivec_h
 int main(void) {