Skip to content

Instantly share code, notes, and snippets.

@justinbellamy
Forked from jellybeansoup/cltools.sh
Last active March 6, 2022 03:46
Show Gist options
  • Save justinbellamy/2672db1c78f024f2d4fe to your computer and use it in GitHub Desktop.
Save justinbellamy/2672db1c78f024f2d4fe to your computer and use it in GitHub Desktop.
Install Autoconf and Automake on OS X El Capitan
#!/bin/sh
##
# Install autoconf, automake and libtool smoothly on Mac OS X.
# Newer versions of these libraries are available and may work better on OS X
#
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html
#
export build=~/devtools # or wherever you'd like to build
mkdir -p $build
##
# Autoconf
# http://ftpmirror.gnu.org/autoconf
cd $build
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
tar xzf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure --prefix=/usr/local
make
sudo make install
export PATH=$PATH:/usr/local/bin
##
# Automake
# http://ftpmirror.gnu.org/automake
cd $build
curl -OL http://ftpmirror.gnu.org/automake/automake-1.15.tar.gz
tar xzf automake-1.15.tar.gz
cd automake-1.15
./configure --prefix=/usr/local
make
sudo make install
##
# Libtool
# http://ftpmirror.gnu.org/libtool
cd $build
curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz
tar xzf libtool-2.4.6.tar.gz
cd libtool-2.4.6
./configure --prefix=/usr/local
make
sudo make install
echo "Installation complete."
@mdforbes500
Copy link

This should have a link for autoconf as

curl -OL http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.xz

Otherwise tar doesn't recognize the archive format and exits.

@sguotao
Copy link

sguotao commented Feb 2, 2019

thank u,it's very helpful.

@sscarr
Copy link

sscarr commented Mar 2, 2019

SUPER SUPER helpful. THANK YOU!

@shide1989
Copy link

Thanks ! worked great !

@bjgaynor
Copy link

This is awesome, I really appreciate it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment