Skip to contentSkip to conversation

configure: fix formatting of --disable-lz4 and --enable-comp-stub

PATCH In review Frank Lichtenheld 2 participants 2 messages Feb 6, 2023 – Feb 25, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: fix formatting of --disable-lz4 and --enable-comp-stub

Make consistent with the other options.

---
 configure.ac | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

A small issue I noticed when staring at configure.ac for "enable DCO by default" patch.

configure.ac +6 -4
index acfa4bc1..7ce4c826 100644
@@ -67,14 +67,16 @@ AC_ARG_ENABLE(
 	[enable_lzo="yes"]
 )
 
-AC_ARG_ENABLE(lz4,
-	[  --disable-lz4           Disable LZ4 compression support],
+AC_ARG_ENABLE(
+	[lz4],
+	[AS_HELP_STRING([--disable-lz4], [disable LZ4 compression support @<:@default=yes@:>@])],
 	[enable_lz4="$enableval"],
 	[enable_lz4="yes"]
 )
 
-AC_ARG_ENABLE(comp-stub,
-	[  --enable-comp-stub      Don't compile compression support but still allow limited interoperability with compression-enabled peers],
+AC_ARG_ENABLE(
+	[comp-stub],
+	[AS_HELP_STRING([--enable-comp-stub], [disable compression support but still allow limited interoperability with compression-enabled peers @<:@default=no@:>@])],
 	[enable_comp_stub="$enableval"],
 	[enable_comp_stub="no"]
 )
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw

"Makes sense".

Before:

  --disable-lzo           disable LZO compression support [default=yes]
  --disable-lz4           Disable LZ4 compression support
  --enable-comp-stub      Don't compile compression support but still allow limited interoperability with compression-enabled peers

After:

  --disable-lzo           disable LZO compression support [default=yes]
  --disable-lz4           disable LZ4 compression support [default=yes]
  --enable-comp-stub      disable compression support but still allow limited

interoperability with compression-enabled peers

("default=yes" is still confusing - does that mean "enabled by default" or "disabled=yes by default"?, but that seems to be "the autoconf way")

Your patch has been applied to the master and release/2.6 branch.

commit 24e1d8ff87b189247d56261a9497b1f509b286df (master) commit 91da6b9463745635b75df171678ab54b5dcdb0de (release/2.6)

Author: Frank Lichtenheld
Date:   Mon Feb 6 14:08:46 2023 +0100
     configure: fix formatting of --disable-lz4 and --enable-comp-stub

     Signed-off-by: Frank Lichtenheld <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg26156.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering