Install Automake autoconf tool under Mac

Source: Internet
Author: User
Tags automake

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).

Install Automake autoconf tool under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.