1dnl Check for PLAIN (and therefore crypt) 2 3AC_DEFUN([SASL_PLAIN_CHK],[ 4AC_REQUIRE([SASL2_CRYPT_CHK]) 5 6dnl PLAIN 7 AC_ARG_ENABLE(plain, [ --enable-plain enable PLAIN authentication [yes] ], 8 plain=$enableval, 9 plain=yes) 10 11 PLAIN_LIBS="" 12 if test "$plain" != no; then 13 dnl In order to compile plain, we need crypt. 14 if test "$cmu_have_crypt" = yes; then 15 PLAIN_LIBS=$LIB_CRYPT 16 fi 17 fi 18 AC_SUBST(PLAIN_LIBS) 19 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 \$(top_srcdir)/plugins/plain.c" 27 AC_DEFINE(STATIC_PLAIN,[],[Link PLAIN Staticly]) 28 fi 29 else 30 AC_MSG_RESULT(disabled) 31 fi 32]) 33