Removed many options from the config file and into the
[privoxy.git] / config.h
1 /* config.h.  Generated automatically by configure.  */
2 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
3 #ifndef _CONFIG_H
4 #define _CONFIG_H
5 /*********************************************************************
6  *
7  * File        :  $Source: /cvsroot/ijbswa/current/config.h,v $
8  *
9  * Purpose     :  This file should be the first thing included in every
10  *                .c file.  (Before even system headers).  It contains 
11  *                #define statements for various features.  It was
12  *                introduced because the compile command line started
13  *                getting ludicrously long with feature defines.
14  *
15  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
16  *                IJBSWA team.  http://ijbswa.sourceforge.net
17  *
18  *                Based on the Internet Junkbuster originally written
19  *                by and Copyright (C) 1997 Anonymous Coders and 
20  *                Junkbusters Corporation.  http://www.junkbusters.com
21  *
22  *                This program is free software; you can redistribute it 
23  *                and/or modify it under the terms of the GNU General
24  *                Public License as published by the Free Software
25  *                Foundation; either version 2 of the License, or (at
26  *                your option) any later version.
27  *
28  *                This program is distributed in the hope that it will
29  *                be useful, but WITHOUT ANY WARRANTY; without even the
30  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
31  *                PARTICULAR PURPOSE.  See the GNU General Public
32  *                License for more details.
33  *
34  *                The GNU General Public License should be included with
35  *                this file.  If not, you can view it at
36  *                http://www.gnu.org/copyleft/gpl.html
37  *                or write to the Free Software Foundation, Inc., 59
38  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
39  *
40  * Revisions   :
41  *    $Log: config.h,v $
42  *    Revision 1.5  2001/05/26 00:28:36  jongfoster
43  *    Automatic reloading of config file.
44  *    Removed obsolete SIGHUP support (Unix) and Reload menu option (Win32).
45  *    Most of the global variables have been moved to a new
46  *    struct configuration_spec, accessed through csp->config->globalname
47  *    Most of the globals remaining are used by the Win32 GUI.
48  *
49  *    Revision 1.4  2001/05/25 22:17:28  jongfoster
50  *    Resurrecting these files which are required for the MS Visual C++
51  *    build only.
52  *
53  *    Revision 1.2  2001/05/20 01:21:20  jongfoster
54  *    Version 2.9.4 checkin.
55  *    - Merged popupfile and cookiefile, and added control over PCRS
56  *      filtering, in new "permissionsfile".
57  *    - Implemented LOG_LEVEL_FATAL, so that if there is a configuration
58  *      file error you now get a message box (in the Win32 GUI) rather
59  *      than the program exiting with no explanation.
60  *    - Made killpopup use the PCRS MIME-type checking and HTTP-header
61  *      skipping.
62  *    - Removed tabs from "config"
63  *    - Moved duplicated url parsing code in "loaders.c" to a new funcition.
64  *    - Bumped up version number.
65  *
66  *    Revision 1.1.1.1  2001/05/15 13:58:49  oes
67  *    Initial import of version 2.9.3 source tree
68  *
69  *
70  *********************************************************************/
71 \f
72
73 /* Define to empty if the keyword does not work.  */
74 /* #undef const */
75
76 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
77 /* #undef size_t */
78
79 /* Define if you have the ANSI C header files.  */
80 #define STDC_HEADERS 1
81
82 /*
83  * Version number - Major (X._._)
84  */
85 #define VERSION_MAJOR 2
86
87 /*
88  * Version number - Minor (_.X._)
89  */
90 #define VERSION_MINOR 9
91
92 /*
93  * Version number - Point (_._.X)
94  */
95 #define VERSION_POINT 4
96
97 /*
98  * Version number, as a string
99  */
100 #define VERSION "2.9.4"
101
102 /*
103  * Regular expression matching for URLs.  (Highly recommended).  If this is 
104  * not defined then you can ony use prefix matching.
105  */
106 #define REGEX 1
107
108 /*
109  * Allow JunkBuster to be "disabled" so it is just a normal non-blocking
110  * non-anonymizing proxy.  This is useful if you're trying to access a
111  * blocked or broken site - just change the setting in the config file
112  * and send a SIGHUP (UN*X), or use the handy "Disable" menu option (Windows
113  * GUI).
114  */
115 #define TOGGLE 1
116
117 /*
118  * Enables arbitrary content modification regexps
119  */
120 #define PCRS 1
121
122 /*
123  * If a stream is compressed via gzip (Netscape specific I think), then
124  * it cannot be modified with Perl regexps.  This forces it to be 
125  * uncompressed.
126  */
127 #define DENY_GZIP 1
128
129 /*
130  * Enables statistics function.
131  */
132 #define STATISTICS 1
133
134 /*
135  * Bypass filtering for 1 page only
136  */
137 #define FORCE_LOAD 1
138
139 /*
140  * Locally redirect remote script-redirect URLs
141  */
142 #define FAST_REDIRECTS 1
143
144 /*
145  * Split the show-proxy-args page into a page for each config file.
146  */
147 #define SPLIT_PROXY_ARGS 1
148
149 /*
150  * Kills JavaScript popups - window.open, onunload, etc.
151  */
152 #define KILLPOPUPS 1
153
154 /*
155  * Support for webDAV - e.g. so Microsoft Outlook can access HotMail e-mail
156  */
157 #define WEBDAV 1
158
159 /*
160  * Detect image requests automatically for MSIE.  Will fall back to
161  * other image-detection methods (i.e. "+image" permission) for other
162  * browsers.
163  *
164  * You must also define IMAGE_BLOCKING to use this feature.
165  *
166  * It detects the following header pair as an image request:
167  *
168  * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
169  * Accept: * / *
170  *
171  * And the following as a HTML request:
172  *
173  * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
174  * Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, * / *
175  *
176  * And no, I haven't got that backwards - IE is being wierd.
177  *
178  * Known limitations: 
179  * 1) If you press shift-reload on a blocked HTML page, you get
180  *    the image "blocked" page, not the HTML "blocked" page.
181  * 2) Once an image "blocked" page has been sent, viewing it 
182  *    in it's own browser window *should* bring up the HTML
183  *    "blocked" page, but it doesn't.  You need to clear the 
184  *    browser cache to get the HTML version again.
185  *
186  * These limitations are due to IE making inconsistent choices
187  * about which "Accept:" header to send.
188  */
189 #define DETECT_MSIE_IMAGES 1
190
191 /*
192  * Allow blocking using images as well as HTML.
193  * If you do not define this then everything is blocked as HTML.
194  *
195  * Note that this is required if you want to use DETECT_MSIE_IMAGES.
196  */
197 #define IMAGE_BLOCKING 1
198
199 /*
200  * Allows the use of ACL files to control access to the proxy by IP address.
201  */
202 #define ACL_FILES 1
203
204 /*
205  * Allows the use of trust files.
206  */
207 #define TRUST_FILES 1
208
209 /*
210  * Allows the use of jar files to capture cookies.
211  */
212 #define JAR_FILES 1
213
214 /*
215  * Use PCRE rather than GNU Regex
216  */
217 #define PCRE 1
218
219 /* Define if you have the bcopy function.  */
220 #define HAVE_BCOPY 1
221
222 /* Define if you have the memmove function.  */
223 #define HAVE_MEMMOVE 1
224
225 /* Define if you have the strerror function.  */
226 #define HAVE_STRERROR 1
227
228 #endif /* _CONFIG_H */