diff options
Diffstat (limited to 'gl/m4/errno_h.m4')
-rw-r--r-- | gl/m4/errno_h.m4 | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gl/m4/errno_h.m4 b/gl/m4/errno_h.m4 index 51dfe92..4be9780 100644 --- a/gl/m4/errno_h.m4 +++ b/gl/m4/errno_h.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # errno_h.m4 serial 13 | 1 | # errno_h.m4 serial 14 |
2 | dnl Copyright (C) 2004, 2006, 2008-2021 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2004, 2006, 2008-2022 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. |
@@ -68,13 +68,11 @@ booboo | |||
68 | [gl_cv_header_errno_h_complete=yes]) | 68 | [gl_cv_header_errno_h_complete=yes]) |
69 | ]) | 69 | ]) |
70 | if test $gl_cv_header_errno_h_complete = yes; then | 70 | if test $gl_cv_header_errno_h_complete = yes; then |
71 | ERRNO_H='' | 71 | GL_GENERATE_ERRNO_H=false |
72 | else | 72 | else |
73 | gl_NEXT_HEADERS([errno.h]) | 73 | gl_NEXT_HEADERS([errno.h]) |
74 | ERRNO_H='errno.h' | 74 | GL_GENERATE_ERRNO_H=true |
75 | fi | 75 | fi |
76 | AC_SUBST([ERRNO_H]) | ||
77 | AM_CONDITIONAL([GL_GENERATE_ERRNO_H], [test -n "$ERRNO_H"]) | ||
78 | gl_REPLACE_ERRNO_VALUE([EMULTIHOP]) | 76 | gl_REPLACE_ERRNO_VALUE([EMULTIHOP]) |
79 | gl_REPLACE_ERRNO_VALUE([ENOLINK]) | 77 | gl_REPLACE_ERRNO_VALUE([ENOLINK]) |
80 | gl_REPLACE_ERRNO_VALUE([EOVERFLOW]) | 78 | gl_REPLACE_ERRNO_VALUE([EOVERFLOW]) |
@@ -88,7 +86,7 @@ booboo | |||
88 | # Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE. | 86 | # Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE. |
89 | AC_DEFUN([gl_REPLACE_ERRNO_VALUE], | 87 | AC_DEFUN([gl_REPLACE_ERRNO_VALUE], |
90 | [ | 88 | [ |
91 | if test -n "$ERRNO_H"; then | 89 | if $GL_GENERATE_ERRNO_H; then |
92 | AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [ | 90 | AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [ |
93 | AC_EGREP_CPP([yes],[ | 91 | AC_EGREP_CPP([yes],[ |
94 | #include <errno.h> | 92 | #include <errno.h> |