config FREETZ_PACKAGE_WGET
	bool "GNU Wget 1.20.3 (binary only)"
	default n
	help
		GNU Wget is a free software package for retrieving files using
		HTTP, HTTPS and FTP, the most widely-used Internet protocols. It
		is a non-interactive commandline tool, so it may easily be
		called from scripts, cron jobs, terminals, etc.

config FREETZ_PACKAGE_WGET_WITH_SSL
	bool "build with SSL support"
	depends on FREETZ_PACKAGE_WGET
	default n
	help
		This option enables SSL support for Wget.

choice
	depends on FREETZ_PACKAGE_WGET_WITH_SSL
	prompt "SSL library"
	default FREETZ_PACKAGE_WGET_OPENSSL

	config FREETZ_PACKAGE_WGET_OPENSSL
		bool "OpenSSL"
		select FREETZ_OPENSSL_VERSION_PROMPT
		select FREETZ_LIB_libcrypto if !FREETZ_PACKAGE_WGET_STATIC
		select FREETZ_LIB_libssl    if !FREETZ_PACKAGE_WGET_STATIC

	config FREETZ_PACKAGE_WGET_GNUTLS
		bool "GnuTLS"
		select FREETZ_LIB_libgnutls if !FREETZ_PACKAGE_WGET_STATIC
endchoice

config FREETZ_PACKAGE_WGET_STATIC
	bool "Statically link libraries"
	depends on FREETZ_PACKAGE_WGET_WITH_SSL
	default n
	help
		Wget with SSL support needs the following shared libraries which
		can be linked in statically by activating this switch:
		- libcrypto
		- libssl
		- libgnutls
