Index: squid/configure.in diff -c squid/configure.in:1.251.2.99 squid/configure.in:1.251.2.100 *** squid/configure.in:1.251.2.99 Fri Sep 16 16:00:42 2005 --- squid/configure.in Mon Sep 19 09:39:23 2005 *************** *** 2073,2078 **** --- 2073,2096 ---- AC_MSG_RESULT($DEFAULT_FD_SETSIZE) AC_DEFINE_UNQUOTED(DEFAULT_FD_SETSIZE, $DEFAULT_FD_SETSIZE) + AC_ARG_WITH(maxfd, + [ --with-maxfd=N Override maximum number of filedescriptors. Useful + if you build as another user who is not privileged + to use the number of filedescriptors you want the + resulting binary to support], + [ case $withval in + [[0-9]]*) + SQUID_MAXFD=$withval + echo "Maximum filedescriptors set to $SQUID_MAXFD" + ;; + *) + echo "ERROR: Invalid --with-maxfd argument" + exit 1 + ;; + esac + ]) + if test -z "$SQUID_MAXFD"; then + dnl Not cached since people are likely to tune this AC_MSG_CHECKING(Maximum number of filedescriptors we can open) dnl damn! FreeBSD's pthreads breaks dup2(). *************** *** 2144,2149 **** --- 2162,2168 ---- SQUID_MAXFD=256, SQUID_MAXFD=256) AC_MSG_RESULT($SQUID_MAXFD) + fi # --with-maxfd SQUID_MAXFD AC_DEFINE_UNQUOTED(SQUID_MAXFD, $SQUID_MAXFD) if test "$SQUID_MAXFD" -lt 512 ; then echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your" Index: squid/configure diff -c squid/configure:1.248.2.101 squid/configure:1.248.2.102 *** squid/configure:1.248.2.101 Fri Sep 16 16:00:56 2005 --- squid/configure Mon Sep 19 09:42:23 2005 *************** *** 244,249 **** --- 244,254 ---- variance within an accelerator setup. Typically used together with other code that adds custom HTTP headers to the requests." + ac_help="$ac_help + --with-maxfd=N Override maximum number of filedescriptors. Useful + if you build as another user who is not privileged + to use the number of filedescriptors you want the + resulting binary to support" # Initialize some variables set by options. # The variables have the same names as the options, with *************** *** 8252,8257 **** EOF echo $ac_n "checking Maximum number of filedescriptors we can open""... $ac_c" 1>&6 echo "configure:8228: checking Maximum number of filedescriptors we can open">&5 TLDFLAGS="$LDFLAGS" --- 8257,8280 ---- EOF + # Check whether --with-maxfd or --without-maxfd was given. + if test "${with_maxfd+set}" = set; then + withval="$with_maxfd" + case $withval in + [0-9]*) + SQUID_MAXFD=$withval + echo "Maximum filedescriptors set to $SQUID_MAXFD" + ;; + *) + echo "ERROR: Invalid --with-maxfd argument" + exit 1 + ;; + esac + + fi + + if test -z "$SQUID_MAXFD"; then + echo $ac_n "checking Maximum number of filedescriptors we can open""... $ac_c" 1>&6 echo "configure:8228: checking Maximum number of filedescriptors we can open">&5 TLDFLAGS="$LDFLAGS" *************** *** 8338,8343 **** --- 8361,8367 ---- fi echo "$ac_t""$SQUID_MAXFD" 1>&6 + fi # --with-maxfd SQUID_MAXFD cat>> confdefs.h <

AltStyle によって変換されたページ (->オリジナル) /