Small configu1.2.7 release date ?)

  1. the top level configure script detects correctly if OpenGL
    (include+libs) are ok or not.
  2. SDL_opengl.h is installed whether (1) gives yes or no.
  3. the configure script in test checks for SDL_opengl.h if it can compile
    OpenGL test program.

So either in step 2 or 3, something is not done correctly. Currently I
don’t have OpenGL on my target, but SDL_opengl.h is installed, and the
testgl program wants to be compiled.

It actually tries to compile SDL_opengl.h, which should fail if you don’t
have the GL headers installed. Do you have the headers but not the libs
installed?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Le Sat, 14 Feb 2004 15:52:54 -0800
Sam Lantinga a ?crit:

It actually tries to compile SDL_opengl.h, which should fail if you
don’t have the GL headers installed. Do you have the headers but not
the libs installed?

configure:2496: checking for OpenGL support
configure:2509: m68k-atari-mint-gcc -c -O2 -fomit-frame-pointer
-I/usr/X11R6/include -I/home/patrice/local/m68k-atari-mint/include/SDL
conftest.c 1>&5

Well, it appears it find the headers in /usr/X11R6/include (which have the
OpenGL host headers), but the cross-compiler will not find the library.
You have this in the test/configure.in, which is executed for my target:

case “$target” in
[snip]
*)
MATHLIB="-lm"
AC_PATH_X
AC_PATH_XTRA
if test x$have_x = xyes; then
CFLAGS="$CFLAGS $X_CFLAGS"
SYS_GL_LIBS="$X_LIBS -lGL"
else
SYS_GL_LIBS="-lGL"
fi
;;
esac

So maybe replacing AC_CANONICAL_HOST and AC_CANONICAL_TARGET by
AC_CANONICAL_SYSTEM would be sufficient.–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

Le Sun, 15 Feb 2004 09:44:09 +0100
Patrice Mandin <mandin.patrice at wanadoo.fr> a ?crit:

So maybe replacing AC_CANONICAL_HOST and AC_CANONICAL_TARGET by
AC_CANONICAL_SYSTEM would be sufficient.

Just tested: it’s not working. However, just doing 'configure --without-x’
do what I want, do it’s ok for me.–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux