X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=e79018f290c38f91829d7141678919c7a370aa48;hb=ce7d3578e3b1438ca472abea8b3844c3debd249f;hp=0d589ee843d309182be58bcd7ccd199dc745293a;hpb=0d14e30ba01fb8258a57cb894feff56990a9cd13;p=libsigrok.git diff --git a/configure.ac b/configure.ac index 0d589ee8..e79018f2 100644 --- a/configure.ac +++ b/configure.ac @@ -199,10 +199,8 @@ if test "x$HAVE_DOXYGEN" != "xyes"; then fi # Python is needed for the C++ bindings. -AC_CHECK_PROG([HAVE_PYTHON], [python], [yes]) -if test "x$HAVE_PYTHON" != "xyes"; then - BINDINGS_CXX="no"; cxx_msg="Python required" -fi +AM_PATH_PYTHON([2.7], [HAVE_PYTHON="yes"], + [HAVE_PYTHON="no"; BINDINGS_CXX="no"; cxx_msg="Python required"]) # The Python bindings need Python development files. PKG_CHECK_MODULES([python], [python >= 2.7],