AC_DEFUN([SASL_PLAIN_CHK],[
AC_REQUIRE([SASL2_CRYPT_CHK])
AC_ARG_ENABLE(plain, [ --enable-plain enable PLAIN authentication [yes] ],
plain=$enableval,
plain=yes)
PLAIN_LIBS=""
if test "$plain" != no; then
if test "$cmu_have_crypt" = yes; then
PLAIN_LIBS=$LIB_CRYPT
fi
fi
AC_SUBST(PLAIN_LIBS)
AC_MSG_CHECKING(PLAIN)
if test "$plain" != no; then
AC_MSG_RESULT(enabled)
SASL_MECHS="$SASL_MECHS libplain.la"
if test "$enable_static" = yes; then
SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/plain.o"
AC_DEFINE(STATIC_PLAIN,[],[Link PLAIN Staticly])
fi
else
AC_MSG_RESULT(disabled)
fi
])