提交 3250003c 编写于 作者: M Måns Rullgård

configure: allow !foo as argument to enabled/disabled and *_deps lists

Originally committed as revision 14194 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 dd57251c
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册