Commit 98c33d2d authored by Sam Lantinga's avatar Sam Lantinga

Fixed OpenGL library linking issue

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403556
parent 17406a3e
...@@ -98,12 +98,6 @@ AC_TRY_COMPILE([ ...@@ -98,12 +98,6 @@ AC_TRY_COMPILE([
have_opengl=yes have_opengl=yes
]) ])
AC_MSG_RESULT($have_opengl) 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 dnl Check for OpenGL ES
AC_MSG_CHECKING(for OpenGL ES support) AC_MSG_CHECKING(for OpenGL ES support)
...@@ -121,7 +115,11 @@ AC_TRY_COMPILE([ ...@@ -121,7 +115,11 @@ AC_TRY_COMPILE([
have_opengles=yes have_opengles=yes
]) ])
AC_MSG_RESULT($have_opengles) 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" CFLAGS="$CFLAGS -DHAVE_OPENGLES"
GLLIB="$XPATH $SYS_GL_LIBS" GLLIB="$XPATH $SYS_GL_LIBS"
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment