configure: Fix test for python 3.8
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 15 Nov 2019 16:15:32 +0000 (16:15 +0000)
committerWei Liu <wl@xen.org>
Wed, 20 Nov 2019 10:46:48 +0000 (10:46 +0000)
commit0d2791b007436f83cc8cb922acb1849a3ff31f3a
tree51943452db1174db21072c61826d3da4f10563fd
parentbad237ded7aa9e4c6150655921ac549d7c8806b6
configure: Fix test for python 3.8

https://docs.python.org/3.8/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build

> To embed Python into an application, a new --embed option must be
> passed to python3-config --libs --embed to get -lpython3.8 (link the
> application to libpython). To support both 3.8 and older, try
> python3-config --libs --embed first and fallback to python3-config
> --libs (without --embed) if the previous command fails.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
[ wei: rerun autogen.sh ]
m4/python_devel.m4
tools/configure