From: Mike Frysinger <vapier@gentoo.org>
To: Marcus Hoffmann <marcus.hoffmann@fu-berlin.de>
Cc: util-linux@vger.kernel.org
Subject: Re: unrecognized options: --without-capng
Date: Thu, 7 Apr 2016 12:18:02 -0400 [thread overview]
Message-ID: <20160407161802.GM6588@vapier.lan> (raw)
In-Reply-To: <570667FB.8080104@fu-berlin.de>
[-- Attachment #1.1: Type: text/plain, Size: 1635 bytes --]
On 07 Apr 2016 16:00, Marcus Hoffmann wrote:
> Dear all,
> in experimenting a bit with configure options I found the
> --without-capng option (as reported by configure --help) giving the
> following warning (and having no effect):
> > configure: WARNING: unrecognized options: --without-capng
>
> Looking into configure.ac I found the option should probably be named
> --without-cap_ng (AC_ARG_WITH([cap_ng],...).
yes, the help string is wrong. it should be:
--- a/configure.ac
+++ b/configure.ac
@@ -1182,7 +1182,7 @@ 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],[
> But using this the configure script dies with the following message:
>
> > configure: error: conditional "HAVE_CAP_NG" was never defined.
> > Usually this means the macro was only invoked conditionally.
>
> --without-cap-ng produces the same result.
>
> I tried fiddling around with the autoconf macros but got no further than
> that.
the helper macros can sometimes obscure things
--- a/configure.ac
+++ b/configure.ac
@@ -1189,7 +1189,10 @@ AC_ARG_WITH([cap_ng],
AS_HELP_STRING([--without-capng], [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])
])
-mike
[-- Attachment #1.2: conf.patch --]
[-- Type: text/x-diff, Size: 952 bytes --]
From 110c2c94c59742e9879f2f39e6aec79925dc1592 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Thu, 7 Apr 2016 12:17:43 -0400
Subject: [PATCH] build-sys: fix cap-ng configure flag handling
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
configure.ac | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index e42a2c4..9e0e28b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])
])
--
2.7.4
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-04-07 16:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-07 10:54 v2.29 plan: kill mtab Karel Zak
2016-04-07 11:22 ` Ruediger Meier
2016-04-07 14:00 ` unrecognized options: --without-capng Marcus Hoffmann
2016-04-07 16:18 ` Mike Frysinger [this message]
2016-04-12 9:35 ` Karel Zak
2016-04-13 20:58 ` v2.29 plan: kill mtab Ruediger Meier
2016-04-14 12:43 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160407161802.GM6588@vapier.lan \
--to=vapier@gentoo.org \
--cc=marcus.hoffmann@fu-berlin.de \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox