1From 8512ae9b9bd83f6051f63b0673903283788a2d12 Mon Sep 17 00:00:00 2001 2From: Idwer Vollering <[email protected]> 3Date: Wed, 28 Jul 2021 20:15:29 +0200 4Subject: [PATCH] util/kconfig: detect ncurses on FreeBSD 5 6Signed-off-by: Idwer Vollering <[email protected]> 7Change-Id: I4344ba2116c0b8618357db4248d993509cbb666e 8--- 9 util/kconfig/mconf-cfg.sh | 6 ++++++ 10 1 file changed, 6 insertions(+) 11 12Index: kconfig/mconf-cfg.sh 13=================================================================== 14--- kconfig.orig/mconf-cfg.sh 15+++ kconfig/mconf-cfg.sh 16@@ -36,6 +36,12 @@ if [ -f /usr/include/ncurses/ncurses.h ] 17 exit 0 18 fi 19 20+# We'll want to be able to build on (Free)BSD: 21+if [ -f /usr/include/ncurses.h ]; then 22+ echo libs=\"-lncurses\" 23+ exit 0 24+fi 25+ 26 # As a final fallback before giving up, check if $HOSTCC knows of a default 27 # ncurses installation (e.g. from a vendor-specific sysroot). 28 if echo '#include <ncurses.h>' | ${HOSTCC} -E - >/dev/null 2>&1; then 29