X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_header_assert.m4;h=f72f2d5e62589946d130abcb7a01cf5a14f2aaac;hb=1a09bec1c62a5068126735cc0915020bf487f4b1;hp=eb5d15b90542a70e2f6c2f26395d7c01fc16e83b;hpb=d6524995788ff698a0275284f3df4adfec8b6c67;p=m6w6%2Flibmemcached diff --git a/m4/pandora_header_assert.m4 b/m4/pandora_header_assert.m4 index eb5d15b9..f72f2d5e 100644 --- a/m4/pandora_header_assert.m4 +++ b/m4/pandora_header_assert.m4 @@ -1,5 +1,5 @@ -dnl Copyright (C) 2009 Sun Microsystems -dnl This file is free software; Sun Microsystems +dnl Copyright (C) 2009 Sun Microsystems, Inc. +dnl This file is free software; Sun Microsystems, Inc. dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,16 +8,16 @@ dnl ---------------- dnl Check whether to enable assertions. AC_DEFUN([PANDORA_HEADER_ASSERT], [ + AC_CHECK_HEADERS(assert.h) AC_MSG_CHECKING([whether to enable assertions]) AC_ARG_ENABLE([assert], - [AS_HELP_STRING([--disable-assert], - [Turn off assertions])], - [ac_cv_assert="no"], - [ac_cv_assert="yes"]) + [AS_HELP_STRING([--enable-assert], + [Turn on assertions])], + [ac_cv_assert="yes"], + [ac_cv_assert="no"]) AC_MSG_RESULT([$ac_cv_assert]) - AS_IF([test "$ac_cv_assert" = "yes"], - [AC_CHECK_HEADERS(assert.h)], + AS_IF([test "$ac_cv_assert" = "no"], [AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])]) ])