diff options
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh index 2935619b3f80..78a6f6734bc5 100755 --- a/autogen.sh +++ b/autogen.sh @@ -86,6 +86,14 @@ sub invalid_distro($$) closedir ($dirh); } +# Handle help arguments first, so we don't clobber autogen.lastrun +for my $arg (@ARGV) { + if ($arg =~ /^(--help|-h|-\?)$/) { + system ("./configure --help"); + exit; + } +} + my @cmdline_args = (); if (!@ARGV) { my $lastrun = "autogen.lastrun"; |