diff options
author | Kamil Rytarowski | 2017-04-26 12:50:27 +0200 |
---|---|---|
committer | Michael Tokarev | 2017-06-04 17:42:55 +0200 |
commit | 271f37abb510607ca7650e40951284692a67579a (patch) | |
tree | fed4b6affa3f43c0ff2791f1f3ed063a4a1b8032 /configure | |
parent | tests/libqtest: Print error instead of aborting when env variable is missing (diff) | |
download | qemu-271f37abb510607ca7650e40951284692a67579a.tar.gz qemu-271f37abb510607ca7650e40951284692a67579a.tar.xz qemu-271f37abb510607ca7650e40951284692a67579a.zip |
configure: Detect native NetBSD curses(3)
NetBSD ships with traditional BSD curses with compatibility with ncurses.
qemu works nicely with the basesystem version of curses(3) from NetBSD.
The only mismatch between curses(3) and ncurses is the lack of
curses_version() in the NetBSD version. This function is used solely in
the configure script, therefore eliminate it from the curses(3) detection.
With this change applied, configure detects correctly curses frontend.
Signed-off-by: Kamil Rytarowski <n54@gmx.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -3042,14 +3042,13 @@ if test "$curses" != "no" ; then #include <curses.h> #include <wchar.h> int main(void) { - const char *s = curses_version(); wchar_t wch = L'w'; setlocale(LC_ALL, ""); resize_term(0, 0); addwstr(L"wide chars\n"); addnwstr(&wch, 1); add_wch(WACS_DEGREE); - return s != 0; + return 0; } EOF IFS=: |