--- configure.in.old 2005-09-19 22:07:56.000000000 +0200 +++ configure.in 2005-09-19 22:09:00.000000000 +0200 @@ -600,14 +600,14 @@ AM_CONDITIONAL(USE_SSL, test x$need_ssl = xyes) AC_ARG_WITH(sasl, AC_HELP_STRING([--with-sasl[=PFX]], [Use Cyrus SASL 2 network security library]), - [ - if test "$need_socket" != "yes" - then - AC_MSG_ERROR([SASL support is only useful with POP or IMAP support]) - fi - + [ if test "$with_sasl" != "no" then + if test "$need_socket" != "yes" + then + AC_MSG_ERROR([SASL support is only useful with POP or IMAP support]) + fi + if test "$with_sasl" != "yes" then CPPFLAGS="$CPPFLAGS -I$with_sasl/include"