diff options
author | Nicholas Bastin <nick.bastin@gmail.com> | 2004-06-22 03:51:38 (GMT) |
---|---|---|
committer | Nicholas Bastin <nick.bastin@gmail.com> | 2004-06-22 03:51:38 (GMT) |
commit | 4c70b69fb19ce5d730a70ab5d67272bb7202bd6c (patch) | |
tree | 16693f8610a4e259acaa4604c8cc40f04081f683 /configure | |
parent | 9c18e81fb23d60ea77bdf4f3c2649296f26e4a95 (diff) | |
download | cpython-4c70b69fb19ce5d730a70ab5d67272bb7202bd6c.zip cpython-4c70b69fb19ce5d730a70ab5d67272bb7202bd6c.tar.gz cpython-4c70b69fb19ce5d730a70ab5d67272bb7202bd6c.tar.bz2 |
Making C profiling a configure option (at least temporarily)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.457 . +# From configure.in Revision: 1.458 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for python 2.4. # @@ -869,6 +869,7 @@ Optional Packages: deprecated; use --with(out)-threads --with-pth use GNU pth threading libraries --with(out)-doc-strings disable/enable documentation strings + --with-c-profiling Enable profiling of builtins and C extension functions --with(out)-tsc enable/disable timestamp counter profile --with(out)-pymalloc disable/enable specialized mallocs --with-wctype-functions use wctype.h functions @@ -13029,6 +13030,31 @@ fi echo "$as_me:$LINENO: result: $with_doc_strings" >&5 echo "${ECHO_T}$with_doc_strings" >&6 +# Check for C call profiling support +echo "$as_me:$LINENO: checking for --with-c-profiling" >&5 +echo $ECHO_N "checking for --with-c-profiling... $ECHO_C" >&6 + +# Check whether --with-c-profiling or --without-c-profiling was given. +if test "${with_c_profiling+set}" = set; then + withval="$with_c_profiling" + +if test "$withval" != no +then + +cat >>confdefs.h <<\_ACEOF +#define WITH_C_PROF 1 +_ACEOF + + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi; + # Check for Python-specific malloc support echo "$as_me:$LINENO: checking for --with-tsc" >&5 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |