.
authorJim Meyering <jim@meyering.net>
Sun, 28 Jun 1998 21:40:12 +0000 (21:40 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 28 Jun 1998 21:40:12 +0000 (21:40 +0000)
m4/ChangeLog
m4/Makefile.am
m4/Makefile.in
m4/jm-glibc-io.m4 [new file with mode: 0644]

index 7617192a7662cf239d9dd060fb3a03ed8cb397c9..2c50091de366d98e87c400ed391afb21f3df3576 100644 (file)
@@ -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.
index 17f187d5f99cd4b972af10031fa530fde2af96e8..5372980d462ececfa38f1a7d151f6df403f925f9 100644 (file)
@@ -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
 
index e66c5469ce6d34caaaca8add34f8a9d1ecd5bf46..ddca9abd3832dd28bb5b5ab0c4d5d10800b23e39 100644 (file)
@@ -92,10 +92,10 @@ l = @l@
 
 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 = 
diff --git a/m4/jm-glibc-io.m4 b/m4/jm-glibc-io.m4
new file mode 100644 (file)
index 0000000..e6ff4da
--- /dev/null
@@ -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                           \
+   )
+  ]
+)