From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
Subject: Link libcamelexchange against ical explicitly.
Forwarded: yes
Bug: 

ical appears to be required by libcamelexchange during build, yet is not
tested for in configure nor added to LIBADD; fix this so the build completes.

Index: evolution-exchange-3.0.2/camel/Makefile.am
===================================================================
--- evolution-exchange-3.0.2.orig/camel/Makefile.am	2010-08-16 03:54:52.000000000 -0400
+++ evolution-exchange-3.0.2/camel/Makefile.am	2011-06-03 09:58:12.323389811 -0400
@@ -41,6 +41,7 @@
 
 libcamelexchange_la_LIBADD = \
 	$(top_builddir)/tools/libevolution-exchange-shared.la \
+	$(ICAL_LIBS) \
 	$(EVOLUTION_PLUGIN_LIBS) \
 	$(LDAP_LIBS) \
 	$(SOCKET_LIBS) \
Index: evolution-exchange-3.0.2/configure.ac
===================================================================
--- evolution-exchange-3.0.2.orig/configure.ac	2011-04-25 03:03:03.000000000 -0400
+++ evolution-exchange-3.0.2/configure.ac	2011-06-03 09:58:12.323389811 -0400
@@ -266,6 +266,13 @@
 AC_SUBST(EVOLUTION_SHELL_CFLAGS)
 AC_SUBST(EVOLUTION_SHELL_LIBS)
 
+dnl ***************
+dnl Check for ICal
+dnl ***************
+PKG_CHECK_MODULES(ICAL, libical)
+AC_SUBST(ICAL_CFLAGS)
+AC_SUBST(ICAL_LIBS)
+
 dnl *********************
 dnl Pilot license support
 dnl *********************
