]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
configure.ac: fix broken cap check 472/head
authoreater <hello@eaterofco.de>
Tue, 16 May 2023 04:40:24 +0000 (04:40 +0000)
committerGitHub <noreply@github.com>
Tue, 16 May 2023 04:40:24 +0000 (04:40 +0000)
configure.ac

index 3175d56bbfe20d049356992bc2f113031ff266ad..286ede60b485a99565ee1177e436328a6c60e4b4 100644 (file)
@@ -127,9 +127,13 @@ AS_IF([test "x$with_ncurses" = "xyes"],
 ])
 AM_CONDITIONAL([WITH_CURSES], [test "x$with_ncurses" = xyes])
 
-AC_CHECK_LIB([cap], [cap_set_proc], [have_cap="yes"],
-  AS_IF([test "$host_os" = linux-gnu],
-    AC_MSG_WARN([Capabilities support is strongly recommended for increased security.  See SECURITY for more information.])))
+have_cap="yes"
+AC_CHECK_LIB([cap], [cap_set_proc], [], [
+  have_cap="no"
+  AS_IF([test "$host_os" = linux-gnu], [
+    AC_MSG_WARN([Capabilities support is strongly recommended for increased security.  See SECURITY for more information.])
+  ])
+])
 
 # Enable ipinfo
 AC_ARG_WITH([ipinfo],