annotate m4/sys_wait_h.m4 @ 17935:0ad1f4c9eed5 default tip

tests: support stderr verification with returns_() * tests/init.sh (returns_): Disable tracing for this wrapper function, so that stderr of the wrapped command is unchanged, allowing for verification of the contents.
author Pádraig Brady <P@draigBrady.com>
date Mon, 16 Feb 2015 17:20:39 +0000
parents ab58d4870664
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15594
f4cfbb6036d8 Ensure pid_t gets defined.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
1 # sys_wait_h.m4 serial 6
17848
ab58d4870664 version-etc: new year
Paul Eggert <eggert@cs.ucla.edu>
parents: 17587
diff changeset
2 dnl Copyright (C) 2008-2015 Free Software Foundation, Inc.
10676
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 AC_DEFUN([gl_SYS_WAIT_H],
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 [
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS])
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10
12995
6991d7777e06 Fix bug introduced on 2009-12-31.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
11 dnl <sys/wait.h> is always overridden, because of GNULIB_POSIXCHECK.
10676
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 gl_CHECK_NEXT_HEADERS([sys/wait.h])
13742
886a8812ecd0 New module 'waitpid'.
Bruno Haible <bruno@clisp.org>
parents: 13066
diff changeset
13
15594
f4cfbb6036d8 Ensure pid_t gets defined.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
14 dnl Ensure the type pid_t gets defined.
f4cfbb6036d8 Ensure pid_t gets defined.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
15 AC_REQUIRE([AC_TYPE_PID_T])
f4cfbb6036d8 Ensure pid_t gets defined.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
16
13742
886a8812ecd0 New module 'waitpid'.
Bruno Haible <bruno@clisp.org>
parents: 13066
diff changeset
17 dnl Check for declarations of anything we want to poison if the
886a8812ecd0 New module 'waitpid'.
Bruno Haible <bruno@clisp.org>
parents: 13066
diff changeset
18 dnl corresponding gnulib module is not in use.
886a8812ecd0 New module 'waitpid'.
Bruno Haible <bruno@clisp.org>
parents: 13066
diff changeset
19 gl_WARN_ON_USE_PREPARE([[#include <sys/wait.h>]],
886a8812ecd0 New module 'waitpid'.
Bruno Haible <bruno@clisp.org>
parents: 13066
diff changeset
20 [waitpid])
10676
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 ])
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 AC_DEFUN([gl_SYS_WAIT_MODULE_INDICATOR],
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 [
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS])
13066
fc8c984b0733 Factorize common .m4 code.
Bruno Haible <bruno@clisp.org>
parents: 12995
diff changeset
27 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
13745
6328b8d2c617 Separate the module 'waitpid' from the module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents: 13742
diff changeset
28 dnl Define it also as a C macro, for the benefit of the unit tests.
6328b8d2c617 Separate the module 'waitpid' from the module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents: 13742
diff changeset
29 gl_MODULE_INDICATOR_FOR_TESTS([$1])
10676
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 ])
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 AC_DEFUN([gl_SYS_WAIT_H_DEFAULTS],
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 [
13745
6328b8d2c617 Separate the module 'waitpid' from the module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents: 13742
diff changeset
34 GNULIB_WAITPID=0; AC_SUBST([GNULIB_WAITPID])
10676
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 dnl Assume proper GNU behavior unless another module says otherwise.
ada5a6cc2034 New module 'sys_wait'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 ])