There is an error in m4/ax_debug.m4 which provices the --enable-debug and the --disable-debug flags. It incorrectly uses AC_ARG_ENABLE(feature, help-string, [action-if-given], [action-if-not-given]). It assumes that the action-if-given field is triggered when --enable-debug is passed and action-if-not-given is triggered if --disable-debug is given. This is a common mistake and its not how AC_ARG_ENABLE works. Rather action-if-given is triggered by *both* --enable-debug and --disable-debug while action-if-not-given is triggered if neither are given.
Here's a patch to fix it. It should probably go to Brian Aker @ https://github.com/BrianAker/ddm4/