This code is incorrect

    if test -z "${LIBTOOLIZE+set}" && ( glibtoolize --version ) >/dev/null 2>&1
; then
        libtoolize=glibtoolize
    else
        libtoolize=${LIBTOOLIZE:-libtoolize}
    fi

because it selects glibtoolsize over libtoolize, even if autoconf etc. have been installed by the user (me in this case) ahead of the ones defined by the operating system (MacOS in my case).  Even worse, it then tells me:

Checking if autotools are in the same location... no
        autoconf is in /Users/gropp
        automake is in /Users/gropp
        libtool  is in /opt/local

But here’s what I get:

wdg-macbook: gropp$ which autoconf
/Users/gropp/bin/autoconf
wdg-macbook: gropp$ which automake
/Users/gropp/bin/automake
wdg-macbook: gropp$ which libtool
/Users/gropp/bin/libtool
wdg-macbook: gropp$

So: autogen.sh claims the libtool in the path is in /opt/local , which it is not, and
autogen.sh claims that the tools are in directories that they are not in (it always dropped “bin” - there is no requirement that the directory path end in bin.

I can work around these errors by setting LIBTOOLIZE, but I should not need to do that and I had to debug autogen.sh to discover what it really wanted. 

Bill

William Gropp
Director and Chief Scientist, NCSA
Thomas M. Siebel Chair in Computer Science
University of Illinois Urbana-Champaign