Fixed OpenGL library linking issue
authorSam Lantinga <slouken@libsdl.org>
Thu, 12 Mar 2009 03:51:39 +0000
changeset 309037f9304df6a9
parent 3089 0ea7b6bb4054
child 3091 32efcc94b3da
Fixed OpenGL library linking issue
test/configure.in
     1.1 --- a/test/configure.in	Fri Mar 06 05:53:33 2009 +0000
     1.2 +++ b/test/configure.in	Thu Mar 12 03:51:39 2009 +0000
     1.3 @@ -98,12 +98,6 @@
     1.4  have_opengl=yes
     1.5  ])
     1.6  AC_MSG_RESULT($have_opengl)
     1.7 -if test x$have_opengl = xyes; then
     1.8 -    CFLAGS="$CFLAGS -DHAVE_OPENGL"
     1.9 -    GLLIB="$XPATH $SYS_GL_LIBS"
    1.10 -else
    1.11 -    GLLIB=""
    1.12 -fi
    1.13  
    1.14  dnl Check for OpenGL ES
    1.15  AC_MSG_CHECKING(for OpenGL ES support)
    1.16 @@ -121,7 +115,11 @@
    1.17  have_opengles=yes
    1.18  ])
    1.19  AC_MSG_RESULT($have_opengles)
    1.20 -if test x$have_opengles = xyes; then
    1.21 +
    1.22 +if test x$have_opengl = xyes; then
    1.23 +    CFLAGS="$CFLAGS -DHAVE_OPENGL"
    1.24 +    GLLIB="$XPATH $SYS_GL_LIBS"
    1.25 +elif test x$have_opengles = xyes; then
    1.26      CFLAGS="$CFLAGS -DHAVE_OPENGLES"
    1.27      GLLIB="$XPATH $SYS_GL_LIBS"
    1.28  else