Mercurial > hg > octave-nkf > gnulib-hg
changeset 3355:867e9fa9a6c3
renamed from ulonglong.m4
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 18 Aug 2001 15:54:36 +0000 |
parents | 9c66b69183df |
children | 8f113648d4ec |
files | m4/longlong.m4 |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/m4/longlong.m4 @@ -0,0 +1,17 @@ +#serial 3 + +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_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 + AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, + [Define if you have the unsigned long long type.]) + fi +])