From fdc84b36e9d4fb76165d546ddcf97a8d5617e9ce Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 6 Oct 2000 22:49:14 +0000 Subject: [PATCH] * aclocal.in (add_file): Strip comments while scanning for macro dependencies. --- ChangeLog | 5 +++++ aclocal.in | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 24d5cbe5..ddcb7faf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-10-06 Alexandre Duret-Lutz + + * aclocal.in (add_file): Strip comments while scanning for + macro dependencies. + 2000-09-15 Alexandre Duret-Lutz * automake.in (initialize_global_constants): End the diff --git a/aclocal.in b/aclocal.in index 2d5cce1c..5fc838a5 100644 --- a/aclocal.in +++ b/aclocal.in @@ -362,7 +362,11 @@ sub add_file push (@rlist, $1); } - # This function constructed dynamically. + # Remove comments from current line. + s/\bdnl\b.*$//; + s/\#.*$//; + + # The search function is constructed dynamically by scan_m4_files. if (! &search && /(^|\s+)(AM_[A-Z_]+)/) { # Macro not found, but AM_ prefix found. -- 2.43.5