Boldly enable keep-alive support where possible.
authorFabian Keil <fk@fabiankeil.de>
Fri, 6 Feb 2009 18:17:32 +0000 (18:17 +0000)
committerFabian Keil <fk@fabiankeil.de>
Fri, 6 Feb 2009 18:17:32 +0000 (18:17 +0000)
configure.in

index fe09ca1..48dcc3c 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 dnl 
-dnl $Id: configure.in,v 1.121 2008/08/30 12:03:07 fabiankeil Exp $
+dnl $Id: configure.in,v 1.122 2008/10/18 11:17:52 fabiankeil Exp $
 dnl 
 dnl Written by and Copyright (C) 2001-2008 the SourceForge
 dnl Privoxy team. http://www.privoxy.org/
@@ -28,6 +28,10 @@ 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.122  2008/10/18 11:17:52  fabiankeil
+dnl Connection keep-alive support is ready for testing,
+dnl allow enabling it through the configure script.
+dnl
 dnl Revision 1.121  2008/08/30 12:03:07  fabiankeil
 dnl Remove FEATURE_COOKIE_JAR.
 dnl
@@ -550,7 +554,7 @@ dnl =================================================================
 dnl AutoConf Initialization
 dnl =================================================================
 
-AC_REVISION($Revision: 1.121 $)
+AC_REVISION($Revision: 1.122 $)
 AC_INIT(jcc.c)
 
 if test ! -f config.h.in; then
@@ -1352,12 +1356,6 @@ AC_ARG_ENABLE(extended-host-patterns,
   AC_DEFINE(FEATURE_EXTENDED_HOST_PATTERNS)
 fi])
 
-AC_ARG_ENABLE(connection-keep-alive,
-[  --enable-connection-keep-alive  Keep outgoing connections alive if possible. Experimental.],
-[if test $enableval = yes; then
-  AC_DEFINE(FEATURE_CONNECTION_KEEP_ALIVE)
-fi])
-
 dnl pcre/pcrs is needed for CGI anyway, so
 dnl the choice is only between static and
 dnl dynamic:
@@ -1413,6 +1411,11 @@ else
   STATIC_PCRE_ONLY=
 fi
 
+if test $have_pthread = "yes" -o $target_type = "mingw"; then
+  echo Enabling keep-alive support for outgoing connections.
+  AC_DEFINE(FEATURE_CONNECTION_KEEP_ALIVE)
+fi
+
 dnl =================================================
 dnl libpcrs is temporarily disabled,
 dnl see comment above for the reason.