1 AC_INIT(Empathy, 2.27.1, http://bugzilla.gnome.org/browse.cgi?product=empathy)
4 Copyright (C) 2003-2007 Imendio AB
5 Copyright (C) 2007-2008 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=21
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 LIBPANELAPPLET_REQUIRED=2.10.0
32 TELEPATHY_GLIB_REQUIRED=0.7.23
33 MISSION_CONTROL_REQUIRED=4.61
34 ENCHANT_REQUIRED=1.2.0
35 ISO_CODES_REQUIRED=0.35
36 LIBNOTIFY_REQUIRED=0.4.4
37 LIBCANBERRA_GTK_REQUIRED=0.4
39 # Uncomment that to build with deprecated symbols disabled
40 #AC_DEFINE(G_DISABLE_DEPRECATED, [], [Disable deprecated GLib symbols])
41 #AC_DEFINE(GDK_PIXBUF_DISABLE_DEPRECATED, [], [Disable deprecated GDK pixbuf symbols])
42 #AC_DEFINE(GDK_DISABLE_DEPRECATED, [], [Disable deprecated GDK symbols])
43 #AC_DEFINE(GTK_DISABLE_DEPRECATED, [], [Disable deprecated GTK symbols])
45 # Uncomment that to build with single include disabled
46 #AC_DEFINE(G_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GLib])
47 #AC_DEFINE(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GDK pixbuf])
48 #AC_DEFINE(GTK_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GTK])
50 AC_CONFIG_MACRO_DIR([m4])
51 AC_CONFIG_HEADERS([config.h])
52 AC_CONFIG_SRCDIR([configure.ac])
57 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define -Wno-portability)
66 IT_PROG_INTLTOOL([0.35.0])
70 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
71 AC_PATH_PROG(GCONFTOOL, gconftool-2)
73 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
74 AC_SUBST(GLIB_GENMARSHAL)
76 AC_CHECK_PROGS([XSLTPROC], [xsltproc])
77 if test -z "$XSLTPROC"; then
78 AC_MSG_ERROR([xsltproc (from libxslt) is required])
84 # -----------------------------------------------------------
85 # Pkg-Config dependency checks
86 # -----------------------------------------------------------
88 PKG_CHECK_MODULES(LIBEMPATHY,
90 glib-2.0 >= $GLIB_REQUIRED
92 gio-2.0 >= $GLIB_REQUIRED
93 gio-unix-2.0 >= $GLIB_REQUIRED
95 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
96 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
100 PKG_CHECK_MODULES(LIBEMPATHYGTK,
102 glib-2.0 >= $GLIB_REQUIRED
104 gio-2.0 >= $GLIB_REQUIRED
105 gconf-2.0 >= $GCONF_REQUIRED
107 gtk+-2.0 >= $GTK_REQUIRED
108 libcanberra-gtk >= $LIBCANBERRA_GTK_REQUIRED
109 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
110 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
113 gstreamer-interfaces-0.10
116 PKG_CHECK_MODULES(EMPATHY,
118 glib-2.0 >= $GLIB_REQUIRED
120 gio-2.0 >= $GLIB_REQUIRED
121 gconf-2.0 >= $GCONF_REQUIRED
123 gtk+-2.0 >= $GTK_REQUIRED
124 libcanberra-gtk >= $LIBCANBERRA_GTK_REQUIRED
126 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
127 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
130 gstreamer-interfaces-0.10
133 PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED)
135 # -----------------------------------------------------------
137 # -----------------------------------------------------------
140 AC_HELP_STRING([--disable-debug],[compile without debug code]),
141 enable_debug=$enableval, enable_debug=yes )
143 if test x$enable_debug = xyes; then
144 AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
147 # -----------------------------------------------------------
149 # -----------------------------------------------------------
151 GETTEXT_PACKAGE=empathy
152 AC_SUBST(GETTEXT_PACKAGE)
153 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
157 # -----------------------------------------------------------
158 # spellchecking checks: enchant and iso-codes
159 # -----------------------------------------------------------
161 AS_HELP_STRING([--enable-spell=@<:@no/yes/auto@:>@],
162 [Enable spell checking]), ,
165 if test "x$enable_spell" != "xno"; then
166 PKG_CHECK_MODULES(ENCHANT,
168 enchant >= $ENCHANT_REQUIRED,
169 iso-codes >= $ISO_CODES_REQUIRED
170 ], have_enchant="yes", have_enchant="no")
172 if test "x$have_enchant" = "xyes"; then
173 AC_MSG_CHECKING([whether iso-codes has iso-639 and iso-3166 domains])
174 if $PKG_CONFIG --variable=domains iso-codes | grep 639 > /dev/null && \
175 $PKG_CONFIG --variable=domains iso-codes | grep 3166 > /dev/null ; then
176 AC_DEFINE_UNQUOTED(ISO_CODES_PREFIX, ["`$PKG_CONFIG --variable=prefix iso-codes`"], [ISO codes prefix])
177 AC_DEFINE(HAVE_ENCHANT, [], [Define if you have libenchant])
183 AC_MSG_RESULT([$result])
189 if test "x$enable_spell" = "xyes" -a "x$have_enchant" != "xyes"; then
190 AC_MSG_ERROR([Couldn't find spell dependencies.])
193 AM_CONDITIONAL(HAVE_ENCHANT, test "x$have_enchant" = "xyes")
195 # -----------------------------------------------------------
197 # -----------------------------------------------------------
198 AC_ARG_ENABLE(megaphone,
199 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
200 [build megaphone applet]), ,
201 enable_megaphone=auto)
203 if test "x$enable_megaphone" != "xno"; then
204 PKG_CHECK_MODULES(MEGAPHONE,
206 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
207 glib-2.0 >= $GLIB_REQUIRED
208 gtk+-2.0 >= $GTK_REQUIRED
209 gconf-2.0 >= $GCONF_REQUIRED
210 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
211 ], have_megaphone="yes", have_megaphone="no")
216 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
217 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
220 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
222 # -----------------------------------------------------------
224 # -----------------------------------------------------------
225 AC_ARG_ENABLE(nothere,
226 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
227 [build nothere applet]), ,
230 if test "x$enable_nothere" != "xno"; then
231 PKG_CHECK_MODULES(NOTHERE,
233 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
234 glib-2.0 >= $GLIB_REQUIRED
235 gtk+-2.0 >= $GTK_REQUIRED
236 gconf-2.0 >= $GCONF_REQUIRED
237 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
238 ], have_nothere="yes", have_nothere="no")
243 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
244 AC_MSG_ERROR([Couldn't find nothere dependencies.])
247 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
249 # -----------------------------------------------------------
251 # -----------------------------------------------------------
253 AS_HELP_STRING([--enable-tests=@<:@no/yes/auto@:>@],
257 if test "x$enable_tests" != "xno"; then
258 PKG_CHECK_MODULES(CHECK,
261 ], have_check="yes", have_check="no")
266 if test "x$enable_tests" = "xyes" -a "x$have_check" != "xyes"; then
267 AC_MSG_ERROR([Couldn't find check dependencies.])
270 AM_CONDITIONAL(HAVE_TESTS, test "x$have_check" = "xyes")
272 # -----------------------------------------------------------
274 # -----------------------------------------------------------
275 AC_ARG_ENABLE(python,
276 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
277 [build python bindings to libempathy and libempathy-gtk]), ,
280 if test "x$enable_python" != "xno"; then
281 PKG_CHECK_MODULES(PYTHON_BINDING,
284 glib-2.0 >= $GLIB_REQUIRED
286 gconf-2.0 >= $GCONF_REQUIRED
288 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
289 gtk+-2.0 >= $GTK_REQUIRED
291 gstreamer-interfaces-0.10
293 ], have_python="yes", have_python="no")
294 if test "x$have_python" = "xyes" ; then
295 AM_CHECK_PYTHON_HEADERS(,have_python="no")
296 AC_CHECK_PROGS([PYGOBJECTCODEGEN], [pygobject-codegen-2.0 pygtk-codegen-2.0])
302 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
303 AC_MSG_ERROR([Couldn't find python.])
306 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
308 # -----------------------------------------------------------
313 data/empathy.desktop.in
318 libempathy/libempathy.pc
319 libempathy-gtk/Makefile
320 libempathy-gtk/libempathy-gtk.pc
323 megaphone/src/Makefile
324 megaphone/data/Makefile
327 nothere/data/Makefile
329 docs/libempathy/Makefile
330 docs/libempathy/version.xml
331 docs/libempathy-gtk/Makefile
332 docs/libempathy-gtk/version.xml
335 python/pyempathy/Makefile
336 python/pyempathygtk/Makefile