mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 14:40:22 +00:00
configure.ac: added all to --enable-object
The options cannot be repeated for configure, like `--enable-object=a --enable-object=b` to enable both a and b (`--enable-object=a,b` is needed). This may be sometimes impractical, when the command-line args are appended incrementally. As a workaround, at least `--enable-output=all` is added. As it is not a solution, it still (with `--disable-all`) removes most unneeded code (with dependencies), while compiling all the non-essential objs without deps.
This commit is contained in:
@@ -3263,15 +3263,17 @@ AC_SUBST(REFLECTOR_REQ)
|
||||
# Non-essential objs
|
||||
# ------------------------------------------------------------------------------
|
||||
AC_ARG_ENABLE(object,
|
||||
AS_HELP_STRING([--enable-object], [enable specific object(s) compilation (typically when disabled non-essential features with --disable-all; comma-separated)]),
|
||||
AS_HELP_STRING([--enable-object], [enable specific object(s) ]
|
||||
[compilation (typically when disabled non-essential features with ]
|
||||
[--disable-all; comma-separated, "all" to enable all)]),
|
||||
[req_files=$enableval],
|
||||
[req_files=])
|
||||
|
||||
if test -n "$req_files"; then
|
||||
if test -n "$req_files" && test "$req_files" != all; then
|
||||
OBJS="$OBJS $(echo "$req_files" | sed 's/,/ /g')"
|
||||
fi
|
||||
|
||||
if test "$build_default" != no; then
|
||||
if test "$build_default" != no || test $req_files = all; then
|
||||
ULTRAGRID_OBJS="$ULTRAGRID_OBJS
|
||||
src/audio/playback/dump.o
|
||||
src/audio/playback/mixer.o
|
||||
|
||||
Reference in New Issue
Block a user