You need to install a lot of things, please install in the following order:
The installed version package also cannot be wrong:
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
Okay, now go find automake management makefile The source code can be easily used
Installing autoconf and Automake in Mac OS