#
AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign
-DIST_SUBDIRS = lib snmplib scripts src icons errors contrib doc helpers test-suite tools
-SUBDIRS = src/compat lib @makesnmplib@ scripts src/ip src icons errors doc helpers test-suite tools
+DIST_SUBDIRS = libsquid-compat lib snmplib scripts src icons errors contrib doc helpers test-suite tools
+SUBDIRS = libsquid-compat lib @makesnmplib@ scripts src/ip src icons errors doc helpers test-suite tools
DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
CRYPTLIB=''
REGEXLIB='' # -lregex
-LIBREGEX='' # libregex.a
+# LIBREGEX='' # libregex.a
dnl find out the exe extension for this platform. If it's not empty, use it for CGI's as well.
AC_EXEEXT
fi
fi
-AC_ARG_ENABLE(gnuregex,
- AC_HELP_STRING([--enable-gnuregex],
- [Compile GNUregex. Unless you have reason to use
- this option, you should not enable it.
- This library file is usually only required on Windows and
- very old Unix boxes which do not have their own regex
- library built in.]),
-[USE_GNUREGEX=$enableval])
-
SquidInline="yes"
AC_ARG_ENABLE(optimizations,
fi
fi
+AC_ARG_ENABLE(gnuregex,
+ AC_HELP_STRING([--enable-gnuregex],
+ [Compile GNUregex. Unless you have reason to use
+ this option, you should not enable it.
+ This library file is usually only required on Windows and
+ very old Unix boxes which do not have their own regex
+ library built in.]),
+[USE_GNUREGEX=$enableval])
if test -z "$USE_GNUREGEX" ; then
case "$host" in
*-sun-solaris2.[[0-4]])
fi
AC_MSG_RESULT($USE_GNUREGEX)
if test "$USE_GNUREGEX" = "yes"; then
- REGEXLIB="-lregex"
- LIBREGEX="libregex.a"
+ # override system regex with ours. Not good. But what was asked for.
+ REGEXLIB=""
AC_DEFINE(USE_GNUREGEX,1,[Define if we should use GNU regex])
fi
AC_SUBST(REGEXLIB)
-AC_SUBST(LIBREGEX)
+#AC_SUBST(LIBREGEX)
dnl Not cached since people are likely to tune this
AC_MSG_CHECKING(Default FD_SETSIZE value)
AC_CONFIG_FILES([\
Makefile \
+ libsquid-compat/Makefile \
lib/Makefile \
scripts/Makefile \
scripts/RunCache \
scripts/RunAccel \
src/Makefile \
- src/compat/Makefile \
src/fs/Makefile \
src/repl/Makefile \
src/auth/Makefile \
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.3 2007/07/19 02:54:21 hno Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
#
# Makefile for the Squid LDAP authentication helper
#
-# $Id: Makefile.am,v 1.6 2005/03/19 15:24:07 serassio Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
EXTRA_DIST = squid_ldap_auth.8
squid_ldap_auth_SOURCES = squid_ldap_auth.c
-LDADD = -L$(top_builddir)/lib -lmiscutil $(LIB_LDAP) $(LIB_LBER) $(XTRA_LIBS)
-INCLUDES = -I$(top_srcdir)/include
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(LIB_LDAP) \
+ $(LIB_LBER) \
+ $(XTRA_LIBS)
+
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/include
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.10 2003/01/23 00:35:26 robertc Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
sysconf_DATA = \
msntauth.conf.default
-LDADD = -L$(top_builddir)/lib -lmiscutil $(XTRA_LIBS)
+LDADD = -L$(top_builddir)/lib -lmiscutil $(XTRA_LIBS) -L$(top_builddir)/libsquid-compat/libsquid-compat.la
-INCLUDES = -I$(top_srcdir)/include
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src
confload.o: confload.c
$(COMPILE) -DSYSCONFDIR=\"$(sysconfdir)\" -c $(srcdir)/confload.c -o $@
echo "$(INSTALL_DATA) $(srcdir)/msntauth.conf.default $(DESTDIR)$(sysconfdir)/msntauth.conf" ; \
$(INSTALL_DATA) $(srcdir)/msntauth.conf.default $(DESTDIR)$(sysconfdir)/msntauth.conf ; \
fi
-
-
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.6 2007/06/25 11:27:03 hno Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
ncsa_auth_SOURCES = ncsa_auth.c crypt_md5.c crypt_md5.h
man_MANS = ncsa_auth.8
EXTRA_DIST = ncsa_auth.8
-LDADD = -L$(top_builddir)/lib -lmiscutil $(CRYPTLIB) $(XTRA_LIBS) $(SSLLIB)
-INCLUDES = -I$(top_srcdir)/include
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(CRYPTLIB) \
+ $(XTRA_LIBS) \
+ $(SSLLIB)
+
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src
#
# Makefile for the Squid PAM authentication helper
#
-# $Id: Makefile.am,v 1.7 2003/08/03 20:38:02 robertc Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
-INCLUDES = -I$(top_srcdir)/include
-
man_MANS = pam_auth.8
EXTRA_DIST = pam_auth.8
libexec_PROGRAMS = pam_auth
-LDADD = -L$(top_builddir)/lib -lmiscutil -lpam $(XTRA_LIBS)
+
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/include
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ -lpam \
+ $(XTRA_LIBS)
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.1 2006/12/09 23:28:23 hno Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
#
# Makefile for the Squid SASL authentication helper
#
-# $Id: Makefile.am,v 1.7 2004/12/20 16:30:15 robertc Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
-INCLUDES = -I$(top_srcdir)/include
-
libexec_PROGRAMS = sasl_auth
-LDADD = -L$(top_builddir)/lib -lmiscutil $(LIBSASL) $(XTRA_LIBS)
+
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/include
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(LIBSASL) \
+ $(XTRA_LIBS)
+
EXTRA_DIST = squid_sasl_auth squid_sasl_auth.conf
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.5 2003/01/23 00:35:40 robertc Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
smb_auth_CFLAGS = -DSAMBAPREFIX=\"$(SAMBAPREFIX)\" -DHELPERSCRIPT=\"$(SMB_AUTH_HELPER_PATH)\"
EXTRA_DIST = smb_auth.sh COPYING-2.0
-LDADD = -L$(top_builddir)/lib -lmiscutil $(XTRA_LIBS)
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/include
-INCLUDES = -I$(top_srcdir)/include
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(XTRA_LIBS)
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.5 2003/01/23 00:35:44 robertc Exp $
+# $Id$
#
#
libexec_PROGRAMS = yp_auth
yp_auth_SOURCES = yp_auth.c nis_support.h nis_support.c
-LDADD = -L$(top_builddir)/lib -lmiscutil $(CRYPTLIB) $(XTRA_LIBS)
-INCLUDES = -I$(top_srcdir)/include
+
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/include
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(CRYPTLIB) \
+ $(XTRA_LIBS)
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.3 2003/01/23 00:35:47 robertc Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
getpwname_auth_SOURCES = getpwnam_auth.c
-INCLUDES = -I$(top_srcdir)/include
-LDADD = -L$(top_builddir)/lib -lmiscutil $(CRYPTLIB) $(XTRA_LIBS)
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(CRYPTLIB) \
+ $(XTRA_LIBS)
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.2 2005/11/22 19:45:04 serassio Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
mswin_auth_SOURCES = mswin_auth.c valid.c valid.h
-LDADD = -L$(top_builddir)/lib -lnetapi32 -ladvapi32 -lsspwin32 \
- -lmiscutil $(XTRA_LIBS)
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ -lnetapi32 -ladvapi32 -lsspwin32 \
+ $(XTRA_LIBS)
-INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/src
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
EXTRA_DIST = readme.txt
#
# Makefile for the Squid LDAP authentication helper
#
-# $Id: Makefile.am,v 1.2 2007/11/20 14:34:17 hno Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
radius-util.c \
radius-util.h
-LDADD = -L$(top_builddir)/lib -lmiscutil $(SSLLIB) $(XTRA_LIBS)
-INCLUDES = -I$(top_srcdir)/include
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/include
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(SSLLIB) \
+ $(XTRA_LIBS)
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.1 2007/06/23 20:50:10 hno Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
ldap_backend.h \
edir_ldapext.c \
edir_ldapext.h
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include \
- -I$(top_srcdir)/src/
-LDADD = -L$(top_builddir)/lib -lmiscutil $(LIB_LDAP) $(LIB_LBER) $(CRYPTLIB) $(XTRA_LIBS) $(SSLLIB)
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(LIB_LDAP) \
+ $(LIB_LBER) \
+ $(CRYPTLIB) \
+ $(XTRA_LIBS) \
+ $(SSLLIB)
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.2 2005/12/29 02:43:02 hno Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
digest_common.h \
ldap_backend.c \
ldap_backend.h
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include \
- -I$(top_srcdir)/src/
-LDADD = -L$(top_builddir)/lib -lmiscutil $(LIB_LDAP) $(LIB_LBER) $(CRYPTLIB) $(XTRA_LIBS) $(SSLLIB)
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(LIB_LDAP) \
+ $(LIB_LBER) \
+ $(CRYPTLIB) \
+ $(XTRA_LIBS) \
+ $(SSLLIB)
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.6 2005/12/30 23:21:46 hno Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
digest_common.h \
text_backend.c \
text_backend.h
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include \
- -I$(top_srcdir)/src/
-LDADD = -L$(top_builddir)/lib -lmiscutil $(CRYPTLIB) $(XTRA_LIBS) $(SSLLIB)
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(CRYPTLIB) \
+ $(XTRA_LIBS) \
+ $(SSLLIB)
#
# Makefile for the ip_user external_acl helper by Rodrigo Campos
#
-# $Id: Makefile.am,v 1.4 2004/08/14 22:54:52 hno Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
main.c \
match.c
-
EXTRA_DIST = \
example.conf \
example-deny_all_but.conf \
# sysconf_DATA =
-LDADD = -L$(top_builddir)/lib -lmiscutil @XTRA_LIBS@
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ @XTRA_LIBS@
#
# Makefile for the Squid LDAP authentication helper
#
-# $Id: Makefile.am,v 1.6 2005/03/19 15:24:07 serassio Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
EXTRA_DIST = squid_ldap_group.8
squid_ldap_group_SOURCES = squid_ldap_group.c
-LDADD = -L$(top_builddir)/lib -lmiscutil $(LIB_LDAP) $(LIB_LBER) @XTRA_LIBS@
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(LIB_LDAP) \
+ $(LIB_LBER) \
+ @XTRA_LIBS@
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.1 2008/05/17 10:23:13 serassio Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
mswin_check_ad_group_SOURCES = mswin_check_ad_group.c mswin_check_ad_group.h
-INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/include
-LDADD = -L$(top_builddir)/lib -lmiscutil -lnetapi32 -ladvapi32 \
- -lntdll $(XTRA_LIBS)
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ -lnetapi32 \
+ -ladvapi32 \
+ -lntdll \
+ $(XTRA_LIBS)
EXTRA_DIST = readme.txt
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.1 2005/10/31 16:29:45 serassio Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
mswin_check_lm_group_SOURCES = win32_check_group.c win32_check_group.h
-INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/src
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
-LDADD = -L$(top_builddir)/lib -lmiscutil -lnetapi32 -ladvapi32 \
- -lntdll $(XTRA_LIBS)
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ -lnetapi32 \
+ -ladvapi32 \
+ -lntdll \
+ $(XTRA_LIBS)
EXTRA_DIST = readme.txt
#
# Makefile for the Squid LDAP authentication helper
#
-# $Id: Makefile.am,v 1.3 2006/03/20 23:38:23 hno Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
EXTRA_DIST = squid_session.8
squid_session_SOURCES = squid_session.c
-LDADD = $(LIB_DB)
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ $(LIB_DB)
#
# Makefile for the Squid LDAP authentication helper
#
-# $Id: Makefile.am,v 1.4 2004/08/14 22:54:53 hno Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
EXTRA_DIST = squid_unix_group.8
squid_unix_group_SOURCES = check_group.c
-LDADD = -L$(top_builddir)/lib -lmiscutil @XTRA_LIBS@
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ @XTRA_LIBS@
#
# Makefile for the Squid LDAP authentication helper
#
-# $Id: Makefile.am,v 1.2 2003/01/23 00:36:16 robertc Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.2 2003/01/23 00:36:34 robertc Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
libexec_PROGRAMS = fakeauth_auth
fakeauth_auth_SOURCES = fakeauth_auth.c ntlm.h
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include \
- -I$(top_srcdir)/src/
-LDADD = -L$(top_builddir)/lib -lmiscutil $(CRYPTLIB) $(XTRA_LIBS)
+
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(CRYPTLIB) \
+ $(XTRA_LIBS)
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.1 2005/10/30 21:48:22 serassio Exp $
+# $Id$
#
libexec_PROGRAMS = mswin_ntlm_auth
mswin_ntlm_auth_SOURCES = libntlmssp.c ntlm_auth.c ntlm.h
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/src
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
-LDADD = -L$(top_builddir)/lib -lntlmauth -lsspwin32 -lnetapi32 \
- -ladvapi32 -lmiscutil $(XTRA_LIBS)
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil -lntlmauth \
+ -lsspwin32 \
+ -lnetapi32 \
+ -ladvapi32 \
+ $(XTRA_LIBS)
EXTRA_DIST = readme.txt
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.4 2003/01/23 00:36:38 robertc Exp $
+# $Id$
#
# Uncomment and customize the following to suit your needs:
#
libexec_PROGRAMS = ntlm_smb_lm_auth
ntlm_smb_lm_auth_SOURCES = libntlmssp.c ntlm_smb_lm_auth.c ntlm_smb_lm_auth.h
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include \
- -I$(top_srcdir)/src/ -I$(srcdir)/smbval
-LDADD = smbval/libsmbvalid.a -L$(top_builddir)/lib -lntlmauth \
- -lmiscutil $(CRYPTLIB) $(XTRA_LIBS)
+
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src \
+ -I$(srcdir)/smbval
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lntlmauth -lmiscutil \
+ smbval/libsmbvalid.a \
+ $(CRYPTLIB) \
+ $(XTRA_LIBS)
# makefile for smblib
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include \
- -I$(top_srcdir)/src/
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
noinst_LIBRARIES = libsmbvalid.a
+
libsmbvalid_a_SOURCES = valid.c session.c rfcnb-util.c rfcnb-io.c \
smblib-util.c smblib.c smbencrypt.c smbdes.c md4.c byteorder.h \
rfcnb-error.h rfcnb-util.h smbencrypt.h smblib.h valid.h \
*--------------------------------------------------------------------------*
****************************************************************************/
-#include "compat/compat.h"
+#include "compat.h"
#ifdef USE_POSIX_REGEX
#ifndef USE_RE_SYNTAX
endif
EXTRA_LIBRARIES = \
- libregex.a \
libsspwin32.a
noinst_LIBRARIES = \
libmiscutil.a \
libntlmauth.a \
- $(LIBSSPWIN32) \
- @LIBREGEX@
+ $(LIBSSPWIN32)
+
#
# dirent.c, encrypt.c and getopt.c are needed for native Windows support.
#
libTrie/src/TrieNode.o \
@LIBOBJS@
# $(top_srcdir)/include/version.h should be a dependency
-libregex_a_SOURCES = \
- GNUregex.c
libntlmauth_a_SOURCES = \
ntlmauth.c
libntlmauth_a_LIBADD = \
libsspwin32_a_SOURCES = \
sspwin32.c
-INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include @SQUID_CPPUNIT_INC@ -I$(top_srcdir)/src
+INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include @SQUID_CPPUNIT_INC@ -I$(top_srcdir)/libsquid-compat
##FIXME - set these in configure.in and reuse
check_PROGRAMS= \
-/*
- * $Id: GNUregex.c,v 1.22 2007/12/14 23:11:44 amosjeffries Exp $
- */
-
/* Extended regular expression matching and search library,
* version 0.12.
* (Implements POSIX draft P10003.2/D11.2, except for
#include "config.h"
+#if USE_GNUREGEX /* only if squid needs it. Usually not */
+
#if !HAVE_ALLOCA
#define REGEX_MALLOC 1
#endif
\f
/* Get the interface, including the syntax bits. */
-#include "GNUregex.h"
+#include "GnuRegex.h"
/* Compile a fastmap for the compiled pattern in BUFFER; used to
* accelerate searches. Return 0 if successful and -2 if was an
* the pattern buffer.
*
* Returns 0 if we succeed, -2 if an internal error. */
-
+#ifdef STDC_HEADERS
+int
+re_compile_fastmap(struct re_pattern_buffer *bufp)
+#else
int
re_compile_fastmap(bufp)
struct re_pattern_buffer *bufp;
+#endif
{
int j, k;
fail_stack_type fail_stack;
free(preg->translate);
preg->translate = NULL;
}
+#endif /* USE_GNUREGEX */
\f
/*
* Local variables:
DEFS = @DEFS@
CLEANFILES =
-INCLUDES = -I$(top_srcdir)/src @SQUID_CPPUNIT_INC@ -I$(top_srcdir)/include -I$(top_builddir)/lib
+INCLUDES = -I. -I$(top_srcdir)/src @SQUID_CPPUNIT_INC@ -I$(top_srcdir)/include -I$(top_builddir)/lib
$(OBJS): $(top_srcdir)/include/version.h $(top_srcdir)/include/autoconf.h
# Ideally this would be 100% inline functions and macro wrappers.
# Port Specific Configurations
-noinst_LTLIBRARIES = libcompat.la
+noinst_LTLIBRARIES = libsquid-compat.la
-libcompat_la_SOURCES = \
+libsquid_compat_la_SOURCES = \
compat.h \
osdetect.h \
compat_shared.h \
+ gnuregex.h \
squid_fdsetsize.h \
+ squid_stdvarargs.h \
+ squid_valgrind.h \
\
os/squid_aix.h \
os/squid_freebsd.h \
os/squid_sunos.h \
os/squid_windows.h \
\
- compat.cc
+ compat.cc \
+ GnuRegex.c
check_PROGRAMS= testHeaders
## Special Universal .h dependency test script
## aborts if error encountered
-testHeaders: $(top_srcdir)/src/compat/*.h $(top_srcdir)/src/compat/os/*.h
- $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/src/compat/" || exit 1
- $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/src/compat/os/" || exit 1
+testHeaders: $(top_srcdir)/libsquid-compat/*.h $(top_srcdir)/libsquid-compat/os/*.h
+ $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/libsquid-compat/" || exit 1
+ $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/libsquid-compat/os/" || exit 1
## No such file...
testHeaders.c:
touch testHeaders.c
CLEANFILES += testHeaders.c
-
-#
-#testIpAddress_SOURCES= \
-# testIpAddress.cc \
-# testIpAddress.h
-#nodist_testIpAddress_SOURCES= \
-# ../tests/testMain.cc
-#testIpAddress_LDADD= \
-# libip.la \
-# -L$(top_builddir)/lib -lmiscutil \
-# @SQUID_CPPUNIT_LA@ \
-# @SQUID_CPPUNIT_LIBS@
-#testIpAddress_LDFLAGS= $(LIBADD_DL)
/* Define the _SQUID_TYPE_ based on a guess of the OS */
/* NP: this MUST come first within compat.h */
/******************************************************/
-#include "compat/osdetect.h"
+#include "osdetect.h"
/*****************************************************/
/* FDSETSIZE is messy and needs to be done before */
/* sys/types.h are defined. */
/*****************************************************/
-#include "compat/squid_fdsetsize.h"
+#include "squid_fdsetsize.h"
/*****************************************************/
#include "compat_shared.h"
#include "squid_stdvarargs.h"
-#include "compat/assert.h"
+#include "assert.h"
/*****************************************************/
/* component-specific portabilities */
* Default is to use a system provided one, but the bundle
* may be used instead with explicit configuration.
*/
-#include "compat/GnuRegex.h"
+#include "GnuRegex.h"
#endif /* _SQUID_COMPAT_H */
/*
* Filedescriptor limits in the different select loops
+ *
+ * NP: FreeBSD 7 defines FD_SETSIZE as unsigned but Squid needs
+ * it to be signed to compare it with signed values.
+ * Linux and others including FreeBSD <7, define it as signed.
+ * If this causes any issues please contact squid-dev@squid-cache.org
*/
#if defined(USE_SELECT) || defined(USE_SELECT_WIN32)
/* Limited by design */
-# define SQUID_MAXFD_LIMIT FD_SETSIZE
+# define SQUID_MAXFD_LIMIT ((signed int)FD_SETSIZE)
#elif defined(USE_POLL)
/* Limited due to delay pools */
-# define SQUID_MAXFD_LIMIT FD_SETSIZE
+# define SQUID_MAXFD_LIMIT ((signed int)FD_SETSIZE)
#elif defined(USE_KQUEUE) || defined(USE_EPOLL)
# define SQUID_FDSET_NOUSE 1
#ifndef SQUID_CONFIG_H
-#include "squid.h"
+#include "config.h"
#endif
#ifndef SQUID_OS_AIX_H
#ifndef SQUID_CONFIG_H
-#include "squid.h"
+#include "config.h"
#endif
#ifndef SQUID_OS_FREEBSD_H
#ifndef SQUID_CONFIG_H
-#include "squid.h"
+#include "config.h"
#endif
#ifndef SQUID_OS_HPUX_H
#ifndef SQUID_CONFIG_H
-#include "squid.h"
+#include "config.h"
#endif
#ifndef SQUID_OS_LINUX_H
*
*/
#ifndef SQUID_CONFIG_H
-#include "squid.h"
+#include "config.h"
#endif
#ifndef SQUID_OS_MSWIN_H
#ifndef SQUID_CONFIG_H
-#include "squid.h"
+#include "config.h"
#endif
#ifndef SQUID_OS_NEXT_H
#ifndef SQUID_CONFIG_H
-#include "squid.h"
+#include "config.h"
#endif
#ifndef SQUID_OS_OPENBSD_H
#ifndef SQUID_CONFIG_H
-#include "squid.h"
+#include "config.h"
#endif
#ifndef SQUID_OS_QNX_H
#ifndef SQUID_CONFIG_H
-#include "squid.h"
+#include "config.h"
#endif
#ifndef SQUID_OS_SGI_H
#ifndef SQUID_CONFIG_H
-#include "squid.h"
+#include "config.h"
#endif
#ifndef SQUID_OS_SOLARIS_H
#ifndef SQUID_CONFIG_H
-#include "squid.h"
+#include "config.h"
#endif
#ifndef SQUID_OS_SUNOS_H
*
*/
#ifndef SQUID_CONFIG_H
-#include "squid.h"
+#include "config.h"
#endif
#ifndef SQUID_OS_WINDOWS_H
mib.c snmp_api_error.c \
snmp_msg.c \
snmp_pdu.c snmplib_debug.c
-INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/src
+INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/libsquid-compat
VERSION = 3.4
DEFS = -DSQUID_SNMP=1
CLEANFILES =
INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
-I$(top_builddir)/include \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src
noinst_LIBRARIES = @DISK_LIBS@
noinst_LTLIBRARIES = libsquid.la libauth.la
-INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/lib/libTrie/include
-INCLUDES += -I$(top_builddir)/lib -I$(top_srcdir)/lib
-INCLUDES += @SQUID_CPPUNIT_INC@
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/src \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/lib/libTrie/include \
+ -I$(top_builddir)/lib \
+ -I$(top_srcdir)/lib \
+ @SQUID_CPPUNIT_INC@
EXTRA_PROGRAMS = \
DiskIO/DiskDaemon/diskd \
CLEANFILES =
INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
-I$(top_builddir)/include \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src
# Makefile for authentication modules in the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.6 2005/10/23 11:55:38 hno Exp $
+# $Id$
#
AUTOMAKE_OPTIONS = subdir-objects
AM_CFLAGS = @SQUID_CFLAGS@
libntlm_a_SOURCES = ntlm/auth_ntlm.cc ntlm/auth_ntlm.h
libnegotiate_a_SOURCES = negotiate/auth_negotiate.cc negotiate/auth_negotiate.h negotiate/negotiateScheme.cc negotiate/negotiateScheme.h
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include \
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include \
-I$(top_srcdir)/src
check_PROGRAMS= testHeaders
\
Registry.h
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include \
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include \
-I$(top_srcdir)/src
# Makefile for storage modules in the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.15 2008/01/08 11:10:48 amosjeffries Exp $
+# $Id$
#
AUTOMAKE_OPTIONS = subdir-objects
coss/StoreFScoss.h \
ufs/StoreFSufs.h
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include \
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include \
-I$(top_srcdir)/src
check_PROGRAMS=testHeaders
DEFS = @DEFS@
CLEANFILES =
-INCLUDES = -I$(top_srcdir)/src @SQUID_CPPUNIT_INC@ -I$(top_srcdir)/include -I$(top_builddir)/lib
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/src \
+ -I$(top_srcdir)/include \
+ -I$(top_builddir)/lib \
+ @SQUID_CPPUNIT_INC@
+
$(OBJS): $(top_srcdir)/include/version.h $(top_srcdir)/include/autoconf.h
# TODO: get rid of this when config filename is no longer a global constant.
DEFS = @DEFS@
CLEANFILES =
-INCLUDES = -I$(top_srcdir)/src @SQUID_CPPUNIT_INC@ -I$(top_srcdir)/include -I$(top_builddir)/lib
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I$(top_srcdir)/include \
+ -I$(top_builddir)/lib \
+ -I$(top_srcdir)/src \
+ @SQUID_CPPUNIT_INC@
+
$(OBJS): $(top_srcdir)/include/version.h $(top_srcdir)/include/autoconf.h
nodist_testIpAddress_SOURCES= \
../tests/testMain.cc
testIpAddress_LDADD= \
+ $(top_builddir)/libsquid-compat/libsquid-compat.la \
libip.la \
-L$(top_builddir)/lib -lmiscutil \
@SQUID_CPPUNIT_LA@ \
# Makefile for storage modules in the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.7 2005/08/20 21:08:38 serassio Exp $
+# $Id$
#
AUTOMAKE_OPTIONS = subdir-objects
liblru_a_SOURCES = lru/store_repl_lru.cc
libheap_a_SOURCES = heap/store_heap_replacement.h heap/store_heap_replacement.cc heap/store_repl_heap.cc
-INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include \
+INCLUDES = \
+ -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include \
-I$(top_srcdir)/src
check_PROGRAMS= testHeaders
#endif /* HAVE_POLL_H */
#endif /* USE_POLL */
-/*
- * Filedescriptor limits in the different select loops
- *
- * NP: FreeBSD 7 defines FD_SETSIZE as unsigned but Squid needs
- * it to be signed to compare it with signed values.
- * Linux and others including FreeBSD <7, define it as signed.
- * If this causes any issues please contact squid-dev@squid-cache.org
- */
-#if defined(USE_SELECT) || defined(USE_SELECT_WIN32)
-/* Limited by design */
-# define SQUID_MAXFD_LIMIT ((signed int)FD_SETSIZE)
-#elif defined(USE_POLL)
-/* Limited due to delay pools */
-# define SQUID_MAXFD_LIMIT ((signed int)FD_SETSIZE)
-#elif defined(USE_KQUEUE) || defined(USE_EPOLL)
-# define SQUID_FDSET_NOUSE 1
-#else
-# error Unknown select loop model!
-#endif
-
/*
* Trap unintentional use of fd_set. Must not be used outside the
# endif
#endif
-#if defined(HAVE_STDARG_H)
-#include <stdarg.h>
-#define HAVE_STDARGS /* let's hope that works everywhere (mj) */
-#define VA_LOCAL_DECL va_list ap;
-#define VA_START(f) va_start(ap, f)
-#define VA_SHIFT(v,t) ; /* no-op for ANSI */
-#define VA_END va_end(ap)
-#else
-#if defined(HAVE_VARARGS_H)
-#include <varargs.h>
-#undef HAVE_STDARGS
-#define VA_LOCAL_DECL va_list ap;
-#define VA_START(f) va_start(ap) /* f is ignored! */
-#define VA_SHIFT(v,t) v = va_arg(ap,t)
-#define VA_END va_end(ap)
-#else
-#error XX **NO VARARGS ** XX
-#endif
-#endif
-
-/* Make sure syslog goes after stdarg/varargs */
-#ifdef HAVE_SYSLOG_H
-#ifdef _SQUID_AIX_
-#define _XOPEN_EXTENDED_SOURCE
-#define _XOPEN_SOURCE_EXTENDED 1
-#endif
-#include <syslog.h>
-#endif
-
#if HAVE_MATH_H
#include <math.h>
#endif
#define MAXPATHLEN SQUID_MAXPATHLEN
#endif
-#if !HAVE_GETRUSAGE
-#if defined(_SQUID_HPUX_)
-#define HAVE_GETRUSAGE 1
-#define getrusage(a, b) syscall(SYS_GETRUSAGE, a, b)
-#endif
-#endif
-
#if !HAVE_STRUCT_RUSAGE
/*
* If we don't have getrusage() then we create a fake structure
#define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR))
#endif
-#ifdef USE_GNUREGEX
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-#include "GNUregex.h"
-#ifdef __cplusplus
-}
-
-#endif
-#elif HAVE_REGEX_H
-#include <regex.h>
-#endif
-
#include "md5.h"
#if USE_SSL
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.20 2007/01/04 20:52:57 hno Exp $
+# $Id$
#
AUTOMAKE_OPTIONS = subdir-objects
AM_CFLAGS = @SQUID_CFLAGS@
AM_CXXFLAGS = @SQUID_CXXFLAGS@
-INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/src
+INCLUDES = -I$(top_srcdir)/libsquid-compat \
+ -I. \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src
+
+LDADD = \
+ -L$(top_builddir)/libsquid-compat/libsquid-compat.la \
+ -L$(top_builddir)/lib -lmiscutil \
+ $(top_builddir)/src/globals.o \
+ $(top_builddir)/src/time.o
EXTRA_PROGRAMS = mem_node_test membanger splay tcp-banger2 rfc1738
+
EXTRA_DIST = testheaders.sh
ESI_ALL_TESTS = \
VirtualDeleteOperator
-LDADD =$(top_builddir)/src/globals.o $(top_builddir)/src/time.o -L$(top_builddir)/lib -lmiscutil
tcp_banger2_LDADD = -L$(top_builddir)/lib -lmiscutil
DEBUG_SOURCE = test_tools.cc
debug_SOURCES = debug.cc $(DEBUG_SOURCE)
AUTOMAKE_OPTIONS = subdir-objects
INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/lib/libTrie/include -I$(top_srcdir)/src
+INCLUDES += -I$(top_srcdir)/libsquid-compat
INCLUDES += @SQUID_CPPUNIT_INC@
TESTS=$(check_PROGRAMS)