1 AC_INIT(Empathy, 0.21.3, 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=6
27 LIBEMPATHY_GTK_REVISION=1
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 -----------------------------------------------------------
69 dnl -----------------------------------------------------------
71 GETTEXT_PACKAGE=empathy
72 AC_SUBST(GETTEXT_PACKAGE)
73 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
77 dnl -----------------------------------------------------------
78 dnl Pkg-Config dependency checks
79 dnl -----------------------------------------------------------
81 PKG_CHECK_MODULES(LIBEMPATHY,
83 glib-2.0 >= $GLIB_REQUIRED
85 gconf-2.0 >= $GCONF_REQUIRED
87 libtelepathy >= $TELEPATHY_REQUIRED
88 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
89 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
92 PKG_CHECK_MODULES(EMPATHY,
94 glib-2.0 >= $GLIB_REQUIRED
96 gconf-2.0 >= $GCONF_REQUIRED
98 libtelepathy >= $TELEPATHY_REQUIRED
99 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
100 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
102 gtk+-2.0 >= $GTK_REQUIRED
104 libglade-2.0 >= $LIBGLADE_REQUIRED
108 dnl -----------------------------------------------------------
109 dnl ISO codes, used for aspell support
110 dnl -----------------------------------------------------------
111 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
112 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
114 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
115 iso_codes_pkgconfig=iso-codes
124 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
126 dnl -----------------------------------------------------------
128 dnl -----------------------------------------------------------
129 AC_ARG_ENABLE(aspell,
130 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
131 [compile with aspell support]), ,
134 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
135 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
138 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
139 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
141 if test "x$have_aspell" = "xyes"; then
142 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
143 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
151 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
152 AC_MSG_ERROR([Couldn't find aspell.])
156 dnl -----------------------------------------------------------
158 dnl -----------------------------------------------------------
159 AC_ARG_ENABLE(megaphone,
160 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
161 [build megaphone applet]), ,
162 enable_megaphone=auto)
164 if test "x$enable_megaphone" != "xno"; then
165 PKG_CHECK_MODULES(MEGAPHONE,
167 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
168 glib-2.0 >= $GLIB_REQUIRED
169 gtk+-2.0 >= $GTK_REQUIRED
170 gconf-2.0 >= $GCONF_REQUIRED
171 libglade-2.0 >= $LIBGLADE_REQUIRED
173 libtelepathy >= $TELEPATHY_REQUIRED
174 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
175 ], have_megaphone="yes", have_megaphone="no")
180 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
181 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
184 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
186 dnl -----------------------------------------------------------
188 dnl -----------------------------------------------------------
189 AC_ARG_ENABLE(nothere,
190 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
191 [build nothere applet]), ,
194 if test "x$enable_nothere" != "xno"; then
195 PKG_CHECK_MODULES(NOTHERE,
197 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
198 glib-2.0 >= $GLIB_REQUIRED
199 gtk+-2.0 >= $GTK_REQUIRED
200 gconf-2.0 >= $GCONF_REQUIRED
201 libglade-2.0 >= $LIBGLADE_REQUIRED
202 libtelepathy >= $TELEPATHY_REQUIRED
203 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
204 ], have_nothere="yes", have_nothere="no")
209 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
210 AC_MSG_ERROR([Couldn't find nothere dependencies.])
213 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
215 dnl -----------------------------------------------------------
217 dnl -----------------------------------------------------------
219 AS_HELP_STRING([--enable-tests=@<:@no/yes@:>@],
223 AM_CONDITIONAL(HAVE_TESTS, test "x$enable_tests" = "xyes")
225 dnl -----------------------------------------------------------
227 dnl -----------------------------------------------------------
228 AC_ARG_ENABLE(python,
229 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
230 [build python bindings to libempathy and libempathy-gtk]), ,
233 if test "x$enable_python" != "xno"; then
235 if test -z "$PYTHON" ; then
238 PKG_CHECK_MODULES(PYTHON_BINDING,
241 glib-2.0 >= $GLIB_REQUIRED
243 gconf-2.0 >= $GCONF_REQUIRED
246 libtelepathy >= $TELEPATHY_REQUIRED
247 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
248 gtk+-2.0 >= $GTK_REQUIRED
249 libglade-2.0 >= $LIBGLADE_REQUIRED
250 ], have_python="yes", have_python="no")
256 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
257 AC_MSG_ERROR([Couldn't find python.])
260 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
262 dnl -----------------------------------------------------------
264 dnl -----------------------------------------------------------
266 AS_HELP_STRING([--enable-voip=@<:@no/yes@:>@],
267 [Add support for Voice and Video call]), ,
270 if test "x$enable_voip" = "xyes"; then
271 AC_DEFINE(HAVE_VOIP, 1, [Define if we have voip])
274 AM_CONDITIONAL(HAVE_VOIP, test "x$enable_voip" = "xyes")
276 dnl -----------------------------------------------------------
281 data/empathy.desktop.in
285 libempathy/libempathy.pc
286 libempathy-gtk/Makefile
287 libempathy-gtk/libempathy-gtk.pc
290 megaphone/src/Makefile
291 megaphone/data/Makefile
294 nothere/data/Makefile
296 docs/libempathy/Makefile
297 docs/libempathy/version.xml
298 docs/libempathy-gtk/Makefile
299 docs/libempathy-gtk/version.xml
301 python/pyempathy/Makefile
302 python/pyempathygtk/Makefile