Originally committed as revision 14194 to svn://svn.ffmpeg.org/ffmpeg/trunk
Måns Rullgård authored on 2008/07/13 05:55:04... | ... |
@@ -269,11 +269,13 @@ disable(){ |
269 | 269 |
} |
270 | 270 |
|
271 | 271 |
enabled(){ |
272 |
- eval test "x\$$1" = "xyes" |
|
272 |
+ test "${1#!}" = "$1" && op== || op=!= |
|
273 |
+ eval test "x\$${1#!}" $op "xyes" |
|
273 | 274 |
} |
274 | 275 |
|
275 | 276 |
disabled(){ |
276 |
- eval test "x\$$1" = "xno" |
|
277 |
+ test "${1#!}" = "$1" && op== || op=!= |
|
278 |
+ eval test "x\$${1#!}" $op "xno" |
|
277 | 279 |
} |
278 | 280 |
|
279 | 281 |
enabled_all(){ |
... | ... |
@@ -317,6 +319,7 @@ is_in(){ |
317 | 317 |
|
318 | 318 |
check_deps(){ |
319 | 319 |
for cfg; do |
320 |
+ cfg="${cfg#!}" |
|
320 | 321 |
enabled ${cfg}_checking && die "Circular dependency for $cfg." |
321 | 322 |
disabled ${cfg}_checking && continue |
322 | 323 |
enable ${cfg}_checking |