* Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
*/
+#include <config.h>
+
#include <glib.h>
-#include <glib/gi18n.h>
+#include <glib/gi18n-lib.h>
#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>
-#include <libempathy-gtk/empathy-conf.h>
#define DEBUG_FLAG EMPATHY_DEBUG_ACCOUNT
#include <libempathy/empathy-debug.h>
create_salut_account_settings (void)
{
EmpathyAccountSettings *settings;
+#if HAVE_EDS
EBook *book;
EContact *contact;
gchar *nickname = NULL;
gchar *email = NULL;
gchar *jid = NULL;
GError *error = NULL;
+#endif
- settings = empathy_account_settings_new ("salut", "local-xmpp",
+ settings = empathy_account_settings_new ("salut", "local-xmpp", NULL,
_("People nearby"));
+#if HAVE_EDS
/* Get self EContact from EDS */
if (!e_book_get_self (&contact, &book, &error))
{
g_free (jid);
g_object_unref (contact);
g_object_unref (book);
+#endif
return settings;
}