$OpenBSD: patch-automake_in,v 1.2 2012/02/22 07:14:20 ajacoutot Exp $
--- automake.in.orig	Wed Feb  1 05:31:13 2012
+++ automake.in	Thu Feb 16 22:24:10 2012
@@ -4384,7 +4384,7 @@ sub handle_configure ($$$@)
       # Use $(install_sh), not $(MKDIR_P) because the latter requires
       # at least one argument, and $(mkinstalldirs) used to work
       # even without arguments (e.g. $(mkinstalldirs) $(conditional_dir)).
-      define_variable ('mkinstalldirs', '$(install_sh) -d', INTERNAL);
+      define_variable ('mkinstalldirs', '$(SHELL) $(install_sh) -d', INTERNAL);
     }
 
   reject_var ('CONFIG_HEADER',
@@ -5337,6 +5337,7 @@ sub scan_autoconf_traces ($)
 		_LT_AC_TAGCONFIG => 0,
 		m4_include => 1,
 		m4_sinclude => 1,
+		include => 1,
 		sinclude => 1,
 	      );
 
@@ -5360,6 +5361,7 @@ sub scan_autoconf_traces ($)
       my ($here, $depth, @args) = split (/::/);
       $where = new Automake::Location $here;
       my $macro = $args[0];
+      next if ($macro eq "include");
 
       prog_error ("unrequested trace `$macro'")
 	unless exists $traced{$macro};
