summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2020-10-30 10:28:28 +0100
committerGitHub <noreply@github.com>2020-10-30 10:28:28 +0100
commit593e1b6dbc6c979955e503d431d32c0dce1a2e09 (patch)
treea38bfeef83a57bd3922b65dd23dacc3dd5708ff3 /daemon
parent2e2a855935fce6ad9025e81ed479bdbc883d197d (diff)
allows use of system libwebsockets instead of bundled one (#9984)
* allows usage of system libwebsockets * fixes problems that were preventing ACLK to work with LWS `4.1.` * add LWS info to buildinfo Co-authored-by: Austin S. Hemmelgarn <austin@netdata.cloud>
Diffstat (limited to 'daemon')
-rw-r--r--daemon/buildinfo.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/daemon/buildinfo.c b/daemon/buildinfo.c
index 743c290f69..de02a72e1a 100644
--- a/daemon/buildinfo.c
+++ b/daemon/buildinfo.c
@@ -68,7 +68,14 @@
#ifdef ACLK_NO_LWS
#define FEAT_LWS "NO"
#else
-#define FEAT_LWS "YES"
+#ifdef ENABLE_ACLK
+#include <libwebsockets.h>
+#endif
+#ifdef BUNDLED_LWS
+#define FEAT_LWS "YES static"
+#else
+#define FEAT_LWS "YES shared-lib"
+#endif
#endif
#ifdef NETDATA_WITH_ZLIB
@@ -193,7 +200,11 @@ void print_build_info(void) {
printf(" libcap: %s\n", FEAT_LIBCAP);
printf(" libcrypto: %s\n", FEAT_CRYPTO);
printf(" libm: %s\n", FEAT_LIBM);
+#if defined(ENABLE_ACLK)
+ printf(" LWS: %s v%d.%d.%d\n", FEAT_LWS, LWS_LIBRARY_VERSION_MAJOR, LWS_LIBRARY_VERSION_MINOR, LWS_LIBRARY_VERSION_PATCH);
+#else
printf(" LWS: %s\n", FEAT_LWS);
+#endif
printf(" mosquitto: %s\n", FEAT_MOSQUITTO);
printf(" tcalloc: %s\n", FEAT_TCMALLOC);
printf(" zlib: %s\n", FEAT_ZLIB);