summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2014-09-09 18:37:15 +0100
committerRoss Lagerwall <rosslagerwall@gmail.com>2014-10-13 22:13:29 +0100
commit33d1ba069ac55f8fcfe50f67197e09b1285d4350 (patch)
tree9e38fc742497b2a8eda7d2f40a31457a57107ece /configure.ac
parent7d3d832326f5114c517100dae6bafbadf5e6648f (diff)
downloadgvfs-33d1ba069ac55f8fcfe50f67197e09b1285d4350.tar.gz
Build shared code for gphoto2 and mtp as a convenience lib
Deduplicate code between gphoto2 and mtp by creating a convenience library call libgvfscommon-gphoto2 which is only built if either libmtp is used or gphoto2 with gudev is used. https://bugzilla.gnome.org/show_bug.cgi?id=736285
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 79ea3af2..021bf9de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -557,6 +557,9 @@ AC_SUBST(LIBMTP_CFLAGS)
AC_SUBST(LIBMTP_LIBS)
AM_CONDITIONAL(USE_LIBMTP, [test "$msg_libmtp" = "yes"])
+AM_CONDITIONAL(USE_GPHOTO2UTILS,
+ [test "$msg_libmtp" = "yes" -o \( "$msg_gphoto2" = "yes" -a "$msg_gudev" = "yes" \)])
+
dnl ==========================================================================
dnl Samba 3.0