configure.ac |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit b60dfc2928ef9763452c57f06073185456310609
Author:     Thorsten Behrens <thorsten.behr...@allotropia.de>
AuthorDate: Sun Dec 11 00:19:53 2022 +0100
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Sun Dec 11 01:30:50 2022 +0000

    Replace backslashes in config params before usage in cxx files
    
    With cbfac11330882c7d0a817b6c37a08b2ace2b66f4, LOKit tries to pass
    full configure line on via JSON - which, on Windows, might contain
    backslashes and other nasties, so we better try to clean that up here.
    
    Change-Id: I8314783fc6f49e9b2b374d94448ed735de39bf81
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143940
    Tested-by: Jenkins
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>

diff --git a/configure.ac b/configure.ac
index 6b5f50c2490e..ccce0a06b770 100644
--- a/configure.ac
+++ b/configure.ac
@@ -522,7 +522,9 @@ AC_DEFINE_UNQUOTED(LIBO_VERSION_PATCH,$LIBO_VERSION_PATCH)
 LIBO_THIS_YEAR=`date +%Y`
 AC_DEFINE_UNQUOTED(LIBO_THIS_YEAR,$LIBO_THIS_YEAR)
 
-AC_DEFINE_UNQUOTED([BUILDCONFIG],[["$ac_configure_args"]],[Options passed to 
configure script])
+# replace backslashes, to get a valid c++ string
+config_args=$(echo $ac_configure_args | tr '\\' '/')
+AC_DEFINE_UNQUOTED([BUILDCONFIG],[["$config_args"]],[Options passed to 
configure script])
 
 dnl ===================================================================
 dnl Product version

Reply via email to