From 92efdcb151a020a017914b23285436f873f04344 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 2 Jun 2005 23:17:34 +0000 Subject: [PATCH] make SDL optional; default off --- stepmania/configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/configure.ac b/stepmania/configure.ac index 2e442dbf48..85c31cc0be 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -97,7 +97,10 @@ fi SM_X_WITH_OPENGL -AM_PATH_SDL(1.2.6,have_sdl=yes,have_sdl=no) +AC_ARG_ENABLE(sdl, AC_HELP_STRING([--enable-sdl], [Enable SDL support]), enable_sdl=$enableval, enable_sdl=no) +if test "$enable_sdl" = "yes"; then + AM_PATH_SDL(1.2.6,have_sdl=yes,have_sdl=no) +fi AM_CONDITIONAL(HAVE_SDL, test "$have_sdl" = "yes") if test "$have_sdl" = "yes"; then AC_DEFINE(HAVE_SDL, 1, [SDL is available])