From 0684f76c40bfa2456e8132fab63e029124f3461f Mon Sep 17 00:00:00 2001 From: ajax16384 Date: Wed, 26 Feb 2020 18:38:43 +0300 Subject: [PATCH] add NGINX dynamic module support --- config | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/config b/config index adf6b54..48a5b2b 100644 --- a/config +++ b/config @@ -1,3 +1,11 @@ ngx_addon_name=ngx_http_untar_module -HTTP_MODULES="$HTTP_MODULES ngx_http_untar_module" -NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_untar_module.c" +if test -n "$ngx_module_link"; then + ngx_module_type=HTTP + ngx_module_name=ngx_http_untar_module + ngx_module_srcs="$ngx_addon_dir/ngx_http_untar_module.c" + + . auto/module +else + HTTP_MODULES="$HTTP_MODULES ngx_http_untar_module" + NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_untar_module.c" +fi \ No newline at end of file