Skip to content
Snippets Groups Projects
Commit 4dd159b4 authored by Bruno Tarquini's avatar Bruno Tarquini
Browse files

autotools: add --enable-site-packages option

This option allows the installation of pyfiles in PYTHON/site-packages/gajim
instead of DATADIR/gajim/src which is a quality policy for some distributions.
parent fe8bd2b0
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,18 @@ AC_SUBST(ACLOCAL_AMFLAGS)
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
AC_SUBST([PYTHON_INCLUDES])
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}])
,
AC_SUBST([gajim_srcdir], [\${datadir}/\${PACKAGE}/src])
)
AS_AC_EXPAND(GAJIM_SRCDIR, "${gajim_srcdir}")
AS_AC_EXPAND(PKGDATADIR, "${datadir}/${PACKAGE}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment