~indicator-applet-developers/indicator-session/trunk.0.1

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Ted Gould
  • Date: 2009-07-27 04:47:27 UTC
  • mfrom: (9.1.94 fusa.libindicator)
  • Revision ID: ted@canonical.com-20090727044727-m04ul5d8sxqt2pd4
Merging in the branch to port everything to libindicator and fleshing thigns out.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
 
AC_INIT(src/indicator-fusa.c)
 
2
AC_INIT(src/indicator-sus.c)
3
3
 
4
4
AC_PREREQ(2.53)
5
5
 
6
6
AM_CONFIG_HEADER(config.h)
7
 
AM_INIT_AUTOMAKE(indicator-fusa, 0.1)
 
7
AM_INIT_AUTOMAKE(indicator-sus, 0.1dev)
8
8
 
9
9
AM_MAINTAINER_MODE
10
10
 
22
22
###########################
23
23
 
24
24
GTK_REQUIRED_VERSION=2.12
25
 
PANEL_REQUIRED_VERSION=2.0.0
 
25
INDICATOR_REQUIRED_VERSION=0.2.0
 
26
DBUSMENUGTK_REQUIRED_VERSION=0.0.0
26
27
 
27
 
PKG_CHECK_MODULES(APPLET, gtk+-2.0 >= $GTK_REQUIRED_VERSION)
 
28
PKG_CHECK_MODULES(APPLET, gtk+-2.0 >= $GTK_REQUIRED_VERSION
 
29
                          indicator >= $INDICATOR_REQUIRED_VERSION
 
30
                                                  dbusmenu-gtk >= $DBUSMENUGTK_REQUIRED_VERSION)
28
31
AC_SUBST(APPLET_CFLAGS)
29
32
AC_SUBST(APPLET_LIBS)
30
33
 
 
34
DBUSMENUGLIB_REQUIRED_VERSION=0.0.0
 
35
 
 
36
PKG_CHECK_MODULES(STATUSSERVICE, dbusmenu-glib >= $DBUSMENUGLIB_REQUIRED_VERSION)
 
37
 
 
38
AC_SUBST(STATUSERVICE_CFLAGS)
 
39
AC_SUBST(STATUSERVICE_LIBS)
 
40
 
 
41
PKG_CHECK_MODULES(USERSSERVICE, dbusmenu-glib >= $DBUSMENUGLIB_REQUIRED_VERSION)
 
42
 
 
43
AC_SUBST(USERSERVICE_CFLAGS)
 
44
AC_SUBST(USERSERVICE_LIBS)
 
45
 
 
46
PKG_CHECK_MODULES(SESSIONSERVICE, dbusmenu-glib >= $DBUSMENUGLIB_REQUIRED_VERSION)
 
47
 
 
48
AC_SUBST(SESSIONERVICE_CFLAGS)
 
49
AC_SUBST(SESSIONERVICE_LIBS)
 
50
 
 
51
PKG_CHECK_MODULES(GTKLOGOUTHELPER, gtk+-2.0 >= $GTK_REQUIRED_VERSION
 
52
                                   polkit-gnome)
 
53
 
 
54
AC_SUBST(GTKLOGOUTHELPER_CFLAGS)
 
55
AC_SUBST(GTKLOGOUTHELPER_LIBS)
 
56
 
 
57
###########################
 
58
# Check to see if we're local
 
59
###########################
 
60
 
 
61
with_localinstall="no"
 
62
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)
 
63
 
 
64
###########################
 
65
# Indicator Info
 
66
###########################
 
67
 
 
68
if test "x$with_localinstall" = "xyes"; then
 
69
        INDICATORDIR="${libdir}/indicators/2/"
 
70
else
 
71
        INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator`
 
72
fi
 
73
AC_SUBST(INDICATORDIR)
 
74
 
 
75
###########################
 
76
# DBus Service Info
 
77
###########################
 
78
 
 
79
if test "x$with_localinstall" = "xyes"; then
 
80
        DBUSSERVICEDIR="${datadir}/dbus-1/services/"
 
81
else
 
82
        DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
 
83
fi
 
84
AC_SUBST(DBUSSERVICEDIR)
 
85
 
31
86
###########################
32
87
# Files
33
88
###########################
35
90
AC_OUTPUT([
36
91
Makefile
37
92
src/Makefile
 
93
src/gtk-dialog/Makefile
 
94
data/Makefile
38
95
])
39
96
 
40
97
###########################
43
100
 
44
101
AC_MSG_NOTICE([
45
102
 
46
 
FUSA Indicator Configuration:
 
103
SUS Indicator Configuration:
47
104
 
48
105
        Prefix:        $prefix
49
106
])