test/configure.in
changeset 6188 e82023802002
parent 3623 9a73fecd9181
child 6250 cce0ddcf6747
--- a/test/configure.in	Sun Jan 08 01:15:20 2012 -0500
+++ b/test/configure.in	Sun Jan 08 02:23:37 2012 -0500
@@ -103,12 +103,10 @@
 AC_MSG_CHECKING(for OpenGL ES support)
 have_opengles=no
 AC_TRY_COMPILE([
- #if defined (__QNXNTO__)
-    #include <GLES/gl.h>
- #elif defined (__IPHONEOS__)
+ #if defined (__IPHONEOS__)
     #include <OpenGLES/ES1/gl.h>
  #else
-    #error "No OpenGL ES support"
+    #include <GLES/gl.h>
  #endif /* __QNXNTO__ */
 ],[
 ],[
@@ -116,12 +114,13 @@
 ])
 AC_MSG_RESULT($have_opengles)
 
-if test x$have_opengl = xyes; then
+GLLIB=""
+if test x$have_opengles = xyes; then
+    CFLAGS="$CFLAGS -DHAVE_OPENGLES"
+    GLLIB="$XPATH -lGLESv1_CM"
+elif test x$have_opengl = xyes; then
     CFLAGS="$CFLAGS -DHAVE_OPENGL"
     GLLIB="$XPATH $SYS_GL_LIBS"
-elif test x$have_opengles = xyes; then
-    CFLAGS="$CFLAGS -DHAVE_OPENGLES"
-    GLLIB="$XPATH $SYS_GL_LIBS"
 else
     GLLIB=""
 fi