Commit 64c84e05 authored by 's avatar

added flag for authentication


git-svn-id: file:///home/svn/mapi/trunk@1127 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 32b672d2
......@@ -183,7 +183,6 @@ AC_DEFINE(MAPICOMMD_SSL_CERT_FILE, "mapicommd_cert.pem", [mapicommd SSL certific
# development defines - leave them enabled for now
AC_DEFINE(DEBUG, 1, [keep debugging on during beta testing])
AC_DEFINE(VALGRIND, 1, [easier debugging using valgrind])
#AC_DEFINE(WITH_AUTHENTICATION, 1, [support for authentication])
# mapi user group name
AC_ARG_VAR(MAPI_GROUP, [Name of the MAPI user group (default: 'mapi')])
......@@ -212,6 +211,23 @@ else
AC_MSG_RESULT(no)
fi
# Authentication
AC_MSG_CHECKING([if authentication is enabled])
AC_ARG_ENABLE(authentication,
AS_HELP_STRING([--enable-authentication], [Enable support for authentication]),
[case "${enableval}" in
yes) authentication=true ;;
no) authentication=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-authentication) ;;
esac], [dimapi=false])
AM_CONDITIONAL(BINARY_AUTHENTICATION, test x$authentication = xtrue)
if test x$authentication = xtrue; then
AC_DEFINE(WITH_AUTHENTICATION, 1, [support for authentication])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
# SSL sockets (only for DiMAPI)
if test x$dimapi = xtrue; then
AC_MSG_CHECKING([if SSL for DiMAPI is enabled])
......@@ -765,4 +781,7 @@ fi
if test x$dag = xtrue; then
echo "option: support for DAG cards"
fi
if test x$authentication = xtrue; then
echo "option: authentication on"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment