aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-01-09 18:40:00 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2023-01-09 21:25:06 +0100
commit848b3445fba43b8ae2e1a299418551d8bc8cd400 (patch)
tree88cf5dd9700f3cff85cc91301cfdde5377e27791
parent35135842ca8b633c0f8ee32b70eee92d918345d6 (diff)
downloadupstream-848b3445fba43b8ae2e1a299418551d8bc8cd400.tar.gz
upstream-848b3445fba43b8ae2e1a299418551d8bc8cd400.tar.bz2
upstream-848b3445fba43b8ae2e1a299418551d8bc8cd400.zip
prereq-build: use RequireCHeader test for ncurses prereq
RequireCHeader is a generilized version of the ncurses prereq test. Use that indetad. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r--include/prereq-build.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index 9c4ef547ad..7959890eb5 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -49,10 +49,9 @@ $(eval $(call TestHostCommand,working-g++, \
g++ -x c++ -o $(TMP_DIR)/a.out - -lstdc++ && \
$(TMP_DIR)/a.out))
-$(eval $(call TestHostCommand,ncurses, \
+$(eval $(call RequireCHeader,ncurses.h, \
Please install ncurses. (Missing libncurses.so or ncurses.h), \
- echo 'int main(int argc, char **argv) { initscr(); return 0; }' | \
- gcc -include ncurses.h -x c -o $(TMP_DIR)/a.out - -lncurses))
+ initscr(), -lncurses))
$(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.7.12.2, \
git --exec-path | xargs -I % -- grep -q -- --recursive %/git-submodule, \