mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
ad135b0727
* m4/fsusage.m4: Update to serial #23. * m4/iconv.m4: Update to serial #AM6. * m4/intdiv0.m4: Update from gnulib. * m4/intmax.m4: Update to serial #3. * m4/inttypes-pri.m4: Update to serial #4. * m4/inttypes_h.m4: Update to serial #7. * m4/lib-link.m4: Update to serial #13. * m4/lib-prefix.m4: Update to serial #5. * m4/longlong.m4: Update to serial #10. * m4/onceonly.m4: Update to serial #4. * m4/printf-posix.m4: Update to serial #3. * m4/size_max.m4: Update to serial #6. * m4/stdint_h.m4: Update to serial #6. * m4/ulonglong.m4: Update to serial #6. * m4/wint_t.m4: Update to serial #2.
49 lines
1.8 KiB
Plaintext
49 lines
1.8 KiB
Plaintext
# ulonglong.m4 serial 6
|
|
dnl Copyright (C) 1999-2006 Free Software Foundation, Inc.
|
|
dnl This file is free software; the Free Software Foundation
|
|
dnl gives unlimited permission to copy and/or distribute it,
|
|
dnl with or without modifications, as long as this notice is preserved.
|
|
|
|
dnl From Paul Eggert.
|
|
|
|
# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.
|
|
# This fixes a bug in Autoconf 2.60, but can be removed once we
|
|
# assume 2.61 everywhere.
|
|
|
|
# Note: If the type 'unsigned long long int' exists but is only 32 bits
|
|
# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT
|
|
# will not be defined. In this case you can treat 'unsigned long long int'
|
|
# like 'unsigned long int'.
|
|
|
|
AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
|
|
[
|
|
AC_CACHE_CHECK([for unsigned long long int],
|
|
[ac_cv_type_unsigned_long_long_int],
|
|
[AC_LINK_IFELSE(
|
|
[AC_LANG_PROGRAM(
|
|
[[unsigned long long int ull = 18446744073709551615ULL;
|
|
typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
|
|
? 1 : -1)];
|
|
int i = 63;]],
|
|
[[unsigned long long int ullmax = 18446744073709551615ull;
|
|
return (ull << 63 | ull >> 63 | ull << i | ull >> i
|
|
| ullmax / ull | ullmax % ull);]])],
|
|
[ac_cv_type_unsigned_long_long_int=yes],
|
|
[ac_cv_type_unsigned_long_long_int=no])])
|
|
if test $ac_cv_type_unsigned_long_long_int = yes; then
|
|
AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1,
|
|
[Define to 1 if the system has the type `unsigned long long int'.])
|
|
fi
|
|
])
|
|
|
|
# This macro is obsolescent and should go away soon.
|
|
AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG],
|
|
[
|
|
AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
|
|
ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
|
|
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
|
|
])
|