Fix: configure: support Autoconf 2.70
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 18 Feb 2021 19:31:34 +0000 (14:31 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 19 Feb 2021 16:08:06 +0000 (11:08 -0500)
commita6235500993d5963c049e80f534284af196cda30
treedd0d6a4c116be0cb378ac3914c6edfd0444a50d7
parentc77598f4b9bb7b4fabcbfbdd19b146b45c492436
Fix: configure: support Autoconf 2.70

The newly-released autoconf 2.70 introduces a number of breaking
changes [1] and is being rolled-out by some distros.

Amongst those changes, the AC_PROG_CC_STDC macro is marked as obsolete
and was merged into AC_PROG_CC, which we already use. On 2.70, this
results in a warning which we handle as an error.

A version check is added to invoke the AC_PROG_CC_STDC macro only when
running a pre-2.70 version of autoconf, fixing the issue.

Also, the AX_PTHREAD macro makes use of the $as_echo built-in shell
variable which no longer exists in 2.70. A patch was submitted to the
GNU Autoconf archive in March, but there have been no signs of life
given since then [2].

As such, our local copy is updated to the latest version and the patch
(which looks fairly straight-forward / safe) is applied. This should
minimize changes once we go back to an "official" version of the macro.

[1] https://lwn.net/Articles/839395/
[2] https://savannah.gnu.org/patch/?9906

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I50c8ac14c0fc6787faf5a47693b93b28c14ecf96
README.md
bootstrap
configure.ac
m4/ax_pthread.m4
This page took 0.023151 seconds and 4 git commands to generate.