aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-05-23 08:00:29 +0000
committerMartin Willi <martin@strongswan.org>2006-05-23 08:00:29 +0000
commit4acc8989ce04ce23532435c75d3a4406ed246f04 (patch)
tree9c7a3f6817744afd3551e756c4e4bf7eabf3c35d
parenta2744feb63d4fcc890701e742e21725a69f05e17 (diff)
downloadstrongswan-4acc8989ce04ce23532435c75d3a4406ed246f04.tar.bz2
strongswan-4acc8989ce04ce23532435c75d3a4406ed246f04.tar.xz
- fixed build when using --enable-leak-detective
-rw-r--r--configure.in1
-rw-r--r--src/libstrongswan/Makefile.am6
2 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index e9d6f19c0..938c161f0 100644
--- a/configure.in
+++ b/configure.in
@@ -77,7 +77,6 @@ AC_ARG_ENABLE(
[leak-detective],
AS_HELP_STRING([--enable-leak-detective],[enable malloc hooks to find memory leaks (default is NO).]),
leak_detective=true
- AC_DEFINE(LEAK_DETECTIVE)
)
AM_CONDITIONAL(USE_LEAK_DETECTIVE, test x$leak_detective = xtrue)
diff --git a/src/libstrongswan/Makefile.am b/src/libstrongswan/Makefile.am
index f7586e22e..84430998c 100644
--- a/src/libstrongswan/Makefile.am
+++ b/src/libstrongswan/Makefile.am
@@ -20,6 +20,12 @@ INCLUDES = -I$(top_srcdir)/src/libstrongswan
EXTRA_DIST = asn1/oid.txt asn1/oid.pl
DISTCLEANFILES = asn1/oid.c asn1/oid.h
+if USE_LEAK_DETECTIVE
+ libstrongswan_la_LIBADD += -ldl
+ AM_CFLAGS = -DLEAK_DETECTIVE
+endif
+
+
# TODO: get perl from ./configure
PERL=perl