prereq: Use check-lxdialog.sh to determine curses library
commitaa3c71ca2b6006105e1919bcf3eaf2c12d342256
authorPhil Sutter <phil@nwl.cc>
Wed, 24 Feb 2021 23:07:42 +0000 (25 00:07 +0100)
committerWaldemar Brodkorb <wbx@openadk.org>
Thu, 25 Feb 2021 09:05:12 +0000 (25 10:05 +0100)
treec7825ba2aca5cd0bedfadab1c7995f340d62b27a
parent009336f7557ef8a74873f6bddcaa31399eede451
prereq: Use check-lxdialog.sh to determine curses library

Curses detection in adk/config/Makefile is a mess - pkg-config was
designed to avoid exactly that, so make it a required tool on all host
OSs and call check-lxdialog.sh from mconf sources which uses it to
define the required curses LIBS and CFLAGS from prereq.sh.

Since pkg-config output also contains the right arguments for libtinfo
(which depends on the chosen curses variant), no mismatches between the
two may happen anymore.

While being at it, sync check-lxdialog.sh with current linux sources so
it covers installations with widechar support as well.

Signed-off-by: Phil Sutter <phil@nwl.cc>
adk/config/Makefile
adk/config/lxdialog/check-lxdialog.sh
scripts/prereq.sh