summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac39
1 files changed, 24 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac
index 72f333e..c46ff40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
- AC_INIT([suricata],[7.0.4])
+ AC_INIT([suricata],[7.0.5])
m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])AM_SILENT_RULES([yes])
AC_CONFIG_HEADERS([src/autoconf.h])
AC_CONFIG_SRCDIR([src/suricata.c])
@@ -1575,12 +1575,12 @@
echo
exit 1
fi
- PKG_CHECK_MODULES(LIBHTPMINVERSION, [htp >= 0.5.47],[libhtp_minver_found="yes"],[libhtp_minver_found="no"])
+ PKG_CHECK_MODULES(LIBHTPMINVERSION, [htp >= 0.5.48],[libhtp_minver_found="yes"],[libhtp_minver_found="no"])
if test "$libhtp_minver_found" = "no"; then
PKG_CHECK_MODULES(LIBHTPDEVVERSION, [htp = 0.5.X],[libhtp_devver_found="yes"],[libhtp_devver_found="no"])
if test "$libhtp_devver_found" = "no"; then
echo
- echo " ERROR! libhtp was found but it is neither >= 0.5.47, nor the dev 0.5.X"
+ echo " ERROR! libhtp was found but it is neither >= 0.5.48, nor the dev 0.5.X"
echo
exit 1
fi
@@ -2480,21 +2480,30 @@ return 0;
AM_CONDITIONAL([HAS_FUZZLDFLAGS], [test "x$has_sanitizefuzzer" = "xyes"])
-# get revision
- if test -f ./revision; then
- REVISION=`cat ./revision`
- AC_DEFINE_UNQUOTED([REVISION],[${REVISION}],[Git revision])
+# get git revision and last commit date
+ AC_PATH_PROG(HAVE_GIT_CMD, git, "no")
+ if test "$HAVE_GIT_CMD" != "no"; then
+ if [ test -e .git ]; then
+ REVISION=`git rev-parse --short HEAD`
+ LAST_COMMIT_DATE=`git log -1 --date=short --pretty=format:%cd`
+ REVISION="$REVISION $LAST_COMMIT_DATE"
+ AC_DEFINE_UNQUOTED([REVISION],[${REVISION}],[Git revision])
+ fi
+ fi
+
+# Get the release date. If LAST_COMMIT_DATE was set in the previous
+# step, use it, otherwise parse it from the ChangeLog.
+ AC_MSG_CHECKING([for release date])
+ if test "x$LAST_COMMIT_DATE" != "x"; then
+ RELEASE_DATE=$LAST_COMMIT_DATE
else
- AC_PATH_PROG(HAVE_GIT_CMD, git, "no")
- if test "$HAVE_GIT_CMD" != "no"; then
- if [ test -d .git ]; then
- REVISION=`git rev-parse --short HEAD`
- DATE=`git log -1 --date=short --pretty=format:%cd`
- REVISION="$REVISION $DATE"
- AC_DEFINE_UNQUOTED([REVISION],[${REVISION}],[Git revision])
- fi
+ RELEASE_DATE=`awk '/^[[0-9\.]]+ -- [[0-9]][[0-9]][[0-9]][[0-9]]-[[0-9]][[0-9]]-[[0-9]][[0-9]]/ { print $3; exit }' $srcdir/ChangeLog`
+ if test "x$RELEASE_DATE" = "x"; then
+ AC_MSG_ERROR([Failed to determine release date])
fi
fi
+ AC_MSG_RESULT([${RELEASE_DATE}])
+ AC_SUBST(RELEASE_DATE)
# get MAJOR_MINOR version for embedding in configuration file.
MAJOR_MINOR=`expr "${PACKAGE_VERSION}" : "\([[0-9]]\+\.[[0-9]]\+\).*"`