diff --git a/config b/config index 5dfc5ee..154c450 100644 --- a/config +++ b/config @@ -1,3 +1,12 @@ ngx_addon_name=ngx_http_upstream_jdomain_module -HTTP_MODULES="$HTTP_MODULES ngx_http_upstream_jdomain_module" -NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_upstream_jdomain.c" + +if test -n "$ngx_module_link"; then + ngx_module_type=HTTP + ngx_module_name=ngx_http_upstream_jdomain_module + ngx_module_srcs="$ngx_addon_dir/ngx_http_upstream_jdomain.c" + + . auto/module +else + HTTP_MODULES="$HTTP_MODULES ngx_http_upstream_jdomain_module" + NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_upstream_jdomain.c" +fi \ No newline at end of file