diff options
author | Matt Spaulding <[email protected]> | 2016-07-25 17:52:31 -0700 |
---|---|---|
committer | monsta <[email protected]> | 2016-08-01 15:52:52 +0300 |
commit | 69be34ae5e905b2db1f44f84259133d8914f675f (patch) | |
tree | f7eb81f0899b6639a7f99353c078273798bcfdd2 /configure.ac | |
parent | 1d4c6cef6f3caf9e091625ce674c31019478dd22 (diff) | |
download | mate-power-manager-69be34ae5e905b2db1f44f84259133d8914f675f.tar.bz2 mate-power-manager-69be34ae5e905b2db1f44f84259133d8914f675f.tar.xz |
Port from libunique to GtkApplication
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7d8eb04..1c24b54 100644 --- a/configure.ac +++ b/configure.ac @@ -156,10 +156,10 @@ case "$with_gtk" in 3.0) GTK_API_VERSION=3.0 GTK_REQUIRED=3.0.0 CANBERRA_GTK=libcanberra-gtk3 - LIBUNIQUE_VERSION=3.0 ;; esac +AM_CONDITIONAL([GTK3], [test $GTK_REQUIRED = 3.0.0]) AC_SUBST(GTK_API_VERSION) dnl --------------------------------------------------------------------------- @@ -190,6 +190,7 @@ PKG_CHECK_MODULES(X11, x11 xrender) PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED) +if test "$GTK_REQUIRED" != "3.0.0"; then PKG_CHECK_MODULES(UNIQUE, unique-$LIBUNIQUE_VERSION) AC_SUBST([UNIQUE_CFLAGS]) @@ -199,6 +200,8 @@ AC_SUBST([UNIQUE_LIBS]) # but it's still not removed upstream in unique 1.x, so leaving it alone # just in case. UNIQUE_CFLAGS="$UNIQUE_CFLAGS -DG_CONST_RETURN=const" +fi + PKG_CHECK_MODULES(UPOWER, upower-glib >= $UPOWER_REQUIRED) |