diff options
author | Måns Rullgård <mans@mansr.com> | 2007-02-14 00:12:27 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-02-14 00:12:27 +0000 |
commit | ac7030a43790ac5354341a42cd9bfe823c84a28a (patch) | |
tree | abc5fc60848da809079c296b0f4a70acf3e98180 | |
parent | dd9bfb4666a6d3a8245066c9dfb10d9336c14c27 (diff) | |
download | ffmpeg-ac7030a43790ac5354341a42cd9bfe823c84a28a.tar.gz |
combine handling of --enable/disable-encoder/decoder/muxer/demuxer/parser
Originally committed as revision 7971 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 27 |
1 files changed, 7 insertions, 20 deletions
@@ -1044,36 +1044,23 @@ for opt do ;; --disable-strip) dostrip="no" ;; - --enable-encoder=*) enable ${optval}_encoder - ;; - --enable-decoder=*) enable ${optval}_decoder - ;; - --disable-encoder=*) disable ${optval}_encoder - ;; - --disable-decoder=*) disable ${optval}_decoder - ;; --disable-encoders) disable $ENCODER_LIST ;; --disable-decoders) disable $DECODER_LIST ;; - --enable-muxer=*) enable ${optval}_muxer - ;; - --disable-muxer=*) disable ${optval}_muxer - ;; --disable-muxers) disable $MUXER_LIST ;; - --enable-demuxer=*) enable ${optval}_demuxer - ;; - --disable-demuxer=*) disable ${optval}_demuxer - ;; --disable-demuxers) disable $DEMUXER_LIST ;; - --enable-parser=*) enable ${optval}_parser - ;; - --disable-parser=*) disable ${optval}_parser - ;; --disable-parsers) disable $PARSER_LIST ;; + --enable-*=*|--disable-*=*) + eval `echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/'` + case "$thing" in + encoder|decoder|muxer|demuxer|parser) $action ${optval}_${thing} ;; + *) die_unknown "$opt" ;; + esac + ;; --enable-?*|--disable-?*) eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'` echo "$CMDLINE_SELECT" | grep -q "^ *$option\$" || die_unknown $opt |