python: assume support for Capsules

They were introduced in Python 2.7 and 3.1, so we can assume they exist
(as Python 2.7 is the minimum version required, and 3.0 is long gone).
This commit is contained in:
Pino Toscano
2020-01-09 17:29:15 +01:00
parent 444750bfd1
commit c3728416fb
2 changed files with 0 additions and 20 deletions

View File

@@ -92,10 +92,6 @@ AS_IF([test "x$enable_python" != "xno"],[
PYTHON_BLDLIBRARY=`$PYTHON -c "import distutils.sysconfig; \
print (distutils.sysconfig.get_config_var('BLDLIBRARY'))"`
AC_CHECK_LIB([c],[PyCapsule_New],
[AC_DEFINE([HAVE_PYCAPSULE_NEW],1,
[Found PyCapsule_New in libpython.])],
[],[$PYTHON_BLDLIBRARY])
AC_CHECK_LIB([c],[PyString_AsString],
[AC_DEFINE([HAVE_PYSTRING_ASSTRING],1,
[Found PyString_AsString in libpython.])],