|
Packit |
33f14e |
# sys_wait_h.m4 serial 6
|
|
Packit |
33f14e |
dnl Copyright (C) 2008-2017 Free Software Foundation, Inc.
|
|
Packit |
33f14e |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
33f14e |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
33f14e |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
AC_DEFUN([gl_SYS_WAIT_H],
|
|
Packit |
33f14e |
[
|
|
Packit |
33f14e |
AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS])
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
dnl <sys/wait.h> is always overridden, because of GNULIB_POSIXCHECK.
|
|
Packit |
33f14e |
gl_CHECK_NEXT_HEADERS([sys/wait.h])
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
dnl Ensure the type pid_t gets defined.
|
|
Packit |
33f14e |
AC_REQUIRE([AC_TYPE_PID_T])
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
dnl Check for declarations of anything we want to poison if the
|
|
Packit |
33f14e |
dnl corresponding gnulib module is not in use.
|
|
Packit |
33f14e |
gl_WARN_ON_USE_PREPARE([[#include <sys/wait.h>]],
|
|
Packit |
33f14e |
[waitpid])
|
|
Packit |
33f14e |
])
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
AC_DEFUN([gl_SYS_WAIT_MODULE_INDICATOR],
|
|
Packit |
33f14e |
[
|
|
Packit |
33f14e |
dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
|
|
Packit |
33f14e |
AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS])
|
|
Packit |
33f14e |
gl_MODULE_INDICATOR_SET_VARIABLE([$1])
|
|
Packit |
33f14e |
dnl Define it also as a C macro, for the benefit of the unit tests.
|
|
Packit |
33f14e |
gl_MODULE_INDICATOR_FOR_TESTS([$1])
|
|
Packit |
33f14e |
])
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
AC_DEFUN([gl_SYS_WAIT_H_DEFAULTS],
|
|
Packit |
33f14e |
[
|
|
Packit |
33f14e |
GNULIB_WAITPID=0; AC_SUBST([GNULIB_WAITPID])
|
|
Packit |
33f14e |
dnl Assume proper GNU behavior unless another module says otherwise.
|
|
Packit |
33f14e |
])
|