]> git.ipfire.org Git - thirdparty/autoconf.git/commit
AC_XENIX_DIR: Rewrite using AC_CANONICAL_HOST.
authorZack Weinberg <zackw@panix.com>
Sun, 2 Apr 2023 14:27:08 +0000 (10:27 -0400)
committerZack Weinberg <zackw@panix.com>
Sun, 2 Apr 2023 18:57:20 +0000 (14:57 -0400)
commitdcf9bb7e3b12f3bd74edff60e80b53e668159579
treeaf8c221430933608d409cd814f84339c4536d703
parent8babe5f2ccb73cc574933743b381557a4db02424
AC_XENIX_DIR: Rewrite using AC_CANONICAL_HOST.

AC_XENIX_DIR is an obsolete macro, defined as AC_HEADER_DIRENT plus
code to make absolutely sure configure scripts that depended on a
shell variable internal to the original (2.13 era) definition of
AC_XENIX_DIR are not broken by autoupdate.  (That variable had the
temptingly public-sounding name “XENIX.”)  This compatibility code
uses AC_EGREP_CPP, which is itself discouraged for use in new
configure scripts.

(N.B. codesearch.debian.net does not find any uses whatsoever of
this macro, nor any code in an .ac or .m4 file that depends on the
XENIX variable.)

Change the compatibility code to use AC_CANONICAL_HOST instead,
and clarify which pieces of the code inserted by autoupdate are
probably still necessary.

* lib/autoconf/specific.m4 (AC_XENIX_DIR): Set XENIX variable
  based on value of host_os. Clarify what manual cleanup is
  recommended after autoupdate replaces this obsolete macro.
lib/autoconf/specific.m4