Yep, that was autoreconf (well, aclocal run as part of autoreconf)
trying to tell you that it was building a corrupt configure file because
your development environment is incomplete. Can we make the error
message a bit nicer than a corrupted configure file? Probably. (In
fact, if we were to use m4_pattern_forbid([AM_PATH_GLIB]) in
configure.ac, it would make failure to find the third-party library a
hard error that refuses to generate configure, rather than a soft error
that only shows up later during the run of ./configure).