From: Steven Barth <cyrus@openwrt.org>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [nft PATCH] build: allow disabling libreadline-support
Date: Thu, 09 Oct 2014 17:02:41 +0200 [thread overview]
Message-ID: <1412866961.4287.1.camel@openwrt.org> (raw)
In-Reply-To: <20141009122648.GA17919@salvia>
Hi Pablo,
> >
> > -AC_CHECK_LIB([readline], [readline], ,
> > - AC_MSG_ERROR([No suitable version of libreadline found]))
> > +
> > +AC_ARG_WITH([libreadline], [AS_HELP_STRING([--without-libreadline],
> > + [Disable libreadline support (no interactive CLI)])], [],
> > + [with_libreadline=yes])
>
> I think, better call this option "without-cli" ?
OK, guess that's fine as well.
>
> Please, add the:
>
> #ifdef HAVE_LIBREADLINE
>
> in cli_init() and cli_exit() in cli.c. It would be good if the cli_init()
> returns a negative value, so you spot the error message below.
The problem I see here that this would basically mean enclosing most of
cli.c in #ifdef HAVE_LIBREADLINE to avoid depending on readline-headers
and having a rather awkward stub of cli_init in the no-readline case.
My main point of excluding cli.c in the Makefile from the start is to
avoid this madness.
Cheers,
Steven
next prev parent reply other threads:[~2014-10-09 15:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-01 21:59 [nft PATCH] build: allow disabling libreadline-support Steven Barth
2014-10-09 12:26 ` Pablo Neira Ayuso
2014-10-09 15:02 ` Steven Barth [this message]
2014-10-09 16:33 ` Pablo Neira Ayuso
2014-10-09 20:48 ` [nft PATCHv2] " Steven Barth
2014-10-10 10:23 ` Pablo Neira Ayuso
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=1412866961.4287.1.camel@openwrt.org \
--to=cyrus@openwrt.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.