Skip to content

Commit 9a0e22f

Browse files
committed
copy from tengine 2.3.2.
1 parent 56f4925 commit 9a0e22f

8 files changed

+2533
-0
lines changed

config

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
if [ "$ngx_module_link" = DYNAMIC ]; then
2+
cat << END
3+
$0: error: ngx_multi_upstream not support build as a dynamic module.
4+
END
5+
exit 1
6+
fi
7+
8+
ngx_addon_name=ngx_http_multi_upstream_module
9+
HTTP_MODULES="$HTTP_MODULES ngx_http_multi_upstream_module"
10+
CORE_DEPS="$CORE_DEPS $ngx_addon_dir/ngx_multi_upstream_module.h $ngx_addon_dir/ngx_http_multi_upstream_module.h $ngx_addon_dir/ngx_http_multi_upstream.c"
11+
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_multi_upstream_module.c $ngx_addon_dir/ngx_multi_upstream_module.c"
12+
HTTP_INCS="$HTTP_INCS $ngx_addon_dir"
13+
14+
if [ $STREAM != NO ]; then
15+
ngx_module_name=ngx_stream_multi_upstream_module
16+
ngx_module_type=STREAM
17+
ngx_module_link=ADDON
18+
ngx_module_incs=$ngx_addon_dir
19+
ngx_module_deps=$ngx_addon_dir/ngx_stream_multi_upstream_module.h
20+
ngx_module_srcs=$ngx_addon_dir/ngx_stream_multi_upstream_module.c
21+
22+
if [ $STREAM = DYNAMIC ]; then
23+
ngx_module_link=DYNAMIC
24+
else
25+
ngx_module_link=ADDON
26+
fi
27+
28+
. auto/module
29+
fi
30+
31+
have=T_NGX_MULTI_UPSTREAM . auto/have

0 commit comments

Comments
 (0)