]> diplodocus.org Git - nmh/commitdiff
configure.ac: Enable assert(3) by default.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 5 May 2017 12:11:15 +0000 (13:11 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 5 May 2017 12:11:15 +0000 (13:11 +0100)
Revert 167e542b that disabled assert(3) by default after private email
discussion with David Levine.  I suggested it being enabled by default
in git so those running nmh from git were testing them for us, with it
being disabled as part of the release process so packagers continue with
it disabled.  David pointed out that would make the release
intentionally different from what had been long tested so the default is
now enabled assertions everywhere unless disabled by a packager.

configure.ac

index d1a755ca61aebaba69d84bfb269c0d252b40d3ef..8651dd1b50d82d4d7f4ecfb802df282d329fba97 100644 (file)
@@ -214,11 +214,6 @@ test "$nmh_cv_has_q_unused_arguments" = "yes"  &&  \
   AM_LDFLAGS="${AM_LDFLAGS:+$AM_LDFLAGS }-Qunused-arguments"
 AC_SUBST([AM_LDFLAGS])
 
   AM_LDFLAGS="${AM_LDFLAGS:+$AM_LDFLAGS }-Qunused-arguments"
 AC_SUBST([AM_LDFLAGS])
 
-dnl This hack turns off assertions by default, assuming
-dnl that configure still uses this shell variable.  Without
-dnl it, AC_HEADER_ASSERT enables assertions by default.
-test -z "$enable_assert"  &&  enable_assert=no
-
 AC_HEADER_ASSERT
 
 dnl ------------------
 AC_HEADER_ASSERT
 
 dnl ------------------