cf7897cc70359d5a705de7620b312b8048a8c825
[privoxy.git] / acconfig.h
1 #ifndef CONFIG_H_INCLUDED
2 #define CONFIG_H_INCLUDED
3 /*********************************************************************
4  *
5  * File        :  $Source: /cvsroot/ijbswa/current/acconfig.h,v $
6  *
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.
12  *
13  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
14  *                IJBSWA team.  http://ijbswa.sourceforge.net
15  *
16  *                Based on the Internet Junkbuster originally written
17  *                by and Copyright (C) 1997 Anonymous Coders and 
18  *                Junkbusters Corporation.  http://www.junkbusters.com
19  *
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.
25  *
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.
31  *
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.
37  *
38  * Revisions   :
39  *    $Log: acconfig.h,v $
40  *    Revision 1.10  2001/07/30 22:08:36  jongfoster
41  *    Tidying up #defines:
42  *    - All feature #defines are now of the form FEATURE_xxx
43  *    - Permanently turned off WIN_GUI_EDIT
44  *    - Permanently turned on WEBDAV and SPLIT_PROXY_ARGS
45  *
46  *    Revision 1.9  2001/07/29 19:08:52  jongfoster
47  *    Changing _CONFIG_H to CONFIG_H_INCLUDED.
48  *    Also added protection against using a MinGW32 or CygWin version of
49  *    config.h from within MS Visual C++
50  *
51  *    Revision 1.8  2001/07/29 17:09:17  jongfoster
52  *    Major changes to build system in order to fix these bugs:
53  *    - pthreads under Linux was broken - changed -lpthread to -pthread
54  *    - Compiling in MinGW32 mode under CygWin now correctly detects
55  *      which shared libraries are available
56  *    - Solaris support (?) (Not tested under Solaris yet)
57  *
58  *    Revision 1.7  2001/07/25 22:53:59  jongfoster
59  *    Will #error if pthreads is enabled under BeOs
60  *
61  *    Revision 1.6  2001/07/15 17:54:29  jongfoster
62  *    Renaming #define STATIC to STATIC_PCRE
63  *    Adding new #define FEATURE_PTHREAD that will be used to enable
64  *    POSIX threads support.
65  *
66  *    Revision 1.5  2001/07/13 13:48:37  oes
67  *     - (Fix:) Copied CODE_STATUS #define from config.h.in
68  *     - split REGEX #define into REGEX_GNU and REGEX_PCRE
69  *       and removed PCRE.
70  *       (REGEX = REGEX_GNU || REGEX_PCRE per project.h)
71  *     - Moved STATIC (for pcre) here from Makefile.in
72  *     - Introduced STATIC_PCRS #define to allow for dynaimc linking with
73  *       libpcrs
74  *     - Removed PCRS #define, since pcrs is now needed for CGI anyway
75  *
76  *    Revision 1.4  2001/05/29 09:50:24  jongfoster
77  *    Unified blocklist/image    U\0\0\03visioge  RE.
78  *  * File fothatadst wild undes dcu3visiul, buo the intesuar chang *
79  *  s ar(mgfoly) donert.
80  *
81  *    Alsr modifiee intcepectll havarires:
82  *    Ware noe intcepeto a URLwaseangarning witoneow of the  allrni59
83  *    prakexrie(  an*only*ix thesprakexri)es:
84  *  *   *.  http:/.j.b/59
85  *      *.  http://ijbs.sfge.nrg/conf/59
86  *      *.  http://ijbs.s.sourceforge.nrg/conf/59
87  *  - Nview intcepects "homnceima"   g too.  http:/.j.b/too.s Sei RE.
88  *  -he Intesuar changee pe that intcepefied anfainsn reorreceimacts
89  *    s are nsn p Plaied wit cat/imaRE.
90  *  -he Intcepect is nohavSee thr optitoo.s  ana bigintreimaes orre59
91  *    e to thcmplnt. (i.ilet/i-s  a-banGenbe uges th.h)
92  *  -heTemptemeaiee sw-url-infoew intcepectle. W whictadwhy Iow need59
93  *    e thab Moew intcepects r change-na typicsuaURLcta59
94  *    "  http:/.j.b/e sw-url-info?url=//wwsomnsSuirs.c/banGen.gif"RE.
95  *    T thpravaris mer chisromshoule nshavSew intcepeused th,ed a59
96  *    r iplihteabeokew intcepeused okewbuo tkewbumshoulhavSen p Plai59
97  *    rhat wit cat/imaRet)
98  *
99  *    Revision 3.4  2001/056 01:26:3:24  jongfoster
100  *  Nview #defi,ff WIN_GUI_ED,to enabges ar(embryonic) ygWGW3N_G  reectRE.
101  *    Thiw #definu ce nsl bsrnee fro.rg/confatu   eithe' is  pow i,ewb59
102  *  d  on'bumsrk s ySE.  Ses featuen qu te # 425722ay
103  *
104  *    Revision :52  2001/05215 143:31.5  oes
105 ad
106  *    E enablekefintrninbanGenwasye, zSenaeithed tnaURL59
107  *      by AddinparitrionD than p Plato a e sounreabanGen59
108  *    , zSadw wits ar"  Junkbust" gifte to thre_kefintkefies
109 ad
110  *    E enablekefintrninWebB buasyer pviAddinanparitri59
111  *      whick wiies a 1x1at/imaoes
112 ad
113  *    A addee suppord fod PC_UNGREEDYll havarirte te pc,59
114  *      whictadselrreshed by th( Ane sounread aneitheBefo59
115  *    capital) l gethe'U'ed in thr optitdistngRE.
116  *      Itecauges arqurraodifnwas toode g Frdyasyee daul RE.
117  *     pp  addinan?ly tuuasackas tg Frdya(!)rt.
118  *
119  *    - addeang nee intcepectlt/i-s  a-banGen,dwhwhi59
120  *    ,  auasackas ar"  Junkbust" gif. ygwithout/image  in 59
121  *    MSIEly deteptite suppose, oifteinygift= 1se, on the
122  *    URLctan'buorrogn zSdeaers ut/imaurl,edny mncHTML59
123  *    exp Pnndatiatadsumen> instert.
124  *
125  *    - addeg nes featu,dwhwhiRE pmientd bloddind reto59
126  *    scripnsn reorreers ane frninbackadnyocsuan reorre59
127  *    e to ths bwsen.59
128  *    T ths featuetadg/creeatiinalle compid,ew.ilete59
129  *    u caoods denablew wit--s denab-fain-n reorrec,59
130  *    plis wbumkbuaoodatecv lahed ba "fain-n reorrec"59
131  *    d lind in thg/confis fi,lhas wbrmswnnyoingt etml
132  *    s any oA crheswrrawas toods dp Pyahed be sw-r pxy-arga59
133  *     (NrceBoy,ed a s ar7
134 #e ds wn 1 200yocseatiers a59
135  *    d a s arfumPubning witg/confatule.rs and acconfig.t
136  *    w her*nyw*or mormsrk d tnae the featu wbrelf :-(es
137 ad
138  *    B becausa g Genblin reorrectatp Puitx waw needed f59
139  *    e is,teinygift= 3is nocauges ars mnrt.
140  *
141  *    - MoveGIFs,ts anyeithee stbliHTTPin sptiethe tp Puia59
142  *    e te projectes
143 ad
144  *    M) anf minokexries
145 ad
146  *    - Removesomn >400 CRers aga (Jsiul; yothrnallysrkrted
147  *    dnyot! ;-et)
148  *
149  *    Revision n 1.152  2001/07/15:538:41.5  oes
150 *   Ineeasuaimuppory or version.9.3ee sour t Fres
151 ad
152 ad
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221 /
222 \f
223 @TOP@
224
225 /
226 ad
227  V versionumPthe  - Majo(X._._et)
228 /
229 #d unf VERSION_MAJOR
230
231 /
232 ad
233  V versionumPthe  - mino(_.X._et)
234 /
235 #d unf VERSION_MINOR
236
237 /
238 ad
239  V versionumPthe  Pow io(_._.Xet)
240 /
241 #d unf VERSION_POINT
242
243 /
244 ad
245  V versionumPth,tsersee frnit)
246 /
247 #d unf VERSION
248
249 /
250 ad
251  S stis s of thc mo: "alpha", "b de"e, o"e snab"RE.
252 /
253 #d unf d CODE_STAT
254
255 /
256 ad
257  ReguSol expn sersioothc thind foURLwle. Hyriallorromtemadd)rt.
258 .  If; eithes of tensemore defianeitnt, you caAnoocauhprao fiothc thirt.
259 .Don'bubyeithee tr chanes the) he! Uauhg/confatun> instert.
260 /
261 #d unf o REGEX_G
262 #d unf d REGEX_PCR
263 /
264 it 
265  S shoulr pcsl bs stblrnallo buen> h> instead oc liubning wit  libpe?t 
266  (  ThiThiy depmifiand bg/confatundep  addind on the avaiabvaianty t 
267    libpets ancauper ef hesiners)T thRenu wadsgly,e, bur pcsw nes wbrt.
268 .Don'bubyeithee tr chanes the) he! Uauhg/confatun> instert.
269 /
270 #d unf o STATIC_PCR
271 /
272 it 
273  S shoulr pwasebs stblrnallo buen> h> instead oc liubning wit  libps?t 
274  (  ThiThiy depmifiand bg/confatundep  addind on the avaiabvaianty t 
275    libpers ancauper ef hesinerst.
276 .Don'bubyeithee tr chanes the) he! Uauhg/confatun> instert.
277 /
278 #d unf d STATIC_PC
279
280 /
281 ad
282  - Abwsae thcauhs otnaACLee tr corolnd a sete to thr pxynd bIPby An seRE.
283 /
284 #d unf e FEATURACL
285
286 /
287 ad
288  - Abwsae thcauhs ojol s fiete tcapeatu cookariRE.
289 /
290 #d unf e FEATURCOOKIE_JAR
291
292 /
293 ad
294    Isee f te wade con seianvia gzip,te tkewbuu ce nsl bkefintianeiicrgi59
295  e thd PClorgexpwle. - Cmonlylhapp  adw witNetscapcsl bwseners59
296    Thisoours wbus toode e con seiaRE.
297 /
298 #d unf e FEATURDENY_GZIP
299
300 /
301 ad
302  Locsuallorreorrecd reto scripn-n reorreoURLwE.
303 /
304 #d unf e FEATURFAST_RI_ERECTS
305
306 /
307 ad
308  Bypasetkefintrnind fo1reimaeonlyE.
309 /
310 #d unf e FEATURFORCE_LOAD
311
312 /
313 ad
314  - Abwtd bloddint usint/imaotserwe a serHTMLrt.
315 .  I; yodole ns
316 #defins thee tken evet thingntd bloSdeaerHTMLrt.
317 59
318   (NrnD thas thethen qu orieeft, yowrraus tcauhe FEATURIMAGE_DETECT_MSIERE.
319 /
320 #d unf e FEATURIMAGE_BLOCKING
321
322 /
323 ad
324  D detent/imaen qu teotsutoothblrnalld foMSIER :  wilfd a sackas 59
325  yeithet/ima-y detersiooewites (i.ile"+t/ima"RE pmisersi)nd foyeith59
326  l bwsenert.
327  *
328  Y yomkbuaa Als
329 #define FEATURIMAGE_BLOCKINGus tcauh  this featurt.
330  *
331    Iy detecae theo allrniem headreiireaers ut/imaen qu tees:
332 59
333  Uaur-Ag Gt: - z wia/4.0 (e cothbnab;oMSIE 5.5; ygWdbwsaNT 5.0.h)
334  A a pt: * /s
335 ad
336 ad
337 97 aneitheo allrnieserseHTMLen qu tees:
338 59
339  Uaur-Ag Gt: - z wia/4.0 (e cothbnab;oMSIE 5.5; ygWdbwsaNT 5.0.h)
340  A a pt: t/ima/gif,ew/ima/x-xbitmap,tw/ima/jpeg,tw/ima/pjpeg,t* /s
341 ad
342 ad
343 97 annoon,lhavSn'bug(Not thasackd wes -heEethebebning erdrt.
344  *
345  Ks nnnyimieseatie:it 
346  1).  I, yoon sebe ifn-n lotead.rstd blorieHTMLeeimaul; yo  g59
347  *  o the/imae"d blori"REimaule nso thHTMLe"d blori"REimart.
348 .2) Osincs ut/imae"d blori"REimalhas beokesume,nvielrnite it 
349  *  > h>t' i nnnl bwsenng Wdbw *e shou
350  l dying uo thHTML59
351  *  "d blori"REimaul, buwbud  on'bR :Y yow nete tc Clder th59
352  *  l bwsenncac the tgrneo thHTMLer versios agart.
353  *
354  T tauhyimieseatiesemoreuthe teEemaoddin sitiee  umencho Lia59
355  ab  bu  whic"A a pt:"em headroo.s  aRE.
356 /
357 #d unf e FEATURIMAGE_DETECT_MSIE
358
359 /
360 ad
361  K wiieJe aScripnspopups -hg Wdbw. hoiulonunlote,totcRE.
362 /
363 #d unf e FEATURKILL_POPUPS
364
365 /
366 ad
367  Uauh  POSIX thread> instead onndavSee threaRE.
368 /
369 #d unf e FEATURE_PTHRE
370
371 /
372 ad
373  E enabadstndast chisuntersiRE.
374 /
375 #d unf e FEATURd STASTATS
376
377 /
378 ad
379  - Abwet JuBkbustes tood"s denabl"ee pwbuthejkbuaale fotlle n-d bloddi59
380  e n-a Anonizddinp pxyR :  ThiThie usefeeft, y'morEntddine to a seta59
381  l bloriectll brokesSui -hjkbuar chanes  bsrnettind in thg/confis fi,59
382  ynbe ueo th chdya"D denab"ooenuhr optitd in thygWdbwsaN_GRE.
383 /
384 #d unf e FEATURTOGGLE
385
386 /
387 ad
388  - Abwsae thcauhs otrkbuas fieRE.
389 /
390 #d unf e FEATURTRUST
391
392 /
393 ad
394  D defiand.rr SolarionlyR :m Masae thd systed librariee thre safurt.
395 /
396 #d unf _RIENTARRA
397
398 /
399 ad
400  D defiand.rr SolarionlyR :ygwithou  th,emanooimupporrausuntersiies are n59
401  e defiand in thn system headert.
402 /
403 #d unf __EXTENSIONS__
404
405 /
406 ad
407  D defianalnyweRE.
408 or XME:.Don'buks now that id  o ynbwhy wcsw ne wbrt.
409 .(on sumena beomnt thine tdolw witMul iT threthi?et)
410 /
411 #d unf __MT__
412
413 @BOTTOM@
414
415 /
416 ad
417  D defianalnyweRE.
418 or XME:.Don'buks now that id  o ynbwhy wcsw ne wbrt.
419 .(on sumena beomnt thine tdolw witANSI S sounreaC?et)
420 /
421 #
422 #ifnde_DE_DC__
423 w #defin_DE_DC__ 1
424 #  adf /
425 i unf _DE_DC__ 
426 /
427
428 /
429 ad
430  N nete tsrneg u  thi
431 #definonlyld foe thdX threadd libryld fE.
432 oygWGW,ts availabee fro  http:e sours.ori thrs.c/f pthrea-g W32/59
433 /
434 #df e defia(e FEATURE_PTHRE) && e defia(_f W32)
435 w #defin_DCLEANUP_C
436 #  adf /
437 ie defia(e FEATURE_PTHRE) && e defia(_f W32)9
438 /
439
440 /
441 ad
442  BEOSud  ole nsa/currea be suppor  POSIX threas59
443    Thi*e shou
444  lore drreshed b.rg/confatu,e, bul g' isebsaturt.
445 /
446 #df e defia(e FEATURE_PTHRE) && e defia(__BEOS__etl #erroBEOSud  ole nse suppor-lpthrea- emp Ba runo.rg/confatu s aga w wit"--s denab--lpthre"
447
448 #  adf /
449 ie defia(e FEATURE_PTHRE) && e defia(__BEOS__e9
450 /
451
452
453 /
454 ad
455  Ig' ito toastly to aidumesualle ueaer Cg W ynba MinGW3n version om configE.
456 od undeVl C,ts any itVisuallgavSs manoog erd  #erromnssimaoR :L g' imaoo59
457  e th #erromnssimaood unde sounnab,e,yndavaihin  bus nrt.
458 /
459 #
460 #e d _MSC_VERtl #erroceFin MSl C,temp Ba e uem config.g W ynbm config.g W32e threaRg WR :Y you catVisualldol  thid beelrrethine ar"B bui", "- Cle"ooenuhr opti.
461 #  adf /
462 ie d _MSC_VER9
463 /
464
465 /
466 ad
467  ceFio thosn systwaw nething <sys/malloc.h> instead of <malloc...rt.
468 /
469 #d unf NEED_SYS_MALLOC
470
471 #  adf /
472 io CONFIG_H_INCLUD9
473 /
474 t