Mercurial > sdl-ios-xcode
changeset 3090:37f9304df6a9
Fixed OpenGL library linking issue
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 12 Mar 2009 03:51:39 +0000 |
parents | 0ea7b6bb4054 |
children | 32efcc94b3da |
files | test/configure.in |
diffstat | 1 files changed, 5 insertions(+), 7 deletions(-) [+] |
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