aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-08-25 18:40:06 +0000
committerWerner Koch <[email protected]>2015-08-25 18:40:06 +0000
commitff91e699f7c14ea6cbc27b487cb40e9f6bd58901 (patch)
treeb0a3b8d19facfcce3b5a98f14888438f3233cd85
parentRelax ttyname_r error checks (diff)
downloadgpgme-ff91e699f7c14ea6cbc27b487cb40e9f6bd58901.tar.gz
gpgme-ff91e699f7c14ea6cbc27b487cb40e9f6bd58901.zip
Add configure option --enable-build-timestamp.
* configure.ac (BUILD_TIMESTAMP): Set to "<none>" by default. -- This is based on libgpg-error commit d620005fd1a655d591fccb44639e22ea445e4554 but changed to be disbaled by default. Check there for some background. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--configure.ac12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index be36a420..a1973e76 100644
--- a/configure.ac
+++ b/configure.ac
@@ -260,11 +260,21 @@ changequote([,])dnl
BUILD_FILEVERSION="${BUILD_FILEVERSION}mym4_revision_dec"
AC_SUBST(BUILD_FILEVERSION)
-BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
+AC_ARG_ENABLE([build-timestamp],
+ AC_HELP_STRING([--enable-build-timestamp],
+ [set an explicit build timestamp for reproducibility.
+ (default is the current time in ISO-8601 format)]),
+ [if test "$enableval" = "yes"; then
+ BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
+ else
+ BUILD_TIMESTAMP="$enableval"
+ fi],
+ [BUILD_TIMESTAMP="<none>"])
AC_SUBST(BUILD_TIMESTAMP)
AC_DEFINE_UNQUOTED(BUILD_TIMESTAMP, "$BUILD_TIMESTAMP",
[The time this package was configured for a build])
+
#
# Options to disable some regression tests
#