X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=include%2Fprereq-build.mk;h=5a743225f65978063d023b5ff3f2d969f476efd3;hb=523564cf44cd907d0e3f9181cd3490812406ac7a;hp=59ea7ef9a78f976eba2b9169aab98fbc6b1571cd;hpb=32cba690184da1124f756cb43216cbaa725ab802;p=15.05%2Fopenwrt.git diff --git a/include/prereq-build.mk b/include/prereq-build.mk index 59ea7ef9a7..5a743225f6 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -168,6 +168,19 @@ $(eval $(call RequireCommand,svn, \ Please install the subversion client. \ )) +define Require/libssl + echo 'int main(int argc, char **argv) { SSL_library_init(); return 0; }' | \ + gcc -include openssl/ssl.h -x c -o $(TMP_DIR)/a.out - -lcrypto -lssl +endef + +$(eval $(call Require,libssl, \ + Please install the openssl library (with development headers) \ +)) + +$(eval $(call RequireCommand,openssl, \ + Please install openssl. \ +)) + define Require/gnu-find $(FIND) --version 2>/dev/null endef @@ -183,3 +196,7 @@ endef $(eval $(call Require,getopt-extended, \ Please install an extended getopt version that supports --long \ )) + +$(eval $(call RequireCommand,file, \ + Please install the 'file' package. \ +))