- AM_TEXI2FLAGS may be defined to pass extra flags to TEXI2DVI & TEXI2PDF.
- New option "posix" to emit the special target .POSIX for make.
+ (bug#55025, bug#67891)
- Systems with non-POSIX "rm -f" behavior are now supported, and the
prior intent to drop support for them has been reversed.
The ACCEPT_INFERIOR_RM_PROGRAM setting no longer exists.
+ (bug#10828)
- Variables using escaped \# will trigger portability warnings, but be
retained when appended. GNU Make & BSD Makes are known to support it.
(bug#54063)
- The missing script also supports autoreconf, autogen, and perl.
+ (https://lists.gnu.org/archive/html/automake-patches/2015-08/msg00000.html)
* Bugs fixed
- Compiling Python modules with Python 3.5+ uses multiple optimization
levels. (bug#38043)
- - The installation directory for Python files again defaults to
- "site-packages" under the usual installation prefix, even on systems
- (generally Debian-based) that would normally use the "dist-packages"
- subdirectory under /usr/local. (bug#54412, bug#64837)
+ - If the Python installation "scheme" is set to posix_local (Debian),
+ it is reset to either deb_system (if the prefix = /usr), or
+ posix_prefix (otherwise). (bug#54412, bug#64837)
+
+ - As a result of the Python scheme change, the installation directory
+ for Python files again defaults to "site-packages" under the usual
+ installation prefix, even on systems (generally Debian-based) that
+ would normally use the "dist-packages" subdirectory under
+ /usr/local.
- When compiling Emacs Lisp files, emacs is run with --no-site-file to
disable user config files that might hang or access the terminal;
if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
can_use_sysconfig = 0
except ImportError:
- pass"
+ pass" # end of am_python_setup_sysconfig
+
+ # More repeated code, for figuring out the installation scheme to use.
+ am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'):
+ scheme = sysconfig.get_default_scheme()
+ else:
+ scheme = sysconfig._get_default_scheme()
+ if scheme == 'posix_local':
+ if '$am_py_prefix' == '/usr':
+ scheme = 'deb_system' # should only happen during Debian package builds
+ else:
+ # Debian's default scheme installs to /usr/local/ but we want to
+ # follow the prefix, as we always have.
+ # See bugs#54412, #64837, et al.
+ scheme = 'posix_prefix'" # end of am_python_setup_scheme
dnl emacs-page Set up 4 directories:
$am_python_setup_sysconfig
if can_use_sysconfig:
try:
- if hasattr(sysconfig, 'get_default_scheme'):
- scheme = sysconfig.get_default_scheme()
- else:
- scheme = sysconfig._get_default_scheme()
- if scheme == 'posix_local':
- # Debian's default scheme installs to /usr/local/ but we want to
- # follow the prefix, as we always have.
- # See bugs#54412, #64837, et al.
- scheme = 'posix_prefix'
+ $am_python_setup_scheme
sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
except:
sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
dnl 3. pyexecdir: directory for installing python extension modules
dnl (shared libraries).
dnl Query sysconfig or distutils for this directory.
+ dnl Much of this is the same as for prefix setup above.
dnl
AC_CACHE_CHECK([for $am_display_PYTHON extension module directory (pyexecdir)],
[am_cv_python_pyexecdir],
$am_python_setup_sysconfig
if can_use_sysconfig:
try:
- if hasattr(sysconfig, 'get_default_scheme'):
- scheme = sysconfig.get_default_scheme()
- else:
- scheme = sysconfig._get_default_scheme()
- if scheme == 'posix_local':
- # See scheme comments above.
- scheme = 'posix_prefix'
+ $am_python_setup_scheme
sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
except:
sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})