Generate version string using tools/vergen

This is important to indicate when there is ongoing development;
otherwise the version number is incorrect and may deceive.  It's not
appropriate to bump the version constantly during development before
release, either.

* configure.ac
  (ver): Variable added, populated by tools/vergen.
  (AC_INIT): Use `ver'.
master
Mike Gerwitz 2016-11-15 12:11:47 -05:00
parent 9669b80536
commit 63701e453e
1 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
## ##
AC_INIT([tame], [1.0.0], [dev@lovullo.com]) # version string is dynamically generated
m4_define([ver], m4_esyscmd(tools/vergen))
m4_if(ver, [], [m4_exit(1)])
AC_INIT([tame], [ver], [dev@lovullo.com])
AC_CONFIG_AUX_DIR([tools]) AC_CONFIG_AUX_DIR([tools])
AM_INIT_AUTOMAKE([foreign]) AM_INIT_AUTOMAKE([foreign])