aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am6
-rw-r--r--src/empathy-auto-salut-account-helper.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index e21b348bb..c77b63a91 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,7 +2,8 @@ include $(top_srcdir)/tools/flymake.mk
CPPFLAGS_COMMON = \
$(EMPATHY_CFLAGS) \
- $(GTK_CFLAGS) \
+ $(EDS_CFLAGS) \
+ $(GTK_CFLAGS) \
$(ERROR_CFLAGS) \
-I$(top_srcdir) \
-DG_LOG_DOMAIN=\"empathy\" \
@@ -25,7 +26,7 @@ LDADD = \
$(top_builddir)/libempathy/libempathy.la \
$(top_builddir)/extensions/libemp-extensions.la \
$(LIBNOTIFY_LIBS) \
- $(UNIQUE_LIBS) \
+ $(UNIQUE_LIBS) \
$(EMPATHY_LIBS) \
$(GTK_LIBS) \
$(LIBCHAMPLAIN_LIBS) \
@@ -46,6 +47,7 @@ libempathy_accounts_common_la_SOURCES = \
libempathy_accounts_common_la_LIBADD = \
$(top_builddir)/libempathy-gtk/libempathy-gtk.la \
+ $(EDS_LIBS) \
$(LIBNOTIFY_LIBS) \
$(UNIQUE_LIBS) \
$(EMPATHY_LIBS) \
diff --git a/src/empathy-auto-salut-account-helper.c b/src/empathy-auto-salut-account-helper.c
index 23484dd45..57d39879e 100644
--- a/src/empathy-auto-salut-account-helper.c
+++ b/src/empathy-auto-salut-account-helper.c
@@ -26,7 +26,10 @@
#include <telepathy-glib/account-manager.h>
#include <telepathy-glib/util.h>
+
+#if HAVE_EDS
#include <libebook/e-book.h>
+#endif
#include <libempathy/empathy-account-settings.h>
@@ -65,6 +68,7 @@ EmpathyAccountSettings *
create_salut_account_settings (void)
{
EmpathyAccountSettings *settings;
+#if HAVE_EDS
EBook *book;
EContact *contact;
gchar *nickname = NULL;
@@ -73,10 +77,12 @@ create_salut_account_settings (void)
gchar *email = NULL;
gchar *jid = NULL;
GError *error = NULL;
+#endif
settings = empathy_account_settings_new ("salut", "local-xmpp",
_("People nearby"));
+#if HAVE_EDS
/* Get self EContact from EDS */
if (!e_book_get_self (&contact, &book, &error))
{
@@ -117,6 +123,7 @@ create_salut_account_settings (void)
g_free (jid);
g_object_unref (contact);
g_object_unref (book);
+#endif
return settings;
}