blob: 10b38ab61461cddda53ca1349653dac67b1734dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
require 'formula'
class Autoconf < Formula
url 'http://ftpmirror.gnu.org/autoconf/autoconf-2.68.tar.gz'
homepage 'http://www.gnu.org/software/autoconf'
md5 'c3b5247592ce694f7097873aa07d66fe'
def patches
# force autoreconf to look for and use our glibtoolize
DATA
end
if MacOS.xcode_version.to_f < 4.3 or File.file? "/usr/bin/autoconf"
keg_only "Xcode (up to and including 4.2) provides (a rather old) Autoconf."
end
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
def test
system "#{HOMEBREW_PREFIX}/bin/autoconf --version"
end
end
__END__
diff --git a/bin/autoreconf.in b/bin/autoreconf.in
index 192c8fa..70a1d72 100644
--- a/bin/autoreconf.in
+++ b/bin/autoreconf.in
@@ -112,7 +112,7 @@ my $autoheader = $ENV{'AUTOHEADER'} || '@bindir@/@autoheader-name@';
my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';
my $automake = $ENV{'AUTOMAKE'} || 'automake';
my $aclocal = $ENV{'ACLOCAL'} || 'aclocal';
-my $libtoolize = $ENV{'LIBTOOLIZE'} || 'libtoolize';
+my $libtoolize = $ENV{'LIBTOOLIZE'} || 'glibtoolize';
my $autopoint = $ENV{'AUTOPOINT'} || 'autopoint';
my $make = $ENV{'MAKE'} || 'make';
|