summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-01 23:42:47 +0100
committerMartin Mares <mj@ucw.cz>1999-03-01 23:42:47 +0100
commite834074dd43cabd10ca9811191a212f86b8f6ed7 (patch)
tree06bd7dbcc25f6026bfb306dfcf58cd6d13d1b5cc
parentb982b6db2bc9df396d4cd329e23c5b3199a409a2 (diff)
downloadbird-e834074dd43cabd10ca9811191a212f86b8f6ed7.tar
bird-e834074dd43cabd10ca9811191a212f86b8f6ed7.zip
If we are compiling with debugging enabled and libefence is available,
link it to get debugging malloc.
-rw-r--r--configure.in1
-rw-r--r--tools/Rules.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 9f5baeb..0b46949 100644
--- a/configure.in
+++ b/configure.in
@@ -109,6 +109,7 @@ BIRD_CHECK_TIME_T
if test "$enable_debug" = yes ; then
AC_DEFINE(PATH_CONFIG_DIR, ".")
AC_DEFINE(DEBUGGING)
+ AC_CHECK_LIB(efence, malloc)
else
AC_DEFINE_UNQUOTED(PATH_CONFIG_DIR, "$sysconfdir")
fi
diff --git a/tools/Rules.in b/tools/Rules.in
index db94ba0..36a6eec 100644
--- a/tools/Rules.in
+++ b/tools/Rules.in
@@ -18,6 +18,7 @@ dir-objs:=$(addprefix $(objdir)/,$(all-dirs))
CPPFLAGS=-I$(root-rel) -I$(srcdir)
CFLAGS=$(CPPFLAGS) @CFLAGS@
+LDFLAGS=@LIBS@
CC=@CC@
M4=@M4@
BISON=@BISON@