From cdd306bef327393903d2a2f3fe658feba87606e3 Mon Sep 17 00:00:00 2001 From: paolo Date: Mon, 30 Jan 2006 14:17:49 +0000 Subject: 2006-01-30 Paolo Carlini * include/tr1/cinttypes: New. * include/Makefile.am: Add. * testsuite/tr1/8_c_compatibility/cinttypes/functions: New. * testsuite/tr1/8_c_compatibility/cinttypes/types: Likewise. * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add checks. * docs/html/ext/tr1.html: Update. * include/Makefile.in: Regenerate. * config.h.in: Likewise. * configure: Likewise. * testsuite/tr1/8_c_compatibility/cfenv/functions.cc: Cosmetic tweak. * testsuite/tr1/8_c_compatibility/cfenv/types.cc: Likewise. * testsuite/tr1/8_c_compatibility/cstdint/types.cc: Fix, check in std::tr1. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110397 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/acinclude.m4 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'libstdc++-v3/acinclude.m4') diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index d76dcebbeb2..22b94d1273d 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -1181,6 +1181,29 @@ AC_DEFUN([GLIBCXX_CHECK_C99_TR1], [ in namespace std::tr1.]) fi + # Check for the existence of functions. + AC_MSG_CHECKING([for ISO C99 support to TR1 in ]) + AC_CACHE_VAL(ac_c99_inttypes_tr1, [ + AC_TRY_COMPILE([#include ], + [intmax_t i, numer, denom, base; + const char* s; + char** endptr; + intmax_t ret; + uintmax_t uret; + imaxdiv_t dret; + ret = imaxabs(i); + dret = imaxdiv(numer, denom); + ret = strtoimax(s, endptr, base); + uret = strtoumax(s, endptr, base); + ],[ac_c99_inttypes_tr1=yes], [ac_c99_inttypes_tr1=no]) + ]) + AC_MSG_RESULT($ac_c99_inttypes_tr1) + if test x"$ac_c99_inttypes_tr1" = x"yes"; then + AC_DEFINE(_GLIBCXX_USE_C99_INTTYPES_TR1, 1, + [Define if C99 functions in should be imported in + in namespace std::tr1.]) + fi + AC_LANG_RESTORE ]) -- cgit v1.2.1