Fixed OpenGL library linking issue
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403556
This commit is contained in:
parent
17406a3e50
commit
98c33d2db1
1 changed files with 5 additions and 7 deletions
|
@ -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([
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue