Mercurial > sdl-ios-xcode
diff test/configure.in @ 3090:37f9304df6a9
Fixed OpenGL library linking issue
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 12 Mar 2009 03:51:39 +0000 |
parents | 0b6f51c29267 |
children | 00cace2d9080 |
line wrap: on
line diff
--- 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