_ngx_zstd_root=$ngx_addon_dir

# Discover libzstd once (sets ngx_zstd_opt_I / ngx_zstd_opt_L, appends to
# NGX_LD_OPT, emits the version advisory). Both module configs below reuse the
# result instead of repeating the probe.
. $_ngx_zstd_root/auto/zstd

ngx_addon_dir=$_ngx_zstd_root/filter
. $_ngx_zstd_root/filter/config

ngx_addon_dir=$_ngx_zstd_root/static
. $_ngx_zstd_root/static/config

ngx_addon_dir=$_ngx_zstd_root
ngx_addon_name=ngx_zstd

