From 15b8d236ca889082b2f272bde3190511ce790be8 Mon Sep 17 00:00:00 2001 From: Noah Slater Date: Sun, 15 Jun 2008 18:39:23 +0000 Subject: added check for gm4 git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@667989 13f79535-47bb-0310-9956-ffa450edef68 --- bootstrap | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bootstrap b/bootstrap index eebc0b86..02699ad9 100755 --- a/bootstrap +++ b/bootstrap @@ -35,6 +35,8 @@ AUTOCONF_EXECUTABLE=`which autoconf || true` AUTOHEADER_EXECUTABLE=`which autoheader || true` AUTOMAKE_EXECUTABLE=`which automake || true` GLIBTOOLIZE_EXECUTABLE=`which glibtoolize || true` +M4_EXECUTABLE=`which m4 || true` +GM4_EXECUTABLE=`which gm4 || true` LIBTOOLIZE_EXECUTABLE=`which libtoolize || true` SVN_EXECUTABLE=`which svn || true` @@ -48,7 +50,13 @@ extract_configuration_variable () { echo "changequote(\`[', \`]')" > $temporary_file sed "s/m4_//" < $ACINCLUDE_IN_FILE >> $temporary_file echo $variable_name >> $temporary_file - m4 $temporary_file | grep -v "^$" + if -n "$M4_EXECUTABLE"; then + $M4_EXECUTABLE $temporary_file | grep -v "^$" + else + if -n "$GM4_EXECUTABLE"; then + $GM4_EXECUTABLE $temporary_file | grep -v "^$" + fi + fi rm -f $temporary_file } -- cgit v1.2.3