[m-rev.] diff: fix bug #287 - configure requires m4

Julien Fischer jfischer at opturion.com
Wed Jun 5 15:59:47 AEST 2013


Fix bug #287: remove configure script dependency on m4.

configure.ac:
 	Use sed to create the test version of mdbrc rather than
 	m4.  (The configure script already assumed the presence
 	of sed.)

Julien.

diff --git a/configure.ac b/configure.ac
index 7b3a4d5..67489a9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5344,9 +5344,9 @@ AC_SUBST(CSHPATH)

  test_mdbrc=tests/mdbrc

-m4 -DDEFAULT_MERCURY_DEBUGGER_INIT_DIR=TESTS_MDB_INIT_DIR  \
-    -DDEFAULT_MERCURY_DEBUGGER_DOC=TESTS_MDB_DOC \
-    "`pwd`"/scripts/mdbrc.in > $test_mdbrc.in
+cat "`pwd`"/scripts/mdbrc.in | sed \
+    -e 's/DEFAULT_MERCURY_DEBUGGER_INIT_DIR/TESTS_MDB_INIT_DIR/g' \
+    -e 's/DEFAULT_MERCURY_DEBUGGER_DOC/TESTS_MDB_DOC/g' > $test_mdbrc.in

  TESTS_MDB_INIT_DIR="`pwd`"/scripts
  TESTS_MDB_DOC="`pwd`"/doc/mdb_doc



More information about the reviews mailing list