From 7c9d08d1ba7f5b0a9aa4a37118e56b1725cdaef9 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 19 Jun 2007 13:22:31 +0100 Subject: [PATCH] Use python-config to get Python cppflags (patch from Ubuntu, fd.o #11282). Thanks to Sebastien Bacher. --- m4/am-check-python-headers.m4 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/m4/am-check-python-headers.m4 b/m4/am-check-python-headers.m4 index 1e0f2b6..e7e9032 100644 --- a/m4/am-check-python-headers.m4 +++ b/m4/am-check-python-headers.m4 @@ -7,10 +7,7 @@ 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"` -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}" -fi +PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null` AC_SUBST(PYTHON_INCLUDES) dnl check if the headers exist: save_CPPFLAGS="$CPPFLAGS" -- 2.11.4.GIT