dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS(poll.h sys/devpoll.h sys/epoll.h sys/event.h)
+AC_CHECK_HEADERS(inttypes.h poll.h sys/devpoll.h sys/epoll.h sys/event.h)
dnl Checks for typedefs, structures, and compiler characteristics
dnl AC_C_CONST
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],
Warnings: $unet_cv_enable_warnings
Debug: $unet_cv_enable_debug
Profile: $unet_cv_enable_profile
- Head-in-sand: $unet_cv_enable_headinsand
ADNS: $unet_cv_enable_adns
Owner/mode: $unet_cv_with_owner.$unet_cv_with_group ($unet_cv_with_mode)
Chroot: $unet_cv_with_chroot
poll() engine: $unet_cv_enable_poll
kqueue() engine: $unet_cv_enable_kqueue
/dev/poll engine: $unet_cv_enable_devpoll
+ epoll() engine: $unet_cv_enable_epoll
"])