Installing newest autotools
时间:2009-04-19 来源:xuelanghu
Contents
[hide]- 1 Installling newest autotools
- 1.1 Installing m4
- 1.2 Installing autoconf
- 1.3 Installing automake
- 1.4 Installing libtool
Installling newest autotools
After installing MSys DTK, it's recommended to install the latest autotools packages.
The "latest" packages from the MinGW website are also outdated. So it's preferable to rebuild them yourself.
Installing m4
M4 must be built using msysDVLPR. It will not work if you build it using your normal MinGW environment!
Go to http://www.gnu.org/software/m4/ .
Go to a download mirror, or http://ftp.gnu.org/gnu/m4/ .
Get http://ftp.gnu.org/gnu/m4/m4-1.4.12.tar.bz2 .
M4 needs to be patched to run properly under MSYS. The change involves consuming carriage returns that might exist in frozen files created in text-mode. Get the patch here.
Run the following in an msysDVLPR shell:
tar xfvj m4-1.4.12.tar.bz2
patch -p0 < ../m4-1.4.12-MSYS.diff
cd m4-1.4.12
./configure
make
cp src/m4.exe /c/msys/bin/m4.exe
Installing autoconf
Note: If you experience an endlessly recursive make, try using an older version of make.exe like 3.79.
If you followed this wiki, you should be able to just rename your existing c:\msys\bin\make.exe to c:\msys\bin\make.exe.bak, and use the backup c:\msys\bin\make-3.79.exe by renaming it to c:\msys\bin\make.exe
Don't forget to switch them back after these packages!!!
Go to http://www.gnu.org/software/autoconf/ .
Go to a download mirror, or ftp://ftp.gnu.org/gnu/autoconf/ .
Get ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.63.tar.bz2 .
Run the following in an MSYS shell:
tar xfvj autoconf-2.63.tar.bz2
cd autoconf-2.63
./configure --prefix=/usr
make
make install
Installing automake
Go to http://www.gnu.org/software/automake/ .
Go to a download mirror, or ftp://ftp.gnu.org/gnu/automake/ .
Get ftp://ftp.gnu.org/gnu/automake/automake-1.10.2.tar.bz2 .
Run the following in an MSYS shell:
tar xfvj automake-1.10.2.tar.bz2
cd automake-1.10.2
./configure --prefix=/usr
make
make install
Installing libtool
Go to http://www.gnu.org/software/libtool/ .
Go to a download mirror, or ftp://ftp.gnu.org/gnu/libtool/ .
Get ftp://ftp.gnu.org/gnu/libtool/libtool-1.5.26.tar.gz .
Run the following in an MSYS shell:
tar xfvj libtool-1.5.26.tar.gz
cd libtool-1.5.26
./configure --prefix=/usr
make
make install
If you used make-3.79.exe here, don't forget to switch back to the latest version!!!