Reprint Address: http://www.mattvsworld.com/blog/2010/02/install-the-latest-autoconf-and-automake-on-mac-os-10-6/
I noticed today and Mac OS 10.6 (specifically, 10.6.2) comes with Automake and autoconf, the versions is a little Bit dated. Normally I wouldn ' t care, but I ran into an issue when trying to generate a portable distribution using those tools on my Mac, and then configure, compile, and install the result on a Linux box. What I discovered are the version of Autoconf and Automake on OSX can generate a "configure" file which doesn ' t work a s expected on Linux (at least one with gcc 4.3)-specifically, the step "checking for working mktime ..." can hang and event ually return "No" when that was not the correct result. Apparently need at least autoconf 2.62 on order to avoid this bug.
I figured as long as I am updating autoconf i ' d update Automake, M4, and Libtool as well. Here's the quick script (as always, I assume you prefer the installation prefix/usr/local as I do). It's nothing too fancy, and the sequence of the installs is important:
Curl-o http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz
TAR-XZVF m4-1.4.13.tar.gz
CD m4-1.4.13
./configure--prefix=/usr/local
Make
sudo make install
Cd..
Curl-o http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
TAR-XZVF autoconf-2.65.tar.gz
CD autoconf-2.65
./configure--prefix=/usr/local # Ironic, isn ' t it?
Make
sudo make install
Cd..
# Here's might want to restart your terminal session, to ensure the new autoconf are picked up and used in the rest of th E script
Curl-o http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz
Tar xzvf automake-1.11.tar.gz
CD automake-1.11
./configure--prefix=/usr/local
Make
sudo make install
Cd..
Curl-o http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz
Tar xzvf libtool-2.2.6b.tar.gz
CD libtool-2.2.6b
./configure--prefix=/usr/local
Make
sudo make install
And now, (assuming-have/usr/local in your path), when you use autotools your distribution should be correctly portabl E (at least-regards to this mktime bug).
Http://www.cnblogs.com/hurricane2011/articles/2503582.html
http://blog.csdn.net/billfanggs/article/details/9948553
Installing autoconf and Automake in Mac OS