fix the autogen perl wrapper: mishandling of the Darwins-pecific aclocal
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
This commit is contained in:
parent
c0b9fdfbba
commit
b8f27e21e5
1 changed files with 4 additions and 3 deletions
|
@ -82,12 +82,13 @@ for my $arg (@cmdline_args) {
|
|||
system ("touch ChangeLog");
|
||||
|
||||
my $system = `uname -s`;
|
||||
chomp $system;
|
||||
|
||||
my $aclocal_flags = $ENV{ACLOCAL_FLAGS};
|
||||
$aclocal_flags = "-I ./m4/mac" if (!defined $aclocal_flags && $system eq 'Darwin');
|
||||
$aclocal_flags = "" if (!defined $aclocal_flags);
|
||||
|
||||
$ENV{AUTOMAKE_EXTRA_FLAGS} = '--warnings=no-portability' if (!$system eq 'Darwin');
|
||||
$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";
|
||||
system ("autoconf") && die "Failed to run autoconf";
|
||||
|
|
Loading…
Reference in a new issue