From 1a5d1b483358b85ba1160c25263fc01afcd98b78 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Sun, 20 Sep 2009 13:37:09 +0530 Subject: build: Remove profiling related CFLAGS These can be specified manually by a developer when necessary. Such flags do not belong in a generic distribution. --- configure.ac | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/configure.ac b/configure.ac index 22fd891..02ea0fb 100644 --- a/configure.ac +++ b/configure.ac @@ -74,11 +74,6 @@ TP_ARG_ENABLE(debug, [Enable debugging support code and methods (default is NO)], no) -dnl Add in profiling information -TP_ARG_ENABLE(profiling, - [Enable profiling information (default is NO)], - no) - dnl Check to see if the XTinyproxy header is to be included AH_TEMPLATE([XTINYPROXY_ENABLE], [Define if you want to have the peer's IP address included in a XTinyproxy header sent to the server.]) @@ -222,15 +217,6 @@ AC_CHECK_FUNCS([gethostname inet_ntoa memchr memset select socket strcasecmp \ AC_CHECK_FUNCS([isascii memcpy setrlimit ftruncate regcomp regexec]) AC_CHECK_FUNCS([strlcpy strlcat]) -dnl -dnl Compiler characteristics -dnl - -dnl If profiling is enabled, then enable the debugging code -if test x"$profiling_enabled" = x"yes" ; then - AC_MSG_NOTICE([profiling is enabled, therefore enabling debugging code.]) - debug_enabled=yes -fi dnl Enable extra warnings DESIRED_FLAGS="-fdiagnostics-show-option -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wfloat-equal -Wundef -Wformat=2 -Wlogical-op -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Waggregate-return -Winit-self -Wpacked -pedantic -Wc++-compat -Wno-long-long -Wno-overlength-strings -Wdeclaration-after-statement -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-qual -Wcast-align -Wwrite-strings -Wp,-D_FORTIFY_SOURCE=2 -fno-common" @@ -243,11 +229,6 @@ LDFLAGS="-Wl,-z,defs" dnl Enable the debugging flags (by checking for the GCC compiler) if test x"$debug_enabled" = x"yes" ; then dnl Add the warnings if we have the GCC compiler - if test x"$GCC" = x"yes" ; then - if test x"$profiling_enabled" = x"yes" ; then - CFLAGS="-pg -fprofile-arcs $CFLAGS" - fi - fi CFLAGS="-Wall -g $CFLAGS" else dnl No debugging information, include the optimizations -- cgit v1.2.3