--- libaitrpc/configure.in 2013/11/11 22:49:54 1.24.2.1 +++ libaitrpc/configure.in 2013/11/14 13:37:07 1.24.2.2 @@ -1,6 +1,6 @@ # # $Author: misho $ -# $Id: configure.in,v 1.24.2.1 2013/11/11 22:49:54 misho Exp $ +# $Id: configure.in,v 1.24.2.2 2013/11/14 13:37:07 misho Exp $ # AC_INIT(libaitrpc, 6.4, misho@elwix.org) AC_CONFIG_SRCDIR([src/aitrpc.c]) @@ -82,6 +82,29 @@ AC_ARG_ENABLE(cli-res-zcpy, ;; esac ],) AC_MSG_RESULT($CLI_RES_ZC) + +TCP_SESSION_TIMEOUT=no +AC_MSG_CHECKING(RPC server can to do expiring for TCP sessions) +AC_ARG_ENABLE(tcp_sess_exp, + [ --enable-tcp_sess_exp Build library with TCP session expiration], + [ TCP_SESSION_TIMEOUT=$enableval + case "$enableval" in + yes) + AC_DEFINE(TCP_SESSION_TIMEOUT,, + [Build library with TCP session expiration]) + ;; + *) + ;; + esac ],) +AC_MSG_RESULT($TCP_SESSION_TIMEOUT) + +DEF_RPC_TIMEOUT=60 +AC_MSG_CHECKING(RPC server timeout period) +AC_ARG_WITH(timeout_period, + [ --with-timeout_period Build library with TCP timeout period], + [ DEF_RPC_TIMEOUT=$withval ],) +AC_DEFINE_UNQUOTED(DEF_RPC_TIMEOUT, $DEF_RPC_TIMEOUT, [Build library with TCP timeout period]) +AC_MSG_RESULT($DEF_RPC_TIMEOUT) AC_CONFIG_FILES([Makefile inc/Makefile