7eb10c8
diff -up ./configure.autotool-intermediates ./configure
7eb10c8
--- ./configure.autotool-intermediates	2010-08-02 17:58:12.238002650 -0400
7eb10c8
+++ ./configure	2010-08-02 17:58:20.151000507 -0400
7eb10c8
@@ -1,5 +1,5 @@
7eb10c8
 #! /bin/sh
7eb10c8
-# From configure.in Revision: 82090 .
7eb10c8
+# From configure.in Revision: 82962 .
7eb10c8
 # Guess values for system-dependent variables and create Makefiles.
7eb10c8
 # Generated by GNU Autoconf 2.65 for python 3.2.
7eb10c8
 #
7eb10c8
@@ -610,6 +610,8 @@ TRUE
7eb10c8
 MACHDEP_OBJS
7eb10c8
 DYNLOADFILE
7eb10c8
 DLINCLDIR
7eb10c8
+DTRACEHDRS
7eb10c8
+DTRACEOBJS
7eb10c8
 THREADOBJ
7eb10c8
 LDLAST
7eb10c8
 USE_THREAD_MODULE
7eb10c8
@@ -630,6 +632,8 @@ OTHER_LIBTOOL_OPT
7eb10c8
 UNIVERSAL_ARCH_FLAGS
7eb10c8
 BASECFLAGS
7eb10c8
 OPT
7eb10c8
+DEBUG_SUFFIX
7eb10c8
+DEBUG_EXT
7eb10c8
 LN
7eb10c8
 INSTALL_DATA
7eb10c8
 INSTALL_SCRIPT
7eb10c8
@@ -743,8 +747,11 @@ with_thread
7eb10c8
 enable_ipv6
7eb10c8
 with_doc_strings
7eb10c8
 with_tsc
7eb10c8
+with_count_allocs
7eb10c8
+with_call_profile
7eb10c8
 with_pymalloc
7eb10c8
 with_valgrind
7eb10c8
+with_dtrace
7eb10c8
 with_wctype_functions
7eb10c8
 with_fpectl
7eb10c8
 with_libm
7eb10c8
@@ -1414,8 +1421,11 @@ Optional Packages:
7eb10c8
                           deprecated; use --with(out)-threads
7eb10c8
   --with(out)-doc-strings disable/enable documentation strings
7eb10c8
   --with(out)-tsc         enable/disable timestamp counter profile
7eb10c8
+  --with(out)count-allocs  enable/disable per-type instance accounting
7eb10c8
+  --with(out)-call-profile  enable/disable statistics on function call invocation
7eb10c8
   --with(out)-pymalloc    disable/enable specialized mallocs
7eb10c8
   --with-valgrind         Enable Valgrind support
7eb10c8
+  --with(out)-dtrace      disable/enable dtrace support
7eb10c8
   --with-wctype-functions use wctype.h functions
7eb10c8
   --with-fpectl           enable SIGFPE catching
7eb10c8
   --with-libm=STRING      math library
7eb10c8
@@ -1929,11 +1939,11 @@ else
7eb10c8
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eb10c8
 /* end confdefs.h.  */
7eb10c8
 $ac_includes_default
7eb10c8
-	     enum { N = $2 / 2 - 1 };
7eb10c8
 int
7eb10c8
 main ()
