1 AC_INIT(Empathy, 0.21.6, http://bugzilla.gnome.org/browse.cgi?product=empathy)
4 Copyright (C) 2003-2007 Imendio AB
5 Copyright (C) 2007 Collabora Ltd.
8 # LT Version numbers, remember to change them just *before* a release.
9 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
10 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
11 # (No interfaces changed: REVISION++)
16 LIBEMPATHY_GTK_CURRENT=9
18 LIBEMPATHY_GTK_REVISION=0
20 AC_SUBST(LIBEMPATHY_CURRENT)
21 AC_SUBST(LIBEMPATHY_AGE)
22 AC_SUBST(LIBEMPATHY_REVISION)
23 AC_SUBST(LIBEMPATHY_GTK_CURRENT)
24 AC_SUBST(LIBEMPATHY_GTK_AGE)
25 AC_SUBST(LIBEMPATHY_GTK_REVISION)
27 # Minimal version required
31 LIBGLADE_REQUIRED=2.0.0
32 LIBPANELAPPLET_REQUIRED=2.10.0
33 TELEPATHY_REQUIRED=0.3.1
34 TELEPATHY_GLIB_REQUIRED=0.7.0
35 MISSION_CONTROL_REQUIRED=4.53
37 # Uncomment that to build without deprecated symbols
38 # AC_DEFINE(GTK_DISABLE_DEPRECATED, 1, [Disable deprecated GTK symbols])
39 # AC_DEFINE(G_DISABLE_DEPRECATED, 1, [Disable deprecated GLib symbols])
40 # AC_DEFINE(LIBTELEPATHY_DISABLE_DEPRECATED, 1, [Disable deprecated libtelepathy symbols])
42 AC_CONFIG_MACRO_DIR([m4])
43 AC_CONFIG_HEADERS([config.h])
44 AC_CONFIG_SRCDIR([configure.ac])
49 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define)
57 IT_PROG_INTLTOOL([0.35.0])
60 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
61 AC_PATH_PROG(GCONFTOOL, gconftool-2)
63 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
64 AC_SUBST(GLIB_GENMARSHAL)
68 # -----------------------------------------------------------
69 # Pkg-Config dependency checks
70 # -----------------------------------------------------------
72 PKG_CHECK_MODULES(LIBEMPATHY,
74 glib-2.0 >= $GLIB_REQUIRED
76 gconf-2.0 >= $GCONF_REQUIRED
78 libtelepathy >= $TELEPATHY_REQUIRED
79 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
80 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
83 PKG_CHECK_MODULES(EMPATHY,
85 glib-2.0 >= $GLIB_REQUIRED
87 gconf-2.0 >= $GCONF_REQUIRED
89 libtelepathy >= $TELEPATHY_REQUIRED
90 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
91 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
93 gtk+-2.0 >= $GTK_REQUIRED
95 libglade-2.0 >= $LIBGLADE_REQUIRED
99 # -----------------------------------------------------------
101 # -----------------------------------------------------------
103 GETTEXT_PACKAGE=empathy
104 AC_SUBST(GETTEXT_PACKAGE)
105 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
109 # -----------------------------------------------------------
110 # ISO codes, used for aspell support
111 # -----------------------------------------------------------
112 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
113 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
115 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
116 iso_codes_pkgconfig=iso-codes
125 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
127 # -----------------------------------------------------------
129 # -----------------------------------------------------------
130 AC_ARG_ENABLE(aspell,
131 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
132 [compile with aspell support]), ,
135 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
136 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
139 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
140 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
142 if test "x$have_aspell" = "xyes"; then
143 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
144 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
152 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
153 AC_MSG_ERROR([Couldn't find aspell.])
157 # -----------------------------------------------------------
159 # -----------------------------------------------------------
160 AC_ARG_ENABLE(megaphone,
161 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
162 [build megaphone applet]), ,
163 enable_megaphone=auto)
165 if test "x$enable_megaphone" != "xno"; then
166 PKG_CHECK_MODULES(MEGAPHONE,
168 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
169 glib-2.0 >= $GLIB_REQUIRED
170 gtk+-2.0 >= $GTK_REQUIRED
171 gconf-2.0 >= $GCONF_REQUIRED
172 libglade-2.0 >= $LIBGLADE_REQUIRED
174 libtelepathy >= $TELEPATHY_REQUIRED
175 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
176 ], have_megaphone="yes", have_megaphone="no")
181 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
182 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
185 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
187 # -----------------------------------------------------------
189 # -----------------------------------------------------------
190 AC_ARG_ENABLE(nothere,
191 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
192 [build nothere applet]), ,
195 if test "x$enable_nothere" != "xno"; then
196 PKG_CHECK_MODULES(NOTHERE,
198 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
199 glib-2.0 >= $GLIB_REQUIRED
200 gtk+-2.0 >= $GTK_REQUIRED
201 gconf-2.0 >= $GCONF_REQUIRED
202 libglade-2.0 >= $LIBGLADE_REQUIRED
203 libtelepathy >= $TELEPATHY_REQUIRED
204 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
205 ], have_nothere="yes", have_nothere="no")
210 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
211 AC_MSG_ERROR([Couldn't find nothere dependencies.])
214 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
216 # -----------------------------------------------------------
218 # -----------------------------------------------------------
220 AS_HELP_STRING([--enable-tests=@<:@no/yes/auto@:>@],
224 if test "x$enable_tests" != "xno"; then
225 PKG_CHECK_MODULES(CHECK,
228 ], have_check="yes", have_check="no")
233 if test "x$enable_tests" = "xyes" -a "x$have_check" != "xyes"; then
234 AC_MSG_ERROR([Couldn't find check dependencies.])
237 AM_CONDITIONAL(HAVE_TESTS, test "x$have_check" = "xyes")
239 # -----------------------------------------------------------
241 # -----------------------------------------------------------
242 AC_ARG_ENABLE(python,
243 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
244 [build python bindings to libempathy and libempathy-gtk]), ,
247 if test "x$enable_python" != "xno"; then
249 if test -z "$PYTHON" ; then
252 PKG_CHECK_MODULES(PYTHON_BINDING,
255 glib-2.0 >= $GLIB_REQUIRED
257 gconf-2.0 >= $GCONF_REQUIRED
260 libtelepathy >= $TELEPATHY_REQUIRED
261 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
262 gtk+-2.0 >= $GTK_REQUIRED
263 libglade-2.0 >= $LIBGLADE_REQUIRED
264 ], have_python="yes", have_python="no")
270 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
271 AC_MSG_ERROR([Couldn't find python.])
274 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
276 # -----------------------------------------------------------
278 # -----------------------------------------------------------
280 AS_HELP_STRING([--enable-voip=@<:@no/yes@:>@],
281 [Add support for Voice and Video call]), ,
284 if test "x$enable_voip" = "xyes"; then
285 AC_DEFINE(HAVE_VOIP, 1, [Define if we have voip])
288 AM_CONDITIONAL(HAVE_VOIP, test "x$enable_voip" = "xyes")
290 # -----------------------------------------------------------
295 data/empathy.desktop.in
299 libempathy/libempathy.pc
300 libempathy-gtk/Makefile
301 libempathy-gtk/libempathy-gtk.pc
304 megaphone/src/Makefile
305 megaphone/data/Makefile
308 nothere/data/Makefile
310 docs/libempathy/Makefile
311 docs/libempathy/version.xml
312 docs/libempathy-gtk/Makefile
313 docs/libempathy-gtk/version.xml
315 python/pyempathy/Makefile
316 python/pyempathygtk/Makefile