From f6ac5c6ed186b15d1ac3563a8a44d8a866722b48 Mon Sep 17 00:00:00 2001 From: branch-fixup Date: Thu, 5 Feb 2009 13:43:06 +0000 Subject: [PATCH] Add files from parent branch HEAD: www/squid27/patches/patch-ab --- www/squid27/patches/patch-ab | 56 ++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 www/squid27/patches/patch-ab diff --git a/www/squid27/patches/patch-ab b/www/squid27/patches/patch-ab new file mode 100644 index 00000000000..e28cc582842 --- /dev/null +++ b/www/squid27/patches/patch-ab @@ -0,0 +1,56 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/09/12 15:02:47 taca Exp $ + +--- configure.in.orig 2009-02-04 09:44:06.000000000 +0900 ++++ configure.in +@@ -1635,11 +1635,13 @@ AC_CHECK_HEADERS( + libc.h \ + linux/netfilter_ipv4.h \ + linux/netfilter_ipv4/ip_tproxy.h \ ++ machine/byte_swap.h \ + malloc.h \ + math.h \ + memory.h \ + mount.h \ + net/if.h \ ++ net/pf/pfvar.h \ + net/pfvar.h \ + netdb.h \ + netinet/if_ether.h \ +@@ -2004,7 +2006,16 @@ AC_CHECK_SYSTYPE(size_t, unsigned int) + AC_CHECK_SYSTYPE(ssize_t, int) + AC_CHECK_SYSTYPE(off_t, int) + AC_CHECK_SYSTYPE(mode_t, unsigned short) +-AC_CHECK_SYSTYPE(fd_mask, int) ++ ++dnl Check for type fd_mask ++AC_CACHE_CHECK(for fd_set,ac_cv_have_fd_mask, [ ++ AC_TRY_COMPILE([#include ++#include ++#include ], ++ [fd_mask fds;], ++ ac_cv_have_fd_mask="yes", ++ ac_cv_have_fd_mask="no") ++]) + + AC_CHECK_SIZEOF_SYSTYPE(off_t, 4) + AC_CHECK_SIZEOF_SYSTYPE(size_t, 4) +@@ -2299,8 +2310,8 @@ if test "$GCC" = "yes"; then + GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'` + case "$GCCVER" in + [2.95.[123]]) +- echo "Removing -O for gcc on $host with GCC $GCCVER" +- CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`" ++ echo "Making -O\[[2-9\]] to -O for gcc on $host with GCC $GCCVER" ++ CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*/-O/'`" + ;; + esac + fi +@@ -2697,7 +2708,7 @@ dnl PF support requires a header file. + if test "$PF_TRANSPARENT" ; then + AC_MSG_CHECKING(if PF header file is installed) + # hold on to your hats... +- if test "$ac_cv_header_net_pfvar_h" = "yes"; then ++ if test "$ac_cv_header_net_pfvar_h" = "yes" || test "$ac_cv_header_net_pf_pfvar_h" = "yes"; then + PF_TRANSPARENT="yes" + AC_DEFINE(PF_TRANSPARENT, 1, [Enable support for Transparent Proxy on systems using PF address + redirection. This provides "masquerading" support for OpenBSD.]) -- 2.41.0