Thanks a lot to everyone who has replied to my problem. After searching
through various archives ive found the following, which fixed the problem:
in authlibs/Makefile
change "libauth_authvchkpw_a_LIBADD ="
to
"libauth_authvchkpw_a_LIBADD = -L/usr/lib/mysql -lmysqlclient"
an "authvchkpw_LDFLAGS ="
to
"authvchkpw_LDFLAGS = -L/usr/lib/mysql -lmysqlclient"
Then it fails once, and I have to edit authlib/authvchkpw.libsdep to
include -L/var/lib/mysql -lmysqlclient
Hope this helps anyone with the same problem. Seems to be very bad coding
or something in the Courier IMAP package... but it works now for the purpose
I wanted, so thats ok.
- Daniel (@iv2.co.uk)