enabled diagnostic messages for all libraries and plugins
Costa Tsaousis (ktsaou) committed
Mar 4, 2017 at 22:13 UTC
7a674c4cf8261f1d99d6e47535da596efb354261
1 file changed
+20
-5
configure.ac
+20
-5
@@ -202,14 +202,18 @@ CC="${PTHREAD_CC}"
202
# -----------------------------------------------------------------------------
203
# memory allocation library
204
205
+AC_MSG_CHECKING([for memory allocator])
206
TS_CHECK_JEMALLOC
207
if test "$has_jemalloc" = "1"; then
208
AC_DEFINE([ENABLE_JEMALLOC], [1], [compile and link with jemalloc])
209
+ AC_MSG_RESULT([jemalloc])
210
else
211
TS_CHECK_TCMALLOC
212
if test "$has_tcmalloc" = "1"; then
213
AC_DEFINE([ENABLE_TCMALLOC], [1], [compile and link with tcmalloc])
214
+ AC_MSG_RESULT([tcmalloc])
215
else
216
+ AC_MSG_RESULT([system])
217
AC_C_MALLOPT
218
AC_C_MALLINFO
219
fi
@@ -228,13 +232,18 @@ if test -z "${MATH_LIBS}"; then
232
[MATH_LIBS="-lm"]
233
)
234
fi
235
+test "${with_math}" = "yes" -a -z "${MATH_LIBS}" && AC_MSG_ERROR([math required but not found])
236
232
-if test "${with_math}" = "yes"; then
233
- test -z "${MATH_LIBS}" && AC_MSG_ERROR([math required but not found])
237
+AC_MSG_CHECKING([if libm should be used])
238
+if test "${with_math}" != "no"; then
239
+ with_math="yes"
240
AC_DEFINE([STORAGE_WITH_MATH], [1], [math usability])
241
OPTIONAL_MATH_CFLAGS="${MATH_CFLAGS}"
242
OPTIONAL_MATH_LIBS="${MATH_LIBS}"
243
+else
244
+ with_math="no"
245
fi
246
+AC_MSG_RESULT([${with_math}])
247
248
249
# -----------------------------------------------------------------------------
@@ -247,11 +256,17 @@ PKG_CHECK_MODULES(
256
[have_zlib=no]
257
)
258
test "${with_zlib}" = "yes" -a "${have_zlib}" != "yes" && AC_MSG_ERROR([zlib required but not found. Try installing 'zlib1g-dev' or 'zlib-devel'.])
250
-if test "${with_zlib}" = "yes"; then
259
+
260
+AC_MSG_CHECKING([if zlib should be used])
261
+if test "${with_zlib}" != "no"; then
262
+ with_zlib="yes"
263
AC_DEFINE([NETDATA_WITH_ZLIB], [1], [zlib usability])
264
OPTIONAL_ZLIB_CLFAGS="${ZLIB_CFLAGS}"
265
OPTIONAL_ZLIB_LIBS="${ZLIB_LIBS}"
266
+else
267
+ with_zlib="no"
268
fi
269
+AC_MSG_RESULT([${with_zlib}])
270
271
272
# -----------------------------------------------------------------------------
@@ -297,9 +312,9 @@ AM_CONDITIONAL([ENABLE_CAPABILITY], [test "${with_libcap}" = "yes"])
312
313
AC_MSG_CHECKING([if apps.plugin should be enabled])
314
if test "${build_target}" != "macos"; then
300
- enable_plugin_apps="yes"
315
+ enable_plugin_apps="yes"
316
else
302
- enable_plugin_apps="no"
317
+ enable_plugin_apps="no"
318
fi
319
AC_MSG_RESULT([${enable_plugin_apps}])
320
AM_CONDITIONAL([ENABLE_PLUGIN_APPS], [test "${enable_plugin_apps}" = "yes"])