This patch solves the problem, and it will activate GL support in SDL_ttf when pspgl will implement these functions:
Code: Select all
Index: configure.in
===================================================================
--- configure.in (revision 1425)
+++ configure.in (working copy)
@@ -139,7 +139,7 @@
;;
*-psp-*)
MATHLIB="-lm"
- SYS_GL_LIBS=""
+ SYS_GL_LIBS="-lGL -lpsprtc"
;;
*)
MATHLIB="-lm"
@@ -153,16 +153,9 @@
fi
;;
esac
-AC_MSG_CHECKING(for OpenGL support)
+
have_opengl=no
-AC_TRY_COMPILE([
- #include "SDL_opengl.h"
-],[
- GLuint texture;
-],[
-have_opengl=yes
-])
-AC_MSG_RESULT($have_opengl)
+AC_CHECK_LIB(GL, [glPushAttrib, glPopAttrib, glColor3fv], [have_opengl=yes])
if test x$have_opengl = xyes; then
CFLAGS="$CFLAGS -DHAVE_OPENGL"
GL_LIBS="$SYS_GL_LIBS"