diff options
Diffstat (limited to 'gl/m4/sys_uio_h.m4')
-rw-r--r-- | gl/m4/sys_uio_h.m4 | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/gl/m4/sys_uio_h.m4 b/gl/m4/sys_uio_h.m4 index c75cbbd0..36f55ead 100644 --- a/gl/m4/sys_uio_h.m4 +++ b/gl/m4/sys_uio_h.m4 | |||
@@ -1,10 +1,10 @@ | |||
1 | # sys_uio_h.m4 serial 1 | 1 | # sys_uio_h.m4 serial 3 |
2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2011-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. |
6 | 6 | ||
7 | AC_DEFUN([gl_HEADER_SYS_UIO], | 7 | AC_DEFUN_ONCE([gl_SYS_UIO_H], |
8 | [ | 8 | [ |
9 | AC_REQUIRE([gl_SYS_UIO_H_DEFAULTS]) | 9 | AC_REQUIRE([gl_SYS_UIO_H_DEFAULTS]) |
10 | dnl <sys/uio.h> is always overridden, because of GNULIB_POSIXCHECK. | 10 | dnl <sys/uio.h> is always overridden, because of GNULIB_POSIXCHECK. |
@@ -17,15 +17,30 @@ AC_DEFUN([gl_HEADER_SYS_UIO], | |||
17 | AC_SUBST([HAVE_SYS_UIO_H]) | 17 | AC_SUBST([HAVE_SYS_UIO_H]) |
18 | ]) | 18 | ]) |
19 | 19 | ||
20 | # gl_SYS_UIO_MODULE_INDICATOR([modulename]) | ||
21 | # sets the shell variable that indicates the presence of the given module | ||
22 | # to a C preprocessor expression that will evaluate to 1. | ||
23 | # This macro invocation must not occur in macros that are AC_REQUIREd. | ||
20 | AC_DEFUN([gl_SYS_UIO_MODULE_INDICATOR], | 24 | AC_DEFUN([gl_SYS_UIO_MODULE_INDICATOR], |
21 | [ | 25 | [ |
22 | dnl Use AC_REQUIRE here, so that the default settings are expanded once only. | 26 | dnl Ensure to expand the default settings once only. |
23 | AC_REQUIRE([gl_SYS_UIO_H_DEFAULTS]) | 27 | gl_SYS_UIO_H_REQUIRE_DEFAULTS |
24 | gl_MODULE_INDICATOR_SET_VARIABLE([$1]) | 28 | gl_MODULE_INDICATOR_SET_VARIABLE([$1]) |
25 | dnl Define it also as a C macro, for the benefit of the unit tests. | 29 | dnl Define it also as a C macro, for the benefit of the unit tests. |
26 | gl_MODULE_INDICATOR_FOR_TESTS([$1]) | 30 | gl_MODULE_INDICATOR_FOR_TESTS([$1]) |
27 | ]) | 31 | ]) |
28 | 32 | ||
33 | # Initializes the default values for AC_SUBSTed shell variables. | ||
34 | # This macro must not be AC_REQUIREd. It must only be invoked, and only | ||
35 | # outside of macros or in macros that are not AC_REQUIREd. | ||
36 | AC_DEFUN([gl_SYS_UIO_H_REQUIRE_DEFAULTS], | ||
37 | [ | ||
38 | m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_UIO_H_MODULE_INDICATOR_DEFAULTS], [ | ||
39 | ]) | ||
40 | m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_UIO_H_MODULE_INDICATOR_DEFAULTS]) | ||
41 | AC_REQUIRE([gl_SYS_UIO_H_DEFAULTS]) | ||
42 | ]) | ||
43 | |||
29 | AC_DEFUN([gl_SYS_UIO_H_DEFAULTS], | 44 | AC_DEFUN([gl_SYS_UIO_H_DEFAULTS], |
30 | [ | 45 | [ |
31 | ]) | 46 | ]) |