1 AC_INIT(Empathy, 0.13, 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=3
27 LIBEMPATHY_GTK_REVISION=0
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.0.57
54 MISSION_CONTROL_REQUIRED=4.33
58 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
59 AC_SUBST(GLIB_GENMARSHAL)
61 dnl -----------------------------------------------------------
63 dnl -----------------------------------------------------------
65 GETTEXT_PACKAGE=empathy
66 AC_SUBST(GETTEXT_PACKAGE)
67 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
71 dnl -----------------------------------------------------------
72 dnl Pkg-Config dependency checks
73 dnl -----------------------------------------------------------
75 PKG_CHECK_MODULES(LIBEMPATHY,
77 glib-2.0 >= $GLIB_REQUIRED
79 gconf-2.0 >= $GCONF_REQUIRED
81 libtelepathy >= $TELEPATHY_REQUIRED
82 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
85 PKG_CHECK_MODULES(EMPATHY,
87 glib-2.0 >= $GLIB_REQUIRED
89 gconf-2.0 >= $GCONF_REQUIRED
92 libtelepathy >= $TELEPATHY_REQUIRED
93 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
94 gtk+-2.0 >= $GTK_REQUIRED
95 libglade-2.0 >= $LIBGLADE_REQUIRED
100 dnl -----------------------------------------------------------
101 dnl ISO codes, used for aspell support
102 dnl -----------------------------------------------------------
103 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
104 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
106 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
107 iso_codes_pkgconfig=iso-codes
116 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
118 dnl -----------------------------------------------------------
120 dnl -----------------------------------------------------------
121 AC_ARG_ENABLE(aspell,
122 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
123 [compile with aspell support]), ,
126 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
127 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
130 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
131 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
133 if test "x$have_aspell" = "xyes"; then
134 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
135 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
143 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
144 AC_MSG_ERROR([Couldn't find aspell.])
148 dnl -----------------------------------------------------------
150 dnl -----------------------------------------------------------
151 AC_ARG_ENABLE(megaphone,
152 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
153 [build megaphone applet]), ,
154 enable_megaphone=auto)
156 if test "x$enable_megaphone" != "xno"; then
157 PKG_CHECK_MODULES(MEGAPHONE,
159 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
160 glib-2.0 >= $GLIB_REQUIRED
161 gtk+-2.0 >= $GTK_REQUIRED
162 gconf-2.0 >= $GCONF_REQUIRED
163 libglade-2.0 >= $LIBGLADE_REQUIRED
165 libtelepathy >= $TELEPATHY_REQUIRED
166 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
167 ], have_megaphone="yes", have_megaphone="no")
172 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
173 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
176 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
178 dnl -----------------------------------------------------------
180 dnl -----------------------------------------------------------
181 AC_ARG_ENABLE(nothere,
182 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
183 [build nothere applet]), ,
186 if test "x$enable_nothere" != "xno"; then
187 PKG_CHECK_MODULES(NOTHERE,
189 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
190 glib-2.0 >= $GLIB_REQUIRED
191 gtk+-2.0 >= $GTK_REQUIRED
192 gconf-2.0 >= $GCONF_REQUIRED
193 libglade-2.0 >= $LIBGLADE_REQUIRED
194 libtelepathy >= $TELEPATHY_REQUIRED
195 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
196 ], have_nothere="yes", have_nothere="no")
201 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
202 AC_MSG_ERROR([Couldn't find nothere dependencies.])
205 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
207 dnl -----------------------------------------------------------
209 dnl -----------------------------------------------------------
211 AS_HELP_STRING([--enable-tests=@<:@no/yes@:>@],
215 AM_CONDITIONAL(HAVE_TESTS, test "x$enable_tests" = "xyes")
217 dnl -----------------------------------------------------------
219 dnl -----------------------------------------------------------
220 AC_ARG_ENABLE(python,
221 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
222 [build python bindings to libempathy and libempathy-gtk]), ,
225 if test "x$enable_python" != "xno"; then
227 if test -z "$PYTHON" ; then
230 PKG_CHECK_MODULES(PYTHON_BINDING,
233 glib-2.0 >= $GLIB_REQUIRED
235 gconf-2.0 >= $GCONF_REQUIRED
238 libtelepathy >= $TELEPATHY_REQUIRED
239 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
240 gtk+-2.0 >= $GTK_REQUIRED
241 libglade-2.0 >= $LIBGLADE_REQUIRED
243 ], have_python="yes", have_python="no")
249 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
250 AC_MSG_ERROR([Couldn't find python.])
253 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
255 dnl -----------------------------------------------------------
260 data/empathy.desktop.in
266 data/scalable/Makefile
269 libempathy/libempathy.pc
270 libempathy-gtk/Makefile
271 libempathy-gtk/libempathy-gtk.pc
274 megaphone/src/Makefile
275 megaphone/data/Makefile
278 nothere/data/Makefile doc/Makefile
279 doc/libempathy/Makefile
280 doc/libempathy-gtk/Makefile
282 python/pyempathy/Makefile
283 python/pyempathygtk/Makefile