configure: allow bulk-disabled things to be re-enabled by dependents
authorMåns Rullgård <mans@mansr.com>
Sun, 12 Jul 2009 00:17:42 +0000 (00:17 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 12 Jul 2009 00:17:42 +0000 (00:17 +0000)
Originally committed as revision 19401 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index ad9e8c1..1bd8dc2 100755 (executable)
--- a/configure
+++ b/configure
@@ -1347,6 +1347,7 @@ for opt do
     --enable-?*|--disable-?*)
     eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g')
     if is_in $option $COMPONENT_LIST; then
+        test $action = disable && action=unset
         eval $action \$$(toupper ${option%s})_LIST
     elif is_in $option $CMDLINE_SELECT; then
         $action $option