From 2b854e70a6cdbdc966c2299820dda0fb51e0ac30 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 25 Feb 2008 13:15:16 +0000 Subject: acinclude.m4: Also check for EIDRM and ETXTBSY. 2008-02-25 Jan Beulich * acinclude.m4: Also check for EIDRM and ETXTBSY. * configure: Re-generate. * config/os/generic/error_constants.h (namespace posix_error): Also wrap uses of EIDRM and ETXTBSY in conditionals. * testsuite/19_diagnostics/headers/system_error/types_std_c++0x.cc: Likewise. From-SVN: r132622 --- libstdc++-v3/acinclude.m4 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'libstdc++-v3/acinclude.m4') diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index bd14d90..45c8ffd 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -1440,6 +1440,26 @@ AC_DEFUN([GLIBCXX_CHECK_SYSTEM_ERROR], [ if test x"$ac_system_error_13" = x"yes"; then AC_DEFINE(HAVE_ENOTSUP, 1, [Define if ENOTSUP exists.]) fi + + AC_MSG_CHECKING([for EIDRM]) + AC_CACHE_VAL(ac_system_error_14, [ + AC_TRY_COMPILE([#include ], [ int i = EIDRM; ], + [ac_system_error_14=yes], [ac_system_error_14=no]) + ]) + AC_MSG_RESULT($ac_system_error_14) + if test x"$ac_system_error_14" = x"yes"; then + AC_DEFINE(HAVE_EIDRM, 1, [Define if EIDRM exists.]) + fi + + AC_MSG_CHECKING([for ETXTBSY]) + AC_CACHE_VAL(ac_system_error_15, [ + AC_TRY_COMPILE([#include ], [ int i = ETXTBSY; ], + [ac_system_error_15=yes], [ac_system_error_15=no]) + ]) + AC_MSG_RESULT($ac_system_error_15) + if test x"$ac_system_error_15" = x"yes"; then + AC_DEFINE(HAVE_ETXTBSY, 1, [Define if ETXTBSY exists.]) + fi ]) dnl -- cgit v1.1