summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorMichal Ruprich <michalruprich@gmail.com>2020-06-17 13:47:30 +0200
committerMichal Ruprich <michalruprich@gmail.com>2020-07-09 06:47:31 +0200
commit838cb35e08eb98acbc27637808162105ae2c4549 (patch)
treed9a8975d1ac0cb9be83b9177725635b283725e5b /m4
parentMerge pull request #6385 from GalaxyGorilla/bfd_igp_topotest (diff)
downloadfrr-838cb35e08eb98acbc27637808162105ae2c4549.tar.xz
frr-838cb35e08eb98acbc27637808162105ae2c4549.zip
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>
Diffstat (limited to 'm4')
-rw-r--r--m4/ax_python.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/ax_python.m4 b/m4/ax_python.m4
index 9f43ea0ab..91d12b99b 100644
--- a/m4/ax_python.m4
+++ b/m4/ax_python.m4
@@ -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`"