diff --git a/configure b/configure
index dcbaa55bc5b4e74cfba168f2dbd83b3a77755e89..22afe15c6bfc059180e93aa8d6902a2414613e76 100755
--- a/configure
+++ b/configure
@@ -1821,7 +1821,7 @@ if test "$pthreads" = "yes" ; then
   echo "#define HAVE_THREADS 1" >> $TMPH
 fi
 if test "$sdl" = "yes" ; then
-  echo "CONFIG_SDL=yes" >> config.mak
+  echo "HAVE_SDL=yes" >> config.mak
   echo "SDL_LIBS=`"${SDL_CONFIG}" --libs`" >> config.mak
   echo "SDL_CFLAGS=`"${SDL_CONFIG}" --cflags`" >> config.mak
   if test "$sdl_video_size" = "yes"; then