diff options
author | Simon Nagl <simonnagl@aim.com> | 2017-02-12 15:03:31 +0100 |
---|---|---|
committer | Simon Nagl <simonnagl@aim.com> | 2017-02-12 15:03:31 +0100 |
commit | 89da19302dc4977f37f7ffcf6260e35c357158be (patch) | |
tree | 2e17de8adac203d85146e2988d10e575a0a0db1f /configure.ac | |
parent | 53fd22682de9e6a3e0c8c173a1b1b974d288dba6 (diff) |
Support older autoconf versions
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 20a74696ba..1dffbe0f30 100644 --- a/configure.ac +++ b/configure.ac @@ -12,7 +12,8 @@ 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/^_//)" -define([VERSION_STRING], m4_esyscmd_s(git describe 2>/dev/null | sed 's/^v//')) +# 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) |