~ubuntu-branches/ubuntu/trusty/indicator-session/trusty-updates

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Charles Kerr, Lars Uebernickel, Łukasz 'sil2100' Zemczak, Ubuntu daily release
  • Date: 2013-07-16 02:02:05 UTC
  • mfrom: (1.1.64)
  • Revision ID: package-import@ubuntu.com-20130716020205-84ig434y92hxi2g8
Tags: 12.10.5+13.10.20130716-0ubuntu1
[ Charles Kerr ]
* This is the GMenu, login1 version of indicator-session. This
  resubmission removes the prerequisite branch because the entire diff
  is contained in this ng-login1 branch.

[ Lars Uebernickel ]
* This is the GMenu, login1 version of indicator-session. This
  resubmission removes the prerequisite branch because the entire diff
  is contained in this ng-login1 branch.

[ Łukasz 'sil2100' Zemczak ]
* Add the python build-dep, as gdbus-codegen needs it to work
  properly.

[ Ubuntu daily release ]
* Automatic snapshot from revision 400

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT([indicator-session],[12.10.4])
2
 
AC_CONFIG_SRCDIR([src/session-menu-mgr.c])
3
 
AM_INIT_AUTOMAKE([check-news])
4
 
AC_CONFIG_HEADERS([config.h])
5
 
 
6
 
AM_MAINTAINER_MODE
7
 
 
8
 
GLIB_GSETTINGS
9
 
 
10
 
IT_PROG_INTLTOOL([0.35.0])
11
 
 
12
 
AC_ISC_POSIX
13
 
AC_PROG_CC
14
 
AC_PROG_CXX
15
 
AM_PROG_CC_C_O
16
 
AC_HEADER_STDC
17
 
LT_INIT
18
 
 
19
 
AC_SUBST(VERSION)
20
 
AC_CONFIG_MACRO_DIR([m4])
21
 
 
22
 
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
23
 
 
24
 
###########################
25
 
# Dependencies 
26
 
###########################
27
 
 
28
 
GIO_REQUIRED_VERSION=2.33
29
 
GLIB_REQUIRED_VERSION=2.35.4
30
 
GTK_REQUIRED_VERSION=3.0
31
 
INDICATOR_REQUIRED_VERSION=0.3.19
32
 
DBUSMENUGTK_REQUIRED_VERSION=0.5.90
33
 
DBUSTEST_REQUIRED_VERSION=0.0.5
34
 
DBUSMENUGLIB_REQUIRED_VERSION=0.1.1
35
 
 
36
 
 
37
 
PKG_CHECK_MODULES(APPLET, glib-2.0 >= $GLIB_REQUIRED_VERSION
38
 
                          gtk+-3.0 >= $GTK_REQUIRED_VERSION
39
 
                          indicator3-0.4 >= $INDICATOR_REQUIRED_VERSION
40
 
                          dbusmenu-gtk3-0.4 >= $DBUSMENUGTK_REQUIRED_VERSION)
41
 
AC_SUBST(APPLET_CFLAGS)
42
 
AC_SUBST(APPLET_LIBS)
43
 
 
44
 
 
45
 
PKG_CHECK_MODULES(SESSIONSERVICE, glib-2.0 >= $GLIB_REQUIRED_VERSION
46
 
                                  dbusmenu-glib-0.4 >= $DBUSMENUGLIB_REQUIRED_VERSION
47
 
                                  dbusmenu-gtk3-0.4 >= $DBUSMENUGTK_REQUIRED_VERSION
48
 
                                  gio-unix-2.0
49
 
                                  indicator3-0.4 >= $INDICATOR_REQUIRED_VERSION)
50
 
AC_SUBST(SESSIONERVICE_CFLAGS)
51
 
AC_SUBST(SESSIONERVICE_LIBS)
52
 
 
53
 
AC_SUBST(GUDEV_CFLAGS)
54
 
AC_SUBST(GUDEV_LIBS)
55
 
 
56
 
###########################
57
 
