comparison 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
comparison
equal deleted inserted replaced
3089:0ea7b6bb4054 3090:37f9304df6a9
96 ],[ 96 ],[
97 ],[ 97 ],[
98 have_opengl=yes 98 have_opengl=yes
99 ]) 99 ])
100 AC_MSG_RESULT($have_opengl) 100 AC_MSG_RESULT($have_opengl)
101 if test x$have_opengl = xyes; then
102 CFLAGS="$CFLAGS -DHAVE_OPENGL"
103 GLLIB="$XPATH $SYS_GL_LIBS"
104 else
105 GLLIB=""
106 fi
107 101
108 dnl Check for OpenGL ES 102 dnl Check for OpenGL ES
109 AC_MSG_CHECKING(for OpenGL ES support) 103 AC_MSG_CHECKING(for OpenGL ES support)
110 have_opengles=no 104 have_opengles=no
111 AC_TRY_COMPILE([ 105 AC_TRY_COMPILE([
119 ],[ 113 ],[
120 ],[ 114 ],[
121 have_opengles=yes 115 have_opengles=yes
122 ]) 116 ])
123 AC_MSG_RESULT($have_opengles) 117 AC_MSG_RESULT($have_opengles)
124 if test x$have_opengles = xyes; then 118
119 if test x$have_opengl = xyes; then
120 CFLAGS="$CFLAGS -DHAVE_OPENGL"
121 GLLIB="$XPATH $SYS_GL_LIBS"
122 elif test x$have_opengles = xyes; then
125 CFLAGS="$CFLAGS -DHAVE_OPENGLES" 123 CFLAGS="$CFLAGS -DHAVE_OPENGLES"
126 GLLIB="$XPATH $SYS_GL_LIBS" 124 GLLIB="$XPATH $SYS_GL_LIBS"
127 else 125 else
128 GLLIB="" 126 GLLIB=""
129 fi 127 fi