Browse Source

configure.h: Add HAVE_INT128

Modify configure.ac to generate a header that expose the support for
128-bit integers.
pull/1368/head
Gianluca Guida 3 years ago
parent
commit
b3a3063b57
  1. 3
      config.h.in
  2. 3
      configure
  3. 4
      configure.ac

3
config.h.in

@ -39,6 +39,9 @@
/* Dynamic library loading is supported */
#undef HAVE_DLOPEN
/* __int128_t is supported */
#undef HAVE_INT128
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

3
configure

@ -4742,6 +4742,9 @@ ac_fn_cxx_check_type "$LINENO" "__int128_t" "ac_cv_type___int128_t" "$ac_include
if test "x$ac_cv_type___int128_t" = xyes; then :
HAVE_INT128=yes
$as_echo "#define HAVE_INT128 1" >>confdefs.h
fi

4
configure.ac

@ -85,7 +85,9 @@ AC_HEADER_STDC
# Checks for type
#-------------------------------------------------------------------------
AC_CHECK_TYPE([__int128_t], AC_SUBST([HAVE_INT128],[yes]))
AC_CHECK_TYPE([__int128_t],
[AC_SUBST([HAVE_INT128],[yes])
AC_DEFINE([HAVE_INT128], [1], [__int128_t is supported])])
#-------------------------------------------------------------------------
# Default compiler flags

Loading…
Cancel
Save