sys_uio_h.m4 1.6 KB

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