summaryrefslogtreecommitdiff
path: root/srcache-nginx-module-0.33/config
blob: 11d21b507b0540ee82da449a6beaa00fd87b8d97 (plain)
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
ngx_addon_name=ngx_http_srcache_filter_module

HTTP_SRCACHE_FILTER_SRCS="                                                  \
                        $ngx_addon_dir/src/ngx_http_srcache_filter_module.c \
                        $ngx_addon_dir/src/ngx_http_srcache_util.c          \
                        $ngx_addon_dir/src/ngx_http_srcache_var.c           \
                        $ngx_addon_dir/src/ngx_http_srcache_store.c         \
                        $ngx_addon_dir/src/ngx_http_srcache_fetch.c         \
                        $ngx_addon_dir/src/ngx_http_srcache_headers.c       \
                        "

HTTP_SRCACHE_FILTER_DEPS="                                                  \
                        $ngx_addon_dir/src/ddebug.h                         \
                        $ngx_addon_dir/src/ngx_http_srcache_filter_module.h \
                        $ngx_addon_dir/src/ngx_http_srcache_util.h          \
                        $ngx_addon_dir/src/ngx_http_srcache_var.h           \
                        $ngx_addon_dir/src/ngx_http_srcache_fetch.h         \
                        $ngx_addon_dir/src/ngx_http_srcache_store.h         \
                        $ngx_addon_dir/src/ngx_http_srcache_headers.h       \
                        "

# nginx 1.17.0+ unconditionally enables the postpone filter
if [ ! -z "$HTTP_POSTPONE" ]; then
    # nginx won't have HTTP_POSTPONE_FILTER_MODULE & HTTP_POSTPONE_FILTER_SRCS
    # defined since 1.9.11
    if [ -z "$HTTP_POSTPONE_FILTER_MODULE" ]; then
        HTTP_POSTPONE_FILTER_MODULE=ngx_http_postpone_filter_module
        HTTP_POSTPONE_FILTER_SRCS=src/http/ngx_http_postpone_filter_module.c
    fi

    # This module depends upon the postpone filter being activated
    if [ "$HTTP_POSTPONE" != YES ]; then
        HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_POSTPONE_FILTER_MODULE"
        HTTP_SRCS="$HTTP_SRCS $HTTP_POSTPONE_FILTER_SRCS"
        HTTP_POSTPONE=YES
    fi
fi

if [ -n "$ngx_module_link" ]; then
    ngx_module_type=HTTP_AUX_FILTER
    ngx_module_name=$ngx_addon_name
    ngx_module_srcs="$HTTP_SRCACHE_FILTER_SRCS"
    ngx_module_deps="$HTTP_SRCACHE_FILTER_DEPS"

    . auto/module
else
    HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES $ngx_addon_name"
    NGX_ADDON_SRCS="$NGX_ADDON_SRCS $HTTP_SRCACHE_FILTER_SRCS"
    NGX_ADDON_DEPS="$NGX_ADDON_DEPS $HTTP_SRCACHE_FILTER_DEPS"
fi