From efc342f58c4cdb8cb31d6e9504478a71d1675206 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 26 Dec 2006 18:03:41 +0000 Subject: have configure detect SOMAXCONN and store it in a string define, SOMAXCONN_S git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6126 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 5be14d833..bd27742cd 100755 --- a/configure +++ b/configure @@ -14,6 +14,7 @@ require 5.6.0; +use Socket; use Cwd; use Getopt::Long; @@ -209,6 +210,7 @@ $config{STATIC_LINK} = "no"; # are doing static modules? chomp($config{MAX_CLIENT_T} = `sh -c \"ulimit -n\"`); # FD Limit chomp($config{MAX_DESCRIPTORS} = `sh -c \"ulimit -n\"`); # Hard FD Limit chomp($config{GCCVER} = `g++ -dumpversion | cut -c 1`); # Major GCC Version +$config{_SOMAXCONN} = SOMAXCONN; # Max connections in accept queue $config{OSNAME} = $^O; # Operating System Name $config{CC} = "g++"; # C++ compiler if (defined $opt_cc) @@ -1191,6 +1193,7 @@ sub writefiles { #define REVISION "$revision2" #define MAXCLIENTS $config{MAX_CLIENT} #define MAXCLIENTS_S "$config{MAX_CLIENT}" +#define SOMAXCONN_S "$config{_SOMAXCONN}" #define MAX_DESCRIPTORS $config{MAX_DESCRIPTORS} #define NICKMAX $NL #define CHANMAX $CL -- cgit v1.2.3