-# Revision 1.135 2002/11/04 05:11:05 hal9
-# Just a clean up of overly verbose output from install/uninstall.
-#
-# Revision 1.134 2002/10/28 06:01:39 hal9
-# Make uninstall: cp -v problems on SF Solaris.
-#
-# Revision 1.133 2002/10/28 02:12:22 hal9
-# Make install/uninstall:
-# - More cleanup of variables
-# - Make the minimum requirement for root install, an available non-root GROUP.
-# If a privoxy user exists (and no other USER is specified), then the files
-# that require write access are installed as group owned by privoxy. FIXME:
-# There has to be a cleaner way to do this.
-# - Uninstall now saves configuration files to /tmp.
-#
-# Revision 1.132 2002/10/24 22:24:58 hal9
-# Make install: Minor clean up for variable handling.
-#
-# Revision 1.131 2002/10/23 07:00:21 agotneja
-# added a chmod on mkinstalldirs just before using it, otherwise it
-# will fail when running make for the first time.
-#
-# Revision 1.130 2002/10/22 05:49:14 hal9
-# Make install:
-# - /bin/sh on Solaris does not handle: ! test.
-# - Remove some unused doc variables.
-# - Make configs group writable.
-#
-# Revision 1.129 2002/10/20 07:15:12 hal9
-# Getting near the end (I hope) of install target updates:
-# - Rewrite RH init script to reflect configured values.
-# - Test for USER=root as well as UID=0
-# - Test for invalid group (probably needs more work).
-# - Add /usr to /usr/local test for when to install init scripts, etc.
-# - More testing on previous changes.
-#
-# Revision 1.128 2002/10/18 05:36:32 hal9
-# More install target fixes:
-# - Quick fix of log ownership on root install (lightly tested). If this goes
-# true to form, then the fix will break something else :(
-# - Fix what looks like was invalid user on Slack if root install and
-# we use an existing privoxy user. No way to test this.
-# See FIXMEs.
-#
-# Revision 1.127 2002/10/18 00:58:07 hal9
-# More install/uninstall/install-strip updates:
-# - Don't install gzipped man page (Solaris again).
-# - Don't overwrite existing config files, and install new versions as *.new.
-# Fix permissions/ownership here too.
-# - Better testing before removing directories.
-# - Some better messages during install, ie 'Preserving configs', etc.
-# - Better handling of install-strip to fix previous problem of trying to strip
-# init scripts.
-# - Crude test for valid USER in case is set on command line.
-# - Force immediate exit on some errors (eg invalid group).
-#
-# Revision 1.126 2002/10/16 05:38:00 hal9
-# More make install/uninstall updates:
-# -Make compatible with install-sh with does not support -b flag, and can only
-# handle one file at a time (sigh).
-# -Manually save existing config files, if they exist.
-# -Fix install-strip so does not try to strip init scripts.
-#
-# Revision 1.125 2002/10/15 05:53:34 hal9
-# A few more cleanups:
-# -use mkinstalldirs consistently.
-# -Install init script and logrotate only is prefix=/usr/local (installed to
-# system dir /etc instead of /usr/local...)
-# -Test for directory existence before removing to avoid misleading error
-# messages.
-#
-# Revision 1.124 2002/10/13 19:58:09 hal9
-# Hopefully, this is final updates for install and uninstall targets.
-# - Fix typo in chown syntax
-# - chmod on mkinstalldirs to make it executable (is there a better way?).
-# - Cleanup comments, and revert most of previous output cleanup changes.
-# - Include all HTML docs, since there are cross links between these.
-# - Improved group handling (still some potential problems, see FIXME).
-# - Update PHONY targets.
-# - Uninstall was not removing CONF and LOG destinations in some situations.
-# - Various other minor cleanups.
-#
-# Revision 1.123 2002/10/12 06:05:41 hal9
-# WIP: This is mostly to fix various problems encountered on SF CF Solaris
-# servers for the install target only. This did not handle /[^C]*, test -e, not
-# quoting within tests (ie [ `id $(USER)` = `id` ] needs quoting) in some
-# situations, and does not support id -u (with the id in $PATH, but there is
-# another...). Also, cleaned up output. Needs testing. I am unable to test the
-# root install stuff either. It installs now at least (not tested further).
-# A few other nits.
-#
-# Revision 1.122 2002/10/11 06:03:08 hal9
-# Really install FAQ this time, and not u-m in two locations. Include images
-# for u-m.
-#
-# Revision 1.120 2002/10/10 20:39:27 dessent
-#
-#
-# Fixes for Win32 GUI build (added "$(DIR_PRIVOXY_SRC)/" to dependencies list)
-#
-# Revision 1.119 2002/09/23 03:42:41 hal9
-# This is higuita's make install/uninstall patch. Needs testing please!!!
-#
-# Revision 1.118 2002/09/11 08:22:37 oes
-# Fixed path (C_HDRS are in src/ now)
-#
-# Revision 1.117 2002/09/06 23:33:35 hal9
-# Fix clobber for config.h and config.h.in are in src now.
-#
-# Revision 1.116 2002/09/06 05:22:57 hal9
-# Adapt make webserver target to 3.0 for pdf uploading.
-#
-# Revision 1.115 2002/09/05 19:13:04 hal9
-# Migrate Karstens make snapshot stuff (not tested).
-#
-# Revision 1.114 2002/09/05 11:58:30 oes
-# Synced in some changes fromm the stable branch:
-# From Revision 1.104.2.14 2002/08/10 11:19:37 oes:
-# - Add dependency: pcrs.o deps on config.h
-# Revision 1.104.2.9 2002/07/26 15:17:02 oes
-# - Added generation of default.action from defaul.action.master
-# - Deleted obsolete re_filterfile.txt generation
-#
-# Revision 1.113 2002/07/30 21:50:25 hal9
-# Add redhat-test target, and migrate the RPM_PACKAGEV stuff from 3.0 branch.
-#
-# Revision 1.112 2002/06/28 18:30:10 jongfoster
-# Fixing bugs compiling PCRE
-#
-# Revision 1.111 2002/06/05 00:26:21 hal9
-# Move all doc build stuff to doc/source/GNUmakefile, leaving a 'make dok'
-# target only in toplevel. Add DOC_STATUS variable so docs can be built without
-# touching sgml source.
-#
-# Revision 1.110 2002/06/04 14:51:48 jongfoster
-# Updating for new paths:
-# - Source files in src/
-# - Object files in obj/
-#
-# Revision 1.109 2002/05/28 09:16:15 oes
-# Added comment for -notoc kludge
-#
-# Revision 1.108 2002/05/28 03:56:08 hal9
-# make dok-index target for privoxy-index.html. Fix *bak dead soldiers in
-# doc/webserver.
-#
-# Revision 1.107 2002/05/27 23:26:33 mal0rd
-# Made doc-generation configuration automatic.
-# References to DB2HTML were removed, not used.
-# --with-docbook now only needed if in odd path.
-#
-# Revision 1.106 2002/05/26 04:55:11 mal0rd
-# Added debian-dist and debian-upload targets. Also documented usage.
-#
-# Revision 1.105 2002/05/25 22:48:19 hal9
-# Add -notoc to README build (per oes's dsl magic).
+# Revision 1.173 2008/06/18 18:28:42 fabiankeil
+# Remove PDF-related stuff.
+#
+# Revision 1.172 2008/06/17 16:16:08 fabiankeil
+# - Stop building text files nobody cares about.
+# - Update copyright year.
+#
+# Revision 1.171 2008/06/13 15:24:57 fabiankeil
+# Move previously inline'd Perl code for the config-file target
+# into a separate file, have it work with older perl releases,
+# clean it up a bit and fix the "underlining" code.
+#
+# Revision 1.170 2008/06/12 16:38:50 fabiankeil
+# Add third-level domain to URL in dok-get target.
+#
+# Revision 1.169 2008/06/09 17:28:31 fabiankeil
+# - Recommend https for releasing files.
+# - Fix a warning about datarootdir being ignored.
+#
+# Revision 1.168 2008/05/23 18:03:12 fabiankeil
+# - Shorten meta description inserted in dok-webserver
+# and dok-index target.
+# - In config-file target, unset LANG for w3m as we
+# might otherwise end up with multi-byte characters.
+#
+# Revision 1.167 2008/05/23 14:39:09 fabiankeil
+# Silence dok-user complaint about @# not being found.
+#
+# Revision 1.166 2008/05/23 14:04:57 fabiankeil
+# - Get config-file target working with more recent Perl
+# versions. The generated file is still messed up, though.
+# - Fix comment typo.
+#
+# Revision 1.165 2008/05/22 16:57:23 fabiankeil
+# Fix coffee machine.
+#
+# Revision 1.164 2008/05/22 10:26:26 fabiankeil
+# - Remove parsers.@OBJEXT@'s dependency on encode.h.
+# - Include Emacs backup files in tidy target again.
+#
+# Revision 1.163 2008/05/04 18:01:53 fabiankeil
+# Dependency fixes: cgisimple.c and filters.c depend on urlmatch.h.
+#
+# Revision 1.162 2008/03/30 13:31:42 fabiankeil
+# Add DESTDIR support for the uninstall target.
+#
+# Revision 1.161 2008/03/30 13:19:13 fabiankeil
+# Add DESTDIR support for the install target. Closes PR#1910612.
+# Patch by Radoslaw Zielinski with minor modifications.
+#
+# Revision 1.160 2008/03/27 18:27:19 fabiankeil
+# Remove kill-popups action.
+#
+# Revision 1.159 2008/03/21 11:13:53 fabiankeil
+# Only gather host information if it's actually needed.
+# Also move the code out of accept_connection() so it's less likely
+# to delay other incoming connections if the host is misconfigured.
+#
+# Revision 1.158 2007/12/11 21:29:25 fabiankeil
+# Fix dependency list for cgiedit.c.
+#
+# Revision 1.157 2007/12/10 02:28:02 hal9
+# Unset $LANG for text processing of docs so we get pure text.
+#
+# Revision 1.156 2007/11/15 03:17:43 hal9
+# Some workaround changes to the config file perl stuff and comments, which is
+# broken here all by itself on perl 5.8.8.
+#
+# Revision 1.155 2007/09/22 16:23:25 fabiankeil
+# Update copyright line.
+#
+# Revision 1.154 2007/02/07 11:52:40 fabiankeil
+# Fix suse-dist as described in BR#1654052.
+# (I didn't test it, but it's done the same
+# way in redhat-dist which is known to work).
+#
+# Revision 1.153 2007/01/07 07:36:36 joergs
+# Added AmigaOS4 support.
+#
+# Revision 1.152 2006/12/13 14:53:51 etresoft
+# Include any existing LDFLAGS environment when linking so that a MacOS X Universal Binary can be created.
+#
+# Revision 1.151 2006/11/30 01:08:55 hal9
+# Fix problem with variable declarations in the Slackware section. Thanks to higuita.
+#
+# Revision 1.150 2006/10/25 11:55:45 fabiankeil
+# Fix sed regexes for rewriting "confdir ." and "logdir .".
+# Thanks to Darel Henman for reporting this.
+#
+# Revision 1.149 2006/10/11 01:40:28 hal9
+# Apply patch from Neil McCalden to fix syntax issue.
+#
+# Revision 1.148 2006/09/26 10:57:58 hal9
+# Including Karsten's patch to fix make create-snapshot.
+#
+# Revision 1.147 2006/09/13 01:25:16 hal9
+# Make sure install forces in new default.action, default.filter, and
+# standard.filter. These are privoxy files, not user files.
+#
+# Revision 1.146 2006/09/08 23:57:19 hal9
+# User manual images are now user-manual doc directory, and fix make install
+# target accordingly.
+#
+# Revision 1.145 2006/09/08 02:32:00 hal9
+# Various changes to implement building and installing docs to be compatible
+# with the new "user-manual" settings in config from Roland. Docbook does not
+# seem to like dealing with more than one css file, so workaround that here.
+# Change 'make install' so it provides p_doc.css in the user-manual doc
+# directory so that functions well, and lastly modify 'make install' so that the
+# PATH is automatically set, and the 'user-manual' directive should done during
+# the install.
+#
+# Revision 1.144 2006/09/07 22:53:20 hal9
+# Make sure config sgml build related artifacts are cleaned out.
+#
+# Revision 1.143 2006/09/02 15:59:40 hal9
+# Add to code status to make install output.
+#
+# Revision 1.142 2006/08/29 01:46:24 hal9
+# Add user.filter to $CONFIGS.
+#
+# Revision 1.141 2006/08/12 03:54:37 david__schmidt
+# Windows service integration
+#
+# Revision 1.140 2006/07/18 14:48:45 david__schmidt
+# Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
+# with what was really the latest development (the v_3_0_branch branch)
+#
+# Revision 1.104.2.28 2004/06/10 17:06:05 hal9
+# Fix bug #959617, by moving TMPDIR var to create-snapshot target, which is the
+# only place it is used.
+#
+# Revision 1.104.2.27 2004/02/07 16:11:10 oes
+# Make clobber remove the autom4te.cache dir.
+# Closes BR #889300
+#
+# Revision 1.104.2.26 2004/01/31 16:32:25 oes
+# Adding a check for an htmldoc variant from the debian diff
+#
+# Revision 1.104.2.25 2004/01/31 01:15:33 oes
+# Fixed a typo; updated copyright notice
+#
+# Revision 1.104.2.24 2003/12/03 10:30:02 oes
+# - Added new dependency: actions.c -> ssplit.h
+# - Excluded PDF docs from src tarball
+#
+# Revision 1.104.2.23 2003/04/20 17:28:52 hal9
+# Strip trailing spaces from config-file generation, bug #724596.
+#
+# Revision 1.104.2.22 2003/03/28 03:32:01 hal9
+# Minor changes for Privoxy home page:
+# - Handle © more sanely
+# - include link to announce.txt
+# Also, disable 'make announce' target.
+#
+# Revision 1.104.2.21 2002/11/04 07:04:03 hal9
+# Catch up with main trunk install/uninstall. Quiet output, etc.
+#
+# Revision 1.104.2.20 2002/10/25 02:44:22 hal9
+# Port of make install, etc from main trunk. Needs testing! Add Slackware
+# support, and other related changes. Update related docs.
+#
+# Revision 1.104.2.19 2002/09/26 22:50:02 hal9
+# New user-manual examples in config-file are getting wrapped. Add warning.
+#
+# Revision 1.104.2.18 2002/08/23 12:22:40 oes
+# Added warning to broken install target
+#
+# Revision 1.104.2.17 2002/08/16 03:19:34 hal9
+# More (minor) cleanup of html before pdf processing to make some relative
+# links work as pdf -> pdf. Upload pdf as zip archive now.
+#
+# Revision 1.104.2.16 2002/08/14 16:43:27 hal9
+# Added pdf docs to make webserver target.
+#
+# Revision 1.104.2.15 2002/08/11 20:02:41 hal9
+# New targets for man page (make man) and pdf (make dok-pdf) targets.
+#
+# Revision 1.104.2.14 2002/08/10 11:19:37 oes
+# - Make -Ipcre (again) conditional on STATIC_PCRE
+# - $(RPMBUILD) -> $(RPM) for SuSE
+# - Add dependency: pcrs.o deps on config.h
+#
+# Revision 1.104.2.13 2002/08/07 15:13:54 hal9
+# Remove pdf2 target, and make it dok-shtml (single page html for pdf
+# conversion).
+#
+# Revision 1.104.2.12 2002/08/06 11:29:36 oes
+# Fixed detection/inclusion of pcre.h, which is in a pcre subdir on RH
+#
+# Revision 1.104.2.11 2002/07/30 19:38:11 hal9
+# Add redhat-test target for testing purposes only. Fix RPM_PACKAGEV to what
+# *I think* it was supposed to be (was breaking upload targets since it was
+# set to RPM_VERSION).
+#
+# Revision 1.104.2.10 2002/07/27 22:56:53 kick_
+# cleanups of the redhat-srpm target
+#
+# Revision 1.104.2.9 2002/07/26 15:17:02 oes
+# - Added generation of default.action from defaul.action.master
+# - Deleted obsolete re_filterfile.txt generation
+#
+# Revision 1.104.2.8 2002/07/12 10:04:32 kick_
+# added helper targets to the makefile. They shouldn't break anything, but
+# make my life a lot easier.
+#
+# The new rpm has been splitted into two parts, one for package installation/
+# removal, one for package building.
+# Therefore rpm -ta isn't a valid command anymore and needs to be replaced
+# by rpmbuild -ta (this is backwards compatible)
+#
+# Revision 1.104.2.7 2002/06/07 00:23:47 hal9
+# Fixing a quirk of man2html (on my system) that pulls punctuation into URLs,
+# thus breaking them completely.
+#
+# Revision 1.104.2.6 2002/06/02 03:26:25 hal9
+# Update CONFIG_FILES (ie update basic.action, etc), and also DOC_FILES (exclude
+# index.html and team/index.html)
+#
+# Revision 1.104.2.5 2002/05/30 15:35:01 hal9
+# This is more cleanup on the make config-file target. Most issues for
+# automatic generation are taken care of. There are still some problems
+# that require hand editing. Namely, some of the examples that are > 80 chars.
+#
+# Revision 1.104.2.4 2002/05/29 02:12:17 hal9
+# Ooops...forgot about perl -pi cygwin problem. Add -pi.bak. Also, the
+# new target is 'make config-file', _not_ make config.
+#
+# Revision 1.104.2.3 2002/05/29 02:05:48 hal9
+# 'make config' target added (WIP) for future generation of config file from
+# text in u-m so the two are in sync. New generated config, which requires
+# some hand editing for the time being.
+#
+# Revision 1.104.2.2 2002/05/28 02:32:55 hal9
+# New target 'make dok-index' for privoxy-index.html. Also, fixed *.bak files
+# not being cleaned up in doc/webserver.
+#
+# Revision 1.104.2.1 2002/05/26 17:19:34 hal9
+# Remove Table of Contents from readme with oes's dsl trick.