Revision 42a0c054 aclocal.m4

View differences:

aclocal.m4
6 6
AC_CHECK_SIZEOF(short int, 0)
7 7
AC_CHECK_SIZEOF(int, 0)
8 8
AC_CHECK_SIZEOF(long int, 0)
9
for size in 1 2 4 ; do
9
AC_CHECK_SIZEOF(long long int, 0)
10
for size in 1 2 4 8; do
10 11
	bits=`expr $size "*" 8`
11 12
	AC_MSG_CHECKING([for $bits-bit type])
12 13
	if test $ac_cv_sizeof_int = $size ; then
......
17 18
		res="short int"
18 19
	elif test $ac_cv_sizeof_long_int = $size ; then
19 20
		res="long int"
21
	elif test $ac_cv_sizeof_long_long_int = $size ; then
22
		res="long long int"
20 23
	else
21 24
		AC_MSG_RESULT([not found])
22 25
		AC_MSG_ERROR([Cannot find $bits-bit integer type.])

Also available in: Unified diff