Turn more warnings on by default; use --disable-more-warnings to turn them off

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3132 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2007-12-04 19:21:58 +00:00
parent f56f5ef9f4
commit af8ce7e7b6

View file

@ -222,14 +222,7 @@ AC_CHECK_HEADERS(pppd/pppd.h,,
AC_ARG_ENABLE(more-warnings,
AC_HELP_STRING([--enable-more-warnings], [Maximum compiler warnings]),
set_more_warnings="$enableval",[
if test -d "$srcdir/{arch}" || test -d "$srcdir/CVS"; then
set_more_warnings=yes
else
set_more_warnings=no
fi
])
AC_HELP_STRING([--enable-more-warnings], [Maximum compiler warnings]), set_more_warnings="$enableval",set_more_warnings=yes)
AC_MSG_CHECKING(for more warnings, including -Werror)
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
AC_MSG_RESULT(yes)