All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>,
	Xen-devel <xen-devel@lists.xenproject.org>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: [PATCH for 4.6 v2] configure: don't silently disable systemd support
Date: Thu, 10 Sep 2015 16:16:28 +0100	[thread overview]
Message-ID: <1441898188.24450.386.camel@citrix.com> (raw)
In-Reply-To: <1441883883-20724-1-git-send-email-wei.liu2@citrix.com>

On Thu, 2015-09-10 at 12:18 +0100, Wei Liu wrote:
> Originally when user runs ./configure --enable-systemd and systemd
> development library is not available the build system silently disables
> systemd support. This is not in line with normal expectation.
> 
> Instead, configure should error out when user has asked for systemd
> support but development libraries can't be found.
> 
> Reported-by: George Dunlap <george.dunlap@eu.citrix.com>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>

Acked + applied to staging + staging-4.6

> ---
> v2: invert the test to check for explicit "yes" value.
> 
> Please rerun ./autogen.sh.
> ---
>  m4/systemd.m4 | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/m4/systemd.m4 b/m4/systemd.m4
> index 8284993..e4b1aa5 100644
> --- a/m4/systemd.m4
> +++ b/m4/systemd.m4
> @@ -85,7 +85,11 @@ AC_DEFUN([AX_CHECK_SYSTEMD], [
>  		AC_DEFINE([HAVE_SYSTEMD], [1], [Systemd available and
> enabled])
>  			systemd=y
>  			AX_CHECK_SYSTEMD_LIBS()
> -	    ],[systemd=n])
> +	    ],[
> +		AS_IF([test "x$enable_systemd" = "xyes"],
> +			[AC_MSG_ERROR([Unable to find systemd
> development library])],
> +			[systemd=n])
> +	    ])
>  	],[systemd=n])
>  ])
>  

  reply	other threads:[~2015-09-10 15:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10 11:18 [PATCH for 4.6 v2] configure: don't silently disable systemd support Wei Liu
2015-09-10 15:16 ` Ian Campbell [this message]
2015-09-11 13:27   ` Ian Jackson

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=1441898188.24450.386.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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.