On Fri, 8 Jan 2021 at 14:28, Marko Lindqvist <cazf...@gmail.com> wrote: > > On Tue, 5 Jan 2021 at 01:56, Marko Lindqvist <cazf...@gmail.com> wrote: > > > > Running autoupdate for any active freeciv branch (git clone > > https://github.com/freeciv/freeciv.git) results in an error like: > > > > /usr/bin/m4:/tmp/au5cPMMa/ac.m4:1100: ERROR: end of file in string > > autoupdate: error: /usr/bin/m4 failed with exit status: 1 > > > > I'm on Debian Testing (Bullseye). I've tested with both autoupdate > > that Debian ships (autoconf-2.69) and one of self-compiled > > autoconf-2.70. > > This seems to be related in AC_ARG_VAR() in a m4-file. If I remove line > AC_ARG_VAR([MOCCMD], [QT 5 moc command (autodetected it if not set)]) > from m4/qt.m4, autoupdate works. The line can be added directly to > configure.ac without similar problems. > For a test, I tried moving the line to some other m4/*.m4 files, and > autoupdate failed in these cases.
Minimal setup to reproduce this attached. Run ./testcase.sh to see the error. - ML
testcase.tar.xz
Description: application/xz