~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/valgrind.m4

  • Committer: Monty Taylor
  • Date: 2009-10-06 19:14:39 UTC
  • mfrom: (1130.2.18 plugin-base-class)
  • mto: This revision was merged to the branch mainline in revision 1184.
  • Revision ID: mordred@inaugust.com-20091006191439-fd1vvlp22654l3k3
Merged latest plugin-base-class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl  Copyright (C) 2010 Brian Aker
2
 
dnl This file is free software; Brian Aker
3
 
dnl gives unlimited permission to copy and/or distribute it,
4
 
dnl with or without modifications, as long as this notice is preserved.
5
 
 
6
 
AC_DEFUN([WITH_VALGRIND],[
7
 
 
8
 
  AC_ARG_WITH([valgrind],
9
 
    [AS_HELP_STRING([--with-valgrind],
10
 
       [Add additional valgrind code for testing with valgrind.])],
11
 
    [with_valgrind=yes],
12
 
    [with_valgrind=no])
13
 
  AM_CONDITIONAL(HAVE_VALGRIND,[test "x${with_valgrind}" = "xyes"])
14
 
  AS_IF([test "x$with_valgrind" = "xyes"],
15
 
        AC_DEFINE([HAVE_VALGRIND],[1],
16
 
                  [Add additional valgrind code for testing with valgrind.]))
17
 
])