]> granicus.if.org Git - python/commitdiff
bpo-29643: Fix check for --enable-optimizations (GH-869)
authorINADA Naoki <methane@users.noreply.github.com>
Tue, 28 Mar 2017 15:25:26 +0000 (00:25 +0900)
committerGitHub <noreply@github.com>
Tue, 28 Mar 2017 15:25:26 +0000 (00:25 +0900)
The presence of the ``--enable-optimizations`` flag is indicated by the
value of ``$enableval``, but the configure script was checking ``$withval``,
resulting in the ``--enable-optimizations`` flag being effectively ignored.
(cherry picked from commit 8cea5929f52801b0ce5928b46ef836e99a24321a)

Misc/NEWS
configure
configure.ac

index 9798a3a4490cbed309827616de2ce2b4058bc452..45c5c7828701f87016f66ea61611e2074398ebff 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -60,6 +60,11 @@ Library
   exception) to exception(s) raised in the dispatched methods.
   Patch by Petr Motejlek.
 
+Build
+-----
+
+- bpo-29643: Fix ``--enable-optimization`` didn't work.
+
 
 What's New in Python 3.6.1?
 ===========================
index abe1dc5abd4e1ccc06dbf496c72a4b7afb1bcde0..8bdb82ba4a7bce6e27c93446f31e31d2bbe68d3e 100755 (executable)
--- a/configure
+++ b/configure
@@ -6521,7 +6521,7 @@ $as_echo_n "checking for --enable-optimizations... " >&6; }
 # Check whether --enable-optimizations was given.
 if test "${enable_optimizations+set}" = set; then :
   enableval=$enable_optimizations;
-if test "$withval" != no
+if test "$enableval" != no
 then
   Py_OPT='true'
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
index 9eacf52559e8c2fac01265a948c719531a558b04..6b331d5742745f629d8d73485fe0b4fe0fb80842 100644 (file)
@@ -1274,7 +1274,7 @@ Py_OPT='false'
 AC_MSG_CHECKING(for --enable-optimizations)
 AC_ARG_ENABLE(optimizations, AS_HELP_STRING([--enable-optimizations], [Enable expensive optimizations (PGO, etc).  Disabled by default.]),
 [
-if test "$withval" != no
+if test "$enableval" != no
 then
   Py_OPT='true'
   AC_MSG_RESULT(yes);