[FFmpeg-cvslog] configure: Simplify vararg check

Diego Biurrun git at videolan.org
Fri Mar 30 03:31:08 EEST 2018


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Mar  8 15:42:32 2018 +0100| [434b44cd6fb4bb9a2bf2bb29ef55ce1a315314b8] | committer: Diego Biurrun

configure: Simplify vararg check

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=434b44cd6fb4bb9a2bf2bb29ef55ce1a315314b8
---

 configure | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index 4e6b880b14..4128ce3c86 100755
--- a/configure
+++ b/configure
@@ -4240,12 +4240,11 @@ od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
 check_gas() {
     log "check_gas using '$as' as AS"
     # :vararg is used on aarch64, arm and ppc altivec
-    test_as <<EOF || return 1
+    check_as vararg "
 .macro m n, y:vararg=0
 \n: .int \y
 .endm
-m x
-EOF
+m x" || return 1
     # .altmacro is only used in arm asm
     ! enabled arm || check_as gnu_as ".altmacro"
 }



More information about the ffmpeg-cvslog mailing list