1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 18:19:00 +02:00

(jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure

that we can shift, multiply and divide unsigned long long
values; Ultrix cc can't do it.
This commit is contained in:
Jim Meyering
1999-08-01 08:47:11 +00:00
parent c36cde4138
commit d3172d80ef
+4 -3
View File
@@ -1,12 +1,13 @@
#serial 1
#serial 2
dnl From Paul Eggert.
AC_DEFUN(jm_AC_TYPE_UNSIGNED_LONG_LONG,
[
AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
[AC_TRY_COMPILE([],
[unsigned long long i = (unsigned long long) -1;],
[AC_TRY_LINK([unsigned long long ull = 1; int i = 63;],
[unsigned long long ullmax = (unsigned long long) -1;
return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
ac_cv_type_unsigned_long_long=yes,
ac_cv_type_unsigned_long_long=no)])
if test $ac_cv_type_unsigned_long_long = yes; then