configure.ac update macros format, use AX_CHECK_COMPILE_FLAG instead of custom test