From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3s4v-00048K-QL for qemu-devel@nongnu.org; Mon, 07 Nov 2016 17:07:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3s4u-0001Zu-Vn for qemu-devel@nongnu.org; Mon, 07 Nov 2016 17:07:45 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:58715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3s4u-0001Zb-On for qemu-devel@nongnu.org; Mon, 07 Nov 2016 17:07:44 -0500 Date: Mon, 7 Nov 2016 23:07:41 +0100 From: Samuel Thibault Message-ID: <20161107220741.GL2367@var.home> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline In-Reply-To: <20161107172656.1b2c59bb.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Cornelia Huck Cc: Michal Suchanek , QEMU Developers --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, On 7 November 2016 at 13:38, Michal Suchanek wrote: > - curses_inc_list="$($pkg_config --cflags ncursesw 2>/dev/null):" > + curses_inc_list="$($pkg_config --cflags ncursesw 2>/dev/null)-I/usr/include/ncursesw:" Cornelia Huck, on Mon 07 Nov 2016 17:26:56 +0100, wrote: > + if [ "$curses_inc_list" == ":" ]; then > + # some systems don't provide a proper .pc file for ncursesw > + curses_inc_list="-I/usr/include/ncursesw:" > + fi Could you rather try the attached patch? Samuel --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch diff --git a/configure b/configure index fd6f898..e200aa8 100755 --- a/configure +++ b/configure @@ -2926,7 +2926,7 @@ if test "$curses" != "no" ; then curses_inc_list="$($pkg_config --cflags ncurses 2>/dev/null):" curses_lib_list="$($pkg_config --libs ncurses 2>/dev/null):-lpdcurses" else - curses_inc_list="$($pkg_config --cflags ncursesw 2>/dev/null):" + curses_inc_list="$($pkg_config --cflags ncursesw 2>/dev/null):-I/usr/include/ncursesw:" curses_lib_list="$($pkg_config --libs ncursesw 2>/dev/null):-lncursesw:-lcursesw" fi curses_found=no @@ -2955,6 +2955,9 @@ EOF break fi done + if test "$curses_found" = yes ; then + break + fi done unset IFS if test "$curses_found" = "yes" ; then --fdj2RfSjLxBAspz7--