-# -----------------------------------------------------------
-# favourite contacts support
-# -----------------------------------------------------------
-AC_ARG_ENABLE(favourite_contacts,
- AS_HELP_STRING([--enable-favourite-contacts=@<:no/yes@:>@],
- [Enable favourite contacts]), ,
- enable_favourite_contacts=no)
-
-if test "x$enable_favourite_contacts" != "xno" -o "x$chain_enable_favourite_contacts" == "xyes"; then
- PKG_CHECK_MODULES(TELEPATHY_LOGGER,
- [
- telepathy-logger
- ], have_telepathy_logger="yes", have_telepathy_logger="no")
-
- if test "x$have_telepathy_logger" = "xyes"; then
- have_favourite_contacts="yes"
- AC_DEFINE(HAVE_FAVOURITE_CONTACTS, 1, [Define if you want favourite contacts support])
- fi
-else
- have_favourite_contacts="no"
-fi
-
-if test "x$enable_favourite_contacts" = "xyes" -a "x$have_favourite_contacts" != "xyes"; then
- AC_MSG_ERROR([Couldn't find favourite contacts dependencies.])
-fi
-
-AM_CONDITIONAL(HAVE_FAVOURITE_CONTACTS, test "x$have_telepathy_logger" = "xyes")
-