Merge pull request #3170 from stratakis/py38
authorPavel Rochnyak <pavel2000@ngs.ru>
Fri, 7 Jun 2019 15:56:21 +0000 (22:56 +0700)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2019 15:56:21 +0000 (22:56 +0700)
Add Python 3.8 compatibility

configure.ac

index c95422f..7454fb4 100644 (file)
@@ -4771,7 +4771,7 @@ if test "$PYTHON_CONFIG" != ""; then
   if test $? -ne 0; then
     with_libpython="no"
   fi
-  LIBPYTHON_LIBS="`${PYTHON_CONFIG} --libs`"
+  LIBPYTHON_LIBS="`${PYTHON_CONFIG} --libs --embed`" || LIBPYTHON_LIBS="`${PYTHON_CONFIG} --libs`"
   if test $? -ne 0; then
     with_libpython="no"
   fi