From 88fceb6820c6835e7e502aa950b61bbc792eb2a6 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 4 Jan 2007 09:10:51 +0000 Subject: configure.in: Use DEV-PHASE to detect the default for --enable-werror. 2007-01-04 Paolo Bonzini * configure.in: Use DEV-PHASE to detect the default for --enable-werror. * configure: Regenerate. From-SVN: r120432 --- configure.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'configure.in') 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="" ;; -- cgit v1.1