Browse Source

* Retrieve the configure.ac timestamp at configure time and store it in

a C macro for better FIGlet emulation.
pull/1/head
Sam Hocevar sam 18 years ago
parent
commit
d1ba08cdf0
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      configure.ac

+ 10
- 0
configure.ac View File

@@ -52,6 +52,16 @@ PKG_CHECK_MODULES(cucul, cucul >= 0.99.beta6,
[AC_MSG_RESULT(no)
AC_MSG_ERROR([you need libcucul version 0.99.beta6 or later])])

AC_CACHE_CHECK([for build 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_DEFINE_UNQUOTED(DATE, "$ac_build_date", [Define the version date])

# Optimizations
CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
# Code qui fait des warnings == code de porc == deux baffes dans ta gueule


Loading…
Cancel
Save