kconfig: if ncurses-devel is missing then say so
authorSam Ravnborg <sam@ravnborg.org>
Sun, 9 Dec 2007 19:11:15 +0000 (20:11 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 28 Jan 2008 22:14:36 +0000 (23:14 +0100)
commit6e588f6dcfcffa24decf418b96b4184a907d2bf8
tree73e1dc68d7a792668b68e597fde572061de2c6a2
parent551559e13af1ccd19d0525cb2b0f308905170647
kconfig: if ncurses-devel is missing then say so

With this patch when ncurses-devel (or whatever it is named)
is missing trying to run menuconfig will result in this:

$ make menuconfig
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.
 ***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2

Much better than before where we just listed some build errors.
The other *config targets will work indepenednt on ncurses
being present or not.

Includes improvements suggested by: Frans Pop <elendil@planet.nl>

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Frans Pop <elendil@planet.nl>
scripts/kconfig/Makefile
scripts/kconfig/lxdialog/check-lxdialog.sh