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.gzTar-XZVF m4-1.4. -.Tar. GZCD M4-1.4. -./configure--prefix=/usr/Local Makesudo Make InstallCD.. Curl-O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gzTar-XZVF autoconf-2.65.Tar. GZCD autoconf-2.65./configure--prefix=/usr/local # ironic, isn't it? Makesudo Make InstallCD.. # Here's might want to restart your terminal session, to ensure the new autoconf are picked up and usedinchThe rest of the Scriptcurl-O http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gzTarXZVF automake-1.11.Tar. GZCD Automake-1.11./configure--prefix=/usr/Local Makesudo Make InstallCD.. Curl-O http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gzTarXZVF libtool-2.2.6b.Tar. GZCD Libtool-2.2. 6b./configure--prefix=/usr/Local Makesudo Make Install
Okay, now go find automake management makefile The source code can be easily used
Installing autoconf and Automake in Mac OS