The maintainer-mode feature in native/configure.in is coded such that only the presence of the parameter is checked and not its actual value. This results in the debug mode being enabled when --disable-maintainer-mode or --enable-maintainer-mode=no is specified. Here is a suggested fix: --- a/native/configure.in +++ b/native/configure.in @@ -198,12 +198,16 @@ maintainer-mode, [ --enable-maintainer-mode Turn on debugging and compile time warnings], [ - if test "$GCC" = "yes"; then - CFLAGS="${CFLAGS} -DDEBUG -Wall" - else - CFLAGS="${CFLAGS} -DDEBUG" - fi -AC_MSG_RESULT([...Enabling Maintainer mode...]) + case "${enableval}" in + yes ) + if test "$GCC" = "yes"; then + CFLAGS="${CFLAGS} -DDEBUG -Wall" + else + CFLAGS="${CFLAGS} -DDEBUG" + fi + AC_MSG_RESULT([...Enabling Maintainer mode...]) + ;; + esac ]) dnl
Fixed in tomcat-native 1.2.11