Commit ac76377d authored by Chris Wilson's avatar Chris Wilson Committed by Chris Wilson
Browse files

Bug 449809 – use python-config to get python includes Patch by Sebastien

2007-06-25  Chris Wilson  <chris@chris-wilson.co.uk>

    Bug 449809 – use python-config to get python includes
    Patch by Sebastien Bacher.

    * acinclude.m4: prefer python-config where available.


svn path=/trunk/; revision=1917
parent 8491cf04
2007-06-25 Chris Wilson <chris@chris-wilson.co.uk>
Bug 449809 use python-config to get python includes
Patch by Sebastien Bacher.
* acinclude.m4: prefer python-config where available.
2007-06-25 Chris Wilson <chris@chris-wilson.co.uk>
Bug 450745 VTE's response to CSI 2 1 t incorrectly formatted
......
......@@ -9,9 +9,13 @@ 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}"
if test -x "$PYTHON-config"; then
PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
else
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
fi
PYTHON_LIBS="-L${py_prefix}/libs -lpython${PYTHON_VERSION}"
AC_SUBST(PYTHON_INCLUDES)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment