Mercurial > sdl-ios-xcode
comparison configure.in @ 3647:c5925cd41955
First pass at Ryan's assertion code, minor tweaks to come.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 13 Jan 2010 06:47:17 +0000 |
parents | 6f4c5b0aba7c |
children | 1e74d7984d0b |
comparison
equal
deleted
inserted
replaced
3646:88235d40b135 | 3647:c5925cd41955 |
---|---|
131 | 131 |
132 dnl Check for compiler characteristics | 132 dnl Check for compiler characteristics |
133 AC_C_CONST | 133 AC_C_CONST |
134 AC_C_INLINE | 134 AC_C_INLINE |
135 AC_C_VOLATILE | 135 AC_C_VOLATILE |
136 | |
137 dnl See whether we want assertions for debugging/sanity checking SDL itself. | |
138 AC_ARG_ENABLE(assertions, | |
139 AC_HELP_STRING([--enable-assertions], | |
140 [Enable internal sanity checks (yes/no/release/paranoid) [[default=release]]]), | |
141 , enable_assertions=release) | |
142 sdl_valid_assertion_level=no | |
143 if test x$enable_assertions = xno; then | |
144 sdl_valid_assertion_level=yes | |
145 AC_DEFINE(SDL_ASSERT_LEVEL, 0) | |
146 fi | |
147 if test x$enable_assertions = xrelease; then | |
148 sdl_valid_assertion_level=yes | |
149 AC_DEFINE(SDL_ASSERT_LEVEL, 1) | |
150 fi | |
151 if test x$enable_assertions = xyes; then | |
152 sdl_valid_assertion_level=yes | |
153 AC_DEFINE(SDL_ASSERT_LEVEL, 2) | |
154 fi | |
155 if test x$enable_assertions = xparanoid; then | |
156 sdl_valid_assertion_level=yes | |
157 AC_DEFINE(SDL_ASSERT_LEVEL, 3) | |
158 fi | |
159 if test x$sdl_valid_assertion_level = xno; then | |
160 AC_MSG_ERROR([*** unknown assertion level. stop.]) | |
161 fi | |
136 | 162 |
137 dnl See whether we can use gcc style dependency tracking | 163 dnl See whether we can use gcc style dependency tracking |
138 AC_ARG_ENABLE(dependency-tracking, | 164 AC_ARG_ENABLE(dependency-tracking, |
139 AC_HELP_STRING([--enable-dependency-tracking], | 165 AC_HELP_STRING([--enable-dependency-tracking], |
140 [Use gcc -MMD -MT dependency tracking [[default=yes]]]), | 166 [Use gcc -MMD -MT dependency tracking [[default=yes]]]), |