Add --with-debug.

This commit is contained in:
Glenn Maynard
2003-10-06 05:02:59 +00:00
parent a2da0828b1
commit 2a0c57ac40
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -19,6 +19,15 @@ test "$DEFAULT_CFLAGS" = "yes" && CFLAGS="-Wall -W -Wno-unused -Wno-switch"
test "$DEFAULT_CXXFLAGS" = "yes" && CXXFLAGS="-Wall -W -Wno-unused -Wno-switch"
test "$DEFAULT_LDFLAGS" = "yes" && LDFLAGS=""
AC_ARG_WITH(debug, AC_HELP_STRING([--with-debug], [Enable debug mode]), with_debug=$withval, with_debug=no)
if test "$with_debug" = "yes"; then
test "$DEFAULT_CFLAGS" = "yes" && CFLAGS="$CFLAGS -g"
test "$DEFAULT_CXXFLAGS" = "yes" && CXXFLAGS="$CXXFLAGS -g"
else
test "$DEFAULT_CFLAGS" = "yes" && CFLAGS="$CFLAGS -O3"
test "$DEFAULT_CXXFLAGS" = "yes" && CXXFLAGS="$CXXFLAGS -O3"
fi
SM_OPENGL
AM_PATH_SDL(1.2.6,enable_sdl=yes,enable_sdl=no)
+2 -2
View File
@@ -1,8 +1,8 @@
bin_PROGRAMS = stepmania
AM_LDFLAGS =
AM_CXXFLAGS = -O2
AM_CFLAGS = -O2
AM_CXXFLAGS =
AM_CFLAGS =
if NHAVE_SDL
AM_CXXFLAGS += -ISDL-1.2.6/include