From 778d179f08bea8aa824378a0ac6cf56641a92973 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 6 Dec 2002 19:28:32 +0000 Subject: [PATCH] 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. --- m4/ChangeLog | 11 +++++++++++ m4/Makefile.am.in | 2 +- m4/jm-glibc-io.m4 | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 m4/jm-glibc-io.m4 diff --git a/m4/ChangeLog b/m4/ChangeLog index 3985bd13ea..aed83caf8f 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,14 @@ +2002-12-06 Paul Eggert + + 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 * README: Don't mention Makefile.am.in. diff --git a/m4/Makefile.am.in b/m4/Makefile.am.in index 591402869c..eddeffecbd 100644 --- a/m4/Makefile.am.in +++ b/m4/Makefile.am.in @@ -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 index 0000000000..e8054f0bd2 --- /dev/null +++ b/m4/jm-glibc-io.m4 @@ -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])]) -- 2.30.2