The util-macros package contains the m4 macros used by all of the Xorg packages.
Download (HTTP): https://www.x.org/pub/individual/util/util-macros-1.20.2.tar.xz
Xorg build environment (should be set for the following instructions to work)
Install util-macros by running the following commands:
./configure $XORG_CONFIG
This package does not come with a test suite.
Now, as the root
user:
make install
Run ./configure --help for a full list of options.