diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2007-06-14 08:17:50 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2007-06-14 08:17:50 +0000 |
commit | a104c397e762939248436df5128bf6d6a6f04edc (patch) | |
tree | 2f00d5946b4f17160d50e6763ada3440fb4e2d86 /libiberty/configure.ac | |
parent | 2b58cd72465861cd3bf4fb7249da406326ed98bc (diff) | |
download | gdb-a104c397e762939248436df5128bf6d6a6f04edc.zip gdb-a104c397e762939248436df5128bf6d6a6f04edc.tar.gz gdb-a104c397e762939248436df5128bf6d6a6f04edc.tar.bz2 |
2007-06-14 Paolo Bonzini <bonzini@gnu.org>
* aclocal.m4: Include config/warnings.m4.
* configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
* configure: Regenerate.
Diffstat (limited to 'libiberty/configure.ac')
-rw-r--r-- | libiberty/configure.ac | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/libiberty/configure.ac b/libiberty/configure.ac index cdc3cd3..8212378 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac @@ -132,26 +132,8 @@ GCC_NO_EXECUTABLES AC_PROG_CC AC_PROG_CPP_WERROR -# Warn C++ incompatibilities if supported. -AC_CACHE_CHECK( - [whether ${CC} accepts -Wc++-compat], - [ac_cv_prog_cc_w_cxx_compat], - [save_CFLAGS="$CFLAGS" - CFLAGS="-Wc++-compat" - AC_COMPILE_IFELSE([AC_LANG_SOURCE([[]])], - [ac_cv_prog_cc_w_cxx_compat=yes], - [ac_cv_prog_cc_w_cxx_compat=no]) - CFLAGS="$save_CFLAGS" - ]) - - -if test x$GCC = xyes; then - ac_libiberty_warn_cflags='-W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes' -fi -if test $ac_cv_prog_cc_w_cxx_compat = yes ; then - ac_libiberty_warn_cflags="${ac_libiberty_warn_cflags} -Wc++-compat" -fi -AC_SUBST(ac_libiberty_warn_cflags) +ACX_PROG_CC_WARNING_OPTS([-W -Wall -pedantic -Wwrite-strings -Wc++-compat \ + -Wstrict-prototypes], [ac_libiberty_warn_cflags]) AC_PROG_CC_C_O # autoconf is lame and doesn't give us any substitution variable for this. |