From 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkpimexchange/configure.in.in | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 libkpimexchange/configure.in.in (limited to 'libkpimexchange/configure.in.in') diff --git a/libkpimexchange/configure.in.in b/libkpimexchange/configure.in.in new file mode 100644 index 000000000..4c6a71603 --- /dev/null +++ b/libkpimexchange/configure.in.in @@ -0,0 +1,35 @@ +dnl build with exchange support + +AC_MSG_CHECKING([if kdelibs has recent webdav]) +AC_LANG_SAVE +kde_safe_cppflags=$CPPFLAGS +CPPFLAGS="$CPPFLAGS $all_includes" +AC_LANG_CPLUSPLUS +AC_TRY_COMPILE( +[#include ], +[ + int method = (int) KIO::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(KDEPIM_ENABLE_EXCHANGE, 1, [Define if you want Microsoft Exchange 2000 support]) +fi + -- cgit v1.2.1