configure.ac: Use git to set version number.

Borrowed this from the tpm2.0-tools project. Should keep dummies like me
from doing a "release" w/o updating the version number. Just make a tag
with the right version number (e.g. 1.1.0) and everything will work as
expected.

Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
diff --git a/configure.ac b/configure.ac
index ac70540..5f7c525 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,8 +1,5 @@
-m4_define([tpm20_major_version], [1])
-m4_define([tpm20_minor_version], [0])
-m4_define([tpm20_version_string], [tpm20_major_version.tpm20_minor_version])
-
-AC_INIT([tpm2.0-tss], [tpm20_version_string])
+AC_INIT([tpm2.0-tss],
+        [m4_esyscmd_s([git describe --tags --always --dirty])])
 AC_CONFIG_MACRO_DIR([m4])
 AC_PROG_CC
 AC_PROG_CXX