From 2b9a98dc69ee75d410a277f9fb0da9767a8b837d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 11 Jun 2011 02:11:30 +0300 Subject: Add configure keys for google perfomance tools. --- configure.ac | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index db6dae2e7..065f389c0 100755 --- a/configure.ac +++ b/configure.ac @@ -191,6 +191,30 @@ esac],[memdebug_enabled=false]) AM_CONDITIONAL(ENABLE_MEM_DEBUG, test x$memdebug_enabled = xtrue) +# Enable tcmalloc +AC_ARG_ENABLE(tcmalloc, +[ --enable-tcmalloc Turn on tcmalloc], +[case "${enableval}" in + yes) tcmalloc_enabled=true +LIBS="$LIBS -ltcmalloc" + ;; + no) tcmalloc_enabled=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-tcmalloc) ;; +esac],[tcmalloc_enabled=false]) + +# Enable google profiler +AC_ARG_ENABLE(googleprofiler, +[ --enable-googleprofiler Turn on google profiler], +[case "${enableval}" in + yes) googleprofiler_enabled=true +LIBS="$LIBS -lprofiler" + ;; + no) googleprofiler_enabled=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-googleprofiler) ;; +esac],[googleprofiler_enabled=false]) + +AM_CONDITIONAL(ENABLE_GOOGLE_PROFILER, test x$googleprofiler_enabled = xtrue) + AC_CONFIG_FILES([ manaplus.spec Makefile -- cgit v1.2.3-70-g09d2