# GTK Logout Helper
58
 
###########################
59
 
 
60
 
AC_ARG_ENABLE([gtklogouthelper],
61
 
              [AS_HELP_STRING([--enable-gtklogouthelper], [enable GTK Logout Helper])],
62
 
              [],
63
 
              [enable_gtklogouthelper=auto])
64
 
 
65
 
if test x"$enable_gtklogouthelper" != x"no" ; then
66
 
   PKG_CHECK_MODULES([GTKLOGOUTHELPER],
67
 
                     [gtk+-3.0 >= $GTK_REQUIRED_VERSION],
68
 
                     [have_gtklogouthelper=yes],
69
 
                     [have_gtklogouthelper=no])
70
 
   if test x${have_gtklogouthelper} = xyes; then
71
 
      AC_DEFINE(HAVE_GTKLOGOUTHELPER, 1, [Define to 1 to enable GTK Logout Helper])
72
 
   fi
73
 
   if test x${enable_gtklogouthelper} = xyes && test x${have_gtklogouthelper} = xno; then
74
 
     AC_MSG_ERROR([GTK Logout Helper configured but polkit-gobject not found])
75
 
   fi
76
 
else
77
 
   have_gtklogouthelper=no
78
 
fi
79
 
AM_CONDITIONAL(BUILD_GTKLOGOUTHELPER, test x${have_gtklogouthelper} = xyes)
80
 
 
81
 
AC_SUBST(GTKLOGOUTHELPER_CFLAGS)
82
 
AC_SUBST(GTKLOGOUTHELPER_LIBS)
83
 
 
84
 
###########################
85
 
# Check to see if we're local
86
 
###########################
87
 
 
88
 
with_localinstall="no"
89
 
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)
90
 
 
91
 
###########################
92
 
# Indicator Info
93
 
###########################
94
 
 
95
 
if test "x$with_localinstall" = "xyes"; then
96
 
        INDICATORDIR="${libdir}/indicators/2/"
97
 
        INDICATORICONSDIR="${datadir}/indicator-applet/icons/"
98
 
elif test "x$with_gtk" = x2; then
99
 
        INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator-0.4`
100
 
        INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator-0.4`
101
 
else
102
 
        INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator3-0.4`
103
 
        INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator3-0.4`
104
 
fi
105
 
AC_SUBST(INDICATORDIR)
106
 
AC_SUBST(INDICATORICONSDIR)
107
 
 
108
 
###########################
109
 
# DBus Service Info
110
 
###########################
111
 
 
112
 
if test "x$with_localinstall" = "xyes"; then
113
 
        DBUSSERVICEDIR="${datadir}/dbus-1/services/"
114
 
else
115
 
        DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
116
 
fi
117
 
AC_SUBST(DBUSSERVICEDIR)
118
 
 
119
 
###########################
120
 
# Google Test framework
121
 
###########################
122
 
 
123
 
AC_ARG_ENABLE([tests],
124
 
    [AS_HELP_STRING([--disable-tests], [Disable test scripts and tools (default=auto)])],
125
 
    [enable_tests=${enableval}],
126
 
    [enable_tests=auto])
127
 
if test "x$enable_tests" != "xno"; then
128
 
    m4_include([m4/gtest.m4])
129
 
    CHECK_GTEST
130
 
    CHECK_XORG_GTEST
131
 
    if test "x$enable_tests" = "xauto"; then
132
 
        enable_tests=${have_gtest}
133
 
    elif test "x$enable_tests" = "xyes" && test "x$have_gtest" != "xyes"; then
134
 
        AC_MSG_ERROR([tests were requested but gtest is not installed.])
135
 
    fi
136
 
    if test "x$enable_tests" = "xyes"; then
137
 
        PKG_CHECK_MODULES([TEST_SERVICE],[glib-2.0 >= $GLIB_REQUIRED_VERSION
138
 
                                          gio-2.0 >= $GIO_REQUIRED_VERSION],
139
 
                                         [enable_tests="yes"],
140
 
                                         [enable_tests="no"])
