Blame common/m4/gst-debuginfo.m4

Packit Service 963350
AC_DEFUN([AG_GST_DEBUGINFO], [
Packit Service 963350
AC_ARG_ENABLE(debug,
Packit Service 963350
AC_HELP_STRING([--disable-debug],[disable addition of -g debugging info]),
Packit Service 963350
[case "${enableval}" in
Packit Service 963350
  yes) USE_DEBUG=yes ;;
Packit Service 963350
  no)  USE_DEBUG=no ;;
Packit Service 963350
  *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
Packit Service 963350
esac],
Packit Service 963350
[USE_DEBUG=yes]) dnl Default value
Packit Service 963350
Packit Service 963350
AC_ARG_ENABLE(DEBUG,
Packit Service 963350
AC_HELP_STRING([--disable-DEBUG],[disables compilation of debugging messages]),
Packit Service 963350
[case "${enableval}" in
Packit Service 963350
  yes) ENABLE_DEBUG=yes ;;
Packit Service 963350
  no)  ENABLE_DEBUG=no ;;
Packit Service 963350
  *) AC_MSG_ERROR(bad value ${enableval} for --enable-DEBUG) ;;
Packit Service 963350
esac],
Packit Service 963350
[ENABLE_DEBUG=yes]) dnl Default value
Packit Service 963350
if test x$ENABLE_DEBUG = xyes; then
Packit Service 963350
  AC_DEFINE(GST_DEBUG_ENABLED, 1, [Define if DEBUG statements should be compiled in])
Packit Service 963350
fi
Packit Service 963350
Packit Service 963350
AC_ARG_ENABLE(INFO,
Packit Service 963350
AC_HELP_STRING([--disable-INFO],[disables compilation of informational messages]),
Packit Service 963350
[case "${enableval}" in
Packit Service 963350
  yes) ENABLE_INFO=yes ;;
Packit Service 963350
  no)  ENABLE_INFO=no ;;
Packit Service 963350
  *) AC_MSG_ERROR(bad value ${enableval} for --enable-INFO) ;;
Packit Service 963350
esac],
Packit Service 963350
[ENABLE_INFO=yes]) dnl Default value
Packit Service 963350
if test x$ENABLE_INFO = xyes; then
Packit Service 963350
  AC_DEFINE(GST_INFO_ENABLED, 1, [Define if INFO statements should be compiled in])
Packit Service 963350
fi
Packit Service 963350
Packit Service 963350
AC_ARG_ENABLE(debug-color,
Packit Service 963350
AC_HELP_STRING([--disable-debug-color],[disables color output of DEBUG and INFO output]),
Packit Service 963350
[case "${enableval}" in
Packit Service 963350
  yes) ENABLE_DEBUG_COLOR=yes ;;
Packit Service 963350
  no)  ENABLE_DEBUG_COLOR=no ;;
Packit Service 963350
  *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug-color) ;;
Packit Service 963350
esac],
Packit Service 963350
[ENABLE_DEBUG_COLOR=yes]) dnl Default value
Packit Service 963350
if test "x$ENABLE_DEBUG_COLOR" = xyes; then
Packit Service 963350
  AC_DEFINE(GST_DEBUG_COLOR, 1, [Define if debugging messages should be colorized])
Packit Service 963350
fi
Packit Service 963350
])