glib fails on autogen.sh with "m4macros/glib-gettext.m4:39: error: m4_copy: won't overwrite defined macro: glib_DEFUN"
Submitted by Dan Kegel
Link to original bug (#765390)
Description
While building glib, either tip of git or 2.46.2, on ubuntu 16.04, autogen.sh fails:
$ sh autogen.sh ... m4macros/glib-gettext.m4:39: error: m4_copy: won't overwrite defined macro: glib_DEFUN
Tip of git fails the same way.
I've seen four or five other projects that run into that same error, e.g. https://bugzilla.gnome.org/show_bug.cgi?id=763370
They seem to work around it by deleting glib-gettext.m4 or turning the m4_copy into m4_copy_force, which subverts the intent of the comment just above the m4_copy.
Version: 2.48.x