From 54712cbf6aff94d94fca6314a130c4cbfd9a2b11 Mon Sep 17 00:00:00 2001 From: Christoph Schmidt-Hieber Date: Wed, 17 Aug 2011 10:26:51 +0100 Subject: [PATCH] m4/am-check-python-headers.m4: Python 3 wrapper for comedi Here's a small patch to make the configure script compatible with Python 3. The wrapper itself (swig/python/comedi_python_wrap.c) will have to be generated with SWIG >= 2.0.0 for Python 3 compatibility. --- m4/am-check-python-headers.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/am-check-python-headers.m4 b/m4/am-check-python-headers.m4 index 1e0f2b6..4a97740 100644 --- a/m4/am-check-python-headers.m4 +++ b/m4/am-check-python-headers.m4 @@ -5,8 +5,8 @@ AC_DEFUN([AM_CHECK_PYTHON_HEADERS], [AC_REQUIRE([AM_PATH_PYTHON]) AC_MSG_CHECKING(for headers required to compile python extensions) dnl deduce PYTHON_INCLUDES -py_prefix=`$PYTHON -c "import sys; print sys.prefix"` -py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` +py_prefix=`$PYTHON -c "import sys; print(sys.prefix)"` +py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"` PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" if test "$py_prefix" != "$py_exec_prefix"; then PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" -- 2.26.2