From f247cd74b066ce989ba412f9f3fc5dea224ad1d7 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 27 Jun 2008 12:50:44 +0000 Subject: [PATCH] Here's looking at you, Gentoo Linux: Show a warning if --disable-pthread is used even though pthreads are available. --- configure.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 5ce23316..50066f74 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl $Id: configure.in,v 1.116 2008/06/08 11:55:09 fabiankeil Exp $ +dnl $Id: configure.in,v 1.117 2008/06/14 12:47:30 fabiankeil Exp $ dnl dnl Written by and Copyright (C) 2001-2008 the SourceForge dnl Privoxy team. http://www.privoxy.org/ @@ -28,6 +28,9 @@ dnl or write to the Free Software Foundation, Inc., 59 dnl Temple Place - Suite 330, Boston, MA 02111-1307, USA. dnl dnl $Log: configure.in,v $ +dnl Revision 1.117 2008/06/14 12:47:30 fabiankeil +dnl Set CODE_STATUS to beta. +dnl dnl Revision 1.116 2008/06/08 11:55:09 fabiankeil dnl - Show a warning if the soon-to-be-removed static PCRE code is used. dnl - Hide the "using built-in static pcrs" message. With dynamic linking @@ -534,7 +537,7 @@ dnl ================================================================= dnl AutoConf Initialization dnl ================================================================= -AC_REVISION($Revision: 1.116 $) +AC_REVISION($Revision: 1.117 $) AC_INIT(jcc.c) if test ! -f config.h.in; then @@ -922,6 +925,10 @@ 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 + 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.]) + fi have_pthread=no fi]) -- 2.39.2