From db10696b11bcc85159bbce94174f7f78f92f5007 Mon Sep 17 00:00:00 2001 From: Alvaro Soliverez Date: Thu, 9 Feb 2012 18:13:28 -0300 Subject: [PATCH] Fix rest dependency detection in android --- configure.ac | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 0402691..5cb8009 100644 --- a/configure.ac +++ b/configure.ac @@ -71,7 +71,7 @@ AC_MSG_RESULT($platform) AM_CONDITIONAL([OS_WINDOWS], [test "$platform" = "win32"]) -YTS_PC_MODULES="$YTS_PC_MODULES telepathy-glib $TELEPATHY_VERSION telepathy-ytstenut-glib >= 0.2.0 rest-0.7 >= 0.7 glib-2.0 gobject-2.0" +YTS_PC_MODULES="$YTS_PC_MODULES telepathy-glib $TELEPATHY_VERSION telepathy-ytstenut-glib >= 0.2.0 glib-2.0 gobject-2.0" if test "$platform" = "win32"; then YTS_PC_MODULES="$YTS_PC_MODULES gio-windows-2.0" @@ -79,6 +79,22 @@ else YTS_PC_MODULES="$YTS_PC_MODULES gio-unix-2.0" fi +# We need to know about the host architecture to avoid spurious +# warnings. +AC_CANONICAL_HOST +AB_INIT + +case "${host}" in + *-android*) + YTS_PC_MODULES="$YTS_PC_MODULES rest >= 0.7" + ;; + *) + YTS_PC_MODULES="$YTS_PC_MODULES rest-0.7 >= 0.7" + ;; +esac + + + AC_ARG_ENABLE([debug], [AC_HELP_STRING([--enable-debug], [Enable debugging code])], -- 1.7.7.3