mirror of
https://github.com/mirror/wget.git
synced 2025-01-27 04:40:41 +08:00
Assertions are now disabled by default
This commit is contained in:
parent
09d47ead18
commit
841efb0108
@ -1,3 +1,10 @@
|
||||
2014-11-20 Darshit Shah <darnir@gmail.com>
|
||||
|
||||
* configure.ac: Change option to --enable-assert. Assertions are disabled by
|
||||
default.
|
||||
* NEWS: Edit to reflect default option.
|
||||
* README.checkout: Document --enable-assert for developers
|
||||
|
||||
2014-11-20 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||
|
||||
* configure.ac: Fix libpsl<0.6.0 detection
|
||||
|
2
NEWS
2
NEWS
@ -9,7 +9,7 @@ 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.
|
||||
** Add --enable-assert configure option.
|
||||
|
||||
** Use pkg-config to check for libraries presence.
|
||||
|
||||
|
@ -85,12 +85,20 @@ Compiling From Repository Sources
|
||||
configuring the package:
|
||||
$ ./bootstrap
|
||||
3. Configure the package and compile it:
|
||||
$ ./configure [some_parameters]
|
||||
$ ./configure --enable-assert [some_parameters]
|
||||
$ make
|
||||
4. Hack, compile, test, hack, compile, test...
|
||||
$ src/wget --version
|
||||
GNU Wget 1.12-devel (9cb2563197bc)
|
||||
|
||||
All developers are requested to enable the assertions on their development
|
||||
builds to ensure a stable codebase. Assertions are added to state certain
|
||||
assumptions about the code and its data which all developers should be mindful
|
||||
of. To enable assertions, run the configure command with the --enable-assert
|
||||
option, like this:
|
||||
|
||||
$ ./configure --enable-assert [other configure options]
|
||||
|
||||
Copyright © 2008,2010 Free Software Foundation, Inc.
|
||||
License GPLv3+: GNU GPL version 3 or later
|
||||
<http://www.gnu.org/licenses/gpl.html>.
|
||||
|
18
configure.ac
18
configure.ac
@ -57,12 +57,6 @@ 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 External Libraries
|
||||
@ -148,6 +142,17 @@ AS_IF([test "x$ENABLE_VALGRIND" != xno], [
|
||||
VALGRIND_INFO="Valgrind testing not enabled"
|
||||
])
|
||||
|
||||
AC_ARG_ENABLE(assert,
|
||||
[AS_HELP_STRING([--enable-assert], [enable assertions in code base])],
|
||||
[ENABLE_ASSERTION=$enableval],
|
||||
[ENABLE_ASSERTION=no]
|
||||
)
|
||||
|
||||
AS_IF([test "x$ENABLE_ASSERTION" != xyes], [
|
||||
CFLAGS="-DNDEBUG $CFLAGS"
|
||||
],
|
||||
[])
|
||||
|
||||
dnl
|
||||
dnl Find the compiler
|
||||
dnl
|
||||
@ -717,5 +722,6 @@ AC_MSG_NOTICE([Summary of build options:
|
||||
NTLM: $ENABLE_NTLM
|
||||
OPIE: $ENABLE_OPIE
|
||||
Debugging: $ENABLE_DEBUG
|
||||
Assertions: $ENABLE_ASSERTION
|
||||
Valgrind: $VALGRIND_INFO
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user