coreboot-kgpe-d16/util/kconfig/lxdialog
Stefan Reinauer 14f72bc2cc 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>

Change-Id: Ie2372ca35546c1fc2d6cf603614683312ee4ea4c
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: http://review.coreboot.org/9315
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
2015-04-06 23:12:55 +02:00
..
.gitignore kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
BIG.FAT.WARNING kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
check-lxdialog.sh kconfig/lxdialog: get ncurses CFLAGS with pkg-config 2015-04-06 23:12:55 +02:00
checklist.c kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
dialog.h kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
inputbox.c kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
menubox.c kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
textbox.c kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
util.c kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
yesno.c kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00