Debian Codegraph @

m4/sys_uio_h.m4

raw
1 # sys_uio_h.m4
2 # serial 3
3 dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
7 dnl This file is offered as-is, without any warranty.
8
9 AC_DEFUN_ONCE([gl_SYS_UIO_H],
10 [
11 AC_REQUIRE([gl_SYS_UIO_H_DEFAULTS])
12 dnl <sys/uio.h> is always overridden, because of GNULIB_POSIXCHECK.
13 gl_CHECK_NEXT_HEADERS([sys/uio.h])
14 if test $ac_cv_header_sys_uio_h = yes; then
15 HAVE_SYS_UIO_H=1
16 else
17 HAVE_SYS_UIO_H=0
18 fi
19 AC_SUBST([HAVE_SYS_UIO_H])
20 ])
21
22 # gl_SYS_UIO_MODULE_INDICATOR([modulename])
23 # sets the shell variable that indicates the presence of the given module
24 # to a C preprocessor expression that will evaluate to 1.
25 # This macro invocation must not occur in macros that are AC_REQUIREd.
26 AC_DEFUN([gl_SYS_UIO_MODULE_INDICATOR],
27 [
28 dnl Ensure to expand the default settings once only.
29 gl_SYS_UIO_H_REQUIRE_DEFAULTS
30 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
31 dnl Define it also as a C macro, for the benefit of the unit tests.
32 gl_MODULE_INDICATOR_FOR_TESTS([$1])
33 ])
34
35 # Initializes the default values for AC_SUBSTed shell variables.
36 # This macro must not be AC_REQUIREd. It must only be invoked, and only
37 # outside of macros or in macros that are not AC_REQUIREd.
38 AC_DEFUN([gl_SYS_UIO_H_REQUIRE_DEFAULTS],
39 [
40 m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_UIO_H_MODULE_INDICATOR_DEFAULTS], [
41 ])
42 m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_UIO_H_MODULE_INDICATOR_DEFAULTS])
43 AC_REQUIRE([gl_SYS_UIO_H_DEFAULTS])
44 ])
45
46 AC_DEFUN([gl_SYS_UIO_H_DEFAULTS],
47 [
48 ])