changeset 1:3cdd7ed86819

Support dynamic loading.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 09 Nov 2016 12:42:21 +0300
parents 9777bf89da35
children aee676aa6c1f
files config
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/config	Tue Jun 29 22:08:53 2010 +0400
+++ b/config	Wed Nov 09 12:42:21 2016 +0300
@@ -3,8 +3,23 @@
 
 ngx_addon_name="ngx_http_delay_module"
 
+if test -n "$ngx_module_link"; then
+
+ngx_module_type=HTTP
+ngx_module_name=ngx_http_delay_module
+ngx_module_incs=
+ngx_module_deps=
+ngx_module_srcs=$ngx_addon_dir/ngx_http_delay_module.c
+ngx_module_libs=
+
+. auto/module
+
+else
+
 HTTP_MODULES="$HTTP_MODULES \
 		ngx_http_delay_module"
 
 NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
 		$ngx_addon_dir/ngx_http_delay_module.c"
+
+fi