Skip to content

Commit

Permalink
allow compilation without jemalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
pjstevns committed Apr 22, 2012
1 parent 116e7a3 commit 5bf9c7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,12 @@ AC_DEFUN([DM_CHECK_JEMALLOC], [dnl
fi
AC_CHECK_HEADERS([jemalloc.h jemalloc_defs.h],
[JEMALLOCLIB="-ljemalloc"],
[JEMALLOCLIB="failed"],
[JEMALLOCLIB="no"],
[[
#include <jemalloc.h>
#include <jemalloc_defs.h>
]])
if test [ "x$JEMALLOCLIB" = "xfailed" ]; then
AC_MSG_ERROR([Could not find jemalloc library.])
else
if test [ "x$JEMALLOCLIB" != "xno" ]; then
LDFLAGS="$LDFLAGS $JEMALLOCLIB"
fi
])
Expand Down
6 changes: 2 additions & 4 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -5033,14 +5033,12 @@ if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
_ACEOF
JEMALLOCLIB="-ljemalloc"
else
JEMALLOCLIB="failed"
JEMALLOCLIB="no"
fi
done
if test "x$JEMALLOCLIB" = "xfailed" ; then
as_fn_error $? "Could not find jemalloc library." "$LINENO" 5
else
if test "x$JEMALLOCLIB" != "xno" ; then
LDFLAGS="$LDFLAGS $JEMALLOCLIB"
fi
Expand Down

0 comments on commit 5bf9c7c

Please sign in to comment.