mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-04 11:09:05 +00:00
configure: try pkg-config for curses
Static linkikng against ncurses may require explicit -ltinfo. In case -lcurses and -lncurses both didn't work give pkg-config a chance. Fixes #1094786 for me. Signed-off-by: Vadim Evard <v.e.evard@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
3e84b48321
commit
ecbe251fa0
5
configure
vendored
5
configure
vendored
@ -2039,7 +2039,7 @@ fi
|
||||
if test "$mingw32" = "yes" ; then
|
||||
curses_list="-lpdcurses"
|
||||
else
|
||||
curses_list="-lncurses -lcurses"
|
||||
curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses)"
|
||||
fi
|
||||
|
||||
if test "$curses" != "no" ; then
|
||||
@ -2052,13 +2052,16 @@ int main(void) {
|
||||
return s != 0;
|
||||
}
|
||||
EOF
|
||||
IFS=:
|
||||
for curses_lib in $curses_list; do
|
||||
unset IFS
|
||||
if compile_prog "" "$curses_lib" ; then
|
||||
curses_found=yes
|
||||
libs_softmmu="$curses_lib $libs_softmmu"
|
||||
break
|
||||
fi
|
||||
done
|
||||
unset IFS
|
||||
if test "$curses_found" = "yes" ; then
|
||||
curses=yes
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user