Skip to content

Commit

Permalink
mesa: squash warnings in opengl checks
Browse files Browse the repository at this point in the history
  • Loading branch information
pwdraper committed Feb 26, 2014
1 parent b8fe8ad commit 4102438
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions thirdparty/mesa3d/mesa/mdl_have_opengl.m4
@@ -1,4 +1,5 @@
##### http://autoconf-archive.cryp.to/mdl_have_opengl.html
# Originally from the autoconf macro archive.
# This code is now a fork so update with care.
#
# SYNOPSIS
#
Expand Down Expand Up @@ -91,8 +92,7 @@ dnl Check for Mesa first, unless we were asked not to.
GLX_search_list="GLX MesaGLX"
fi
AC_LANG_SAVE
AC_LANG_C
AC_LANG_PUSH([C])
dnl If we are running under X11 then add in the appropriate libraries.
if test x"$no_x" != xyes; then
Expand Down Expand Up @@ -126,8 +126,6 @@ dnl and GL_X_LIBS.
if test -n "$LIBS"; then
mdl_cv_have_OpenGL=yes
GL_LIBS="$LIBS"
AC_SUBST(GL_CFLAGS)
AC_SUBST(GL_LIBS)
else
mdl_cv_have_OpenGL=no
GL_CFLAGS=
Expand All @@ -140,7 +138,7 @@ dnl and we don't want to be global namespace polluters.
LIBS="$GL_save_LIBS"
CPPFLAGS="$GL_save_CPPFLAGS"
AC_LANG_RESTORE
AC_LANG_POP([C])
dnl bugfix: dont forget to cache this variables, too
mdl_cv_GL_CFLAGS="$GL_CFLAGS"
Expand All @@ -150,11 +148,20 @@ dnl bugfix: dont forget to cache this variables, too
mdl_cv_have_GLX="$have_GLX"
mdl_cv_have_glut="$have_glut"
])
GL_CFLAGS="$mdl_cv_GL_CFLAGS"
GL_LIBS="$mdl_cv_GL_LIBS"
have_GL="$mdl_cv_have_GL"
have_GLU="$mdl_cv_have_GLU"
have_GLX="$mdl_cv_have_GLX"
have_glut="$mdl_cv_have_glut"
dnl Do this outside of the cache check. That cannot have side-effects in case
dnl the cache check succeeds and the code is not ran.
if test "$mdl_cv_have_OpenGL" = "yes"; then
AC_SUBST(GL_CFLAGS)
AC_SUBST(GL_LIBS)
fi
])
dnl endof bugfix -ainan

0 comments on commit 4102438

Please sign in to comment.