From: Ed Maste Date: Fri, 24 May 2013 20:07:00 +0000 (-0400) Subject: configure: try pkg-config ncurses first X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cfeda5f4b8710b6ba14131df8e287021b729b784;p=qmiga%2Fqemu.git configure: try pkg-config ncurses first 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 Signed-off-by: Michael Tokarev --- diff --git a/configure b/configure index e17281ea6b..08ceb437be 100755 --- a/configure +++ b/configure @@ -2157,7 +2157,7 @@ if test "$curses" != "no" ; then 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 curses_found=no cat > $TMPC << EOF