From: Max Kellermann Date: Sun, 5 Nov 2017 16:31:31 +0000 (+0100) Subject: meson.build: fallback libncurses detection without pkg-config X-Git-Tag: v0.29~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fd8a8487d2e7bb45d1db1409daabe293b4445cae;p=ncmpc.git meson.build: fallback libncurses detection without pkg-config Previously, failure to find libncurses was silently ignored, leading to compiler or linker errors. Closes #6 --- diff --git a/NEWS b/NEWS index 9e7b11c..bf9ea58 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ ncmpc 0.29 - not yet released * fix crash after losing MPD connection * fix crash after DNS lookup error * add Meson option "lyrics_plugin_dir" +* fallback libncurses detection without pkg-config ncmpc 0.28 - (2017-09-21) * fix crash on lyrics screen diff --git a/meson.build b/meson.build index 428e41e..bc1b5e2 100644 --- a/meson.build +++ b/meson.build @@ -70,6 +70,11 @@ else if curses_dep.found() curses = 'ncurses' else + curses_dep = cc.find_library('ncursesw', required: false) + if not curses_dep.found() + curses_dep = cc.find_library('ncurses') + endif + # TODO: find other curses implementation (pdcurses?) endif endif