Commit d778020d authored by mru's avatar mru

configure: add foo_select facility

If an option 'foo' is enabled, all options listed in foo_select
are automatically enabled, unless explicitly disabled.  In the
latter case, foo is also disabled.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15684 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4be5e145
...@@ -336,17 +336,20 @@ check_deps(){ ...@@ -336,17 +336,20 @@ check_deps(){
eval dep_all="\$${cfg}_deps" eval dep_all="\$${cfg}_deps"
eval dep_any="\$${cfg}_deps_any" eval dep_any="\$${cfg}_deps_any"
eval dep_sel="\$${cfg}_select"
pushvar cfg dep_all dep_any pushvar cfg dep_all dep_any dep_sel
check_deps $dep_all $dep_any check_deps $dep_all $dep_any $dep_sel
popvar cfg dep_all dep_any popvar cfg dep_all dep_any dep_sel
enabled_all $dep_all || disable $cfg enabled_all $dep_all || disable $cfg
enabled_any $dep_any || disable $cfg enabled_any $dep_any || disable $cfg
disabled_any $dep_sel && disable $cfg
if enabled $cfg; then if enabled $cfg; then
eval dep_extralibs="\$${cfg}_extralibs" eval dep_extralibs="\$${cfg}_extralibs"
test -n "$dep_extralibs" && add_extralibs $dep_extralibs test -n "$dep_extralibs" && add_extralibs $dep_extralibs
enable $dep_sel
fi fi
disable ${cfg}_checking disable ${cfg}_checking
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment