Репозитории ALT
S: | 4.0.2-alt1 |
5.1: | 0.2.6-alt2 |
4.1: | 0.2.6-alt1 |
4.0: | 0.2.4-alt1 |
3.0: | 0.1.3-alt1 |
Группа :: Сети/IRC
Пакет: weechat
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: weechat-alt-python.patch
Скачать
Скачать
diff --git a/weechat/configure.ac b/weechat/configure.ac
index 2d23b36..4a0c24f 100644
--- a/weechat/configure.ac
+++ b/weechat/configure.ac
@@ -548,9 +548,14 @@ PYTHON_VERSION=
if test "x$enable_python" = "xyes" ; then
if test "x$enable_python3" = "xyes" ; then
AC_PATH_PROGS(PYTHON, python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python3 python2.7 python2.6 python2.5 python2 python)
+ python_pkg_module=python3
else
AC_PATH_PROGS(PYTHON, python2.7 python2.6 python2.5 python2 python)
+ python_pkg_module=python2
fi
+ PYTHON_VERSION=`$PKGCONFIG --modversion $python_pkg_module`
+ PYTHON_LFLAGS=`$PKGCONFIG --libs $python_pkg_module`
+ PYTHON_CFLAGS=`$PKGCONFIG --cflags $python_pkg_module`
if test -z $PYTHON ; then
AC_MSG_WARN([
*** Python must be installed on your system but python interpreter couldn't be found in path.
@@ -558,7 +563,7 @@ if test "x$enable_python" = "xyes" ; the
*** WeeChat will be built without Python support.])
enable_python="no"
not_found="$not_found python"
- else
+ elif test -z "$PYTHON_VERSION" ; then
PYTHON_SYSPREFIX=`$PYTHON -c 'import sys; sys.stdout.write("%s" % sys.prefix)'`
PYTHON_VERSION=`$PYTHON -c 'import sys; sys.stdout.write(sys.version[[:3]])'`
PYTHON_INCLUDE=`$PYTHON -c "import sys, distutils.sysconfig, string; sys.stdout.write(distutils.sysconfig.get_config_var('INCLUDEPY'))"`