Blame SOURCES/05000-autotool-intermediates.patch

c8ca20
diff -up ./configure.autotool-intermediates ./configure
c8ca20
--- ./configure.autotool-intermediates	2013-04-09 11:24:01.024185796 +0200
c8ca20
+++ ./configure	2013-04-09 11:24:01.780183954 +0200
c8ca20
@@ -639,6 +639,8 @@ TRUE
c8ca20
 MACHDEP_OBJS
c8ca20
 DYNLOADFILE
c8ca20
 DLINCLDIR
c8ca20
+DTRACEHDRS
c8ca20
+DTRACEOBJS
c8ca20
 THREADOBJ
c8ca20
 LDLAST
c8ca20
 USE_THREAD_MODULE
c8ca20
@@ -659,6 +661,8 @@ OTHER_LIBTOOL_OPT
c8ca20
 UNIVERSAL_ARCH_FLAGS
c8ca20
 BASECFLAGS
c8ca20
 OPT
c8ca20
+DEBUG_SUFFIX
c8ca20
+DEBUG_EXT
c8ca20
 LN
c8ca20
 MKDIR_P
c8ca20
 INSTALL_DATA
c8ca20
@@ -795,8 +799,11 @@ with_pth
c8ca20
 enable_ipv6
c8ca20
 with_doc_strings
c8ca20
 with_tsc
c8ca20
+with_count_allocs
c8ca20
+with_call_profile
c8ca20
 with_pymalloc
c8ca20
 with_valgrind
c8ca20
+with_dtrace
c8ca20
 with_wctype_functions
c8ca20
 with_fpectl
c8ca20
 with_libm
c8ca20
@@ -1472,8 +1479,11 @@ Optional Packages:
c8ca20
   --with-pth              use GNU pth threading libraries
c8ca20
   --with(out)-doc-strings disable/enable documentation strings
c8ca20
   --with(out)-tsc         enable/disable timestamp counter profile
c8ca20
+  --with(out)count-allocs  enable/disable per-type instance accounting
c8ca20
+  --with(out)-call-profile  enable/disable statistics on function call invocation
c8ca20
   --with(out)-pymalloc    disable/enable specialized mallocs
c8ca20
   --with-valgrind         Enable Valgrind support
c8ca20
+  --with(out)-dtrace      disable/enable dtrace support
c8ca20
   --with-wctype-functions use wctype.h functions
c8ca20
   --with-fpectl           enable SIGFPE catching
c8ca20
   --with-libm=STRING      math library
c8ca20
@@ -5171,7 +5181,7 @@ esac
c8ca20
 $as_echo_n "checking LIBRARY... " >&6; }
c8ca20
 if test -z "$LIBRARY"
c8ca20
 then
c8ca20
-	LIBRARY='libpython$(VERSION).a'
c8ca20
+	LIBRARY='libpython$(VERSION)$(DEBUG_EXT).a'
c8ca20
 fi
c8ca20
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
c8ca20
 $as_echo "$LIBRARY" >&6; }
c8ca20
@@ -5343,8 +5353,8 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>
c8ca20
 	  INSTSONAME="$LDLIBRARY".$SOVERSION
c8ca20
           ;;
c8ca20
     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
c8ca20
-	  LDLIBRARY='libpython$(VERSION).so'
c8ca20
-	  BLDLIBRARY='-L. -lpython$(VERSION)'
c8ca20
+	  LDLIBRARY='libpython$(VERSION)$(DEBUG_EXT).so'
c8ca20
+	  BLDLIBRARY='-L. -lpython$(VERSION)$(DEBUG_EXT)'
c8ca20
 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
c8ca20
 	  case $ac_sys_system in
c8ca20
 	      FreeBSD*)
c8ca20
@@ -5367,7 +5377,7 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>
c8ca20
 	  ;;
c8ca20
     OSF*)
c8ca20
 	  LDLIBRARY='libpython$(VERSION).so'
c8ca20
-	  BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
c8ca20
+	  BLDLIBRARY='-L. -lpython$(VERSION)'
c8ca20
 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
c8ca20
 	  ;;
c8ca20
     atheos*)
c8ca20
@@ -5894,6 +5904,14 @@ $as_echo "no" >&6; }
c8ca20
 fi
c8ca20
 
c8ca20
 
c8ca20
+if test "$Py_DEBUG" = 'true'
c8ca20
+then
c8ca20
+	DEBUG_EXT=_d
c8ca20
+	DEBUG_SUFFIX=-debug
c8ca20
+fi
c8ca20
+
c8ca20
+
c8ca20
+
c8ca20
 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
c8ca20
 # merged with this chunk of code?
c8ca20
 
c8ca20
@@ -9958,6 +9976,50 @@ $as_echo "no" >&6; }
c8ca20
 fi
c8ca20
 
c8ca20
 
