X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=include%2Fprereq-build.mk;h=f0e1da9810d2f51c934cb63e364195e77ae69f2c;hp=d6d2d73a63c39549936e19f5e2e4c2920f2fbd55;hb=7618cd7cbe66065b4c185d0805e8982504bee237;hpb=a7d856c4ce704ab1c45260d5e4210ad7e0288db5 diff --git a/include/prereq-build.mk b/include/prereq-build.mk index d6d2d73a63..f0e1da9810 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 -