--------------------- PatchSet 1223 Date: 2005/02/14 11:55:10 Author: mediumnet Branch: squid3-ipv6 Tag: (none) Log: settung up branch for IPv6 changes as recommended in http://devel.squid-cache.org/CVS.html, "Step by step guide for creating and using a new branch from HEAD" Members: configure.in:1.63->1.63.2.1 Index: squid3/configure.in =================================================================== RCS file: /cvsroot/squid-sf//squid3/configure.in,v retrieving revision 1.63 retrieving revision 1.63.2.1 diff -u -r1.63 -r1.63.2.1 --- squid3/configure.in 8 Feb 2005 03:14:39 -0000 1.63 +++ squid3/configure.in 14 Feb 2005 11:55:10 -0000 1.63.2.1 @@ -3,7 +3,7 @@ dnl dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9) dnl -dnl $Id: configure.in,v 1.63 2005/02/08 03:14:39 squidadm Exp $ +dnl $Id: configure.in,v 1.63.2.1 2005/02/14 11:55:10 mediumnet Exp $ dnl dnl dnl @@ -13,7 +13,7 @@ AC_CONFIG_AUX_DIR(cfgaux) AM_INIT_AUTOMAKE(squid, 3.0-PRE3-CVS) AM_CONFIG_HEADER(include/autoconf.h) -AC_REVISION($Revision: 1.63 $)dnl +AC_REVISION($Revision: 1.63.2.1 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AM_MAINTAINER_MODE @@ -1518,6 +1518,14 @@ fi ]) +AC_ARG_ENABLE(ipv6, +[ --enable-ipv6 Enable IPv6 (does not compile currently)], +WANTS_IPV6=$enableval, WANTS_IPV6=no) + +AC_ARG_ENABLE(ipv6, +[ --disable-ipv6 Do not enable IPv6 (currently default)], +WANTS_IPV6=$enableval, WANTS_IPV6=no) + AC_ARG_WITH(filedescriptors, [ --with-filedescriptors=NUMBER Force squid to support NUMBER filedescriptors], [ squid_filedescriptors_num=$withval ]) @@ -2168,6 +2176,14 @@ vsnprintf \ ) +AC_CHECK_FUNC(getaddrinfo, +[if test "$WANTS_IPV6" = "yes"; then + AC_DEFINE([ENABLE_IPV6], [1], [1 enable IPv6]) +else + AC_DEFINE([ENABLE_IPV6], [0], [0 disable IPv6]) +fi]) + + dnl Magic which checks whether we are forcing a type of comm loop we dnl are actually going to (ab)use