From 35b5ca0f68ef772bff9d1559d79a672eb4a1ccd4 Mon Sep 17 00:00:00 2001 From: Bertho Stultiens Date: Fri, 29 May 2026 08:42:20 +0200 Subject: [PATCH] build: fail configure if libcap-dev is missing. --- src/configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/configure.ac b/src/configure.ac index 3afc17337f2..f294f68b895 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -1544,6 +1544,9 @@ if test "x$HAVE_LIBFMT" = "xno"; then AC_MSG_ERROR([libfmt header not found. Install with 'sudo apt-get install libfmt-dev']) fi +AC_CHECK_HEADERS([sys/capability.h], [], [ + AC_MSG_ERROR([libcap header not found. Please install libcap-dev]) +]) AC_CHECK_HEADERS([editline/readline.h histedit.h], [], [ AC_MSG_ERROR([libedit headers not found. Please install libedit-dev or libedit-devel.]) ])