automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] aclocal: handle both # and dnl for serial number lines


From: Ross Burton
Subject: [PATCH] aclocal: handle both # and dnl for serial number lines
Date: Tue, 6 Sep 2016 17:05:27 +0100

Instead of only accepting comment lines that start with # for serial lines, also
accept dnl.
---
 bin/aclocal.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/aclocal.in b/bin/aclocal.in
index 224f8c7..1c5add5 100644
--- a/bin/aclocal.in
+++ b/bin/aclocal.in
@@ -151,7 +151,7 @@ my $ac_require_rx = 
"AC_REQUIRE\\((?:\\[([^]]+)\\]|([^],)\n]+))\\)";
 my $m4_include_rx = "(m4_|m4_s|s)include\\((?:\\[([^]]+)\\]|([^],)\n]+))\\)";
 
 # Match a serial number.
-my $serial_line_rx = '^#\s*serial\s+(\S*)';
+my $serial_line_rx = '^(?:#|dnl)\s*serial\s+(\S*)';
 my $serial_number_rx = '^\d+(?:\.\d+)*$';
 
 # Autoconf version.  This variable is set by 'trace_used_macros'.
-- 
2.8.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]