Tue Oct 21 00:39:44 1997 Tom Tromey <tromey@cygnus.com>
+ * aclocal.in (scan_m4_files): If macro recognized, &search will
+ return 1.
+ (scan_configure): If AM_ macro not found, give error.
+
* m4/sanity.m4: If `ls' completely fails, die. From Jim
Meyering.
* *all* installed scripts should support --version, --help
-* have aclocal diagnose unrecognized AM_ macros
-
For now I guess I'll just have automake give an error if it encounters
non-C source in a libtool library specification.
}
# Search for things we know about. The "search" sub is
- # constructed dynamically, above.
- &search;
+ # constructed dynamically by scan_m4_files.
+ if (! &search && /(AM_[A-Z_]+)/)
+ {
+ # Macro not found, but AM_ prefix found.
+ warn "aclocal: configure.in: $.: macro \`$1' not found in library\n";
+ $exit_status = 1;
+ }
}
close (CONFIGURE);
{
# EXPR is a regexp matching the name of the macro.
($expr = $key) =~ s/(\W)/\\$1/g;
- $search .= "&add_macro ('" . $key . "') if /" . $expr . "/;\n";
+ $search .= ("if (/" . $expr "/) { & add_macro (" . $key
+ . "); return 1; }\n");
}
+ $search .= "return 0;\n";
eval 'sub search { ' . $search . '};';
die "internal error: $@\n search is $search " if $@;
}
+Tue Oct 21 00:46:24 1997 Tom Tromey <tromey@cygnus.com>
+
+ * ammissing.test: New file.
+
Sun Sep 28 17:19:52 1997 Tom Tromey <tromey@cygnus.com>
* cxxnoc.test: Changed to reflect MKDEP change.
defun2.test yaccpp.test texinfo3.test texinfo4.test tagsub.test \
cxxlibobj.test seenc.test cygwin32.test lisp.test stamph.test \
ldadd.test version2.test conf2.test cond.test cond2.test xsource.test \
-libobj6.test depend3.test output5.test
+libobj6.test depend3.test output5.test ammissing.test
EXTRA_DIST = defs $(TESTS)
defun2.test yaccpp.test texinfo3.test texinfo4.test tagsub.test \
cxxlibobj.test seenc.test cygwin32.test lisp.test stamph.test \
ldadd.test version2.test conf2.test cond.test cond2.test xsource.test \
-libobj6.test depend3.test output5.test
+libobj6.test depend3.test output5.test ammissing.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
--- /dev/null
+#! /bin/sh
+
+# Test to see if aclocal correctly reports missing AM_ macro.
+
+. $srcdir/defs || exit 1
+
+echo AM_ZARDOZ >> configure.in
+
+$ACLOCAL && exit 1
+exit 0