diff options
author | Werner Koch <wk@gnupg.org> | 2014-01-09 19:14:09 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-01-17 10:07:52 +0100 |
commit | c3b30bae7d1e157f8b65e32ba1b3a516f2bbf58b (patch) | |
tree | 525603b7acc39d14dac4e3992988c982a147d72c /configure.ac | |
parent | cfc151ba637200e4fc05d9481a8df2071b2f9a47 (diff) | |
download | libgcrypt-c3b30bae7d1e157f8b65e32ba1b3a516f2bbf58b.tar.gz |
Actually check for uint64_t.
* configure.ac: Check size of uint64_t and the UINT64_C macro.
--
configure.ac used $ac_cv_sizeof_uint64_t but never set this variable.
Due to the availability of long long on all platforms supporting
uint64_t this was not a real problem. Found while remove the
corresponding test from gnupg.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 6272871f..c3ab96f3 100644 --- a/configure.ac +++ b/configure.ac @@ -350,6 +350,15 @@ if test "$ac_cv_sizeof_unsigned_short" = "0" \ AC_MSG_WARN([Hmmm, something is wrong with the sizes - using defaults]); fi +# Ensure that we have UINT64_C before we bother to check for uint64_t +AC_CACHE_CHECK([for UINT64_C],[gnupg_cv_uint64_c_works], + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <inttypes.h>]], + [[uint64_t foo=UINT64_C(42);]])], + gnupg_cv_uint64_c_works=yes,gnupg_cv_uint64_c_works=no)) +if test "$gnupg_cv_uint64_c_works" = "yes" ; then + AC_CHECK_SIZEOF(uint64_t) +fi + # Do we have any 64-bit data types? if test "$ac_cv_sizeof_unsigned_int" != "8" \ && test "$ac_cv_sizeof_unsigned_long" != "8" \ |