Reinstate -std=gnu99 flag
In 913e2f3b9a618d169eb56f645b2b2aa03fd9765a -std=gnu99 was removed from the Makefiles. Please put it back. This code is not compatible with the default gnu89 mode of older compilers:
error: ‘for’ loop initial declaration used outside C99 mode
The AC_PROG_CC_C99 macro in configure.ac is supposed to do that automatically. The documentation states:
— Macro: AC_PROG_CC_C99 If the C compiler is not in C99 mode by default, try to add an option to output variable CC to make it so. This macro tries various options that select C99 on some system or another. It considers the compiler to be in C99 mode if it handles _Bool, flexible arrays, inline, long long int, mixed code and declarations, named initialization of structs, restrict, varargs macros, variable declarations in for loops and variable length arrays.
Can you provide more details about the compiler and autoconf version?