]> saetta.ns0.it Git - solipa/libsolipa/commitdiff
Esportazione variabile python per pkg-config.
authorAndrea Zagli <azagli@libero.it>
Mon, 2 Jul 2018 18:34:17 +0000 (20:34 +0200)
committerAndrea Zagli <azagli@libero.it>
Mon, 2 Jul 2018 18:34:17 +0000 (20:34 +0200)
configure.ac
libsolipaooo.pc.in

index c5bef4d8e47052313ba11a79cc0809af37b73ae3..3aea427136618945ecb9a2a1e1518a5363dddc42 100644 (file)
@@ -94,10 +94,15 @@ AC_SUBST(CTPL_LIBS)
 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
 
index 0b99ca0e7c0e2e3b5a50b425470a3d3a3b2b2c19..316d3356b7b944b1b76fc43ae1282c77af8b79f5 100644 (file)
@@ -6,6 +6,6 @@ includedir=@includedir@
 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}