7eb10c8
 {
7eb10c8
-static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
7eb10c8
+static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
7eb10c8
+	     0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
7eb10c8
 test_array [0] = 0
7eb10c8
 
7eb10c8
   ;
7eb10c8
@@ -1944,11 +1954,11 @@ if ac_fn_c_try_compile "$LINENO"; then :
7eb10c8
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eb10c8
 /* end confdefs.h.  */
7eb10c8
 $ac_includes_default
7eb10c8
-	        enum { N = $2 / 2 - 1 };
7eb10c8
 int
7eb10c8
 main ()
7eb10c8
 {
7eb10c8
-static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
7eb10c8
+static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
7eb10c8
+		($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
7eb10c8
 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
7eb10c8
 test_array [0] = 0
7eb10c8
 
7eb10c8
@@ -4672,7 +4682,7 @@ esac
7eb10c8
 $as_echo_n "checking LIBRARY... " >&6; }
7eb10c8
 if test -z "$LIBRARY"
7eb10c8
 then
7eb10c8
-	LIBRARY='libpython$(VERSION).a'
7eb10c8
+	LIBRARY='libpython$(VERSION)$(DEBUG_EXT).a'
7eb10c8
 fi
7eb10c8
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
7eb10c8
 $as_echo "$LIBRARY" >&6; }
7eb10c8
@@ -4843,8 +4853,8 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>
7eb10c8
 	  INSTSONAME="$LDLIBRARY".$SOVERSION
7eb10c8
           ;;
7eb10c8
     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
7eb10c8
-	  LDLIBRARY='libpython$(VERSION).so'
7eb10c8
-	  BLDLIBRARY='-L. -lpython$(VERSION)'
7eb10c8
+	  LDLIBRARY='libpython$(VERSION)$(DEBUG_EXT).so'
7eb10c8
+	  BLDLIBRARY='-L. -lpython$(VERSION)$(DEBUG_EXT)'
7eb10c8
 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
7eb10c8
 	  case $ac_sys_system in
7eb10c8
 	      FreeBSD*)
7eb10c8
@@ -5237,6 +5247,14 @@ $as_echo "no" >&6; }
7eb10c8
 fi
7eb10c8
 
7eb10c8
 
7eb10c8
+if test "$Py_DEBUG" = 'true'
7eb10c8
+then
7eb10c8
+	DEBUG_EXT=_d
7eb10c8
+	DEBUG_SUFFIX=-debug
7eb10c8
+fi
7eb10c8
+
7eb10c8
+
7eb10c8
+
7eb10c8
 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
7eb10c8
 # merged with this chunk of code?
7eb10c8
 
7eb10c8
@@ -8160,6 +8178,7 @@ fi
7eb10c8
 $as_echo "$with_system_expat" >&6; }
7eb10c8
 
7eb10c8
 # Check for use of the system libffi library
7eb10c8
+
7eb10c8
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
7eb10c8
 $as_echo_n "checking for --with-system-ffi... " >&6; }
7eb10c8
 
7eb10c8
@@ -9144,6 +9163,50 @@ $as_echo "no" >&6; }
7eb10c8
 fi
7eb10c8
 
7eb10c8
 
7eb10c8
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-count-allocs" >&5
7eb10c8
+$as_echo_n "checking for --with-count-allocs... " >&6; }
7eb10c8
+
7eb10c8
+# Check whether --with-count-allocs was given.
7eb10c8
+if test "${with_count_allocs+set}" = set; then :
7eb10c8
+  withval=$with_count_allocs;
7eb10c8
+if test "$withval" != no
7eb10c8
+then
7eb10c8
+
7eb10c8
+$as_echo "#define COUNT_ALLOCS 1" >>confdefs.h
7eb10c8
+
7eb10c8
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7eb10c8
+$as_echo "yes" >&6; }
7eb10c8
+else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7eb10c8
+$as_echo "no" >&6; }
7eb10c8
+fi
7eb10c8
+else
7eb10c8
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7eb10c8
+$as_echo "no" >&6; }
7eb10c8
+fi
7eb10c8
+
7eb10c8
+
7eb10c8
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-call-profile" >&5
7eb10c8
+$as_echo_n "checking for --with-call-profile... " >&6; }
7eb10c8
+
7eb10c8
+# Check whether --with-call-profile was given.
7eb10c8
+if test "${with_call_profile+set}" = set; then :
7eb10c8
+  withval=$with_call_profile;
7eb10c8
+if test "$withval" != no
7eb10c8
+then
7eb10c8
+
7eb10c8
+$as_echo "#define CALL_PROFILE 1" >>confdefs.h
7eb10c8
+
7eb10c8
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7eb10c8
+$as_echo "yes" >&6; }
7eb10c8
+else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7eb10c8
+$as_echo "no" >&6; }
7eb10c8
+fi
7eb10c8
+else
7eb10c8
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7eb10c8
+$as_echo "no" >&6; }
7eb10c8
+fi
7eb10c8
+
7eb10c8
+
7eb10c8
 # Check for Python-specific malloc support
