From 89c7f4864dc6878cdfe6621c48d658fdf0f9c0d5 Mon Sep 17 00:00:00 2001 From: Lee Date: Sun, 21 Mar 2021 16:22:07 -0400 Subject: [PATCH] do not give warnings for a windows build using --disable-pthread Posix threads need to be disabled on windows - see w32svrapi.c ... --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.]) -- 2.39.2