[go: up one dir, main page]

File: id3_debug.m4

package info (click to toggle)
id3lib3.8.3 3.8.3-6
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 4,468 kB
  • ctags: 2,608
  • sloc: cpp: 12,324; sh: 10,351; ansic: 7,236; makefile: 387; php: 325
file content (45 lines) | stat: -rw-r--r-- 1,307 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
AC_DEFUN([ID3_DEBUG],[
  AC_ARG_ENABLE(debug, [  --enable-debug=[no/minimum/yes] turn on debugging [default=$debug_default]],,enable_debug=$debug_default)

  if test "x$enable_debug" = "xyes"; then
    test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
    AC_DEFINE(ID3_ENABLE_DEBUG)
  else
    if test "x$enable_debug" = "xno"; then
      AC_DEFINE(ID3_DISABLE_ASSERT)
      AC_DEFINE(ID3_DISABLE_CHECKS)
    fi
  fi
])

dnl ACCONFIG TEMPLATE
dnl #undef ID3_ENABLE_DEBUG
dnl #undef ID3_DISABLE_ASSERT
dnl #undef ID3_DISABLE_CHECKS
dnl END ACCONFIG
dnl ACCONFIG BOTTOM
dnl #if defined (ID3_ENABLE_DEBUG) && defined (HAVE_LIBCW_SYS_H) && defined (__cplusplus)
dnl 
dnl #define DEBUG
dnl 
dnl #include <libcw/sys.h>
dnl #include <libcw/debug.h>
dnl 
dnl #define ID3D_INIT_DOUT()    Debug( libcw_do.on() )
dnl #define ID3D_INIT_WARNING() Debug( dc::warning.on() )
dnl #define ID3D_INIT_NOTICE()  Debug( dc::notice.on() )
dnl #define ID3D_NOTICE(x)      Dout( dc::notice, x )
dnl #define ID3D_WARNING(x)     Dout( dc::warning, x )
dnl 
dnl #else
dnl 
dnl #  define ID3D_INIT_DOUT()
dnl #  define ID3D_INIT_WARNING()
dnl #  define ID3D_INIT_NOTICE()
dnl #  define ID3D_NOTICE(x)
dnl #  define ID3D_WARNING(x)
dnl 
dnl #endif /* defined (ID3_ENABLE_DEBUG) && defined (HAVE_LIBCW_SYS_H) */
dnl    
dnl END ACCONFIG