Stylize consistently, add more Emacs mode goodness
This commit is contained in:
11
autogen.sh
11
autogen.sh
@@ -16,20 +16,18 @@ sub sanity_checks($)
|
|||||||
{
|
{
|
||||||
my $system = shift;
|
my $system = shift;
|
||||||
my @path = split (':', $ENV{'PATH'});
|
my @path = split (':', $ENV{'PATH'});
|
||||||
my %required = (
|
my %required =
|
||||||
|
(
|
||||||
'pkg-config' => "pkg-config is required to be installed",
|
'pkg-config' => "pkg-config is required to be installed",
|
||||||
'autoconf' => "autoconf is required",
|
'autoconf' => "autoconf is required",
|
||||||
'aclocal' => "aclocal is required",
|
'aclocal' => "aclocal is required",
|
||||||
# 'knurdle' => 'please knurdle me test'
|
|
||||||
);
|
);
|
||||||
my $exe_ext = '';
|
my $exe_ext = '';
|
||||||
$exe_ext = ".exe" if ($system =~ m/CYGWIN/);
|
$exe_ext = ".exe" if ($system =~ m/CYGWIN/);
|
||||||
|
|
||||||
for my $elem (@path) {
|
for my $elem (@path) {
|
||||||
# print "check $elem\n";
|
|
||||||
for my $app (keys %required) {
|
for my $app (keys %required) {
|
||||||
if (-f "$elem/$app$exe_ext") {
|
if (-f "$elem/$app$exe_ext") {
|
||||||
# print "removing $app - found in $elem/$app\n";
|
|
||||||
delete $required{$app};
|
delete $required{$app};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -63,8 +61,7 @@ sub read_args($)
|
|||||||
print " $opt\n";
|
print " $opt\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
push @lst, $_;
|
push @lst, $_;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -149,6 +146,8 @@ if (defined $ENV{NOCONFIGURE}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
|
# mode: perl
|
||||||
|
# cperl-indent-level: 4
|
||||||
# tab-width: 4
|
# tab-width: 4
|
||||||
# indent-tabs-mode: nil
|
# indent-tabs-mode: nil
|
||||||
# End:
|
# End:
|
||||||
|
Reference in New Issue
Block a user