|
|
| version 1.3, 2011/12/17 19:55:48 | version 1.4, 2011/12/22 16:13:58 |
|---|---|
| Line 86 AC_ARG_ENABLE(sdl, | Line 86 AC_ARG_ENABLE(sdl, |
| AC_ARG_ENABLE(sdlmixer, | AC_ARG_ENABLE(sdlmixer, |
| AC_HELP_STRING([--enable-sdlmixer],[Use SDL_mixer library [[default=yes]]]),, | AC_HELP_STRING([--enable-sdlmixer],[Use SDL_mixer library [[default=yes]]]),, |
| [enable_sdlmixer="yes"]) | [enable_sdlmixer="yes"]) |
| AC_ARG_ENABLE(debug, | |
| AC_HELP_STRING([--enable-debug],[Enable debugging [[default=no]]]),, | |
| [enable_debug="no"]) | |
| dnl | dnl |
| dnl Checks for IA-32 CPU emulation | dnl Checks for IA-32 CPU emulation |
| Line 137 if test x"$enable_sdlmixer" = "xyes"; th | Line 140 if test x"$enable_sdlmixer" = "xyes"; th |
| fi | fi |
| dnl | dnl |
| dnl Checks for debug mode | |
| dnl | |
| AC_MSG_CHECKING([whether to enable debugging]) | |
| if test x"$enable_debug" = "xyes"; then | |
| CFLAGS="$CFLAGS -DDEBUG -g -O0" | |
| CFLAGS="$CFLAGS -Wall -Wcast-align" | |
| CFLAGS="$CFLAGS -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" | |
| CFLAGS="$CFLAGS -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers" | |
| else | |
| CFLAGS="$CFLAGS -DNDEBUG" | |
| fi | |
| AC_MSG_RESULT($enable_debug) | |
| dnl | |
| dnl Output Makefiles | dnl Output Makefiles |
| dnl | dnl |
| AC_CONFIG_FILES([Makefile]) | AC_CONFIG_FILES([Makefile]) |