25 October 2008

Compiling with Automake 1.10

Right now Liferea doesn't build with Automake 1.10 (it works up to 1.9.x). When running configure you get errors like these:

configure.ac:178: warning: macro `AM_GCONF_SOURCE_2' not found in library
configure.ac:16: warning: LT_AC_PROG_SED is m4_require'd but not m4_defun'd
acinclude.m4:6: LIFEREA_CONFIG_NICE is expanded from...
configure.ac:16: the top level
configure.ac:16: warning: LT_AC_PROG_SED is m4_require'd but not m4_defun'd
acinclude.m4:6: LIFEREA_CONFIG_NICE is expanded from...
configure.ac:16: the top level
configure.ac:16: warning: LT_AC_PROG_SED is m4_require'd but not m4_defun'd
acinclude.m4:6: LIFEREA_CONFIG_NICE is expanded from...
configure.ac:16: the top level
configure.ac:7: error: possibly undefined macro: AC_ENABLE_SHARED
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:8: error: possibly undefined macro: AC_ENABLE_STATIC
configure.ac:20: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.ac:21: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:178: error: possibly undefined macro: AM_GCONF_SOURCE_2
configure:2694: error: possibly undefined macro: LT_AC_PROG_SED
autoreconf: /usr/bin/autoconf failed with exit status: 1

I've searched the net for answers and tried a lot of thing, but couldn't find much on the issue. Does anyone reading the blog know about what to do to migrate from automake 1.9 to 1.10?

Update: After a hint from Adrian Bunk the solution to the problem above is to ensure a correct libtool installation. Reinstalling the libtool package did solve the problem for me.

2 comments:

Adrian Bunk said...

This doesn't seem to be related to the automake version (and I'm not seeing it with automake 1.10).

Running "aclocal" most likely gives the same messages?

Judging from the error messages you might lack libtool.m4 and gconf-2.m4 in /usr/share/aclocal/ ?

Lars said...

You maybe right, after updating packages and reinstalling all of the autotools packages (including libtool) the problem disappears. The files you mentioned now do exist (tested with libtool 2.5.16 in Debian Lenny) and everything works fine again.

Due to several user reports on this I guess that the missing files are cause by updating the Debian/Ubuntu packages. But there are no bug reports on it...

Thanks for the help!!!