annotate m4/fcntl_h.m4 @ 17848:ab58d4870664

version-etc: new year * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date. * all files: Run 'make update-copyright'.
author Paul Eggert <eggert@cs.ucla.edu>
date Thu, 01 Jan 2015 01:38:23 +0000
parents 344018b6e5d7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15629
f62fb3d6776f Support for MSVC compiler: Ensure mode_t gets defined.
Bruno Haible <bruno@clisp.org>
parents: 15594
diff changeset
1 # serial 15
7225
3307ae6ea2e5 * lib/fcntl_.h: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
2 # Configure fcntl.h.
17848
ab58d4870664 version-etc: new year
Paul Eggert <eggert@cs.ucla.edu>
parents: 17587
diff changeset
3 dnl Copyright (C) 2006-2007, 2009-2015 Free Software Foundation, Inc.
7225
3307ae6ea2e5 * lib/fcntl_.h: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
4 dnl This file is free software; the Free Software Foundation
3307ae6ea2e5 * lib/fcntl_.h: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
5 dnl gives unlimited permission to copy and/or distribute it,
3307ae6ea2e5 * lib/fcntl_.h: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
6 dnl with or without modifications, as long as this notice is preserved.
3307ae6ea2e5 * lib/fcntl_.h: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
7
3307ae6ea2e5 * lib/fcntl_.h: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
8 dnl Written by Paul Eggert.
3307ae6ea2e5 * lib/fcntl_.h: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
9
3307ae6ea2e5 * lib/fcntl_.h: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
10 AC_DEFUN([gl_FCNTL_H],
3307ae6ea2e5 * lib/fcntl_.h: New file.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff changeset
11 [
11482
5ff04014c57f Tweak last commit.
Bruno Haible <bruno@clisp.org>
parents: 11479
diff changeset
12 AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
12180
2c71cf09ef7e Avoid symlink attack in localcharset module.
Bruno Haible <bruno@clisp.org>
parents: 12051
diff changeset
13 AC_REQUIRE([gl_FCNTL_O_FLAGS])
14186
cd4635d4dbe6 assume <ctype.h>, ..., <time.h> exist
Paul Eggert <eggert@cs.ucla.edu>
parents: 14079
diff changeset
14 gl_NEXT_HEADERS([fcntl.h])
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
15
15594
f4cfbb6036d8 Ensure pid_t gets defined.
Bruno Haible <bruno@clisp.org>
parents: 14532
diff changeset
16 dnl Ensure the type pid_t gets defined.
f4cfbb6036d8 Ensure pid_t gets defined.
Bruno Haible <bruno@clisp.org>
parents: 14532
diff changeset
17 AC_REQUIRE([AC_TYPE_PID_T])
f4cfbb6036d8 Ensure pid_t gets defined.
Bruno Haible <bruno@clisp.org>
parents: 14532
diff changeset
18
15629
f62fb3d6776f Support for MSVC compiler: Ensure mode_t gets defined.
Bruno Haible <bruno@clisp.org>
parents: 15594
diff changeset
19 dnl Ensure the type mode_t gets defined.
f62fb3d6776f Support for MSVC compiler: Ensure mode_t gets defined.
Bruno Haible <bruno@clisp.org>
parents: 15594
diff changeset
20 AC_REQUIRE([AC_TYPE_MODE_T])
f62fb3d6776f Support for MSVC compiler: Ensure mode_t gets defined.
Bruno Haible <bruno@clisp.org>
parents: 15594
diff changeset
21
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
22 dnl Check for declarations of anything we want to poison if the
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
23 dnl corresponding gnulib module is not in use, if it is not common
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
24 dnl enough to be declared everywhere.
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
25 gl_WARN_ON_USE_PREPARE([[#include <fcntl.h>
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12559
diff changeset
26 ]], [fcntl openat])
12180
2c71cf09ef7e Avoid symlink attack in localcharset module.
Bruno Haible <bruno@clisp.org>
parents: 12051
diff changeset
27 ])
2c71cf09ef7e Avoid symlink attack in localcharset module.
Bruno Haible <bruno@clisp.org>
parents: 12051
diff changeset
28
9299
ada4d73c37a6 New module 'open'.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
29 AC_DEFUN([gl_FCNTL_MODULE_INDICATOR],
ada4d73c37a6 New module 'open'.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
30 [
ada4d73c37a6 New module 'open'.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
31 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
ada4d73c37a6 New module 'open'.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
32 AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
13066
fc8c984b0733 Factorize common .m4 code.
Bruno Haible <bruno@clisp.org>
parents: 12955
diff changeset
33 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
12955
ea8792098af0 Tests of module 'fcntl-h' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
34 dnl Define it also as a C macro, for the benefit of the unit tests.
13071
b2385e7b332e Distinguish two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 13066
diff changeset
35 gl_MODULE_INDICATOR_FOR_TESTS([$1])
9299
ada4d73c37a6 New module 'open'.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
36 ])
ada4d73c37a6 New module 'open'.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
37
ada4d73c37a6 New module 'open'.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
38 AC_DEFUN([gl_FCNTL_H_DEFAULTS],
ada4d73c37a6 New module 'open'.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
39 [
14532
0b3f0c54fbc8 nonblocking: provide O_NONBLOCK for mingw
Eric Blake <eblake@redhat.com>
parents: 14186
diff changeset
40 GNULIB_FCNTL=0; AC_SUBST([GNULIB_FCNTL])
0b3f0c54fbc8 nonblocking: provide O_NONBLOCK for mingw
Eric Blake <eblake@redhat.com>
parents: 14186
diff changeset
41 GNULIB_NONBLOCKING=0; AC_SUBST([GNULIB_NONBLOCKING])
0b3f0c54fbc8 nonblocking: provide O_NONBLOCK for mingw
Eric Blake <eblake@redhat.com>
parents: 14186
diff changeset
42 GNULIB_OPEN=0; AC_SUBST([GNULIB_OPEN])
0b3f0c54fbc8 nonblocking: provide O_NONBLOCK for mingw
Eric Blake <eblake@redhat.com>
parents: 14186
diff changeset
43 GNULIB_OPENAT=0; AC_SUBST([GNULIB_OPENAT])
9299
ada4d73c37a6 New module 'open'.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
44 dnl Assume proper GNU behavior unless another module says otherwise.
14532
0b3f0c54fbc8 nonblocking: provide O_NONBLOCK for mingw
Eric Blake <eblake@redhat.com>
parents: 14186
diff changeset
45 HAVE_FCNTL=1; AC_SUBST([HAVE_FCNTL])
0b3f0c54fbc8 nonblocking: provide O_NONBLOCK for mingw
Eric Blake <eblake@redhat.com>
parents: 14186
diff changeset
46 HAVE_OPENAT=1; AC_SUBST([HAVE_OPENAT])
0b3f0c54fbc8 nonblocking: provide O_NONBLOCK for mingw
Eric Blake <eblake@redhat.com>
parents: 14186
diff changeset
47 REPLACE_FCNTL=0; AC_SUBST([REPLACE_FCNTL])
0b3f0c54fbc8 nonblocking: provide O_NONBLOCK for mingw
Eric Blake <eblake@redhat.com>
parents: 14186
diff changeset
48 REPLACE_OPEN=0; AC_SUBST([REPLACE_OPEN])
0b3f0c54fbc8 nonblocking: provide O_NONBLOCK for mingw
Eric Blake <eblake@redhat.com>
parents: 14186
diff changeset
49 REPLACE_OPENAT=0; AC_SUBST([REPLACE_OPENAT])
9299
ada4d73c37a6 New module 'open'.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
50 ])