From: Steve Dickson <SteveD@redhat.com>
To: Jeff Layton <jlayton@redhat.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH v2 10/10] nfsdcltrack: flip the default in autoconf to "yes" for it
Date: Thu, 25 Oct 2012 08:57:17 -0400 [thread overview]
Message-ID: <5089372D.1050501@RedHat.com> (raw)
In-Reply-To: <1351092359-25842-11-git-send-email-jlayton@redhat.com>
On 24/10/12 11:25, Jeff Layton wrote:
> Allow nfsdcltrack to be built by default if all of the requirements
> for it are in place. Set the initial state of $enable_nfsdcltrack
> to "maybe", and fix the appropriate tests to just disable building
> the binary unless someone explicitly requests it.
Hmm... I'm not sure I too keen on this "maybe" state...
So if no flags are given to ./configuration, and not
all the requirements to build nfsdcltrack exists, the configuration
will succeed, but the command will not be build. Correct?
But if the --enable_nfsdcltrack flag is given and not all
the requirements to build nfsdcltrack exist the configuration
will fail.
I'm thinking we might want to make it a bit more binary. Either
on or off. Like it is with the other conditionally built
commands...
steved.
>
> Signed-off-by: Jeff Layton <jlayton@redhat.com>
> ---
> configure.ac | 24 +++++++++++++++++-------
> 1 file changed, 17 insertions(+), 7 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 65d1bea..aa41e0a 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -187,9 +187,9 @@ fi
>
> AC_ARG_ENABLE(nfsdcltrack,
> [AC_HELP_STRING([--enable-nfsdcltrack],
> - [enable NFSv4 clientid tracking programs @<:@default=no@:>@])],
> + [enable NFSv4 clientid tracking programs @<:@default=yes@:>@])],
> enable_nfsdctrack=$enableval,
> - enable_nfsdcltrack="no")
> + enable_nfsdcltrack="maybe")
>
> dnl Check for TI-RPC library and headers
> AC_LIBTIRPC
> @@ -269,12 +269,22 @@ if test "$enable_nfsv4" = yes; then
> dnl Check for sqlite3
> AC_SQLITE3_VERS
>
> - if test "$enable_nfsdcltrack" = "yes"; then
> + if test "$enable_nfsdcltrack" != "no"; then
> AC_CHECK_HEADERS([libgen.h sys/inotify.h], ,
> - AC_MSG_ERROR([Cannot find header needed for nfsdcltrack]))
> -
> - if test "$libsqlite3_cv_is_recent" != "yes" ; then
> + if test "$enable_nfsdcltrack" = "yes"; then
> + AC_MSG_ERROR([Cannot find header needed for nfsdcltrack])
> + else
> + AC_MSG_WARN([Cannot find header needed for nfsdcltrack. Disabling it.])
> + enable_nfsdcltrack="no"
> + fi
> + )
> + fi
> + if test "$libsqlite3_cv_is_recent" != "yes" ; then
> + if test "$enable_nfsdcltrack" = "yes"; then
> AC_MSG_ERROR([nfsdcltrack requires sqlite3])
> + elif test "$enable_nfsdcltrack" != "no"; then
> + AC_MSG_WARN([nfsdcltrack requires sqlite3. Disabling it.])
> + enable_nfsdcltrack="no"
> fi
> fi
>
> @@ -292,7 +302,7 @@ if test "$enable_nfsv41" = yes; then
> fi
>
> dnl enable nfsidmap when its support by libnfsidmap
> -AM_CONDITIONAL(CONFIG_NFSDCLTRACK, [test "$enable_nfsdcltrack" = "yes" ])
> +AM_CONDITIONAL(CONFIG_NFSDCLTRACK, [test "$enable_nfsdcltrack" != "no" ])
> AM_CONDITIONAL(CONFIG_NFSIDMAP, [test "$ac_cv_header_keyutils_h$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = "yesyes"])
>
>
>
next prev parent reply other threads:[~2012-10-25 12:57 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-24 15:25 [PATCH v2 00/10] nfsdcltrack: create a new usermodehelper upcall program for tracking clients Jeff Layton
2012-10-24 15:25 ` [PATCH v2 01/10] nfsdcltrack: fix segfault in sqlite debug logging Jeff Layton
2012-10-24 15:25 ` [PATCH v2 02/10] nfsdcltrack: rename the nfsdcld directory and options to nfsdcltrack Jeff Layton
2012-10-24 15:25 ` [PATCH v2 03/10] nfsdcltrack: remove pointless sqlite_topdir variable Jeff Layton
2012-10-24 15:25 ` [PATCH v2 04/10] nfsdcltrack: break out a function to open the database handle Jeff Layton
2012-10-24 15:25 ` [PATCH v2 05/10] nfsdcltrack: add a new "one-shot" program for manipulating the client tracking db Jeff Layton
2012-10-25 12:56 ` Steve Dickson
2012-10-25 13:53 ` Jeff Layton
2012-10-25 14:30 ` Steve Dickson
2012-10-24 15:25 ` [PATCH v2 06/10] nfsdcltrack: add a legacy transition mechanism Jeff Layton
2012-10-24 15:25 ` [PATCH v2 07/10] nfsdcltrack: add a manpage for nfsdcltrack Jeff Layton
2012-10-24 15:25 ` [PATCH v2 08/10] nfsdcltrack: remove the nfsdcld daemon Jeff Layton
2012-10-24 15:25 ` [PATCH v2 09/10] nfsdcltrack: update the README about server startup order Jeff Layton
2012-10-24 15:25 ` [PATCH v2 10/10] nfsdcltrack: flip the default in autoconf to "yes" for it Jeff Layton
2012-10-25 12:57 ` Steve Dickson [this message]
2012-10-25 14:07 ` Jeff Layton
2012-10-25 14:28 ` Steve Dickson
2012-10-25 14:34 ` Jeff Layton
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=5089372D.1050501@RedHat.com \
--to=steved@redhat.com \
--cc=jlayton@redhat.com \
--cc=linux-nfs@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;
as well as URLs for NNTP newsgroup(s).