[], [with_stable_release=0])
AC_SUBST([STABLE_RELEASE],[$with_stable_release])
AC_SUBST([NFT_VERSION], [$(echo "${VERSION}" | tr '.' ',')])
-# Current date should be fetched exactly once per build,
-# so have 'make' call date and pass the value to every 'gcc' call
-AC_SUBST([MAKE_STAMP], ["\$(shell date +%s)"])
+AC_SUBST([BUILD_STAMP], [$(date +%s)])
AC_ARG_ENABLE([distcheck],
AS_HELP_STRING([--enable-distcheck], [Build for distcheck]),
#ifndef NFTABLES_NFTVERSION_H
#define NFTABLES_NFTVERSION_H
+#define BUILD_STAMP @BUILD_STAMP@
+
static char nftversion[] = {
@NFT_VERSION@,
@STABLE_RELEASE@
};
static char nftbuildstamp[] = {
- ((uint64_t)MAKE_STAMP >> 56) & 0xff,
- ((uint64_t)MAKE_STAMP >> 48) & 0xff,
- ((uint64_t)MAKE_STAMP >> 40) & 0xff,
- ((uint64_t)MAKE_STAMP >> 32) & 0xff,
- ((uint64_t)MAKE_STAMP >> 24) & 0xff,
- ((uint64_t)MAKE_STAMP >> 16) & 0xff,
- ((uint64_t)MAKE_STAMP >> 8) & 0xff,
- ((uint64_t)MAKE_STAMP >> 0) & 0xff,
+ ((uint64_t)BUILD_STAMP >> 56) & 0xff,
+ ((uint64_t)BUILD_STAMP >> 48) & 0xff,
+ ((uint64_t)BUILD_STAMP >> 40) & 0xff,
+ ((uint64_t)BUILD_STAMP >> 32) & 0xff,
+ ((uint64_t)BUILD_STAMP >> 24) & 0xff,
+ ((uint64_t)BUILD_STAMP >> 16) & 0xff,
+ ((uint64_t)BUILD_STAMP >> 8) & 0xff,
+ ((uint64_t)BUILD_STAMP >> 0) & 0xff,
};
#endif /* !defined(NFTABLES_NFTVERSION_H) */