]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Remove the last few internal uses of AC_EGREP_CPP. zack/no-internal-egrep-cpp
authorZack Weinberg <zackw@panix.com>
Mon, 3 Apr 2023 02:17:55 +0000 (22:17 -0400)
committerZack Weinberg <zackw@panix.com>
Mon, 3 Apr 2023 03:01:50 +0000 (23:01 -0400)
commite25dfa75e18295d28de67747b4ff9d65f65c4f06
treeabee9d95bc48de1b25d4244f9057cadc522cf79e
parenta7dc6d83c7d12b8409c512c3c10ad29f01e6c164
Remove the last few internal uses of AC_EGREP_CPP.

Most of the remaining uses were converted to AC_COMPILE_IFELSE.
The use in AC_FUNC_LOADAVG becomes an AC_PREPROC_IFELSE because
we can’t be sure getloadavg.c can be _compiled_ at this point in
the build.  The use in AC_C_VARARRAYS could be either _PREPROC_ or
_COMPILE_; we use _COMPILE_ because, _PREPROC_ is never used, then
we don’t have to do the “checking how to run the C preprocessor” test.

* lib/autoconf/c.m4 (AC_C_VARARRAYS): Use AC_COMPILE_IFELSE instead of
  AC_EGREP_CPP.
* lib/autoconf/headers.m4 (_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H)
  (_AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL_H): Likewise.
* lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use AC_PREPROC_IFELSE
  instead of AC_EGREP_CPP.
lib/autoconf/c.m4
lib/autoconf/functions.m4
lib/autoconf/headers.m4