diff options
Diffstat (limited to 'gl/m4/stddef_h.m4')
| -rw-r--r-- | gl/m4/stddef_h.m4 | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/gl/m4/stddef_h.m4 b/gl/m4/stddef_h.m4 index a2322ebb..84d3bae8 100644 --- a/gl/m4/stddef_h.m4 +++ b/gl/m4/stddef_h.m4 | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | # stddef_h.m4 serial 13 | 1 | # stddef_h.m4 |
| 2 | dnl Copyright (C) 2009-2023 Free Software Foundation, Inc. | 2 | # serial 14 |
| 3 | dnl Copyright (C) 2009-2024 Free Software Foundation, Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| @@ -68,6 +69,21 @@ AC_DEFUN_ONCE([gl_STDDEF_H], | |||
| 68 | GL_GENERATE_STDDEF_H=true | 69 | GL_GENERATE_STDDEF_H=true |
| 69 | fi | 70 | fi |
| 70 | 71 | ||
| 72 | AC_CACHE_CHECK([for unreachable], | ||
| 73 | [gl_cv_func_unreachable], | ||
| 74 | [AC_LINK_IFELSE( | ||
| 75 | [AC_LANG_PROGRAM( | ||
| 76 | [[#include <stddef.h> | ||
| 77 | ]], | ||
| 78 | [[unreachable (); | ||
| 79 | ]])], | ||
| 80 | [gl_cv_func_unreachable=yes], | ||
| 81 | [gl_cv_func_unreachable=no]) | ||
| 82 | ]) | ||
| 83 | if test $gl_cv_func_unreachable = no; then | ||
| 84 | GL_GENERATE_STDDEF_H=true | ||
| 85 | fi | ||
| 86 | |||
| 71 | if $GL_GENERATE_STDDEF_H; then | 87 | if $GL_GENERATE_STDDEF_H; then |
| 72 | gl_NEXT_HEADERS([stddef.h]) | 88 | gl_NEXT_HEADERS([stddef.h]) |
| 73 | fi | 89 | fi |
