fix variable reference to fix --enable-profiling (closes #17550)
This commit is contained in:
parent
a1eb483d8f
commit
615ea1a98f
|
@ -9,6 +9,11 @@ What's New in Python 3.3.1?
|
||||||
|
|
||||||
.. *Release date: 2013-XX-XX*
|
.. *Release date: 2013-XX-XX*
|
||||||
|
|
||||||
|
Build
|
||||||
|
-----
|
||||||
|
|
||||||
|
- Issue #17550: Fix the --enable-profiling configure switch.
|
||||||
|
|
||||||
Core and Builtins
|
Core and Builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
|
|
@ -5532,7 +5532,7 @@ fi
|
||||||
|
|
||||||
if test "x$enable_profiling" = xyes; then
|
if test "x$enable_profiling" = xyes; then
|
||||||
ac_save_cc="$CC"
|
ac_save_cc="$CC"
|
||||||
CC="$(CC) -pg"
|
CC="$CC -pg"
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
|
|
|
@ -883,7 +883,7 @@ AC_ARG_ENABLE(profiling,
|
||||||
AS_HELP_STRING([--enable-profiling], [enable C-level code profiling]))
|
AS_HELP_STRING([--enable-profiling], [enable C-level code profiling]))
|
||||||
if test "x$enable_profiling" = xyes; then
|
if test "x$enable_profiling" = xyes; then
|
||||||
ac_save_cc="$CC"
|
ac_save_cc="$CC"
|
||||||
CC="$(CC) -pg"
|
CC="$CC -pg"
|
||||||
AC_LINK_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],
|
AC_LINK_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],
|
||||||
[],
|
[],
|
||||||
[enable_profiling=no])
|
[enable_profiling=no])
|
||||||
|
|
Loading…
Reference in New Issue