This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=53aa6bca8398c7615511f280bdf495e36e6bdb1e commit 53aa6bca8398c7615511f280bdf495e36e6bdb1e Author: Guillem Jover <[email protected]> AuthorDate: Tue Dec 21 17:07:14 2021 +0100 build: Support compression library names with dashes We need to call AS_TR_SH for any variable name that might end up containing the compression library name with a dash. We were doing this for the CPP macros, but not for the shell ones. --- m4/dpkg-libs.m4 | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/m4/dpkg-libs.m4 b/m4/dpkg-libs.m4 index 6159199a7..f5c90c4d6 100644 --- a/m4/dpkg-libs.m4 +++ b/m4/dpkg-libs.m4 @@ -40,27 +40,27 @@ AC_DEFUN([DPKG_WITH_COMPRESS_LIB], [ AC_ARG_WITH([lib$1], [AS_HELP_STRING([--with-lib$1], [use $1 library for compression and decompression])], - [], [with_lib$1=check]) - have_lib$1="no" - AS_IF([test "x$with_lib$1" != "xno"], [ + [], [AS_TR_SH([with_lib$1])=check]) + AS_TR_SH([have_lib$1])="no" + AS_IF([test "x$AS_TR_SH([with_lib$1])" != "xno"], [ AC_CHECK_LIB([$1], [$3], [ AC_CHECK_HEADER([$2], [ - have_lib$1="yes" + AS_TR_SH([have_lib$1])="yes" ]) ]) - AS_IF([test "x$with_lib$1" != "xno"], [ - AS_IF([test "x$have_lib$1" = "xyes"], [ + AS_IF([test "x$AS_TR_SH([with_lib$1])" != "xno"], [ + AS_IF([test "x$AS_TR_SH([have_lib$1])" = "xyes"], [ AC_DEFINE(AS_TR_CPP([WITH_LIB$1]), 1, [Define to 1 to use $1 library rather than console tool]) - AS_IF([test "x$with_lib$1" = "xstatic"], [ - dpkg_$1_libs="-Wl,-Bstatic -l$1 -Wl,-Bdynamic" + AS_IF([test "x$AS_TR_SH([with_lib$1])" = "xstatic"], [ + AS_TR_SH([dpkg_$1_libs])="-Wl,-Bstatic -l$1 -Wl,-Bdynamic" ], [ - dpkg_$1_libs="-l$1" + AS_TR_SH([dpkg_$1_libs])="-l$1" ]) - AS_TR_CPP([$1_LIBS])="${AS_TR_CPP([$1_LIBS]):+$AS_TR_CPP([$1_LIBS]) }$dpkg_$1_libs" + AS_TR_CPP([$1_LIBS])="${AS_TR_CPP([$1_LIBS]):+$AS_TR_CPP([$1_LIBS]) }$AS_TR_SH([dpkg_$1_libs])" ], [ - AS_IF([test "x$with_lib$1" != "xcheck"], [ + AS_IF([test "x$AS_TR_SH([with_lib$1])" != "xcheck"], [ AC_MSG_FAILURE([lib$1 library or header not found]) ]) ]) -- Dpkg.Org's dpkg

