PKG_CHECK_MODULES(PYTHON, [python-3.6], [python36_found=yes], [python36_found=no])
if test x$python36_found = xno; then
PKG_CHECK_MODULES(PYTHON, [python])
+ PYTHON_PKGCONFIG="python"
+else
+ PYTHON_PKGCONFIG="python-3.6"
fi
AC_SUBST(PYTHON_CFLAGS)
AC_SUBST(PYTHON_LIBS)
+AC_SUBST(PYTHON_PKGCONFIG)
+
# Checks for header files.
AC_HEADER_STDC
Name: @PACKAGE_NAME@
Description: Classe con funzioni varie di utilità - Supporto per l'interfacciamento a OpenOffice.org.
Version: @PACKAGE_VERSION@
-Requires: libsolipa python
+Requires: libsolipa @PYTHON_PKGCONFIG@
Libs: -L${libdir} -lsolipaooo
Cflags: -I${includedir}