1 AC_INIT([Gajim - A Jabber Instant Messager],
2 [0.13.1],[http://trac.gajim.org/],[gajim])
5 AC_CONFIG_HEADER(config.h)
6 AC_CONFIG_AUX_DIR(config)
7 AC_CONFIG_MACRO_DIR([m4])
9 AM_INIT_AUTOMAKE([1.8])
12 dnl Make Objective-C work with automake
13 AM_CONDITIONAL([am__fastdepOBJC], false)
15 IT_PROG_INTLTOOL([0.35.0])
16 PKG_PROG_PKG_CONFIG([0.19])
28 AC_CHECK_HEADERS([libintl.h])
33 AC_SUBST([GETTEXT_PACKAGE])
34 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
42 PKG_CHECK_MODULES([PYGTK], [gtk+-2.0 >= 2.12.0 pygtk-2.0 >= 2.12.0])
43 AC_SUBST(PYGTK_CFLAGS)
45 PYGTK_DEFS=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
49 if test "x$PYTHON" = "x:"; then
50 AC_MSG_ERROR([Python not found])
56 AC_ARG_ENABLE(trayicon,
57 [ --disable-trayicon do not build trayicon module [default yes]],
58 enable_trayicon=$enableval, enable_trayicon=yes)
59 test "x$enable_trayicon" = "xyes" && have_trayicon=true || have_trayicon=false
60 AM_CONDITIONAL(BUILD_TRAYICON, $have_trayicon)
62 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
63 AC_SUBST(ACLOCAL_AMFLAGS)
65 AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
66 AC_SUBST([PYTHON_INCLUDES])
68 AS_AC_EXPAND(DATADIR, "${datadir}")
69 AS_AC_EXPAND(LIBDIR, "${libdir}")
70 AS_AC_EXPAND(DOCDIR, "${docdir}")
71 AS_AC_EXPAND(LOCALEDIR, "${localedir}")
80 data/emoticons/Makefile
82 data/iconsets/Makefile
84 data/activities/Makefile
89 scripts/gajim-remote:scripts/gajim.in
90 scripts/gajim-history-manager:scripts/gajim.in
95 *****************************
97 trayicon ......... ${have_trayicon}
98 *****************************"