Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 6 Dec 2002 19:28:32 +0000 (19:28 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 6 Dec 2002 19:28:32 +0000 (19:28 +0000)
a pain in practice to deal with generated m4 files.  This change
goes together with the 2002-12-04 unlocked-io.h change in ../lib.

m4/ChangeLog
m4/Makefile.am.in
m4/jm-glibc-io.m4 [new file with mode: 0644]

index 3985bd1..aed83ca 100644 (file)
@@ -1,3 +1,14 @@
+2002-12-06  Paul Eggert  <eggert@twinsun.com>
+
+       Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
+       a pain in practice to deal with generated m4 files.  This change
+       goes together with the 2002-12-04 unlocked-io.h change in ../lib.
+
+       * Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
+       and jm-glibc-io.m4, as they are no longer a special case.
+       * jm-glibc-io.m4: New file.
+       * jm-glibc-io.m4n: Remove.
+
 2002-07-06  Jim Meyering  <meyering@lucent.com>
 
        * README: Don't mention Makefile.am.in.
index 5914028..eddeffe 100644 (file)
@@ -7,7 +7,7 @@ Makefile.am: Makefile.am.in
        rm -f $@ $@t
        sed -n '1,/^##m4-files-begin/p' $< > $@t
        (((echo EXTRA_DIST =; \
-          echo "  README jm-glibc-io.m4 jm-glibc-io.m4n Makefile.am.in" \
+          echo "  README Makefile.am.in" \
          ) | tr '\012' @); \
          (echo *.m4|tr ' ' @) ) \
          |sed 's/@$$/%/;s/@/ \\@/g' |tr @% '\012\012' \
diff --git a/m4/jm-glibc-io.m4 b/m4/jm-glibc-io.m4
new file mode 100644 (file)
index 0000000..e8054f0
--- /dev/null
@@ -0,0 +1,14 @@
+#serial 7 -*- autoconf -*-
+
+dnl From Jim Meyering.
+dnl
+dnl See if the glibc *_unlocked I/O macros are available.
+dnl Use only those *_unlocked macros that are declared.
+dnl
+
+AC_DEFUN([jm_FUNC_GLIBC_UNLOCKED_IO],
+  [AC_CHECK_DECLS(
+     [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])])