From: Michael Wallner Date: Wed, 22 Jan 2020 08:09:21 +0000 (+0100) Subject: m4: ax_assert X-Git-Tag: pre_cmake~15 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=cf75592f1722f5f67fcc4edd658e547e7fee7454;p=awesomized%2Flibmemcached m4: ax_assert let it be overridden in vcs checkout --- diff --git a/m4/ax_assert.m4 b/m4/ax_assert.m4 index 88741293..0fa2b1c9 100644 --- a/m4/ax_assert.m4 +++ b/m4/ax_assert.m4 @@ -52,10 +52,10 @@ AC_DEFUN([AX_ASSERT], AC_ARG_ENABLE([assert], [AS_HELP_STRING([--enable-assert], [Enable assert, this will be overridden by --enable-debug (yes|no) @<:@default=no@:>@])], - [ax_enable_assert=yes], - [ax_enable_assert=no]) + [ax_enable_assert=$enableval], + [ax_enable_assert=$ac_cv_vcs_checkout]) - AS_IF([ test "$ax_enable_assert" = "yes" -o "$ax_enable_debug" = "yes" -o "$ac_cv_vcs_checkout" = "yes" ], + AS_IF([ test "$ax_enable_assert" = "yes" -o "$ax_enable_debug" = "yes" ], [ax_enable_assert="yes"], [ax_enable_assert="no" AC_DEFINE(NDEBUG,[1],[Define to 1 to disable assert'ing code.])])