* automake.in (read_am_file): Treat backslash-newline as
authorTom Tromey <tromey@redhat.com>
Sun, 27 Sep 1998 19:12:21 +0000 (19:12 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 27 Sep 1998 19:12:21 +0000 (19:12 +0000)
whitespace.  Test parse.test.

ChangeLog
automake.in

index 78b80a7..456f30c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Sep 27 20:02:21 1998  Tom Tromey  <tromey@cygnus.com>
+
+       * automake.in (read_am_file): Treat backslash-newline as
+       whitespace.  Test parse.test.
+
 Sat Sep 26 19:31:22 1998  Tom Tromey  <tromey@cygnus.com>
 
        * configure: Rebuilt.
index 714b4dc..3f7e5c6 100755 (executable)
@@ -5310,10 +5310,11 @@ sub read_am_file
                $am_vars .= join ('', @conditional_stack) . $_;
                $saw_bk = /\\$/;
                # Chop newline and backslash if this line is
-               # continued.  FIXME: maybe ensure trailing whitespace
-               # exists?
+               # continued.  ensure trailing whitespace exists.
                chop if $saw_bk;
                chop if $saw_bk;
+               $contents{$last_var_name} .= ' '
+                   unless $contents{$last_var_name} =~ /\s$/;
                $contents{$last_var_name} .= $_;
                if (@conditional_stack)
                {