In order to support being able to test functionality, even in the event of warnings being generated during the build process, configure should get an option to disable the warnings-as-errors behaviour in all parts of the build. Doing it as a configure option ensures that as the build process changes over time, this behaviour will remain consistent. As a first use of this functionality in configure, the autobuild environments can perform builds with and without the warnings-as-errors setting, providing testing both on the level of correct code, and on the level of correct functionality.
Change checked in: This adds an option to configure that allows --enable-werror and --disable-werror. It is enabled by default (backwards compatible). When --disable-werror is specified as argument to autogen.sh (which passes it to configure), the -Werror option will *not* be specified as part of CXXFLAGS, CFLAGS, and GCJFLAGS. In addition, the hack to work around the gcj problem (not actually reporting failure in the event of warnings when -Werror is specified) will be disabled with --disable-werror is specified. The implementation of this option has been discussed at great length on the frysk IRC channel on Mar 8th, 2007. This commit modifies the earlier move of the "-Wall -Werror" options from Makefile.rules to frysk-common.ac, by taking out the "-Werror" option because that one is now under autoconf control.