AC_ARG_WITH(mmalloc,
    [  --with-mmalloc          Use memory mapped malloc package],
    [case "${withval}" in
      yes)  want_mmalloc=true ;;
      no)   want_mmalloc=false;;
      *)    AC_MSG_ERROR(bad value ${withval} for GDB with-mmalloc option)
;;
    esac],[want_mmalloc=false])dnl

Didn't try to reproduce, but at least be aware that using dnl like
this is a bad idea.  Use `[]dnl' to avoid having the dnl pasted to the
last tokens of the expansion of the previous macro (here
AC_ARG_WITH).  This stupid example highlights what might happen.

% m4
define(foo, bar)
foo()dnl
bardnl
foo()`'dnl toto
bar

Reply via email to