summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2018-03-08 15:42:32 +0100
committerDiego Biurrun <diego@biurrun.de>2018-03-26 18:59:44 +0200
commit434b44cd6fb4bb9a2bf2bb29ef55ce1a315314b8 (patch)
tree1d5f78d94bc444cabf760a9fb4067e6d1818ff90 /configure
parent8c7554e6a9b126bd6ee5bf80dae9e11e056db2f1 (diff)
configure: Simplify vararg check
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files 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"
}