aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-03-05 19:56:54 +0000
committerMåns Rullgård <mans@mansr.com>2008-03-05 19:56:54 +0000
commite3773a55bed603f648087abdb300f003d7e7fb46 (patch)
treeced22ff7e17103d0d725cd4e7106103e76988e43 /configure
parentc2b0b21d15debf4828c4d7b619b4c26771f0b18d (diff)
downloadffmpeg-e3773a55bed603f648087abdb300f003d7e7fb46.tar.gz
simplify processing of some --disable-* options
Originally committed as revision 12342 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure25
1 files changed, 7 insertions, 18 deletions
diff --git a/configure b/configure
index 3aebfe89e0..ad127f4f2b 100755
--- a/configure
+++ b/configure
@@ -1033,22 +1033,6 @@ for opt do
;;
--disable-strip) disable dostrip
;;
- --disable-encoders) disable $ENCODER_LIST
- ;;
- --disable-decoders) disable $DECODER_LIST
- ;;
- --disable-muxers) disable $MUXER_LIST
- ;;
- --disable-filters) disable $FILTER_LIST
- ;;
- --disable-demuxers) disable $DEMUXER_LIST
- ;;
- --disable-parsers) disable $PARSER_LIST
- ;;
- --disable-bsfs) disable $BSF_LIST
- ;;
- --disable-protocols) disable $PROTOCOL_LIST
- ;;
--disable-devices) disable $INDEV_LIST $OUTDEV_LIST
;;
--enable-debug=*) debuglevel="$optval"
@@ -1062,8 +1046,13 @@ for opt do
;;
--enable-?*|--disable-?*)
eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'`
- echo "$CMDLINE_SELECT" | grep -q "^ *$option\$" || die_unknown $opt
- $action $option
+ if is_in $option $COMPONENT_LIST; then
+ eval $action \$$(toupper ${option%s})_LIST
+ elif is_in $option $CMDLINE_SELECT; then
+ $action $option
+ else
+ die_unknown $opt
+ fi
;;
--list-*)
NAME="${opt#--list-}"