summaryrefslogtreecommitdiffstats
path: root/configure.in.in
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-11 06:47:44 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-11 06:47:44 +0000
commitdaeeafd3a50510881ffbc870631b91d5c0a2d662 (patch)
treece9821cefa57cc1628a81ed4159affb7c25fe01b /configure.in.in
parentd4f48636cc2631625434326e146d04f503d0247a (diff)
downloadtdepim-daeeafd3a50510881ffbc870631b91d5c0a2d662.tar.gz
tdepim-daeeafd3a50510881ffbc870631b91d5c0a2d662.zip
Fixed FTBFS with libical >= 0.46
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1174005 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'configure.in.in')
-rw-r--r--configure.in.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in
index cd92d3cb2..07e4c251f 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -121,6 +121,28 @@ if test $ac_cv_struct_tm_gmtoff = yes; then
AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if you have a tm_gmtoff member in struct tm])
fi
+dnl Check libical API version
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+cxx_flags_safe="$CXXFLAGS"
+cflags_safe="$CFLAGS"
+CXXFLAGS="$CXXFLAGS -I$ac_cv_sword_incdir"
+CFLAGS="$CFLAGS -I$ac_cv_sword_incdir"
+AC_MSG_CHECKING([for libical >= 0.46])
+AC_TRY_COMPILE([extern "C" {
+ #include <libical/ical.h>
+ #include <libical/icalparser.h>
+ #include <libical/icalrestriction.h>
+}
+],[icalattach *attach;
+ attach = icalattach_new_from_data ( (const char *)"TEST", 0, 0 );],
+[AC_MSG_RESULT(yes)
+AC_DEFINE(USE_LIBICAL_0_46,1,[yes])],
+AC_MSG_RESULT(no))
+CXXFLAGS="$cxx_flags_safe"
+CFLAGS="$cflags_safe"
+AC_LANG_RESTORE
+
AC_LANG_PUSH(C++)
AC_CACHE_CHECK(for stl coping with namespace std, ac_cv_var_stlnamespace,
AC_TRY_COMPILE([