all customization/warning/interaction should be at autoconf level
compile time is too late.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
web/Makefile
])
AC_OUTPUT
+
+test "${with_math}" != "yes" && AC_MSG_WARN([You are building without math. math allows accurate calculations. It should be enabled.])
+test "${with_zlib}" != "yes" && AC_MSG_WARN([You are building without zlib. zlib allows netdata to trasnfer a lot less data with web clients. It should be enabled.])
#endif
#ifdef STORAGE_WITH_MATH
#include <math.h>
-#else
-#warning "You are building without math. math allows accurate calculations. It should be enabled."
#endif
#include "common.h"
#ifdef NETDATA_WITH_ZLIB
if(likely(w->zoutput)) sent = (long)w->zstream.total_out;
-#else
-#warning "You are building without zlib. zlib allows netdata to trasnfer a lot less data with web clients. It should be enabled."
#endif
long size = (w->mode == WEB_CLIENT_MODE_FILECOPY)?w->data->rbytes:w->data->bytes;