1 AC_INIT([Gajim - A Jabber Instant Messager],
2 ["version-set-in-hgversion"],[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.16.0 pygtk-2.0 >= 2.16.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])
53 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
54 AC_SUBST(ACLOCAL_AMFLAGS)
56 AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
57 AC_SUBST([PYTHON_INCLUDES])
60 dnl enable installation in python-2.x/site-packages/gajim
62 AC_ARG_ENABLE(site-packages,
63 [AS_HELP_STRING([--enable-site-packages],
64 [install gajim sources in PYTHONDIR/site-packages/gajim
65 instead of DATADIR/gajim/src.])]
67 AC_SUBST([gajim_srcdir], [\${pkgpythondir}])
68 AC_SUBST([gajim_pluginsdir], [\${pkgpythondir}])
70 AC_SUBST([gajim_srcdir], [\${datadir}/\${PACKAGE}/src])
71 AC_SUBST([gajim_pluginsdir], [\${datadir}/\${PACKAGE}/plugins])
74 AS_AC_EXPAND(GAJIM_SRCDIR, "${gajim_srcdir}")
75 AS_AC_EXPAND(PKGDATADIR, "${datadir}/${PACKAGE}")
76 AS_AC_EXPAND(DOCDIR, "${docdir}")
77 AS_AC_EXPAND(LOCALEDIR, "${localedir}")
78 AS_AC_EXPAND(GAJIM_PLUGINSDIR, "${gajim_pluginsdir}")
87 data/emoticons/Makefile
89 data/iconsets/Makefile
91 data/activities/Makefile
97 scripts/gajim-remote:scripts/gajim.in
98 scripts/gajim-history-manager:scripts/gajim.in
104 *****************************
106 Prefix ........... ${prefix}
107 Python modules ... ${GAJIM_SRCDIR}
108 Plugins .. ....... ${GAJIM_PLUGINSDIR}
109 Documentation .... ${DOCDIR}
110 Others ........... ${PKGDATADIR}
111 *****************************"