Sfoglia il codice sorgente

* 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 anni fa
parent
commit
d1ba08cdf0
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. +10
    -0
      configure.ac

+ 10
- 0
configure.ac Vedi 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


Caricamento…
Annulla
Salva