From 9428fa4d2f815596c74229e16469d6b087281366 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 10 Nov 2006 14:19:13 +0000 Subject: [PATCH] * Do not cache ac_build_date. --- configure.ac | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index 82769c0..728b5ab 100644 --- a/configure.ac +++ b/configure.ac @@ -56,14 +56,14 @@ PKG_CHECK_MODULES(cucul, cucul >= 0.99.beta9, [AC_MSG_RESULT(no) AC_MSG_ERROR([you need libcucul version 0.99.beta9 or later])]) -AC_CACHE_CHECK([for release date], - [ac_build_date], - [stamp="$(sed -ne 's/# \$Id: .*\(....-..-..\).*/\1/p;q' configure.ac)" - if date +"%e %B %Y" -d "$stamp" >/dev/null 2>&1; then - ac_build_date="$(LANG=C date +"%e %B %Y" -d "$stamp" | sed 's/^ //')" - else - ac_build_date="${stamp##*-} ${${stamp%-*}#*-} ${stamp%%-*}" - fi]) +AC_MSG_CHECKING([for release date]) +stamp="$(sed -ne 's/# \$Id: .*\(....-..-..\).*/\1/p;q' configure.ac)" + if date +"%e %B %Y" -d "$stamp" >/dev/null 2>&1; then + ac_build_date="$(LANG=C date +"%e %B %Y" -d "$stamp" | sed 's/^ //')" + else + ac_build_date="${stamp##*-} ${${stamp%-*}#*-} ${stamp%%-*}" + fi +AC_MSG_RESULT([$ac_build_date]) AC_DEFINE_UNQUOTED(DATE, "$ac_build_date", [Define the version date]) # Optimizations