AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug], [enable debugging mode]),, enable_debug="yes")
if test "x${enable_debug}" != "xno"; then
- CXXFLAGS="$CXXFLAGS -Wall -W -DDEBUG -O0 -g3"
+ CXXFLAGS="$CXXFLAGS -Wall -Werror -DDEBUG -O0 -g3"
AC_MSG_RESULT([enabled])
else
AC_MSG_RESULT([disabled])
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
+GL_LIBS="-lGL"
dnl Checks for additional libraries.
AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio,,
else
CFLAGS="$CFLAGS $GL_CFLAGS"
CXXFLAGS="$CXXFLAGS $GL_CFLAGS"
- LIBS="$LIBS $GL_LIBS -lGL"
+ LIBS="$LIBS $GL_LIBS"
fi
AC_CHECK_LIB(z, gzopen,, AC_MSG_ERROR([*** zlib is missing]))