* Do not cache ac_build_date.
This commit is contained in:
parent
2a317ad012
commit
9428fa4d2f
1 changed files with 8 additions and 8 deletions
16
configure.ac
16
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
|
||||
|
|
Loading…
Reference in a new issue