You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
36 lines
1.0 KiB
dnl build with exchange support
|
|
|
|
AC_MSG_CHECKING([if tdelibs has recent webdav])
|
|
AC_LANG_SAVE
|
|
kde_safe_cppflags=$CPPFLAGS
|
|
CPPFLAGS="$CPPFLAGS $all_includes"
|
|
AC_LANG_CPLUSPLUS
|
|
AC_TRY_COMPILE(
|
|
[#include <tdeio/http.h>],
|
|
[
|
|
int method = (int) TDEIO::DAV_SUBSCRIBE;
|
|
],
|
|
[
|
|
ac_has_recent_webdav="yes"
|
|
AC_MSG_RESULT([yes])
|
|
],
|
|
[
|
|
ac_has_recent_webdav="no"
|
|
AC_MSG_RESULT([no])
|
|
])
|
|
CPPFLAGS=$kde_safe_cppflags
|
|
AC_LANG_RESTORE
|
|
|
|
ac_use_exchange="no"
|
|
AC_ARG_ENABLE(exchange,
|
|
[ --disable-exchange disable Microsoft Exchange 2000 support for korganizer [default=enable]], ac_use_exchange=$enableval, ac_use_exchange=yes)
|
|
AM_CONDITIONAL(include_exchange_SUBDIR, test "x$ac_use_exchange" = "xyes" && test "x$ac_has_recent_webdav" = "xyes")
|
|
|
|
if test "x$ac_use_exchange" != "xyes" || test "x$ac_has_recent_webdav" != "xyes"; then
|
|
DO_NOT_COMPILE="$DO_NOT_COMPILE libkpimexchange"
|
|
AC_MSG_WARN([Exchange 2000 support disabled])
|
|
else
|
|
AC_DEFINE(TDEPIM_ENABLE_EXCHANGE, 1, [Define if you want Microsoft Exchange 2000 support])
|
|
fi
|
|
|