add --enable-generations (.qz support). Off by default.

This commit is contained in:
Bill Currie 2000-03-04 02:44:59 +00:00
parent 8b55f440df
commit 7fe5f738d7
2 changed files with 12 additions and 0 deletions

View file

@ -5,6 +5,9 @@
/* Define if you want to use QF-style defaults instead of Id-style */
#undef NEWSTYLE
/* Define if you want .qz support */
#undef GENERATIONS
/* Define this to the subdirectory name of the default game */
#undef GAMENAME

View file

@ -96,6 +96,12 @@ else
AC_DEFINE(GAMENAME, "id1")
fi
GENERATIONS=no
AC_ARG_ENABLE(generations,
[ --enable-generations enable .qz support. Requires zlib)],
GENERATIONS=$enable_generations
)
AC_ARG_ENABLE(release,
[ --enable-release compile release (with optimization)],
RELEASE=$enable_release
@ -151,6 +157,9 @@ if test "x$HAS_ZLIB" = "xyes"; then
if test "x$HAS_ZLIB" = "xyes"; then
LIBS="-lz $LIBS"
AC_DEFINE(HAS_ZLIB)
if test "x$GENERATIONS" = "xyes"; then
AC_DEFINE(GENERATIONS)
fi
fi
fi
fi