summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2013-05-24 16:07:00 -0400
committerMichael Tokarev <mjt@tls.msk.ru>2013-06-01 14:25:38 +0400
commitcfeda5f4b8710b6ba14131df8e287021b729b784 (patch)
tree0aee0cfe4387b11cf642dc60f98f4760b8dc9b50 /configure
parentd720e9831cab9934079d36a5fe3ebcdded4cb3a7 (diff)
downloadqemu-cfeda5f4b8710b6ba14131df8e287021b729b784.tar.gz
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 <emaste@freebsd.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
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