From 73ec73ed7fe20ec6427dba63e52534136f3c19bd Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Sun, 2 Jul 2023 12:59:40 +0200 Subject: [PATCH] FreeBSD: add default to configure.ac FreeBSD 13 versions Also add comment to README.freebsd about ensuring that jails set "uname -r" to be something compatible with the normal RELEASE/STABLE/CURRENT releases. --- README.freebsd | 4 ++++ configure.ac | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.freebsd b/README.freebsd index 90eefc89b9..d197efcaf3 100644 --- a/README.freebsd +++ b/README.freebsd @@ -21,6 +21,10 @@ $ ./configure --prefix=/where/ever $ gmake $ gmake install +If you are using a jail for building, make sure that it is configured so that +"uname -r" returns a string that matches the pattern "XX.Y-*" where XX is the +major version (12, 13, 14 ...) and Y is the minor version (0, 1, 2, 3). + Known Limitations (June 2022) 0. Be aware that if you use a wrapper script and run Valgrind on the wrapper diff --git a/configure.ac b/configure.ac index 1d4164a7d8..4dbb1753c7 100755 --- a/configure.ac +++ b/configure.ac @@ -444,6 +444,10 @@ case "${host_os}" in AC_DEFINE([FREEBSD_VERS], FREEBSD_13_2, [FreeBSD version]) freebsd_vers=$freebsd_13_2 ;; + *) + AC_MSG_RESULT([unsupported (${kernel})]) + AC_MSG_ERROR([Valgrind works on FreeBSD 10.x to 14.x]) + ;; esac ;; 14.*) -- 2.47.2