aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2007-01-04 09:12:28 +0000
committerPaolo Bonzini <bonzini@gnu.org>2007-01-04 09:12:28 +0000
commit79fcd0ece5c6df22ab18df06d6549cfcb75ed6e1 (patch)
tree59adee11cf31e2972a895e6ffe3f8bc539485a0b /configure.in
parent2b5ebeff8080e14545006c8b41bbbd7972ca4987 (diff)
downloadgdb-79fcd0ece5c6df22ab18df06d6549cfcb75ed6e1.zip
gdb-79fcd0ece5c6df22ab18df06d6549cfcb75ed6e1.tar.gz
gdb-79fcd0ece5c6df22ab18df06d6549cfcb75ed6e1.tar.bz2
2007-01-04 Paolo Bonzini <bonzini@gnu.org>
* configure.in: Use DEV-PHASE to detect the default for --enable-werror. * configure: Regenerate.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
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="" ;;