@@ -815,7 +815,7 @@ with_suffix
815815enable_shared
816816enable_profiling
817817with_pydebug
818- with_optimizations
818+ enable_optimizations
819819with_lto
820820with_hash_algorithm
821821with_address_sanitizer
@@ -1486,6 +1486,8 @@ Optional Features:
14861486 Build (MacOSX|Darwin) framework
14871487 --enable-shared disable/enable building shared python library
14881488 --enable-profiling enable C-level code profiling
1489+ --enable-optimizations Enable expensive optimizations (PGO, maybe LTO,
1490+ etc). Disabled by default.
14891491 --enable-loadable-sqlite-extensions
14901492 support loadable extensions in _sqlite module
14911493 --enable-ipv6 Enable ipv6 (with ipv4) support
@@ -1509,8 +1511,6 @@ Optional Packages:
15091511 compiler
15101512 --with-suffix=.exe set executable suffix
15111513 --with-pydebug build with Py_DEBUG defined
1512- --with-optimizations Enable expensive optimizations (PGO, maybe LTO,
1513- etc). Disabled by default.
15141514 --with-lto Enable Link Time Optimization in PGO builds.
15151515 Disabled by default.
15161516 --with-hash-algorithm=[fnv|siphash24]
@@ -6543,12 +6543,11 @@ fi
65436543
65446544
65456545Py_OPT=' false'
6546- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for --with-optimizations" >&5
6547- $as_echo_n " checking for --with-optimizations... " >&6 ; }
6548-
6549- # Check whether --with-optimizations was given.
6550- if test " ${with_optimizations+set} " = set ; then :
6551- withval=$with_optimizations ;
6546+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for --enable-optimizations" >&5
6547+ $as_echo_n " checking for --enable-optimizations... " >&6 ; }
6548+ # Check whether --enable-optimizations was given.
6549+ if test " ${enable_optimizations+set} " = set ; then :
6550+ enableval=$enable_optimizations ;
65526551if test " $withval " ! = no
65536552then
65546553 Py_OPT=' true'
@@ -6808,7 +6807,7 @@ case $CC in
68086807 LLVM_PROF_ERR=yes
68096808 if test " ${REQUIRE_PGO} " = " yes"
68106809 then
6811- as_fn_error $? " llvm-profdata is required for a --with -optimizations build but could not be found." " $LINENO " 5
6810+ as_fn_error $? " llvm-profdata is required for a --enable -optimizations build but could not be found." " $LINENO " 5
68126811 fi
68136812 fi
68146813 ;;
@@ -6824,7 +6823,7 @@ case $CC in
68246823 LLVM_PROF_ERR=yes
68256824 if test " ${REQUIRE_PGO} " = " yes"
68266825 then
6827- as_fn_error $? " llvm-profdata is required for a --with -optimizations build but could not be found." " $LINENO " 5
6826+ as_fn_error $? " llvm-profdata is required for a --enable -optimizations build but could not be found." " $LINENO " 5
68286827 fi
68296828 fi
68306829 ;;
@@ -17829,7 +17828,7 @@ if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
1782917828 echo " " >&6
1783017829 echo " " >&6
1783117830 echo " If you want a release build with all optimizations active (LTO, PGO, etc),"
17832- echo " please run ./configure --with -optimizations" >&6
17831+ echo " please run ./configure --enable -optimizations" >&6
1783317832 echo " " >&6
1783417833 echo " " >&6
1783517834fi
0 commit comments