mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
configure: Use pkg-config to look for valgrind/memcheck.h.
This commit is contained in:
parent
1997149263
commit
d760669e80
@ -871,8 +871,10 @@ AC_ARG_ENABLE(valgrind_pool,
|
|||||||
AC_MSG_RESULT($VALGRIND_POOL)
|
AC_MSG_RESULT($VALGRIND_POOL)
|
||||||
|
|
||||||
if test "$VALGRIND_POOL" = yes; then
|
if test "$VALGRIND_POOL" = yes; then
|
||||||
AC_CHECK_HEADERS([valgrind/memcheck.h], , [AC_MSG_ERROR(bailing out)])
|
PKG_CHECK_MODULES(VALGRIND, valgrind, [], [AC_MSG_ERROR(bailing out)])
|
||||||
AC_DEFINE([VALGRIND_POOL], 1, [Enable a valgrind aware build of pool])
|
AC_DEFINE([VALGRIND_POOL], 1, [Enable a valgrind aware build of pool])
|
||||||
|
AC_SUBST(VALGRIND_POOL)
|
||||||
|
AC_SUBST(VALGRIND_CFLAGS)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -34,6 +34,9 @@ SOURCES =\
|
|||||||
$(interface)/libdm-iface.c
|
$(interface)/libdm-iface.c
|
||||||
|
|
||||||
INCLUDES = -I$(srcdir)/$(interface) -I$(srcdir)
|
INCLUDES = -I$(srcdir)/$(interface) -I$(srcdir)
|
||||||
|
ifeq ("@VALGRIND_POOL@", "yes")
|
||||||
|
INCLUDES += @VALGRIND_CFLAGS@
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ("@STATIC_LINK@", "yes")
|
ifeq ("@STATIC_LINK@", "yes")
|
||||||
LIB_STATIC = $(interface)/libdevmapper.a
|
LIB_STATIC = $(interface)/libdevmapper.a
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include "dmlib.h"
|
#include "dmlib.h"
|
||||||
|
|
||||||
#ifdef VALGRIND_POOL
|
#ifdef VALGRIND_POOL
|
||||||
#include "valgrind/memcheck.h"
|
#include "memcheck.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef VALGRIND_POOL
|
#ifdef VALGRIND_POOL
|
||||||
#include "valgrind/memcheck.h"
|
#include "memcheck.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "dmlib.h"
|
#include "dmlib.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user