1 AC_INIT(Empathy, 0.21.5, http://bugzilla.gnome.org/browse.cgi?product=empathy)
4 Copyright (C) 2003-2007 Imendio AB
5 Copyright (C) 2007 Collabora Ltd.
10 AM_CONFIG_HEADER(config.h)
11 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define)
19 # LT Version numbers, remember to change them just *before* a release.
20 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
21 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
22 # (No interfaces changed: REVISION++)
27 LIBEMPATHY_GTK_CURRENT=8
29 LIBEMPATHY_GTK_REVISION=0
31 AC_SUBST(LIBEMPATHY_CURRENT)
32 AC_SUBST(LIBEMPATHY_AGE)
33 AC_SUBST(LIBEMPATHY_REVISION)
34 AC_SUBST(LIBEMPATHY_GTK_CURRENT)
35 AC_SUBST(LIBEMPATHY_GTK_AGE)
36 AC_SUBST(LIBEMPATHY_GTK_REVISION)
42 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
43 AC_PATH_PROG(GCONFTOOL, gconftool-2)
46 IT_PROG_INTLTOOL([0.35.0])
53 LIBGLADE_REQUIRED=2.0.0
54 LIBPANELAPPLET_REQUIRED=2.10.0
55 TELEPATHY_REQUIRED=0.3.1
56 TELEPATHY_GLIB_REQUIRED=0.7.0
57 MISSION_CONTROL_REQUIRED=4.37
61 dnl Uncomment that to build without deprecated symbols
62 dnl AC_DEFINE(GTK_DISABLE_DEPRECATED, 1, [Disable deprecated GTK symbols])
63 dnl AC_DEFINE(G_DISABLE_DEPRECATED, 1, [Disable deprecated GLib symbols])
64 dnl AC_DEFINE(LIBTELEPATHY_DISABLE_DEPRECATED, 1, [Disable deprecated libtelepathy symbols])
66 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
67 AC_SUBST(GLIB_GENMARSHAL)
69 dnl -----------------------------------------------------------
70 dnl SVN for ChangeLog generation
71 dnl -----------------------------------------------------------
73 AC_SUBST([SVN_ROOT],[http://svn.gnome.org/svn])
74 AC_SUBST([SVN_MODULE],[empathy])
75 AC_SUBST([SVN_BRANCH],["trunk"])
77 dnl -----------------------------------------------------------
79 dnl -----------------------------------------------------------
81 GETTEXT_PACKAGE=empathy
82 AC_SUBST(GETTEXT_PACKAGE)
83 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
87 dnl -----------------------------------------------------------
88 dnl Pkg-Config dependency checks
89 dnl -----------------------------------------------------------
91 PKG_CHECK_MODULES(LIBEMPATHY,
93 glib-2.0 >= $GLIB_REQUIRED
95 gconf-2.0 >= $GCONF_REQUIRED
97 libtelepathy >= $TELEPATHY_REQUIRED
98 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
99 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
102 PKG_CHECK_MODULES(EMPATHY,
104 glib-2.0 >= $GLIB_REQUIRED
106 gconf-2.0 >= $GCONF_REQUIRED
108 libtelepathy >= $TELEPATHY_REQUIRED
109 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
110 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
112 gtk+-2.0 >= $GTK_REQUIRED
114 libglade-2.0 >= $LIBGLADE_REQUIRED
118 dnl -----------------------------------------------------------
119 dnl ISO codes, used for aspell support
120 dnl -----------------------------------------------------------
121 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
122 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
124 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
125 iso_codes_pkgconfig=iso-codes
134 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
136 dnl -----------------------------------------------------------
138 dnl -----------------------------------------------------------
139 AC_ARG_ENABLE(aspell,
140 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
141 [compile with aspell support]), ,
144 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
145 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
148 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
149 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
151 if test "x$have_aspell" = "xyes"; then
152 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
153 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
161 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
162 AC_MSG_ERROR([Couldn't find aspell.])
166 dnl -----------------------------------------------------------
168 dnl -----------------------------------------------------------
169 AC_ARG_ENABLE(megaphone,
170 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
171 [build megaphone applet]), ,
172 enable_megaphone=auto)
174 if test "x$enable_megaphone" != "xno"; then
175 PKG_CHECK_MODULES(MEGAPHONE,
177 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
178 glib-2.0 >= $GLIB_REQUIRED
179 gtk+-2.0 >= $GTK_REQUIRED
180 gconf-2.0 >= $GCONF_REQUIRED
181 libglade-2.0 >= $LIBGLADE_REQUIRED
183 libtelepathy >= $TELEPATHY_REQUIRED
184 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
185 ], have_megaphone="yes", have_megaphone="no")
190 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
191 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
194 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
196 dnl -----------------------------------------------------------
198 dnl -----------------------------------------------------------
199 AC_ARG_ENABLE(nothere,
200 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
201 [build nothere applet]), ,
204 if test "x$enable_nothere" != "xno"; then
205 PKG_CHECK_MODULES(NOTHERE,
207 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
208 glib-2.0 >= $GLIB_REQUIRED
209 gtk+-2.0 >= $GTK_REQUIRED
210 gconf-2.0 >= $GCONF_REQUIRED
211 libglade-2.0 >= $LIBGLADE_REQUIRED
212 libtelepathy >= $TELEPATHY_REQUIRED
213 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
214 ], have_nothere="yes", have_nothere="no")
219 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
220 AC_MSG_ERROR([Couldn't find nothere dependencies.])
223 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
225 dnl -----------------------------------------------------------
227 dnl -----------------------------------------------------------
229 AS_HELP_STRING([--enable-tests=@<:@no/yes@:>@],
233 AM_CONDITIONAL(HAVE_TESTS, test "x$enable_tests" = "xyes")
235 dnl -----------------------------------------------------------
237 dnl -----------------------------------------------------------
238 AC_ARG_ENABLE(python,
239 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
240 [build python bindings to libempathy and libempathy-gtk]), ,
243 if test "x$enable_python" != "xno"; then
245 if test -z "$PYTHON" ; then
248 PKG_CHECK_MODULES(PYTHON_BINDING,
251 glib-2.0 >= $GLIB_REQUIRED
253 gconf-2.0 >= $GCONF_REQUIRED
256 libtelepathy >= $TELEPATHY_REQUIRED
257 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
258 gtk+-2.0 >= $GTK_REQUIRED
259 libglade-2.0 >= $LIBGLADE_REQUIRED
260 ], have_python="yes", have_python="no")
266 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
267 AC_MSG_ERROR([Couldn't find python.])
270 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
272 dnl -----------------------------------------------------------
274 dnl -----------------------------------------------------------
276 AS_HELP_STRING([--enable-voip=@<:@no/yes@:>@],
277 [Add support for Voice and Video call]), ,
280 if test "x$enable_voip" = "xyes"; then
281 AC_DEFINE(HAVE_VOIP, 1, [Define if we have voip])
284 AM_CONDITIONAL(HAVE_VOIP, test "x$enable_voip" = "xyes")
286 dnl -----------------------------------------------------------
291 data/empathy.desktop.in
295 libempathy/libempathy.pc
296 libempathy-gtk/Makefile
297 libempathy-gtk/libempathy-gtk.pc
300 megaphone/src/Makefile
301 megaphone/data/Makefile
304 nothere/data/Makefile
306 docs/libempathy/Makefile
307 docs/libempathy/version.xml
308 docs/libempathy-gtk/Makefile
309 docs/libempathy-gtk/version.xml
311 python/pyempathy/Makefile
312 python/pyempathygtk/Makefile