26ad36f2676dda083dcb7116093525e118d28090
[packages.git] / XOrg / lib / hippo-canvas / patches / 010-use-python-config
1 --- hippo-canvas-0.3.0.orig/configure   2008-09-30 22:18:23.000000000 +0200
2 +++ hippo-canvas-0.3.0/configure        2008-09-30 22:41:16.000000000 +0200
3 @@ -20486,10 +20486,14 @@
4  echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6; }
5  py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
6  py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
7 +if test -x "$PYTHON-config"; then
8 +PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
9 +else
10  PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
11  if test "$py_prefix" != "$py_exec_prefix"; then
12    PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
13  fi
14 +fi
15  
16  save_CPPFLAGS="$CPPFLAGS"
17  CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"