diff options
Diffstat (limited to 'gl/m4/errno_h.m4')
-rw-r--r-- | gl/m4/errno_h.m4 | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/gl/m4/errno_h.m4 b/gl/m4/errno_h.m4 index d02a0393..c813ea58 100644 --- a/gl/m4/errno_h.m4 +++ b/gl/m4/errno_h.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # errno_h.m4 serial 6 | 1 | # errno_h.m4 serial 12 |
2 | dnl Copyright (C) 2004, 2006, 2008, 2009, 2010 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2004, 2006, 2008-2013 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
@@ -10,6 +10,9 @@ AC_DEFUN_ONCE([gl_HEADER_ERRNO_H], | |||
10 | AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [ | 10 | AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [ |
11 | AC_EGREP_CPP([booboo],[ | 11 | AC_EGREP_CPP([booboo],[ |
12 | #include <errno.h> | 12 | #include <errno.h> |
13 | #if !defined ETXTBSY | ||
14 | booboo | ||
15 | #endif | ||
13 | #if !defined ENOMSG | 16 | #if !defined ENOMSG |
14 | booboo | 17 | booboo |
15 | #endif | 18 | #endif |
@@ -34,12 +37,30 @@ booboo | |||
34 | #if !defined ENOTSUP | 37 | #if !defined ENOTSUP |
35 | booboo | 38 | booboo |
36 | #endif | 39 | #endif |
40 | #if !defined ENETRESET | ||
41 | booboo | ||
42 | #endif | ||
43 | #if !defined ECONNABORTED | ||
44 | booboo | ||
45 | #endif | ||
37 | #if !defined ESTALE | 46 | #if !defined ESTALE |
38 | booboo | 47 | booboo |
39 | #endif | 48 | #endif |
49 | #if !defined EDQUOT | ||
50 | booboo | ||
51 | #endif | ||
40 | #if !defined ECANCELED | 52 | #if !defined ECANCELED |
41 | booboo | 53 | booboo |
42 | #endif | 54 | #endif |
55 | #if !defined EOWNERDEAD | ||
56 | booboo | ||
57 | #endif | ||
58 | #if !defined ENOTRECOVERABLE | ||
59 | booboo | ||
60 | #endif | ||
61 | #if !defined EILSEQ | ||
62 | booboo | ||
63 | #endif | ||
43 | ], | 64 | ], |
44 | [gl_cv_header_errno_h_complete=no], | 65 | [gl_cv_header_errno_h_complete=no], |
45 | [gl_cv_header_errno_h_complete=yes]) | 66 | [gl_cv_header_errno_h_complete=yes]) |
@@ -47,10 +68,11 @@ booboo | |||
47 | if test $gl_cv_header_errno_h_complete = yes; then | 68 | if test $gl_cv_header_errno_h_complete = yes; then |
48 | ERRNO_H='' | 69 | ERRNO_H='' |
49 | else | 70 | else |
50 | gl_CHECK_NEXT_HEADERS([errno.h]) | 71 | gl_NEXT_HEADERS([errno.h]) |
51 | ERRNO_H='errno.h' | 72 | ERRNO_H='errno.h' |
52 | fi | 73 | fi |
53 | AC_SUBST([ERRNO_H]) | 74 | AC_SUBST([ERRNO_H]) |
75 | AM_CONDITIONAL([GL_GENERATE_ERRNO_H], [test -n "$ERRNO_H"]) | ||
54 | gl_REPLACE_ERRNO_VALUE([EMULTIHOP]) | 76 | gl_REPLACE_ERRNO_VALUE([EMULTIHOP]) |
55 | gl_REPLACE_ERRNO_VALUE([ENOLINK]) | 77 | gl_REPLACE_ERRNO_VALUE([ENOLINK]) |
56 | gl_REPLACE_ERRNO_VALUE([EOVERFLOW]) | 78 | gl_REPLACE_ERRNO_VALUE([EOVERFLOW]) |