We updated Xserver recently to 126.96.36.1991 (1.11 RC1) which requires xorg-macros 1.14, and after upgrade macros to 1.14.0, there will be a build error that make xserver failed to build. The error info is as following:
configure:13553: error: possibly undefined macro: AC_LANG_DEFINES_PROVIDED
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
The culprit commit in xorg macro that lead to the xserver fail to build is e03a5cb9f313c6f5de3edc46327eb18b300b92c2.
Author: Alan Coopersmith <firstname.lastname@example.org>
Date: Sat May 14 09:10:13 2011 -0700
Add AC_LANG_DEFINES_PROVIDED to XORG_RAW_CPP to silence autoconf warnings
Yes, we've been discussing on xorg-devel the best way to fix this for
users using autoconf older than the 2.67 release which added it.
A patch is out for review:
Fixed in util/macros commit 45c7d622657d295b2c02a46061765827ea37f00f
XORG_PROG_RAWCPP: use AC_LANG_SOURCE to prevent warnings
The source for the AC_LANG_CONFTEST should be passed to AC_LANG_SOURCE
to satisfy the more stringent testing done by autoconf 2.68.
It is available in autoconf 2.60 where AC_LANG_DEFINES_PROVIDED is not.
Available from git master
(In reply to comment #3)
> Fixed in util/macros commit 45c7d622657d295b2c02a46061765827ea37f00f
> XORG_PROG_RAWCPP: use AC_LANG_SOURCE to prevent warnings
> The source for the AC_LANG_CONFTEST should be passed to AC_LANG_SOURCE
> to satisfy the more stringent testing done by autoconf 2.68.
> It is available in autoconf 2.60 where AC_LANG_DEFINES_PROVIDED is not.
> Available from git master
verified with util/macros commit 45c7d622657d295b2c02a46061765827ea37f00f.