X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/37657a06c035d9b3590eb529b8968c48578fb72d..9423e64b3018847934146d8b6900a291f5fe5b5f:/include/prereq-build.mk?ds=sidebyside diff --git a/include/prereq-build.mk b/include/prereq-build.mk index b0114f0b9..4d1ae891f 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 - @@ -48,7 +62,7 @@ $(eval $(call Require,working-gcc, \ define Require/working-g++ echo 'int main(int argc, char **argv) { return 0; }' | \ - g++ -x c++ -o $(TMP_DIR)/a.out -lstdc++ - && \ + g++ -x c++ -o $(TMP_DIR)/a.out - -lstdc++ && \ $(TMP_DIR)/a.out endef @@ -58,7 +72,7 @@ $(eval $(call Require,working-g++, \ define Require/ncurses echo 'int main(int argc, char **argv) { initscr(); return 0; }' | \ - gcc -include ncurses.h -x c -o $(TMP_DIR)/a.out -lncurses - + gcc -include ncurses.h -x c -o $(TMP_DIR)/a.out - -lncurses endef $(eval $(call Require,ncurses, \ @@ -68,7 +82,7 @@ $(eval $(call Require,ncurses, \ define Require/zlib echo 'int main(int argc, char **argv) { gzdopen(0, "rb"); return 0; }' | \ - gcc -include zlib.h -x c -o $(TMP_DIR)/a.out -lz - + gcc -include zlib.h -x c -o $(TMP_DIR)/a.out - -lz endef $(eval $(call Require,zlib, \ @@ -79,10 +93,6 @@ $(eval $(call RequireCommand,gawk, \ Please install GNU awk. \ )) -$(eval $(call RequireCommand,bison, \ - Please install GNU bison. \ -)) - $(eval $(call RequireCommand,flex, \ Please install flex. \ )) @@ -103,6 +113,10 @@ $(eval $(call RequireCommand,perl, \ Please install perl. \ )) +$(eval $(call RequireCommand,python, \ + Please install python. \ +)) + $(eval $(call RequireCommand,wget, \ Please install wget. \ )) @@ -119,10 +133,6 @@ $(eval $(call RequireCommand,svn, \ Please install the subversion client. \ )) -$(eval $(call RequireCommand,autoconf, \ - Please install GNU autoconf. \ -)) - define Require/gnu-find $(FIND) $(TMP_DIR) -lname foo endef @@ -130,3 +140,11 @@ endef $(eval $(call Require,gnu-find, \ Please install GNU find \ )) + +define Require/getopt-extended + getopt --long - - >/dev/null +endef + +$(eval $(call Require,getopt-extended, \ + Please install an extended getopt version that supports --long \ +))