diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-11-09 12:10:42 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-11-09 12:10:42 +0100 |
commit | a62f3d4acded1a2913cfe6125a5831274d55c52b (patch) | |
tree | f1554cf40a22b44081328c1549ff4ca3191ffd10 | |
parent | 762b6927ffdd1726cb4f4783f49b5cfaa9edd941 (diff) | |
parent | 63d592ed74618734d69438c770d6462efeb5ab9d (diff) | |
download | gstreamer-common-a62f3d4acded1a2913cfe6125a5831274d55c52b.tar.gz |
Merge branch 'master' into 0.11
-rw-r--r-- | m4/gst-feature.m4 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/m4/gst-feature.m4 b/m4/gst-feature.m4 index 7f684b0..cf05a98 100644 --- a/m4/gst-feature.m4 +++ b/m4/gst-feature.m4 @@ -224,7 +224,37 @@ AC_DEFUN([AG_GST_PARSE_SUBSYSTEM_DISABLES], AG_GST_PARSE_SUBSYSTEM_DISABLE($1,XML) ]) +dnl AG_GST_CHECK_GST_DEBUG_DISABLED(ACTION-IF-DISABLED, ACTION-IF-NOT-DISABLED) +dnl +dnl Checks if the GStreamer debugging system is disabled in the core version +dnl we are compiling against (by checking gstconfig.h) +dnl +AC_DEFUN([AG_GST_CHECK_GST_DEBUG_DISABLED], +[ + AC_REQUIRE([AG_GST_CHECK_GST]) + + AC_MSG_CHECKING([whether the GStreamer debugging system is enabled]) + AC_LANG_PUSH([C]) + save_CFLAGS="$CFLAGS" + CFLAGS="$GST_CFLAGS $CFLAGS" + AC_COMPILE_IFELSE([ + #include <gst/gstconfig.h> + #ifdef GST_DISABLE_GST_DEBUG + #error "debugging disabled, make compiler fail" + #endif], [ debug_system_enabled=yes], [debug_system_enabled=no]) + CFLAGS="$save_CFLAGS" + AC_LANG_POP([C]) + AC_MSG_RESULT([$debug_system_enabled]) + + if test "x$debug_system_enabled" = "xyes" ; then + $2 + true + else + $1 + true + fi +]) dnl relies on GST_PLUGINS_ALL, GST_PLUGINS_SELECTED, GST_PLUGINS_YES, dnl GST_PLUGINS_NO, and BUILD_EXTERNAL |