X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=configure.ac;h=2aa742df86756ac7b82ffdf9bc2ed2cb41be85e6;hb=f266bab3d154e9e082403b89ea60d0fe35fe4096;hp=0005ec551aa6e8f20a322ae217138888c2a1e572;hpb=a29af3d0cde1eb8aa1667816bcd0a8d467afa82a;p=netdata.git diff --git a/configure.ac b/configure.ac index 0005ec55..2aa742df 100644 --- a/configure.ac +++ b/configure.ac @@ -7,12 +7,16 @@ define([VERSION_MAJOR], [1]) define([VERSION_MINOR], [5]) define([VERSION_FIX], [1]) define([VERSION_NUMBER], VERSION_MAJOR[.]VERSION_MINOR[.]VERSION_FIX) -define([VERSION_SUFFIX], [_master]) +define([VERSION_SUFFIX], [_rolling]) dnl Set to "1" for a first RPM release of a new version PACKAGE_RPM_RELEASE="0.0.$(echo VERSION_SUFFIX | sed s/^_//)" -AC_INIT([netdata], VERSION_NUMBER[]VERSION_SUFFIX) +# We do not use m4_esyscmd_s to support older autoconf. +define([VERSION_STRING], m4_esyscmd(git describe 2>/dev/null | sed 's/^v//' | tr -d '\n')) +m4_ifval(VERSION_STRING, [], [define([VERSION_STRING], VERSION_NUMBER)]) + +AC_INIT([netdata], VERSION_STRING[]VERSION_SUFFIX) AM_MAINTAINER_MODE([disable]) if test x"$USE_MAINTAINER_MODE" = xyes; then @@ -73,6 +77,12 @@ AC_ARG_ENABLE( , [enable_plugin_nfacct="no"] ) +AC_ARG_ENABLE( + [plugin-freeipmi], + [AS_HELP_STRING([--enable-plugin-freeipmi], [freeipmi plugin, requires root])], + , + [enable_plugin_freeipmi="no"] +) AC_ARG_ENABLE( [pedantic], [AS_HELP_STRING([--enable-pedantic], [enable pedantic compiler warnings])], @@ -187,6 +197,19 @@ AC_DEFINE([NETDATA_WITH_UUID], [1], [uuid settings]) OPTIONAL_UUID_CLFAGS="${UUID_CFLAGS}" OPTIONAL_UUID_LIBS="${UUID_LIBS}" +if test "${enable_plugin_freeipmi}" = "yes"; then + PKG_CHECK_MODULES( + [IPMIMONITORING], + [libipmimonitoring], + ) + test -z "${IPMIMONITORING_LIBS}" && AC_MSG_ERROR([ipmimonitoring required but not found. Try installing 'libipmimonitoring-dev' or 'libipmimonitoring-devel']) + freeipmi=yes + AC_DEFINE([HAVE_FREEIPMI], [1], [ipmimonitoring usability]) + OPTIONAL_IPMIMONITORING_CLFAGS="${IPMIMONITORING_CFLAGS}" + OPTIONAL_IPMIMONITORING_LIBS="${IPMIMONITORING_LIBS}" +fi +AM_CONDITIONAL([FREEIPMI], [test x$freeipmi = xyes]) + if test "${enable_plugin_nfacct}" = "yes"; then PKG_CHECK_MODULES( [NFACCT], @@ -202,6 +225,7 @@ if test "${enable_plugin_nfacct}" = "yes"; then OPTIONAL_NFACCT_CLFAGS="${NFACCT_CFLAGS} ${LIBMNL_CFLAGS}" OPTIONAL_NFACCT_LIBS="${NFACCT_LIBS} ${LIBMNL_LIBS}" fi + if test "${with_zlib}" = "yes"; then PKG_CHECK_MODULES( [ZLIB], @@ -212,6 +236,7 @@ if test "${with_zlib}" = "yes"; then OPTIONAL_ZLIB_CLFAGS="${ZLIB_CFLAGS}" OPTIONAL_ZLIB_LIBS="${ZLIB_LIBS}" fi + if test "${with_math}" = "yes"; then test -z "${MATH_LIBS}" && AC_MSG_ERROR([math required but not found]) AC_DEFINE([STORAGE_WITH_MATH], [1], [math settings]) @@ -254,6 +279,8 @@ AC_SUBST([OPTIONAL_ZLIB_LIBS]) AC_SUBST([OPTIONAL_UUID_CLFAGS]) AC_SUBST([OPTIONAL_UUID_LIBS]) AC_SUBST([OPTIONAL_CAP_LIBS]) +AC_SUBST([OPTIONAL_IPMIMONITORING_CFLAGS]) +AC_SUBST([OPTIONAL_IPMIMONITORING_LIBS]) AC_CONFIG_FILES([ Makefile @@ -271,4 +298,4 @@ AC_CONFIG_FILES([ 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.]) || : +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.]) || :