summaryrefslogtreecommitdiff
path: root/array-var-nginx-module-0.06/config
blob: 7f5ec72a20a0c4e7a0d929f0ae09ef0d26e941fa (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
if test -n "$ngx_module_link"; then
    if test -n "$NDK_SRCS"; then
        echo "found ngx_devel_kit for ngx_array_var; looks good."
    else
        echo "error: ngx_devel_kit is required to build ngx_array_var; please put it before ngx_array_var." 1>&2
        exit 1
    fi
else
    if echo $HTTP_MODULES | grep " ndk_http_module" > /dev/null; then
        echo "found ngx_devel_kit for ngx_array_var; looks good."
    else
        echo "error: ngx_devel_kit is required to build ngx_array_var; please put it before ngx_array_var." 1>&2
        exit 1
    fi
fi

ngx_addon_name=ngx_http_array_var_module

HTTP_ARRAY_VAR_SRCS="                                                       \
                    $ngx_addon_dir/src/ngx_http_array_var_module.c          \
                    $ngx_addon_dir/src/ngx_http_array_var_util.c            \
                    "

HTTP_ARRAY_VAR_DEPS="                                                       \
                    $ngx_addon_dir/src/ddebug.h                             \
                    $ngx_addon_dir/src/ngx_http_array_var_util.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_ARRAY_VAR_DEPS"
    ngx_module_srcs="$HTTP_ARRAY_VAR_SRCS"
    ngx_module_libs=

    . auto/module
else
    HTTP_MODULES="$HTTP_MODULES $ngx_addon_name"
    NGX_ADDON_SRCS="$NGX_ADDON_SRCS $HTTP_ARRAY_VAR_SRCS"
    NGX_ADDON_DEPS="$NGX_ADDON_DEPS $HTTP_ARRAY_VAR_DEPS"
fi

CFLAGS="$CFLAGS -DNDK_SET_VAR"