1 diff --git a/configure.in b/configure.in
2 index eb71bdf0b0...342baf10c5 100644
9 -AX_CFLAGS_GCC_OPTION(-Wall)
10 -AX_CFLAGS_GCC_OPTION(-Wextra)
11 +AX_CHECK_COMPILE_FLAG(-Wall)
12 +AX_CHECK_COMPILE_FLAG(-Wextra)
14 dnl Overly-enthusiastic warning suppression.
16 -AX_CFLAGS_GCC_OPTION([-Wgnu-zero-variadic-macro-arguments], ,
17 +AX_CHECK_COMPILE_FLAG([-Wgnu-zero-variadic-macro-arguments],
18 AC_DEFINE([HAVE_VARIADIC_MACRO_WARNING], 1,
19 [Define if compiler recognises warning option]))
20 -AX_CFLAGS_GCC_OPTION([-Werror=unknown-warning-option])
21 -AX_CFLAGS_GCC_OPTION([-Wformat-truncation], ,
22 +AX_CHECK_COMPILE_FLAG([-Werror=unknown-warning-option])
23 +AX_CHECK_COMPILE_FLAG([-Wformat-truncation],
24 AC_DEFINE([HAVE_FORMAT_TRUNCATION_WARNING], 1,
25 [Define if compiler recognises warning option]))
29 if test "x$enable_debug" = "xgdb"
31 - AX_CFLAGS_GCC_OPTION([-ggdb])
32 - AX_CFLAGS_GCC_OPTION([-O0])
33 + AX_CHECK_COMPILE_FLAG([-ggdb])
34 + AX_CHECK_COMPILE_FLAG([-O0])
37 if test "x$ac_cv_cflags_gcc_option__ggdb" = "x"
39 - AX_CFLAGS_GCC_OPTION([-g])
40 + AX_CHECK_COMPILE_FLAG([-g])
43 EXTRA_OBJS="$EXTRA_OBJS null_out.o md5.o"