]> git.ipfire.org Git - thirdparty/squid.git/blame - src/cf_gen_defines
Feature Request #601: add request_header_access and reply_header_access
[thirdparty/squid.git] / src / cf_gen_defines
CommitLineData
6b53c392 1#!/usr/bin/awk -f
2BEGIN {
3 print "/* Generated automatically from cf.data.pre"
4 print " * DO NOT EDIT"
5 print "*/"
c193c972 6 print "struct { const char *name; const char *enable; int defined;} defines[] = {"
0c2bd4fa 7 define["DELAY_POOLS"]="--enable-delay-pools"
6b53c392 8 define["HTTP_VIOLATIONS"]="--enable-http-violations"
9 define["SQUID_SNMP"]="--enable-snmp"
10 define["USE_CACHE_DIGESTS"]="--enable-cache-digests"
11 define["USE_DNSSERVERS"]="--disable-internal-dns"
12 define["!USE_DNSSERVERS"]="--enable-internal-dns"
13 define["USE_HTCP"]="--enable-htcp"
14 define["USE_ICMP"]="--enable-icmp"
15 define["USE_IDENT"]="--enable-ident-lookups"
06221e61 16 define["USE_REFERER_LOG"]="--enable-referer-log"
17 define["USE_SSL"]="--enable-ssl"
18 define["USE_UNLINKD"]="--enable-unlinkd"
6b53c392 19 define["USE_USERAGENT_LOG"]="--enable-useragent-log"
20 define["USE_WCCP"]="--enable-wccp"
21}
22/^IFDEF:/ {
de701c63 23 if (define[$2] != "")
24 DEFINE=define[$2]
25 else
26 DEFINE="-D" $2
27 print "{\"" $2 "\", \"" DEFINE "\", "
6b53c392 28 print "#if " $2
29 print "1"
30 print "#else"
31 print "0"
32 print "#endif"
33 print "},"
34}
35END {
e6ccf245 36 print "{(char const *)0L, (char const *)0L, 0}};"
6b53c392 37}