diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-03-23 10:53:46 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-03-23 10:53:46 +0000 |
commit | 9840a3458d188fc6c1e44ae7760d9007117dfbea (patch) | |
tree | 0a5d79e061ab95cedcee5504ed54d4d26dd75309 /packages/python/python-pygtk2/acinclude.m4 | |
parent | a64bb5d2b964bafe23d158dd455446ce5d5015ea (diff) |
python-pygtk2: make it build on 64bit host for 32bit machine (from Poky)
Informations why it is needed sent to mailing list.
Diffstat (limited to 'packages/python/python-pygtk2/acinclude.m4')
-rw-r--r-- | packages/python/python-pygtk2/acinclude.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/python/python-pygtk2/acinclude.m4 b/packages/python/python-pygtk2/acinclude.m4 index eec3758afc..53518fb2eb 100644 --- a/packages/python/python-pygtk2/acinclude.m4 +++ b/packages/python/python-pygtk2/acinclude.m4 @@ -43,12 +43,18 @@ AC_DEFUN([AM_CHECK_PYTHON_HEADERS], [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" |