]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* automake.in (handle_lib_objects_cond): Q doesn't work either.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Tue, 27 Apr 1999 00:17:25 +0000 (00:17 +0000)
committerAlexandre Oliva <oliva@dcc.unicamp.br>
Tue, 27 Apr 1999 00:17:25 +0000 (00:17 +0000)
Let's use the good ol' substitution, then.
Reported by Russ Allbery <rra@stanford.edu>

ChangeLog
automake.in

index 6fdf972f94f5aec91ffb4616081eac8bf30733d4..8a143c0e2fa372d7ee1923be915d9a40a3ce1dc1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,12 @@
 1999-04-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * automake.in (handle_lib_objects_cond): \Q doesn't work either.
+       Let's use the good ol' substitution, then.
+       Reported by Russ Allbery <rra@stanford.edu>
+
        * automake.in (check_canonical_spelling): Insert AM before names
        starting with non-letters.
+
        * automake.texi: Document it.
 
 1999-04-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
index ab1fbf425e4d724c13936e7fd892e23a25482664..1c3e0719ff9d4832f5a272392f43b0d75af4a419 100755 (executable)
@@ -1469,7 +1469,8 @@ sub handle_lib_objects_cond
                    $dep_files{'.deps/' . $rewrite} = 1;
                    &require_file_with_line ($var, $FOREIGN, $iter)
                      unless &variable_defined ('BUILT_SOURCES')
-                       && grep (/^\Q$iter\E$/, &variable_value_as_list ('BUILT_SOURCES', 'all'));
+                       && grep ('^' . (($rewrite = $iter) =~ s/(\W)/\\\1/g) . '$',
+                                &variable_value_as_list ('BUILT_SOURCES', 'all'));
                }
            }
        }