I'm trying to get dovecot-lda working on a FreeBSD 6.0-RELEASE box (also had the same problem on 5.4)

When I run autogen.sh I get the following output:

aclocal: configure.in:13 : warning: macro `AM_PROG_LIBTOOL' not found in library
You should update your `aclocal.m4' by running aclocal.
configure.in: installing `./install-sh'
configure.in: installing `./missing'
src/Makefile.am: installing `./depcomp'
src/libsieve/Makefile.am:1: library used but `RANLIB' is undefined
src/libsieve/Makefile.am:1:
src/libsieve/Makefile.am:1: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'
src/libsieve/Makefile.am:1: to `configure.in' and run `autoconf' again.
configure.in: installing `./ylwrap'
Makefile.am: installing `./INSTALL'
configure.in:4: required file `lda- config.h.in' not found
configure.in:13: error: possibly undefined macro: AM_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.


It still generates 'configure' but if I try to run it I get:

./configure: line 3441: AM_PROG_LIBTOOL: command not found


Also Makefile.in is never created

Anyone have an idea?