summaryrefslogtreecommitdiff
path: root/automake.in
diff options
context:
space:
mode:
authorRichard Boulton <richard@tartarus.org>2001-08-03 11:57:16 +0000
committerRichard Boulton <richard@tartarus.org>2001-08-03 11:57:16 +0000
commit5cc47615a2f128034e767f9f62bb2e3ab2f2103e (patch)
tree70daf5e1676e2a5203d07cccec82bd68981d7e3a /automake.in
parentf00ec2842b04fb937550074fdec93f0f81c83c80 (diff)
downloadautomake-5cc47615a2f128034e767f9f62bb2e3ab2f2103e.tar.gz
2001-08-03 Richard Boulton <richard@tartarus.org>
* automake.in (value_to_list): Check for whether $from is defined, rather than whether it is true, so that empty $froms are allowed in substitution reference patterns. * tests/substref.test: New file: test behavior of substitution references when the $from side of the substitution is empty. * tests/Makefile.am (TESTS): Added substref.test.
Diffstat (limited to 'automake.in')
-rwxr-xr-xautomake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/automake.in b/automake.in
index 125829bba..cecb270ff 100755
--- a/automake.in
+++ b/automake.in
@@ -6113,7 +6113,7 @@ sub value_to_list
@temp_list = &variable_value_as_list_worker ($1, $cond, $var);
# Now rewrite the value if appropriate.
- if ($from)
+ if (defined $from)
{
grep (s/$from$/$to/, @temp_list);
}