$NetBSD: patch-aa,v 1.6 2006/10/04 12:18:14 obache Exp $

--- tools/config2header.orig	2005-04-19 20:54:32.000000000 +0200
+++ tools/config2header
@@ -77,6 +77,14 @@ while ($#ARGV >= 0) {
 
 my $use_gcc_extension = ($CC and $CC eq 'gcc');
 
+#
+# Skip any CC options such as -pipe
+# The last two parameters are the .c and .h files
+#
+while ($#ARGV > 1) {
+	shift @ARGV;
+}
+
 die "wrong number of arguments" if ($#ARGV != 1);
 my ($cfile, $hfile) = @ARGV;
 
