diff options
Diffstat (limited to 'sys-devel/automake/files/automake-1.9.6-ignore-comments.patch')
-rw-r--r-- | sys-devel/automake/files/automake-1.9.6-ignore-comments.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-devel/automake/files/automake-1.9.6-ignore-comments.patch b/sys-devel/automake/files/automake-1.9.6-ignore-comments.patch new file mode 100644 index 000000000000..f62987456cfe --- /dev/null +++ b/sys-devel/automake/files/automake-1.9.6-ignore-comments.patch @@ -0,0 +1,29 @@ +http://bugs.gentoo.org/126388 + +2006-03-16 Mike Frysinger <vapier@gentoo.org> + + * aclocal.in (scan_configure_dep): Ignore ## lines. + (scan_file): Remove dnl and # comments. + +--- aclocal.in ++++ aclocal.in +@@ -227,6 +227,8 @@ + foreach (split ("\n", $contents)) + { + ++$line; ++ # Ignore `##' lines. ++ next if /^##/; + # Remove comments from current line. + s/\bdnl\b.*$//; + s/\#.*$//; +@@ -311,6 +313,10 @@ + + $contents .= $_; + ++ # Remove comments from current line. ++ s/\bdnl\b.*$//; ++ s/\#.*$//; ++ + while (/$ac_defun_rx/go) + { + if (! defined $1) |