diff options
author | Paolo Bonzini <bonzini@gcc.gnu.org> | 2007-01-04 09:10:51 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2007-01-04 09:10:51 +0000 |
commit | 88fceb6820c6835e7e502aa950b61bbc792eb2a6 (patch) | |
tree | b8ddb97bb70a0379a806bf0170b672d3e60def4c /configure.in | |
parent | e01f74e08e0ea50cd26c936c0ddcf7212fd18b7a (diff) | |
download | gcc-88fceb6820c6835e7e502aa950b61bbc792eb2a6.zip gcc-88fceb6820c6835e7e502aa950b61bbc792eb2a6.tar.gz gcc-88fceb6820c6835e7e502aa950b61bbc792eb2a6.tar.bz2 |
configure.in: Use DEV-PHASE to detect the default for --enable-werror.
2007-01-04 Paolo Bonzini <bonzini@gnu.org>
* configure.in: Use DEV-PHASE to detect the default for --enable-werror.
* configure: Regenerate.
From-SVN: r120432
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 6c7189f..a808467 100644 --- a/configure.in +++ b/configure.in @@ -2488,10 +2488,13 @@ fi]) AC_SUBST(stage1_checking) # Enable -Werror in bootstrap stage2 and later. -# Change the default to "no" on release branches. AC_ARG_ENABLE(werror, [ --enable-werror enable -Werror in bootstrap stage2 and later], [], -[enable_werror=yes]) +[if test -d gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then + enable_werror=yes +else + enable_werror=no +fi]) case ${enable_werror} in yes) stage2_werror_flag="--enable-werror-always" ;; *) stage2_werror_flag="" ;; |