1 #ifndef CONFIG_H_INCLUDED
2 #define CONFIG_H_INCLUDED
3 /*********************************************************************
5 * File : $Source: /cvsroot/ijbswa/current/acconfig.h,v $
7 * Purpose : This file should be the first thing included in every
8 * .c file. (Before even system headers). It contains
9 * #define statements for various features. It was
10 * introduced because the compile command line started
11 * getting ludicrously long with feature defines.
13 * Copyright : Written by and Copyright (C) 2001-2014 the
14 * Privoxy team. https://www.privoxy.org/
16 * Based on the Internet Junkbuster originally written
17 * by and Copyright (C) 1997 Anonymous Coders and
18 * Junkbusters Corporation. http://www.junkbusters.com
20 * This program is free software; you can redistribute it
21 * and/or modify it under the terms of the GNU General
22 * Public License as published by the Free Software
23 * Foundation; either version 2 of the License, or (at
24 * your option) any later version.
26 * This program is distributed in the hope that it will
27 * be useful, but WITHOUT ANY WARRANTY; without even the
28 * implied warranty of MERCHANTABILITY or FITNESS FOR A
29 * PARTICULAR PURPOSE. See the GNU General Public
30 * License for more details.
32 * The GNU General Public License should be included with
33 * this file. If not, you can view it at
34 * http://www.gnu.org/copyleft/gpl.html
35 * or write to the Free Software Foundation, Inc., 59
36 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
38 *********************************************************************/
43 * Version number - Major (X._._)
48 * Version number - Minor (_.X._)
53 * Version number - Point (_._.X)
58 * Version number, as a string
63 * Status of the code: "alpha", "beta" or "stable".
68 * Should pcre be statically built in instead of linkling with libpcre?
69 * (This is determined by configure depending on the availiability of
70 * libpcre and user preferences).
71 * Don't bother to change this here! Use configure instead.
73 #undef FEATURE_DYNAMIC_PCRE
76 * Should pcrs use pcre JIT compilation if it's supported?
78 #undef DISABLE_PCRE_JIT_COMPILATION
81 * Should pcrs be statically built in instead of linkling with libpcrs?
82 * (This is determined by configure depending on the availiability of
83 * libpcrs and user preferences).
84 * Don't bother to change this here! Use configure instead.
89 * Allows the use of an ACL to control access to the proxy by IP address.
94 * Allow Privoxy to use accf_http(9) if supported.
96 #undef FEATURE_ACCEPT_FILTER
99 * Enables the web-based configuration (actionsfile) editor. If you
100 * have a shared proxy, you might want to turn this off.
102 #undef FEATURE_CGI_EDIT_ACTIONS
105 * Locally redirect remote script-redirect URLs
107 #undef FEATURE_FAST_REDIRECTS
110 * Bypass filtering for 1 page only
112 #undef FEATURE_FORCE_LOAD
115 * Allow blocking using images as well as HTML.
116 * If you do not define this then everything is blocked as HTML.
118 #undef FEATURE_IMAGE_BLOCKING
121 * Use PNG instead of GIF for built-in images
123 #undef FEATURE_NO_GIFS
126 * Allow to shutdown Privoxy through the webinterface.
128 #undef FEATURE_GRACEFUL_TERMINATION
131 * Allow PCRE syntax in host patterns.
133 #undef FEATURE_PCRE_HOST_PATTERNS
136 * Gather extended statistics.
138 #undef FEATURE_EXTENDED_STATISTICS
141 * Allow filtering with scripts and programs.
143 #undef FEATURE_EXTERNAL_FILTERS
146 * Keep connections alive if possible.
148 #undef FEATURE_CONNECTION_KEEP_ALIVE
151 * Allow to share outgoing connections between incoming connections.
153 #undef FEATURE_CONNECTION_SHARING
156 * Use POSIX threads instead of native threads.
158 #undef FEATURE_PTHREAD
161 * Enables statistics function.
163 #undef FEATURE_STATISTICS
166 * Enable strptime() sanity checks.
168 #undef FEATURE_STRPTIME_SANITY_CHECKS
171 * Allow Privoxy to be "disabled" so it is just a normal non-blocking
172 * non-anonymizing proxy. This is useful if you're trying to access a
173 * blocked or broken site - just change the setting in the config file,
174 * or use the handy "Disable" menu option in the Windows GUI.
176 #undef FEATURE_TOGGLE
179 * Allows the use of trust files.
184 * Defined on Solaris only. Makes the system libraries thread safe.
189 * Defined on Solaris only. Without this, many important functions are not
190 * defined in the system headers.
192 #undef __EXTENSIONS__
196 * FIXME: Don't know what it does or why we need it.
197 * (presumably something to do with MultiThreading?)
201 /* If the (nonstandard and thread-safe) function gethostbyname_r
202 * is available, select which signature to use
204 #undef HAVE_GETHOSTBYNAME_R_6_ARGS
205 #undef HAVE_GETHOSTBYNAME_R_5_ARGS
206 #undef HAVE_GETHOSTBYNAME_R_3_ARGS
208 /* If the (nonstandard and thread-safe) function gethostbyaddr_r
209 * is available, select which signature to use
211 #undef HAVE_GETHOSTBYADDR_R_8_ARGS
212 #undef HAVE_GETHOSTBYADDR_R_7_ARGS
213 #undef HAVE_GETHOSTBYADDR_R_5_ARGS
215 /* Defined if you have gmtime_r and localtime_r with a signature
216 * of (struct time *, struct tm *)
219 #undef HAVE_LOCALTIME_R
221 /* Define to 'int' if <sys/socket.h> doesn't have it.
225 /* Define if pcre.h must be included as <pcre/pcre.h>
227 #undef PCRE_H_IN_SUBDIR
229 /* Define if pcreposix.h must be included as <pcre/pcreposix.h>
231 #undef PCREPOSIX_H_IN_SUBDIR
237 * FIXME: Don't know what it does or why we need it.
238 * (presumably something to do with ANSI Standard C?)
242 #endif /* ndef __STDC__ */
245 * Need to set up this define only for the Pthreads library for
246 * Win32, available from http://sources.redhat.com/pthreads-win32/
248 #if defined(FEATURE_PTHREAD) && defined(_WIN32)
250 #endif /* defined(FEATURE_PTHREAD) && defined(_WIN32) */
253 * BEOS does not currently support POSIX threads.
254 * This *should* be detected by ./configure, but let's be sure.
256 #if defined(FEATURE_PTHREAD) && defined(__BEOS__)
257 #error BEOS does not support pthread - please run ./configure again with "--disable-pthread"
259 #endif /* defined(FEATURE_PTHREAD) && defined(__BEOS__) */
262 * On OpenBSD and maybe also FreeBSD, gcc doesn't define the cpp
263 * symbol unix; it defines __unix__ and sometimes not even that:
265 #if ( defined(__unix__) || defined(__NetBSD__) ) && !defined(unix)
270 * It's too easy to accidentally use a Cygwin or MinGW32 version of config.h
271 * under VC++, and it usually gives many weird error messages. Let's make
272 * the error messages understandable, by bailing out now.
275 #error For MS VC++, please use vc_config_winthreads.h or vc_config_pthreads.h. You can usually do this by selecting the "Build", "Clean" menu option.
276 #endif /* def _MSC_VER */
278 #endif /* CONFIG_H_INCLUDED */