-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathconfig
45 lines (39 loc) · 1.65 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
if test -n "$ngx_module_link"; then
if test -n "$NDK_SRCS"; then
echo "found ngx_devel_kit for ngx_encrypted_session; looks good."
else
echo "error: ngx_devel_kit is required to build ngx_encrypted_session; please put it before ngx_encrypted_session." 1>&2
exit 1
fi
else
if echo $HTTP_MODULES | grep " ndk_http_module" > /dev/null; then
echo "found ngx_devel_kit for ngx_encrypted_session; looks good."
else
echo "error: ngx_devel_kit is required to build ngx_encrypted_session; please put it before ngx_encrypted_session." 1>&2
exit 1
fi
fi
ngx_addon_name=ngx_http_encrypted_session_module
HTTP_ENCRYPTED_SESSION_SRCS=" \
$ngx_addon_dir/src/ngx_http_encrypted_session_module.c \
$ngx_addon_dir/src/ngx_http_encrypted_session_cipher.c \
"
HTTP_ENCRYPTED_SESSION_DEPS=" \
$ngx_addon_dir/src/ddebug.h \
$ngx_addon_dir/src/ngx_http_encrypted_session_cipher.h \
"
if test -n "$ngx_module_link"; then
ngx_module_type=HTTP
ngx_module_name=$ngx_addon_name
ngx_module_incs=
ngx_module_deps="$HTTP_ENCRYPTED_SESSION_DEPS"
ngx_module_srcs="$HTTP_ENCRYPTED_SESSION_SRCS"
ngx_module_libs=
. auto/module
else
HTTP_MODULES="$HTTP_MODULES $ngx_addon_name"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $HTTP_ENCRYPTED_SESSION_SRCS"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $HTTP_ENCRYPTED_SESSION_DEPS"
fi
CFLAGS="$CFLAGS -DNDK_SET_VAR"
#CORE_LIBS="$CORE_LIBS -lssl"