From: Felix Fietkau Date: Mon, 20 Oct 2014 09:17:56 +0000 (+0000) Subject: prereq-build: replace the openssl command check with a check for headers X-Git-Tag: reboot~5580 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=35b34b20d447b06eb741523163df7aa3ff1f4ae0;p=openwrt%2Fstaging%2Fjogo.git prereq-build: replace the openssl command check with a check for headers Signed-off-by: Felix Fietkau SVN-Revision: 42995 --- diff --git a/include/prereq-build.mk b/include/prereq-build.mk index cb23f85647..4a87c9211a 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -168,8 +168,13 @@ $(eval $(call RequireCommand,svn, \ Please install the subversion client. \ )) -$(eval $(call RequireCommand,openssl, \ - Please install openssl. \ +define Require/openssl + 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,openssl, \ + Please install openssl (with development headers) \ )) define Require/gnu-find