1 AC_INIT(Empathy, 0.21.4, http://bugzilla.gnome.org/browse.cgi?product=empathy)
4 Copyright (C) 2003-2007 Imendio AB
5 Copyright (C) 2007 Collabora Ltd.
8 AM_CONFIG_HEADER(config.h)
9 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define)
17 # LT Version numbers, remember to change them just *before* a release.
18 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
19 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
20 # (No interfaces changed: REVISION++)
25 LIBEMPATHY_GTK_CURRENT=7
27 LIBEMPATHY_GTK_REVISION=0
29 AC_SUBST(LIBEMPATHY_CURRENT)
30 AC_SUBST(LIBEMPATHY_AGE)
31 AC_SUBST(LIBEMPATHY_REVISION)
32 AC_SUBST(LIBEMPATHY_GTK_CURRENT)
33 AC_SUBST(LIBEMPATHY_GTK_AGE)
34 AC_SUBST(LIBEMPATHY_GTK_REVISION)
40 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
41 AC_PATH_PROG(GCONFTOOL, gconftool-2)
44 IT_PROG_INTLTOOL([0.35.0])
51 LIBGLADE_REQUIRED=2.0.0
52 LIBPANELAPPLET_REQUIRED=2.10.0
53 TELEPATHY_REQUIRED=0.3.1
54 TELEPATHY_GLIB_REQUIRED=0.7.0
55 MISSION_CONTROL_REQUIRED=4.37
59 dnl Uncomment that to build without deprecated symbols
60 dnl AC_DEFINE(GTK_DISABLE_DEPRECATED, 1, [Disable deprecated GTK symbols])
61 dnl AC_DEFINE(G_DISABLE_DEPRECATED, 1, [Disable deprecated GLib symbols])
62 dnl AC_DEFINE(LIBTELEPATHY_DISABLE_DEPRECATED, 1, [Disable deprecated libtelepathy symbols])
64 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
65 AC_SUBST(GLIB_GENMARSHAL)
67 dnl -----------------------------------------------------------
68 dnl SVN for ChangeLog generation
69 dnl -----------------------------------------------------------
71 AC_SUBST([SVN_ROOT],[http://svn.gnome.org/svn])
72 AC_SUBST([SVN_MODULE],[empathy])
73 AC_SUBST([SVN_BRANCH],["trunk"])
75 dnl -----------------------------------------------------------
77 dnl -----------------------------------------------------------
79 GETTEXT_PACKAGE=empathy
80 AC_SUBST(GETTEXT_PACKAGE)
81 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
85 dnl -----------------------------------------------------------
86 dnl Pkg-Config dependency checks
87 dnl -----------------------------------------------------------
89 PKG_CHECK_MODULES(LIBEMPATHY,
91 glib-2.0 >= $GLIB_REQUIRED
93 gconf-2.0 >= $GCONF_REQUIRED
95 libtelepathy >= $TELEPATHY_REQUIRED
96 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
97 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
100 PKG_CHECK_MODULES(EMPATHY,
102 glib-2.0 >= $GLIB_REQUIRED
104 gconf-2.0 >= $GCONF_REQUIRED
106 libtelepathy >= $TELEPATHY_REQUIRED
107 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
108 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
110 gtk+-2.0 >= $GTK_REQUIRED
112 libglade-2.0 >= $LIBGLADE_REQUIRED
116 dnl -----------------------------------------------------------
117 dnl ISO codes, used for aspell support
118 dnl -----------------------------------------------------------
119 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
120 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
122 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
123 iso_codes_pkgconfig=iso-codes
132 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
134 dnl -----------------------------------------------------------
136 dnl -----------------------------------------------------------
137 AC_ARG_ENABLE(aspell,
138 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
139 [compile with aspell support]), ,
142 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
143 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
146 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
147 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
149 if test "x$have_aspell" = "xyes"; then
150 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
151 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
159 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
160 AC_MSG_ERROR([Couldn't find aspell.])
164 dnl -----------------------------------------------------------
166 dnl -----------------------------------------------------------
167 AC_ARG_ENABLE(megaphone,
168 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
169 [build megaphone applet]), ,
170 enable_megaphone=auto)
172 if test "x$enable_megaphone" != "xno"; then
173 PKG_CHECK_MODULES(MEGAPHONE,
175 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
176 glib-2.0 >= $GLIB_REQUIRED
177 gtk+-2.0 >= $GTK_REQUIRED
178 gconf-2.0 >= $GCONF_REQUIRED
179 libglade-2.0 >= $LIBGLADE_REQUIRED
181 libtelepathy >= $TELEPATHY_REQUIRED
182 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
183 ], have_megaphone="yes", have_megaphone="no")
188 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
189 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
192 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
194 dnl -----------------------------------------------------------
196 dnl -----------------------------------------------------------
197 AC_ARG_ENABLE(nothere,
198 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
199 [build nothere applet]), ,
202 if test "x$enable_nothere" != "xno"; then
203 PKG_CHECK_MODULES(NOTHERE,
205 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
206 glib-2.0 >= $GLIB_REQUIRED
207 gtk+-2.0 >= $GTK_REQUIRED
208 gconf-2.0 >= $GCONF_REQUIRED
209 libglade-2.0 >= $LIBGLADE_REQUIRED
210 libtelepathy >= $TELEPATHY_REQUIRED
211 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
212 ], have_nothere="yes", have_nothere="no")
217 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
218 AC_MSG_ERROR([Couldn't find nothere dependencies.])
221 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
223 dnl -----------------------------------------------------------
225 dnl -----------------------------------------------------------
227 AS_HELP_STRING([--enable-tests=@<:@no/yes@:>@],
231 AM_CONDITIONAL(HAVE_TESTS, test "x$enable_tests" = "xyes")
233 dnl -----------------------------------------------------------
235 dnl -----------------------------------------------------------
236 AC_ARG_ENABLE(python,
237 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
238 [build python bindings to libempathy and libempathy-gtk]), ,
241 if test "x$enable_python" != "xno"; then
243 if test -z "$PYTHON" ; then
246 PKG_CHECK_MODULES(PYTHON_BINDING,
249 glib-2.0 >= $GLIB_REQUIRED
251 gconf-2.0 >= $GCONF_REQUIRED
254 libtelepathy >= $TELEPATHY_REQUIRED
255 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
256 gtk+-2.0 >= $GTK_REQUIRED
257 libglade-2.0 >= $LIBGLADE_REQUIRED
258 ], have_python="yes", have_python="no")
264 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
265 AC_MSG_ERROR([Couldn't find python.])
268 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
270 dnl -----------------------------------------------------------
272 dnl -----------------------------------------------------------
274 AS_HELP_STRING([--enable-voip=@<:@no/yes@:>@],
275 [Add support for Voice and Video call]), ,
278 if test "x$enable_voip" = "xyes"; then
279 AC_DEFINE(HAVE_VOIP, 1, [Define if we have voip])
282 AM_CONDITIONAL(HAVE_VOIP, test "x$enable_voip" = "xyes")
284 dnl -----------------------------------------------------------
289 data/empathy.desktop.in
293 libempathy/libempathy.pc
294 libempathy-gtk/Makefile
295 libempathy-gtk/libempathy-gtk.pc
298 megaphone/src/Makefile
299 megaphone/data/Makefile
302 nothere/data/Makefile
304 docs/libempathy/Makefile
305 docs/libempathy/version.xml
306 docs/libempathy-gtk/Makefile
307 docs/libempathy-gtk/version.xml
309 python/pyempathy/Makefile
310 python/pyempathygtk/Makefile