]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix ./configure --enable-poll and --disable-poll (#1228)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 7 Jan 2023 00:27:12 +0000 (00:27 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 7 Jan 2023 21:04:18 +0000 (21:04 +0000)
    ./configure: line 42685: xyes: command not found
    ./configure: line 42685: xno: command not found

Since commit a1c2236, these options triggered errors messages above, and
--enable-poll did not affect syscall selection for the I/O loop:

    ./configure --enable-poll
    configure: Using epoll for the IO loop.

configure.ac

index 635682d08e4b96577c57329711624a02562b4275..2e4c0488a818b52e86f408637909e436e71c4d41 100644 (file)
@@ -1706,7 +1706,7 @@ AC_MSG_NOTICE([enabling select syscall for net I/O: ${enable_select:=auto}])
 AC_ARG_ENABLE(poll,
   AS_HELP_STRING([--disable-poll],[Disable poll(2) support.]),[
   SQUID_YESNO([$enableval],[--enable-poll])
-  AS_IF(["x$enableval" = "xyes"],[squid_opt_io_loop_engine="poll"])
+  AS_IF([test "x$enableval" = "xyes"],[squid_opt_io_loop_engine="poll"])
 ])
 AC_MSG_NOTICE([enabling poll syscall for net I/O: ${enable_poll:=auto}])