Fixed OpenGL library linking issue
authorSam Lantinga <slouken@libsdl.org>
Thu, 12 Mar 2009 03:51:39 +0000
changeset 3090 37f9304df6a9
parent 3089 0ea7b6bb4054
child 3091 32efcc94b3da
Fixed OpenGL library linking issue
test/configure.in
--- a/test/configure.in	Fri Mar 06 05:53:33 2009 +0000
+++ b/test/configure.in	Thu Mar 12 03:51:39 2009 +0000
@@ -98,12 +98,6 @@
 have_opengl=yes
 ])
 AC_MSG_RESULT($have_opengl)
-if test x$have_opengl = xyes; then
-    CFLAGS="$CFLAGS -DHAVE_OPENGL"
-    GLLIB="$XPATH $SYS_GL_LIBS"
-else
-    GLLIB=""
-fi
 
 dnl Check for OpenGL ES
 AC_MSG_CHECKING(for OpenGL ES support)
@@ -121,7 +115,11 @@
 have_opengles=yes
 ])
 AC_MSG_RESULT($have_opengles)
-if test x$have_opengles = xyes; then
+
+if 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