+sub help ($)
+{
+ my ($verbose) = @_;
+ use Pod::Usage;
+ # See <URL:http://perldoc.perl.org/pod2man.html#NOTES>.
+ pod2usage( { -message => "Bench Bison parsers",
+ -exitval => 0,
+ -verbose => $verbose,
+ -output => \*STDOUT });
+}
+
+sub getopt ()
+{
+ use Getopt::Long;
+ my $verbose = 0;
+ %option = ("h|help" => sub { help ($verbose) },
+ "v|verbose" => sub { ++$verbose },
+ "c|cflags=s" => \$cflags,
+ "i|iterations=i" => \$iterations);
+ Getopt::Long::Configure ("bundling", "pass_through");
+ GetOptions (%option)
+ or exit 1;
+}
+
+######################################################################
+
+getopt;
+print STDERR "Using bison=$bison, cc=$cc, cxx=$cxx, cflags=$cflags.\n";