2
AC_INIT(indicator-custom, 0.0.1, ted@canonical.com)
3
AC_COPYRIGHT([Copyright 2009 Canonical])
7
AM_CONFIG_HEADER(config.h)
8
AM_INIT_AUTOMAKE(indicator-custom, 0.2.6)
19
AC_CONFIG_MACRO_DIR([m4])
21
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
23
###########################
25
###########################
27
GTK_REQUIRED_VERSION=2.12
28
INDICATOR_REQUIRED_VERSION=0.2.0
29
DBUSMENUGTK_REQUIRED_VERSION=0.1.1
31
PKG_CHECK_MODULES(INDICATOR, gtk+-2.0 >= $GTK_REQUIRED_VERSION
32
indicator >= $INDICATOR_REQUIRED_VERSION
33
dbusmenu-gtk >= $DBUSMENUGTK_REQUIRED_VERSION)
35
AC_SUBST(INDICATOR_CFLAGS)
36
AC_SUBST(INDICATOR_LIBS)
38
###########################
39
# Check to see if we're local
40
###########################
42
with_localinstall="no"
43
AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all of the files localy instead of system directories (for distcheck)]), with_localinstall=$enableval, with_localinstall=no)
45
###########################
47
###########################
49
if test "x$with_localinstall" = "xyes"; then
50
INDICATORDIR="${libdir}/indicators/2/"
51
INDICATORICONSDIR="${datadir}/libindicate/icons/"
53
INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator`
54
INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator`
56
AC_SUBST(INDICATORDIR)
57
AC_SUBST(INDICATORICONSDIR)
59
###########################
61
###########################
63
if test "x$with_localinstall" = "xyes"; then
64
DBUSSERVICEDIR="${datadir}/dbus-1/services/"
66
DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
68
AC_SUBST(DBUSSERVICEDIR)
70
###########################
72
###########################
80
###########################
82
###########################
86
Custom Indicator Configuration:
89
Indicator Dir: $INDICATORDIR