diff options
author | nagiosplugins <nagiosplugins@nagiosplugins.org> | 2009-09-25 08:18:04 (GMT) |
---|---|---|
committer | nagiosplugins <nagiosplugins@nagiosplugins.org> | 2009-09-25 09:31:04 (GMT) |
commit | 43c187a9444ddfdac26fb5c2e2f21dd38c72ce8d (patch) | |
tree | c510f5c620d3a8c17f29ab5635cbf78fcb893d41 /configure.in | |
parent | 53efa53d5de82631accb2ac98c876f9fa477d19d (diff) | |
download | monitoring-plugins-43c187a9444ddfdac26fb5c2e2f21dd38c72ce8d.tar.gz |
Allow custom versions with the release file...
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 505af93..5cc693c 100644 --- a/configure.in +++ b/configure.in | |||
@@ -101,6 +101,14 @@ AC_SUBST(REV_TIMESTAMP) | |||
101 | dnl Check if version file is present | 101 | dnl Check if version file is present |
102 | AM_CONDITIONAL([RELEASE_PRESENT], [test -f release]) | 102 | AM_CONDITIONAL([RELEASE_PRESENT], [test -f release]) |
103 | 103 | ||
104 | # Also read in the version from it | ||
105 | if test -f release; then | ||
106 | NP_RELEASE="$(<release)" | ||
107 | else | ||
108 | NP_RELEASE="$PACKAGE_VERSION" | ||
109 | fi | ||
110 | AC_SUBST(NP_RELEASE) | ||
111 | |||
104 | dnl Checks for programs. | 112 | dnl Checks for programs. |
105 | AC_PATH_PROG(PYTHON,python) | 113 | AC_PATH_PROG(PYTHON,python) |
106 | AC_PATH_PROG(SH,sh) | 114 | AC_PATH_PROG(SH,sh) |