--- libaitrpc/configure.in 2013/11/22 13:41:33 1.27 +++ libaitrpc/configure.in 2015/07/22 20:01:46 1.36 @@ -1,8 +1,8 @@ # # $Author: misho $ -# $Id: configure.in,v 1.27 2013/11/22 13:41:33 misho Exp $ +# $Id: configure.in,v 1.36 2015/07/22 20:01:46 misho Exp $ # -AC_INIT(libaitrpc, 6.6, misho@elwix.org) +AC_INIT(libaitrpc, 9.2, 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]) @@ -68,6 +68,19 @@ AC_ARG_ENABLE(debug, esac ],) AC_MSG_RESULT($DEBUG) +ONLY_CLI=no +AC_MSG_CHECKING(Build only RPC client) +AC_ARG_ENABLE(server, + [ --disable-server Disable RPC server ], + [ if [[ "$enableval" = "no" ]]; then + ONLY_CLI="yes" + AC_DEFINE(ONLY_CLI, 1, [ Disable RPC server ]) + else + AC_DEFINE(ONLY_CLI, 0, [ Disable RPC server ]) + fi ], AC_DEFINE(ONLY_CLI, 0, [ Disable RPC server ])) +AC_MSG_RESULT($ONLY_CLI) +AC_SUBST(ONLY_CLI) + CLI_RES_ZC=no AC_MSG_CHECKING(Client zero-copy return variables) AC_ARG_ENABLE(cli-res-zcpy, @@ -101,10 +114,18 @@ 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], + [ --with-timeout_period=s Build library with RPC timeout period ], [ DEF_RPC_TIMEOUT=$withval ],) -AC_DEFINE_UNQUOTED(DEF_RPC_TIMEOUT, $DEF_RPC_TIMEOUT, [Build library with TCP timeout period]) +AC_DEFINE_UNQUOTED(DEF_RPC_TIMEOUT, $DEF_RPC_TIMEOUT, [Build library with RPC timeout period]) AC_MSG_RESULT($DEF_RPC_TIMEOUT) + +DEF_RPC_BLOB_TIMEOUT=60 +AC_MSG_CHECKING(RPC BLOB server timeout period) +AC_ARG_WITH(blob_timeout, + [ --with-blob_timeout=sec Build library with BLOB timeout period ], + [ DEF_RPC_BLOB_TIMEOUT=$withval ],) +AC_DEFINE_UNQUOTED(DEF_RPC_BLOB_TIMEOUT, $DEF_RPC_BLOB_TIMEOUT, [Build library with BLOB timeout period]) +AC_MSG_RESULT($DEF_RPC_BLOB_TIMEOUT) AC_CONFIG_FILES([Makefile