Hi, the configure mysql detection doesn't work with MySQL 4.0.x from MySQL AB.
Detail information: dovecot 0.99.13, MySQL-devel-4.0.21-0 from MySQL AB. ./configure --with-mysql ... checking for mysql_init in -lmysqlclient... no checking for mysql_init in -lmysqlclient... (cached) no
This version of MySQL need to be linked with '-lz'. The configure script check for mysql both with and without '-lz' but the test result is cached ... so the test with -lz failed.
The included patch helps me compiling dovecot (only check mysql with -lz). I know that this workaround is not a general solution.
Full configure output and config.log available on demand.
Execpting this problem, dovecot works fine for us (RedHat, MySQL auth, maildir).
-- Laurent Papier - 03 88 75 80 50 Admin. systeme - Sdv Plurimedia - http://www.sdv.fr/