Remove incorrect check in AC_CHECK_SIZEOF
commit51dec81849467973b1ef6d3fc8318b5b4f34b1c4
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 7 Feb 2024 20:42:04 +0000 (7 12:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 7 Feb 2024 20:43:11 +0000 (7 12:43 -0800)
tree8f6e5fbcfa54ad39d930a7a69c9aaa185a234aab
parent163dade069be64df7cce5c6d48fdcb56188a6f60
Remove incorrect check in AC_CHECK_SIZEOF

* lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF):
When the size or alignment cannot be determined, do not fail if
ac_cv_type_$1 is yes, as there’s no guarantee that ac_cv_type_$1
is defined, and failure here would contradict the documentation
that the size or alignment is 0 when sizeof($1)/alignof($1) cannot
be compiled.  The test for ac_cv_type_$1 made sense long ago when
it was checked for in these macros, but the test has not made
sense for many years.
lib/autoconf/types.m4