@@ -784,6 +784,7 @@ infodir
784784docdir
785785oldincludedir
786786includedir
787+ runstatedir
787788localstatedir
788789sharedstatedir
789790sysconfdir
@@ -817,7 +818,7 @@ with_suffix
817818enable_shared
818819enable_profiling
819820with_pydebug
820- with_optimizations
821+ enable_optimizations
821822with_lto
822823with_hash_algorithm
823824with_address_sanitizer
@@ -894,6 +895,7 @@ datadir='${datarootdir}'
894895sysconfdir=' ${prefix}/etc'
895896sharedstatedir=' ${prefix}/com'
896897localstatedir=' ${prefix}/var'
898+ runstatedir=' ${localstatedir}/run'
897899includedir=' ${prefix}/include'
898900oldincludedir=' /usr/include'
899901docdir=' ${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1146,6 +1148,15 @@ do
11461148 | -silent | --silent | --silen | --sile | --sil)
11471149 silent=yes ;;
11481150
1151+ -runstatedir | --runstatedir | --runstatedi | --runstated \
1152+ | --runstate | --runstat | --runsta | --runst | --runs \
1153+ | --run | --ru | --r)
1154+ ac_prev=runstatedir ;;
1155+ -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1156+ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1157+ | --run=* | --ru=* | --r=* )
1158+ runstatedir=$ac_optarg ;;
1159+
11491160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11501161 ac_prev=sbindir ;;
11511162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
12831294for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12841295 datadir sysconfdir sharedstatedir localstatedir includedir \
12851296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286- libdir localedir mandir
1297+ libdir localedir mandir runstatedir
12871298do
12881299 eval ac_val=\$ $ac_var
12891300 # Remove trailing slashes.
@@ -1436,6 +1447,7 @@ Fine tuning of the installation directories:
14361447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
14371448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
14381449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450+ --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
14391451 --libdir=DIR object code libraries [EPREFIX/lib]
14401452 --includedir=DIR C header files [PREFIX/include]
14411453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -1476,6 +1488,8 @@ Optional Features:
14761488 Build (MacOSX|Darwin) framework
14771489 --enable-shared disable/enable building shared python library
14781490 --enable-profiling enable C-level code profiling
1491+ --enable-optimizations Enable expensive optimizations (PGO, etc). Disabled
1492+ by default.
14791493 --enable-loadable-sqlite-extensions
14801494 support loadable extensions in _sqlite module
14811495 --enable-ipv6 Enable ipv6 (with ipv4) support
@@ -1499,8 +1513,6 @@ Optional Packages:
14991513 compiler
15001514 --with-suffix=.exe set executable suffix
15011515 --with-pydebug build with Py_DEBUG defined
1502- --with-optimizations Enable expensive optimizations (PGO, etc). Disabled
1503- by default.
15041516 --with-lto Enable Link Time Optimization in PGO builds.
15051517 Disabled by default.
15061518 --with-hash-algorithm=[fnv|siphash24]
@@ -6524,12 +6536,11 @@ fi
65246536
65256537
65266538Py_OPT=' false'
6527- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for --with-optimizations" >&5
6528- $as_echo_n " checking for --with-optimizations... " >&6 ; }
6529-
6530- # Check whether --with-optimizations was given.
6531- if test " ${with_optimizations+set} " = set ; then :
6532- withval=$with_optimizations ;
6539+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for --enable-optimizations" >&5
6540+ $as_echo_n " checking for --enable-optimizations... " >&6 ; }
6541+ # Check whether --enable-optimizations was given.
6542+ if test " ${enable_optimizations+set} " = set ; then :
6543+ enableval=$enable_optimizations ;
65336544if test " $withval " ! = no
65346545then
65356546 Py_OPT=' true'
@@ -6796,7 +6807,7 @@ case $CC in
67966807 LLVM_PROF_ERR=yes
67976808 if test " ${REQUIRE_PGO} " = " yes"
67986809 then
6799- 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
68006811 fi
68016812 fi
68026813 ;;
@@ -6812,7 +6823,7 @@ case $CC in
68126823 LLVM_PROF_ERR=yes
68136824 if test " ${REQUIRE_PGO} " = " yes"
68146825 then
6815- 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
68166827 fi
68176828 fi
68186829 ;;
@@ -17877,7 +17888,7 @@ if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
1787717888 echo " " >&6
1787817889 echo " " >&6
1787917890 echo " If you want a release build with all optimizations active (LTO, PGO, etc)," >&6
17880- echo " please run ./configure --with -optimizations" >&6
17891+ echo " please run ./configure --enable -optimizations" >&6
1788117892 echo " " >&6
1788217893 echo " " >&6
1788317894fi
0 commit comments