From 54074d5b92b7bd3db7bacaff041fc3fac1d98c8a Mon Sep 17 00:00:00 2001 From: Alan Jenkins Date: Sat, 24 Oct 2009 13:56:53 +0100 Subject: ax_enable_builddir: improve quality of generated top-level Makefile The top-level Makefile is generated by mangling rules, "a: b". We already avoid mangling "a := b". But we should also exclude "a = :". Apparently this was causing unbalanced parenthesis errors on some systems. Reported-by: Mike Frysinger Signed-off-by: Alan Jenkins --- m4/ax_enable_builddir.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'm4') diff --git a/m4/ax_enable_builddir.m4 b/m4/ax_enable_builddir.m4 index 48bdfb2..add9964 100644 --- a/m4/ax_enable_builddir.m4 +++ b/m4/ax_enable_builddir.m4 @@ -183,8 +183,9 @@ s/^srcdir *=.*/srcdir = ./ s/^top_srcdir *=.*/top_srcdir = ./ /[[:=]]/!d /^\\./d -dnl Now handle rules (i.e. lines containing /:/ but not /:=/). -/:=/b +dnl Now handle rules (i.e. lines containing ":" but not " = "). +/ = /b +/ .= /b /:/!b s/:.*/:/ s/ / /g -- cgit v1.2.1