diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 0e39ed6..d598344 100644 --- a/configure.in +++ b/configure.in @@ -835,21 +835,26 @@ AC_ARG_ENABLE(debug, AC_SUBST(DEBUG_PKG) all_packages="ac,b,d,e,f,g,hg,hl,i,mf,mm,o,p,s,t,v,z" -if test X = "X$DEBUG_PKG" -o Xyes = "X$DEBUG_PKG"; then +case X-$DEBUG_PKG in + X-|X-yes) DEBUG_PKG="d,e,f,g,hg,i,mm,o,p,s,t,v,z" CPPFLAGS="$CPPFLAGS -UNDEBUG" AC_MSG_RESULT(default ($DEBUG_PKG)) -elif test Xall = "X$DEBUG_PKG"; then + ;; + X-all) DEBUG_PKG=$all_packages CPPFLAGS="$CPPFLAGS -UNDEBUG" AC_MSG_RESULT(all ($DEBUG_PKG)) -elif test Xno = "X$DEBUG_PKG" -o Xnone = "X$DEBUG_PKG"; then + ;; + X-no|X-none) AC_MSG_RESULT(none) DEBUG_PKG= CPPFLAGS="$CPPFLAGS -DNDEBUG" -else + ;; + *) AC_MSG_RESULT($DEBUG_PKG) -fi + ;; +esac if test "X" != "X$DEBUG_PKG"; then for pkg in `echo $DEBUG_PKG | tr 'a-z,' 'A-Z '`; do |