From 3250003c79e24f79d00603b67b2b9543fbd10e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sat, 12 Jul 2008 20:55:04 +0000 Subject: [PATCH] configure: allow !foo as argument to enabled/disabled and *_deps lists Originally committed as revision 14194 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 040d921840..c6ff364217 100755 --- a/configure +++ b/configure @@ -269,11 +269,13 @@ disable(){ } enabled(){ - eval test "x\$$1" = "xyes" + test "${1#!}" = "$1" && op== || op=!= + eval test "x\$${1#!}" $op "xyes" } disabled(){ - eval test "x\$$1" = "xno" + test "${1#!}" = "$1" && op== || op=!= + eval test "x\$${1#!}" $op "xno" } enabled_all(){ @@ -317,6 +319,7 @@ is_in(){ check_deps(){ for cfg; do + cfg="${cfg#!}" enabled ${cfg}_checking && die "Circular dependency for $cfg." disabled ${cfg}_checking && continue enable ${cfg}_checking