Update version detection for python 3.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/15/head
Michele Calgaro 2 years ago committed by Slávek Banko
parent a7f75ac0ff
commit 7e4fd6fc51
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -4463,7 +4463,7 @@ AC_REQUIRE([KDE_CHECK_LIBPTHREAD])
AC_REQUIRE([KDE_CHECK_PYTHON_DIR])
if test -z "$1"; then
version="1.5"
version="3.0"
else
version="$1"
fi
@ -4551,22 +4551,12 @@ fi
AC_DEFUN([KDE_CHECK_PYTHON],
[
KDE_CHECK_PYTHON_INTERN("2.7",
[KDE_CHECK_PYTHON_INTERN("2.6",
[KDE_CHECK_PYTHON_INTERN("2.5",
[KDE_CHECK_PYTHON_INTERN("2.4",
[KDE_CHECK_PYTHON_INTERN("2.3",
[KDE_CHECK_PYTHON_INTERN("2.2",
[KDE_CHECK_PYTHON_INTERN("2.1",
[KDE_CHECK_PYTHON_INTERN("2.0",
[KDE_CHECK_PYTHON_INTERN($1, $2) ])
])
])
])
])
])
])
])
for PYTHON_VER_TEST in 3.{12,11,10,9,8,7,6,5,4,3,2,1,0}; do
KDE_CHECK_PYTHON_INTERN("$PYTHON_VER_TEST")
if test -n "$PYTHONLIB"; then
break
fi
done
])
AC_DEFUN([KDE_CHECK_STL],

Loading…
Cancel
Save