kconfig/lxdialog: get ncurses CFLAGS with pkg-config
authorBjørn Forsman <bjorn.forsman@gmail.com>
Sun, 14 Sep 2014 10:57:50 +0000 (12:57 +0200)
committerMike Frysinger <vapier@gentoo.org>
Mon, 4 Apr 2016 03:59:15 +0000 (23:59 -0400)
commitd63d77a7f03eaa49729619a14aa9a12a0e9f95ad
tree5c74acaadf14b06ff4248c7fe0f351af579e6c35
parent935fe68236f21bf641b316fea1867754e754911b
kconfig/lxdialog: get ncurses CFLAGS with pkg-config

This makes "make menuconfig" also work on systems where ncurses is not
installed in a standard location (such as on NixOS).

This patch changes ccflags() so that it tries pkg-config first, and only
if pkg-config fails does it go back to the fallback/manual checks. This
is the same algorithm that ldflags() already uses.

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
scripts/kconfig/lxdialog/check-lxdialog.sh