1 dnl Check for PLAIN (and therefore crypt)
3 AC_DEFUN([SASL_PLAIN_CHK],[
4 AC_REQUIRE([SASL2_CRYPT_CHK])
7 AC_ARG_ENABLE(plain, [ --enable-plain enable PLAIN authentication [yes] ],
12 if test "$plain" != no; then
13 dnl In order to compile plain, we need crypt.
14 if test "$cmu_have_crypt" = yes; then
20 AC_MSG_CHECKING(PLAIN)
21 if test "$plain" != no; then
22 AC_MSG_RESULT(enabled)
23 SASL_MECHS="$SASL_MECHS libplain.la"
24 if test "$enable_static" = yes; then
25 SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
26 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/plain.c"
27 AC_DEFINE(STATIC_PLAIN,[],[Link PLAIN Staticly])
30 AC_MSG_RESULT(disabled)