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 TELEPATHY_REQUIRED=0.0.57
53 MISSION_CONTROL_REQUIRED=4.33
57 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
58 AC_SUBST(GLIB_GENMARSHAL)
60 dnl -----------------------------------------------------------
62 dnl -----------------------------------------------------------
64 GETTEXT_PACKAGE=empathy
65 AC_SUBST(GETTEXT_PACKAGE)
66 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
70 dnl -----------------------------------------------------------
71 dnl Pkg-Config dependency checks
72 dnl -----------------------------------------------------------
74 PKG_CHECK_MODULES(LIBEMPATHY,
76 glib-2.0 >= $GLIB_REQUIRED
78 gconf-2.0 >= $GCONF_REQUIRED
80 libtelepathy >= $TELEPATHY_REQUIRED
81 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
84 PKG_CHECK_MODULES(EMPATHY,
86 glib-2.0 >= $GLIB_REQUIRED
88 gconf-2.0 >= $GCONF_REQUIRED
91 libtelepathy >= $TELEPATHY_REQUIRED
92 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
93 gtk+-2.0 >= $GTK_REQUIRED
94 libglade-2.0 >= $LIBGLADE_REQUIRED
99 dnl -----------------------------------------------------------
100 dnl ISO codes, used for aspell support
101 dnl -----------------------------------------------------------
102 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
103 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
105 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
106 iso_codes_pkgconfig=iso-codes
115 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
117 dnl -----------------------------------------------------------
119 dnl -----------------------------------------------------------
120 AC_ARG_ENABLE(aspell,
121 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
122 [compile with aspell support]), ,
125 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
126 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
129 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
130 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
132 if test "x$have_aspell" = "xyes"; then
133 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
134 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
142 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
143 AC_MSG_ERROR([Couldn't find aspell.])
147 dnl -----------------------------------------------------------
149 dnl -----------------------------------------------------------
150 AC_ARG_ENABLE(python,
151 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
152 [build python bindings to libempathy and libempathy-gtk]), ,
155 if test "x$enable_python" != "xno"; then
157 if test -z "$PYTHON" ; then
160 PKG_CHECK_MODULES(PYTHON_BINDING,
163 glib-2.0 >= $GLIB_REQUIRED
165 gconf-2.0 >= $GCONF_REQUIRED
168 libtelepathy >= $TELEPATHY_REQUIRED
169 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
170 gtk+-2.0 >= $GTK_REQUIRED
171 libglade-2.0 >= $LIBGLADE_REQUIRED
173 ], have_python="yes", have_python="no")
179 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
180 AC_MSG_ERROR([Couldn't find python.])
183 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
185 dnl -----------------------------------------------------------
190 data/empathy.desktop.in
196 data/scalable/Makefile
199 libempathy/libempathy.pc
200 libempathy-gtk/Makefile
201 libempathy-gtk/libempathy-gtk.pc
204 doc/libempathy/Makefile
205 doc/libempathy-gtk/Makefile
207 python/pyempathy/Makefile
208 python/pyempathygtk/Makefile