From 13e41ca5abcc2e031dbaefa81de967ff9e9632c6 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 24 Dec 2010 07:00:09 -0700 Subject: [PATCH] CPU profiler is a dev testing feature. Disable by default. --- configure.ac | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 1394e0ff98..d846a6ad95 100644 --- a/configure.ac +++ b/configure.ac @@ -2103,14 +2103,12 @@ AC_ARG_ENABLE(cpu-profiling, SQUID_YESNO([$enableval], [unrecognized argument to --enable-cpu-profiling: $enableval]) ]) -if test "x$enable_cpu_profiling" != "xno"; then +# Default OFF. This is a debug feature. Only check and enable if forced ON. +if test "x$enable_cpu_profiling" = "xyes"; then SQUID_CHECK_FUNCTIONAL_CPU_PROFILER - if test "x$enable_cpu_profiling" = "xyes" -a "x$squid_cv_cpu_profiler_works" = "xno"; then + if test "x$squid_cv_cpu_profiler_works" = "xno"; then AC_MSG_ERROR([CPU profiling will not be functional in this build.]) - elif test "x$squid_cv_cpu_profiler_works" = "xno"; then - AC_MSG_NOTICE([CPU profiling will not be functional in this build.]) fi - enable_cpu_profiling="$squid_cv_cpu_profiler_works" fi SQUID_DEFINE_BOOL(USE_XPROF_STATS,${enable_cpu_profiling:=no}, [Define to enable CPU profiling within Squid]) -- 2.47.2