Expand the PYTHON_PREFIX autoconf variable before using.

This commit is contained in:
tgoff0 2015-02-19 02:00:27 +00:00
parent 99ab22c78c
commit 74c9ccb7f8

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, `./python-prefix.py ${PYTHON_PREFIX}`)
AC_SUBST(pyprefix, `eval ./python-prefix.py ${PYTHON_PREFIX}`)
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'`