From 2c7f593e0a70526e4d4df90e5e7b2e6f7d661426 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 9 Nov 1998 15:13:36 +0000 Subject: [PATCH] * automake.in (read_am_file): `conditional_stack' isn't a function. Correctly add new value to existing value in `+=' case. --- ChangeLog | 6 ++++++ automake.in | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index ba8e89f..b858327 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1998-11-09 Tom Tromey + + * automake.in (read_am_file): `conditional_stack' isn't a + function. Correctly add new value to existing value in `+=' + case. + 1998-10-29 Gary V. Vaughan * automake.in (parse_arguments): Fixed type of -c for copying diff --git a/automake.in b/automake.in index 21fc180..c68b6a5 100755 --- a/automake.in +++ b/automake.in @@ -5843,8 +5843,7 @@ sub read_am_file if (@conditional_stack) { local ($found) = 0; - local ($val) = $contents{$last_var_name}; - $val = "e_cond_val ($val); + local ($val); if ($conditional{$last_var_name}) { if ($type eq '+') @@ -5858,11 +5857,12 @@ sub read_am_file { local ($vcond) = shift (@cond_vals); push (@new_vals, $vcond); - if (&conditional_stack ($vcond, $cond_string)) + if (&conditional_same ($vcond, $cond_string)) { $found = 1; - shift (@cond_vals); - push (@new_vals, $val); + $val = (&unquote_cond_val (shift (@cond_vals)) + . ' ' . $value); + push (@new_vals, "e_cond_val ($val)); } else { @@ -5881,17 +5881,19 @@ sub read_am_file &check_ambiguous_conditional ($last_var_name, $cond_string); $conditional{$last_var_name} .= ' '; + $val = $value; } } else { $conditional{$last_var_name} = ''; + $val = $contents{$last_var_name}; } if (! $found) { $conditional{$last_var_name} .= ($cond_string . ' ' - . $val); + . "e_cond_val ($val)); } } -- 2.7.4