diff options
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | configure.ac | 12 |
2 files changed, 14 insertions, 2 deletions
@@ -1,7 +1,9 @@ Noteworthy changes in version 1.17 (unreleased) [C12/A12/R_] ----------------------------------------------- - * Add an errot source code for an TLS protocol library. + * New error source code for TLS protocol libraries. + + * New configure option --enable-build-timestamp. * Interface changes relative to the 1.16 release: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/configure.ac b/configure.ac index b32b751..4652a2b 100644 --- a/configure.ac +++ b/configure.ac @@ -484,7 +484,17 @@ changequote([,])dnl BUILD_FILEVERSION="${BUILD_FILEVERSION}0,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" = "no"; then + BUILD_TIMESTAMP="<none>" + else + BUILD_TIMESTAMP="$enableval" + fi], + [BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`]) AC_SUBST(BUILD_TIMESTAMP) AC_DEFINE_UNQUOTED(BUILD_TIMESTAMP, "$BUILD_TIMESTAMP", [The time this package was configured for a build]) |