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
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, \
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, \
Please install GNU awk. \
))
-$(eval $(call RequireCommand,bison, \
- Please install GNU bison. \
-))
-
$(eval $(call RequireCommand,flex, \
Please install flex. \
))
Please install the subversion client. \
))
-$(eval $(call RequireCommand,autoconf, \
- Please install GNU autoconf. \
-))
-
define Require/gnu-find
$(FIND) $(TMP_DIR) -lname foo
endef