* automake.in (ASSIGNMENT_PATTERN): Make variable-name pattern
stop at the first '='.
* tests/Makefile.am (TESTS): Added vars.test.
* tests/vars.test: New file.
+2001-05-12 Raja R Harinath <harinath@cs.umn.edu>
+
+ * automake.in (ASSIGNMENT_PATTERN): Make variable-name pattern
+ stop at the first '='.
+ * tests/Makefile.am (TESTS): Added vars.test.
+ * tests/vars.test: New file.
+
2001-05-12 Akim Demaille <akim@epita.fr>
* automake.in (&handle_single_transform_list): Simplify
# leading tabs here then we need to make the reader smarter, because
# otherwise it will think rules like `foo=bar; \' are errors.
my $MACRO_PATTERN = '^[A-Za-z0-9_@]+$';
-my $ASSIGNMENT_PATTERN = '^ *([^ \t]*)\s*([:+]?)=\s*(.*)$';
+my $ASSIGNMENT_PATTERN = '^ *([^ \t=]*)\s*([:+]?)=\s*(.*)$';
# This pattern recognizes a Gnits version id and sets $1 if the
# release is an alpha release. We also allow a suffix which can be
# used to extend the version number with a "fork" identifier.
texinfo9.test \
texinfo10.test \
unused.test \
+vars.test \
vartar.test \
version.test \
version2.test \
ppf77.test \
pr2.test \
pr9.test \
-pr19.test \
pr72.test \
pr87.test \
prefix.test \
texinfo9.test \
texinfo10.test \
unused.test \
+vars.test \
vartar.test \
version.test \
version2.test \
--- /dev/null
+#! /bin/sh
+
+# Test various variable definitions that include an '=' sign
+# From Raja R Harinath
+
+. $srcdir/defs || exit 1
+
+cat > Makefile.am << 'END'
+MY_FLAGS_1=-DABC=345
+MY_FLAGS_2= -DABC=345
+MY_FLAGS_3 =-DABC=345
+MY_FLAGS_4 = -DABC=345
+END
+
+$AUTOMAKE