diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-04-07 13:27:23 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-04-07 13:27:47 +0100 |
commit | 396fd9fc614f7eb83ddcd13bb50fadf81f27b1f1 (patch) | |
tree | 5d73ad7fdc219a9972c821fd23e6bd58724e0dc6 /autogen.sh | |
parent | b9bc97d45520440244fc06db73a4ef00868e34b2 (diff) |
check more carefully for configure generation, and fix quoting of vendors
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh index c83ad8c0b397..7d57e13203f9 100755 --- a/autogen.sh +++ b/autogen.sh @@ -57,7 +57,7 @@ sub invalid_distro($$) } my @cmdline_args = (); -if (!@ARGV) { +if (@ARGV == 0) { my $lastrun = "autogen.lastrun"; @cmdline_args = read_args ($lastrun) if (-f $lastrun); } else { @@ -91,12 +91,14 @@ $aclocal_flags = "-I ./m4/mac" if (($aclocal_flags eq "") && ($system eq 'Darwin $ENV{AUTOMAKE_EXTRA_FLAGS} = '--warnings=no-portability' if (!($system eq 'Darwin')); system ("aclocal $aclocal_flags") && die "Failed to run aclocal"; +unlink ("configure"); system ("autoconf") && die "Failed to run autoconf"; +die "failed to generate configure" if (! -x "configure"); if (defined $ENV{NOCONFIGURE}) { print "Skipping configure process."; } else { - if ($#cmdline_args > 0) { + if (@ARGV > 0) { print "writing args to autogen.lastrun\n"; my $fh; open ($fh, ">autogen.lastrun") || die "can't open autogen.lastrun: $!"; |