]> Savannah Git Hosting - gnulib.git/commit
warnings: fix compilation with old autoconf
authorEric Blake <eblake@redhat.com>
Fri, 25 Aug 2017 01:28:52 +0000 (20:28 -0500)
committerEric Blake <eblake@redhat.com>
Fri, 25 Aug 2017 01:48:57 +0000 (20:48 -0500)
commitfa96a1883e3ab777213e09f513265f96363905ca
tree02baeab0150a669760db5e2d718d4db225fa54f2
parenta103699d83397de06e2e93dec6d278f750a0ed0b
warnings: fix compilation with old autoconf

Autoconf older than 2.63b (such as what ships on CentOS 6) had
a bug that any AC_DEFUN'd macro name that includes shell meta-
characters causes failure due to missing shell quoting during
aclocal's use of autom4te.  We can work around the problem by
using m4_defun instead (same semantics in autom4te, but no
longer traced by aclocal, so no longer tickles the shell
quoting bug).

* m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
(gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
AC_DEFUN.
* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
(gl_MANYWARN_ALL_GCC(C++)): Likewise.

Reported-by: Erik Skultety <eskultet@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/manywarnings.m4
m4/warnings.m4