]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: fix cap-ng configure flag handling
authorMike Frysinger <vapier@gentoo.org>
Thu, 7 Apr 2016 16:17:43 +0000 (12:17 -0400)
committerKarel Zak <kzak@redhat.com>
Tue, 12 Apr 2016 09:33:15 +0000 (11:33 +0200)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
configure.ac

index e42a2c4fd9a95b40af1d9e537c521b8cd3c7e348..9e0e28bc19f87d661603c27215940c7e29d98468 100644 (file)
@@ -1186,10 +1186,13 @@ AC_CHECK_FUNCS([setns])
 
 
 AC_ARG_WITH([cap_ng],
-  AS_HELP_STRING([--without-capng], [compile without libcap-ng]),
+  AS_HELP_STRING([--without-cap-ng], [compile without libcap-ng]),
   [], [with_cap_ng=auto]
 )
-AS_IF([test "x$with_cap_ng" = xno], [have_cap_ng=no],[
+AS_IF([test "x$with_cap_ng" = xno], [
+  AM_CONDITIONAL([HAVE_CAP_NG], [false])
+  have_cap_ng=no
+],[
   UL_CHECK_LIB([cap-ng], [capng_apply], [cap_ng])
 ])