Code

Moved definition of BUILD_DATE from configure to src/Makefile.
authorSebastian Harl <sh@tokkee.org>
Sun, 2 May 2010 21:33:49 +0000 (23:33 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 2 May 2010 21:33:49 +0000 (23:33 +0200)
configure.ac
src/Makefile.am

index e1c988f7603ce830c7f0a801b0bbee58ab48da69..254580cf2e4ac6b86331e5ff62ee300ae58d87e7 100644 (file)
@@ -186,10 +186,6 @@ if test "x$enable_strict_checks" = "xyes"; then
 fi
 AC_SUBST([STRICT_CFLAGS])
 
-build_date="`date --utc '+%F %T'` (UTC)"
-AC_DEFINE_UNQUOTED([BUILD_DATE], ["$build_date"],
-               [Define to the date the package has been built on.])
-
 AC_CHECK_HEADERS(libgen.h)
 
 AC_CONFIG_FILES([Makefile src/Makefile])
@@ -205,7 +201,7 @@ install the package into $prefix.
 Configuration summary:
 
   package version: $PACKAGE_VERSION
-  build date: $build_date
+  build date: `date --utc '+%F %T'` (UTC)
 
 Please report bugs to $PACKAGE_BUGREPORT.
 
index 5c8a5ceb0563f203be31192e81f3fa1ceaca5a70..4787460c94a618241a765019907c7dca76d8883a 100644 (file)
@@ -11,6 +11,7 @@ libfoobar_la_LDFLAGS = -version-info 0:0:0
 bin_PROGRAMS = fb
 
 fb_SOURCES = fb.c foobar.h
+fb_CFLAGS = $(AM_CFLAGS) -DBUILD_DATE="\"$$( date --utc '+%F %T' ) (UTC)\""
 fb_LDADD = libfoobar.la
 
 ../version: FORCE