tracker r2878 - trunk



Author: mr
Date: Thu Feb  5 10:36:16 2009
New Revision: 2878
URL: http://svn.gnome.org/viewvc/tracker?rev=2878&view=rev

Log:
	* acinclude.m4: Added "maximum" to the arguments that can be used
	in --with-compile-warnings. This was always available, just not
	mentioned. It is the same as "error", just without -Werror. Also
	make "maximum" the default not "error" (only for builds with
	autogen.sh). 

	* configure.ac: Add a status string in the summary with the
	compile warnings setting.


Modified:
   trunk/ChangeLog
   trunk/acinclude.m4
   trunk/configure.ac

Modified: trunk/acinclude.m4
==============================================================================
--- trunk/acinclude.m4	(original)
+++ trunk/acinclude.m4	Thu Feb  5 10:36:16 2009
@@ -94,14 +94,14 @@
 dnl #########################################################################
 dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
 AC_DEFUN([IDT_COMPILE_WARNINGS],[
-   if test -f $srcdir/autogen.sh; then
-	default_compile_warnings="error"
+    if test -f $srcdir/autogen.sh; then
+	default_compile_warnings="maximum"
     else
 	default_compile_warnings="no"
     fi
 
     AC_ARG_WITH(compile-warnings,
-                AS_HELP_STRING([--with-compile-warnings=@<:@no/yes/error@:>@],
+                AS_HELP_STRING([--with-compile-warnings=@<:@no/yes/maximum/error@:>@],
                                [Compiler warnings]),
                 [enable_compile_warnings="$withval"],
                 [enable_compile_warnings="$default_compile_warnings"])

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Thu Feb  5 10:36:16 2009
@@ -1266,6 +1266,7 @@
 	Prefix:					${prefix}
 	Source code location:			${srcdir}
 	Compiler:				${CC}
+	Compiler Warnings:			$enable_compile_warnings
 
 	Win32:					$native_win32
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]