diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-02-17 15:27:50 +0000 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-02-17 15:36:51 +0000 |
commit | 470bfab470893d45328f4e6e25d60b89c9af1abe (patch) | |
tree | e6ddddad4712bca80aaf3939d0703bcdf31386eb /configure | |
parent | f97ee815cf25580cbb9d6bed304d9c22895f7074 (diff) | |
parent | 21c750f240b9d0c41a258d1adee2d9f75ff378b6 (diff) | |
download | ffmpeg-470bfab470893d45328f4e6e25d60b89c9af1abe.tar.gz |
Merge commit '21c750f240b9d0c41a258d1adee2d9f75ff378b6'
* commit '21c750f240b9d0c41a258d1adee2d9f75ff378b6':
configure: Use `require` for the non-component options
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -581,7 +581,7 @@ enable(){ check_requested() { for var; do - eval test "x\$${var#!}_requested" = "xyes" && die "${var#*_} ${var/_*} cannot be enabled" + eval test "x\$${var#!}_requested" = "xyes" && die "${var%%_*} cannot be enabled" done } @@ -641,7 +641,7 @@ enable_deep_weak(){ do_enable_deep_force(){ for var; do enabled $var && continue - eval sel="\$${var}_select\ \$${var}_suggest\ \$${var}_select_any" + eval sel="\$${var}_deps\ \$${var}_deps_any\ \$${var}_select\ \$${var}_suggest\ \$${var}_select_any" pushvar var enable_deep_force $sel popvar var @@ -650,14 +650,18 @@ do_enable_deep_force(){ enable_deep_force(){ do_enable_deep_force $* - enable $* + for var; do + is_in $var $ALL_COMPONENTS $COMPONENT_LIST $LIBRARY_LIST && enable $var + done } request(){ + disable $* # force the refresh of the dependencies for var; do enable ${var}_requested done enable_deep_force $* + enable $* } enabled(){ @@ -3260,6 +3264,7 @@ for opt do ;; --enable-?*|--disable-?*) eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g') + test $action = enable && action="request" if is_in $option $COMPONENT_LIST; then eval $action \$$(toupper ${option%s})_LIST elif is_in $option $CMDLINE_SELECT; then |