diff --git a/autoconf/m4/opengl.m4 b/autoconf/m4/opengl.m4 index 42791d5a3a..9337b977cb 100644 --- a/autoconf/m4/opengl.m4 +++ b/autoconf/m4/opengl.m4 @@ -10,10 +10,12 @@ AC_DEFUN([SM_OPENGL], AX_CHECK_LIB_USING_HEADER(GL, 'glBegin(GL_POINTS)', GL/gl.h, [GL_LIBS="-lGL"]) - if test x$GL_LIBS = "x"; then + if test "$GL_LIBS" = ""; then AX_CHECK_LIB_USING_HEADER(opengl32, 'glBegin(GL_POINTS)', GL/gl.h, [GL_LIBS="-lopengl32"]) fi - if test x$GL_LIBS = "x"; then + if test "$GL_LIBS" = ""; then AC_MSG_ERROR("No usable OpenGL library found.") fi + + AC_SUBST(GL_LIBS) ]) \ No newline at end of file