+AC_MSG_CHECKING(how to send mail)
+AC_ARG_WITH(mail,
+[ --with-mail=name How to send mail; one of:
+ sendmail (the default)],
+[],
+[withval="sendmail"])
+if test "x$withval" = "xsendmail" ; then
+ AC_MSG_RESULT(sendmail)
+ MODULE_OBJS="$MODULE_OBJS mail-sendmail.\$(OBJEXT)"
+else
+ AC_MSG_ERROR([Unknown mail method $withval])
+fi
+