comparison m4/sys_wait_h.m4 @ 13742:886a8812ecd0

New module 'waitpid'. * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h. * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h. Don't include <process.h>. (waitpid): Declare only, using modern idiom. * m4/waitpid.m4: New file. * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared. * modules/waitpid: New file. * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid. (Makefile.am): Update. Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
author Bruno Haible <bruno@clisp.org>
date Wed, 29 Sep 2010 13:17:43 +0200
parents fc8c984b0733
children 6328b8d2c617
comparison
equal deleted inserted replaced
13741:b079c369732b 13742:886a8812ecd0
1 # sys_wait_h.m4 serial 4 1 # sys_wait_h.m4 serial 5
2 dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. 2 dnl Copyright (C) 2008-2010 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
8 [ 8 [
9 AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS]) 9 AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS])
10 10
11 dnl <sys/wait.h> is always overridden, because of GNULIB_POSIXCHECK. 11 dnl <sys/wait.h> is always overridden, because of GNULIB_POSIXCHECK.
12 gl_CHECK_NEXT_HEADERS([sys/wait.h]) 12 gl_CHECK_NEXT_HEADERS([sys/wait.h])
13
14 dnl Check for declarations of anything we want to poison if the
15 dnl corresponding gnulib module is not in use.
16 gl_WARN_ON_USE_PREPARE([[#include <sys/wait.h>]],
17 [waitpid])
13 ]) 18 ])
14 19
15 AC_DEFUN([gl_SYS_WAIT_MODULE_INDICATOR], 20 AC_DEFUN([gl_SYS_WAIT_MODULE_INDICATOR],
16 [ 21 [
17 dnl Use AC_REQUIRE here, so that the default settings are expanded once only. 22 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.