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
... | ... |
@@ -1390,10 +1390,11 @@ for opt do |
1390 | 1390 |
--enable-debug=*) debuglevel="$optval" |
1391 | 1391 |
;; |
1392 | 1392 |
--enable-*=*|--disable-*=*) |
1393 |
- eval $(echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/') |
|
1393 |
+ eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/') |
|
1394 | 1394 |
is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt" |
1395 | 1395 |
eval list=\$$(toupper $thing)_LIST |
1396 |
- $action $(filter "${optval}_${thing}" $list) |
|
1396 |
+ name=$(echo "${optval}" | sed "s/,/_${thing}|/g")_${thing} |
|
1397 |
+ $action $(filter "$name" $list) |
|
1397 | 1398 |
;; |
1398 | 1399 |
--enable-?*|--disable-?*) |
1399 | 1400 |
eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g') |