Debian builds to be deterministically reproducible

And it should thus be possible to set a date for the GETDNS_COMPILATION_COMMENT define.
Thanks Ondřej Surý
This commit is contained in:
Willem Toorop 2015-01-20 11:55:37 +01:00
parent b34a65f8fa
commit 85c40d45af
1 changed files with 7 additions and 1 deletions

View File

@ -31,7 +31,13 @@
AC_PREREQ([2.56])
AC_INIT([getdns], [0.1.6], [stub-resolver@verisignlabs.com], [], [http://getdnsapi.net])
CURRENT_DATE=`LC_ALL=C date`
# Set current date from system if not set
AC_ARG_WITH([current-date],
[AS_HELP_STRING([--with-current-date]
[current date of the compilation, set to fixed date for reproducible builds @<:@default=system@:>@])],
[CURRENT_DATE="$with_current_date"],
[CURRENT_DATE="`date --rfc-3339=seconds`"])
GETDNS_COMPILATION_COMMENT="AC_PACKAGE_STRING configured on $CURRENT_DATE for the January 2015 version of the API"
# Library version