autoconf: Set LLVM_CONFIGTIME to a stable value when using --disable-timestamps.

llvm-svn: 151921
This commit is contained in:
Daniel Dunbar 2012-03-02 16:24:21 +00:00
parent 8fe5fc8521
commit 9370ecff74
2 changed files with 9 additions and 0 deletions

View 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",

4
llvm/configure vendored
View File

@ -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"