]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMichal Marek <mmarek@suse.cz>
Tue, 23 Sep 2014 13:47:48 +0000 (15:47 +0200)
commita7b909df3717f38542731324118c3a01a96a1cdf
tree7e0e5c346f4096c4e924e4ee8d9526a2921793dc
parentd59025b9df5fa215024ab83cad6db24c1833d52c
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>
scripts/kconfig/lxdialog/check-lxdialog.sh