--- libaitrpc/configure.in 2013/08/22 15:31:09 1.21 +++ libaitrpc/configure.in 2014/01/28 17:07:03 1.30 @@ -1,8 +1,8 @@ # # $Author: misho $ -# $Id: configure.in,v 1.21 2013/08/22 15:31:09 misho Exp $ +# $Id: configure.in,v 1.30 2014/01/28 17:07:03 misho Exp $ # -AC_INIT(libaitrpc, 6.0, misho@elwix.org) +AC_INIT(libaitrpc, 7.0, misho@elwix.org) AC_CONFIG_SRCDIR([src/aitrpc.c]) AC_CONFIG_HEADERS([inc/config.h]) @@ -19,8 +19,8 @@ AC_CANONICAL_TARGET AC_CHECK_TOOL(MKDEP, mkdep, no) AC_SUBST(MKDEP) -CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}" -LDFLAGS="-L/usr/local/lib ${LDFLAGS}" +CFLAGS="-Wall -O2 -fPIC ${CFLAGS}" +LDFLAGS="${LDFLAGS}" # Checks for libraries. AC_CHECK_LIB([pthread], [pthread_create]) @@ -82,6 +82,30 @@ 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