Skip to content

Commit 396137c

Browse files
committed
Merge pull request anomalizer#20 from sbagmeijer/master
Dynamic Module support.
2 parents 1c4d97d + 42eeda5 commit 396137c

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

config

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
ngx_addon_name=ngx_http_aws_auth
2-
HTTP_MODULES="$HTTP_MODULES ngx_http_aws_auth_module"
3-
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_aws_auth.c"
4-
CORE_LIBS="$CORE_LIBS -lssl"
2+
3+
if test -n "$ngx_module_link"; then
4+
ngx_module_type=HTTP
5+
ngx_module_name=ngx_http_aws_auth
6+
ngx_module_incs=
7+
ngx_module_deps=
8+
ngx_module_srcs="$ngx_addon_dir/ngx_http_aws_auth.c"
9+
ngx_module_libs="$CORE_LIBS -lssl"
10+
11+
. auto/module
12+
else
13+
HTTP_MODULES="$HTTP_MODULES ngx_http_aws_auth_module"
14+
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_aws_auth.c"
15+
CORE_LIBS="$CORE_LIBS -lssl"
16+
fi

0 commit comments

Comments
 (0)