From patchwork Fri May 24 20:07:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ed Maste X-Patchwork-Id: 246284 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9D42F2C0178 for ; Sat, 25 May 2013 06:07:32 +1000 (EST) Received: from localhost ([::1]:41627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfyGw-0008N9-PQ for incoming@patchwork.ozlabs.org; Fri, 24 May 2013 16:07:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfyGb-0008LK-03 for qemu-devel@nongnu.org; Fri, 24 May 2013 16:07:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfyGV-00075L-2A for qemu-devel@nongnu.org; Fri, 24 May 2013 16:07:08 -0400 Received: from [216.171.111.232] (port=24413 helo=freebsd.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfyGU-00074z-Sq for qemu-devel@nongnu.org; Fri, 24 May 2013 16:07:03 -0400 Received: from emaste (uid 1001) (envelope-from emaste@freebsd.org) id 9ce4d by freebsd.org (DragonFly Mail Agent 1); Fri, 24 May 2013 16:07:01 -0400 From: Ed Maste To: qemu-devel@nongnu.org Date: Fri, 24 May 2013 16:07:00 -0400 Message-Id: <1369426020-39060-1-git-send-email-emaste@freebsd.org> X-Mailer: git-send-email 1.7.11.5 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 216.171.111.232 Cc: qemu-trivial@nongnu.org, Ed Maste Subject: [Qemu-devel] [PATCH] configure: try pkg-config ncurses first X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org When probing for ncurses, try pkg-config first rather than after explicit -lncurses and -lcurses. This fixes static linking in the case that ncurses has additional dependencies, such as -ltinfo (as on FreeBSD). Signed-off-by: Ed Maste Reviewed-by: Andreas Färber --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index cfdb564..7c99ef9 100755 --- a/configure +++ b/configure @@ -2157,7 +2157,7 @@ fi if test "$mingw32" = "yes" ; then curses_list="-lpdcurses" else - curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses 2>/dev/null)" + curses_list="$($pkg_config --libs ncurses 2>/dev/null):-lncurses:-lcurses" fi if test "$curses" != "no" ; then