Skip to contentSkip to conversation

autoconf: replace non-portable += syntax

PATCH In review Sertonix 1 participant 2 messages May 24, 2025

Subsystems (2)
lore
Share & tools
lore

Sertonix

author
#0 lore raw

PATCH 1/1 autoconf: replace non-portable += syntax

Behaves exactly the same and also works in shells which don't support +=

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index d8205e80..eb542581 100644
@@ -678,7 +678,7 @@ AC_DEFUN([CHECK_CCSUPPORT], [
   AC_MSG_CHECKING([whether CC supports $1])
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
     [AC_MSG_RESULT([yes])]
-    [$2+=$1],
+    [AS_VAR_APPEND([$2],["$1"])],
     [AC_MSG_RESULT([no])]
   )
   CFLAGS="$my_save_cflags"
Signature · 1 line
2.49.0
author
#1 lore raw

I forgot to mention that this patch is for nfs-utils