[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/8] stdint: port to Autoconf 2.70
From: |
Paul Eggert |
Subject: |
[PATCH 6/8] stdint: port to Autoconf 2.70 |
Date: |
Fri, 11 Dec 2020 17:36:41 -0800 |
* m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
instead of assuming that AC_INCLUDES_DEFAULT does it.
The old code relied on AC_INCLUDES_DEFAULT being called
and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
but this does not occur in Autoconf 2.70.
---
ChangeLog | 7 +++++++
m4/stdint.m4 | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 68bae99d9..b8d0daf09 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2020-12-11 Paul Eggert <eggert@cs.ucla.edu>
+ stdint: port to Autoconf 2.70
+ * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
+ instead of assuming that AC_INCLUDES_DEFAULT does it.
+ The old code relied on AC_INCLUDES_DEFAULT being called
+ and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
+ but this does not occur in Autoconf 2.70.
+
pid_t.m4: just use 2.70
* m4/pid_t.m4 (AC_TYPE_PID_T):
Use Autoconf 2.70 as a prerequisite, not 2.69c.
diff --git a/m4/stdint.m4 b/m4/stdint.m4
index d5f5d6133..95c0944dc 100644
--- a/m4/stdint.m4
+++ b/m4/stdint.m4
@@ -1,4 +1,4 @@
-# stdint.m4 serial 56
+# stdint.m4 serial 57
dnl Copyright (C) 2001-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -34,7 +34,7 @@ AC_DEFUN_ONCE([gl_STDINT_H],
AC_SUBST([HAVE_WCHAR_H])
dnl Check for <inttypes.h>.
- dnl AC_INCLUDES_DEFAULT defines $ac_cv_header_inttypes_h.
+ AC_CHECK_HEADERS_ONCE([inttypes.h])
if test $ac_cv_header_inttypes_h = yes; then
HAVE_INTTYPES_H=1
else
@@ -43,7 +43,7 @@ AC_DEFUN_ONCE([gl_STDINT_H],
AC_SUBST([HAVE_INTTYPES_H])
dnl Check for <sys/types.h>.
- dnl AC_INCLUDES_DEFAULT defines $ac_cv_header_sys_types_h.
+ AC_CHECK_HEADERS_ONCE([sys/types.h])
if test $ac_cv_header_sys_types_h = yes; then
HAVE_SYS_TYPES_H=1
else
--
2.28.0
- [PATCH 1/8] alloca: update from Autoconf, Paul Eggert, 2020/12/11
- [PATCH 4/8] largefile: just use 2.70, Paul Eggert, 2020/12/11
- [PATCH 3/8] AC_C_RESTRICT: update from Autoconf, Paul Eggert, 2020/12/11
- [PATCH 5/8] pid_t.m4: just use 2.70, Paul Eggert, 2020/12/11
- [PATCH 2/8] extensions: update from Autoconf, Paul Eggert, 2020/12/11
- [PATCH 6/8] stdint: port to Autoconf 2.70,
Paul Eggert <=
- [PATCH 8/8] vararrays: just use 2.70, Paul Eggert, 2020/12/11
- [PATCH 7/8] sys_types: just use 2.70, Paul Eggert, 2020/12/11