aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config/mconf-cfg.sh
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2021-11-24 18:25:43 -0300
committerPetr Štetiar <ynezz@true.cz>2022-02-19 13:10:01 +0100
commit009293c52e637612cd118717a1bea4e142889e09 (patch)
treec9f190a622ce0a6335875c561af5cdc2918b53ff /scripts/config/mconf-cfg.sh
parent73ea763c0dcdb96c9163790f20edd964399035c0 (diff)
downloadupstream-009293c52e637612cd118717a1bea4e142889e09.tar.gz
upstream-009293c52e637612cd118717a1bea4e142889e09.tar.bz2
upstream-009293c52e637612cd118717a1bea4e142889e09.zip
build: scripts/config - update to kconfig-v5.14
Functional Changes ---------- ------- - make 'imply' not impose any restrictions: allow symbols implied by y to become m - change "modules" from sub-option to first-level attribute Bugfixes -------- - nconf: fix core dump when searching in empty menu - nconf: stop endless search loops - xconfig: fix content of the main widget - xconfig: fix support for the split view mode Other Changes ----- ------- - highlight xconfig 'comment' lines with '***' - xconfig: navigate menus on hyperlinks - xconfig: drop support for Qt4 - improve host ncurses detection Update the 'option modules' usage to just 'modules' in Config.in. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Diffstat (limited to 'scripts/config/mconf-cfg.sh')
-rwxr-xr-xscripts/config/mconf-cfg.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/config/mconf-cfg.sh b/scripts/config/mconf-cfg.sh
index 0244b90b33..3572369288 100755
--- a/scripts/config/mconf-cfg.sh
+++ b/scripts/config/mconf-cfg.sh
@@ -33,7 +33,9 @@ if [ -f /usr/include/ncurses/ncurses.h ]; then
exit 0
fi
-if [ -f /usr/include/ncurses.h ]; then
+# As a final fallback before giving up, check if $HOSTCC knows of a default
+# ncurses installation (e.g. from a vendor-specific sysroot).
+if echo '#include <ncurses.h>' | ${HOSTCC} -E - >/dev/null 2>&1; then
echo cflags=\"-D_GNU_SOURCE\"
echo libs=\"-lncurses\"
exit 0