I was just trying to compile le latest Icecast from SVN on Solaris 10 Sparc, and reached a lot of troubles with automake.

Aclocal was complaining not having the libtool macro.

On this host we have a special folder with every tools, /opt/tools :

apr-util-1.2.8             coreutils-5.94             grep-2.5.1a                libshout-2.2.2             neon                       rsync-2.6.8                tcpdump-3.9.4
IQ-300-SOL.tar.Z           ase1254sol64               gcc                        icecast-2.3.1              libtool-1.5.24             neon-0.26.2                subversion                 tcpflow
apr                        autoconf-2.60              gcc-4.0.3                  lame-3.96.1                lsof                       openserver-12.5.1-x86      subversion-1.4.2           tcpflow-0.21
apr-1.2.8                  automake-1.10              gcc-coolthreads            libpcap                    lsof-4.77-64-100606-sparc  pushconfig                 sybase                     vim
apr-util                   coreutils                  grep                       libpcap-0.9.4              ncurses-5.5                rsync                      tcpdump                    vim-7.0.017


I just changed the PATH env variable, so I can find libtool and automake libraries :

export PATH=/opt/tools/automake-1.10/bin:/opt/tools/autoconf-2.60/bin:/opt/tools/libtool-1.5.24/bin:$PATH

But during the autogen.sh from Icecast, I got errors like this :

# ./autogen.sh
Checking for automake version
found automake
found aclocal
Generating configuration files for icecast, please wait....
aclocal  -I m4
autoheader
libtoolize --automake
automake --add-missing
src/avl/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/avl/Makefile.am:7:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/avl/Makefile.am:7:   to `configure.in' and run `aclocal' and `autoconf' again.
src/avl/Makefile.am:7:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/avl/Makefile.am:7:   its definition is in aclocal's search path.
src/httpp/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined
src/httpp/Makefile.am:5:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/httpp/Makefile.am:5:   to `configure.in' and run `aclocal' and `autoconf' again.
src/httpp/Makefile.am:5:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/httpp/Makefile.am:5:   its definition is in aclocal's search path.
src/log/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/log/Makefile.am:7:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/log/Makefile.am:7:   to `configure.in' and run `aclocal' and `autoconf' again.
src/log/Makefile.am:7:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/log/Makefile.am:7:   its definition is in aclocal's search path.
src/net/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/net/Makefile.am:7:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/net/Makefile.am:7:   to `configure.in' and run `aclocal' and `autoconf' again.
src/net/Makefile.am:7:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/net/Makefile.am:7:   its definition is in aclocal's search path.
src/thread/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/thread/Makefile.am:7:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/thread/Makefile.am:7:   to `configure.in' and run `aclocal' and `autoconf' again.
src/thread/Makefile.am:7:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/thread/Makefile.am:7:   its definition is in aclocal's search path.
src/timing/Makefile.am:7: Libtool library used but `LIBTOOL' is undefined
src/timing/Makefile.am:7:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/timing/Makefile.am:7:   to `configure.in' and run `aclocal' and `autoconf' again.
src/timing/Makefile.am:7:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/timing/Makefile.am:7:   its definition is in aclocal's search path.
autoconf
I am going to run ./configure with no arguments - if you wish
...

After few reserch, I found nothing usefull, until I found a way to get the path aclocal is using to search for macro:

aclocal --print-ac-dir
/opt/tools/automake-1.10/share/aclocal

This directory was not present, butI had a /opt/tools/automake-1.10/share/aclocal-1.10.

My solution was to symlink it :

ln -s /opt/tools/automake-1.10/share/aclocal-1.10 /opt/tools/automake-1.10/share/aclocal

I then had a look into the libtool install. I found there an aclocal directory, with two .m4 file inside.
Once again, my quick solution was to copy those files inside the aclocal directory :

cp  /opt/tools/libtool-1.5.24/share/aclocal/*  /opt/tools/automake-1.10/share/aclocal

Another solution would have been to change the aclocal path to also check the libtool dirs, but I’m too busy to find out how. Give a comment if you know that :)