[PPL-devel] [GIT] ppl/ppl(master): Escape backslashes in PPL_CONFIGURE_OPTIONS.
Roberto Bagnara
bagnara at cs.unipr.it
Tue Mar 27 22:18:32 CEST 2018
Module: ppl/ppl
Branch: master
Commit: 2ad4d2017354a3331d1a6bc015c0be76c1a262a0
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=2ad4d2017354a3331d1a6bc015c0be76c1a262a0
Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date: Tue Mar 27 22:17:33 2018 +0200
Escape backslashes in PPL_CONFIGURE_OPTIONS.
---
configure.ac | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 3380534..6d62c66 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,10 +68,6 @@ AC_SUBST(PPL_VERSION_MINOR)
AC_SUBST(PPL_VERSION_REVISION)
AC_SUBST(PPL_VERSION_BETA)
-AC_DEFINE_UNQUOTED(PPL_CONFIGURE_OPTIONS, "$ac_configure_args", [This contains the options with which `configure' was invoked.])
-PPL_CONFIGURE_OPTIONS="\"$ac_configure_args\""
-AC_SUBST(CONFIGURE_OPTIONS)
-
# Generate a configuration header file.
AC_CONFIG_HEADER([config.h])
@@ -291,6 +287,11 @@ AC_PROG_CXXCPP
AC_PROG_MAKE_SET
AC_PROG_INSTALL
+AC_DEFINE_UNQUOTED(PPL_CONFIGURE_OPTIONS, "`echo $ac_configure_args | $SED -e 's/\\\\/\\\\\\\\/g'`", [This contains the options with which `configure' was invoked.])
+PPL_CONFIGURE_OPTIONS="\"$ac_configure_args\""
+AC_SUBST(CONFIGURE_OPTIONS)
+
+
# Compilation flags.
COMP_FLAGS=""
More information about the PPL-devel
mailing list