-
Notifications
You must be signed in to change notification settings - Fork 22
/
config
43 lines (34 loc) · 1.08 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
ngx_addon_name=ngx_json_log_module
ngx_module_incs=$ngx_addon_dir/src
NGINX_VERSION=`grep version src/core/nginx.h | sed 's/#define nginx_version *//;'`
CORE_INCS="$CORE_INCS $ngx_module_incs"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/src/ngx_http_json_log_module.c"
STREAM_MODULES="$STREAM_MODULES ngx_stream_json_log_module"
HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_json_log_module"
#
# rdkafka
#
ngx_feature="librdkafka"
ngx_feature_name="NGX_HAVE_LIBRDKAFKA"
ngx_feature_run=no
ngx_feature_incs="#include <librdkafka/rdkafka.h>"
ngx_feature_path=
ngx_feature_libs="-lrdkafka"
ngx_feature_test="rd_kafka_new(RD_KAFKA_PRODUCER, NULL, NULL, 0);"
. auto/feature
if [ $ngx_found = yes ]; then
echo " + ngx_json_log: kafka support"
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
fi
CORE_LIBS="$CORE_LIBS -ljansson"
have_stream="0"
case $NGX_CONFIGURE in
*"--with-stream"*)
STREAM_MODULES="$STREAM_MODULES ngx_stream_json_log_module";
echo " + ngx_json_log: stream support"
have_stream="1"
;;
esac
have="NGX_HAVE_STREAM"
value=$have_stream
. auto/define