-*- text -*-
			Installation Procedure

0) Preparation

To build and install GNU Wget, you need to unpack the archive (which
you have presumably done, since you are reading this), and read on.
Like most GNU utilities, Wget uses the GNU Autoconf mechanism for
build and installation; those of you familiar with compiling GNU
software will feel at home.

1) Configuration

To configure Wget, run the configure script provided with the
distribution.  You may use all the standard arguments configure
scripts take.  The most important ones are:

  --help                  print help message

  --prefix=PREFIX         install architecture-independent files in PREFIX
                          (/usr/local by default)
  --bindir=DIR            user executables in DIR (PREFIX/bin)
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]

  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]

--enable and --with options recognized (mostly Wget-specific):
  --with-ssl[=SSL_ROOT]   link with libssl [in SSL_ROOT/lib] for https: support
  --disable-opie          disable support for opie or s/key FTP login
  --disable-digest        disable support for HTTP digest authorization
  --disable-ntlm          disable support for HTTP NTLM authorization
  --disable-debug         disable support for debugging output
  --disable-nls           do not use Native Language Support
  --disable-largefile     omit support for large files
  --disable-ipv6          disable IPv6 support

So, if you want to configure Wget for installation in your home
directory, you can type:

    ./configure --prefix=$HOME

You can customize many default settings by editing Makefile and
config.h.  The program will work very well without your touching these
files, but it is useful to have a look at things you can change there.

If you have OpenSSL libraries installed in one of the default
directories, such as /usr/local/lib or /usr/local/ssl/lib, you can
simply `configure --with-ssl'.  If you have it installed elsewhere,
you need to specify your alternate OpenSSL root directory.  For
instance, if libcrypto.* and libssl.* are in /opt/openssl/lib, you
need to `configure --with-ssl=/opt/openssl'.

To configure Wget on Windows, read the instructions in
`windows/README'. If this doesn't work for any reason, talk to the
Windows developers listed there; I do not maintain the port.  That
does not apply to the "Cygwin" environment, where Wget should compile
out of the box as described here.

2) Compilation

To compile the program, type make and cross your fingers.  If you do
not have an ANSI compiler, Wget will try to KNR-ize its sources "on
the fly".  This should make GNU Wget compilable on almost any
Unix-like system out there.

After the compilation a ready to use `wget' executable should reside
in the src directory.  I do not have any kind of test-suite as of this
moment, but it should be easy enough to test whether the basic stuff
works.

3) Installation

Use `make install' to install GNU Wget to directories specified to
configure.  The standard prefix is "/usr/local/", which can be changed
using the `--prefix' configure option.

The installation process will copy the wget binary to $PREFIX/bin,
install the wget.info* info pages to $PREFIX/info, the autogenerated
manual page (where available) wget.1 to $PREFIX/man/man1, and the
default config file to $PREFIX/etc, unless a config file already
exists there.  You can customize these directories either through the
configuration process or making the necessary changes in the Makefile.

To delete the files created by Wget installation, you can use make
uninstall.