From 9370ecff74f35a6f352e072520dc6a2136083c5c Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 2 Mar 2012 16:24:21 +0000 Subject: [PATCH] autoconf: Set LLVM_CONFIGTIME to a stable value when using --disable-timestamps. llvm-svn: 151921 --- llvm/autoconf/configure.ac | 5 +++++ llvm/configure | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac index b28508e67c4b..e18725d97404 100644 --- a/llvm/autoconf/configure.ac +++ b/llvm/autoconf/configure.ac @@ -1447,6 +1447,11 @@ AC_SUBST(LLVM_INFODIR) AC_SUBST(LLVM_MANDIR) AC_SUBST(LLVM_CONFIGTIME) +dnl Disable embedding timestamps in the build directory, with ENABLE_TIMESTAMPS. +if test "${ENABLE_TIMESTAMPS}" = "0"; then + LLVM_CONFIGTIME="(timestamp not enabled)" +fi + dnl Place the various directories into the config.h file as #defines so that we dnl can know about the installation paths within LLVM. AC_DEFINE_UNQUOTED(LLVM_PREFIX,"$LLVM_PREFIX", diff --git a/llvm/configure b/llvm/configure index a65e9e4d9465..a6ed7a1930a7 100755 --- a/llvm/configure +++ b/llvm/configure @@ -20820,6 +20820,10 @@ LLVM_CONFIGTIME=`date` +if test "${ENABLE_TIMESTAMPS}" = "0"; then + LLVM_CONFIGTIME="(timestamp not enabled)" +fi + cat >>confdefs.h <<_ACEOF #define LLVM_PREFIX "$LLVM_PREFIX"