$OpenBSD: patch-aclocal_in,v 1.1 2001/04/21 14:13:23 espie Exp $
--- aclocal.in.orig	Sat Apr 21 15:31:53 2001
+++ aclocal.in	Sat Apr 21 16:10:27 2001
@@ -346,6 +346,10 @@ sub add_file
 	    push (@rlist, $1);
 	}
 
+        # Remove comments from current line.
+        s/\bdnl\b.*$//;
+        s/\#.*$//;
+
 	# This function constructed dynamically.
 	if (! &search && /(^|\s+)(AM_[A-Z_]+)/)
 	{
