Re: squid3-ipv6 squid3 configure.in,1.63.2.61,1.63.2.62

From: Amos Jeffries <squid3@dont-contact.us>
Date: Mon, 1 Oct 2007 09:03:39 +1300 (NZDT)

> Update of cvs.devel.squid-cache.org:/cvsroot/squid/squid3
>
> Modified Files:
> Tag: squid3-ipv6
> configure.in
> Log Message:
> Fix syntax error in nsaddr tests
>

Guido, that was a feature. :-p

It was meant to provide an autoconf arranged function-macro 'ABC(i)' that
allows the nsaddrs to be indexed like an array instead of conditionally
coded for the various access methods.

There was a regression bug in *nix autoconf 2.59 that prevents it working.
But that was fixed again by 2.61+

If there is any way to get it to work that would be good. Otherwise there
are quite a number of lines to be added to dnsserver.cc to cope with the
different varitations.

Amos

> Index: configure.in
> ===================================================================
> RCS file: /cvsroot/squid/squid3/configure.in,v
> retrieving revision 1.63.2.61
> retrieving revision 1.63.2.62
> diff -C2 -d -r1.63.2.61 -r1.63.2.62
> *** configure.in 26 Sep 2007 03:13:26 -0000 1.63.2.61
> --- configure.in 30 Sep 2007 18:16:13 -0000 1.63.2.62
> ***************
> *** 3278,3282 ****
> ac_cv_have_res_ext_nsaddr_list="no"))
> if test "$ac_cv_have_res_ext_nsaddr_list" = "yes" ; then
> !
> AC_DEFINE([_SQUID_RES_NSADDR6_LIST(i)],[_res_ext.nsaddr_list[[(i)]].sin6_addr],[If
> _res_ext structure has nsaddr_list member])
> AC_DEFINE(_SQUID_RES_NSADDR6_COUNT,ns6count,[Nameserver Counter for
> IPv6 _res_ext])
> fi
> --- 3278,3282 ----
> ac_cv_have_res_ext_nsaddr_list="no"))
> if test "$ac_cv_have_res_ext_nsaddr_list" = "yes" ; then
> !
> AC_DEFINE([_SQUID_RES_NSADDR6_LIST],[_res_ext.nsaddr_list[[(i)]].sin6_addr],[If
> _res_ext structure has nsaddr_list member])
> AC_DEFINE(_SQUID_RES_NSADDR6_COUNT,ns6count,[Nameserver Counter for
> IPv6 _res_ext])
> fi
> ***************
> *** 3305,3309 ****
> ac_cv_have_res_ext_nsaddrs="no"))
> if test "$ac_cv_have_res_ext_nsaddrs" = "yes" ; then
> !
> AC_DEFINE([_SQUID_RES_NSADDR6_LIST(i)],[_res._u._ext.nsaddrs[[(i)]]->sin6_addr],[If
> _res structure has _ext.nsaddrs member])
> AC_DEFINE(_SQUID_RES_NSADDR6_COUNT,[_res._u._ext.nscount6],[Nameserver
> Counter for IPv6 _res])
> fi
> --- 3305,3309 ----
> ac_cv_have_res_ext_nsaddrs="no"))
> if test "$ac_cv_have_res_ext_nsaddrs" = "yes" ; then
> !
> AC_DEFINE([_SQUID_RES_NSADDR6_LIST],[_res._u._ext.nsaddrs[[(i)]]->sin6_addr],[If
> _res structure has _ext.nsaddrs member])
> AC_DEFINE(_SQUID_RES_NSADDR6_COUNT,[_res._u._ext.nscount6],[Nameserver
> Counter for IPv6 _res])
> fi
>
>
Received on Sun Sep 30 2007 - 14:04:01 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:05 MDT