AC_DEFINE(HAVE_SIN6_LEN_IN_SAI, 0, [Does struct sockaddr_in6 have sin6_len? 1: Yes, 0: No])
fi
-
+dnl --with-maxfd present for compatibility with Squid-2.
+dnl undocumented in ./configure --help to encourage using the Squid-3 directive.
+AC_ARG_WITH(maxfd,,
+[
+ case ${withval} in
+ [[0-9]]*)
+ squid_filedescriptors_num=$withval
+ ;;
+ *)
+ AC_MSG_ERROR(--with-maxfd expects a numeric argument)
+ ;;
+ esac
+])
AC_ARG_WITH(filedescriptors,
-[ --with-filedescriptors=NUMBER
- Force squid to support NUMBER filedescriptors],
+ AC_HELP_STRING([--with-filedescriptors=NUMBER],[Force squid to support NUMBER filedescriptors]),
[
case ${withval} in
[[0-9]]*)