7eb10c8
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
7eb10c8
 $as_echo_n "checking for --with-pymalloc... " >&6; }
7eb10c8
@@ -9194,6 +9257,46 @@ fi
7eb10c8
     OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
7eb10c8
 fi
7eb10c8
 
7eb10c8
+# Check for dtrace support
7eb10c8
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
7eb10c8
+$as_echo_n "checking for --with-dtrace... " >&6; }
7eb10c8
+
7eb10c8
+# Check whether --with-dtrace was given.
7eb10c8
+if test "${with_dtrace+set}" = set; then :
7eb10c8
+  withval=$with_dtrace;
7eb10c8
+fi
7eb10c8
+
7eb10c8
+
7eb10c8
+if test ! -z "$with_dtrace"
7eb10c8
+then
7eb10c8
+    if dtrace -G -o /dev/null -s $srcdir/Include/pydtrace.d 2>/dev/null
7eb10c8
+    then
7eb10c8
+
7eb10c8
+$as_echo "#define WITH_DTRACE 1" >>confdefs.h
7eb10c8
+
7eb10c8
+	with_dtrace="Sun"
7eb10c8
+	DTRACEOBJS="Python/dtrace.o"
7eb10c8
+	DTRADEHDRS=""
7eb10c8
+    elif dtrace -h -o /dev/null -s $srcdir/Include/pydtrace.d
7eb10c8
+   then
7eb10c8
+
7eb10c8
+$as_echo "#define WITH_DTRACE 1" >>confdefs.h
7eb10c8
+
7eb10c8
+	with_dtrace="Apple"
7eb10c8
+	DTRACEOBJS=""
7eb10c8
+	DTRADEHDRS="pydtrace.h"
7eb10c8
+    else
7eb10c8
+	with_dtrace="no"
7eb10c8
+    fi
7eb10c8
+else
7eb10c8
+    with_dtrace="no"
7eb10c8
+fi
7eb10c8
+
7eb10c8
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
7eb10c8
+$as_echo "$with_dtrace" >&6; }
7eb10c8
+
7eb10c8
+
7eb10c8
+
7eb10c8
 # Check for --with-wctype-functions
7eb10c8
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
7eb10c8
 $as_echo_n "checking for --with-wctype-functions... " >&6; }
7eb10c8
diff -up ./pyconfig.h.in.autotool-intermediates ./pyconfig.h.in
7eb10c8
--- ./pyconfig.h.in.autotool-intermediates	2010-08-02 17:58:12.236001348 -0400
7eb10c8
+++ ./pyconfig.h.in	2010-08-02 17:58:20.000000000 -0400
7eb10c8
@@ -12,15 +12,15 @@
7eb10c8
    support for AIX C++ shared extension modules. */
7eb10c8
 #undef AIX_GENUINE_CPLUSPLUS
7eb10c8
 
7eb10c8
-/* Define if you have the Mach cthreads package */
7eb10c8
-#undef C_THREADS
7eb10c8
-
7eb10c8
 /* Define to keep records on function call invocation */
7eb10c8
 #undef CALL_PROFILE
7eb10c8
 
7eb10c8
 /* Define to keep records of the number of instances of each type */
7eb10c8
 #undef COUNT_ALLOCS
7eb10c8
 
7eb10c8
+/* Define if you have the Mach cthreads package */
7eb10c8
+#undef C_THREADS
7eb10c8
+
7eb10c8
 /* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM
7eb10c8
    mixed-endian order (byte order 45670123) */
7eb10c8
 #undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754