configure.ac 2.06 KB
Newer Older
dkirov's avatar
dkirov committed
1
AC_INIT([Gajim - A Jabber Instant Messager],
2
		["version-set-in-hgversion"],[http://trac.gajim.org/],[gajim])
dkirov's avatar
dkirov committed
3
AC_PREREQ([2.59])
4

dkirov's avatar
dkirov committed
5
AC_CONFIG_HEADER(config.h)
6
AC_CONFIG_AUX_DIR(config)
dkirov's avatar
dkirov committed
7
AC_CONFIG_MACRO_DIR([m4])
8 9

AM_INIT_AUTOMAKE([1.8])
dkirov's avatar
dkirov committed
10 11 12
AM_MAINTAINER_MODE

IT_PROG_INTLTOOL([0.35.0])
dkirov's avatar
dkirov committed
13
PKG_PROG_PKG_CONFIG([0.19])
dkirov's avatar
dkirov committed
14 15 16 17 18 19 20 21 22 23

AM_DISABLE_STATIC
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)

AC_ISC_POSIX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
dkirov's avatar
dkirov committed
24 25
AC_C_CONST
AC_CHECK_HEADERS([libintl.h])
dkirov's avatar
dkirov committed
26
AC_PATH_X
dkirov's avatar
dkirov committed
27

dkirov's avatar
dkirov committed
28

dkirov's avatar
dkirov committed
29 30 31 32
GETTEXT_PACKAGE=gajim
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
AM_GLIB_GNU_GETTEXT
dkirov's avatar
dkirov committed
33
AM_NLS
dkirov's avatar
dkirov committed
34 35


dkirov's avatar
dkirov committed
36 37 38
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
AC_SUBST(ACLOCAL_AMFLAGS)

39
AM_PATH_PYTHON([2.5])
dkirov's avatar
dkirov committed
40

41 42 43 44 45 46 47 48 49 50
dnl ****
dnl enable installation in python-2.x/site-packages/gajim
dnl ****
AC_ARG_ENABLE(site-packages,
  [AS_HELP_STRING([--enable-site-packages],
	[install gajim sources in PYTHONDIR/site-packages/gajim
instead of DATADIR/gajim/src.])]
,
AC_SUBST([gajim_srcdir], [\${pkgpythondir}])
,
51
AC_SUBST([gajim_srcdir], [\${datadir}/\${PACKAGE}/src])
52
)
53

54 55
AC_SUBST([gajim_pluginsdir], [\${datadir}/\${PACKAGE}/plugins])

56
AS_AC_EXPAND(GAJIM_SRCDIR, "${gajim_srcdir}")
57
AS_AC_EXPAND(PKGDATADIR, "${datadir}/${PACKAGE}")
dkirov's avatar
dkirov committed
58
AS_AC_EXPAND(DOCDIR, "${docdir}")
59
AS_AC_EXPAND(LOCALEDIR, "${localedir}")
60
AS_AC_EXPAND(GAJIM_PLUGINSDIR, "${gajim_pluginsdir}")
dkirov's avatar
dkirov committed
61 62 63 64

AC_SUBST(VERSION)
AC_SUBST(PACKAGE)

dkirov's avatar
dkirov committed
65
AC_CONFIG_FILES([ 
dkirov's avatar
dkirov committed
66 67
	Makefile
	data/Makefile
68
	data/gui/Makefile
dkirov's avatar
dkirov committed
69 70 71
	data/emoticons/Makefile
	data/pixmaps/Makefile
	data/iconsets/Makefile
js's avatar
js committed
72
	data/moods/Makefile
73
	data/activities/Makefile
74
	icons/Makefile
dkirov's avatar
dkirov committed
75
	data/gajim.desktop.in
76
	data/gajim-remote.desktop.in
dkirov's avatar
dkirov committed
77
	data/defs.py
dkirov's avatar
dkirov committed
78 79
	src/Makefile
	scripts/gajim
80 81
	scripts/gajim-remote:scripts/gajim.in
	scripts/gajim-history-manager:scripts/gajim.in
dkirov's avatar
dkirov committed
82
	po/Makefile.in
83
	plugins/Makefile
dkirov's avatar
dkirov committed
84 85
])
AC_OUTPUT
86 87 88 89 90
echo "
*****************************
  Installation:
    Prefix ........... ${prefix}
    Python modules ... ${GAJIM_SRCDIR}
91
    Plugins .. ....... ${GAJIM_PLUGINSDIR}
92
    Documentation .... ${DOCDIR}
93
    Others ........... ${PKGDATADIR}
94 95
*****************************"