The Wget package contains a utility useful for non-interactive downloading of files from the Web. It is used in pages in this book, BLFS, and SLFS that lump packages together, like downloading Xorg or KDE packages, or when a package depends on a wealth of submodules.
Make the package compatible with OpenSSL-4:
NEW_LINE="#if !defined OPENSSL_NO_SSL3_METHOD " NEW_LINE+="&& OPENSSL_VERSION_NUMBER < 0x40000000L" sed -i "/SSL3/c $NEW_LINE" src/openssl.c unset NEW_LINE
Install Wget by running the following commands:
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-ssl=openssl &&
make
Now, as the root user:
make install
Run ./configure --help for a full list of options.
--sysconfdir=/etc: This
relocates the configuration file from /usr/etc to /etc.
--with-ssl=openssl: This
allows the program to use openssl instead of GnuTLS.