summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-02-17 15:39:27 +0000
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-02-17 15:39:35 +0000
commite8ebcb0034c5d4e5df8ff407a5c28d8c53823236 (patch)
tree5fa61d86c4f80053837b9682ab20eab4eba72bc7 /configure
parent3bff005be8ea213c23160ee0ac286634a80a10e1 (diff)
parenta2bb771a3cded8a05137c0effb34f61a2bc78e22 (diff)
Merge commit 'a2bb771a3cded8a05137c0effb34f61a2bc78e22'
* commit 'a2bb771a3cded8a05137c0effb34f61a2bc78e22': configure: Restore the --enable-everything behaviour Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure b/configure
index 6562e70a97..40821e15b7 100755
--- a/configure
+++ b/configure
@@ -3047,10 +3047,7 @@ cpu="generic"
intrinsics="none"
# configurable options
-enable $PROGRAM_LIST
enable $DOCUMENT_LIST
-enable $EXAMPLE_LIST
-enable $(filter_out avresample $LIBRARY_LIST)
enable stripping
enable asm
@@ -3238,6 +3235,7 @@ for opt do
;;
--disable-everything)
map 'eval disable \${$(toupper ${v%s})_LIST}' $COMPONENT_LIST
+ enable_deep_force $EXAMPLE_LIST $(filter_out avresample $LIBRARY_LIST) $PROGRAM_LIST
;;
--disable-all)
map 'eval disable \${$(toupper ${v%s})_LIST}' $COMPONENT_LIST
@@ -3264,10 +3262,11 @@ 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
+ test $action = enable && action="enable_deep_force"
eval $action \$$(toupper ${option%s})_LIST
elif is_in $option $CMDLINE_SELECT; then
+ test $action = enable && action="request"
$action $option
else
die_unknown $opt
@@ -3304,6 +3303,10 @@ done
disabled logging && logfile=/dev/null
+# Enable the default components if not disabled explicitly
+
+enable_weak $EXAMPLE_LIST $(filter_out avresample $LIBRARY_LIST) $PROGRAM_LIST
+
# Disable all the library-specific components if the library itself
# is disabled, see AVCODEC_LIST and following _LIST variables.