From: Lee Date: Sun, 21 Mar 2021 20:22:07 +0000 (-0400) Subject: do not give warnings for a windows build using --disable-pthread X-Git-Tag: v_3_0_33~103 X-Git-Url: http://www.privoxy.org/gitweb/%40user-manual%40%40actions-help-prefix%40CRUNCH_IF_NONE_MATCH?a=commitdiff_plain;h=89c7f4864dc6878cdfe6621c48d658fdf0f9c0d5;p=privoxy.git do not give warnings for a windows build using --disable-pthread Posix threads need to be disabled on windows - see w32svrapi.c ... --- diff --git a/configure.in b/configure.in index 3ec78e00..b1527b42 100644 --- a/configure.in +++ b/configure.in @@ -459,7 +459,7 @@ AC_ARG_ENABLE(pthread, [ --disable-pthread Don't use POSIX threads (pthreads)], [if test $enableval = no; then # Disable pthreads - if test $have_pthread = yes; then + if test $have_pthread = yes -a $target_type != mingw; then AC_MSG_WARN([pthreads seem to be available but you are using --disable-pthread.]) AC_MSG_WARN([This is almost always a mistake and can render Privoxy unacceptable slow.]) AC_MSG_WARN([Also various Privoxy features only work when using threads and won't even compile without them.])