Fix the whole python building process to do proper crosscompiling for all python
[openwrt/svn-archive/archive.git] / lang / pygtk / patches / 010-dont-override-python-include-dir.patch
1 diff -urN pygtk-2.12.1.orig/configure pygtk-2.12.1/configure
2 --- pygtk-2.12.1.orig/configure 2008-09-30 17:05:56.000000000 +0200
3 +++ pygtk-2.12.1/configure 2008-09-30 17:06:38.000000000 +0200
4 @@ -10399,8 +10399,6 @@
5
6 { echo "$as_me:$LINENO: checking for PySignal_SetWakeupFd in Python.h" >&5
7 echo $ECHO_N "checking for PySignal_SetWakeupFd in Python.h... $ECHO_C" >&6; }
8 -py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
9 -PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
10 old_CPPFLAGS=$CPPFLAGS
11 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
12 cat >conftest.$ac_ext <<_ACEOF
13 diff -urN pygtk-2.12.1.orig/configure.in pygtk-2.12.1/configure.in
14 --- pygtk-2.12.1.orig/configure.in 2008-09-30 17:05:56.000000000 +0200
15 +++ pygtk-2.12.1/configure.in 2008-09-30 17:06:24.000000000 +0200
16 @@ -78,8 +78,6 @@
17 AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
18
19 AC_MSG_CHECKING([for PySignal_SetWakeupFd in Python.h])
20 -py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
21 -PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
22 old_CPPFLAGS=$CPPFLAGS
23 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
24 AC_TRY_COMPILE([#include <Python.h>],