m4: DRY up AX_CHECK_STATEMENT