reference appindicator

This commit is contained in:
Hylke Bons 2011-06-12 08:10:29 -07:00 committed by Hylke
parent 4ab5aa335e
commit 8ffb32716a
2 changed files with 25 additions and 0 deletions

View file

@ -19,6 +19,7 @@ using System;
using System.IO;
using System.Timers;
using AppIndicator;
using Gtk;
using Mono.Unix;

View file

@ -95,6 +95,30 @@ AC_SUBST(WEBKIT_SHARP_LIBS)
SHAMROCK_CHECK_NUNIT
APPINDICATOR_REQUIRED=0.0.7
AC_ARG_ENABLE(appindicator,
AS_HELP_STRING([--enable-appindicator[=@<:@no/auto/yes@:>@]],[Build support for application indicators ]),
[enable_appindicator=$enableval],
[enable_appindicator="auto"])
if test x$enable_appindicator = xauto ; then
PKG_CHECK_EXISTS([appindicator-0.1 >= $APPINDICATOR_REQUIRED],
enable_appindicator="yes",
enable_appindicator="no")
fi
if test x$enable_appindicator = xyes ; then
PKG_CHECK_EXISTS([appindicator-0.1 >= $APPINDICATOR_REQUIRED],,
AC_MSG_ERROR([appindicator-0.1 is not installed]))
PKG_CHECK_MODULES(APP_INDICATOR,
appindicator-0.1 >= $APPINDICATOR_REQUIRED)
AC_SUBST(APP_INDICATOR_CFLAGS)
AC_SUBST(APP_INDICATOR_LIBS)
AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
fi
AM_CONDITIONAL(HAVE_APP_INDICATOR, test x"$enable_appindicator" = xyes)
dnl Get nautilus extensions directory
SPARKLESHARE_NAUTILUS_PYTHON