1 AC_INIT(Empathy, 0.23.1, 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=11
18 LIBEMPATHY_GTK_REVISION=1
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_GLIB_REQUIRED=0.7.3
34 MISSION_CONTROL_REQUIRED=4.61
36 # Uncomment that to build without deprecated symbols
37 # AC_DEFINE(GTK_DISABLE_DEPRECATED, 1, [Disable deprecated GTK symbols])
38 # AC_DEFINE(G_DISABLE_DEPRECATED, 1, [Disable deprecated GLib symbols])
40 AC_CONFIG_MACRO_DIR([m4])
41 AC_CONFIG_HEADERS([config.h])
42 AC_CONFIG_SRCDIR([configure.ac])
47 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define -Wno-portability)
56 IT_PROG_INTLTOOL([0.35.0])
59 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
60 AC_PATH_PROG(GCONFTOOL, gconftool-2)
62 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
63 AC_SUBST(GLIB_GENMARSHAL)
65 AC_CHECK_PROGS([XSLTPROC], [xsltproc])
66 if test -z "$XSLTPROC"; then
67 AC_MSG_ERROR([xsltproc (from libxslt) is required])
69 AC_CHECK_PROGS([PYTHON], [python python2.3 python2.4 python2.5])
70 if test -z "$PYTHON"; then
71 AC_MSG_ERROR([Python is required])
76 # -----------------------------------------------------------
77 # Pkg-Config dependency checks
78 # -----------------------------------------------------------
80 PKG_CHECK_MODULES(LIBEMPATHY,
82 glib-2.0 >= $GLIB_REQUIRED
85 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
86 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
89 PKG_CHECK_MODULES(EMPATHY,
91 glib-2.0 >= $GLIB_REQUIRED
93 gio-2.0 >= $GLIB_REQUIRED
94 gconf-2.0 >= $GCONF_REQUIRED
95 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
96 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
97 gtk+-2.0 >= $GTK_REQUIRED
99 libglade-2.0 >= $LIBGLADE_REQUIRED
103 # -----------------------------------------------------------
105 # -----------------------------------------------------------
107 GETTEXT_PACKAGE=empathy
108 AC_SUBST(GETTEXT_PACKAGE)
109 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
113 # -----------------------------------------------------------
114 # ISO codes, used for aspell support
115 # -----------------------------------------------------------
116 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
117 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
119 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
120 iso_codes_pkgconfig=iso-codes
129 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
131 # -----------------------------------------------------------
133 # -----------------------------------------------------------
134 AC_ARG_ENABLE(aspell,
135 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
136 [compile with aspell support]), ,
139 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
140 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
143 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
144 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
146 if test "x$have_aspell" = "xyes"; then
147 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
148 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
156 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
157 AC_MSG_ERROR([Couldn't find aspell.])
161 # -----------------------------------------------------------
163 # -----------------------------------------------------------
164 AC_ARG_ENABLE(megaphone,
165 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
166 [build megaphone applet]), ,
167 enable_megaphone=auto)
169 if test "x$enable_megaphone" != "xno"; then
170 PKG_CHECK_MODULES(MEGAPHONE,
172 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
173 glib-2.0 >= $GLIB_REQUIRED
174 gtk+-2.0 >= $GTK_REQUIRED
175 gconf-2.0 >= $GCONF_REQUIRED
176 libglade-2.0 >= $LIBGLADE_REQUIRED
177 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
178 ], have_megaphone="yes", have_megaphone="no")
183 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
184 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
187 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
189 # -----------------------------------------------------------
191 # -----------------------------------------------------------
192 AC_ARG_ENABLE(nothere,
193 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
194 [build nothere applet]), ,
197 if test "x$enable_nothere" != "xno"; then
198 PKG_CHECK_MODULES(NOTHERE,
200 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
201 glib-2.0 >= $GLIB_REQUIRED
202 gtk+-2.0 >= $GTK_REQUIRED
203 gconf-2.0 >= $GCONF_REQUIRED
204 libglade-2.0 >= $LIBGLADE_REQUIRED
205 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
206 ], have_nothere="yes", have_nothere="no")
211 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
212 AC_MSG_ERROR([Couldn't find nothere dependencies.])
215 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
217 # -----------------------------------------------------------
219 # -----------------------------------------------------------
221 AS_HELP_STRING([--enable-tests=@<:@no/yes/auto@:>@],
225 if test "x$enable_tests" != "xno"; then
226 PKG_CHECK_MODULES(CHECK,
229 ], have_check="yes", have_check="no")
234 if test "x$enable_tests" = "xyes" -a "x$have_check" != "xyes"; then
235 AC_MSG_ERROR([Couldn't find check dependencies.])
238 AM_CONDITIONAL(HAVE_TESTS, test "x$have_check" = "xyes")
240 # -----------------------------------------------------------
242 # -----------------------------------------------------------
243 AC_ARG_ENABLE(python,
244 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
245 [build python bindings to libempathy and libempathy-gtk]), ,
248 if test "x$enable_python" != "xno"; then
250 if test -z "$PYTHON" ; then
253 PKG_CHECK_MODULES(PYTHON_BINDING,
256 glib-2.0 >= $GLIB_REQUIRED
258 gconf-2.0 >= $GCONF_REQUIRED
260 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
261 gtk+-2.0 >= $GTK_REQUIRED
262 libglade-2.0 >= $LIBGLADE_REQUIRED
263 ], have_python="yes", have_python="no")
264 if test "x$have_python" = "xyes" ; then
265 AM_CHECK_PYTHON_HEADERS(,have_python="no")
272 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
273 AC_MSG_ERROR([Couldn't find python.])
276 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
278 # -----------------------------------------------------------
280 # -----------------------------------------------------------
282 AS_HELP_STRING([--enable-voip=@<:@no/yes@:>@],
283 [Add support for Voice and Video call]), ,
286 if test "x$enable_voip" = "xyes"; then
287 AC_DEFINE(HAVE_VOIP, 1, [Define if we have voip])
290 AM_CONDITIONAL(HAVE_VOIP, test "x$enable_voip" = "xyes")
292 # -----------------------------------------------------------
297 data/empathy.desktop.in
302 libempathy/libempathy.pc
303 libempathy-gtk/Makefile
304 libempathy-gtk/libempathy-gtk.pc
307 megaphone/src/Makefile
308 megaphone/data/Makefile
311 nothere/data/Makefile
313 docs/libempathy/Makefile
314 docs/libempathy/version.xml
315 docs/libempathy-gtk/Makefile
316 docs/libempathy-gtk/version.xml
318 python/pyempathy/Makefile
319 python/pyempathygtk/Makefile