]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix ‘long long’ checks on ancient platforms
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 Jan 2024 04:20:06 +0000 (20:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 Jan 2024 04:20:36 +0000 (20:20 -0800)
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

index 205b6562385383aa345a7d7facd04a11cf744a89..d12a1dc62abe46abd33de7e1e094b35b6fd86b2a 100644 (file)
@@ -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],
           [],