summaryrefslogtreecommitdiff
path: root/m4/m4.m4
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2007-10-01 16:22:54 -0600
committerEric Blake <ebb9@byu.net>2007-10-01 16:22:54 -0600
commit83294abba1e858e99b558a541b13d4eba53e5daa (patch)
tree1025bc07a005447010a72791d1ce96d4965dd757 /m4/m4.m4
parent19a706a7ed196727075cf5642f6d7b24f24748ed (diff)
downloadautoconf-83294abba1e858e99b558a541b13d4eba53e5daa.tar.gz
Once again, reject IRIX m4.
* m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU implementations that ignore --trace. * configure: Regenerate. Reported by Ralf Wildenhues. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'm4/m4.m4')
-rw-r--r--m4/m4.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/m4.m4 b/m4/m4.m4
index 70f30767..711bd58a 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])])])