From 7d754783580240612195ea3e71bd49a02f5cd680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Tue, 28 Jul 2015 09:19:13 +0200 Subject: [PATCH] Convert the BUILD stamp to AC_ARG_WITH argument, so we can make the build reproducible --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f5f84304b..97ed115a8 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,6 @@ AC_PREREQ([2.56]) AC_INIT([libjpeg-turbo], [1.4.80]) -BUILD=`date +%Y%m%d` AM_INIT_AUTOMAKE([-Wall foreign dist-bzip2]) AC_PREFIX_DEFAULT(/opt/libjpeg-turbo) @@ -22,6 +21,10 @@ AC_PROG_INSTALL AC_PROG_LIBTOOL AC_PROG_LN_S +AC_ARG_WITH([build-date], [Use custom build string to enable reproducible builds (default: YYMMDD)], + [BUILD="$with_build_date"], + [BUILD=`date +%Y%m%d`]) + # When the prefix is /opt/libjpeg-turbo, we assume that an "official" binary is # being created, and thus we install things into specific locations.