Mercurial > SDL_sound_CoreAudio
diff configure.in @ 100:6d9fdec2f708
added config.h, added --enable-debug flag, various other changes to the build system
author | fingolfin |
---|---|
date | Wed, 03 Oct 2001 12:25:34 +0000 |
parents | b939258bd177 |
children | de42ca5599ac |
line wrap: on
line diff
--- a/configure.in Tue Oct 02 17:54:16 2001 +0000 +++ b/configure.in Wed Oct 03 12:25:34 2001 +0000 @@ -43,6 +43,7 @@ AC_CANONICAL_TARGET dnl Setup for automake +AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(SDL_sound, $VERSION) @@ -57,6 +58,25 @@ dnl --------------------------------------------------------------------- +dnl Debug mode? +dnl --------------------------------------------------------------------- + +AC_ARG_ENABLE(debug, +[ --enable-debug enable debug mode [default=no]], + , enable_smpeg=no) +if test x$enable_debug = xyes; then + if test x$ac_cv_prog_cc_g = xyes; then + CFLAGS="-g -O0" + else + CFLAGS="-O0" + fi + AC_DEFINE(DEBUG) +else + AC_DEFINE(NDEBUG) +fi + + +dnl --------------------------------------------------------------------- dnl Checks for libraries. dnl ---------------------------------------------------------------------