changeset 1384:7b30d456ef71

.
author Jim Meyering <jim@meyering.net>
date Sun, 28 Jun 1998 21:40:12 +0000
parents a7627de5ef66
children a57fdc484b59
files m4/ChangeLog m4/Makefile.am m4/Makefile.in m4/jm-glibc-io.m4
diffstat 4 files changed, 37 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,8 @@
+1998-06-28  Jim Meyering  <meyering@ascend.com>
+
+	* jm-macros.m4: Require the new macro.
+	* jm-glibc-io.m4: New file.
+
 1998-05-19  Jim Meyering  <meyering@ascend.com>
 
 	* jm-macros.m4: Add jm_FUNC_LCHOWN.
--- a/m4/Makefile.am
+++ b/m4/Makefile.am
@@ -3,10 +3,10 @@
 ##m4-files-begin
 EXTRA_DIST = README Makefile.am.in assert.m4 check-decl.m4 chown.m4 \
 const.m4 d-ino.m4 d-type.m4 decl.m4 error.m4 getgroups.m4 getline.m4 \
-getloadavg.m4 inttypes_h.m4 isc-posix.m4 jm-macros.m4 jm-mktime.m4 \
-jm-winsz1.m4 jm-winsz2.m4 lchown.m4 lfs.m4 lstat.m4 malloc.m4 memcmp.m4 \
-perl.m4 prereq.m4 putenv.m4 readdir.m4 realloc.m4 ssize_t.m4 stat.m4 \
-strftime.m4 uintmax_t.m4 uptime.m4 utimbuf.m4
+getloadavg.m4 inttypes_h.m4 isc-posix.m4 jm-glibc-io.m4 jm-macros.m4 \
+jm-mktime.m4 jm-winsz1.m4 jm-winsz2.m4 lchown.m4 lfs.m4 lstat.m4 malloc.m4 \
+memcmp.m4 perl.m4 prereq.m4 putenv.m4 readdir.m4 realloc.m4 ssize_t.m4 \
+stat.m4 strftime.m4 uintmax_t.m4 uptime.m4 utimbuf.m4
 
 ##m4-files-end
 
--- a/m4/Makefile.in
+++ b/m4/Makefile.in
@@ -92,10 +92,10 @@
 
 EXTRA_DIST = README Makefile.am.in assert.m4 check-decl.m4 chown.m4 \
 const.m4 d-ino.m4 d-type.m4 decl.m4 error.m4 getgroups.m4 getline.m4 \
-getloadavg.m4 inttypes_h.m4 isc-posix.m4 jm-macros.m4 jm-mktime.m4 \
-jm-winsz1.m4 jm-winsz2.m4 lchown.m4 lfs.m4 lstat.m4 malloc.m4 memcmp.m4 \
-perl.m4 prereq.m4 putenv.m4 readdir.m4 realloc.m4 ssize_t.m4 stat.m4 \
-strftime.m4 uintmax_t.m4 uptime.m4 utimbuf.m4
+getloadavg.m4 inttypes_h.m4 isc-posix.m4 jm-glibc-io.m4 jm-macros.m4 \
+jm-mktime.m4 jm-winsz1.m4 jm-winsz2.m4 lchown.m4 lfs.m4 lstat.m4 malloc.m4 \
+memcmp.m4 perl.m4 prereq.m4 putenv.m4 readdir.m4 realloc.m4 ssize_t.m4 \
+stat.m4 strftime.m4 uintmax_t.m4 uptime.m4 utimbuf.m4
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = ../config.h
 CONFIG_CLEAN_FILES = 
new file mode 100644
--- /dev/null
+++ b/m4/jm-glibc-io.m4
@@ -0,0 +1,24 @@
+#serial 1
+
+dnl From Jim Meyering.
+dnl
+dnl See if the glibc *_unlocked I/O macros are available.
+dnl
+
+AC_DEFUN(jm_FUNC_GLIBC_UNLOCKED_IO,
+  [AC_CHECK_FUNCS(				\
+    clearerr_unlocked				\
+    fclose_unlocked				\
+    feof_unlocked				\
+    ferror_unlocked				\
+    fflush_unlocked				\
+    fputc_unlocked				\
+    fread_unlocked				\
+    fwrite_unlocked				\
+    getc_unlocked				\
+    getchar_unlocked				\
+    putc_unlocked				\
+    putchar_unlocked				\
+   )
+  ]
+)