debian: Handle missing tcmalloc on Debian lenny.

lenny doesn't have a suitable libgoogle-perftools-dev, and
release.sh edits it out of build-deps. Detect that and tell
configure that not having tcmalloc is ok.

This should make 05c281bfa9
unnecessary.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
This commit is contained in:
Tommi Virtanen 2011-04-19 11:20:24 -07:00 committed by Sage Weil
parent 0d98a62ce2
commit f6179fc375

8
debian/rules vendored
View File

@ -33,6 +33,14 @@ ifneq ($(DEB_HOST_ARCH), amd64)
endif
endif
ifeq ($(shell grep -c -E '^Build-Depends:(.*,)?[[:space:]]*libgoogle-perftools-dev([[:space:]]|,|$$)' debian/control),0)
# if Build-Deps have been edited to skip libgoogle-perftools-dev (as
# we do for Debian lenny), tell configure it's ok to not have
# tcmalloc.
extraopts += --without-tcmalloc
endif
configure: configure-stamp
configure-stamp:
dh_testdir