packages/Xorg/lib/hippo-canvas/patches/010-use-python-config
mirko 986eb4eafc - update to Xorg X11R7.4 and reorganization of the xorg-section
- added tslib
 - added e17 and related efl-libs


git-svn-id: svn://svn.openwrt.org/openwrt/packages@13238 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-16 19:31:42 +00:00

18 lines
761 B
Plaintext

--- hippo-canvas-0.3.0.orig/configure 2008-09-30 22:18:23.000000000 +0200
+++ hippo-canvas-0.3.0/configure 2008-09-30 22:41:16.000000000 +0200
@@ -20486,10 +20486,14 @@
echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6; }
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+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
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"