From: <tho...@fr...> - 2005-10-16 12:27:13
|
CVS Root: /cvs/gstreamer Module: common Changes by: thomasvs Date: Sun Oct 16 2005 05:27:10 PDT Log message: * m4/gst-error.m4: add GST_SET_DEFAULT_LEVEL Modified files: . : ChangeLog m4 : gst-error.m4 Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/common/ChangeLog.diff?r1=1.64&r2=1.65 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/common/m4/gst-error.m4.diff?r1=1.2&r2=1.3 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/common/ChangeLog,v retrieving revision 1.64 retrieving revision 1.65 diff -u -d -r1.64 -r1.65 --- ChangeLog 16 Oct 2005 12:04:41 -0000 1.64 +++ ChangeLog 16 Oct 2005 12:26:58 -0000 1.65 @@ -1,5 +1,10 @@ 2005-10-16 Thomas Vander Stichele <thomas at apestaart dot org> + * m4/gst-error.m4: + add GST_SET_DEFAULT_LEVEL + +2005-10-16 Thomas Vander Stichele <thomas at apestaart dot org> * m4/Makefile.am: * m4/gst-gettext.m4: remove the AM_GNU_GETTEXT* calls, they need to be in configure.ac Index: gst-error.m4 RCS file: /cvs/gstreamer/common/m4/gst-error.m4,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- gst-error.m4 15 Oct 2005 09:28:59 -0000 1.2 +++ gst-error.m4 16 Oct 2005 12:26:58 -0000 1.3 @@ -1,10 +1,12 @@ -dnl Decide on error flags +dnl handle various error-related things dnl Thomas Vander Stichele <th...@ap...> -dnl Last modification: 08/07/2005 +dnl Last modification: 2005-10-16 dnl GST_SET_ERROR_CFLAGS([ADD-WERROR]) +dnl GST_SET_LEVEL_DEFAULT([IS-CVS-VERSION]) dnl Sets ERROR_CFLAGS to something the compiler will accept. dnl AC_SUBST them so they are available in Makefile @@ -14,7 +16,6 @@ dnl These flags can be overridden at make time: dnl make ERROR_CFLAGS= - AC_DEFUN([GST_SET_ERROR_CFLAGS], [ AC_REQUIRE([AC_PROG_CC]) @@ -34,3 +35,19 @@ AC_SUBST(ERROR_CFLAGS) AC_MSG_NOTICE([set ERROR_CFLAGS to $ERROR_CFLAGS]) ]) +dnl Sets the default error level for debugging messages +AC_DEFUN([GST_SET_LEVEL_DEFAULT], +[ + dnl define correct errorlevel for debugging messages. We want to have + dnl GST_ERROR messages printed when running cvs builds + if test "x[$1]" = "xyes"; then + GST_LEVEL_DEFAULT=GST_LEVEL_ERROR + else + GST_LEVEL_DEFAULT=GST_LEVEL_NONE + fi + AC_DEFINE_UNQUOTED(GST_LEVEL_DEFAULT, $GST_LEVEL_DEFAULT, + [Default errorlevel to use]) + dnl AC_SUBST so we can use it for win32/common/config.h + AC_SUBST(GST_LEVEL_DEFAULT) +]) |