From 81a5cdde80c1b5eb78a266a9a0f16706640425f8 Mon Sep 17 00:00:00 2001
From: Diego Biurrun <diego@biurrun.de>
Date: Fri, 30 May 2008 10:12:56 +0000
Subject: [PATCH] Simplify altivec.h test.

Originally committed as revision 13554 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/configure b/configure
index 2b3bd1c16a9..c50e92bf9fd 100755
--- 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) {
-- 
GitLab