diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2007-08-29 19:53:50 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2007-08-29 19:53:50 +0000 |
commit | e4e5e7f5f8699e02d3beb1db6ac341b07820af64 (patch) | |
tree | 04ba7aede0368d117f99f93fb66491e9883c1a56 /libstdc++-v3/acinclude.m4 | |
parent | 21d9bb3f56adf9e034af6ad1a53a57a560c4de2d (diff) | |
download | gcc-e4e5e7f5f8699e02d3beb1db6ac341b07820af64.zip gcc-e4e5e7f5f8699e02d3beb1db6ac341b07820af64.tar.gz gcc-e4e5e7f5f8699e02d3beb1db6ac341b07820af64.tar.bz2 |
acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR): Add ENODATA, ENOSR, ENOSTR, ETIME for freebsd.
2007-08-29 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR): Add ENODATA, ENOSR,
ENOSTR, ETIME for freebsd.
* configure: Regenerate.
* include/std/system_error: Guard.
* testsuite/19_diagnostics/headers/system_error/
types_std_c++0x.cc: Same.
* testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Adjust
line numbers.
From-SVN: r127912
Diffstat (limited to 'libstdc++-v3/acinclude.m4')
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 390d450..5fa76ed 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -1302,6 +1302,46 @@ AC_DEFUN([GLIBCXX_CHECK_SYSTEM_ERROR], [ AC_DEFINE(HAVE_EPROTO, 1, [Define if EPROTO exists.]) fi + AC_MSG_CHECKING([for ENODATA]) + AC_CACHE_VAL(ac_system_error_5, [ + AC_TRY_COMPILE([#include <errno.h>], [ int i = ENODATA; ], + [ac_system_error_5=yes], [ac_system_error_5=no]) + ]) + AC_MSG_RESULT($ac_system_error_5) + if test x"$ac_system_error_5" = x"yes"; then + AC_DEFINE(HAVE_ENODATA, 1, [Define if ENODATA exists.]) + fi + + AC_MSG_CHECKING([for ENOSR]) + AC_CACHE_VAL(ac_system_error_6, [ + AC_TRY_COMPILE([#include <errno.h>], [ int i = ENOSR; ], + [ac_system_error_6=yes], [ac_system_error_6=no]) + ]) + AC_MSG_RESULT($ac_system_error_6) + if test x"$ac_system_error_6" = x"yes"; then + AC_DEFINE(HAVE_ENOSR, 1, [Define if ENOSR exists.]) + fi + + AC_MSG_CHECKING([for ENOSTR]) + AC_CACHE_VAL(ac_system_error_7, [ + AC_TRY_COMPILE([#include <errno.h>], [ int i = ENOSTR; ], + [ac_system_error_7=yes], [ac_system_error_7=no]) + ]) + AC_MSG_RESULT($ac_system_error_7) + if test x"$ac_system_error_7" = x"yes"; then + AC_DEFINE(HAVE_ENOSTR, 1, [Define if ENOSTR exists.]) + fi + + AC_MSG_CHECKING([for ETIME]) + AC_CACHE_VAL(ac_system_error_8, [ + AC_TRY_COMPILE([#include <errno.h>], [ int i = ETIME; ], + [ac_system_error_8=yes], [ac_system_error_8=no]) + ]) + AC_MSG_RESULT($ac_system_error_8) + if test x"$ac_system_error_8" = x"yes"; then + AC_DEFINE(HAVE_ETIME, 1, [Define if ETIME exists.]) + fi + AC_MSG_CHECKING([for sys_nerr]) AC_CACHE_VAL(ac_system_error9, [ AC_TRY_COMPILE([#include <errno.h> ], [ int i = sys_nerr; ], |