141
 
    fi
142
 
fi
143
 
AM_CONDITIONAL([BUILD_TESTS],[test "x$enable_tests" = "xyes"])
144
 
AC_SUBST([TEST_SERVICE_CFLAGS])
145
 
AC_SUBST([TEST_SERVICE_LIBS])
146
 
 
147
 
##############################
148
 
# Custom Junk
149
 
##############################
150
 
 
151
 
AC_DEFUN([AC_DEFINE_PATH], [
152
 
        test "x$prefix" = xNONE && prefix="$ac_default_prefix"
153
 
        test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
154
 
        ac_define_path=`eval echo [$]$2`
155
 
        ac_define_path=`eval echo [$]ac_define_path`
156
 
        $1="$ac_define_path"
157
 
        AC_SUBST($1)
158
 
        ifelse($3, ,
159
 
                AC_DEFINE_UNQUOTED($1, "$ac_define_path"),
160
 
                AC_DEFINE_UNQUOTED($1, "$ac_define_path", $3))
161
 
])
162
 
 
163
 
###########################
164
 
# Internationalization
165
 
###########################
166
 
 
167
 
GETTEXT_PACKAGE=indicator-session
168
 
AC_SUBST(GETTEXT_PACKAGE)
169
 
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the default get text domain])
170
 
AC_DEFINE_PATH(GNOMELOCALEDIR, "${datadir}/locale", [locale directory])
171
 
 
172
 
AM_GLIB_GNU_GETTEXT
173
 
 
174
 
###########################
175
 
# gcov coverage reporting
176
 
###########################
177
 
 
178
 
m4_include([m4/gcov.m4])
179
 
AC_TDD_GCOV
180
 
AM_CONDITIONAL([HAVE_GCOV], [test "x$ac_cv_check_gcov" = xyes])
181
 
AM_CONDITIONAL([HAVE_LCOV], [test "x$ac_cv_check_lcov" = xyes])
182
 
AM_CONDITIONAL([HAVE_GCOVR], [test "x$ac_cv_check_gcovr" = xyes])
183
 
AC_SUBST(COVERAGE_CFLAGS)
184
 
AC_SUBST(COVERAGE_LDFLAGS)
185
 
 
186
 
###########################
187
 
# Files
188
 
###########################
189
 
 
190
 
AC_CONFIG_FILES([
191
 
Makefile
192
 
src/Makefile
193
 
data/Makefile
194
 
data/icons/Makefile
195
 
data/icons/16x16/Makefile
196
 
data/icons/16x16/actions/Makefile
197
 
data/icons/16x16/status/Makefile
198
 
data/icons/22x22/Makefile
199
 
data/icons/22x22/actions/Makefile
200
 
data/icons/22x22/status/Makefile
201
 
data/icons/24x24/Makefile
202
 
data/icons/24x24/actions/Makefile
203
 
data/icons/24x24/status/Makefile
204
 
data/icons/32x32/Makefile
205
 
data/icons/32x32/actions/Makefile
206
 
data/icons/32x32/status/Makefile
207
 
data/icons/scalable/Makefile
208
 
data/icons/scalable/actions/Makefile
209
 
data/icons/scalable/status/Makefile
210
 
data/extra-sessions/Makefile
211
 
tests/Makefile
212
 
tests/indicator-session.service
213
 
po/Makefile.in
214
 
])
215
 
 
216
 
AC_OUTPUT
217
 
 
218
 
###########################
219
 
# Results
220
 
###########################
221
 
 
222
 
AC_MSG_NOTICE([
223
 
 
224
 
SUS Indicator Configuration:
225
 
 
226
 
        Prefix:             $prefix
227
 
        Indicator Dir:      $INDICATORDIR
228
 
        Logout Helper:      $have_gtklogouthelper
229
 
        Unit Tests:         $enable_tests
230
 
        Coverage reporting: $use_gcov
231
 
])