1 AC_INIT(Empathy, 2.25.90, 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=19
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_GLIB_REQUIRED=0.7.19
34 MISSION_CONTROL_REQUIRED=4.61
35 ENCHANT_REQUIRED=1.2.0
36 ISO_CODES_REQUIRED=0.35
37 LIBNOTIFY_REQUIRED=0.4.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
93 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
94 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
95 gio-2.0 >= $GLIB_REQUIRED
96 gio-unix-2.0 >= $GLIB_REQUIRED
100 PKG_CHECK_MODULES(EMPATHY,
102 glib-2.0 >= $GLIB_REQUIRED
104 gio-2.0 >= $GLIB_REQUIRED
105 gconf-2.0 >= $GCONF_REQUIRED
106 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
107 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
108 gtk+-2.0 >= $GTK_REQUIRED
110 libglade-2.0 >= $LIBGLADE_REQUIRED
112 libcanberra-gtk >= 0.4
114 gstreamer-interfaces-0.10
117 PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED)
119 # -----------------------------------------------------------
121 # -----------------------------------------------------------
124 AC_HELP_STRING([--disable-debug],[compile without debug code]),
125 enable_debug=$enableval, enable_debug=yes )
127 if test x$enable_debug = xyes; then
128 AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
131 # -----------------------------------------------------------
133 # -----------------------------------------------------------
135 GETTEXT_PACKAGE=empathy
136 AC_SUBST(GETTEXT_PACKAGE)
137 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
141 # -----------------------------------------------------------
142 # spellchecking checks: enchant and iso-codes
143 # -----------------------------------------------------------
145 AS_HELP_STRING([--enable-spell=@<:@no/yes/auto@:>@],
146 [Enable spell checking]), ,
149 if test "x$enable_spell" != "xno"; then
150 PKG_CHECK_MODULES(ENCHANT,
152 enchant >= $ENCHANT_REQUIRED,
153 iso-codes >= $ISO_CODES_REQUIRED
154 ], have_enchant="yes", have_enchant="no")
156 if test "x$have_enchant" = "xyes"; then
157 AC_MSG_CHECKING([whether iso-codes has iso-639 and iso-3166 domains])
158 if $PKG_CONFIG --variable=domains iso-codes | grep 639 > /dev/null && \
159 $PKG_CONFIG --variable=domains iso-codes | grep 3166 > /dev/null ; then
160 AC_DEFINE_UNQUOTED(ISO_CODES_PREFIX, ["`$PKG_CONFIG --variable=prefix iso-codes`"], [ISO codes prefix])
161 AC_DEFINE(HAVE_ENCHANT, [], [Define if you have libenchant])
167 AC_MSG_RESULT([$result])
173 if test "x$enable_spell" = "xyes" -a "x$have_enchant" != "xyes"; then
174 AC_MSG_ERROR([Couldn't find spell dependencies.])
177 AM_CONDITIONAL(HAVE_ENCHANT, test "x$have_enchant" = "xyes")
179 # -----------------------------------------------------------
181 # -----------------------------------------------------------
182 AC_ARG_ENABLE(megaphone,
183 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
184 [build megaphone applet]), ,
185 enable_megaphone=auto)
187 if test "x$enable_megaphone" != "xno"; then
188 PKG_CHECK_MODULES(MEGAPHONE,
190 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
191 glib-2.0 >= $GLIB_REQUIRED
192 gtk+-2.0 >= $GTK_REQUIRED
193 gconf-2.0 >= $GCONF_REQUIRED
194 libglade-2.0 >= $LIBGLADE_REQUIRED
195 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
196 ], have_megaphone="yes", have_megaphone="no")
201 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
202 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
205 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
207 # -----------------------------------------------------------
209 # -----------------------------------------------------------
210 AC_ARG_ENABLE(nothere,
211 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
212 [build nothere applet]), ,
215 if test "x$enable_nothere" != "xno"; then
216 PKG_CHECK_MODULES(NOTHERE,
218 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
219 glib-2.0 >= $GLIB_REQUIRED
220 gtk+-2.0 >= $GTK_REQUIRED
221 gconf-2.0 >= $GCONF_REQUIRED
222 libglade-2.0 >= $LIBGLADE_REQUIRED
223 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
224 ], have_nothere="yes", have_nothere="no")
229 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
230 AC_MSG_ERROR([Couldn't find nothere dependencies.])
233 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
235 # -----------------------------------------------------------
237 # -----------------------------------------------------------
239 AS_HELP_STRING([--enable-tests=@<:@no/yes/auto@:>@],
243 if test "x$enable_tests" != "xno"; then
244 PKG_CHECK_MODULES(CHECK,
247 ], have_check="yes", have_check="no")
252 if test "x$enable_tests" = "xyes" -a "x$have_check" != "xyes"; then
253 AC_MSG_ERROR([Couldn't find check dependencies.])
256 AM_CONDITIONAL(HAVE_TESTS, test "x$have_check" = "xyes")
258 # -----------------------------------------------------------
260 # -----------------------------------------------------------
261 AC_ARG_ENABLE(python,
262 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
263 [build python bindings to libempathy and libempathy-gtk]), ,
266 if test "x$enable_python" != "xno"; then
267 PKG_CHECK_MODULES(PYTHON_BINDING,
270 glib-2.0 >= $GLIB_REQUIRED
272 gconf-2.0 >= $GCONF_REQUIRED
274 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
275 gtk+-2.0 >= $GTK_REQUIRED
276 libglade-2.0 >= $LIBGLADE_REQUIRED
277 ], have_python="yes", have_python="no")
278 if test "x$have_python" = "xyes" ; then
279 AM_CHECK_PYTHON_HEADERS(,have_python="no")
280 AC_CHECK_PROGS([PYGOBJECTCODEGEN], [pygobject-codegen-2.0 pygtk-codegen-2.0])
286 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
287 AC_MSG_ERROR([Couldn't find python.])
290 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "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
319 python/pyempathy/Makefile
320 python/pyempathygtk/Makefile