-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Eric Blake on 3/10/2007 4:12 PM: > Is it worth patching autoconf's AC_TYPE_LONG_LONG_INT macro to declare > that there is not a usable 'long long int' type if no corresponding > unsigned long long type exists?
Now that savannah is back up after hardware failure, and since Matthew confirmed off-list that this works, I'm checking in this. 2007-03-15 Eric Blake <[EMAIL PROTECTED]> 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. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF+gMq84KuGfSFAYARAojsAJ97mzoGmzfkxwHbeQeWQQlZSaznNgCeO3ms fqnB7BYqhT3rXAWzEPpJl0o= =pOIU -----END PGP SIGNATURE-----
Index: configure.ac =================================================================== RCS file: /sources/m4/m4/configure.ac,v retrieving revision 1.36.2.36 diff -u -p -r1.36.2.36 configure.ac --- configure.ac 28 Feb 2007 13:48:18 -0000 1.36.2.36 +++ configure.ac 16 Mar 2007 02:26:49 -0000 @@ -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 <[EMAIL PROTECTED]>.
_______________________________________________ M4-discuss mailing list M4-discuss@gnu.org http://lists.gnu.org/mailman/listinfo/m4-discuss