couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nsla...@apache.org
Subject svn commit: r667989 - /incubator/couchdb/trunk/bootstrap
Date Sun, 15 Jun 2008 18:39:23 GMT
Author: nslater
Date: Sun Jun 15 11:39:23 2008
New Revision: 667989

URL: http://svn.apache.org/viewvc?rev=667989&view=rev
Log:
added check for gm4

Modified:
    incubator/couchdb/trunk/bootstrap

Modified: incubator/couchdb/trunk/bootstrap
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/bootstrap?rev=667989&r1=667988&r2=667989&view=diff
==============================================================================
--- incubator/couchdb/trunk/bootstrap (original)
+++ incubator/couchdb/trunk/bootstrap Sun Jun 15 11:39:23 2008
@@ -35,6 +35,8 @@
 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 @@
     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
 }
 



Mime
View raw message