[EMAIL PROTECTED] (Larry Jones) writes:

> Trying to compile the current CVS, I get the following compile error:
>
> gcc -I. -I. -I/usr/local/ssl/include   -DHAVE_CONFIG_H 
> -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" 
> -DLOCALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c http-ntlm.c
> http-ntlm.c:50: openssl/md4.h: No such file or directory
> *** Error code 1
>
> This system has OpenSSL 0.9.5a installed which doesn't have md4.h
> (although it does have md2.h and md5.h).  I realize 0.9.5a is very old,
> but you might want to consider beefing up the configure test to make
> sure that it has *all* the SSL files it needs before automatically
> enabling SSL.  Currently it just looks for ssl.h and rsa.h (which isn't
> even used anywhere that I can find) but the code also uses bio.h,
> crypto.h, x509.h, err.h, pem.h, rand.h, des.h, md4.h, and md5.h.

0.9.5a is five years old and would normally not be supported (you can
always specify --without-ssl to avoid it), but this is easy enough to
fix, so here goes:

2005-04-08  Hrvoje Niksic  <[EMAIL PROTECTED]>

        * configure.in: When checking for OpenSSL headers, check for all
        the ones that Wget is using.

Index: configure.in
===================================================================
RCS file: /pack/anoncvs/wget/configure.in,v
retrieving revision 1.77
diff -u -r1.77 configure.in
--- configure.in        2005/04/07 23:41:08     1.77
+++ configure.in        2005/04/08 09:41:15
@@ -327,10 +327,20 @@
     ssl_found_includes=no
     CPPFLAGS="$SSL_INCLUDES $wget_save_CPPFLAGS"
 
+    dnl Check for all the OpenSSL includes that Wget actually uses.
+    dnl This will prune both invalid installations and ancient
+    dnl versions of OpenSSL that we can't use.
     AC_MSG_CHECKING([for includes])
     AC_COMPILE_IFELSE([
 #include <openssl/ssl.h>
-#include <openssl/rsa.h>
+#include <openssl/bio.h>
+#include <openssl/crypto.h>
+#include <openssl/des.h>
+#include <openssl/err.h>
+#include <openssl/md4.h>
+#include <openssl/pem.h>
+#include <openssl/rand.h>
+#include <openssl/x509.h>
     ], [
       AC_MSG_RESULT(found)
       ssl_found_includes=yes

Reply via email to