Initial release
[adaptation/ap_samsung/gst-plugins-s5pc2xx.git] / common / m4 / gst-debuginfo.m4
1 AC_DEFUN([AG_GST_DEBUGINFO], [
2 AC_ARG_ENABLE(debug,
3 AC_HELP_STRING([--disable-debug],[disable addition of -g debugging info]),
4 [case "${enableval}" in
5   yes) USE_DEBUG=yes ;;
6   no)  USE_DEBUG=no ;;
7   *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
8 esac],
9 [USE_DEBUG=yes]) dnl Default value
10
11 AC_ARG_ENABLE(DEBUG,
12 AC_HELP_STRING([--disable-DEBUG],[disables compilation of debugging messages]),
13 [case "${enableval}" in
14   yes) ENABLE_DEBUG=yes ;;
15   no)  ENABLE_DEBUG=no ;;
16   *) AC_MSG_ERROR(bad value ${enableval} for --enable-DEBUG) ;;
17 esac],
18 [ENABLE_DEBUG=yes]) dnl Default value
19 if test x$ENABLE_DEBUG = xyes; then
20   AC_DEFINE(GST_DEBUG_ENABLED, 1, [Define if DEBUG statements should be compiled in])
21 fi
22
23 AC_ARG_ENABLE(INFO,
24 AC_HELP_STRING([--disable-INFO],[disables compilation of informational messages]),
25 [case "${enableval}" in
26   yes) ENABLE_INFO=yes ;;
27   no)  ENABLE_INFO=no ;;
28   *) AC_MSG_ERROR(bad value ${enableval} for --enable-INFO) ;;
29 esac],
30 [ENABLE_INFO=yes]) dnl Default value
31 if test x$ENABLE_INFO = xyes; then
32   AC_DEFINE(GST_INFO_ENABLED, 1, [Define if INFO statements should be compiled in])
33 fi
34
35 AC_ARG_ENABLE(debug-color,
36 AC_HELP_STRING([--disable-debug-color],[disables color output of DEBUG and INFO output]),
37 [case "${enableval}" in
38   yes) ENABLE_DEBUG_COLOR=yes ;;
39   no)  ENABLE_DEBUG_COLOR=no ;;
40   *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug-color) ;;
41 esac],
42 [ENABLE_DEBUG_COLOR=yes]) dnl Default value
43 if test "x$ENABLE_DEBUG_COLOR" = xyes; then
44   AC_DEFINE(GST_DEBUG_COLOR, 1, [Define if debugging messages should be colorized])
45 fi
46 ])