blob: 3f53db9e5c6eac9aeda9a357be5a36790150dcbd [file] [log] [blame]
Andrew Geissler748a4832020-07-24 16:24:21 -05001configure.ac: override CONFIGURE_LINE
2
3For reproducible binaries, we need to report a constant CONFIGURE_LINE.
Andrew Geissler748a4832020-07-24 16:24:21 -05004
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -05005Upstream-Status: Pending
Andrew Geissler748a4832020-07-24 16:24:21 -05006
7Signed-off-by: Joe Slater <joe.slater@windriver.com>
8
9
10--- git.orig/configure.ac
11+++ git/configure.ac
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050012@@ -15,7 +15,15 @@ AC_PREREQ(2.69)
Andrew Geissler748a4832020-07-24 16:24:21 -050013 ################################################################################
14 dnl -- Process this file with autoconf to produce a configure script.
15 AC_INIT
16-CONFIGURE_LINE="$0 $@"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050017+
18+dnl per reproducible-builds.org check SOURCE_DATE_EPOCH
19+dnl
20+if test -z "${SOURCE_DATE_EPOCH+set}" ; then
21+ CONFIGURE_LINE="$0 $@"
22+else
23+ CONFIGURE_LINE="configure options are not available for reproducible builds"
24+fi
Andrew Geissler748a4832020-07-24 16:24:21 -050025+
26 AC_CONFIG_SRCDIR([lib/device/dev-cache.h])
27 AC_CONFIG_HEADERS([include/configure.h])
28