Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index


./configure fails on my system because configure.ac does not work when /bin/sh is not Bash but a POSIX shell such as dash.

Please review the attached patch.
diff --git a/tmp/configure.ac b/tmp/portable_configure.ac
index 101050c..f9c5d9f 100644
--- a/tmp/configure.ac
+++ b/tmp/portable_configure.ac
@@ -168,7 +168,7 @@ if test "$enable_release_build" = "" -o "$enable_release_build" = "no"; then
 fi
 AC_MSG_RESULT([$PRODUCTNAME])
 AC_SUBST(PRODUCTNAME)
-PRODUCTNAME_WITHOUT_SPACES=${PRODUCTNAME// /}
+PRODUCTNAME_WITHOUT_SPACES="$(printf '%s' "$PRODUCTNAME" | tr -d '[:space:]')"
 AC_SUBST(PRODUCTNAME_WITHOUT_SPACES)
 
 dnl ===================================================================

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.