Hello,
On 7 November 2016 at 13:38, Michal Suchanek <[email protected]> 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
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