From 330e3e6f60996473a5f7f8b92965ccbf515e59a6 Mon Sep 17 00:00:00 2001 From: Lightech Date: Mon, 15 Mar 2021 01:05:08 -0700 Subject: [PATCH] Add script to build autoconf, automake and libtool locally --- build-tools.sh | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 build-tools.sh diff --git a/build-tools.sh b/build-tools.sh new file mode 100755 index 0000000..4956e76 --- /dev/null +++ b/build-tools.sh @@ -0,0 +1,50 @@ +#!/bin/sh +# From https://gist.github.com/GraemeConradie/49d2f5962fa72952bc6c64ac093db2d5 + +## +# Install autoconf, automake and libtool smoothly on Mac OS X. +# Newer versions of these libraries are available and may work better on OS X +## + +export build=`pwd`/temp # or wherever you'd like to build +export install=`pwd`/tools +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=$install +make +make install +# export PATH=$PATH:$install + +## +# 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=$install +make +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=$install +make +make install + +echo "Installation complete." \ No newline at end of file