1 AC_INIT(Empathy, 0.10, http://bugzilla.gnome.org/browse.cgi?product=empathy)
3 AC_COPYRIGHT([Copyright (C) 2003-2007 Imendio AB])
5 AM_CONFIG_HEADER(config.h)
6 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define)
14 # LT Version numbers, remember to change them just *before* a release.
15 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
16 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
17 # (No interfaces changed: REVISION++)
21 AC_SUBST(LIBEMPATHY_CURRENT)
22 AC_SUBST(LIBEMPATHY_AGE)
23 AC_SUBST(LIBEMPATHY_REVISION)
25 LIBEMPATHY_GTK_CURRENT=0
27 LIBEMPATHY_GTK_REVISION=0
28 AC_SUBST(LIBEMPATHY_GTK_CURRENT)
29 AC_SUBST(LIBEMPATHY_GTK_AGE)
30 AC_SUBST(LIBEMPATHY_GTK_REVISION)
36 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
37 AC_PATH_PROG(GCONFTOOL, gconftool-2)
40 IT_PROG_INTLTOOL([0.35.0])
47 LIBGLADE_REQUIRED=2.0.0
48 TELEPATHY_REQUIRED=0.0.51
49 MISSION_CONTROL_REQUIRED=4.27
53 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
54 AC_SUBST(GLIB_GENMARSHAL)
56 pluginlibdir=`$PKG_CONFIG mission-control --variable=pluginlibdir`
57 AC_SUBST(pluginlibdir)
59 dnl -----------------------------------------------------------
61 dnl -----------------------------------------------------------
63 GETTEXT_PACKAGE=empathy
64 AC_SUBST(GETTEXT_PACKAGE)
65 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
69 dnl -----------------------------------------------------------
70 dnl Pkg-Config dependency checks
71 dnl -----------------------------------------------------------
73 PKG_CHECK_MODULES(LIBEMPATHY,
75 glib-2.0 >= $GLIB_REQUIRED
77 gconf-2.0 >= $GCONF_REQUIRED
79 libtelepathy >= $TELEPATHY_REQUIRED
80 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
83 PKG_CHECK_MODULES(EMPATHY,
85 glib-2.0 >= $GLIB_REQUIRED
87 gconf-2.0 >= $GCONF_REQUIRED
90 libtelepathy >= $TELEPATHY_REQUIRED
91 libmissioncontrol >= $MISSION_CONTROL_REQUIRED
92 gtk+-2.0 >= $GTK_REQUIRED
93 libglade-2.0 >= $LIBGLADE_REQUIRED
97 dnl -----------------------------------------------------------
98 dnl ISO codes, used for aspell support
99 dnl -----------------------------------------------------------
100 AC_MSG_CHECKING([whether iso-codes exists and has iso-639 domain])
101 if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 ; then
103 iso_codes_prefix=`$PKG_CONFIG --variable=prefix iso-codes`
104 iso_codes_pkgconfig=iso-codes
113 AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["$iso_codes_prefix"],[ISO codes prefix])
115 dnl -----------------------------------------------------------
117 dnl -----------------------------------------------------------
118 AC_ARG_ENABLE(aspell,
119 AS_HELP_STRING([--enable-aspell=@<:@no/yes/auto@:>@],
120 [compile with aspell support]), ,
123 if test "x$enable_aspell" = "xyes" -a "x$have_iso_codes" != "xyes"; then
124 AC_MSG_ERROR([You must have iso-codes with the iso-639 domain to use aspell.])
127 if test "x$enable_aspell" != "xno" -a "x$have_iso_codes" = "xyes"; then
128 AC_CHECK_LIB(aspell, aspell_speller_check,have_aspell=yes,have_aspell=no,)
130 if test "x$have_aspell" = "xyes"; then
131 AC_DEFINE(HAVE_ASPELL, 1, [Define if we have aspell])
132 EMPATHY_LIBS="$EMPATHY_LIBS -laspell"
140 if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then
141 AC_MSG_ERROR([Couldn't find aspell.])
144 dnl -----------------------------------------------------------
148 data/empathy.desktop.in
153 data/scalable/Makefile
156 libempathy/libempathy.pc
157 libempathy-gtk/Makefile
158 libempathy-gtk/libempathy-gtk.pc
161 doc/libempathy/Makefile
162 doc/libempathy-gtk/Makefile