From 18ecafbab727d3ccb42254f03db6cff6f6a76850 Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 20 Jun 2016 15:11:23 +0300 Subject: GTK+3: add support for new style indicators they don't have .so files anymore, only the service binary, and they're loaded from /usr/share/unity/indicators they're supported only with libindicator3 >= 12.10 also this adds build-dep on libido (hmm, what Freud would say?) --- configure.ac | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f6e139e..3734df0 100644 --- a/configure.ac +++ b/configure.ac @@ -46,16 +46,28 @@ case "$with_gtk" in esac INDICATOR_REQUIRED_VERSION=0.3.90 +INDICATOR_NG_VERSION=12.10 INDICATOR_PKG=indicator$INDICATOR_API_VERSION-0.4 PKG_CHECK_MODULES(APPLET, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION x11 libmatepanelapplet-4.0 ) + AC_SUBST(APPLET_CFLAGS) AC_SUBST(APPLET_LIBS) -PKG_CHECK_MODULES(INDICATOR, $INDICATOR_PKG >= $INDICATOR_REQUIRED_VERSION) +PKG_CHECK_EXISTS($INDICATOR_PKG >= $INDICATOR_NG_VERSION, + [have_indicator_ng="yes"], + [have_indicator_ng="no"]) + +if test "x$with_gtk" = "x3.0" && test "x$have_indicator_ng" = "xyes"; then + PKG_CHECK_MODULES(INDICATOR, $INDICATOR_PKG >= $INDICATOR_NG_VERSION + libido3-0.1 >= 13.10, + [AC_DEFINE(HAVE_INDICATOR_NG, 1, "New style indicators support")]) +else + PKG_CHECK_MODULES(INDICATOR, $INDICATOR_PKG >= $INDICATOR_REQUIRED_VERSION) +fi AC_SUBST(INDICATOR_CFLAGS) AC_SUBST(INDICATOR_LIBS) -- cgit v1.2.1