autoconf: tune long long tests, particularly for c99
commitcdef0d2dad57f92301cb4baf782f8c24b01d5f1d
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Feb 2011 09:29:40 +0000 (16 01:29 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Feb 2011 09:29:51 +0000 (16 01:29 -0800)
tree48734dc8e465e9044ab9e0d93dcddc21f7abcfac
parente5fb1ec281e5bcd37d686bb7ce4994a7b4fee65d
autoconf: tune long long tests, particularly for c99

This change is imported from gnulib.
* lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
or running anything if c99, or if unsigned long long int does not
work.  In either case, we know the answer without further tests.
Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
it at most once, and use its results for both long long int and
unsigned long long int.  This is more likely to be efficient in
the common case where the program wants to check for both long
long int and unsigned long long int.
(AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
since the answer is already known.
ChangeLog
lib/autoconf/types.m4