summaryrefslogtreecommitdiffstats
path: root/m4/ax_python.m4
diff options
context:
space:
mode:
authorMichal Ruprich <mruprich@redhat.com>2019-08-14 15:06:52 +0200
committerMichal Ruprich <mruprich@redhat.com>2019-08-14 15:06:52 +0200
commit6914937e177d1ea0551d862cfc0fb26e91725995 (patch)
treef27170824cce71b65221ae4605c64e7f90ed9b28 /m4/ax_python.m4
parentMerge pull request #4706 from qlyoung/fix-exit-vrf-markfile (diff)
downloadfrr-6914937e177d1ea0551d862cfc0fb26e91725995.tar.xz
frr-6914937e177d1ea0551d862cfc0fb26e91725995.zip
build: add check for python-3.8
In python-3.8, the --embed needs to be added to pythonX.Y-config Signed-off-by: Michal Ruprich <michalruprich@gmail.com>
Diffstat (limited to '')
-rw-r--r--m4/ax_python.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/m4/ax_python.m4 b/m4/ax_python.m4
index 32043c81a..66338511a 100644
--- a/m4/ax_python.m4
+++ b/m4/ax_python.m4
@@ -186,7 +186,11 @@ AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
AC_MSG_RESULT([yes])
PYTHON_CFLAGS="`\"$pycfg\" --includes`"
- PYTHON_LIBS="`\"$pycfg\" --ldflags`"
+ if test x"${py_ver}" == x"3.8" || test x"{py_ver}" == x"3.9"; then
+ PYTHON_LIBS="`\"$pycfg\" --ldflags --embed`"
+ else
+ PYTHON_LIBS="`\"$pycfg\" --ldflags`"
+ fi
AC_MSG_CHECKING([whether ${pycfg} provides a working build environment])
_FRR_PYTHON_DEVENV([$py_hex], [