1
by Ted Gould
Checkmark checkin |
1 |
AC_INIT(src/indicator-messages.c) |
2
by Ted Gould
Actually getting this all to build reasonably. |
2 |
|
1
by Ted Gould
Checkmark checkin |
3 |
AC_PREREQ(2.53) |
4 |
||
5 |
AM_CONFIG_HEADER(config.h) |
|
6 |
AM_INIT_AUTOMAKE(indicator-messages, 0.4.92) |
|
219
by Ted Gould
0.4.92 |
7 |
|
1
by Ted Gould
Checkmark checkin |
8 |
AM_MAINTAINER_MODE
|
9 |
||
10 |
IT_PROG_INTLTOOL([0.35.0]) |
|
138.1.9
by Ted Gould
Forgot intltool |
11 |
|
12 |
AC_ISC_POSIX
|
|
1
by Ted Gould
Checkmark checkin |
13 |
AC_PROG_CC
|
14 |
AM_PROG_CC_C_O
|
|
15 |
AC_STDC_HEADERS
|
|
16 |
AC_DISABLE_STATIC
|
|
156
by Ted Gould
Apparently order matters. |
17 |
AC_PROG_LIBTOOL
|
1
by Ted Gould
Checkmark checkin |
18 |
|
19 |
AC_SUBST(VERSION) |
|
20 |
AC_CONFIG_MACRO_DIR([m4]) |
|
21 |
||
22 |
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) |
|
123.1.1
by Ted Gould
AM 1.11 silent rule |
23 |
|
24 |
AC_ARG_ENABLE([deprecations], |
|
199.1.1
by Michael Terry
avoid deprecated API |
25 |
[AS_HELP_STRING([--enable-deprecations], |
26 |
[allow deprecated API usage @<:@default=yes@:>@])], |
|
27 |
[], |
|
28 |
[enable_deprecations=yes]) |
|
29 |
AS_IF([test "x$enable_deprecations" = xno], |
|
30 |
[CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGTK_DISABLE_SINGLE_INCLUDES"] |
|
31 |
)
|
|
32 |
||
33 |
###########################
|
|
1
by Ted Gould
Checkmark checkin |
34 |
# Dependencies |
35 |
###########################
|
|
36 |
||
37 |
GTK_REQUIRED_VERSION=2.12 |
|
38 |
GTK3_REQUIRED_VERSION=3.0 |
|
212.1.1
by Michael Terry
allow building with gtk3 |
39 |
GIO_UNIX_REQUIRED_VERSION=2.18 |
61
by Ted Gould
Adding in desktop file support, which required configure changes to get the right headers. |
40 |
PANEL_REQUIRED_VERSION=2.0.0 |
1
by Ted Gould
Checkmark checkin |
41 |
INDICATE_REQUIRED_VERSION=0.4.90 |
200.1.1
by Ted Gould
Switching the pkgconfig files that are used. |
42 |
INDICATOR_REQUIRED_VERSION=0.3.19 |
207.1.5
by Ted Gould
Updating libindicator required version |
43 |
DBUSMENUGTK_REQUIRED_VERSION=0.3.94 |
206
by Ted Gould
Upgrading to new type handler prototype |
44 |
|
1
by Ted Gould
Checkmark checkin |
45 |
AC_ARG_WITH([gtk], |
217.1.1
by Marco Trevisan (Treviño)
configure.ac: Use the "--with-gtk" option flag. |
46 |
[AS_HELP_STRING([--with-gtk], |
47 |
[Which version of gtk to use for the indicator @<:@default=3@:>@])], |
|
212.1.1
by Michael Terry
allow building with gtk3 |
48 |
[], |
49 |
[with_gtk=3]) |
|
217.1.1
by Marco Trevisan (Treviño)
configure.ac: Use the "--with-gtk" option flag. |
50 |
|
212.1.1
by Michael Terry
allow building with gtk3 |
51 |
AS_IF([test "x$with_gtk" = x3], |
217.1.1
by Marco Trevisan (Treviño)
configure.ac: Use the "--with-gtk" option flag. |
52 |
[PKG_CHECK_MODULES(APPLET, gtk+-3.0 >= $GTK3_REQUIRED_VERSION |
212.1.1
by Michael Terry
allow building with gtk3 |
53 |
gio-unix-2.0 >= $GIO_UNIX_REQUIRED_VERSION
|
54 |
indicator3-0.4 >= $INDICATOR_REQUIRED_VERSION
|
|
215
by Ted Gould
Bumping to libindicator 0.4 API |
55 |
indicate-0.5 >= $INDICATE_REQUIRED_VERSION
|
212.1.1
by Michael Terry
allow building with gtk3 |
56 |
dbusmenu-gtk3-0.4 >= $DBUSMENUGTK_REQUIRED_VERSION)
|
57 |
], |
|
58 |
[test "x$with_gtk" = x2], |
|
217.1.1
by Marco Trevisan (Treviño)
configure.ac: Use the "--with-gtk" option flag. |
59 |
[PKG_CHECK_MODULES(APPLET, gtk+-2.0 >= $GTK_REQUIRED_VERSION |
212.1.1
by Michael Terry
allow building with gtk3 |
60 |
gio-unix-2.0 >= $GIO_UNIX_REQUIRED_VERSION
|
61 |
indicator-0.4 >= $INDICATOR_REQUIRED_VERSION
|
|
215
by Ted Gould
Bumping to libindicator 0.4 API |
62 |
indicate-0.5 >= $INDICATE_REQUIRED_VERSION
|
212.1.1
by Michael Terry
allow building with gtk3 |
63 |
dbusmenu-gtk-0.4 >= $DBUSMENUGTK_REQUIRED_VERSION)
|
64 |
], |
|
65 |
[AC_MSG_FAILURE([Value for --with-indicator-gtk was neither 2 nor 3])] |
|
66 |
)
|
|
67 |
AC_SUBST(APPLET_CFLAGS) |
|
1
by Ted Gould
Checkmark checkin |
68 |
AC_SUBST(APPLET_LIBS) |
69 |
||
70 |
###########################
|
|
71 |
# Status Provider Deps |
|
214.1.1
by Ted Gould
Stealing all of the status providers from indicator-me so that we can use them here. |
72 |
###########################
|
73 |
||
74 |
PKG_CHECK_MODULES(STATUS_PROVIDER_PIDGIN, dbus-glib-1) |
|
75 |
AC_SUBST(STATUS_PROVIDER_PIDGIN_CFLAGS) |
|
76 |
AC_SUBST(STATUS_PROVIDER_PIDGIN_LIBS) |
|
77 |
||
78 |
PKG_CHECK_MODULES(STATUS_PROVIDER_TELEPATHY, dbus-glib-1) |
|
79 |
AC_SUBST(STATUS_PROVIDER_TELEPATHY_CFLAGS) |
|
80 |
AC_SUBST(STATUS_PROVIDER_TELEPATHY_LIBS) |
|
81 |
||
82 |
TELEPATHYGLIB_REQUIRED_VERSION=0.9.0 |
|
83 |
PKG_CHECK_MODULES(STATUS_PROVIDER_MC5, dbus-glib-1 |
|
84 |
telepathy-glib >= $TELEPATHYGLIB_REQUIRED_VERSION) |
|
85 |
AC_SUBST(STATUS_PROVIDER_MC5_CFLAGS) |
|
86 |
AC_SUBST(STATUS_PROVIDER_MC5_LIBS) |
|
87 |
||
88 |
PKG_CHECK_MODULES(STATUS_PROVIDER_EMESENE, dbus-glib-1) |
|
89 |
AC_SUBST(STATUS_PROVIDER_EMESENE_CFLAGS) |
|
90 |
AC_SUBST(STATUS_PROVIDER_EMESENE_LIBS) |
|
91 |
||
92 |
###########################
|
|
93 |
# Check to see if we're local |
|
133
by Ted Gould
Adding in the local install flag to make that distcheck passes. |
94 |
###########################
|
95 |
||
96 |
with_localinstall="no"
|
|
97 |
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)
|
|
98 |
||
99 |
###########################
|
|
100 |
# Indicator Info
|
|
113
by Ted Gould
Installing to indicator dir instead of other fun places |
101 |
###########################
|
102 |
||
103 |
if test "x$with_localinstall" = "xyes"; then
|
|
133
by Ted Gould
Adding in the local install flag to make that distcheck passes. |
104 |
INDICATORDIR="${libdir}/indicators/2/"
|
105 |
INDICATORICONSDIR="${datadir}/libindicate/icons/"
|
|
145.1.1
by Ted Gould
Adding in a variable for the icon directory. |
106 |
elif test "x$with_gtk" = x2; then
|
217.1.1
by Marco Trevisan (Treviño)
configure.ac: Use the "--with-gtk" option flag. |
107 |
INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator-0.4`
|
216
by Ted Gould
Migrate to indicator 0.4 API |
108 |
INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator-0.4`
|
109 |
else
|
|
212.1.1
by Michael Terry
allow building with gtk3 |
110 |
INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator3-0.4`
|
216
by Ted Gould
Migrate to indicator 0.4 API |
111 |
INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator3-0.4`
|
112 |
fi
|
|
133
by Ted Gould
Adding in the local install flag to make that distcheck passes. |
113 |
AC_SUBST(INDICATORDIR)
|
113
by Ted Gould
Installing to indicator dir instead of other fun places |
114 |
AC_SUBST(INDICATORICONSDIR)
|
145.1.1
by Ted Gould
Adding in a variable for the icon directory. |
115 |
|
113
by Ted Gould
Installing to indicator dir instead of other fun places |
116 |
###########################
|
117 |
# DBus Service Info
|
|
120.1.5
by Ted Gould
Lookup the dbus services |
118 |
###########################
|
119 |
||
120 |
if test "x$with_localinstall" = "xyes"; then
|
|
133
by Ted Gould
Adding in the local install flag to make that distcheck passes. |
121 |
DBUSSERVICEDIR="${datadir}/dbus-1/services/"
|
122 |
else
|
|
123 |
DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
|
|
124 |
fi
|
|
125 |
AC_SUBST(DBUSSERVICEDIR)
|
|
120.1.5
by Ted Gould
Lookup the dbus services |
126 |
|
127 |
##############################
|
|
138.1.4
by Ted Gould
Adding configure stuff in to set up gettext |
128 |
# Custom Junk
|
129 |
##############################
|
|
130 |
||
131 |
AC_DEFUN([AC_DEFINE_PATH], [
|
|
132 |
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
|
|
133 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
134 |
ac_define_path=`eval echo [$]$2` |
|
135 |
ac_define_path=`eval echo [$]ac_define_path` |
|
136 |
$1="$ac_define_path" |
|
137 |
AC_SUBST($1) |
|
138 |
ifelse($3, , |
|
139 |
AC_DEFINE_UNQUOTED($1, "$ac_define_path"), |
|
140 |
AC_DEFINE_UNQUOTED($1, "$ac_define_path", $3)) |
|
141 |
]) |
|
142 |
||
143 |
###########################
|
|
144 |
# Internationalization |
|
145 |
###########################
|
|
146 |
||
147 |
GETTEXT_PACKAGE=indicator-messages |
|
138.1.6
by Ted Gould
Oops, teach me to cut and paste :) |
148 |
AC_SUBST(GETTEXT_PACKAGE) |
138.1.4
by Ted Gould
Adding configure stuff in to set up gettext |
149 |
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the default get text domain]) |
150 |
AC_DEFINE_PATH(GNOMELOCALEDIR, "${datadir}/locale", [locale directory]) |
|
151 |
||
152 |
AM_GLIB_GNU_GETTEXT
|
|
153 |
||
154 |
###########################
|
|
120.1.5
by Ted Gould
Lookup the dbus services |
155 |
# Files |
1
by Ted Gould
Checkmark checkin |
156 |
###########################
|
157 |
||
158 |
AC_OUTPUT([ |
|
159 |
Makefile
|
|
160 |
src/Makefile
|
|
161 |
src/indicator-messages-status-provider-0.5.pc.in
|
|
214.1.18
by Ted Gould
Making a pkgconfig file for the status providers |
162 |
data/Makefile
|
36
by Ted Gould
Adding in icons |
163 |
data/icons/Makefile
|
164 |
data/icons/16x16/Makefile
|
|
165 |
data/icons/16x16/status/Makefile
|
|
166 |
data/icons/16x16/categories/Makefile
|
|
168.1.1
by Ted Gould
Adding in a base set of icons from the gnome theme. |
167 |
data/icons/22x22/Makefile
|
36
by Ted Gould
Adding in icons |
168 |
data/icons/22x22/status/Makefile
|
169 |
data/icons/22x22/categories/Makefile
|
|
168.1.1
by Ted Gould
Adding in a base set of icons from the gnome theme. |
170 |
data/icons/24x24/Makefile
|
36
by Ted Gould
Adding in icons |
171 |
data/icons/24x24/status/Makefile
|
172 |
data/icons/32x32/Makefile
|
|
173 |
data/icons/32x32/status/Makefile
|
|
174 |
data/icons/32x32/categories/Makefile
|
|
168.1.1
by Ted Gould
Adding in a base set of icons from the gnome theme. |
175 |
data/icons/48x48/Makefile
|
36
by Ted Gould
Adding in icons |
176 |
data/icons/48x48/status/Makefile
|
177 |
data/icons/scalable/Makefile
|
|
178 |
data/icons/scalable/status/Makefile
|
|
179 |
data/icons/scalable/categories/Makefile
|
|
168.1.1
by Ted Gould
Adding in a base set of icons from the gnome theme. |
180 |
po/Makefile.in
|
138.1.5
by Ted Gould
Making it so the po directory is connected in. |
181 |
]) |
1
by Ted Gould
Checkmark checkin |
182 |
|
183 |
###########################
|
|
184 |
# Results |
|
185 |
###########################
|
|
186 |
||
187 |
AC_MSG_NOTICE([ |
|
188 |
||
189 |
Messaging Indicator Configuration:
|
|
190 |
||
191 |
Prefix: $prefix
|
|
192 |
Indicator Dir: $INDICATORDIR
|
|
113
by Ted Gould
Installing to indicator dir instead of other fun places |
193 |
]) |
1
by Ted Gould
Checkmark checkin |
194 |