Received: from eggs.gnu.org ([208.118.235.92]:44850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUGYv-0002vE-GS for qemu-devel@nongnu.org; Mon, 22 Apr 2013 09:13:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUGYu-0007G0-9V for qemu-devel@nongnu.org; Mon, 22 Apr 2013 09:13:41 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:54064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUGYu-0007Fr-3h for qemu-devel@nongnu.org; Mon, 22 Apr 2013 09:13:40 -0400 Received: by mail-wi0-f182.google.com with SMTP id m6so4332089wiv.9 for ; Mon, 22 Apr 2013 06:13:39 -0700 (PDT) Date: Mon, 22 Apr 2013 15:13:36 +0200 From: Stefan Hajnoczi Message-ID: <20130422131336.GE21317@stefanha-thinkpad.redhat.com> References: <1366359399-27573-1-git-send-email-rjones@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1366359399-27573-1-git-send-email-rjones@redhat.com> Subject: Re: [Qemu-devel] [PATCH] block/ssh: Require libssh2 >= 1.2.8. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: sw@weilnetz.de, qemu-devel@nongnu.org On Fri, Apr 19, 2013 at 09:16:39AM +0100, Richard W.M. Jones wrote: > From: "Richard W.M. Jones" > > libssh2 >= 1.2.8 is required to enable this block device (because > that version introduced the libssh2_session_handshake call). > > Change the test to use pkg-config exclusively. If the user requests > --enable-libssh2 and the minimum version is not available, then the > following error is displayed: > > $ ./configure --enable-libssh2 > > ERROR: libssh2 >= 1.2.8 required for --enable-libssh2 > > If --enable-libssh2 is not specified, then the feature is silently > disabled if sufficiently new libssh2 is not available. > --- > configure | 24 ++++-------------------- > 1 file changed, 4 insertions(+), 20 deletions(-) Two comments: 1. This patch also drops non-pkgconfig support. I guess this is okay. 2. RHEL 5 and Debian stable do not have libssh2 1.2.8. Since this is a new feature for the QEMU 1.5 release, no one is expecting it to be available for old distros. Therefore, not a problem. Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan