aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-08-06 15:45:25 +0000
committerMåns Rullgård <mans@mansr.com>2009-08-06 15:45:25 +0000
commit8b93ddc3404fbb818624ac2500cea0bbbb4b932a (patch)
tree6d38639147164343016b1f17f9a995f63ba65354
parentbe8f2501ddad926653553bda8c8e6f062c4d1de2 (diff)
downloadffmpeg-8b93ddc3404fbb818624ac2500cea0bbbb4b932a.tar.gz
configure: allow comma-separated list in --enable/disable-thing=name
The argument to these options is now a comma-separated list of shell patterns, e.g. --disable-decoder='indeo*,rv*' Originally committed as revision 19604 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index 035d938c79..5674b4e3ba 100755
--- a/configure
+++ b/configure
@@ -1390,10 +1390,11 @@ for opt do
--enable-debug=*) debuglevel="$optval"
;;
--enable-*=*|--disable-*=*)
- eval $(echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/')
+ eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/')
is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt"
eval list=\$$(toupper $thing)_LIST
- $action $(filter "${optval}_${thing}" $list)
+ name=$(echo "${optval}" | sed "s/,/_${thing}|/g")_${thing}
+ $action $(filter "$name" $list)
;;
--enable-?*|--disable-?*)
eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g')