File: pdns_enable_malloc_trace.m4

package info (click to toggle)
pdns 5.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,824 kB
  • sloc: cpp: 101,240; sh: 5,616; makefile: 2,318; sql: 860; ansic: 675; python: 635; yacc: 245; perl: 161; lex: 131
file content (13 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
AC_DEFUN([PDNS_ENABLE_MALLOC_TRACE], [
  AC_MSG_CHECKING([whether to enable code malloc-trace])
  AC_ARG_ENABLE([malloc-trace],
    AS_HELP_STRING([--enable-malloc-trace],
      [enable malloc-trace @<:@default=no@:>@]),
    [enable_malloc_trace=$enableval],
    [enable_malloc_trace=no]
  )
  AC_MSG_RESULT([$enable_malloc_trace])
  AM_CONDITIONAL([MALLOC_TRACE], [test "x$enable_malloc_trace" = "xyes"])  
  AS_IF([test "x$enable_malloc_trace" = "xyes"], 
  AC_DEFINE([MALLOC_TRACE], [1], [Define to 1 if you want to benefit from malloc trace]) )
])