@@ -804,7 +804,7 @@ with_suffix
804
804
enable_shared
805
805
enable_profiling
806
806
with_pydebug
807
- with_optimizations
807
+ enable_optimizations
808
808
with_lto
809
809
enable_toolbox_glue
810
810
with_libs
@@ -1475,6 +1475,8 @@ Optional Features:
1475
1475
Build (MacOSX|Darwin) framework
1476
1476
--enable-shared disable/enable building shared python library
1477
1477
--enable-profiling enable C-level code profiling
1478
+ --enable-optimizations Enable expensive optimizations (PGO, maybe LTO,
1479
+ etc). Disabled by default.
1478
1480
--enable-toolbox-glue disable/enable MacOSX glue code for extensions
1479
1481
--enable-ipv6 Enable ipv6 (with ipv4) support
1480
1482
--disable-ipv6 Disable ipv6 support
@@ -1499,8 +1501,6 @@ Optional Packages:
1499
1501
compiler
1500
1502
--with-suffix=.exe set executable suffix
1501
1503
--with-pydebug build with Py_DEBUG defined
1502
- --with-optimizations Enable expensive optimizations (PGO, maybe LTO,
1503
- etc). Disabled by default.
1504
1504
--with-lto Enable Link Time Optimization in PGO builds.
1505
1505
Disabled by default.
1506
1506
--with-libs='lib1 ...' link against additional libs
@@ -6386,12 +6386,11 @@ fi
6386
6386
6387
6387
6388
6388
Py_OPT=' false'
6389
- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for --with-optimizations" >&5
6390
- $as_echo_n " checking for --with-optimizations... " >&6 ; }
6391
-
6392
- # Check whether --with-optimizations was given.
6393
- if test " ${with_optimizations+set} " = set ; then :
6394
- withval=$with_optimizations ;
6389
+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for --enable-optimizations" >&5
6390
+ $as_echo_n " checking for --enable-optimizations... " >&6 ; }
6391
+ # Check whether --enable-optimizations was given.
6392
+ if test " ${enable_optimizations+set} " = set ; then :
6393
+ enableval=$enable_optimizations ;
6395
6394
if test " $withval " ! = no
6396
6395
then
6397
6396
Py_OPT=' true'
@@ -6654,7 +6653,7 @@ case $CC in
6654
6653
LLVM_PROF_ERR=yes
6655
6654
if test " ${REQUIRE_PGO} " = " yes"
6656
6655
then
6657
- as_fn_error $? " llvm-profdata is required for a --with -optimizations build but could not be found." " $LINENO " 5
6656
+ as_fn_error $? " llvm-profdata is required for a --enable -optimizations build but could not be found." " $LINENO " 5
6658
6657
fi
6659
6658
fi
6660
6659
;;
@@ -6670,7 +6669,7 @@ case $CC in
6670
6669
LLVM_PROF_ERR=yes
6671
6670
if test " ${REQUIRE_PGO} " = " yes"
6672
6671
then
6673
- as_fn_error $? " llvm-profdata is required for a --with -optimizations build but could not be found." " $LINENO " 5
6672
+ as_fn_error $? " llvm-profdata is required for a --enable -optimizations build but could not be found." " $LINENO " 5
6674
6673
fi
6675
6674
fi
6676
6675
;;
@@ -16500,7 +16499,7 @@ if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
16500
16499
echo " " >&6
16501
16500
echo " " >&6
16502
16501
echo " If you want a release build with all optimizations active (LTO, PGO, etc),"
16503
- echo " please run ./configure --with -optimizations" >&6
16502
+ echo " please run ./configure --enable -optimizations" >&6
16504
16503
echo " " >&6
16505
16504
echo " " >&6
16506
16505
fi
0 commit comments