ngx_http_geoip2_module/config

31 lines
750 B
Text
Raw Normal View History

2014-01-31 00:00:34 +01:00
ngx_feature="MaxmindDB library"
ngx_feature_name=
ngx_feature_run=no
ngx_feature_incs="#include <maxminddb.h>"
ngx_feature_libs=-lmaxminddb
. auto/feature
if [ $ngx_found = yes ]; then
ngx_addon_name=ngx_http_geoip2_module
2016-02-10 21:43:08 +01:00
module_src="$ngx_addon_dir/ngx_http_geoip2_module.c"
if test -n "$ngx_module_link"; then
ngx_module_type=HTTP
ngx_module_name="$ngx_addon_name"
ngx_module_incs=
ngx_module_deps=
ngx_module_srcs="$module_src"
ngx_module_libs="$ngx_feature_libs"
. auto/module
else
HTTP_MODULES="$HTTP_MODULES $ngx_addon_name"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $module_src"
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
fi
2014-01-31 00:00:34 +01:00
else
cat << END
$0: error: the geoip2 module requires the maxminddb library.
END
exit 1
fi