forked from grahamedgecombe/nginx-ct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
107 lines (94 loc) · 4.02 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Copyright (c) 2015-2017 Graham Edgecombe <[email protected]>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
ngx_addon_name=ngx_ssl_ct_module
found_any=no
if test -n "$ngx_module_link"; then
ngx_module_type=CORE
ngx_module_name=ngx_ssl_ct_module
ngx_module_deps="$ngx_addon_dir/ngx_ssl_ct_module.h"
ngx_module_srcs="$ngx_addon_dir/ngx_ssl_ct_module.c"
ngx_module_libs=OPENSSL
ngx_module_link=ADDON
. auto/module
have=NGX_SSL_CT . auto/have
if [ $HTTP_SSL = YES ]; then
ngx_module_type=HTTP
ngx_module_name=ngx_http_ssl_ct_module
ngx_module_deps="$ngx_addon_dir/ngx_ssl_ct_module.h"
ngx_module_srcs="$ngx_addon_dir/ngx_http_ssl_ct_module.c"
ngx_module_libs=OPENSSL
ngx_module_link=ADDON
ngx_module_order="ngx_http_ssl_module ngx_ssl_ct_module $ngx_module_name"
. auto/module
have=NGX_HTTP_SSL_CT . auto/have
found_any=yes
fi
if [ $MAIL_SSL = YES ]; then
ngx_module_type=MAIL
ngx_module_name=ngx_mail_ssl_ct_module
ngx_module_deps="$ngx_addon_dir/ngx_ssl_ct_module.h"
ngx_module_srcs="$ngx_addon_dir/ngx_mail_ssl_ct_module.c"
ngx_module_libs=OPENSSL
ngx_module_order="ngx_mail_ssl_module ngx_ssl_ct_module $ngx_module_name"
. auto/module
have=NGX_MAIL_SSL_CT . auto/have
found_any=yes
fi
if [ $STREAM_SSL = YES ]; then
ngx_module_type=STREAM
ngx_module_name=ngx_stream_ssl_ct_module
ngx_module_deps="$ngx_addon_dir/ngx_ssl_ct_module.h"
ngx_module_srcs="$ngx_addon_dir/ngx_stream_ssl_ct_module.c"
ngx_module_libs=OPENSSL
ngx_module_order="ngx_stream_ssl_module ngx_ssl_ct_module $ngx_module_name"
. auto/module
have=NGX_STREAM_SSL_CT . auto/have
found_any=yes
fi
else
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $ngx_addon_dir/ngx_ssl_ct_module.h"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_ssl_ct_module.c"
CORE_MODULES="$CORE_MODULES ngx_ssl_ct_module"
have=NGX_SSL_CT . auto/have
if [ $HTTP_SSL = YES ]; then
HTTP_MODULES="$HTTP_MODULES ngx_http_ssl_ct_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_ssl_ct_module.c"
found_any=yes
have=NGX_HTTP_SSL_CT . auto/have
fi
if [ $MAIL_SSL = YES ]; then
# XXX: we have to use MAIL_SSL_MODULE instead of MAIL_MODULES here such that
# ngx_mail_ssl_ct_module is started *after* ngx_mail_ssl_module
MAIL_SSL_MODULE="$MAIL_SSL_MODULE ngx_mail_ssl_ct_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_mail_ssl_ct_module.c"
found_any=yes
have=NGX_MAIL_SSL_CT . auto/have
fi
if [ $STREAM_SSL = YES ]; then
# XXX: we have to use STREAM_SSL_MODULE instead of STREAM_MODULES here such
# that ngx_stream_ssl_ct_module is started *after* ngx_stream_ssl_module
STREAM_SSL_MODULE="$STREAM_SSL_MODULE ngx_stream_ssl_ct_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_stream_ssl_ct_module.c"
found_any=yes
have=NGX_STREAM_SSL_CT . auto/have
fi
fi
if [ $found_any = no ]; then
echo
echo "$0: error: nginx-ct requires at least one of the following sets of flags:"
echo " --with-http_ssl_module"
echo " --with-mail --with-mail_ssl_module"
echo " --with-stream --with-stream_ssl_module"
exit 1
fi