From: Wei Liu Subject: Re: [PATCH for 4.6] configure: don't silently disable systemd support Date: Thu, 10 Sep 2015 12:18:40 +0100 Message-ID: <20150910111840.GA1695@zion.uk.xensource.com> References: <1441838125-19812-1-git-send-email-wei.liu2@citrix.com> <1441882456.24450.371.camel@citrix.com> <20150910110409.GH8496@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZZzsK-0002KK-Ba for xen-devel@lists.xenproject.org; Thu, 10 Sep 2015 11:18:44 +0000 Content-Disposition: inline In-Reply-To: <20150910110409.GH8496@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Xen-devel , Wei Liu , Ian Jackson List-Id: xen-devel@lists.xenproject.org On Thu, Sep 10, 2015 at 12:04:10PM +0100, Wei Liu wrote: > On Thu, Sep 10, 2015 at 11:54:16AM +0100, Ian Campbell wrote: > > On Wed, 2015-09-09 at 23:35 +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 > > > Signed-off-by: Wei Liu > > > --- > > > 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..84508a1 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" != "x"], > > > > At this point the value of enable_systemd is either empty or ...what...? I > > think "yes"?, with "no" having been ruled out earlier? > > > > Or can it be just "y"? > > > > At this point, it can't be no. It's either empty or "yes" (or "y"?). I For the record, it was "yes".