]>
Commit | Line | Data |
---|---|---|
48d9a6a0 MT |
1 | diff -up ./configure.autotool-intermediates ./configure |
2 | --- ./configure.autotool-intermediates 2013-04-09 11:24:01.024185796 +0200 | |
3 | +++ ./configure 2013-04-09 11:24:01.780183954 +0200 | |
4 | @@ -639,6 +639,8 @@ TRUE | |
5 | MACHDEP_OBJS | |
6 | DYNLOADFILE | |
7 | DLINCLDIR | |
8 | +DTRACEHDRS | |
9 | +DTRACEOBJS | |
10 | THREADOBJ | |
11 | LDLAST | |
12 | USE_THREAD_MODULE | |
13 | @@ -659,6 +661,8 @@ OTHER_LIBTOOL_OPT | |
14 | UNIVERSAL_ARCH_FLAGS | |
15 | BASECFLAGS | |
16 | OPT | |
17 | +DEBUG_SUFFIX | |
18 | +DEBUG_EXT | |
19 | LN | |
20 | MKDIR_P | |
21 | INSTALL_DATA | |
22 | @@ -795,8 +799,11 @@ with_pth | |
23 | enable_ipv6 | |
24 | with_doc_strings | |
25 | with_tsc | |
26 | +with_count_allocs | |
27 | +with_call_profile | |
28 | with_pymalloc | |
29 | with_valgrind | |
30 | +with_dtrace | |
31 | with_wctype_functions | |
32 | with_fpectl | |
33 | with_libm | |
34 | @@ -1472,8 +1479,11 @@ Optional Packages: | |
35 | --with-pth use GNU pth threading libraries | |
36 | --with(out)-doc-strings disable/enable documentation strings | |
37 | --with(out)-tsc enable/disable timestamp counter profile | |
38 | + --with(out)count-allocs enable/disable per-type instance accounting | |
39 | + --with(out)-call-profile enable/disable statistics on function call invocation | |
40 | --with(out)-pymalloc disable/enable specialized mallocs | |
41 | --with-valgrind Enable Valgrind support | |
42 | + --with(out)-dtrace disable/enable dtrace support | |
43 | --with-wctype-functions use wctype.h functions | |
44 | --with-fpectl enable SIGFPE catching | |
45 | --with-libm=STRING math library | |
48d9a6a0 MT |
46 | @@ -5343,8 +5353,8 @@ $as_echo "#define Py_ENABLE_SHARED 1" >> |
47 | INSTSONAME="$LDLIBRARY".$SOVERSION | |
48 | ;; | |
49 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) | |
50 | - LDLIBRARY='libpython$(VERSION).so' | |
51 | - BLDLIBRARY='-L. -lpython$(VERSION)' | |
52 | + LDLIBRARY='libpython$(VERSION)$(DEBUG_EXT).so' | |
53 | + BLDLIBRARY='-L. -lpython$(VERSION)$(DEBUG_EXT)' | |
4034c523 | 54 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
48d9a6a0 MT |
55 | case $ac_sys_system in |
56 | FreeBSD*) | |
57 | @@ -5367,7 +5377,7 @@ $as_echo "#define Py_ENABLE_SHARED 1" >> | |
58 | ;; | |
59 | OSF*) | |
60 | LDLIBRARY='libpython$(VERSION).so' | |
61 | - BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' | |
62 | + BLDLIBRARY='-L. -lpython$(VERSION)' | |
4034c523 | 63 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
48d9a6a0 MT |
64 | ;; |
65 | atheos*) | |
66 | @@ -5894,6 +5904,14 @@ $as_echo "no" >&6; } | |
67 | fi | |
68 | ||
69 | ||
70 | +if test "$Py_DEBUG" = 'true' | |
71 | +then | |
72 | + DEBUG_EXT=_d | |
73 | + DEBUG_SUFFIX=-debug | |
74 | +fi | |
75 | + | |
76 | + | |
77 | + | |
78 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be | |
79 | # merged with this chunk of code? | |
80 | ||
81 | @@ -9958,6 +9976,50 @@ $as_echo "no" >&6; } | |
82 | fi | |
83 | ||
84 | ||
85 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-count-allocs" >&5 | |
86 | +$as_echo_n "checking for --with-count-allocs... " >&6; } | |
87 | + | |
88 | +# Check whether --with-count-allocs was given. | |
89 | +if test "${with_count_allocs+set}" = set; then : | |
90 | + withval=$with_count_allocs; | |
91 | +if test "$withval" != no | |
92 | +then | |
93 | + | |
94 | +$as_echo "#define COUNT_ALLOCS 1" >>confdefs.h | |
95 | + | |
96 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
97 | +$as_echo "yes" >&6; } | |
98 | +else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
99 | +$as_echo "no" >&6; } | |
100 | +fi | |
101 | +else | |
102 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
103 | +$as_echo "no" >&6; } | |
104 | +fi | |
105 | + | |
106 | + | |
107 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-call-profile" >&5 | |
108 | +$as_echo_n "checking for --with-call-profile... " >&6; } | |
109 | + | |
110 | +# Check whether --with-call-profile was given. | |
111 | +if test "${with_call_profile+set}" = set; then : | |
112 | + withval=$with_call_profile; | |
113 | +if test "$withval" != no | |
114 | +then | |
115 | + | |
116 | +$as_echo "#define CALL_PROFILE 1" >>confdefs.h | |
117 | + | |
118 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
119 | +$as_echo "yes" >&6; } | |
120 | +else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
121 | +$as_echo "no" >&6; } | |
122 | +fi | |
123 | +else | |
124 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
125 | +$as_echo "no" >&6; } | |
126 | +fi | |
127 | + | |
128 | + | |
129 | # Check for Python-specific malloc support | |
130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 | |
131 | $as_echo_n "checking for --with-pymalloc... " >&6; } | |
132 | @@ -10007,6 +10069,46 @@ fi | |
133 | ||
134 | fi | |
135 | ||
136 | +# Check for dtrace support | |
137 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 | |
138 | +$as_echo_n "checking for --with-dtrace... " >&6; } | |
139 | + | |
140 | +# Check whether --with-dtrace was given. | |
141 | +if test "${with_dtrace+set}" = set; then : | |
142 | + withval=$with_dtrace; | |
143 | +fi | |
144 | + | |
145 | + | |
146 | +if test ! -z "$with_dtrace" | |
147 | +then | |
148 | + if dtrace -G -o /dev/null -s $srcdir/Include/pydtrace.d 2>/dev/null | |
149 | + then | |
150 | + | |
151 | +$as_echo "#define WITH_DTRACE 1" >>confdefs.h | |
152 | + | |
153 | + with_dtrace="Sun" | |
154 | + DTRACEOBJS="Python/dtrace.o" | |
155 | + DTRADEHDRS="" | |
156 | + elif dtrace -h -o /dev/null -s $srcdir/Include/pydtrace.d | |
157 | + then | |
158 | + | |
159 | +$as_echo "#define WITH_DTRACE 1" >>confdefs.h | |
160 | + | |
161 | + with_dtrace="Apple" | |
162 | + DTRACEOBJS="" | |
163 | + DTRADEHDRS="pydtrace.h" | |
164 | + else | |
165 | + with_dtrace="no" | |
166 | + fi | |
167 | +else | |
168 | + with_dtrace="no" | |
169 | +fi | |
170 | + | |
171 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 | |
172 | +$as_echo "$with_dtrace" >&6; } | |
173 | + | |
174 | + | |
175 | + | |
176 | # Check for --with-wctype-functions | |
177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 | |
178 | $as_echo_n "checking for --with-wctype-functions... " >&6; } | |
179 | diff -up ./pyconfig.h.in.autotool-intermediates ./pyconfig.h.in | |
180 | --- ./pyconfig.h.in.autotool-intermediates 2013-04-09 11:24:01.020185806 +0200 | |
181 | +++ ./pyconfig.h.in 2013-04-09 11:24:02.088183204 +0200 | |
182 | @@ -18,6 +18,12 @@ | |
183 | /* Define this if you have BeOS threads. */ | |
184 | #undef BEOS_THREADS | |
185 | ||
186 | +/* Define to keep records on function call invocation */ | |
187 | +#undef CALL_PROFILE | |
188 | + | |
189 | +/* Define to keep records of the number of instances of each type */ | |
190 | +#undef COUNT_ALLOCS | |
191 | + | |
192 | /* Define if you have the Mach cthreads package */ | |
193 | #undef C_THREADS | |
194 | ||
195 | @@ -1119,12 +1125,6 @@ | |
196 | /* Define to profile with the Pentium timestamp counter */ | |
197 | #undef WITH_TSC | |
198 | ||
199 | -/* Define to keep records of the number of instances of each type */ | |
200 | -#undef COUNT_ALLOCS | |
201 | - | |
202 | -/* Define to keep records on function call invocation */ | |
203 | -#undef CALL_PROFILE | |
204 | - | |
205 | /* Define if you want pymalloc to be disabled when running under valgrind */ | |
206 | #undef WITH_VALGRIND | |
207 |