m4/sac-general.m4: fixed --enable-ndebug and --enable-expensive-checks

darcs-hash:20080725145708-945f2-1c6a41a56b99be4b1e685205055b7c0d1a325089.gz
parent f4a2ebda
......@@ -325,7 +325,7 @@ AC_REQUIRE([SAC_TOOL_CC])
AC_ARG_ENABLE(ndebug,
[ --enable-ndebug compile with NDEBUG [[disabled]]],
, enable_ndebug=no)
AM_CONDITIONAL(NDEBUG, test x$enable_ndebug = yes)
AM_CONDITIONAL(NDEBUG, test x$enable_ndebug = xyes)
])
dnl ======================================================================
......@@ -336,10 +336,10 @@ AC_ARG_ENABLE(expensive-checks,
[ --enable-expensive-checks
run also expensive checks [[disabled]]],
, enable_expensive_checks=no)
if test $enable_expensive_checks != no; then
if test x$enable_expensive_checks != xno; then
AC_SUBST([TESTS_ENVIRONMENT], [EXPENSIVE_CHECKS=1])
fi
AM_CONDITIONAL(EXPENSIVE_CHECKS, test x$enable_expensive_checks != no)
AM_CONDITIONAL(EXPENSIVE_CHECKS, test x$enable_expensive_checks != xno)
])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment