configure.in
changeset 3654 336f3df1578d
parent 3649 1e74d7984d0b
child 3678 8e961ef35d4b
equal deleted inserted replaced
3653:1cd9f7117b98 3654:336f3df1578d
   135 AC_C_VOLATILE
   135 AC_C_VOLATILE
   136 
   136 
   137 dnl See whether we want assertions for debugging/sanity checking SDL itself.
   137 dnl See whether we want assertions for debugging/sanity checking SDL itself.
   138 AC_ARG_ENABLE(assertions,
   138 AC_ARG_ENABLE(assertions,
   139 AC_HELP_STRING([--enable-assertions],
   139 AC_HELP_STRING([--enable-assertions],
   140                [Enable internal sanity checks (yes/no/release/paranoid) [[default=release]]]),
   140                [Enable internal sanity checks (auto/disabled/release/enabled/paranoid) [[default=auto]]]),
   141               , enable_assertions=release)
   141               , enable_assertions=auto)
   142 sdl_valid_assertion_level=no
   142 case "$enable_assertions" in
   143 if test x$enable_assertions = xno; then
   143     auto) # Use optimization settings to determine assertion level
   144     sdl_valid_assertion_level=yes
   144         ;;
   145     AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 0)
   145     disabled)
   146 fi
   146         AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 0)
   147 if test x$enable_assertions = xrelease; then
   147         ;;
   148     sdl_valid_assertion_level=yes
   148     release)
   149     AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 1)
   149         AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 1)
   150 fi
   150         ;;
   151 if test x$enable_assertions = xyes; then
   151     enabled)
   152     sdl_valid_assertion_level=yes
   152         AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 2)
   153     AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 2)
   153         ;;
   154 fi
   154     paranoid)
   155 if test x$enable_assertions = xparanoid; then
   155         AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 3)
   156     sdl_valid_assertion_level=yes
   156         ;;
   157     AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 3)
   157     *)
   158 fi
   158         AC_MSG_ERROR([*** unknown assertion level. stop.])
   159 if test x$sdl_valid_assertion_level = xno; then
   159         ;;
   160     AC_MSG_ERROR([*** unknown assertion level. stop.])
   160 esac
   161 fi
       
   162 
   161 
   163 dnl See whether we can use gcc style dependency tracking
   162 dnl See whether we can use gcc style dependency tracking
   164 AC_ARG_ENABLE(dependency-tracking,
   163 AC_ARG_ENABLE(dependency-tracking,
   165 AC_HELP_STRING([--enable-dependency-tracking],
   164 AC_HELP_STRING([--enable-dependency-tracking],
   166                [Use gcc -MMD -MT dependency tracking [[default=yes]]]),
   165                [Use gcc -MMD -MT dependency tracking [[default=yes]]]),