configure: Get version string from git or from VERSION file (#1380)

Use git to create the version string if possible.
Otherwise get the version from the VERSION file.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-03-12 21:38:46 +01:00 committed by zdenop
parent 2d319cb8d3
commit 8fb68746fb
2 changed files with 2 additions and 1 deletions

1
VERSION Normal file
View File

@ -0,0 +1 @@
4.0.0-beta.1

View File

@ -7,7 +7,7 @@
# ----------------------------------------
AC_PREREQ([2.59])
AC_INIT([tesseract],
[4.0.0-beta.1],
[m4_esyscmd([echo -n $(test -d .git && git describe --abbrev=4 || cat VERSION)])],
[https://github.com/tesseract-ocr/tesseract/issues],,
[https://github.com/tesseract-ocr/tesseract/])
AC_PROG_CXX([g++ clang++])