summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2016-03-11 08:08:05 (GMT)
committerOlliver Schinagl <oliver@schinagl.nl>2016-03-18 20:46:27 (GMT)
commit4f44f82090011f76f3ce5419f6e2b1787e4c1ddb (patch)
tree0231c6178395e37af93fdb7a28a095367b346fa5
parent32fb990072022f7668930473e07c3ae0eb3d8215 (diff)
downloadengagement-4f44f82090011f76f3ce5419f6e2b1787e4c1ddb.zip
engagement-4f44f82090011f76f3ce5419f6e2b1787e4c1ddb.tar.gz
engagement-4f44f82090011f76f3ce5419f6e2b1787e4c1ddb.tar.bz2
Add support for ical to configure.ac
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
-rw-r--r--configure.ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4396242..6b67627 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,6 +80,26 @@ AC_FUNC_MALLOC
AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB([dl], [dlopen], LIBDL="-ldl")])
AC_SUBST(LIBDL)
+# Check for libical
+AC_ARG_WITH([ical], AS_HELP_STRING([--without-ical],
+ [Disable iCalendar/caldav support \
+ (default is with)]))
+AS_IF([test "x${with_ical}" != "xno" ],
+ AC_CHECK_LIB([ical], [icalparser_new],
+ AC_CHECK_HEADERS([libical/ical.h],
+ LIBICAL="-lical" [have_ical=yes],
+ [have_ical=no]),
+ [have_ical=no])
+ AC_SUBST(LIBICAL),
+ [have_ical=no]
+)
+AS_IF([test "x${have_ical}" = "xyes"],
+ [],
+ [AS_IF([test "x${with_ical}" = "xyes"],
+ [AC_MSG_ERROR([Please install libical and its headers])]
+ )]
+)
+
AC_CONFIG_FILES([
Makefile
data/Makefile
@@ -115,6 +135,8 @@ echo "Building documentation...: ${build_doc}"
echo "Building tests...........: ${have_tests}"
echo "Generate coverage .......: ${have_lcov}"
echo
+echo "Using libical ...........: ${have_ical}"
+echo
echo "Installation.............: make install (as root if needed, with 'su' or 'sudo')"
echo " prefix.................: $prefix"
echo