-
Notifications
You must be signed in to change notification settings - Fork 3
/
config
61 lines (51 loc) · 1.58 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
ngx_addon_name=ngx_http_stomp_module
HTTP_STOMP_SRCS="$ngx_addon_dir/ngx_http_stomp_module.c \
"
HTTP_STOMP_DEPS="$NGX_ADDON_DEPS \
$ngx_addon_dir/ngx_http_stomp_module.h \
"
# with c-stomp feature
ngx_feature="ngx_http_stomp_c_stomp"
ngx_feature_name="NGX_HAVE_HTTP_STOMP_C_STOMP"
ngx_feature_run=no
ngx_feature_incs="#include <cstomp.h>"
ngx_feature_path=
ngx_feature_libs="-lcstomp"
ngx_feature_exit_if_not_found=yes
ngx_feature_test="cstmp_session_t *consuming_sess;cstmp_frame_t *consume_fr;"
. auto/feature
if [ $ngx_found = yes ]; then
have=NGX_HTTP_STOMP_C_STOMP . auto/have
else
echo "c-stomp library not found, you need to install c-stomp library via 'https://github.com/Taymindis/c-stomp'"
echo
exit 1
fi
ngx_feature="ngx_http_stomp_c_stomp_shr_conn"
ngx_feature_name="NGX_HAVE_HTTP_STOMP_C_STOMP_SHR_CONN"
ngx_feature_run=no
ngx_feature_incs="#include <cstomp.h>"
ngx_feature_path=
ngx_feature_libs="-lcstomp"
ngx_feature_exit_if_not_found=yes
ngx_feature_test="cstmp_session_t sess;sess.read_lock=0;"
. auto/feature
if [ $ngx_found = yes ]; then
have=NGX_HTTP_STOMP_C_STOMP_SHR_CONN . auto/have
else
echo "cstomp is running non sharing connection feature"
echo
fi
if test -n "$ngx_module_link"; then
ngx_module_type=HTTP
ngx_module_name=$ngx_addon_name
ngx_module_deps="$HTTP_STOMP_DEPS"
ngx_module_srcs="$HTTP_STOMP_SRCS"
ngx_module_libs="-lcstomp"
. auto/module
else
HTTP_MODULES="$HTTP_MODULES ngx_http_stomp_module"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $HTTP_STOMP_DEPS"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $HTTP_STOMP_SRCS"
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
fi