summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2016-07-22 01:15:08 +0200
committerZenWalker <[email protected]>2016-07-22 01:15:08 +0200
commit6728de45e0f2f02497fa8278e24dcee5ae0a63fb (patch)
treea25bb2b72510e8f73afdb218d7f3e7461197fccd /configure.ac
parenta8568427b36439ca1a16e26088788cf39e611840 (diff)
downloadmate-user-share-6728de45e0f2f02497fa8278e24dcee5ae0a63fb.tar.bz2
mate-user-share-6728de45e0f2f02497fa8278e24dcee5ae0a63fb.tar.xz
gtk3: Port from libunique to GtkApplication
based on gnome-user-share commit: https://git.gnome.org/browse/gnome-user-share/commit/?id=70577007a8ecce66bf6b547bda863235bc1d6f48 Fixes #38
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 03e8954..fd7fb30 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,7 +81,6 @@ case "$with_gtk" in
3.0) GTK_API_VERSION=3.0
GTK_REQUIRED_VERSION=3.0.0
CANBERRA_API_VERSION=3
- UNIQUE_API_VERSION=3.0
;;
esac
@@ -91,7 +90,12 @@ PKG_CHECK_MODULES(USER_SHARE, glib-2.0 >= 2.15.2 gio-2.0 >= 2.26 gdk-x11-$GTK_AP
AC_SUBST(USER_SHARE_CFLAGS)
AC_SUBST(USER_SHARE_LIBS)
-PKG_CHECK_MODULES(USER_SHARE_CONFIG, glib-2.0 >= 2.15.2 gio-2.0 >= 2.25.0 gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION unique-$UNIQUE_API_VERSION)
+if test "$GTK_REQUIRED_VERSION" = "3.0.0"; then
+ PKG_CHECK_MODULES(USER_SHARE_CONFIG, glib-2.0 >= 2.15.2 gio-2.0 >= 2.25.0 gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
+else
+ PKG_CHECK_MODULES(USER_SHARE_CONFIG, glib-2.0 >= 2.15.2 gio-2.0 >= 2.25.0 gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION unique-$UNIQUE_API_VERSION)
+fi
+
AC_SUBST(USER_SHARE_CONFIG_CFLAGS)
AC_SUBST(USER_SHARE_CONFIG_LIBS)