From a2cafe20d9993bda129a2ac41e84f975a2a787bd Mon Sep 17 00:00:00 2001 From: BalkanMadman Date: Sun, 5 May 2024 01:06:51 +0300 Subject: configure.ac: Do not use '+=' to set CFLAGS to be POSIX-compliant The '+=' operator used in configure.ac to append to the CFLAGS variable is present in Bash, but not the POSIX sh specification. Therefore, the aforementioned part of the configure.ac (from which the configure script is obtained) might not run correctly under non Bash-like POSIX compliant shells (dash - default shell on Debian, ash, etc). Bug: https://bugs.gentoo.org/924200 Signed-off-by: Zurab Kvachadze --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c51d53a..4dd49f1 100644 --- a/configure.ac +++ b/configure.ac @@ -40,7 +40,7 @@ if test "x$have_limd" = "xyes"; then AC_SUBST(libimobiledevice_CFLAGS) AC_SUBST(libimobiledevice_LIBS) CACHED_CFLAGS="$CFLAGS" - CFLAGS+=" $libimobiledevice_CFLAGS" + CFLAGS="$CFLAGS $libimobiledevice_CFLAGS" AC_CACHE_CHECK(for enum idevice_connection_type, ac_cv_enum_idevice_connection_type, AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ #include -- cgit v1.1-32-gdbae