if ! test "x$squid_disk_module_candidates_AIO" = "xyes"; then
AC_MSG_ERROR([COSS requires POSIX AIO which is not available.])
fi
- # Automake om MinGW needs explicit exe extension
+ # Automake on MinGW needs explicit exe extension
# for STORE_TESTS substition
STORE_TESTS="$STORE_TESTS tests/testCoss$EXEEXT"
;;
AS_HELP_STRING([--disable-select],[Disable select(2) support.]),
[
SQUID_YESNO($enableval,[--disable-select takes no extra argument])
-test "x$enableval" = "xyes" && squid_opt_io_loop_engine="select"
+if test "x$enableval" = "xyes"; then
+ if test "x$squid_host_os" = "xmingw"; then
+ squid_opt_io_loop_engine="select_win32"
+ else
+ squid_opt_io_loop_engine="select"
+ fi
+fi
])
AC_MSG_NOTICE([enabling select syscall for net I/O: ${enable_select:=auto}])
AC_MSG_ERROR(Neither SASL nor SASL2 found)
])
])
- case "$host_os" in
+ case "$squid_host_os" in
Darwin)
if test "$ac_cv_lib_sasl2_sasl_errstring" = "yes" ; then
AC_DEFINE(HAVE_SASL_DARWIN,1,[Define to 1 if Mac Darwin without sasl.h])
squid_opt_io_loop_engine="devpoll"
elif test "x$enable_poll" != "xno" -a "x$ac_cv_func_poll" = "xyes" ; then
squid_opt_io_loop_engine="poll"
-elif test "x$enable_select" != "xno" -a "x$ac_cv_func_select" = "xyes" ; then
+elif test "x$enable_select" != "xno" -a "x$ac_cv_func_select" = "xyes"; then
squid_opt_io_loop_engine="select"
- if test "x$squid_host_os" = "xmingw" ; then
- squid_opt_io_loop_engine="select_win32"
- fi
+elif test "x$enable_select" != "xno" -a "x$squid_host_os" = "xmingw"; then
+ squid_opt_io_loop_engine="select_win32"
else
AC_MSG_WARN([Eep! Cannot find epoll, kqueue, /dev/poll, poll or select!])
AC_MSG_WARN([Will try select and hope for the best.])
AM_CONDITIONAL([USE_POLL], [test $squid_opt_io_loop_engine = poll])
AM_CONDITIONAL([USE_EPOLL], [test $squid_opt_io_loop_engine = epoll])
AM_CONDITIONAL([USE_SELECT], [test $squid_opt_io_loop_engine = select])
-AM_CONDITIONAL([USE_SELECT_SIMPLE], [test $squid_opt_io_loop_engine = select_simple])
AM_CONDITIONAL([USE_SELECT_WIN32], [test $squid_opt_io_loop_engine = select_win32])
AM_CONDITIONAL([USE_KQUEUE], [test $squid_opt_io_loop_engine = kqueue])
AM_CONDITIONAL([USE_DEVPOLL], [test $squid_opt_io_loop_engine = devpoll])