summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index e602db19f..5444be663 100644
--- a/configure.in
+++ b/configure.in
@@ -189,6 +189,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
#
AC_ARG_WITH(