build: add missing ax_check_compile_flags.m4

This is being used for checking compiler flags when
--enable-maintainer-flags.