mirror of
git://git.sv.gnu.org/autoconf
synced 2025-04-06 15:10:23 +08:00
(AC_CHECK_SIZEOF): Report an error if the size cannot be determined
even though the type exists.
This commit is contained in:
parent
781bca17ce
commit
a452b6b7e3
@ -354,7 +354,8 @@ AC_CACHE_CHECK([size of $1], AS_TR_SH([ac_cv_sizeof_$1]),
|
||||
[if test "$AS_TR_SH([ac_cv_type_$1])" = yes; then
|
||||
_AC_COMPUTE_INT([sizeof ($1)],
|
||||
[AS_TR_SH([ac_cv_sizeof_$1])],
|
||||
[AC_INCLUDES_DEFAULT([$3])])
|
||||
[AC_INCLUDES_DEFAULT([$3])],
|
||||
[AC_MSG_ERROR([cannot compute sizeof ($1), 77])])
|
||||
else
|
||||
AS_TR_SH([ac_cv_sizeof_$1])=0
|
||||
fi])dnl
|
||||
|
Loading…
x
Reference in New Issue
Block a user