Skip to content

Commit

Permalink
Added --with-pluginsdir to configure script
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeLametta committed May 19, 2016
1 parent 98cf738 commit 8010096
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,19 @@ AM_PATH_PYTHON(2.3)
dnl check for where to install our python stuff
PYVER=[`$PYTHON -c "import sys ; print sys.version[:3]"`]

AC_ARG_WITH([pluginsdir],
AS_HELP_STRING([--with-pluginsdir], [Set custom global plugin directory]),
[],
[with_pluginsdir=none])

dnl This is the best way of installing in an arch-independent location for now
AS_AC_EXPAND(PYTHONLIBDIR, "\${exec_prefix}/lib/python$PYVER/site-packages")

AC_MSG_NOTICE(Installing python code in $PYTHONLIBDIR)
AC_SUBST(PYTHONLIBDIR)

AS_AC_EXPAND(PLUGINSDIR, "\${libdir}/morituri/plugins")
AS_IF([test "x$with_pluginsdir" != "xnone"], [AS_AC_EXPAND(PLUGINSDIR, "$with_pluginsdir")],
[test "x$with_pluginsdir" = "xnone"], [AS_AC_EXPAND(PLUGINSDIR, "\${libdir}/morituri/plugins")])
AC_MSG_NOTICE(Setting plugins directory to $PLUGINSDIR)

dnl get git revision for installed.py.in
Expand Down

0 comments on commit 8010096

Please sign in to comment.