Permalink
Browse files

Merge pull request #18 from PeterTonoli/dynamic-module

nginx-eval-module can now be compiled as a dynamic module
  • Loading branch information...
vkholodkov committed Apr 27, 2016
2 parents d76c49a + 9169292 commit 0b4648538c34c67910181d4ac37f08ff4d7c0ab8
Showing with 13 additions and 2 deletions.
  1. +13 −2 config
View
15 config
@@ -1,3 +1,14 @@
ngx_addon_name=ngx_http_eval_module
-HTTP_MODULES="$HTTP_MODULES ngx_http_eval_module"
-NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_eval_module.c"
+
+if test -n "$ngx_module_link"; then
+ ngx_module_type=HTTP
+ ngx_module_name=ngx_http_eval_module
+ ngx_module_srcs="$ngx_addon_dir/ngx_http_eval_module.c"
+
+ . auto/module
+else
+ HTTP_MODULES="$HTTP_MODULES ngx_http_eval_module"
+ NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_eval_module.c"
+fi
+
+

0 comments on commit 0b46485

Please sign in to comment.