From e5fae45ae39f471cba5415c21d93e5bc407eb8c7 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 16 Jan 2024 20:20:06 -0800 Subject: [PATCH] =?utf8?q?Fix=20=E2=80=98long=20long=E2=80=99=20checks=20o?= =?utf8?q?n=20ancient=20platforms?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Problem reported by Nick Bowler in: https://lists.gnu.org/r/bug-autoconf/2024-01/msg00018.html * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT) (AC_TYPE_UNSIGNED_LONG_LONG_INT): Test for these when K&R or c89, not when neither K&R nor C89. This fixes a thinko that I introduced in commit cdef0d2dad57f92301cb4baf782f8c24b01d5f1d dated Wed Feb 16 01:29:40 2011 -0800. --- lib/autoconf/types.m4 | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/autoconf/types.m4 b/lib/autoconf/types.m4 index 205b6562..d12a1dc6 100644 --- a/lib/autoconf/types.m4 +++ b/lib/autoconf/types.m4 @@ -533,7 +533,6 @@ AC_DEFUN([AC_TYPE_LONG_LONG_INT], [ac_cv_type_long_long_int=yes case $ac_prog_cc_stdc in no | c89) ;; - *) ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int if test $ac_cv_type_long_long_int = yes; then dnl Catch a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004. @@ -579,7 +578,6 @@ AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], [ac_cv_type_unsigned_long_long_int=yes case $ac_prog_cc_stdc in no | c89) ;; - *) AC_LINK_IFELSE( [_AC_TYPE_LONG_LONG_SNIPPET], [], -- 2.47.2