I'm trying to cross compile an app that uses Python.h
In my configure.ac i have...
------- configure.ac ----------
if test "$with_python" != "no" ; then
# This only checks for the python interpreter, and not the dev
headers
# but it also sets various other python variables, eg
PYTHON_VERSION
AM_PATH_PYTHON(,, [:])
# If we have python, look for the dev headers
if test "$PYTHON" != : ; then
AC_CHECK_HEADER([python$PYTHON_VERSION/Python.h],
[AC_DEFINE([HAVE_PYTHON_H], 1, [Define to 1 if
<Python.h> is available])]
[have_python=yes]
,
[AC_MSG_WARN([[Python headers are missing,
cannot build audit2why]])]
[have_python=no]
)
fi
fi
------- configure.ac ----------
Which, in the Makefile becomes..
PYTHON = /build_2008-07-15/host-cross/bin/python
PYTHON_EXEC_PREFIX = ${exec_prefix}
PYTHON_PLATFORM = linux2
PYTHON_PREFIX = ${prefix}
PYTHON_VERSION = 2.4
------------------------
Now the PYTHON variable is correct, and so is _VERSION, but _PREFIX
and _EXEC_PREFIX are wrong.
prefix is actually /usr
and python's prefix is /build_2008-07-15/host-cross/
Is this a bug?