summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorblacksirius <blacksirius@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-12 00:59:55 +0000
committerblacksirius <blacksirius@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-12 00:59:55 +0000
commit49586af4b75b96010380576fe9ce0a9b67a83ac2 (patch)
treeafebe591c3a1a372f66422f495f5e1fd0538032e /configure
parent0598cc569db02ee93d7fc0470defecb64e995f5c (diff)
downloadhercules-49586af4b75b96010380576fe9ce0a9b67a83ac2.tar.gz
hercules-49586af4b75b96010380576fe9ce0a9b67a83ac2.tar.bz2
hercules-49586af4b75b96010380576fe9ce0a9b67a83ac2.tar.xz
hercules-49586af4b75b96010380576fe9ce0a9b67a83ac2.zip
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure33
1 files changed, 32 insertions, 1 deletions
diff --git a/configure b/configure
index 67d416776..3c0eaaf41 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 16221 .
+# From configure.in Revision: 16226 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.67.
#
@@ -665,6 +665,7 @@ enable_rdtsc
enable_profiler
enable_64bit
enable_lto
+with_maxconn
with_mysql
with_MYSQL_CFLAGS
with_MYSQL_LIBS
@@ -1312,6 +1313,8 @@ Optional Features:
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-maxconn[=ARG] optionally set the maximum connections the core can
+ handle (default: 16384) NOT USED YET - EXPERIMENTAL
--with-mysql[=ARG] optionally specify the path to the mysql_config
executable
--with-MYSQL_CFLAGS=ARG specify MYSQL_CFLAGS manually (instead of using
@@ -3531,6 +3534,34 @@ fi
#
+# Optionally set the max number of network conenctions
+# the core will be support
+#
+
+# Check whether --with-maxconn was given.
+if test "${with_maxconn+set}" = set; then :
+ withval=$with_maxconn;
+ if test "$withval" == "no"; then
+ CFLAGS="$CFLAGS -DMAXCONN=16384"
+ else
+
+ if ! test "$withval" -ge 0 -o "$withval" -lt 0 2>&- ; then
+ as_fn_error $? "Invalid argument --with-maxconn=$withval ... stopping" "$LINENO" 5
+ else
+ CFLAGS="$CFLAGS -DMAXCONN=$withval"
+ fi
+ fi
+
+else
+
+ CFLAGS="$CFLAGS -DMAXCONN=16384"
+
+
+fi
+
+
+
+#
# Optionally specify the path to mysql_config
#