1AC_DEFUN([AG_GST_DEBUGINFO], [ 2AC_ARG_ENABLE(debug, 3AC_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) ;; 8esac], 9[USE_DEBUG=yes]) dnl Default value 10 11AC_ARG_ENABLE(DEBUG, 12AC_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) ;; 17esac], 18[ENABLE_DEBUG=yes]) dnl Default value 19if test x$ENABLE_DEBUG = xyes; then 20 AC_DEFINE(GST_DEBUG_ENABLED, 1, [Define if DEBUG statements should be compiled in]) 21fi 22 23AC_ARG_ENABLE(INFO, 24AC_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) ;; 29esac], 30[ENABLE_INFO=yes]) dnl Default value 31if test x$ENABLE_INFO = xyes; then 32 AC_DEFINE(GST_INFO_ENABLED, 1, [Define if INFO statements should be compiled in]) 33fi 34 35AC_ARG_ENABLE(debug-color, 36AC_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) ;; 41esac], 42[ENABLE_DEBUG_COLOR=yes]) dnl Default value 43if test "x$ENABLE_DEBUG_COLOR" = xyes; then 44 AC_DEFINE(GST_DEBUG_COLOR, 1, [Define if debugging messages should be colorized]) 45fi 46]) 47