autoconf: Set LLVM_CONFIGTIME to a stable value when using --disable-timestamps.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 2 Mar 2012 16:24:21 +0000 (16:24 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 2 Mar 2012 16:24:21 +0000 (16:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151921 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac
configure

index b28508e67c4b3fe3a4f1dd0c97197b54de18fea4..e18725d9740446b7615f2ae941d227007bf20af1 100644 (file)
@@ -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",
index a65e9e4d9465b4018ce0ff5ae9c10ce71c8399f2..a6ed7a1930a72c2796bd0e56a4b592a6894a89aa 100755 (executable)
--- a/configure
+++ b/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"