build: find all future minor versions of python3

This way we can find every python from 3.8 further

Signed-off-by: Michal Ruprich <michalruprich@gmail.com>
This commit is contained in:
Michal Ruprich 2020-06-17 13:47:30 +02:00
parent 4030687aab
commit 838cb35e08
1 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,8 @@ AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
AC_MSG_RESULT([yes])
PYTHON_CFLAGS="`\"$pycfg\" --includes`"
if test x"${py_ver}" = x"3.8" || test x"{py_ver}" = x"3.9"; then
minor_ver=${py_ver#*\.}
if test $((minor_ver)) -gt 7; then
PYTHON_LIBS="`\"$pycfg\" --ldflags --embed`"
else
PYTHON_LIBS="`\"$pycfg\" --ldflags`"