summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2015-09-01 15:47:44 +0200
committerDebarshi Ray <debarshir@gnome.org>2015-09-08 17:01:14 +0200
commitbb33ba6e740e9a3d6be6383db80dd8307d0abb14 (patch)
treebd09e3a29fbbe38e154d8ff9aa549f16b3994568 /configure.ac
parentdfe40af0333f1d39a313d4b6d5102fe41e87c150 (diff)
downloadgvfs-bb33ba6e740e9a3d6be6383db80dd8307d0abb14.tar.gz
Add GVfsBackendGoogle
Based on code written by Thibault Saunier. https://bugzilla.gnome.org/show_bug.cgi?id=739008
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac23
1 files changed, 22 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 977d93f3..1ede7820 100644
--- a/configure.ac
+++ b/configure.ac
@@ -61,7 +61,7 @@ GTK_DOC_CHECK
DISTCHECK_CONFIGURE_FLAGS="--enable-gtk-doc"
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
-PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.45.0 gobject-2.0 gmodule-no-export-2.0 gio-unix-2.0 gio-2.0])
+PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.45.7 gobject-2.0 gmodule-no-export-2.0 gio-unix-2.0 gio-2.0])
PKG_CHECK_MODULES([DBUS], [dbus-1])
@@ -401,6 +401,26 @@ AC_SUBST(GOA_CFLAGS)
AM_CONDITIONAL([USE_GOA], [test "$msg_goa" = "yes"])
+dnl ****************************************************
+dnl *** Check if we should build with Google backend ***
+dnl ****************************************************
+AC_ARG_ENABLE([google], [AS_HELP_STRING([--disable-google],[build without Google backend])])
+msg_google=no
+
+if test "x$enable_google" != "xno" ; then
+ PKG_CHECK_EXISTS([goa-1.0 >= 3.17.1 libgdata >= 0.17.3], [msg_google=yes])
+
+ if test "x$msg_google" = "xyes"; then
+ PKG_CHECK_MODULES([GOOGLE], [goa-1.0 libgdata])
+ AC_DEFINE([HAVE_GOOGLE], 1, [Define to 1 if Google is going to be built])
+ fi
+fi
+
+AC_SUBST(GOOGLE_LIBS)
+AC_SUBST(GOOGLE_CFLAGS)
+
+AM_CONDITIONAL(USE_GOOGLE, [test "$msg_google" = "yes"])
+
dnl *************************
dnl *** Check for gphoto2 ***
dnl *************************
@@ -908,6 +928,7 @@ echo "
hotplug backend: $msg_hotplug_backend
Blu-ray metadata support: $msg_bluray
+ Google support: $msg_google
HTTP/WebDAV support: $msg_http
Samba support: $msg_samba
FUSE support: $msg_fuse