Skip to content

Commit d24429a

Browse files
authored
[3.6] Clarify what --enable-optimizations does (GH-1847) (GH-2039)
(cherry picked from commit b4e5fee)
1 parent fa7f519 commit d24429a

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

configure

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,6 @@ infodir
784784
docdir
785785
oldincludedir
786786
includedir
787-
runstatedir
788787
localstatedir
789788
sharedstatedir
790789
sysconfdir
@@ -896,7 +895,6 @@ datadir='${datarootdir}'
896895
sysconfdir='${prefix}/etc'
897896
sharedstatedir='${prefix}/com'
898897
localstatedir='${prefix}/var'
899-
runstatedir='${localstatedir}/run'
900898
includedir='${prefix}/include'
901899
oldincludedir='/usr/include'
902900
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1149,15 +1147,6 @@ do
11491147
| -silent | --silent | --silen | --sile | --sil)
11501148
silent=yes ;;
11511149

1152-
-runstatedir | --runstatedir | --runstatedi | --runstated \
1153-
| --runstate | --runstat | --runsta | --runst | --runs \
1154-
| --run | --ru | --r)
1155-
ac_prev=runstatedir ;;
1156-
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1157-
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1158-
| --run=* | --ru=* | --r=*)
1159-
runstatedir=$ac_optarg ;;
1160-
11611150
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11621151
ac_prev=sbindir ;;
11631152
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1295,7 +1284,7 @@ fi
12951284
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12961285
datadir sysconfdir sharedstatedir localstatedir includedir \
12971286
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298-
libdir localedir mandir runstatedir
1287+
libdir localedir mandir
12991288
do
13001289
eval ac_val=\$$ac_var
13011290
# Remove trailing slashes.
@@ -1448,7 +1437,6 @@ Fine tuning of the installation directories:
14481437
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
14491438
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
14501439
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451-
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
14521440
--libdir=DIR object code libraries [EPREFIX/lib]
14531441
--includedir=DIR C header files [PREFIX/include]
14541442
--oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -1489,8 +1477,8 @@ Optional Features:
14891477
Build (MacOSX|Darwin) framework
14901478
--enable-shared disable/enable building shared python library
14911479
--enable-profiling enable C-level code profiling
1492-
--enable-optimizations Enable expensive optimizations (PGO, etc). Disabled
1493-
by default.
1480+
--enable-optimizations Enable expensive, stable optimizations (PGO, etc).
1481+
Disabled by default.
14941482
--enable-loadable-sqlite-extensions
14951483
support loadable extensions in _sqlite module
14961484
--enable-ipv6 Enable ipv6 (with ipv4) support
@@ -17983,7 +17971,7 @@ mv config.c Modules
1798317971
if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
1798417972
echo "" >&6
1798517973
echo "" >&6
17986-
echo "If you want a release build with all optimizations active (LTO, PGO, etc)," >&6
17974+
echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6
1798717975
echo "please run ./configure --enable-optimizations" >&6
1798817976
echo "" >&6
1798917977
echo "" >&6

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ AC_SUBST(DEF_MAKE_ALL_RULE)
12841284
AC_SUBST(DEF_MAKE_RULE)
12851285
Py_OPT='false'
12861286
AC_MSG_CHECKING(for --enable-optimizations)
1287-
AC_ARG_ENABLE(optimizations, AS_HELP_STRING([--enable-optimizations], [Enable expensive optimizations (PGO, etc). Disabled by default.]),
1287+
AC_ARG_ENABLE(optimizations, AS_HELP_STRING([--enable-optimizations], [Enable expensive, stable optimizations (PGO, etc). Disabled by default.]),
12881288
[
12891289
if test "$enableval" != no
12901290
then
@@ -5452,7 +5452,7 @@ mv config.c Modules
54525452
if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
54535453
echo "" >&AS_MESSAGE_FD
54545454
echo "" >&AS_MESSAGE_FD
5455-
echo "If you want a release build with all optimizations active (LTO, PGO, etc)," >&AS_MESSAGE_FD
5455+
echo "If you want a release build with all stable optimizations active (PGO, etc)," >&AS_MESSAGE_FD
54565456
echo "please run ./configure --enable-optimizations" >&AS_MESSAGE_FD
54575457
echo "" >&AS_MESSAGE_FD
54585458
echo "" >&AS_MESSAGE_FD

0 commit comments

Comments
 (0)