From 83d5a90b5b9208b0fbef207b532192d85cdc2fa2 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 16 May 2024 10:55:25 +0200 Subject: [PATCH] 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. --- configure.ac | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 7590ac00f..b5f39f89f 100644 --- a/configure.ac +++ b/configure.ac @@ -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