[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
detect IRIX m4
From: |
Eric Blake |
Subject: |
detect IRIX m4 |
Date: |
Mon, 1 Oct 2007 22:24:55 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Hi Ralf,
In response to:
http://lists.gnu.org/archive/html/bug-autoconf/2007-09/msg00028.html
I hope this makes the difference. I installed it as part of:
http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commit;h=83294ab
diff --git a/m4/m4.m4 b/m4/m4.m4
index 70f3076..711bd58 100644
--- a/m4/m4.m4
+++ b/m4/m4.m4
@@ -17,7 +17,9 @@ AC_DEFUN([AC_PROG_GNU_M4],
AC_CACHE_CHECK([for GNU M4 that supports accurate traces], [ac_cv_path_M4],
[AC_PATH_PROGS_FEATURE_CHECK([M4], [m4 gm4 gnum4],
[dnl Creative quoting here to avoid raw dnl and ifdef in configure.
- test -z "`echo if'def(mac,bug)d'nl | $ac_path_M4 --trace=mac 2>&1`" \
+ # Root out GNU M4 1.4.4, as well as non-GNU m4 that ignore --trace.
+ ac_snippet=change'quote(<,>)in''dir(<if''def>,mac,bug)d'nl
+ test -z "`echo $ac_snippet | $ac_path_M4 --trace=mac 2>&1`" \
&& ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:],
[AC_MSG_ERROR([no acceptable m4 could be found in \$PATH.
GNU M4 1.4.5 or later is required; 1.4.8 is recommended])])])
- detect IRIX m4,
Eric Blake <=