X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/bc86dba383e35617ce0f4bf925e711415711a35e..05c2bdffe4a0fa8a8b8debbe6941af46715eda64:/include/prereq-build.mk diff --git a/include/prereq-build.mk b/include/prereq-build.mk index d6d2d73a6..f0e1da981 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -37,6 +37,20 @@ $(eval $(call Require,case-sensitive-fs, \ OpenWrt can only be built on a case-sensitive filesystem \ )) +define Require/getopt + getopt --help 2>&1 | grep long >/dev/null +endef +$(eval $(call Require,getopt, \ + Please install GNU getopt \ +)) + +define Require/fileutils + gcp --help || cp --help +endef +$(eval $(call Require,fileutils, \ + Please install GNU fileutils \ +)) + define Require/working-gcc echo 'int main(int argc, char **argv) { return 0; }' | \ gcc -x c -o $(TMP_DIR)/a.out -