From 49586af4b75b96010380576fe9ce0a9b67a83ac2 Mon Sep 17 00:00:00 2001 From: blacksirius Date: Tue, 12 Jun 2012 00:59:55 +0000 Subject: added new networking subsystem (early stage - files are not compiled yet during normal build!) Note The files i added / modifications i did, are not affecting a normal build nothing gets changed yet! Linux 2.5+ only yet. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16271 54d463be-8e91-2dee-dedb-b68131a5f0ec --- configure.in | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index e602db19f..5444be663 100644 --- a/configure.in +++ b/configure.in @@ -188,6 +188,34 @@ AC_ARG_ENABLE( ) +# +# Optionally set the max number of network conenctions +# the core will be support +# +AC_ARG_WITH( + [maxconn], + AC_HELP_STRING( + [--with-maxconn@<:@=ARG@:>@], + [optionally set the maximum connections the core can handle (default: 16384) NOT USED YET - EXPERIMENTAL] + ), + [ + if test "$withval" == "no"; then + CFLAGS="$CFLAGS -DMAXCONN=16384" + else + + if ! test "$withval" -ge 0 -o "$withval" -lt 0 2>&- ; then + AC_MSG_ERROR([Invalid argument --with-maxconn=$withval ... stopping]) + else + CFLAGS="$CFLAGS -DMAXCONN=$withval" + fi + fi + ], + [ + CFLAGS="$CFLAGS -DMAXCONN=16384" + ] +) + + # # Optionally specify the path to mysql_config # -- cgit v1.2.3-60-g2f50