+Tue Dec 10 00:41:17 1996 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (AC_SUBST_PATTERN): Check for alphanumeric variable
+ names only. Test subst.test.
+
Mon Dec 9 08:18:42 1996 Tom Tromey <tromey@cygnus.com>
+ * automake.in (file_contents_with_transform): Use ne, not !=, to
+ compare strings. Compare against correct string. From Jim
+ Meyering.
+ (handle_texinfo): Use rm -f to remove info files. From Gord
+ Matzigkeit.
+
* Released 1.1l.
* automake.in (handle_texinfo): Put .ps on @suffixes.
!! documentation (eg new macros)
* copyrights on m4 files, aclocal output
+* should skip AC_DEFUN lines; otherwise scanning aclocal.m4 can
+ mess up somewhat (eg think it sees a macro that is defined but
+ not used)
+
+* should not "handle" AC_SUBST($1), etc. Ooops
+
+* should not put texiname_TEXINFOS into distribution
+ should rename this macro anyway, to foo_texi_DEPENDENCIES
+
For now I guess I'll just have automake give an error if it encounters
non-C source in a libtool library specification.
$AM_PACKAGE_VERSION_PATTERN = "^\\s*\\[?([^]\\s]+)\\]?\\s*\$";
# Note that there is no AC_PATH_TOOL. But we don't really care.
$AC_CHECK_PATTERN = "AC_(CHECK|PATH)_(PROG|PROGS|TOOL)\\(\\[?([^]),]+)";
-$AC_SUBST_PATTERN = "AC_SUBST\\(\\[?([^])]+)";
+# Just check for alphanumeric in AC_SUBST. If you do AC_SUBST(5),
+# then too bad.
+$AC_SUBST_PATTERN = "AC_SUBST\\(\\[?(\w+)";
# Constants to define the "strictness" level.
$FOREIGN = 0;
&pretty_print_rule ("\trm -f", "\t ", @texi_cleans);
$output_rules .= ("\nclean-info:\n\ndistclean-info:\n\n"
. "maintainer-clean-info:\n\t"
- . 'for i in $(INFO_DEPS); do rm `eval echo $$i*`; done'
+ . 'for i in $(INFO_DEPS); do rm -f `eval echo $$i*`; done'
. "\n");
&push_phony_cleaners ('info');
local ($command, $basename) = @_;
local ($file) = $am_dir . '/' . $basename . '.am';
- if ($command ne '' && substr ($command, -1) != '~')
+ if ($command ne '' && substr ($command, -1) ne ';')
{
die "automake: programming error in file_contents_with_transform\n";
}
+Tue Dec 10 00:43:14 1996 Tom Tromey <tromey@cygnus.com>
+
+ * subst.test: New file.
+
Sun Dec 8 12:25:22 1996 Tom Tromey <tromey@cygnus.com>
* colneq2.test: New file.
acsilent.test distdir.test lex2.test libobj4.test libobj5.test version.test \
ranlib.test confvar.test confvar2.test stdlib.test cxxo.test colon2.test \
colon3.test remake.test output.test output2.test remake2.test output3.test \
-output4.test colneq2.test
+output4.test colneq2.test subst.test
EXTRA_DIST = defs $(TESTS)
acsilent.test distdir.test lex2.test libobj4.test libobj5.test version.test \
ranlib.test confvar.test confvar2.test stdlib.test cxxo.test colon2.test \
colon3.test remake.test output.test output2.test remake2.test output3.test \
-output4.test colneq2.test
+output4.test colneq2.test subst.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
--- /dev/null
+#! /bin/sh
+
+# Test that AC_SUBST($1) does something sensible. From Ulrich
+# Drepper.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_SUBST($1)
+AC_SUBST([$]$1) dnl this is the actual invocation that was used
+END
+
+: > Makefile.am
+
+$AUTOMAKE || exit 1
+grep '^\$1' Makefile.in && exit 1
+exit 0