diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 40 |
1 files changed, 38 insertions, 2 deletions
@@ -12426,8 +12426,6 @@ if test x$enable_werror = xyes; then ADD_CFLAGS="-Werror -W -Wpointer-arith" fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5 $as_echo_n "checking whether C compiler accepts -Wall... " >&6; } if ${ax_cv_check_cflags___Wall+:} false; then : @@ -12709,6 +12707,44 @@ else : fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=unused-variable" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-error=unused-variable... " >&6; } +if ${ax_cv_check_cflags___Wno_error_unused_variable+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Wno-error=unused-variable" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags___Wno_error_unused_variable=yes +else + ax_cv_check_cflags___Wno_error_unused_variable=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_unused_variable" >&5 +$as_echo "$ax_cv_check_cflags___Wno_error_unused_variable" >&6; } +if test x"$ax_cv_check_cflags___Wno_error_unused_variable" = xyes; then : + TESTSUITE_CFLAGS="$TESTSUITE_CFLAGS -Wno-error=unused-variable" +else + : +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } |