Here are the modifications to wget-1.5.3 for use on the Crays, as supplied by Dr. R. K. Owen of the NERSC User Services Group.

(1) Grab wget-1.5.3.tar.gz and unpack

(2) Patch two source files:

--- src/host.c  1998/09/24 22:31:07     1.1
+++ src/host.c  1998/09/25 17:46:45
@@ -146,7 +146,11 @@
     {
       /* This works on both little and big endian architecture, as
         inet_addr returns the address in the proper order.  It
-        appears to work on 64-bit machines too.  */
+        appears to work on 64-bit machines too, if you account
+        for the endian-ness.  */
+#ifdef WORDS_BIGENDIAN
+      if(sizeof(addr) == 8) addr<<=32;
+#endif
       memcpy (where, &addr, 4);
       return 1;
     }
--- src/config.h.in     1998/09/24 23:00:00     1.1
+++ src/config.h.in     1998/09/24 23:10:09
@@ -34,7 +34,11 @@
  #pragma alloca
 #  else
 #   ifndef alloca /* predefined by HP cc +Olibcalls */
+#    if __STDC__
+void *alloca ();
+#    else
 char *alloca ();
+#    endif
 #   endif
 #  endif
 # endif

(3) On a C-90, modify src/host.c: add (char *) cast to argument
    of gethostbyname()

(4) configure withn

        configure --prefix=$GNUROOT --host=cray --disable-nls

(5) edit config.cache to compile source as Std-C:
        am_cv_prog_cc_stdc=${am_cv_prog_cc_stdc='' ''}

(6) configure again:
        configure --prefix=$GNUROOT --host=cray --disable-nls

(7) make, test, and make install