summaryrefslogtreecommitdiffstats
path: root/gettext-tools
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-05-12 19:21:14 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:10:29 +0200
commit5b27b6bf76c6acbbf23dd1e461ec8941d1ec6c5a (patch)
tree10cdf390071a74b0d810143cf521580d2c8b4567 /gettext-tools
parente4c87f413ed9b62cc78f0d9abc202346eee4063e (diff)
downloadexternal_gettext-5b27b6bf76c6acbbf23dd1e461ec8941d1ec6c5a.zip
external_gettext-5b27b6bf76c6acbbf23dd1e461ec8941d1ec6c5a.tar.gz
external_gettext-5b27b6bf76c6acbbf23dd1e461ec8941d1ec6c5a.tar.bz2
Module unlocked-io from gnulib.
Diffstat (limited to 'gettext-tools')
-rw-r--r--gettext-tools/m4/ChangeLog3
-rw-r--r--gettext-tools/m4/Makefile.am1
-rw-r--r--gettext-tools/m4/unlocked-io.m422
3 files changed, 25 insertions, 1 deletions
diff --git a/gettext-tools/m4/ChangeLog b/gettext-tools/m4/ChangeLog
index 346da49..2a55ec6 100644
--- a/gettext-tools/m4/ChangeLog
+++ b/gettext-tools/m4/ChangeLog
@@ -1,7 +1,8 @@
2003-05-09 Bruno Haible <bruno@clisp.org>
* strerror_r.m4: New file, from gnulib.
- * Makefile.am (EXTRA_DIST): Add it.
+ * unlocked-io.m4: New file, from gnulib.
+ * Makefile.am (EXTRA_DIST): Add them.
2003-04-29 Bruno Haible <bruno@clisp.org>
diff --git a/gettext-tools/m4/Makefile.am b/gettext-tools/m4/Makefile.am
index 808470f..ec2310b 100644
--- a/gettext-tools/m4/Makefile.am
+++ b/gettext-tools/m4/Makefile.am
@@ -56,4 +56,5 @@ strerror.m4 \
strerror_r.m4 \
tmpdir.m4 \
unionwait.m4 \
+unlocked-io.m4 \
xreadlink.m4
diff --git a/gettext-tools/m4/unlocked-io.m4 b/gettext-tools/m4/unlocked-io.m4
new file mode 100644
index 0000000..f0c15d9
--- /dev/null
+++ b/gettext-tools/m4/unlocked-io.m4
@@ -0,0 +1,22 @@
+#serial 7 -*- autoconf -*-
+
+dnl From Jim Meyering.
+dnl
+dnl See if the glibc *_unlocked I/O macros or functions are available.
+dnl Use only those *_unlocked macros or functions that are declared
+dnl (because some of them were declared in Solaris 2.5.1 but were removed
+dnl in Solaris 2.6, whereas we want binaries built on Solaris 2.5.1 to run
+dnl on Solaris 2.6).
+
+AC_DEFUN([jm_FUNC_GLIBC_UNLOCKED_IO],
+[
+ dnl Persuade glibc <stdio.h> to declare fgets_unlocked(), fputs_unlocked()
+ dnl etc.
+ AC_REQUIRE([AC_GNU_SOURCE])
+
+ AC_CHECK_DECLS_ONCE(
+ [clearerr_unlocked feof_unlocked ferror_unlocked
+ fflush_unlocked fgets_unlocked fputc_unlocked fputs_unlocked
+ fread_unlocked fwrite_unlocked getc_unlocked
+ getchar_unlocked putc_unlocked putchar_unlocked])
+])