c8ca20
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-count-allocs" >&5
c8ca20
+$as_echo_n "checking for --with-count-allocs... " >&6; }
c8ca20
+
c8ca20
+# Check whether --with-count-allocs was given.
c8ca20
+if test "${with_count_allocs+set}" = set; then :
c8ca20
+  withval=$with_count_allocs;
c8ca20
+if test "$withval" != no
c8ca20
+then
c8ca20
+
c8ca20
+$as_echo "#define COUNT_ALLOCS 1" >>confdefs.h
c8ca20
+
c8ca20
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
c8ca20
+$as_echo "yes" >&6; }
c8ca20
+else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
c8ca20
+$as_echo "no" >&6; }
c8ca20
+fi
c8ca20
+else
c8ca20
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
c8ca20
+$as_echo "no" >&6; }
c8ca20
+fi
c8ca20
+
c8ca20
+
c8ca20
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-call-profile" >&5
c8ca20
+$as_echo_n "checking for --with-call-profile... " >&6; }
c8ca20
+
c8ca20
+# Check whether --with-call-profile was given.
c8ca20
+if test "${with_call_profile+set}" = set; then :
c8ca20
+  withval=$with_call_profile;
c8ca20
+if test "$withval" != no
c8ca20
+then
c8ca20
+
c8ca20
+$as_echo "#define CALL_PROFILE 1" >>confdefs.h
c8ca20
+
c8ca20
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
c8ca20
+$as_echo "yes" >&6; }
c8ca20
+else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
c8ca20
+$as_echo "no" >&6; }
c8ca20
+fi
c8ca20
+else
c8ca20
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
c8ca20
+$as_echo "no" >&6; }
c8ca20
+fi
c8ca20
+
c8ca20
+
c8ca20
 # Check for Python-specific malloc support
c8ca20
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
c8ca20
 $as_echo_n "checking for --with-pymalloc... " >&6; }
c8ca20
@@ -10007,6 +10069,46 @@ fi
c8ca20
 
c8ca20
 fi
c8ca20
 
c8ca20
+# Check for dtrace support
c8ca20
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
c8ca20
+$as_echo_n "checking for --with-dtrace... " >&6; }
c8ca20
+
c8ca20
+# Check whether --with-dtrace was given.
c8ca20
+if test "${with_dtrace+set}" = set; then :
c8ca20
+  withval=$with_dtrace;
c8ca20
+fi
c8ca20
+
c8ca20
+
c8ca20
+if test ! -z "$with_dtrace"
c8ca20
+then
c8ca20
+    if dtrace -G -o /dev/null -s $srcdir/Include/pydtrace.d 2>/dev/null
c8ca20
+    then
c8ca20
+
c8ca20
+$as_echo "#define WITH_DTRACE 1" >>confdefs.h
c8ca20
+
c8ca20
+	with_dtrace="Sun"
c8ca20
+	DTRACEOBJS="Python/dtrace.o"
c8ca20
+	DTRADEHDRS=""
c8ca20
+    elif dtrace -h -o /dev/null -s $srcdir/Include/pydtrace.d
c8ca20
+    then
c8ca20
+
c8ca20
+$as_echo "#define WITH_DTRACE 1" >>confdefs.h
c8ca20
+
c8ca20
+	with_dtrace="Apple"
c8ca20
+	DTRACEOBJS=""
c8ca20
+	DTRADEHDRS="pydtrace.h"
c8ca20
+    else
c8ca20
+	with_dtrace="no"
c8ca20
+    fi
c8ca20
+else
c8ca20
+    with_dtrace="no"
c8ca20
+fi
c8ca20
+
c8ca20
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
c8ca20
+$as_echo "$with_dtrace" >&6; }
c8ca20
+
c8ca20
+
c8ca20
+
c8ca20
 # Check for --with-wctype-functions
c8ca20
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
c8ca20
 $as_echo_n "checking for --with-wctype-functions... " >&6; }
c8ca20
diff -up ./pyconfig.h.in.autotool-intermediates ./pyconfig.h.in
c8ca20
--- ./pyconfig.h.in.autotool-intermediates	2013-04-09 11:24:01.020185806 +0200
c8ca20
+++ ./pyconfig.h.in	2013-04-09 11:24:02.088183204 +0200
c8ca20
@@ -18,6 +18,12 @@
c8ca20
 /* Define this if you have BeOS threads. */
c8ca20
 #undef BEOS_THREADS
c8ca20
 
c8ca20
+/* Define to keep records on function call invocation */
c8ca20
+#undef CALL_PROFILE
c8ca20
+
c8ca20
+/* Define to keep records of the number of instances of each type */
c8ca20
+#undef COUNT_ALLOCS
c8ca20
+
c8ca20
 /* Define if you have the Mach cthreads package */
c8ca20
 #undef C_THREADS
c8ca20
 
c8ca20
@@ -1119,12 +1125,6 @@
c8ca20
 /* Define to profile with the Pentium timestamp counter */
c8ca20
 #undef WITH_TSC
c8ca20
 
c8ca20
-/* Define to keep records of the number of instances of each type */
c8ca20
-#undef COUNT_ALLOCS
c8ca20
-
c8ca20
-/* Define to keep records on function call invocation */
c8ca20
-#undef CALL_PROFILE
c8ca20
-
c8ca20
 /* Define if you want pymalloc to be disabled when running under valgrind */
c8ca20
 #undef WITH_VALGRIND
c8ca20