configure.in
changeset 3647 c5925cd41955
parent 3639 6f4c5b0aba7c
child 3649 1e74d7984d0b
     1.1 --- a/configure.in	Wed Jan 13 06:39:44 2010 +0000
     1.2 +++ b/configure.in	Wed Jan 13 06:47:17 2010 +0000
     1.3 @@ -134,6 +134,32 @@
     1.4  AC_C_INLINE
     1.5  AC_C_VOLATILE
     1.6  
     1.7 +dnl See whether we want assertions for debugging/sanity checking SDL itself.
     1.8 +AC_ARG_ENABLE(assertions,
     1.9 +AC_HELP_STRING([--enable-assertions],
    1.10 +               [Enable internal sanity checks (yes/no/release/paranoid) [[default=release]]]),
    1.11 +              , enable_assertions=release)
    1.12 +sdl_valid_assertion_level=no
    1.13 +if test x$enable_assertions = xno; then
    1.14 +    sdl_valid_assertion_level=yes
    1.15 +    AC_DEFINE(SDL_ASSERT_LEVEL, 0)
    1.16 +fi
    1.17 +if test x$enable_assertions = xrelease; then
    1.18 +    sdl_valid_assertion_level=yes
    1.19 +    AC_DEFINE(SDL_ASSERT_LEVEL, 1)
    1.20 +fi
    1.21 +if test x$enable_assertions = xyes; then
    1.22 +    sdl_valid_assertion_level=yes
    1.23 +    AC_DEFINE(SDL_ASSERT_LEVEL, 2)
    1.24 +fi
    1.25 +if test x$enable_assertions = xparanoid; then
    1.26 +    sdl_valid_assertion_level=yes
    1.27 +    AC_DEFINE(SDL_ASSERT_LEVEL, 3)
    1.28 +fi
    1.29 +if test x$sdl_valid_assertion_level = xno; then
    1.30 +    AC_MSG_ERROR([*** unknown assertion level. stop.])
    1.31 +fi
    1.32 +
    1.33  dnl See whether we can use gcc style dependency tracking
    1.34  AC_ARG_ENABLE(dependency-tracking,
    1.35  AC_HELP_STRING([--enable-dependency-tracking],