Blame common/m4/gst-debuginfo.m4

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