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], [authentication=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
# Reconnection
# Reconnection
AC_MSG_CHECKING([if reconnection of client is enabled])
AC_MSG_CHECKING([if reconnection of client is enabled])
AC_ARG_ENABLE(reconnect,
AC_ARG_ENABLE(reconnect,
...
@@ -416,6 +399,34 @@ fi
...
@@ -416,6 +399,34 @@ fi
# a string with all the compiled MAPI function libraries
# a string with all the compiled MAPI function libraries
AC_SUBST(MAPI_FUNC_LIBS)
AC_SUBST(MAPI_FUNC_LIBS)
# Authentication
AC_MSG_CHECKING([if authentication is enabled])
AC_ARG_ENABLE(authentication,
AS_HELP_STRING([--enable-authentication], [Enable support for authentication]),
[
if test x$dimapi = xfalse; then
if test x$enableval = xyes; then
AC_MSG_ERROR(Please use --enable-authentication only in conjunction with --enable-dimapi. You don't need to enable authentication if you are not going to use DiMAPI)
fi
fi
if test x$anonflib = xfalse; then
if test x$enableval = xyes; then
AC_MSG_ERROR(Please use --enable-anonflib with authentication because it is neccessary for anonymization functions)
fi
fi
case "${enableval}" in
yes) authentication=true ;;
no) authentication=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-authentication) ;;
esac
], [authentication=false])
AM_CONDITIONAL(BINARY_AUTHENTICATION, test x$authentication = xtrue)
if test x$authentication = xtrue; then
AC_DEFINE(WITH_AUTHENTICATION, 1, [support for authentication])