Maybe I'm doing something wrong, but even when I define CFLAGS before invoking configure, the CFLAGS used for compiling the benchees are always those determined by AX_CC_MAXOPT. The only way I manage to "fix" this is by commenting out AX_CC_MAXOPT in configure.ac and re-running autoreconf etc.
The performance penalty caused by the automatically chosen flags is quite dramatic; more than a factor of 2 for some transforms.
Is there some subtlety I'm missing?