Blame SOURCES/05000-autotool-intermediates.patch

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