Commit 810d25d7 authored by 's avatar

Some more messages in configure script


git-svn-id: file:///home/svn/mapi/trunk@1371 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent bdf12c63
......@@ -211,23 +211,6 @@ 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], [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
AC_MSG_CHECKING([if reconnection of client is enabled])
AC_ARG_ENABLE(reconnect,
......@@ -416,6 +399,34 @@ fi
# a string with all the compiled MAPI function libraries
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])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
# misc options
......
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