configure.ac 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. #
  2. # Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com>
  3. #
  4. AC_PREREQ(2.60)
  5. define([VERSION_MAJOR], [1])
  6. define([VERSION_MINOR], [9])
  7. define([VERSION_FIX], [1])
  8. define([VERSION_NUMBER], VERSION_MAJOR[.]VERSION_MINOR[.]VERSION_FIX)
  9. define([VERSION_SUFFIX], [_rolling])
  10. dnl Set to "1" for a first RPM release of a new version
  11. PACKAGE_RPM_RELEASE="0.0.$(echo VERSION_SUFFIX | sed s/^_//)"
  12. # We do not use m4_esyscmd_s to support older autoconf.
  13. define([VERSION_STRING], m4_esyscmd(git describe 2>/dev/null | sed 's/^v//' | tr -d '\n'))
  14. m4_ifval(VERSION_STRING, [], [define([VERSION_STRING], VERSION_NUMBER)])
  15. AC_INIT([netdata], VERSION_STRING[]VERSION_SUFFIX)
  16. AM_MAINTAINER_MODE([disable])
  17. if test x"$USE_MAINTAINER_MODE" = xyes; then
  18. AC_MSG_NOTICE(***************** MAINTAINER MODE *****************)
  19. PACKAGE_BUILT_DATE=$(date '+%d %b %Y')
  20. fi
  21. PACKAGE_RPM_VERSION="VERSION_NUMBER"
  22. AC_SUBST([PACKAGE_RPM_VERSION])
  23. AC_SUBST([PACKAGE_RPM_RELEASE])
  24. # -----------------------------------------------------------------------------
  25. # autoconf initialization
  26. AC_CONFIG_AUX_DIR([.])
  27. AC_CONFIG_HEADERS([config.h])
  28. AC_CONFIG_MACRO_DIR([m4])
  29. AC_CONFIG_SRCDIR([src/main.c])
  30. AM_INIT_AUTOMAKE([tar-pax])
  31. AC_CANONICAL_HOST
  32. AC_PROG_CC
  33. AC_PROG_INSTALL
  34. PKG_PROG_PKG_CONFIG
  35. AC_USE_SYSTEM_EXTENSIONS
  36. # -----------------------------------------------------------------------------
  37. # configurable options
  38. AC_ARG_ENABLE(
  39. [plugin-nfacct],
  40. [AS_HELP_STRING([--enable-plugin-nfacct], [enable nfacct plugin, requires running netdata as root @<:@default disabled@:>@])],
  41. ,
  42. [enable_plugin_nfacct="no"]
  43. )
  44. AC_ARG_ENABLE(
  45. [plugin-freeipmi],
  46. [AS_HELP_STRING([--enable-plugin-freeipmi], [enable freeipmi plugin @<:@default autodetect@:>@])],
  47. ,
  48. [enable_plugin_freeipmi="detect"]
  49. )
  50. AC_ARG_ENABLE(
  51. [pedantic],
  52. [AS_HELP_STRING([--enable-pedantic], [enable pedantic compiler warnings @<:@default disabled@:>@])],
  53. ,
  54. [enable_pedantic="no"]
  55. )
  56. AC_ARG_ENABLE(
  57. [accept4],
  58. [AS_HELP_STRING([--disable-accept4], [System does not have accept4 @<:@default autodetect@:>@])],
  59. ,
  60. [enable_accept4="detect"]
  61. )
  62. AC_ARG_WITH(
  63. [webdir],
  64. [AS_HELP_STRING([--with-webdir], [location of webdir @<:@PKGDATADIR/web@:>@])],
  65. [webdir="${withval}"],
  66. [webdir="\$(pkgdatadir)/web"]
  67. )
  68. AC_ARG_WITH(
  69. [libcap],
  70. [AS_HELP_STRING([--with-libcap], [build with libcap @<:@default autodetect@:>@])],
  71. ,
  72. [with_libcap="detect"]
  73. )
  74. AC_ARG_WITH(
  75. [zlib],
  76. [AS_HELP_STRING([--without-zlib], [build without zlib @<:@default enabled@:>@])],
  77. ,
  78. [with_zlib="yes"]
  79. )
  80. AC_ARG_WITH(
  81. [math],
  82. [AS_HELP_STRING([--without-math], [build without math @<:@default enabled@:>@])],
  83. ,
  84. [with_math="yes"]
  85. )
  86. AC_ARG_WITH(
  87. [user],
  88. [AS_HELP_STRING([--with-user], [use this user to drop privilege @<:@default nobody@:>@])],
  89. ,
  90. [with_user="nobody"]
  91. )
  92. AC_ARG_ENABLE(
  93. [x86-sse],
  94. [AS_HELP_STRING([--disable-x86-sse], [SSE/SS2 optimizations on x86 @<:@default enabled@:>@])],
  95. ,
  96. [enable_x86_sse="yes"]
  97. )
  98. AC_ARG_ENABLE(
  99. [lto],
  100. [AS_HELP_STRING([--disable-lto], [Link Time Optimizations @<:@default autodetect@:>@])],
  101. ,
  102. [enable_lto="detect"]
  103. )
  104. # -----------------------------------------------------------------------------
  105. # netdata required checks
  106. # fails on centos6
  107. #AX_CHECK_ENABLE_DEBUG()
  108. AX_GCC_FUNC_ATTRIBUTE([returns_nonnull])
  109. AX_GCC_FUNC_ATTRIBUTE([malloc])
  110. AX_GCC_FUNC_ATTRIBUTE([noreturn])
  111. AX_GCC_FUNC_ATTRIBUTE([format])
  112. AX_GCC_FUNC_ATTRIBUTE([warn_unused_result])
  113. AC_CHECK_TYPES([struct timespec, clockid_t], [], [], [[#include <time.h>]])
  114. AC_SEARCH_LIBS([clock_gettime], [rt posix4])
  115. AC_CHECK_FUNCS([clock_gettime])
  116. AC_CHECK_FUNCS([sched_setscheduler sched_get_priority_min sched_get_priority_max nice])
  117. AC_CHECK_FUNCS([recvmmsg])
  118. AC_TYPE_INT8_T
  119. AC_TYPE_INT16_T
  120. AC_TYPE_INT32_T
  121. AC_TYPE_INT64_T
  122. AC_TYPE_UINT8_T
  123. AC_TYPE_UINT16_T
  124. AC_TYPE_UINT32_T
  125. AC_TYPE_UINT64_T
  126. AC_C_INLINE
  127. AC_FUNC_STRERROR_R
  128. AC_C__GENERIC
  129. AC_C___ATOMIC
  130. # AC_C_STMT_EXPR
  131. AC_CHECK_SIZEOF([void *])
  132. AC_CANONICAL_HOST
  133. AC_HEADER_MAJOR
  134. AC_HEADER_RESOLV
  135. AC_CHECK_HEADERS_ONCE([sys/prctl.h])
  136. if test "${enable_accept4}" != "no"; then
  137. AC_CHECK_FUNCS_ONCE(accept4)
  138. fi
  139. # -----------------------------------------------------------------------------
  140. # operating system detection
  141. AC_MSG_CHECKING([operating system])
  142. case "$host_os" in
  143. freebsd*)
  144. build_target=freebsd
  145. CFLAGS="${CFLAGS} -I/usr/local/include"
  146. ;;
  147. darwin*)
  148. build_target=macos
  149. LDFLAGS="${LDFLAGS} -framework CoreFoundation -framework IOKit"
  150. ;;
  151. *)
  152. build_target=linux
  153. ;;
  154. esac
  155. AM_CONDITIONAL([FREEBSD], [test "${build_target}" = "freebsd"])
  156. AM_CONDITIONAL([MACOS], [test "${build_target}" = "macos"])
  157. AM_CONDITIONAL([LINUX], [test "${build_target}" = "linux"])
  158. AC_MSG_RESULT([${build_target}])
  159. # -----------------------------------------------------------------------------
  160. # pthreads
  161. ACX_PTHREAD(, [AC_MSG_ERROR([Cannot initialize pthread environment])])
  162. LIBS="${PTHREAD_LIBS} ${LIBS}"
  163. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  164. CC="${PTHREAD_CC}"
  165. # -----------------------------------------------------------------------------
  166. # libm
  167. AC_ARG_VAR([MATH_CFLAGS], [C compiler flags for math])
  168. AC_ARG_VAR([MATH_LIBS], [linker flags for math])
  169. if test -z "${MATH_LIBS}"; then
  170. AC_CHECK_LIB(
  171. [m],
  172. [sin],
  173. [MATH_LIBS="-lm"]
  174. )
  175. fi
  176. test "${with_math}" = "yes" -a -z "${MATH_LIBS}" && AC_MSG_ERROR([math required but not found])
  177. AC_MSG_CHECKING([if libm should be used])
  178. if test "${with_math}" != "no" -a ! -z "${MATH_LIBS}"; then
  179. with_math="yes"
  180. AC_DEFINE([STORAGE_WITH_MATH], [1], [math usability])
  181. OPTIONAL_MATH_CFLAGS="${MATH_CFLAGS}"
  182. OPTIONAL_MATH_LIBS="${MATH_LIBS}"
  183. else
  184. with_math="no"
  185. fi
  186. AC_MSG_RESULT([${with_math}])
  187. # -----------------------------------------------------------------------------
  188. # zlib
  189. PKG_CHECK_MODULES(
  190. [ZLIB],
  191. [zlib],
  192. [have_zlib=yes],
  193. [have_zlib=no]
  194. )
  195. test "${with_zlib}" = "yes" -a "${have_zlib}" != "yes" && AC_MSG_ERROR([zlib required but not found. Try installing 'zlib1g-dev' or 'zlib-devel'.])
  196. AC_MSG_CHECKING([if zlib should be used])
  197. if test "${with_zlib}" != "no" -a "${have_zlib}" = "yes"; then
  198. with_zlib="yes"
  199. AC_DEFINE([NETDATA_WITH_ZLIB], [1], [zlib usability])
  200. OPTIONAL_ZLIB_CLFAGS="${ZLIB_CFLAGS}"
  201. OPTIONAL_ZLIB_LIBS="${ZLIB_LIBS}"
  202. else
  203. with_zlib="no"
  204. fi
  205. AC_MSG_RESULT([${with_zlib}])
  206. # -----------------------------------------------------------------------------
  207. # libuuid
  208. PKG_CHECK_MODULES(
  209. [UUID],
  210. [uuid],
  211. [have_uuid=yes],
  212. [AC_MSG_ERROR([libuuid required but not found. Try installing 'uuid-dev' or 'libuuid-devel'.])]
  213. )
  214. AC_DEFINE([NETDATA_WITH_UUID], [1], [uuid usability])
  215. OPTIONAL_UUID_CLFAGS="${UUID_CFLAGS}"
  216. OPTIONAL_UUID_LIBS="${UUID_LIBS}"
  217. # -----------------------------------------------------------------------------
  218. # compiler options
  219. AC_ARG_VAR([SSE_CANDIDATE], [C compiler flags for SSE])
  220. AS_CASE([$host_cpu],
  221. [i?86], [SSE_CANDIDATE="yes"]
  222. )
  223. AC_SUBST([SSE_CANDIDATE])
  224. if test "${SSE_CANDIDATE}" = "yes" -a "${enable_x86_sse}" = "yes"; then
  225. opt="-msse2 -mfpmath=sse"
  226. AX_CHECK_COMPILE_FLAG(${opt}, [CFLAGS="${CFLAGS} ${opt}"], [])
  227. fi
  228. if test "${GCC}" = "yes"; then
  229. AC_DEFINE_UNQUOTED([likely(x)], [__builtin_expect(!!(x), 1)], [gcc branch optimization])
  230. AC_DEFINE_UNQUOTED([unlikely(x)], [__builtin_expect(!!(x), 0)], [gcc branch optimization])
  231. else
  232. AC_DEFINE_UNQUOTED([likely(x)], [(x)], [gcc branch optimization])
  233. AC_DEFINE_UNQUOTED([unlikely(x)], [(x)], [gcc branch optimization])
  234. fi
  235. if test "${enable_pedantic}" = "yes"; then
  236. enable_strict="yes"
  237. CFLAGS="${CFLAGS} -pedantic -Wall -Wextra -Wno-long-long"
  238. fi
  239. # -----------------------------------------------------------------------------
  240. # memory allocation library
  241. AC_MSG_CHECKING([for memory allocator])
  242. TS_CHECK_JEMALLOC
  243. if test "$has_jemalloc" = "1"; then
  244. AC_DEFINE([ENABLE_JEMALLOC], [1], [compile and link with jemalloc])
  245. AC_MSG_RESULT([jemalloc])
  246. else
  247. TS_CHECK_TCMALLOC
  248. if test "$has_tcmalloc" = "1"; then
  249. AC_DEFINE([ENABLE_TCMALLOC], [1], [compile and link with tcmalloc])
  250. AC_MSG_RESULT([tcmalloc])
  251. else
  252. AC_MSG_RESULT([system])
  253. AC_C_MALLOPT
  254. AC_C_MALLINFO
  255. fi
  256. fi
  257. # -----------------------------------------------------------------------------
  258. # libcap
  259. PKG_CHECK_MODULES(
  260. [LIBCAP],
  261. [libcap],
  262. [AC_CHECK_LIB([cap], [cap_get_proc, cap_set_proc],
  263. [AC_CHECK_HEADER(
  264. [sys/capability.h],
  265. [have_libcap=yes],
  266. [have_libcap=no]
  267. )],
  268. [have_libcap=no]
  269. )],
  270. [have_libcap=no]
  271. )
  272. test "${with_libcap}" = "yes" -a "${have_libcap}" != "yes" && AC_MSG_ERROR([libcap required but not found.])
  273. AC_MSG_CHECKING([if libcap should be used])
  274. if test "${with_libcap}" != "no" -a "${have_libcap}" = "yes"; then
  275. with_libcap="yes"
  276. AC_DEFINE([HAVE_CAPABILITY], [1], [libcap usability])
  277. OPTIONAL_LIBCAP_CLFAGS="${LIBCAP_CFLAGS}"
  278. OPTIONAL_LIBCAP_LIBS="${LIBCAP_LIBS}"
  279. else
  280. with_libcap="no"
  281. fi
  282. AC_MSG_RESULT([${with_libcap}])
  283. AM_CONDITIONAL([ENABLE_CAPABILITY], [test "${with_libcap}" = "yes"])
  284. # -----------------------------------------------------------------------------
  285. # apps.plugin
  286. AC_MSG_CHECKING([if apps.plugin should be enabled])
  287. if test "${build_target}" != "macos"; then
  288. enable_plugin_apps="yes"
  289. else
  290. enable_plugin_apps="no"
  291. fi
  292. AC_MSG_RESULT([${enable_plugin_apps}])
  293. AM_CONDITIONAL([ENABLE_PLUGIN_APPS], [test "${enable_plugin_apps}" = "yes"])
  294. # -----------------------------------------------------------------------------
  295. # freeipmi.plugin - libipmimonitoring
  296. PKG_CHECK_MODULES(
  297. [IPMIMONITORING],
  298. [libipmimonitoring],
  299. [AC_CHECK_LIB([ipmimonitoring], [
  300. ipmi_monitoring_sensor_readings_by_record_id,
  301. ipmi_monitoring_sensor_readings_by_sensor_type,
  302. ipmi_monitoring_sensor_read_sensor_number,
  303. ipmi_monitoring_sensor_read_sensor_name,
  304. ipmi_monitoring_sensor_read_sensor_state,
  305. ipmi_monitoring_sensor_read_sensor_units,
  306. ipmi_monitoring_sensor_iterator_next,
  307. ipmi_monitoring_ctx_sensor_config_file,
  308. ipmi_monitoring_ctx_sdr_cache_directory,
  309. ipmi_monitoring_ctx_errormsg,
  310. ipmi_monitoring_ctx_create
  311. ],
  312. [AC_CHECK_HEADER(
  313. [ipmi_monitoring.h],
  314. [AC_CHECK_HEADER(
  315. [ipmi_monitoring_bitmasks.h],
  316. [have_ipmimonitoring=yes],
  317. [have_ipmimonitoring=no]
  318. )],
  319. [have_ipmimonitoring=no]
  320. )],
  321. [have_ipmimonitoring=no]
  322. )],
  323. [have_ipmimonitoring=no]
  324. )
  325. test "${enable_plugin_freeipmi}" = "yes" -a "${have_ipmimonitoring}" != "yes" && \
  326. AC_MSG_ERROR([ipmimonitoring required but not found. Try installing 'libipmimonitoring-dev' or 'libipmimonitoring-devel'])
  327. AC_MSG_CHECKING([if freeipmi.plugin should be enabled])
  328. if test "${enable_plugin_freeipmi}" != "no" -a "${have_ipmimonitoring}" = "yes"; then
  329. enable_plugin_freeipmi="yes"
  330. AC_DEFINE([HAVE_FREEIPMI], [1], [ipmimonitoring usability])
  331. OPTIONAL_IPMIMONITORING_CLFAGS="${IPMIMONITORING_CFLAGS}"
  332. OPTIONAL_IPMIMONITORING_LIBS="${IPMIMONITORING_LIBS}"
  333. else
  334. enable_plugin_freeipmi="no"
  335. fi
  336. AC_MSG_RESULT([${enable_plugin_freeipmi}])
  337. AM_CONDITIONAL([ENABLE_PLUGIN_FREEIPMI], [test "${enable_plugin_freeipmi}" = "yes"])
  338. # -----------------------------------------------------------------------------
  339. # nfacct.plugin - libmnl, libnetfilter_acct
  340. AC_CHECK_HEADERS_ONCE([linux/netfilter/nfnetlink_conntrack.h])
  341. PKG_CHECK_MODULES(
  342. [NFACCT],
  343. [libnetfilter_acct],
  344. [have_libnetfilter_acct=yes],
  345. [have_libnetfilter_acct=no]
  346. )
  347. PKG_CHECK_MODULES(
  348. [LIBMNL],
  349. [libmnl],
  350. [have_libmnl=yes],
  351. [have_libmnl=no]
  352. )
  353. test "${enable_plugin_nfacct}" = "yes" -a "${have_libnetfilter_acct}" != "yes" && \
  354. AC_MSG_ERROR([netfilter_acct required but not found])
  355. test "${enable_plugin_nfacct}" = "yes" -a "${have_libmnl}" != "yes" && \
  356. AC_MSG_ERROR([libmnl required but not found. Try installing 'libmnl-dev' or 'libmnl-devel'])
  357. AC_MSG_CHECKING([if nfacct.plugin should be enabled])
  358. if test "${enable_plugin_nfacct}" != "no" -a "${have_libnetfilter_acct}" = "yes" -a "${have_libmnl}" = "yes"; then
  359. enable_plugin_nfacct="yes"
  360. AC_DEFINE([HAVE_LIBMNL], [1], [libmnl usability])
  361. AC_DEFINE([HAVE_LIBNETFILTER_ACCT], [1], [libnetfilter_acct usability])
  362. AC_DEFINE([INTERNAL_PLUGIN_NFACCT], [1], [nfacct plugin usability])
  363. OPTIONAL_NFACCT_CLFAGS="${NFACCT_CFLAGS} ${LIBMNL_CFLAGS}"
  364. OPTIONAL_NFACCT_LIBS="${NFACCT_LIBS} ${LIBMNL_LIBS}"
  365. else
  366. enable_plugin_nfacct="no"
  367. fi
  368. AC_MSG_RESULT([${enable_plugin_nfacct}])
  369. AM_CONDITIONAL([ENABLE_PLUGIN_NFACCT], [test "${enable_plugin_nfacct}" = "yes"])
  370. # -----------------------------------------------------------------------------
  371. # check for setns() - cgroup-network
  372. AC_CHECK_FUNC([setns])
  373. AC_MSG_CHECKING([if cgroup-network can be enabled])
  374. if test "$ac_cv_func_setns" = "yes" ; then
  375. have_setns="yes"
  376. AC_DEFINE([HAVE_SETNS], [1], [Define 1 if you have setns() function])
  377. else
  378. have_setns="no"
  379. fi
  380. AC_MSG_RESULT([${have_setns}])
  381. AM_CONDITIONAL([ENABLE_PLUGIN_CGROUP_NETWORK], [test "${have_setns}" = "yes"])
  382. # -----------------------------------------------------------------------------
  383. # Link-Time-Optimization
  384. if test "${enable_lto}" != "no"; then
  385. opt="-flto"
  386. AX_CHECK_COMPILE_FLAG(${opt}, [have_lto=yes], [have_lto=no])
  387. fi
  388. if test "${have_lto}" = "yes"; then
  389. oCFLAGS="${CFLAGS}"
  390. CFLAGS="${CFLAGS} -flto ${OPTIONAL_MATH_CLFAGS} ${OPTIONAL_NFACCT_CLFAGS} ${OPTIONAL_ZLIB_CLFAGS} ${OPTIONAL_UUID_CLFAGS} ${OPTIONAL_LIBCAP_CFLAGS} ${OPTIONAL_IPMIMONITORING_CFLAGS}"
  391. ac_cv_c_lto_cross_compile="${enable_lto}"
  392. test "${ac_cv_c_lto_cross_compile}" != "yes" && ac_cv_c_lto_cross_compile="no"
  393. AC_C_LTO
  394. CFLAGS="${oCFLAGS}"
  395. test "${ac_cv_c_lto}" != "yes" && have_lto="no"
  396. fi
  397. test "${enable_lto}" = "yes" -a "${have_lto}" != "yes" && \
  398. AC_MSG_ERROR([LTO is required but is not available.])
  399. AC_MSG_CHECKING([if LTO should be enabled])
  400. if test "${enable_lto}" != "no" -a "${have_lto}" = "yes"; then
  401. enable_lto="yes"
  402. CFLAGS="${CFLAGS} -flto"
  403. else
  404. enable_lto="no"
  405. fi
  406. AC_MSG_RESULT([${enable_lto}])
  407. # -----------------------------------------------------------------------------
  408. AC_DEFINE_UNQUOTED([NETDATA_USER], ["${with_user}"], [use this user to drop privileged])
  409. AC_SUBST([varlibdir], ["\$(localstatedir)/lib/netdata"])
  410. AC_SUBST([registrydir], ["\$(localstatedir)/lib/netdata/registry"])
  411. AC_SUBST([cachedir], ["\$(localstatedir)/cache/netdata"])
  412. AC_SUBST([chartsdir], ["\$(libexecdir)/netdata/charts.d"])
  413. AC_SUBST([nodedir], ["\$(libexecdir)/netdata/node.d"])
  414. AC_SUBST([pythondir], ["\$(libexecdir)/netdata/python.d"])
  415. AC_SUBST([configdir], ["\$(sysconfdir)/netdata"])
  416. AC_SUBST([logdir], ["\$(localstatedir)/log/netdata"])
  417. AC_SUBST([pluginsdir], ["\$(libexecdir)/netdata/plugins.d"])
  418. AC_SUBST([webdir])
  419. AC_SUBST([OPTIONAL_MATH_CLFAGS])
  420. AC_SUBST([OPTIONAL_MATH_LIBS])
  421. AC_SUBST([OPTIONAL_NFACCT_CLFAGS])
  422. AC_SUBST([OPTIONAL_NFACCT_LIBS])
  423. AC_SUBST([OPTIONAL_ZLIB_CLFAGS])
  424. AC_SUBST([OPTIONAL_ZLIB_LIBS])
  425. AC_SUBST([OPTIONAL_UUID_CLFAGS])
  426. AC_SUBST([OPTIONAL_UUID_LIBS])
  427. AC_SUBST([OPTIONAL_LIBCAP_CFLAGS])
  428. AC_SUBST([OPTIONAL_LIBCAP_LIBS])
  429. AC_SUBST([OPTIONAL_IPMIMONITORING_CFLAGS])
  430. AC_SUBST([OPTIONAL_IPMIMONITORING_LIBS])
  431. AC_CONFIG_FILES([
  432. Makefile
  433. charts.d/Makefile
  434. conf.d/Makefile
  435. netdata.spec
  436. python.d/Makefile
  437. node.d/Makefile
  438. plugins.d/Makefile
  439. src/Makefile
  440. system/Makefile
  441. web/Makefile
  442. diagrams/Makefile
  443. makeself/Makefile
  444. contrib/Makefile
  445. tests/Makefile
  446. ])
  447. AC_OUTPUT
  448. test "${with_math}" != "yes" && AC_MSG_WARN([You are building without math. math allows accurate calculations. It should be enabled.]) || :
  449. test "${with_zlib}" != "yes" && AC_MSG_WARN([You are building without zlib. zlib allows netdata to transfer a lot less data with web clients. It should be enabled.]) || :