summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAlex Wang <aw1621107@gmail.com>2017-03-28 12:50:51 (GMT)
committerINADA Naoki <methane@users.noreply.github.com>2017-03-28 12:50:51 (GMT)
commit8cea5929f52801b0ce5928b46ef836e99a24321a (patch)
tree12dd5e34dd3dc16062fadbd6a7a52c8c8910ef44 /configure
parentad2f9e2c8a0b44b3e6aec9d28ba59e13239236f7 (diff)
downloadcpython-8cea5929f52801b0ce5928b46ef836e99a24321a.zip
cpython-8cea5929f52801b0ce5928b46ef836e99a24321a.tar.gz
cpython-8cea5929f52801b0ce5928b46ef836e99a24321a.tar.bz2
bpo-29643: Fix check for --enable-optimizations (GH-129)
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 26b4a05..87504d2 100755
--- 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