Hi Peter,
On 3/14/2010 10:38 AM, Peter Johansson wrote:
Hello,
I experience that autoreconf, for some reason, thinks I'm not using
libtool. I slimmed down my configure.ac to the following:
AC_INIT([1.0], [hello])
AM_INIT_AUTOMAKE([foreign])
AC_LANG([C++])
AC_PROG_CXX
AC_PROG_LIBTOOL
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
and when I issue `autoreconf -isvf' I get
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /opt/local/bin/autoconf --force
configure.ac:5: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /opt/local/bin/autoconf failed with exit status: 1
Here's my output using the same configure.ac file:
$ autoreconf -isvf
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --force
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros
in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/local/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --force-missing
configure.ac:5: installing `./config.guess'
configure.ac:5: installing `./config.sub'
configure.ac:2: installing `./install-sh'
configure.ac:2: installing `./missing'
autoreconf: Leaving directory `.'
I noticed from your output that autoconf is found in /opt/local/bin. Is
there any way that libtool could be "not found" in that path? I ask
because the error looks sort of like autoreconf thinks that libtool
isn't installed.
John