diff options
author | Eric Blake <ebb9@byu.net> | 2007-03-16 02:36:12 +0000 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2007-09-21 15:45:29 -0600 |
commit | 7db3ae326816fb42788810c1a100f84cdb082757 (patch) | |
tree | 29710dbc80178eee317200c27fd498dd1af57c5e /configure.ac | |
parent | 69b562de2e3d0383318c55ffd9c2b30521fcf2ff (diff) | |
download | m4-7db3ae326816fb42788810c1a100f84cdb082757.tar.gz |
Avoid Tandem/NSK's broken long long (without a symmetric unsigned
long long, it confuses gnulib).
* configure.ac (AC_TYPE_LONG_LONG_INT): Declare long long broken
if unsigned long long doesn't work.
* THANKS: Update.
Reported by Matthew Woehlke.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 4757d373..04f4ccd6 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,18 @@ AC_TYPE_SIZE_T AC_CHECK_FUNCS_ONCE([sigaction sigaltstack sigstack sigvec strerror]) +# Tandem/NSK is broken - it has 'long long int' but not +# 'unsigned long long int', which confuses assumptions made by gnulib. +# Simply pretend that neither type exists if both do not work. +AC_TYPE_LONG_LONG_INT +AC_TYPE_UNSIGNED_LONG_LONG_INT +if test $ac_cv_type_long_long_int:$ac_cv_type_unsigned_long_long_int = yes:no +then + ac_cv_type_long_long_int=no + AC_DEFINE([HAVE_LONG_LONG_INT], 0, + [Define to 1 if the system has the type `long long int'.]) +fi + M4_INIT # Code from Jim Avera <jima@netcom.com>. |