Commit ce296a6e authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

m4/gst-error.m4: Reflow checks for additional warning flags so they're not...

m4/gst-error.m4: Reflow checks for additional warning flags so they're not nested, which fixes the result reporting i...

Original commit message from CVS:
* m4/gst-error.m4:
Reflow checks for additional warning flags so they're not
nested, which fixes the result reporting in the configure
output.
parent bd6ec570
2008-02-23 Tim-Philipp Müller <tim at centricular dot net>
* m4/gst-error.m4:
Reflow checks for additional warning flags so they're not
nested, which fixes the result reporting in the configure
output.
2008-02-22 Tim-Philipp Müller <tim at centricular dot net>
* m4/as-compiler-flag.m4:
......
......@@ -87,7 +87,9 @@ AC_DEFUN([AG_GST_SET_ERROR_CXXFLAGS],
dnl if asked for, add -Werror if supported
if test "x$1" != "xno"
then
AS_CXX_COMPILER_FLAG([-Werror], [
AS_CXX_COMPILER_FLAG(-Werror, werror_supported=yes, werror_supported=no)
if test "x$werror_supported" = "xyes"; then
ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror"
dnl add exceptions
......@@ -95,9 +97,10 @@ AC_DEFUN([AG_GST_SET_ERROR_CXXFLAGS],
do
AS_CXX_COMPILER_FLAG([$f], ERROR_CXXFLAGS="$ERROR_CXXFLAGS $f")
done
], [
else
dnl if -Werror isn't suported, try -errwarn=%all
AS_CXX_COMPILER_FLAG([-errwarn=%all], [
AS_CXX_COMPILER_FLAG([-errwarn=%all], errwarnall=yes, errwarnall=no)
if test "x$errwarnall" = "xyes"; then
ERROR_CXXFLAGS="-errwarn=%all"
dnl try -errwarn=%all,no%E_EMPTY_DECLARATION,
dnl no%E_STATEMENT_NOT_REACHED,no%E_ARGUEMENT_MISMATCH,
......@@ -117,8 +120,8 @@ AC_DEFUN([AG_GST_SET_ERROR_CXXFLAGS],
ERROR_CXXFLAGS="$ERROR_CXXFLAGS,$f"
])
done
])
])
fi
fi
fi
AC_SUBST(ERROR_CXXFLAGS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment