From: Michael Grzeschik Date: Fri, 13 Jul 2018 12:24:59 +0200 Subject: [PATCH] configure: make opengl support switchable Signed-off-by: Michael Grzeschik --- configure.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.in b/configure.in index 32b3a9139efd..d77bab0c0069 100644 --- a/configure.in +++ b/configure.in @@ -105,6 +105,12 @@ AM_PATH_SDL2($SDL_VERSION, CFLAGS="$CFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" +dnl Check to see if OpenGL support is desired +AC_ARG_ENABLE(opengl, +AC_HELP_STRING([--enable-opengl], [include OpenGL support [[default=yes]]]), + , enable_opengl=yes) + +if test x$enable_opengl = xyes; then dnl Check for OpenGL case "$host" in *-*-cygwin* | *-*-mingw32*) @@ -157,6 +163,7 @@ else GL_LIBS="" fi AC_SUBST([GL_LIBS]) +fi AC_SUBST([MATHLIB]) AC_SUBST([WINDRES])