From 1eaad0a8c4cab227685a6a8768e539df2f1f4dac Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 18 Mar 2013 15:31:34 +0100 Subject: Provide GCRYPT_VERSION_NUMBER macro, add build info to the binary. * src/gcrypt.h.in (GCRYPT_VERSION_NUMBER): New. * configure.ac (VERSION_NUMBER): New ac_subst. * src/global.c (_gcry_vcontrol): Move call to above function ... (gcry_check_version): .. here. * configure.ac (BUILD_REVISION, BUILD_FILEVERSION) (BUILD_TIMESTAMP): Define on all platforms. * compat/compat.c (_gcry_compat_identification): Include revision and timestamp. --- compat/compat.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compat/compat.c') diff --git a/compat/compat.c b/compat/compat.c index 96889d32..d2591304 100644 --- a/compat/compat.c +++ b/compat/compat.c @@ -30,6 +30,9 @@ _gcry_compat_identification (void) "This is Libgcrypt " PACKAGE_VERSION " - The GNU Crypto Library\n" "Copyright 2000, 2002, 2003, 2004, 2007, 2008, 2009,\n" " 2010, 2011, 2012 Free Software Foundation, Inc.\n" + "Copyright 2012, 2013 g10 Code GmbH\n" + "\n" + "(" BUILD_REVISION " " BUILD_TIMESTAMP ")\n" "\n\n"; return blurb; } -- cgit v1.2.1