[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problems with AM_PYTHON_PATH
From: |
Vikram Ambrose |
Subject: |
problems with AM_PYTHON_PATH |
Date: |
Tue, 15 Jul 2008 15:12:37 -0400 |
User-agent: |
Thunderbird 2.0.0.14 (X11/20080501) |
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?
--
Vikram Ambrose | Linux Products Division | WindRiver Corporation
- problems with AM_PYTHON_PATH,
Vikram Ambrose <=