Improve python install prefix determination.

This commit is contained in:
tgoff0 2015-02-19 18:12:44 +00:00
parent 893bc2d95d
commit 40b1247b84
2 changed files with 17 additions and 6 deletions

View file

@ -236,7 +236,7 @@ if test "x$want_python" = "xyes"; then
AC_SUBST(libev_CFLAGS)
AC_SUBST(libev_LIBS, [-lev]),
AC_MSG_ERROR([Python bindings require libev (try installing your 'libev-devel' or 'libev-dev' package)])))
AC_SUBST(pyprefix, `eval ./python-prefix.py ${PYTHON_PREFIX}`)
AC_SUBST(pyprefix, `eval ${PYTHON} ./python-prefix.py ${PYTHON_PREFIX} ${PYTHON_VERSION}`)
if test "${pyprefix}" != "${PYTHON_PREFIX}"; then
pythondir=`echo ${pythondir} | sed -e 's,[$][{]prefix[}],${pyprefix},g'`
pyexecdir=`echo ${pyexecdir} | sed -e 's,[$][{]exec_prefix[}],${pyprefix},g'`