From 31a53ab34e22fe1eec902f79ec1f19ab828a7a0c Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Fri, 20 Oct 2017 04:43:13 +0200 Subject: configure: Add check_as() helper function to simplify some expressions --- configure | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 5e350983dd..d59fc6fd1a 100755 --- a/configure +++ b/configure @@ -811,6 +811,17 @@ check_cmd(){ test_cmd $@ && enable $cmd } +check_as(){ + log check_as "$@" + name=$1 + code=$2 + shift 2 + disable $name + test_as $@ <