Apply landonf@sf.net's patch for ircu to configure itself on OS X.
[ircu2.10.12-pk.git] / configure.in
index 35a68eff75c885731c7b797f1d7ec7d7968bf9e2..c3f297455bd9f532aeaaa454487bd7c7b0ceb571 100644 (file)
@@ -709,6 +709,9 @@ AC_DEFINE_UNQUOTED(LPATH, "$unet_lpath", [Path to debugging log file])
 
 dnl --with-maxcon allows us to set the maximum connections
 unet_maxcon=`ulimit -Hn`
+if test x"$unet_maxcon" = xunlimited; then
+    unet_maxcon=`ulimit -Sn`
+fi
 unet_maxcon=`expr $unet_maxcon - 4`
 AC_MSG_CHECKING([max connections])
 AC_ARG_WITH([maxcon],