Our Python is compiled with --prefix != --exec-prefix.
This causes the PyOpenGL compilation to fail for
PyOpenGL 2.0.2.01:
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-DGLX_PLATFORM -DNUMERIC -I/usr/include
-I/usr/local/include -I/usr/X11/include
-I/usr/X11R6/include
-I/usr/local/gltools/python/Python-2.2.1/include/python2.2/Numeric
-I/usr/local/gltools/python/Python-2.2.1/include/python2.2/numarray
-I/usr/include -I/usr/local/include -I/usr/X11/include
-I/usr/X11R6/include
-I/usr/local/gltools/python/Python-2.2.1/include/python2.2/Numeric
-I/usr/local/gltools/python/Python-2.2.1/include/python2.2/numarray
-I/usr/local/gltools/python/Python-2.2.1/include/python2.2
-c _configtest.c -o _configtest.o
In file included from src/config.h:1,
from _configtest.c:6:
/usr/local/gltools/python/Python-2.2.1/include/python2.2/Python.h:24:22:
pyconfig.h: Datei oder Verzeichnis nicht gefunden
In file included from
/usr/local/gltools/python/Python-2.2.1/include/python2.2/Python.h:62,
from src/config.h:1,
from _configtest.c:6:
/usr/local/gltools/python/Python-2.2.1/include/python2.2/pyport.h:4:48:
pyconfig.h: Datei oder Verzeichnis nicht gefunden
/usr/local/gltools/python/Python-2.2.1/include/python2.2/pyport.h:462:2:
#error "could not set LONG_MAX in pyport.h"
/usr/local/gltools/python/Python-2.2.1/include/python2.2/Numeric/arrayobject.h:287:
warning: `PyArray_API' defined but not used
removing: _configtest.c _configtest.o
pyconfig.h is in [exec-prefix]/include/python-2.2.1,
where
/usr/local/gltools/python/Python-2.2.1/include/python2.2
is [prefix]/include/python2.2.
The prefix/exec-prefix problem did not exist for the
2.0.0.44 version.
Further configtest.c is compiled for each .py file to
be copied into the build tree. Compiling it once (and
exiting when the compilaton fails) should be enough?