* automake.in (PATH_PATTERN): New variable:
(INCLUDE_PATTERN): Use it. Ignore all include commands using
symbols besides $(top_srcdir) and $(srcdir).
+1999-01-11 Marcus G. Daniels <mgd@chama.santafe.edu>
+
+ * automake.in (PATH_PATTERN): New variable:
+ (INCLUDE_PATTERN): Use it. Ignore all include commands using
+ symbols besides $(top_srcdir) and $(srcdir).
+
1999-01-11 Alexandre Oliva <oliva@dcc.unicamp.br>
* automake.in (handle_dist_worker): avoid failure in `make dist'
$IF_PATTERN = "^if[ \t]+\([A-Za-z][A-Za-z0-9_]*\)[ \t]*\(#.*\)?\$";
$ELSE_PATTERN = "^else[ \t]*\(#.*\)?\$";
$ENDIF_PATTERN = "^endif[ \t]*\(#.*\)?\$";
+$PATH_PATTERN='(\\w|/|\\.)+';
# This will pass through anything not of the prescribed form.
-$INCLUDE_PATTERN = "^include[ \t]+((\\\$\\\(top_srcdir\\\)/[^ \t\n]+)|(\\\$\\\(srcdir\\\)/[^ \t\n]+)|([^/][^\\\ \t]+))[ \t]*(#.*)?\$";
+$INCLUDE_PATTERN = "^include[ \t]+((\\\$\\\(top_srcdir\\\)/${PATH_PATTERN})|(\\\$\\\(srcdir\\\)/${PATH_PATTERN})|([^/\\\$]${PATH_PATTERN}))[ \t]*(#.*)?\$";
# Some regular expressions. One reason to put them here is that it
# makes indentation work better in Emacs.