--- libaitrpc/configure.in 2013/11/11 22:48:52 1.24 +++ libaitrpc/configure.in 2013/11/14 21:44:13 1.25 @@ -1,8 +1,8 @@ # # $Author: misho $ -# $Id: configure.in,v 1.24 2013/11/11 22:48:52 misho Exp $ +# $Id: configure.in,v 1.25 2013/11/14 21:44:13 misho Exp $ # -AC_INIT(libaitrpc, 6.3, misho@elwix.org) +AC_INIT(libaitrpc, 6.4, misho@elwix.org) AC_CONFIG_SRCDIR([src/aitrpc.c]) AC_CONFIG_HEADERS([inc/config.h]) @@ -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