X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=configure.ac;h=f6aca78ee80733ad211f4bea255a16f34d164e1f;hb=5bd825749c3dc21471f35abc23e7a12bc4348b67;hp=b949ca40f0c2f4b4d375cc6be1aa7c6089a0079d;hpb=72668efc61265f8221b708025ae2e7f859ad7e9b;p=supertux.git diff --git a/configure.ac b/configure.ac index b949ca40f..f6aca78ee 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ dnl =========================================================================== dnl Process this file with autoconf to produce a configure script. AC_PREREQ([2.54]) -AC_INIT(supertux, 0.3.0-SVN) +AC_INIT(supertux2, 0.3.0-SVN) AC_CONFIG_SRCDIR([src/main.cpp]) AC_CONFIG_AUX_DIR([mk/autoconf]) AC_CANONICAL_TARGET @@ -154,9 +154,15 @@ NP_FINDLIB([OPENAL], [OpenAL], [OpenAL], [AC_MSG_ERROR([Please intall OpenAL])], [], []) -AX_CHECK_GL -if test "$no_gl" = "yes"; then - AC_MSG_ERROR([Please install opengl libraries and headers]) +AC_ARG_ENABLE(opengl, + AC_HELP_STRING([--enable-opengl], [enable opengl support]), + [enable_opengl=$enableval], [enable_opengl=yes]) + +if test "$enable_opengl" = "yes"; then + AX_CHECK_GL + if test "$no_gl" != "yes"; then + AC_DEFINE_UNQUOTED(HAVE_OPENGL, 1, Define if OpenGL is present on the system) + fi fi dnl Checks for library functions.