mturk 2005/06/18 06:04:42 Modified: jni/native configure.in Log: Add --enable-maintainer-mode to the configure options, so that statistics gets compiled in when configure is called with that option. Revision Changes Path 1.6 +20 -5 jakarta-tomcat-connectors/jni/native/configure.in Index: configure.in =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/configure.in,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- configure.in 12 Jun 2005 06:10:13 -0000 1.5 +++ configure.in 18 Jun 2005 13:04:42 -0000 1.6 @@ -12,7 +12,7 @@ sinclude(build/find_apr.m4) dnl Generate ./config.nice for reproducing runs of configure -dnl +dnl APR_CONFIG_NICE(config.nice) dnl # Some initial steps for configuration. We setup the default directory @@ -94,11 +94,11 @@ AC_SUBST(JAVA_OS) APR_ADDTO(TCNATIVE_PRIV_INCLUDES,[-I$JAVA_HOME/include]) -APR_ADDTO(TCNATIVE_PRIV_INCLUDES,[-I$JAVA_HOME/include/$JAVA_OS]) +APR_ADDTO(TCNATIVE_PRIV_INCLUDES,[-I$JAVA_HOME/include/$JAVA_OS]) dnl dnl Detect openssl toolkit installation -dnl +dnl TCN_CHECK_SSL_TOOLKIT so_ext=$APR_SO_EXT @@ -113,7 +113,7 @@ host_alias=`uname -s` case "$host_alias" in dnl ### BeOS requires that ALL symbols resolve at LINK time! - dnl ### + dnl ### dnl ### So, if we're building on BeOS then we need to add in the dnl ### apr and expat libraries to the build or it'll die a truly horrible dnl ### death. We now use the apr-config tool to determine the correct @@ -128,6 +128,21 @@ AC_SUBST(EXTRA_OS_LINK) +dnl CFLAGS for maintainer mode +dnl it also allows the CFLAGS environment variable. +CFLAGS="${CFLAGS}" +AC_ARG_ENABLE( +maintainer-mode, +[ --enable-maintainer-mode Turn on debugging and compile time warnings], +[ +case "${enableval}" in + y | Y | YES | yes | TRUE | true ) + CFLAGS="${CFLAGS} -DDEBUG -Wall" + AC_MSG_RESULT([...Enabling Maintainer mode...]) + ;; +esac +]) + dnl dnl Prep all the flags and stuff for compilation and export to other builds dnl @@ -178,7 +193,7 @@ fi dnl -dnl everthing is done. +dnl everthing is done. MAKEFILES="Makefile" AC_OUTPUT([ tcnative.pc
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]