Index: scconfig/hooks.c =================================================================== --- scconfig/hooks.c (revision 2325) +++ scconfig/hooks.c (revision 2326) @@ -218,11 +218,14 @@ else { report("No need for glib, skipping GLIB detection\n"); put("libs/sul/glib/presents", "false"); + } + + if (isfalse(get("libs/sul/glib/presents"))) { + /* Makefile templates will still reference these variables, they should be empty */ put("libs/sul/glib/cflags", ""); put("libs/sul/glib/ldflags", ""); } - if (want_gd) { require("libs/gui/gd/presents", 0, 0); if (!istrue(get("libs/gui/gd/presents"))) {