From nobody Tue May 7 20:17:54 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1493204359606334.662408819239; Wed, 26 Apr 2017 03:59:19 -0700 (PDT) Received: from localhost ([::1]:54259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3KfG-0006cB-Do for importer@patchew.org; Wed, 26 Apr 2017 06:59:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3KeA-000607-Ft for qemu-devel@nongnu.org; Wed, 26 Apr 2017 06:58:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3Ke5-0003mA-MS for qemu-devel@nongnu.org; Wed, 26 Apr 2017 06:58:10 -0400 Received: from mout.gmx.net ([212.227.17.21]:59288) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3Ke5-0003lq-DG for qemu-devel@nongnu.org; Wed, 26 Apr 2017 06:58:05 -0400 Received: from localhost.localdomain ([185.58.161.191]) by mail.gmx.com (mrgmx102 [212.227.17.174]) with ESMTPSA (Nemesis) id 0Lo3IS-1djF2302hc-00fw5d; Wed, 26 Apr 2017 12:58:03 +0200 From: Kamil Rytarowski To: qemu-devel@nongnu.org Date: Wed, 26 Apr 2017 12:50:27 +0200 Message-Id: <20170426105027.10666-1-n54@gmx.com> X-Mailer: git-send-email 2.12.2 X-Provags-ID: V03:K0:h5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ating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.21 Subject: [Qemu-devel] [PATCH] configure: Detect native NetBSD curses(3) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Kamil Rytarowski Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" NetBSD ships with traditional BSD curses with compatibility with ncurses. qemu works nicely with the basesystem version of curses(3) from NetBSD. The only mismatch between curses(3) and ncurses is the lack of curses_version() in the NetBSD version. This function is used solely in the configure script, therefore eliminate it from the curses(3) detection. With this change applied, configure detects correctly curses frontend. Signed-off-by: Kamil Rytarowski Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- configure | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure b/configure index c35acf1192..17dc7224f7 100755 --- a/configure +++ b/configure @@ -3034,14 +3034,13 @@ if test "$curses" !=3D "no" ; then #include #include int main(void) { - const char *s =3D curses_version(); wchar_t wch =3D L'w'; setlocale(LC_ALL, ""); resize_term(0, 0); addwstr(L"wide chars\n"); addnwstr(&wch, 1); add_wch(WACS_DEGREE); - return s !=3D 0; + return 0; } EOF IFS=3D: --=20 2.12.2