+2017-05-31 Martin Liska <mliska@suse.cz>
+
+ * configure.ac: Add handling of stage2_werror_flags to
+ action-if-given and to action-if-not-given.
+ * configure: Regenerate.
+
2017-05-31 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
* MAINTAINERS: Add self to Write After Approval
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
enableval=$enable_werror;
-fi
-
case ${enable_werror} in
yes) stage2_werror_flag="--enable-werror-always" ;;
*) stage2_werror_flag="" ;;
esac
+else
+
if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
case $BUILD_CONFIG in
bootstrap-debug)
esac
fi
+fi
+
+
# Specify what files to not compare during bootstrap.
# Enable -Werror in bootstrap stage2 and later.
AC_ARG_ENABLE(werror,
[AS_HELP_STRING([--enable-werror],
- [enable -Werror in bootstrap stage2 and later])], [], [])
+ [enable -Werror in bootstrap stage2 and later])],
+[
case ${enable_werror} in
yes) stage2_werror_flag="--enable-werror-always" ;;
*) stage2_werror_flag="" ;;
esac
-
+],
+[
if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
case $BUILD_CONFIG in
bootstrap-debug)
stage2_werror_flag="--enable-werror-always" ;;
esac
fi
+])
AC_SUBST(stage2_werror_flag)