+2008-12-06 William Pursell <bill.pursell@gmail.com> (tiny change)
+
+ Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
+ treat --enable-assert and --disable-assert equivalently.
+ * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
+
2008-12-05 William Pursell <bill.pursell@gmail.com> (tiny change)
Fix some typos and grammatical errors in documentation.
[
AC_MSG_CHECKING([whether to enable assertions])
AC_ARG_ENABLE([assert],
- [ --disable-assert turn off assertions],
- [AC_MSG_RESULT([no])
- AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])],
- [AC_MSG_RESULT(yes)])
+ [AS_HELP_STRING([--disable-assert], [turn off assertions])],
+ [AS_IF([test "x$enableval" = xno],
+ [AC_DEFINE([NDEBUG], [1], [Define to 1 if assertions should be disabled.]),
+ [test "x$enableval" != xyes],
+ AC_MSG_WARN([invalid argument supplied to --enable-assert.])
+ [enable_assert=no]
+ ])])
+ AC_MSG_RESULT([$enable_assert])
])