summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-03-18 15:31:34 +0100
committerWerner Koch <wk@gnupg.org>2013-03-18 15:31:34 +0100
commit620fed5e13e5de927e15a770df0c2707fc581610 (patch)
treea188b75c88444431ce44efdc4feeaba9622a5828 /configure.ac
parent267c5acf206f0ee295f5cfa6b230a138f580ee47 (diff)
downloadlibgcrypt-620fed5e13e5de927e15a770df0c2707fc581610.tar.gz
Provide a GCRYPT_VERSION_NUMBER macro.
* src/gcrypt.h.in (GCRYPT_VERSION_NUMBER): New. * configure.ac (VERSION_NUMBER): New ac_subst. * compat/compat.c (_gcry_compat_identification): Include revision and timestamp. * src/global.c (_gcry_vcontrol): Move call to above function ... (gcry_check_version): .. here.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 39eba129..83ba4860 100644
--- a/configure.ac
+++ b/configure.ac
@@ -127,6 +127,9 @@ AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of this package])
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version of this package])
+VERSION_NUMBER=m4_esyscmd(printf "0x%02x%02x%02x" mym4_version_major \
+ mym4_version_minor mym4_version_micro)
+AC_SUBST(VERSION_NUMBER)
######################