From 0f600231b5e6028cde94417ae7e4dc27a12d362e Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Thu, 23 Aug 2007 08:27:18 +0000 Subject: python-openmoko: make it build on amd64 --- packages/python/python-openmoko/.mtn2git_empty | 0 packages/python/python-openmoko/python-path.patch | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 packages/python/python-openmoko/.mtn2git_empty create mode 100644 packages/python/python-openmoko/python-path.patch (limited to 'packages/python/python-openmoko') diff --git a/packages/python/python-openmoko/.mtn2git_empty b/packages/python/python-openmoko/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/python/python-openmoko/python-path.patch b/packages/python/python-openmoko/python-path.patch new file mode 100644 index 0000000000..f43260cd0e --- /dev/null +++ b/packages/python/python-openmoko/python-path.patch @@ -0,0 +1,21 @@ +--- python.orig/m4/python.m4 ++++ python/m4/python.m4 +@@ -43,12 +43,18 @@ + [AC_REQUIRE([AM_PATH_PYTHON]) + AC_MSG_CHECKING(for headers required to compile python extensions) + dnl deduce PYTHON_INCLUDES ++AC_ARG_WITH(python-includes, ++ [ --with-python-includes=DIR path to Python includes], py_exec_prefix=$withval) ++if test x$py_exec_prefix != x; then ++PYTHON_INCLUDES="-I${py_exec_prefix}/include/python${PYTHON_VERSION}" ++else + 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 ++fi + AC_SUBST(PYTHON_INCLUDES) + dnl check if the headers exist: + save_CPPFLAGS="$CPPFLAGS" -- cgit v1.2.3