Группа :: Базы Данных
Пакет: postgresql
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: postgresql-7.4.6-alt-python64.patch
--- config/python.m4.orig 2003-09-02 03:01:48 +0400
+++ config/python.m4 2005-02-04 12:12:23 +0300
@@ -25,7 +25,8 @@
python_version=`${PYTHON} -c "import sys; print sys.version[[:3]]"`
python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
-python_configdir="${python_execprefix}/lib/python${python_version}/config"
+python_libdir=`${PYTHON} -c "import sys; print sys.path[[2]]"`
+python_configdir="${python_libdir}/config"
python_includespec="-I${python_prefix}/include/python${python_version}"
if test "$python_prefix" != "$python_execprefix"; then
python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
@@ -33,13 +34,14 @@
AC_SUBST(python_prefix)[]dnl
AC_SUBST(python_execprefix)[]dnl
+AC_SUBST(python_libdir)[]dnl
AC_SUBST(python_configdir)[]dnl
AC_SUBST(python_includespec)[]dnl
# This should be enough of a message.
if test "$python_prefix" != "$python_execprefix"; then
- AC_MSG_RESULT([$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}])
+ AC_MSG_RESULT([${python_libdir} and ${python_libdir}])
else
- AC_MSG_RESULT([$python_prefix/lib/python${python_version}])
+ AC_MSG_RESULT([${python_libdir}])
fi
])# _PGAC_CHECK_PYTHON_DIRS