From: Marcus Comstedt Date: Fri, 15 Aug 2014 13:55:22 +0000 (+0200) Subject: configure.ac: Look for python-2.7.pc as well when making bindings X-Git-Tag: libsigrok-0.4.0~1142 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2ba308ecc69118287f12986b5d6814963f1d5da4;p=libsigrok.git configure.ac: Look for python-2.7.pc as well when making bindings --- diff --git a/configure.ac b/configure.ac index 38e021a4..dce87872 100644 --- a/configure.ac +++ b/configure.ac @@ -200,7 +200,10 @@ fi PKG_CHECK_MODULES([python], [python >= 2.7], [CXXFLAGS="$CXXFLAGS $python_CFLAGS"; CXXLIBS="$CXXLIBS $python_LIBS"], - [BINDINGS_PYTHON="no"; python_msg="Python headers required"]) +[PKG_CHECK_MODULES([python27], [python-2.7 >= 2.7], + [CXXFLAGS="$CXXFLAGS $python27_CFLAGS"; + CXXLIBS="$CXXLIBS $python27_LIBS"], + [BINDINGS_PYTHON="no"; python_msg="Python headers required"])]) # The Python bindings need the setuptools Python module. m4_ifdef([AX_PYTHON_MODULE], [AX_PYTHON_MODULE([setuptools])],