From: Glenn Morris Date: Wed, 17 Feb 2021 05:25:18 +0000 (-0800) Subject: * configure.ac: Replace obsolete AC_CHECK_HEADER usage. (Bug#46578) X-Git-Tag: emacs-28.0.90~3689 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=26fcd8289057805f506a24c6ae7277c653463208;p=emacs.git * configure.ac: Replace obsolete AC_CHECK_HEADER usage. (Bug#46578) --- diff --git a/configure.ac b/configure.ac index 9a294bc796f..11a06a39bee 100644 --- a/configure.ac +++ b/configure.ac @@ -1767,7 +1767,8 @@ fi dnl On Solaris 8 there's a compilation warning for term.h because dnl it doesn't define 'bool'. -AC_CHECK_HEADERS(term.h, , , -) +AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[#include ]],[[]])], + AC_DEFINE(HAVE_TERM_H, 1, [Define to 1 if you have the header file.])) AC_HEADER_SYS_WAIT AC_CHECK_HEADERS_ONCE(sys/socket.h)