Mercurial > hg > octave-shane > gnulib-hg
annotate m4/unlocked-io.m4 @ 17252:7a29ec33d6c5
missing @item
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Tue, 01 Jan 2013 09:17:08 -0800 |
parents | e542fd46ad6f |
children | 344018b6e5d7 |
rev | line source |
---|---|
11007
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
7172
diff
changeset
|
1 # unlocked-io.m4 serial 15 |
5318
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
2 |
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
16201
diff
changeset
|
3 # Copyright (C) 1998-2006, 2009-2013 Free Software Foundation, Inc. |
5611
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5318
diff
changeset
|
4 # |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5318
diff
changeset
|
5 # This file is free software; the Free Software Foundation |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5318
diff
changeset
|
6 # gives unlimited permission to copy and/or distribute it, |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5318
diff
changeset
|
7 # with or without modifications, as long as this notice is preserved. |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 dnl From Jim Meyering. |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 dnl |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 dnl See if the glibc *_unlocked I/O macros or functions are available. |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 dnl Use only those *_unlocked macros or functions that are declared |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 dnl (because some of them were declared in Solaris 2.5.1 but were removed |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 dnl in Solaris 2.6, whereas we want binaries built on Solaris 2.5.1 to run |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 dnl on Solaris 2.6). |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 |
5016
7141ea4946af
Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
Jim Meyering <jim@meyering.net>
parents:
4515
diff
changeset
|
17 AC_DEFUN([gl_FUNC_GLIBC_UNLOCKED_IO], |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 [ |
11007
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
7172
diff
changeset
|
19 AC_DEFINE([USE_UNLOCKED_IO], [1], |
5318
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
20 [Define to 1 if you want getc etc. to use unlocked I/O if available. |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
21 Unlocked I/O can improve performance in unithreaded apps, |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
22 but it is not safe for multithreaded apps.]) |
7c24a825b51d
Remove dependencies on unlocked-io.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
23 |
4515
ae4b157d42ad
New module 'extensions', used by timespec and unlocked-io
Paul Eggert <eggert@cs.ucla.edu>
parents:
4107
diff
changeset
|
24 dnl Persuade glibc and Solaris <stdio.h> to declare |
ae4b157d42ad
New module 'extensions', used by timespec and unlocked-io
Paul Eggert <eggert@cs.ucla.edu>
parents:
4107
diff
changeset
|
25 dnl fgets_unlocked(), fputs_unlocked() etc. |
ae4b157d42ad
New module 'extensions', used by timespec and unlocked-io
Paul Eggert <eggert@cs.ucla.edu>
parents:
4107
diff
changeset
|
26 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 |
6742
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
28 AC_CHECK_DECLS_ONCE([clearerr_unlocked]) |
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
29 AC_CHECK_DECLS_ONCE([feof_unlocked]) |
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
30 AC_CHECK_DECLS_ONCE([ferror_unlocked]) |
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
31 AC_CHECK_DECLS_ONCE([fflush_unlocked]) |
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
32 AC_CHECK_DECLS_ONCE([fgets_unlocked]) |
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
33 AC_CHECK_DECLS_ONCE([fputc_unlocked]) |
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
34 AC_CHECK_DECLS_ONCE([fputs_unlocked]) |
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
35 AC_CHECK_DECLS_ONCE([fread_unlocked]) |
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
36 AC_CHECK_DECLS_ONCE([fwrite_unlocked]) |
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
37 AC_CHECK_DECLS_ONCE([getc_unlocked]) |
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
38 AC_CHECK_DECLS_ONCE([getchar_unlocked]) |
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
39 AC_CHECK_DECLS_ONCE([putc_unlocked]) |
20164454be7f
* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
Paul Eggert <eggert@cs.ucla.edu>
parents:
5721
diff
changeset
|
40 AC_CHECK_DECLS_ONCE([putchar_unlocked]) |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
41 ]) |