Author: rjung Date: Wed Feb 26 12:06:59 2014 New Revision: 1572028 URL: http://svn.apache.org/r1572028 Log: An empty if-given block in AC_ARG_ENABLE for sock-cloexec would disable SOCK_CLOEXEC in both cases, "--disable-sock-cloexec" and "--enable-sock-cloexec".
Support the theoretical "--enable-sock-cloexec" case by checking enableval like we do for other cases. Enable is now doing auto-detection, the same as was the default (no switch given) before. Modified: tomcat/jk/trunk/native/configure.in Modified: tomcat/jk/trunk/native/configure.in URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/configure.in?rev=1572028&r1=1572027&r2=1572028&view=diff ============================================================================== --- tomcat/jk/trunk/native/configure.in (original) +++ tomcat/jk/trunk/native/configure.in Wed Feb 26 12:06:59 2014 @@ -370,6 +370,12 @@ AC_ARG_ENABLE(sock-cloexec, [AS_HELP_STRING([--disable-sock-cloexec],[Disable use of SOCK_CLOEXEC. This ensures the built module can be used on systems that do not support SOCK_CLOEXEC])], [ +case "${enableval}" in + y | Y | YES | yes | TRUE | true ) + dnl check for SOCK_CLOEXEC + JK_CHECK_SOCKOPT(SOCK_CLOEXEC) + ;; +esac ], [ dnl check for SOCK_CLOEXEC --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org