Add a configure option to disable assertions

Adds a --disable-assert configure option. We **highly recommend** the
use of this option by distro maintainers so as to ensure a smooth
experience with Wget. Sometimes an assertion may fail even though Wget
continues to work perfectly. In such scenarios, we do not wish for
client installations of Wget to crash. Hence, for a stable experience,
please use the --disable-assert configure flag.
This commit is contained in:
Darshit Shah 2014-11-15 00:15:37 +05:30
parent 94805ad55a
commit ff6fc1f8dd
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,6 @@
2014-11-15 Darshit Shah <darnir@gmail.com>
* configure.ac: Add AC_HEADER_ASSERT. Enables --disable-assert option
2014-11-05 Tim Ruehsen <tim.ruehsen@gmx.de>
* configure.ac: check for python3

2
NEWS
View File

@ -9,6 +9,8 @@ Please send GNU Wget bug reports to <bug-wget@gnu.org>.
* Changes in Wget X.Y.Z
** Add --disable-assert configure option. Recommended for distro maintainers.
** Use pkg-config to check for libraries presence.

View File

@ -57,6 +57,13 @@ AC_CANONICAL_HOST
AC_DEFINE_UNQUOTED([OS_TYPE], "$host_os",
[Define to be the name of the operating system.])
dnl
dnl Add option to disable Assertions
dnl
dnl Adds a --disable-assert option to ./configure which can be used by distro
dnl maintainers to compile without assertions.
AC_HEADER_ASSERT
dnl
dnl Process features.
dnl