- Enabled filtering banners by size rather than URL
[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.1.1.1  2001/05/15 13:58:49  oes
43  *    Initial import of version 2.9.3 source tree
44  *
45  *
46  *********************************************************************/
47 \f
48
49 /* Define to empty if the keyword does not work.  */
50 /* #undef const */
51
52 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
53 /* #undef size_t */
54
55 /* Define if you have the ANSI C header files.  */
56 #define STDC_HEADERS 1
57
58 /*
59  * Version number - Major (X._._)
60  */
61 #define VERSION_MAJOR 2
62
63 /*
64  * Version number - Minor (_.X._)
65  */
66 #define VERSION_MINOR 9
67
68 /*
69  * Version number - Point (_._.X)
70  */
71 #define VERSION_POINT 4
72
73 /*
74  * Version number, as a string
75  */
76 #define VERSION "2.9.4"
77
78 /*
79  * Regular expression matching for URLs.  (Highly recommended).  If this is 
80  * not defined then you can ony use prefix matching.
81  */
82 #define REGEX 1
83
84 /*
85  * Allow JunkBuster to be "disabled" so it is just a normal non-blocking
86  * non-anonymizing proxy.  This is useful if you're trying to access a
87  * blocked or broken site - just change the setting in the config file
88  * and send a SIGHUP (UN*X), or use the handy "Disable" menu option (Windows
89  * GUI).
90  */
91 #define TOGGLE 1
92
93 /*
94  * Enables arbitrary content modification regexps
95  */
96 #define PCRS 1
97
98 /*
99  * If a stream is compressed via gzip (Netscape specific I think), then
100  * it cannot be modified with Perl regexps.  This forces it to be 
101  * uncompressed.
102  */
103 #define DENY_GZIP 1
104
105 /*
106  * Enables statistics function.
107  */
108 #define STATISTICS 1
109
110 /*
111  * Bypass filtering for 1 page only
112  */
113 #define FORCE_LOAD 1
114
115 /*
116  * Split the show-proxy-args page into a page for each config file.
117  */
118 #define SPLIT_PROXY_ARGS 1
119
120 /*
121  * Kills JavaScript popups - window.open, onunload, etc.
122  */
123 #define KILLPOPUPS 1
124
125 /*
126  * Support for webDAV - e.g. so Microsoft Outlook can access HotMail e-mail
127  */
128 #define WEBDAV 1
129
130 /*
131  * Detect image requests automatically for MSIE.  Will fall back to
132  * other image-detection methods (i.e. USE_IMAGE_LIST) for other
133  * browsers.
134  *
135  * It detects the following header pair as an image request:
136  *
137  * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
138  * Accept: * / *
139  *
140  * And the following as a HTML request:
141  *
142  * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
143  * Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, * / *
144  *
145  * And no, I haven't got that backwards - IE is being wierd.
146  *
147  * Known limitations: 
148  * 1) If you press shift-reload on a blocked HTML page, you get
149  *    the image "blocked" page, not the HTML "blocked" page.
150  * 2) Once an image "blocked" page has been sent, viewing it 
151  *    in it's own browser window *should* bring up the HTML
152  *    "blocked" page, but it doesn't.  You need to clear the 
153  *    browser cache to get the HTML version again.
154  *
155  * These limitations are due to IE making inconsistent choices
156  * about which "Accept:" header to send.
157  */
158 #define DETECT_MSIE_IMAGES 1
159
160 /*
161  * Use image list to detect images.
162  * If you do not define this then everything is treated as HTML.
163  *
164  * Whatever the setting of this value, DETECT_MSIE_IMAGES will 
165  * override it for people using Internet Explorer.
166  */
167 #define USE_IMAGE_LIST 1
168
169 /*
170  * Allows the use of ACL files to control access to the proxy by IP address.
171  */
172 #define ACL_FILES 1
173
174 /*
175  * Allows the use of trust files.
176  */
177 #define TRUST_FILES 1
178
179 /*
180  * Allows the use of jar files to capture cookies.
181  */
182 #define JAR_FILES 1
183
184 /*
185  * Use PCRE rather than GNU Regex
186  */
187 #define PCRE 1
188
189 /* Define if you have the bcopy function.  */
190 #define HAVE_BCOPY 1
191
192 /* Define if you have the memmove function.  */
193 #define HAVE_MEMMOVE 1
194
195 /* Define if you have the strerror function.  */
196 #define HAVE_STRERROR 1
197
198 #endif /* _CONFIG_H */