]> git.puffer.fish Git - matthieu/frr.git/commitdiff
build: add check for python-3.8
authorMichal Ruprich <mruprich@redhat.com>
Wed, 14 Aug 2019 13:06:52 +0000 (15:06 +0200)
committerMichal Ruprich <mruprich@redhat.com>
Wed, 14 Aug 2019 13:06:52 +0000 (15:06 +0200)
In python-3.8, the --embed needs to be added to pythonX.Y-config

Signed-off-by: Michal Ruprich <michalruprich@gmail.com>
m4/ax_python.m4

index 32043c81ae23f51485df53d8ef2c746758397129..66338511a3591e0a3e325b4af6f11e2155c2df31 100644 (file)
@@ -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], [