]> git.ipfire.org Git - thirdparty/grub.git/commit
configure: Properly handle MM_DEBUG
authorGlenn Washburn <development@efficientek.com>
Tue, 15 Feb 2022 18:36:41 +0000 (12:36 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 7 Mar 2022 14:11:26 +0000 (15:11 +0100)
commit563dca1a5e23e92d316f7abb1e9e9d05b5e84b47
tree1f69047aeb910928634fa6e4c1540950f6ed1300
parentb16257b51bc6b58b47b016d3f88f6bd1c6b39dcd
configure: Properly handle MM_DEBUG

Define MM_DEBUG in config.h when --enable-mm-debug is passed to configure.
It was being defined in config-util.h which only gets used when building
GRUB utilities for the host side. The enabling of debugging for memory
management in include/grub/mm.h explicitly does not happen when compiling
for the GRUB utilities. So this debugging code effectively could never be
enabled. Note, that MM_DEBUG is defined in an #if directive because the
enabling of debugging checks if MM_DEBUG is defined, not what its value is.
So even if MM_DEBUG were defined to nothing, the debugging code would
still be enabled.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
config.h.in
configure.ac