Get the C++ macros/conditionals right.
[gnulib.git] / m4 / ChangeLog
1 2006-07-27  Bruno Haible  <bruno@clisp.org>
2
3         * stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
4         test.
5
6 2006-07-26  Eric Blake  <ebb9@byu.net>
7
8         * unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
9
10 2006-07-26  Bruno Haible  <bruno@clisp.org>
11
12         * stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
13         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
14         INT_FAST*_MIN, INTPTR_MIN.
15
16 2006-07-25  Bruno Haible  <bruno@clisp.org>
17
18         * stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of complex
19         commands.
20
21 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22
23         * stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
24         (gl_STDIO_SAFER): Remove.
25
26 2006-07-24  Bruno Haible  <bruno@clisp.org>
27
28         * tmpdir.m4: New file, from GNU gettext.
29
30 2006-07-23  Eric Blake  <ebb9@byu.net>
31
32         * stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
33
34 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
35
36         * close-stream.m4: New file.
37
38 2006-07-22  Bruno Haible  <bruno@clisp.org>
39
40         Merge from GNU gettext 0.15.
41
42         2006-03-25  Bruno Haible  <bruno@clisp.org>
43
44                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45
46         2006-07-21  Bruno Haible  <bruno@clisp.org>
47
48                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
49                 "1.1".
50
51         2006-05-09  Bruno Haible  <bruno@clisp.org>
52
53                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
54                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
55                 for the conftestver execution.
56
57         2006-05-01  Bruno Haible  <bruno@clisp.org>
58
59                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60                 optional target-version argument. Verify that the compiler
61                 groks source of the specified source-version, or add -source
62                 option as necessary. Verify that the compiler produces
63                 bytecode in the specified target-version, or add -target and
64                 -source options as necessary. Make the result of the test
65                 available as variable CONF_JAVAC. Also log error output in
66                 config.log.
67
68         2006-03-11  Bruno Haible  <bruno@clisp.org>
69
70                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71
72         2006-05-09  Bruno Haible  <bruno@clisp.org>
73
74                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75                 CLASSPATH_SEPARATOR to a semicolon.
76
77         2006-03-12  Bruno Haible  <bruno@clisp.org>
78
79                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80                 available as variable CONF_JAVA, for subsequent autoconf
81                 tests. Also log error output in config.log.
82
83         2006-07-19  Bruno Haible  <bruno@clisp.org>
84
85                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
86                 that getline works on glibc2 systems. Needed to avoid trouble
87                 in relocatable.c.
88                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
89
90         2005-12-04  Bruno Haible  <bruno@clisp.org>
91
92                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
93                 launcher (untested).
94
95         2005-12-04  Bruno Haible  <bruno@clisp.org>
96
97                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
98
99         2006-07-22  Bruno Haible  <bruno@clisp.org>
100
101                 * gettext.m4: Update from GNU gettext-0.15.
102                 * nls.m4: Likewise.
103                 * po.m4: Likewise.
104                 * inttypes-pri.m4: Likewise.
105                 * inttypes-h.m4: Renamed from inttypes.m4.
106                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
107
108 2006-07-17  Bruno Haible  <bruno@clisp.org>
109
110         * gl_list.m4: New file.
111
112 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
113
114         * mkancesdirs.m4: New file.
115         * mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c, dirchownmod.h.
116         Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER; no longer needed.
117         Require gl_FUNC_LCHOWN, since dirchownmod.c needs it.
118
119 2006-07-11  Eric Blake  <ebb9@byu.net>
120
121         * absolute-header.m4: Fix comments to match recent change.
122
123 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
124
125         * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
126         to stdint.m4.
127
128 2006-07-10  Derek R. Price  <derek@ximbiot.com>
129         and Paul Eggert  <eggert@cs.ucla.edu>
130
131         * backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
132         * savedir.m4:
133         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
134         macros into the GNU _D_EXACT_NAMLEN.
135
136 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
137
138         * stdint.m4 (gl_STDINT_H): Like yesterday's change to
139         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
140         "no/such/file/stdint.h" when there is no such file, so that
141         the resulting C code can be parsed by dodgy compilers.
142         Problems reported by Bob Proulx.
143
144 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
145
146         * absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
147         around the absolute name, to work around a problem with the HP-UX
148         11.23 native C compiler, reported by Bob Proulx.
149
150 2006-07-09  Jim Meyering  <jim@meyering.net>
151
152         * glob.m4: Remove a doubled word in a comment.
153
154 2006-07-08  Jim Meyering  <jim@meyering.net>
155
156         * link-follow.m4: Remove one of two adjacent "whether"s in a comment.
157         * getopt.m4: Remove one of two adjacent "your"s in a comment.
158         * regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a comment.
159
160 2006-07-06  Derek R. Price  <derek@ximbiot.com>
161         and Paul Eggert  <eggert@cs.ucla.edu>
162
163         * backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
164         of invoking obsolescent AC_HEADER_DIRENT macro.
165         * d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
166         * d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
167         * dirfd.m4 (gl_FUNC_DIRFD): Likewise.
168         * fts.m4 (gl_FUNC_FTS_CORE): Likewise.
169         * getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
170         * glob.m4 (gl_PREREQ_GLOB): Likewise.
171         * savedir.m4 (gl_SAVEDIR): Likewise.
172         * readdir.m4: Remove; no longer needed.
173
174 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
175
176         * _inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
177         with only one argument, for Autoconf 2.60.
178         * fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
179         expand to nothing, so add a shell command to avoid syntax error.
180         * getpass.m4 (gl_PREREQ_GETPASS): Likewise.
181
182 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
183
184         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
185         no longer needed.  Check for isblank decl.
186         * mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
187         * regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
188         of existence.
189
190 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
191
192         * xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
193         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
194         * getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer needed.
195         All uses removed.
196         * strtol.m4 (gl_PREREQ_STRTOL): Likewise.
197         * strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
198         * exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer needed.
199         * getdate.m4 (gl_GETDATE): Likewise.
200         * getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
201         * memcasecmp.m4 (gl_MEMCASECMP): Likewise.
202         * strtod.m4 (gl_FUNC_STRTOD): Likewise.
203         * strtol.m4 (gl_PREREQ_STRTOL): Likewise.
204         * strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
205         * xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
206         * exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
207         needed.
208
209 2006-07-05  Derek R. Price  <derek@ximbiot.com>
210
211         * calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
212         no longer needed.
213         * exclude.m4 (gl_EXCLUDE): Likewise.
214         * getdate.m4 (gl_GETDATE): Likewise.
215         * getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
216         * memcasecmp.m4 (gl_MEMCASECMP): Likewise.
217         * strtod.m4 (gl_FUNC_STRTOD): Likewise.
218         * strtol.m4 (gl_PREREQ_STRTOL): Likewise.
219         * xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
220
221 2006-07-05  Eric Blake  <ebb9@byu.net>
222
223         * sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
224         to avoid 'header present but could not be compiled' on cygwin.
225
226 2006-07-03  Bruno Haible  <bruno@clisp.org>
227
228         * strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
229         the function exists, before testing against AIX.
230         Reported by Martin Lambers <marlam@marlam.de>.
231
232 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
233
234         * absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
235         to the absolute name, not just one, to bypass Sun C 5.8's
236         "warning: #include of /usr/include/... may be non-portable".
237
238 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
239
240         * absolute-header.m4: Renamed from full-header-path.m4.
241         This is to keep the terminology clean; POSIX talks about
242         "absolute pathnames", not "full pathnames", but the GNU
243         Coding Standards say to use "path" for something else;
244         so use "absolute" to keep both sides happy.
245         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
246         Set gl_absolute_header, not gl_full_header_path.
247         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
248         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
249         All uses changed.
250
251         Merge from coreutils.
252
253         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
254
255         * c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
256         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
257         want to require the building of c-strtod.o.
258         * lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
259         needs -lm directly.
260         * xstrtod.m4 (gl_XSTRTOLD): New macro.
261
262         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
263
264         * lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
265         --as-needed option if available.  Problem reported by Albert Chin in
266         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
267         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
268         cc merely issues a bunch of annoying warnings for --as-needed
269         (this problem was reported by Bob Proulx).  Also, try linking with
270         -lm to detect a bug in binutils 2.16 (this problem was reported
271         by Ralf Wildenhues).
272
273         2006-06-18  Jim Meyering  <jim@meyering.net>
274
275         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
276         * getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and macro.
277         * getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
278         also check for glibc-2.4's abort-inducing bug.
279
280         * getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
281         Low-probability clean-up should be to use rmdir to get rid of
282         the just-created directory, not unlink.
283
284         * ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
285         configure fail, and request a bug report to inform us about it.
286         Add a comment that, barring reports to the contrary, in 2007 we'll
287         assume ftruncate is universally available.
288
289         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
290
291         * filemode.m4 (gl_FILEMODE): Check for strmode declaration.
292
293         2006-03-12  Jim Meyering  <jim@meyering.net>
294
295         * chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
296         * cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
297         * same.m4 (gl_SAME): Likewise.
298         * root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
299
300         2006-03-11  Eric Blake  <ebb9@byu.net>
301
302         * double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
303         * dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
304         * dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
305         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
306
307 2006-07-02  Eric Blake  <ebb9@byu.net>
308
309         * wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
310
311 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
312
313         * stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
314         test cases, so that config.log is a bit easier to follow.
315
316 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
317
318         * longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
319         but fix a bug, by requiring at least 64 bits.
320         * ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
321         * longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
322         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
323         * ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
324
325         * stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
326         changes.  Make 2.59 a prerequisite.  Check and substitute for
327         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
328         inttypes.h.  Do not use special include files; just use the
329         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
330         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
331         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
332         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
333         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
334         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
335         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
336         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
337         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
338         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
339         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
340         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
341         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
342         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
343         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
344         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
345         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
346         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
347         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
348         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
349         WINT_MAX.  Check for C99 conformance more strictly, by detecting
350         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
351         not check for things that C99 does not require, e.g., int8_t.  If
352         a test isn't needed unless <stdint.h> isn't working, and is
353         unlikely to be needed for any other reason, then don't do it
354         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
355         size_t, since we assume C89 freestanding at least.  Do not check
356         for sig_atomic_t, wchar_t, or wint_t, since the code now does
357         the right thing even if the types are not defined.  Instead use:
358         (gl_STDINT_TYPE_PROPERTIES): New macro.
359         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
360         testing whether <sys/types.h> clashes, as Autoconf does this for
361         us now.  All uses removed.
362         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
363         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
364         (gl_CHECK_TYPE_SAME):
365         Remove; no longer needed.
366         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
367         exists, since we'll return 0 anyway in that case.
368         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
369
370 2006-07-01  Eric Blake  <ebb9@byu.net>
371
372         * stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
373
374 2006-07-01  Eric Blake  <ebb9@byu.net>
375
376         * stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
377         Reported by Andreas Buening.
378
379 2006-06-29  Eric Blake  <ebb9@byu.net>
380
381         * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
382
383 2006-06-29  Eric Blake  <ebb9@byu.net>
384
385         * sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
386
387 2006-06-29  Derek R. Price  <derek@ximbiot.com>
388
389         * strftime.m4: Don't call AC_FUNC_STRFTIME.
390
391 2006-06-29  Derek R. Price  <derek@ximbiot.com>
392
393         * c-bs-a.m4: Removed.
394
395 2006-06-28  Derek R. Price  <derek@ximbiot.com>
396
397         * savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
398
399         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
400         it's obsolete.
401         * strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
402
403 2006-06-28  Bruno Haible  <bruno@clisp.org>
404
405         * wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
406         gt_TYPE_WCHAR_T.
407
408 2006-06-28  Eric Blake  <ebb9@byu.net>
409
410         * mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
411         * wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
412
413 2006-06-28  Simon Josefsson  <jas@extundo.com>
414
415         * getaddrinfo.m4: Look for getnameinfo prototypes too.
416
417 2006-06-27  Simon Josefsson  <jas@extundo.com>
418
419         * sys_select_h.m4: New file, suggested by Bruno Haible, Paul
420         Eggert and Martin Lambers.
421
422 2006-06-27  Bruno Haible  <bruno@clisp.org>
423
424         * stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
425         result to 0, not to empty.
426         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
427
428 2006-06-26  Bruno Haible  <bruno@clisp.org>
429
430         * stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
431
432 2006-06-26  Bruno Haible  <bruno@clisp.org>
433
434         * stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
435         SGI C compiler in pre-C99 mode.
436         Suggested by Mark D. Baushke and Larry Jones.
437
438 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
439
440         * stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
441
442 2006-06-26  Simon Josefsson  <jas@extundo.com>
443
444         * inet_ntop.m4: Don't check for sys/types.h, we assume it is
445         present.
446
447 2006-06-23  Bruno Haible  <bruno@clisp.org>
448
449         * stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
450
451 2006-06-22  Simon Josefsson  <jas@extundo.com>
452
453         * sockpfaf.m4: Include winsock2.h too, to make it work under
454         MinGW.
455
456 2006-06-21  Simon Josefsson  <jas@extundo.com>
457
458         * getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
459         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
460         of using the (limited) gnulib implementation on Windows XP.
461
462         * inet_pton.m4: New file.
463
464 2006-06-19  Bruno Haible  <bruno@clisp.org>
465
466         * stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
467         and FULL_PATH_INTTYPES_H in angle brackets.
468         Reported by Mark D. Baushke <mdb@gnu.org>.
469
470 2006-06-17  Bruno Haible  <bruno@clisp.org>
471
472         * stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
473         <sys/inttypes.h>.
474
475 2006-06-16  Eric Blake  <ebb9@byu.net>
476
477         * rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
478         errno.
479
480 2006-06-17  Bruno Haible  <bruno@clisp.org>
481
482         * setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
483         whether errno is declared. Assume <errno.h> declares errno.
484
485 2006-06-15  Bruno Haible  <bruno@clisp.org>
486
487         * stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
488         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
489         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
490         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
491         gl_CHECK_TYPE_SAME): New macros.
492
493 2006-06-15  Bruno Haible  <bruno@clisp.org>
494
495         * size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
496
497 2006-06-15  Eric Blake  <ebb9@byu.net>
498
499         * ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
500
501 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
502             Bruno Haible  <bruno@clisp.org>
503
504         * strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
505         check for the declaration of strnlen and a run test that exposes the
506         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
507         rpl_strndup.
508
509 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
510
511         * c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
512         compile test, for Tru64 4.0D.
513
514 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
515
516         * nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
517         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
518         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
519         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
520         not really conditional on the cache.
521         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
522
523 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
524
525         * stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
526         test for C99 conformance; (bool) 0.5 is an integer constant
527         expression, but (bool) -0.5 is not.  Problem reported by Fedor
528         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
529
530 2006-05-11  Simon Josefsson  <jas@extundo.com>
531
532         * xvasprintf.m4: Fix obvious typo.
533
534 2006-05-09  Bruno Haible  <bruno@clisp.org>
535
536         * xvasprintf.m4: New file.
537
538 2006-05-08  Bruno Haible  <bruno@clisp.org>
539
540         * stdarg.m4: New file, from GNU gettext.
541
542 2006-05-05  Jim Meyering  <jim@meyering.net>
543
544         * warning.m4: New file, derived from bison's file by the same name.
545
546 2006-05-02  Bruno Haible  <bruno@clisp.org>
547
548         * full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
549         test from here...
550         * _inttypes_h.m4 (gl_INTTYPES_H): ... to here.
551
552 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
553
554         * unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
555         to define main with arguments, for C++.  Reported by Eric Blake.
556         * c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
557         Prefer 'int main ()' to 'int main (void)', for C++.
558         * getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
559         * fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
560         for 'main', for C99 and C++.
561
562 2006-04-23  Bruno Haible  <bruno@clisp.org>
563
564         * poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
565         assigned exactly once.
566
567 2006-04-23  Bruno Haible  <bruno@clisp.org>
568
569         * poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the poll()
570         implementation in AIX.
571         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
572
573 2006-03-04  Eric Blake  <ebb9@byu.net>
574
575         * strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
576
577 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
578
579         * fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
580         Don't assume that exit status -1 is valid.
581         * nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
582         * putenv.m4 (gl_FUNC_PUTENV): Likewise.
583         * rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
584         * readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
585         * rename.m4 (vb_FUNC_RENAME): Likewise.
586         * unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
587         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
588         functions can be used without declaring them, or that you can
589         exit with status -1.
590         * utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
591
592 2006-04-20  Bruno Haible  <bruno@clisp.org>
593
594         * argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
595         one argument, so that the code will be portable to Autoconf 2.60.
596         * getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
597         * getpass.m4 (gl_PREREQ_GETPASS): Likewise.
598         * unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
599
600 2006-04-19  Derek Price  <derek@ximbiot.com>
601             Eric Blake  <ebb9@byu.net>
602
603         * full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h> rather
604         than "/full/path.h".  Update comment to match.  Shorten & generalize
605         m4_translit call via AS_TR_CPP.
606
607 2006-04-18  Derek Price  <derek@ximbiot.com>
608             Paul Eggert  <eggert@cs.ucla.edu>
609
610         * _inttypes_h.m4, full-header-path.m4, include_next: New files.
611
612 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
613
614         * time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and time_r.h.
615
616 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
617
618         * regex.m4 (gl_REGEX): Check for new glibc interface to
619         translation table.
620
621 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
622
623         * argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
624         `__error_t_defined', so argp.h will not typedef the former.
625
626 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
627
628         * regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
629         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
630         glibc names.  Even if glibc is changed to conform to POSIX, the
631         traditional names will be available anyway, since regex depends on
632         the extensions module.  Also, fix a longstanding typo in the
633         implementation of Spencer ERE test #75 from grep 2.3.  Problems
634         reported by Emanuele Giaquinta.  Also, change sense of cached
635         variable, so that the message makes sense.
636
637 2006-03-17  Jim Meyering  <jim@meyering.net>
638
639         * regex.m4 (gl_REGEX): Fix typo in last change:
640         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
641
642 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
643
644         * regex.m4 (gl_REGEX): Don't check for off_t, since the code
645         no longer needs it.  Instead, check that regoff_t is as least
646         as wide as ptrdiff_t.
647
648         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
649         so that our regex.h stays compatible with the installed regex.
650         This is helpful for installers who configure --without-included-regex.
651         Problem reported by Emanuele Giaquinta.
652
653 2006-03-15  Eric Blake  <ebb9@byu.net>
654
655         * dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
656
657 2006-03-08  Simon Josefsson  <jas@extundo.com>
658
659         * gc-random.m4: Permit 'no' as variable values and fix warnings,
660         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
661
662 2006-03-08  Simon Josefsson  <jas@extundo.com>
663
664         * gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
665         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
666
667 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
668
669         * unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
670         Problem reported by Juan Manuel Guerrero.
671
672 2006-03-07  Simon Josefsson  <jas@extundo.com>
673
674         * unistd_h.m4: New file.
675
676 2006-03-07  Simon Josefsson  <jas@extundo.com>
677
678         * readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
679         test to be side-effect free by storing the result in the cache
680         variable gl_cv_lib_readline, and moving the assignment of
681         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
682         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
683
684 2006-03-07  Simon Josefsson  <jas@extundo.com>
685
686         * gc-random.m4: New file, mostly from gc.m4.  Warn instead of
687         error on missing devices (the functions will return an error).
688
689         * gc.m4: Move random stuff to gc-random.m4
690
691 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
692
693         * poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
694         our replacement poll.h in any case, to avoid a differing
695         declaration from a system header.  Seen on AIX.
696
697 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
698
699         * clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
700         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
701         pedantically.
702         * nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
703         * timespec.m4 (gl_TIMESPEC): Likewise.
704
705         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
706         not "==".  Reported by Ralf Wildenhues.
707
708 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
709
710         Sync from coreutils.
711         * mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
712         gl_CHDIR_SAFER.
713
714 2006-02-22  Jim Meyering  <jim@meyering.net>
715
716         Sync from coreutils.
717         * chdir-safer.m4: New file.
718
719 2006-02-17  Eric Blake  <address@hidden>
720
721         * getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
722
723 2006-02-15  Eric Blake  <ebb9@byu.net>
724
725         * sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
726         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
727         'present but cannot compile' warnings on cygwin.
728         * socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
729         use ws2tcpip.h if sys/socket.h works.
730         * getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
731         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
732
733 2006-02-14  Jim Meyering  <jim@meyering.net>
734
735         Sync from coreutils.
736         * ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke AC_CHECK_FUNCS(getmntent)
737         unconditionally so that tests of $ac_cv_func_getmntent (e.g., in
738         gl_LIST_MOUNTED_FILE_SYSTEMS) need not double-quote uses of that
739         variable, to accommodate the rare case in which getmntent is
740         available in none of the libraries checked.  This happens at
741         least on FreeBSD 5.0.
742
743 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
744
745         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
746         __EXTENSIONS__ if this causes compilation to fail.  Problem
747         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
748         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
749
750 2006-01-25  Simon Josefsson  <jas@extundo.com>
751
752         * getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
753         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
754         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
755
756 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
757
758         * stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
759         so that we test the test.
760         Check for yet another HP-UX cc bug involving *bool |= bool.
761
762 2006-01-24  Bruno Haible  <bruno@clisp.org>
763
764         * stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
765         Patch by Paul Eggert.
766
767 2006-01-24  Jim Meyering  <jim@meyering.net>
768
769         * openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
770         Reported by Mark D. Baushke.
771
772 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
773
774         * getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
775
776 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
777
778         * lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
779         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
780         Suggested by Bruno Haible.
781
782 2006-01-19  Simon Josefsson  <jas@extundo.com>
783
784         * socklen.m4: Look in ws2tcpip.h too, for mingw32.
785
786 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
787
788         * lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
789         it's not portable and it doesn't work with cross-compiles.
790         Problem reported by Bruno Haible.  Fix missing-$ typo in
791         'test "gl_cv_ignore_unused_libraries" ...' that prevented
792         -zignore from being used with Sun's C compiler.
793
794 2006-01-12  Bruno Haible  <bruno@clisp.org>
795
796         * ldd.m4: New file.
797
798 2006-01-08  Bruno Haible  <bruno@clisp.org>
799
800         Ensure automatic ordering between gl_LOCK and gl_ARGP.
801         * lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
802         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
803
804 2006-01-10  Jim Meyering  <jim@meyering.net>
805
806         * fpending.m4: Also include <stdio.h>, for Dragonfly.
807         Patch by Joerg Sonnenberger.
808
809 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
810
811         * memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
812         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
813         People who are still concerned with buggy memcmp implementations
814         can invoke gl_FUNC_MEMCMP themselves.
815
816 2006-01-10  Simon Josefsson  <jas@extundo.com>
817
818         * sys_socket_h.m4: New file.
819
820 2006-01-10  Bruno Haible  <bruno@clisp.org>
821
822         * localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
823         Reported by Werner Lemberg <wl@gnu.org>.
824
825 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
826
827         Sync from coreutils.
828         * lib-ignore.m4: New file.
829         * lchmod.m4: New file.
830
831 2006-01-09  Jim Meyering  <jim@meyering.net>
832
833         Sync from coreutils.
834         * openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
835         Require openat-priv.h.
836
837 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
838
839         Sync from coreutils.
840         * acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
841
842 2005-10-16  Bruno Haible  <bruno@clisp.org>
843
844         * stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
845
846 2005-12-16  Jim Meyering  <jim@meyering.net>
847
848         * fprintftime.m4: New file.
849
850 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
851
852         * argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
853         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
854
855 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
856
857         * argp.m4:  Check if program_invocation_name and
858         program_invocation_short_name are declared and define appropriate
859         macros if they are not.
860
861 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
862
863         * stat-time.m4 (gl_STAT_TIME): Add check for
864         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
865         porting problem reported by Georg Schwarz in
866         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
867
868 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
869
870         * socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
871         Use implementation from Albert Chin, with some
872         comments/corrections by Stepan Kasal and myself.
873
874 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
875
876         * regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
877         statement, to work around an HP-UX 10.20 compiler bug reported by
878         Peter O'Gorman.
879
880 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
881
882         * gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
883         or gettimeofday; no longer needed.
884
885 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
886
887         * chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
888         variables to suggest the intended function of the PATH_MAX check.
889
890 2005-10-30  Kean Johnston  <jkj@sco.com>
891
892         Trivial changes to support SCO systems.
893         * chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
894         as PATH_MAX.
895         * fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
896         where __ptr is null when no I/O is pending.
897
898 2005-10-28  Simon Josefsson  <jas@extundo.com>
899
900         * inet_ntop.m4: More tests.
901
902         * gc-md2.m4, md2.m4: New file.
903
904 2005-10-22  Simon Josefsson  <jas@extundo.com>
905
906         * gc.m4: Don't be fooled by --disable-*random-device parameters,
907         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
908
909 2005-10-21  Simon Josefsson  <jas@extundo.com>
910
911         * gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
912         Bruno Haible <bruno@clisp.org>.
913
914         * gc-des.m4: New file.
915
916 2005-10-21  Simon Josefsson  <jas@extundo.com>
917
918         * arctwo.m4: New file.
919
920         * gc-arctwo.m4: New file.
921
922 2005-10-19  Simon Josefsson  <jas@extundo.com>
923
924         * gc-arcfour.m4: New file.
925
926         * gc-rijndael.m4: New file.
927
928 2005-10-19  Simon Josefsson  <jas@extundo.com>
929
930         * m4/gc-hmac-md5.m4, m4/gc-hmac-sha1.m4, m4/gc-md4.m4,
931         m4/gc-md5.m4, m4/gc-sha1.m4: Fix typo, suggested by Stepan Kasal
932         <kasal@ucw.cz>.
933
934 2005-10-19  Simon Josefsson  <jas@extundo.com>
935
936         * gc-md4.m4: New file.
937
938 2005-10-18  Simon Josefsson  <jas@extundo.com>
939
940         * md4.m4: New file.
941
942 2005-10-17  Bruno Haible  <bruno@clisp.org>
943
944         * stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so that
945         it can also be used in a test.
946
947 2005-10-11  Simon Josefsson  <jas@extundo.com>
948
949         * md5.m4: Remove call to uint32_t.m4.
950
951 2005-10-15  Simon Josefsson  <jas@extundo.com>
952
953         * rijndael.m4: New file.
954
955 2005-10-14  Simon Josefsson  <jas@extundo.com>
956
957         * arcfour.m4: New file.
958
959 2005-10-12  Bruno Haible  <bruno@clisp.org>
960
961         * stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
962         Reported by Stepan Kasal <kasal@ucw.cz>.
963
964 2005-10-12  Simon Josefsson  <jas@extundo.com>
965
966         * gc-pbkdf2-sha1.m4: New file.
967
968         * gc-hmac-sha1.m4: New file.
969
970         * gc-sha1: New file.
971
972         * hmac-sha1.m4: New file.
973
974 2005-10-12  Simon Josefsson  <jas@extundo.com>
975
976         * gc-md5.m4, gc-hmac-md5: New files.
977
978         * gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
979
980 2005-10-11  Simon Josefsson  <jas@extundo.com>
981
982         * crc.m4: New file.
983
984 2005-10-07  Simon Josefsson  <jas@extundo.com>
985
986         * memxor.m4: Remove gl_C_RESTRICT call.
987
988 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
989
990         * stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
991         promotes to int, not unsigned int, to catch the AIX 5.3
992         compiler bug.
993
994 2005-10-06  Simon Josefsson  <jas@extundo.com>
995
996         * hmac-md5.m4: New file.
997
998         * memxor.m4: Require gl_C_RESTRICT.
999
1000 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1001
1002         * getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
1003         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
1004         needed, since the source code now assumes these .h files.
1005
1006 2005-10-05  Simon Josefsson  <jas@extundo.com>
1007
1008         * memxor.m4: New file.
1009
1010 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
1011
1012         Sync from coreutils.
1013         * openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
1014         * ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
1015         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
1016         ULLONG_MAX doesn't work with 2.7.2.1.
1017
1018 2005-10-02  Jim Meyering  <jim@meyering.net>
1019
1020         Sync from coreutils.
1021         * utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
1022         from glibc-2.2.5 that fails for read-only files.
1023
1024 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
1025
1026         Sync from coreutils.
1027         * chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
1028         against `yes', rather than just testing for nonempty.
1029
1030 2005-10-01  Simon Josefsson  <jas@extundo.com>
1031
1032         * getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
1033         and Darwin.
1034
1035         * getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
1036         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
1037         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
1038         freeaddrinfo and gai_strerror are declared by the POSIX headers.
1039         Check if struct addrinfo is declared.
1040
1041 2005-10-01  Jim Meyering  <jim@meyering.net>
1042
1043         Sync from coreutils.
1044
1045         * getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
1046         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
1047         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
1048         * getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
1049         in the inet and nsl libraries.  Required on Solaris 5.7.
1050
1051 2005-09-24  Jim Meyering  <jim@meyering.net>
1052
1053         Sync from coreutils.
1054         * getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
1055         in the inet and nsl libraries.  Required on Solaris 5.7.
1056
1057 2005-09-26  Bruno Haible  <bruno@clisp.org>
1058
1059         * mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't compile
1060         mbchar.c if they are not both present.
1061         * mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
1062         * mbiter.m4 (gl_MBITER): Likewise.
1063         * strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
1064         * strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
1065         * strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
1066
1067 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1068
1069         * regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
1070         and similarly for the other external symbols.  Problem reported
1071         by James Gallager.
1072
1073         * fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
1074         bug reported by Jim Meyering.
1075
1076         * utimens.m4 (gl_UTIMENS): Check for futimesat.
1077         * getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
1078         not needed, since socklen is a prerequisite module.
1079
1080 2005-09-23  Jim Meyering  <jim@meyering.net>
1081
1082         Sync from coreutils.
1083         Correct build failure (socklen_t not defined) on at least
1084         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
1085         * getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
1086
1087 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1088
1089         Sync from coreutils.
1090         * getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
1091
1092 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1093
1094         Sync from coreutils.
1095
1096         * backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
1097         * fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
1098         * getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
1099         * mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
1100         * physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
1101         * save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
1102         * userspec.m4, xgetcwd.m4, xreadlink.m4:
1103         Don't bother checking for string.h, stdlib.h, unistd.h.
1104         * fts.m4 (gl_FUNC_FTS_CORE): Don't require
1105         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
1106         module's job.
1107         * jm-macros.m4 (gl_MACROS): Likewise.
1108         * prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
1109
1110         * getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
1111         (gl_GETDATE): Use it.
1112
1113         * mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
1114
1115 2005-09-22  Jim Meyering  <jim@meyering.net>
1116
1117         Sync from coreutils.
1118
1119         * lstat.m4 (gl_FUNC_LSTAT):
1120         Use AC_LIBSOURCES to require lstat.c and lstat.h.
1121         Remove obsolete comment.
1122         * xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
1123         * xstrtod.m4: Likewise.
1124
1125         * openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
1126
1127 2005-09-19  Simon Josefsson  <jas@extundo.com>
1128
1129         * socklen.m4: Fix typo.
1130
1131 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
1132
1133         * st_mtim.m4: Remove.  Superseded by...
1134         * stat-time.m4: New file.
1135         * timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
1136         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
1137
1138 2005-09-15  Derek Price  <derek@ximbiot.com>
1139
1140         * strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
1141
1142 2005-09-12  Derek Price  <derek@ximbiot.com>
1143
1144         Make canon-host require getaddrinfo.
1145         * canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
1146         AC_LIBSOURCE canon-host.h.  Call...
1147         (gl_PREREQ_CANON_HOST): ...this new function, which requires
1148         gl_GETADDRINFO.
1149         * getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
1150
1151 2005-09-12  Derek Price  <derek@ximbiot.com>
1152             Paul Eggert  <eggert@cs.ucla.edu>
1153
1154         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
1155         glob_.h, glob-libc.h.
1156         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
1157
1158 2005-08-31  Simon Josefsson  <jas@extundo.com>
1159
1160         * socklen.m4: New file.
1161
1162 2005-09-03  Derek Price  <derek@ximbiot.com>
1163
1164         * getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
1165         From Larry Jones <lawrence.jones@ugs.com>.
1166
1167 2005-08-27  Bruno Haible  <bruno@clisp.org>
1168
1169         Support for lib vs. lib64 distinction on biarch platforms.
1170         * lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
1171         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
1172         * lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
1173
1174 2005-09-01  Jim Meyering  <jim@meyering.net>
1175
1176         * lchown.m4: Require gl_FUNC_CHOWN, for the definition of
1177         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
1178         Require gl_STAT_MACROS, too.
1179
1180 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
1181
1182         * regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
1183         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
1184         and large-file glibc and in 32-bit large-file Solaris.
1185
1186 2005-08-28  Bruno Haible  <bruno@clisp.org>
1187
1188         * gnulib-tool.m4: New file.
1189
1190 2005-08-27  Jim Meyering  <jim@meyering.net>
1191
1192         * stdlib-safer.m4: New file.  From coreutils.
1193         * stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
1194         * fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
1195         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
1196         * unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
1197         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
1198
1199 2005-08-24  Simon Josefsson  <jas@extundo.com>
1200
1201         * getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
1202         __fsetlocking.
1203
1204 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
1205
1206         * regex.m4: Add AC_PREREQ(2.50).
1207         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
1208
1209 2005-08-25  Bruno Haible  <bruno@clisp.org>
1210
1211         * minmax.m4: Require autoconf 2.52.
1212         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
1213         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
1214         alternatives of translit over the alphabet.
1215         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
1216
1217 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1218
1219         * regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
1220         for GNU regex features.
1221
1222 2005-08-24  Jim Meyering  <jim@meyering.net>
1223
1224         Sync from coreutils.
1225         * fcntl-safer.m4: New file.
1226
1227         * xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
1228         and object files for this module.
1229
1230 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1231
1232         * regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
1233         All contents moved to gl_REGEX.
1234         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
1235         assume that it does.
1236
1237 2005-08-20  Bruno Haible  <bruno@clisp.org>
1238
1239         * regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
1240
1241 2005-08-17  Bruno Haible  <bruno@clisp.org>
1242
1243         * strcasestr.m4: New file.
1244
1245 2005-08-17  Bruno Haible  <bruno@clisp.org>
1246
1247         * strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
1248         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
1249
1250 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
1251
1252         * getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
1253         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
1254         and gl_GETOPT are both invoked via different paths (as happens
1255         with GNU tar CVS because it uses both argp and getopt), the former
1256         wins.
1257
1258 2005-08-16  Bruno Haible  <bruno@clisp.org>
1259
1260         * strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function always.
1261         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
1262
1263 2005-08-16  Bruno Haible  <bruno@clisp.org>
1264
1265         * mbfile.m4: New file.
1266
1267 2005-08-16  Bruno Haible  <bruno@clisp.org>
1268
1269         * mbiter.m4: New file.
1270
1271 2005-08-16  Bruno Haible  <bruno@clisp.org>
1272
1273         * mbchar.m4: New file.
1274
1275 2005-08-16  Bruno Haible  <bruno@clisp.org>
1276
1277         * tls.m4: New file, from GNU gettext.
1278
1279 2005-08-12  Bruno Haible  <bruno@clisp.org>
1280
1281         * readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
1282
1283 2005-08-12  Simon Josefsson  <jas@extundo.com>
1284
1285         * readline.m4: Look for termcap, curses or ncurses if required.
1286
1287 2005-08-11  Simon Josefsson  <jas@extundo.com>
1288
1289         * readline.m4: New file.
1290
1291 2005-08-10  Simon Josefsson  <jas@extundo.com>
1292
1293         * strnlen.m4: New file.
1294
1295         * strndup.m4: Don't check for strnlen declaration, done in
1296         strnlen.m4.
1297
1298 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
1299
1300         * onceonly_2_57.m4: Really require Autoconf 2.57.
1301
1302 2005-08-02  Simon Josefsson  <jas@extundo.com>
1303
1304         * getline.m4: Separate out getdelim stuff into separate module.
1305
1306         * getdelim.m4: New file.
1307
1308 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1309
1310         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
1311         normal way.
1312         * getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
1313         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
1314         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
1315         (gl_GETOPT): Use the new macros.  Most of the implementation
1316         is moved to the new macros.  This is for programs like Emacs
1317         that don't want all the functionality of gl_GETOPT.
1318
1319 2005-07-26  Bruno Haible  <bruno@clisp.org>
1320
1321         * lock.m4: Update from GNU gettext.
1322
1323 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1324
1325         * regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
1326         obsolescent AC_TRY_RUN.  Include the default includes files, for 'exit'.
1327
1328 2005-07-24  Bruno Haible  <bruno@clisp.org>
1329
1330         * visibility.m4: New file.
1331
1332 2005-07-18  Bruno Haible  <bruno@clisp.org>
1333
1334         * lock.m4: New file, from GNU gettext.
1335
1336 2005-06-01  Bruno Haible  <bruno@clisp.org>
1337
1338         * poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
1339         When using lib/poll.c, define poll as rpl_poll.
1340
1341 2005-07-14  Bruno Haible  <bruno@clisp.org>
1342
1343         * argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
1344         Instead, test for *_unlocked function declarations directly.
1345
1346 2005-07-14  Derek Price  <derek@ximbiot.com>
1347
1348         * glob.m4 (gl_GLOB): Cache glob interface check result.  Add check for
1349         glob symlink bug.
1350
1351 2005-07-10  Bruno Haible  <bruno@clisp.org>
1352
1353         * size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
1354         Needed when size_t is smaller than 'unsigned int'.
1355         Reported by Paul Eggert.
1356
1357 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
1358
1359         * backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on pathconf.
1360         * same.m4 (gl_SAME): Likewise.
1361         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
1362
1363         * regex.m4: Adjust to new libc regex implementation.
1364         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
1365         all the .c and .h parts of (the new) regex.
1366         Quote the m4 stuff better.
1367         Check for RE_ICASE bug of old gnulib.
1368         Check for REG_STARTEND of recent libc.
1369         Rename local variables from jm_* to gl_*.
1370         Quote operand of "test -f".
1371         Say "recent enough" version of libc, not "version 2".
1372         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
1373         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
1374         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
1375         Remove check for btowc, isascii.
1376         Require AM_LANGINFO_CODESET.
1377
1378 2005-07-05  Bruno Haible  <bruno@clisp.org>
1379
1380         * mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
1381         autoconf CVS. Needed for mingw.
1382
1383 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1384
1385         Remove the dependency of the strftime module on the tzset module.
1386         * strftime.m4 (gl_FUNC_STRFTIME): Don't require gl_FUNC_TZSET_CLOBBER.
1387
1388 2005-07-02  Jim Meyering  <jim@meyering.net>
1389
1390         * chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
1391         * getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
1392         * pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
1393         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
1394
1395 2005-06-28  Simon Josefsson  <jas@extundo.com>
1396
1397         * check-version.m4: New file, suggested by Jim Meyering
1398         <jim@meyering.net>.
1399
1400 2005-06-24  Derek Price  <derek@ximbiot.com>
1401         and Bruno Haible  <bruno@clisp.org>
1402
1403         Remove stat module & update lstat.
1404         * lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
1405         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1406         * stat.m4: Remove this file.
1407
1408 2005-06-20  Derek Price  <derek@ximbiot.com>
1409
1410         * bison.m4: Note that precious decls of YACC & YFLAGS will be
1411         unnecessary for Autoconfs > 2.59c.
1412
1413 2005-06-16  Derek Price  <derek@ximbiot.com>
1414
1415         * bison.m4: Declare YACC & YFLAGS precious.
1416
1417 2005-06-08  Bruno Haible  <bruno@clisp.org>
1418
1419         * csharpcomp.m4: New file, from GNU gettext.
1420
1421 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1422
1423         Sync from coreutils.
1424         * mkdir-p.m4: Renamed from makepath.m4.
1425         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
1426         Rename files from makepath.c to mkdir-p.c, and from
1427         makepath.h to mkdir-p.h.
1428         * filenamecat.m4: Renamed from path-concat.m4.
1429         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
1430         Rename files from path-concat.c to filenamecat.c,
1431         and from path-concat.h to filenamecat.h.
1432         * getcwd-path-max.m4: Don't use "path" or "filename" to mean
1433         "file name" in local variables or comments.
1434         * rename.m4: Likewise.
1435
1436 2005-06-01  Bruno Haible  <bruno@clisp.org>
1437
1438         * csharp.m4: New file, from GNU gettext.
1439         * csharpexec.m4: New file, from GNU gettext.
1440
1441 2005-05-31  Derek Price  <derek@ximbiot.com>
1442             Paul Eggert  <eggert@cs.ucla.edu>
1443
1444         Sync from cvs.
1445         * glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
1446
1447 2005-05-29  Derek Price  <derek@ximbiot.com>
1448             Paul Eggert  <eggert@cs.ucla.edu>
1449
1450         * glob.m4: New file.
1451
1452 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1453
1454         * fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
1455         and don't require gt_INTTYPES_PRI.
1456
1457 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
1458
1459         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
1460         _POSIX_PTHREAD_SEMANTICS for Solaris.
1461
1462 2005-05-25  Derek Price  <derek@ximbiot.com>
1463             Paul Eggert  <eggert@cs.ucla.edu>
1464
1465         * getlogin_r.m4: New files.
1466
1467 2005-05-22  Bruno Haible  <bruno@clisp.org>
1468
1469         * minmax.m4: New file.
1470         Based on a patch by Derek Price <derek@ximbiot.com>.
1471
1472 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1473
1474         * fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
1475         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
1476
1477 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
1478
1479         * chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
1480         of -1.
1481
1482 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1483
1484         * canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
1485         Don't check for stddef.h.
1486         * fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
1487         don't use its results.
1488         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
1489         since we include them unconditionally.  Don't require
1490         AM_STDBOOL_H, since stdbool is a prerequisite.
1491         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
1492         since we assume C89 or better.
1493         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
1494         as we don't use their results.
1495         Don't check for fchdir, memmove, memset, strrchr, as we use
1496         them unconditionally.
1497         * gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
1498         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
1499
1500 2005-05-18  Jim Meyering  <jim@meyering.net>
1501
1502         * fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
1503         Reported by Yoann Vandoorselaere.
1504
1505 2005-05-17  Jim Meyering  <jim@meyering.net>
1506
1507         * fts.m4: New file, from coreutils.
1508
1509 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1510
1511         Sync from coreutils.
1512         * unlinkdir.m4: New file.
1513
1514 2005-05-10  Derek Price  <derek@ximbiot.com>
1515
1516         * getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
1517         possible.
1518
1519 2005-05-10  Simon Josefsson  <jas@extundo.com>
1520
1521         * getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
1522         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1523
1524 2005-05-09  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1525             Bruno Haible  <bruno@clisp.org>
1526
1527         * inet_ntop.m4: New file.
1528
1529 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1530
1531         * getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
1532         needless checks.
1533
1534 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
1535
1536         * euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require AC_HEADER_STAT.
1537         * lchown.m4 (gl_FUNC_CHOWN): Likewise.
1538         (gl_PREREQ_CHOWN): Remove.
1539         * lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
1540         it.  Don't require AC_HEADER_STAT.
1541         (gl_PREREQ_LSTAT): Remove.
1542         * mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
1543         Don't require AC_HEADER_STAT.
1544         * rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
1545         (gl_PREREQ_RMDIR): Remove.
1546         * canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
1547         mention stat-macros.h or AC_HEADER_STAT, since we'll make
1548         the stat-macros module a prerequisite.
1549         * file-type.m4 (gl_FILE_TYPE): Likewise.
1550         * filemode.m4 (gl_FILEMODE): Likewise.
1551         * makepath.m4 (gl_MAKEPATH): Likewise.
1552         * modechange.m4 (gl_MODECHANGE): Likewise.
1553         * clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
1554         variable names.
1555         * rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
1556         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
1557         variable prefixes.
1558         * fcntl-safer.m4: Remove.
1559         * stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
1560         * unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
1561         Invoke gl_PREREQ_FD_SAFER.
1562         (gl_PREREQ_FD_SAFER): New macro.
1563         * nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
1564         * readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
1565         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
1566         Remove duplicate call to AC_LIBOBJ(readutmp).
1567         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
1568
1569         * mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
1570         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
1571
1572 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
1573
1574         * byteswap.m4: New file.
1575
1576 2005-04-25  karl
1577
1578         * gettext.m4: Update from GNU gettext 0.14.4.
1579
1580 2005-04-15  Simon Josefsson  <jas@extundo.com>
1581
1582         * getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
1583
1584 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
1585
1586         * getcwd-path-max.m4: Return success on systems such as Cygwin
1587         where no absolute path name can be longer than PATH_MAX.
1588
1589 2005-03-22  Jim Meyering  <jim@meyering.net>
1590
1591         * stat-macros.m4 (gl_STAT_MACROS): New file/macro.
1592
1593 2005-03-21  Jim Meyering  <jim@meyering.net>
1594         and  Paul Eggert  <eggert@cs.ucla.edu>
1595
1596         * acl.m4, backupfile.m4, c-strtod.m4, canon-host.m4, canonicalize.m4,
1597         cloexec.m4, closeout.m4, dirfd.m4, dirname.m4, exclude.m4,
1598         exitfail.m4, file-type.m4, filemode.m4, fpending.m4, fsusage.m4,
1599         getcwd.m4, getdate.m4, getline.m4, getpagesize.m4, getpass.m4,
1600         getugroups.m4, group-member.m4, hard-locale.m4, hash.m4, human.m4,
1601         idcache.m4, inttostr.m4, long-options.m4, makepath.m4, md5.m4,
1602         memcasecmp.m4, memcoll.m4, modechange.m4, mountlist.m4, nanosleep.m4,
1603         path-concat.m4, pathmax.m4, physmem.m4, posixtm.m4, posixver.m4,
1604         quote.m4, quotearg.m4, readtokens.m4, readutmp.m4, safe-read.m4,
1605         safe-write.m4, same.m4, savedir.m4, settime.m4, sha1.m4, sig2str.m4,
1606         strdup.m4, strftime.m4, strndup.m4, strverscmp.m4, timespec.m4,
1607         unlocked-io.m4, userspec.m4, utimecmp.m4, utimens.m4, xalloc.m4,
1608         xnanosleep.m4, xstrtol.m4, yesno.m4:
1609         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
1610         for these modules.
1611
1612 2005-03-21  Jim Meyering  <jim@meyering.net>
1613
1614         * chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
1615         * memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
1616
1617 2005-03-16  Bruno Haible  <bruno@clisp.org>
1618
1619         * stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
1620         HAVE_LONGLONG_64BIT.
1621
1622 2005-03-14  Bruno Haible  <bruno@clisp.org>
1623
1624         * lib-link.m4, gettext.m4, nls.m4, po.m4:
1625         Update from GNU gettext 0.14.3.
1626
1627 2005-03-10  Jim Meyering  <jim@meyering.net>
1628
1629         * save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
1630
1631 2005-03-07  Bruno Haible  <bruno@clisp.org>
1632
1633         * mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
1634
1635 2005-03-03  Bruno Haible  <bruno@clisp.org>
1636
1637         * inttypes.m4, isc-posix.m4, once-only.m4:
1638         Use an all-permissive copyright notice, recommended by RMS.
1639
1640 2005-03-03  Derek R. Price  <derek@ximbiot.com>
1641
1642         * mmap-anon.m4: New file.
1643         * pagealign_alloc.m4: New file.
1644
1645 2005-01-28  Bruno Haible  <bruno@clisp.org>
1646
1647         * stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because of
1648         AIX, the replacement has to be done only after <string.h> is included,
1649         therefore not in config.h. stpncpy.h does the replacement, and
1650         stpncpy.c uses it.
1651
1652 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
1653
1654         * xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
1655         to detect nanosleep bug.
1656
1657 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1658
1659         * gethrxtime.m4, xnanosleep.m4: New files.
1660         * gettime.m4 (gl_GETTIME): Check for nanotime.
1661
1662 2005-02-24  Bruno Haible  <bruno@clisp.org>
1663
1664         * gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
1665         * lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
1666         * progtest.m4:
1667         Update from GNU gettext 0.14.2.
1668         * glibc2.m4: New file, from GNU gettext 0.14.2.
1669
1670 2005-02-22  Simon Josefsson  <jas@extundo.com>
1671
1672         * iconvme.m4: New file.
1673
1674 2005-02-23  Jim Meyering  <jim@meyering.net>
1675
1676         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's change.
1677         Thanks to Bruno Haible for catching it.
1678
1679 2005-02-22  Jim Meyering  <jim@meyering.net>
1680
1681         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo: s/ifndef/ifdef/.
1682
1683 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1684
1685         * memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
1686
1687 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1688
1689         Sync from coreutils.
1690         * getloadavg.m4, glibc.m4, search-libs.m4: Remove.
1691
1692         Remove files that are specific to coreutils.
1693         * check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
1694
1695 2005-01-28  Bruno Haible  <bruno@clisp.org>
1696
1697         * javacomp.m4: New file, from GNU gettext.
1698
1699 2005-01-26  Bruno Haible  <bruno@clisp.org>
1700
1701         * javaexec.m4: New file, from GNU gettext.
1702
1703 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
1704
1705         * sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
1706         must be defined if the header file was not found, in order
1707         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
1708
1709 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1710
1711         * acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
1712         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
1713         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
1714         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
1715         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
1716         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
1717         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
1718         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
1719         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
1720         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
1721         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
1722         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
1723         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
1724         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
1725         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
1726         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
1727         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
1728         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
1729         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
1730         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
1731         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
1732         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
1733         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
1734         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
1735         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
1736         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
1737         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
1738         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
1739         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
1740         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
1741         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
1742         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
1743         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
1744         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
1745         xstrtol.m4, xstrtoumax.m4, yesno.m4:
1746         Use an all-permissive copyright notice, recommended by RMS.
1747
1748 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
1749
1750         * save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume it.
1751
1752 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1753
1754         Merge from coreutils.
1755         * ullong_max.m4: New file.
1756         * jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
1757         (gl_MACROS): Assume localeconv exists.
1758
1759 2005-01-18  Jim Meyering  <jim@meyering.net>
1760
1761         Merge from coreutils.
1762         * chdir-long.m4, openat.m4: New files.
1763         * save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
1764         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
1765         * chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
1766         is sane and DOES follow symlinks.  Besides, testing 20 different
1767         systems found no broken chown implementations.
1768         Prompted by a change in rsync's copy of this macro.
1769         * jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
1770
1771         * lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
1772
1773         * utimes.m4: Work around tests/touch/empty-file failure on a system
1774         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
1775         NULL-means-set-to-current-time semantics.
1776         Remove temporary file immediately, rather than waiting
1777         for configure's at-exit trap code to do it.
1778
1779 2005-01-18  Bruno Haible  <bruno@clisp.org>
1780
1781         * allocsa.m4, codeset.m4, copy-file.m4, eaccess.m4, eealloc.m4:
1782         * eoverflow.m4, execute.m4, fatal-signal.m4, findprog.m4, glibc21.m4:
1783         * iconv.m4, intmax_t.m4, inttypes_h.m4, lib-ld.m4, lib-link.m4:
1784         * lib-prefix.m4, linebreak.m4, localcharset.m4, longdouble.m4:
1785         * longlong.m4, mbrtowc.m4, mbstate_t.m4, mbswidth.m4, mkdtemp.m4:
1786         * pipe.m4, readlink.m4, safe-read.m4, safe-write.m4, setenv.m4:
1787         * sig_atomic_t.m4, signalblocking.m4, signed.m4, size_max.m4:
1788         * ssize_t.m4, stdbool.m4, stdint_h.m4, stpcpy.m4, stpncpy.m4:
1789         * strcase.m4, strcspn.m4, strpbrk.m4, strstr.m4, ucs4-utf.m4:
1790         * uintmax_t.m4, ulonglong.m4, unicodeio.m4, utf-ucs4.m4, vasnprintf.m4:
1791         * vasprintf.m4, wait-process.m4, wchar_t.m4, wint_t.m4, xsize.m4:
1792         Use an all-permissive copyright notice, recommended by RMS.
1793
1794 2005-01-06  Bruno Haible  <bruno@clisp.org>
1795
1796         * stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
1797
1798 2005-01-04  Jim Meyering  <jim@meyering.net>
1799
1800         Changes imported from coreutils.
1801         * mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
1802         as the mkstemp template, use a temporary directory and an
1803         8.3-friendly template to avoid trouble on systems like DJGPP.
1804         Reported by Juan M. Guerrero via Stepan Kasal.
1805         * (gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of close.
1806         Remove the temporary directory right away, rather than waiting
1807         for configure's at-exit trap code to do it.
1808         Suggestion from Stepan Kasal.
1809
1810 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1811
1812         * c-strtod.m4 (gl_C99_STRTOLD): New macro.
1813         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
1814
1815 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1816
1817         * getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
1818
1819 2004-12-18  Bruno Haible  <bruno@clisp.org>
1820
1821         * fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
1822
1823 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1824
1825         * ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
1826         spurious "-l"s.  Problem reported by Stepan Kasal.
1827
1828 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
1829
1830         * ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
1831         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
1832
1833 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1834
1835         Changes imported from coreutils.
1836         * hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
1837         exist.
1838         * human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
1839
1840 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
1841
1842         * getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1843         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
1844
1845         * readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
1846
1847 2004-11-30  Simon Josefsson  <jas@extundo.com>
1848
1849         * base64.m4: New file.
1850
1851 2004-11-30  Simon Josefsson  <jas@extundo.com>
1852
1853         * restrict.m4: Add copyright and copying conditions.
1854
1855 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1856
1857         * getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
1858         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
1859         Use the _ONCE methods, for efficiency.
1860         Check for fcntl.h.  In test program, include <errno.h>
1861         and <fcntl.h> if available.  Remove old K&R cruft from
1862         test program.  Check for common errors in GNU/Linux,
1863         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
1864         don't do AC_LIBOBJ, as that's getcwd.m4's job.
1865         * getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
1866         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
1867         name accordingly.
1868         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
1869         accommodate new getcwd.c.
1870         * jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
1871         * prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
1872         * xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
1873         that's all we need now.
1874
1875 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
1876
1877         * utimens.m4 (gl_UTIMENS): Check for futimes function.
1878
1879 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
1880
1881         * argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
1882         argp-parse.c depends on getopt internals, that means we should
1883         always use our getopt, to be on the safe side.
1884         * getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
1885         order not to spoil the result of an eventual previous invocation
1886         of gl_GETOPT_SUBSTITUTE.
1887
1888 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1889
1890         * calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc implementations
1891         that mishandle size_t overflow.
1892
1893 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
1894
1895         * canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
1896
1897 2004-11-13  Jim Meyering  <jim@meyering.net>
1898
1899         * jm-macros.m4: Do require gl_FUNC_FPENDING.
1900
1901 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1902
1903         * getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
1904         of replacing opterr, getopt, etc.  This should handle the
1905         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
1906
1907 2004-11-11  Simon Josefsson  <jas@extundo.com>
1908
1909         * strtok_r.m4: New file.
1910
1911         * getopt.m4: Replace opterr.
1912
1913 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
1914
1915         * prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
1916
1917 2004-11-10  Jim Meyering  <jim@meyering.net>
1918
1919         * jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
1920
1921 2004-11-08  Simon Josefsson  <jas@extundo.com>
1922
1923         * getaddrinfo.m4: New file.
1924
1925 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1926
1927         * strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
1928         gl_FUNC_STRFTIME.
1929         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
1930         and AC_REQUIRE when possible, to avoid duplicate checks.
1931         Check for <wchar.h>.
1932
1933 2004-11-09  Bruno Haible  <bruno@clisp.org>
1934
1935         * sockpfaf.m4: New file.
1936
1937 2004-11-03  Albert Chin <china@thewrittenword.com>
1938             Paul Eggert  <eggert@cs.ucla.edu>
1939
1940         * uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
1941         equivalent, substitute $ac_type for equivalent type rather than
1942         blindly using uint32_t *always* which won't work if uint32_t is not
1943         available.  Define _UINT32_T to work around typedef of uint32_t if
1944         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
1945         2.5.1.
1946
1947 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1948
1949         * jm-macros.m4: Sync from coreutils.
1950         (gl_MACROS): Check for mbrlen, for pathchk.
1951         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
1952
1953 2004-11-02  Bruno Haible  <bruno@clisp.org>
1954
1955         * setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
1956         returns void.
1957
1958 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1959
1960         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
1961         fflush_unlocked, flockfile, funlockfile, funlockfile,
1962         fputs_unlocked, putc_unlocked.
1963
1964 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
1965
1966         * getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
1967
1968 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1969
1970         * getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
1971         implementation of getopt_long.  Problem reported by Alexander Taler in:
1972         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
1973
1974 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1975
1976         * vsnprintf.m4: New file.
1977
1978 2004-10-05  Bruno Haible  <bruno@clisp.org>
1979
1980         * strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
1981         for the declaration of strsep.
1982
1983 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1984
1985         * xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
1986
1987         * unlocked-io.m4: Add copyright notice.
1988         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
1989
1990 2004-10-04  Simon Josefsson  <jas@extundo.com>
1991
1992         * memmem.m4: New file.
1993
1994 2004-10-01  Yoann Vandoorselaere <yoann@prelude-ids.org>
1995
1996         * strsep.m4: New file.
1997
1998 2004-09-30  Simon Josefsson  <jas@extundo.com>
1999
2000         * snprintf.m4: New file.
2001
2002 2004-09-09  Bruno Haible  <bruno@clisp.org>
2003
2004         * eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
2005         modifications.
2006         * vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
2007
2008 2004-09-08  Bruno Haible  <bruno@clisp.org>
2009
2010         * stdint.m4: New file, taken from GNU clisp with modifications.
2011
2012 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2013
2014         * userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
2015
2016 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2017
2018         * argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
2019         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
2020         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
2021         Check for program_invocation_name, program_invocation_short_name,
2022         flockfile, funlockfile, features.h, _getopt_long_only_r.
2023
2024 2004-08-12  Simon Josefsson  <jas@extundo.com>
2025
2026         * getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
2027         as discussed with Paul Eggert in threads rooted at
2028         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
2029         and
2030         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
2031         Before, the test was empty, and relied on ELIDE_CODE in source
2032         code.)
2033         (gl_PREREQ_GETOPT): New macro.
2034         (gl_GETOPT): Use them.
2035
2036 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2037
2038         Merge from coreutils.
2039
2040         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
2041
2042         * obstack.m4 (gl_PREREQ_OBSTACK): Require
2043         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
2044
2045 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
2046
2047         * uint32_t.m4, uintptr_t.m4: New files.
2048         * sha1.m4: Renamed from sha.m4.
2049         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
2050
2051 2004-08-08  Simon Josefsson  <jas@extundo.com>
2052
2053         * getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
2054         Check getpass declaration.
2055
2056 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
2057
2058         More merge from coreutils.
2059
2060         * utimens.m4, utimecmp.m4: New files.
2061         * backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
2062         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
2063         prereq.m4, sha.m4: Import changes from coreutils.
2064
2065 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
2066
2067         Merge from coreutils.
2068
2069         * c-strtod.m4, canonicalize.m4, fcntl-safer.m4, getcwd-path-max.m4:
2070         New files.
2071
2072         * dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
2073         FILESYSTEM_PREFIX_LEN ->
2074         FILE_SYSTEM_PREFIX_LEN.
2075         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
2076         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
2077         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
2078         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
2079
2080         * path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
2081         prerequisite modules now handle the DOS stuff.
2082         Don't check for unistd.h.
2083
2084 2004-08-03  Simon Josefsson  <jas@extundo.com>
2085
2086         * strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
2087
2088 2004-08-02  Simon Josefsson  <jas@extundo.com>
2089
2090         * getsubopt.m4: New file.
2091
2092 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
2093
2094         * fatal.m4: Remove, as the "fatal" module wasn't used or working.
2095
2096 2004-07-13  Robert Millan  <robertmh@gnu.org>
2097
2098         * host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
2099
2100 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2101
2102         * argz.m4: New file, which is autoupdated from libtool.
2103
2104 2004-06-01  Jim Meyering  <jim@meyering.net>
2105
2106         * calloc.m4: New file.
2107
2108 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2109
2110         Merge from coreutils CVS.
2111
2112         * backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
2113         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
2114         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
2115         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
2116         xstrtol.m4: Fix copyright date and/or serial number.
2117
2118         * chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
2119         See if we need an fchown replacement.
2120         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
2121         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
2122         and use the replacement function if we detect either defect.
2123
2124         * prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
2125         gl_UTIMECMP.
2126
2127 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2128
2129         * stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
2130         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
2131         Also, fix a typo in a diagnostic.
2132
2133 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
2134
2135         * xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
2136         or AC_FUNC_REALLOC.
2137
2138 2004-05-20  Andreas Schwab  <schwab@suse.de>
2139
2140         * free.m4: Replace free if it not known to work, not the other
2141         way round.
2142
2143 2004-05-17  Derek R. Price  <derek@ximbiot.com>
2144             Paul Eggert  <eggert@cs.ucla.edu>
2145
2146         * argp: Depend on alloca.
2147
2148 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2149
2150         * alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
2151         for backward compatibility with older code.  We need our own
2152         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
2153         it under some other name, and our alloca.h will define it.
2154
2155 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2156
2157         * gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
2158         Check for gettimeofday.
2159         * settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
2160         Check for settimeofday, stime.
2161
2162 2004-04-20  Paul Eggert  <eggert@twinsun.com>
2163
2164         * host-os.m4: Add a copyright notice.
2165
2166 2004-04-20  Jim Meyering  <jim@meyering.net>
2167
2168         Change UTILS_ to gl_ in AC_DEFINE'd names.
2169         Change utils_- and jm_-prefixed variables, too.
2170         * mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
2171         UTILS_FUNC_MKDIR_TRAILING_SLASH.
2172         * mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
2173
2174         * dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
2175         Don't emit trailing blanks.
2176         Also rename jm_-prefixed variables to have gl_ prefix.
2177
2178         * host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
2179         Also rename jm_-prefixed variables to have gl_ prefix.
2180
2181         * jm-macros.m4: Reflect the renamings.
2182         * prereq.m4: Likewise.
2183
2184 2004-04-19  Jim Meyering  <jim@meyering.net>
2185
2186         * readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
2187         now that readutmp.c may call `free (0)'.
2188
2189 2004-04-19  Bruno Haible  <bruno@clisp.org>
2190
2191         * mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
2192         * inttypes_h.m4: Likewise.
2193         * stdint_h.m4: Likewise.
2194         * intmax_t.m4: Likewise.
2195         * uintmax_t.m4: Likewise.
2196
2197 2004-04-18  Jim Meyering  <jim@meyering.net>
2198
2199         * prereq.m4: Don't forbid jm_ prefix.
2200
2201         * afs.m4, allocsa.m4, assert.m4, backupfile.m4, bison.m4:
2202         * check-decl.m4, chown.m4, d-ino.m4, d-type.m4, dirname.m4, dos.m4:
2203         * error.m4, fpending.m4, fstypename.m4, fsusage.m4, ftruncate.m4:
2204         * getdate.m4, getgroups.m4, gettext.m4, glibc21.m4, group-member.m4:
2205         * human.m4, intmax.m4, intmax_t.m4, inttostr.m4, inttypes.m4:
2206         * inttypes_h.m4, jm-macros.m4, jm-winsz1.m4, jm-winsz2.m4, lchown.m4:
2207         * lib-check.m4, link-follow.m4, localcharset.m4, longlong.m4:
2208         * ls-mntd-fs.m4, lstat.m4, makepath.m4, mbrtowc.m4, mbswidth.m4:
2209         * memchr.m4, memcmp.m4, mkdtemp.m4, mkstemp.m4, mountlist.m4:
2210         * nanosleep.m4, path-concat.m4, perl.m4, prereq.m4, putenv.m4:
2211         * quotearg.m4, regex.m4, stat.m4, stdint_h.m4, strftime.m4:
2212         * strtoimax.m4, strtoll.m4, strtoull.m4, strtoumax.m4, timespec.m4:
2213         * uintmax_t.m4, ulonglong.m4, unlink-busy.m4, unlocked-io.m4:
2214         * uptime.m4, utimbuf.m4, utime.m4, utimes-null.m4, vasnprintf.m4:
2215         * xstrtoimax.m4, xstrtol.m4, xstrtoumax.m4:
2216         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
2217
2218 2004-04-16  Jim Meyering  <jim@meyering.net>
2219
2220         * prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
2221         coreutils' stat program.
2222         (gl_PREREQ): Don't require jm_PREREQ_STAT.
2223
2224 2004-03-31  Jim Meyering  <jim@meyering.net>
2225
2226         * prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
2227         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
2228         * xalloc.m4: Likewise.
2229
2230 2004-03-30  Jim Meyering  <jim@meyering.net>
2231
2232         * realloc.m4: Remove file, since now it does no more than
2233         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
2234         the `configure.ac' section of module/realloc.
2235         * malloc.m4: Likewise, but for AC_FUNC_MALLOC.
2236
2237 2004-03-30  Paul Eggert  <eggert@twinsun.com>
2238
2239         Merge from coreutils.
2240
2241         * inttostr.m4: New file.
2242         * getdate.m4 (gl_GETDATE): Remove time-related stuff.
2243         Require AM_STDBOOL_H and gl_TIMESPEC instead.
2244         Require gl_CLOCK_TIME.
2245         * clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
2246
2247 2004-03-30  Jim Meyering  <jim@meyering.net>
2248
2249         Merge from coreutils.
2250
2251         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
2252         * ls-mntd-fs.m4: Test for sys/ucred.h separately, since
2253         on some systems one must include <grp.h> before it.
2254         Reported by Christian Krackowizer.
2255
2256 2004-03-29  Paul Eggert  <eggert@twinsun.com>
2257
2258         * cloexec.m4: New file.
2259
2260 2004-03-18  Paul Eggert  <eggert@twinsun.com>
2261             Bruno Haible  <bruno@clisp.org>
2262
2263         * mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
2264         mbswidth.
2265
2266 2004-03-07  Paul Eggert  <eggert@twinsun.com>
2267
2268         * c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
2269         All uses changed.  Check for sa_sigaction member; this fixes
2270         a bug first reported by Jason Andrade in
2271         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
2272
2273 2004-01-18  Simon Josefsson  <jas@extundo.com>
2274
2275         * strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
2276
2277 2004-02-18  Bruno Haible  <bruno@clisp.org>
2278
2279         * xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
2280         Reported by Derek Robert Price <derek@ximbiot.com>.
2281
2282 2004-02-06  Karl Berry  <karl@gnu.org>
2283
2284         * po.m4: update from gettext 0.14.1.
2285
2286 2004-02-03  Bruno Haible  <bruno@clisp.org>
2287
2288         * pipe.m4: New file, from GNU gettext.
2289
2290 2004-01-27  Bruno Haible  <bruno@clisp.org>
2291
2292         * execute.m4: New file, from GNU gettext.
2293
2294 2003-11-24  Bruno Haible  <bruno@clisp.org>
2295
2296         * allocsa.m4: New file, from GNU gettext.
2297
2298 2003-11-24  Bruno Haible  <bruno@clisp.org>
2299
2300         * eealloc.m4: New file, from GNU gettext.
2301
2302 2004-01-15  Paul Eggert  <eggert@twinsun.com>
2303
2304         Merge from coreutils.
2305
2306         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
2307         * posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
2308         (gl_DEFAULT_POSIX2_VERSION): Move
2309         the documentation from 'configure' into 'config.hin',
2310         so that 'configure --help' isn't burdened by it and
2311         we don't have to worry about its formatting there.
2312         Reword the documentation so that it's more succinct
2313         and can be run together into a single paragraph.
2314         * same.m4 (gl_SAME): Check for pathconf.
2315
2316 2004-01-15  Jim Meyering  <jim@meyering.net>
2317
2318         Merge from coreutils.
2319
2320         * clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
2321         if no library is required.
2322         * jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
2323         * jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
2324         * jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
2325         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
2326         * jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
2327         * lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
2328         value, $ac_cv_search_crypt, if it's "none required".
2329         * posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
2330         * prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
2331         not gl_FUNC_GETLOADAVG.
2332         * prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
2333         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
2334
2335 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
2336
2337         Merge from coreutils.
2338
2339         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
2340         value, $ac_cv_search_nanosleep, if it's "none required".
2341
2342 2003-12-03  Bruno Haible  <bruno@clisp.org>
2343
2344         * gettext.m4: Upgrade from gettext-0.13.
2345         * po.m4: Upgrade from gettext-0.13.
2346         * size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
2347         * intmax.m4: New file, from gettext-0.13.
2348         * printf-posix.m4: New file, from gettext-0.13.
2349
2350 2003-11-25  Bruno Haible  <bruno@clisp.org>
2351
2352         * vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
2353         gt_TYPE_SSIZE_T.
2354
2355 2003-11-17  Bruno Haible  <bruno@clisp.org>
2356
2357         * vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
2358
2359 2003-11-12  Paul Eggert  <eggert@twinsun.com>
2360
2361         * xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
2362         gl_PTRDIFF_MAX.
2363
2364 2003-11-11  Bruno Haible  <bruno@clisp.org>
2365
2366         * size_max.m4: New file.
2367         * ptrdiff_max.m4: New file.
2368         * xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
2369         * xalloc.m4 (gl_PREREQ_XALLOC): New macro.
2370         (gl_XALLOC): Invoke it.
2371
2372 2003-11-04  Bruno Haible  <bruno@clisp.org>
2373
2374         * xsize.m4: New file.
2375
2376 2003-11-03  Bruno Haible  <bruno@clisp.org>
2377
2378         * wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
2379
2380 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2381
2382         * host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
2383         netbsd*-gnu*.  Suggested by Robert Millan.
2384
2385 2003-10-29  Paul Eggert  <eggert@twinsun.com>
2386
2387         * xalloc.m4 (gl_XALLOC): Undo previous change.
2388
2389 2003-10-29  Paul Eggert  <eggert@twinsun.com>
2390
2391         * host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
2392         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
2393         after the 'gnu' in these cases.  This fixes some bugs in the
2394         previous change, and is based on suggestions by Robert Millan.
2395
2396 2003-10-28  Paul Eggert  <eggert@twinsun.com>
2397
2398         * host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
2399         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
2400         NetBSD kernels.  Requested by Richard Stallman.
2401
2402 2003-10-26  Paul Eggert  <eggert@twinsun.com>
2403
2404         * xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
2405         now uses inline.
2406
2407 2003-10-23  Paul Eggert  <eggert@twinsun.com>
2408
2409         * getline.m4 (AM_FUNC_GETLINE):
2410         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
2411         hosts.  Problem reported by Derek Robert Price in
2412         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
2413         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
2414         * getndelim2.m4 (gl_GETNDELIM2): Likewise.
2415
2416 2003-10-20  Bruno Haible  <bruno@clisp.org>
2417
2418         * wait-process.m4: New file.
2419
2420 2003-10-14  Bruno Haible  <bruno@clisp.org>
2421
2422         * sig_atomic_t: New file, from GNU gettext.
2423         * fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
2424
2425 2003-10-12  Paul Eggert  <eggert@twinsun.com>
2426
2427         * xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
2428
2429 2003-10-10  Simon Josefsson  <jas@extundo.com>
2430
2431         * argp.m4: Add AC_C_INLINE.
2432
2433 2003-10-08  Paul Eggert  <eggert@twinsun.com>
2434
2435         * getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
2436
2437 2003-10-06  Bruno Haible  <bruno@clisp.org>
2438
2439         * fatal-signal.m4: New file.
2440         * signalblocking.m4: New file, from GNU gettext.
2441
2442 2003-09-27  Paul Eggert  <eggert@twinsun.com>
2443
2444         * free.m4: New file.
2445
2446 2003-09-26  Bruno Haible  <bruno@clisp.org>
2447
2448         * stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX stpncpy().
2449         Don't define stpncpy through config.h; it's now done through stpncpy.h.
2450
2451 2003-09-25  Simon Josefsson  <jas@extundo.com>
2452             Bruno Haible  <bruno@clisp.org>
2453
2454         * getdomainname.m4: New file.
2455
2456 2003-09-17  Paul Eggert  <eggert@twinsun.com>
2457
2458         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
2459         to avoid spurious warnings like "AC_RUN_IFELSE was called before
2460         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
2461
2462 2003-09-12  Paul Eggert  <eggert@twinsun.com>
2463
2464         * error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
2465
2466         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
2467         and AC_MINIX, too, so that their extensions are available.
2468
2469         * prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
2470         This macro has been superseded by gl_BACKUPFILE.
2471
2472         More patches to assume C89 or better.
2473
2474         * error.m4 (gl_ERROR): Don't check for vprintf.
2475
2476         * check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
2477         unconditionally.
2478         * closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
2479         * gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
2480         Include <string.h>, <stdlib.h> unconditionally.
2481         * lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
2482         * readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
2483         * readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C headers
2484         or for string.h.
2485         * strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
2486         or strtoul.
2487
2488         * mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C headers.
2489         * strdup.m4 (gl_PREREQ_STRDUP): Likewise.
2490         * userspec.m4 (gl_USERSPEC): Likewise.
2491         * xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
2492         * xstrtod.m4 (gl_XSTRTOD): Likewise.
2493         * xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
2494         * strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
2495         memcpy, memset.
2496         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
2497         * strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
2498         * strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h, strtol.
2499         * strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
2500         * userspec.m4 (gl_USERSPEC): Do not check for string.h.
2501         * xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
2502         strtoul.
2503
2504 2003-09-11  Paul Eggert  <eggert@twinsun.com>
2505
2506         More patches to assume C89 or better.
2507         * strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
2508         * strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
2509         string.h, memchr, STDC_HEADERS.
2510
2511 2003-09-10  Bruno Haible  <bruno@clisp.org>
2512
2513         * strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
2514         * strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
2515         * strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
2516         * unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
2517         * setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
2518         <stdlib.h> and <string.h> checks.
2519         * xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
2520         * yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
2521
2522 2003-09-09  Paul Eggert  <eggert@twinsun.com>
2523
2524         More patches to assume C89 or better.
2525         * getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
2526         * getopt.m4 (gl_GETOPT): Don't check for string.h.
2527         * getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
2528         or for string.h.
2529         * getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for stdlib.h.
2530         * group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard C
2531         headers.
2532         * hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
2533         string.h.
2534         * hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
2535         * human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
2536         * idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
2537         or for string.h.
2538         * long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
2539         * makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
2540         C headers.
2541         * md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
2542         memcpy.
2543         * sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
2544         * memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
2545         * memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
2546         * memcoll.m4 (gl_MEMCOLL): Likewise.
2547         * memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
2548         * mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
2549         string.h, free.
2550         * mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
2551         * modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
2552         * mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
2553         C headers, or for string.h.
2554         * obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
2555         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
2556         * path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
2557         headers, memory.h, stdlib.h, string.h, strings.h.
2558         * posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
2559         * posixver.m4 (gl_POSIXVER): Don't check for getenv.
2560         * putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
2561         strchr.
2562         * readtokens.m4 (gl_READTOKENS): Don't check for standard C
2563         headers, memory.h, string.h.
2564         * regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
2565         * rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
2566         free.
2567         * rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C headers.
2568         * same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
2569         * save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
2570         * savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
2571         * strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
2572         * xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
2573
2574 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
2575
2576         * getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
2577         C89 spec.
2578
2579 2003-09-08  Paul Eggert  <eggert@twinsun.com>
2580
2581         Assume C89 or better; remove K&R cruft.
2582         * alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
2583         * backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
2584         string.h, getenv, malloc.
2585         * dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
2586         headers.
2587         * canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
2588         * error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
2589         do not check for strerror.
2590         * exclude.m4: Do not check for stdlib.h, string.h, strings.h.
2591         * exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
2592         * fatal.m4 (gl_FATAL): Do not require STDC headers, and
2593         do not check for doprnt or vprintf.
2594         * fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
2595         * getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
2596
2597 2003-09-06  Paul Eggert  <eggert@twinsun.com>
2598
2599         * time_r.m4: New file.
2600         * mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
2601         * timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime is.
2602         Check for timegm declaration.
2603         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
2604         Do not check for gmtime_r.
2605         Replace mktime if __mktime_internal does not exist and if mktime
2606         hasn't been replaced already.
2607
2608 2003-08-31  Simon Josefsson  <jas@extundo.com>
2609
2610         * timegm.m4: New file.
2611
2612 2003-08-26  Bruno Haible  <bruno@clisp.org>
2613
2614         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
2615         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
2616         followed by '#define fnmatch fnmatch_posix' gives an error.
2617
2618 2003-08-27  Jim Meyering  <jim@meyering.net>
2619
2620         * mkstemp.m4: Require that the system mkstemp be able to create
2621         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
2622         would fail after 32.  Reported by Danny Levinson.  Details here:
2623         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
2624
2625 2003-08-20  Karl Berry  <karl@gnu.org>
2626
2627         * lib-ld.m4: serial 1003 from gettext, no changes besides serial.
2628
2629 2003-08-19  Jim Meyering  <jim@meyering.net>
2630
2631         * lib-ld.m4: Revert yesterday's change, per Bruno's request here:
2632         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
2633
2634 2003-08-19  Bruno Haible  <bruno@clisp.org>
2635
2636         * xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any more.
2637
2638 2003-08-18  Jim Meyering  <jim@meyering.net>
2639
2640         * getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
2641         * lib-ld.m4: Likewise.
2642
2643 2003-08-17  Simon Josefsson  <jas@extundo.com>
2644
2645         * argp.m4: New file.
2646
2647 2003-08-17  Simon Josefsson  <jas@extundo.com>
2648
2649         * xstrndup.m4: New file.
2650
2651 2003-08-16  Jim Meyering  <jim@meyering.net>
2652
2653         * utimes.m4 (gl_FUNC_UTIMES): New file.
2654         * utimes.m4: Removed.
2655         * utimes-null.m4: Renamed from utimes.m4.
2656
2657         * c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
2658         to 1MB, so as not to render systems with no stack size limit (e.g.,
2659         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
2660         Include <unistd.h>.  On some systems,
2661         it is required for the definition of _SC_PAGESIZE.
2662
2663 2003-08-16  Paul Eggert  <eggert@twinsun.com>
2664
2665         Merges from coreutils, etc.
2666         * rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
2667         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
2668         * readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
2669         fixing a typo.
2670         * host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
2671         * hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
2672
2673 2003-08-16  Jim Meyering  <jim@meyering.net>
2674         and Paul Eggert  <eggert@cs.ucla.edu>
2675
2676         Merges from coreutils, etc.
2677
2678         * jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
2679         using the latest version from cvs.  This avoids problems with #line
2680         directives using a vendor (Sun) compiler.
2681         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
2682         Don't set GETGROUPS_LIB here; now it's
2683         done via getgroups.m4's wrapper function.
2684         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
2685         rather than just in sh-util/configure.in, so that the
2686         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
2687         same.
2688         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
2689         AC_FUNC_GETLOADAVG where to find getloadavg.c.
2690         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
2691         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
2692         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
2693         Remove code that is now done by the newly-required macros.
2694         Append $(EXEEXT) to DF_PROG.
2695         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
2696         Do not invoke or require the following here,
2697         since prereq.m4 or some gnulib .m4 now does this for us:
2698         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
2699         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
2700         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
2701         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
2702         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
2703         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
2704         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
2705         AC_FUNC_OBSTACK.
2706         Do not replace the following functions, as this is now the job
2707         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
2708         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
2709         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
2710         atexit getpass, strdup, getpagesize.
2711         Replace 'raise'.
2712         Do not check for the following functions, as this is now the job
2713         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
2714         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
2715         setregid.
2716         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
2717         Check for sys/sysctl.h.
2718         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
2719         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
2720         of checking for ssize_t ourselves.
2721
2722         * prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
2723         Require every macro that gnulib/modules/* suggests for us.
2724         (jm_PREREQ_ADDEXT): New macro.
2725         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
2726         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
2727
2728         * physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
2729         (gl_PHYSMEM): Use it.
2730         Also check for `table' function.
2731         Check for new headers and functions.
2732         Add check for sys/sysmp.h.
2733         With suggestions from Kaveh Ghazi.
2734         Ignore headers that are present but cannot be compiled.  This
2735         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
2736         C 5.4.
2737
2738 2003-08-16  Jim Meyering  <jim@meyering.net>
2739
2740         Merges from coreutils.
2741         * readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
2742         prefix.  Adjust cache variables similarly.  Create 500 rather than
2743         just 300 files, to exercise bug on Darwin6.5, too.
2744         * perl.m4 (jm_PERL): Use $am_missing_run, not undefined $missing_dir.
2745         * jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not AM_SYS_POSIX_TERMIOS.
2746         Reported by mkc@mathdogs.com.
2747         Also change use of $am_cv_sys_posix_termios
2748         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
2749         * getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
2750         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
2751         * fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point in
2752         /proc/mounts until it finds one with matching device number.  This is
2753         unnecessary when the FILE argument *is* a mount point.  No stat call
2754         is necessary in that case.  So, disable the statvfs-testing code on
2755         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
2756         as RedHat bug# 84846.
2757         * c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
2758         to 1MB, so as not to render systems with no stack size limit (e.g.,
2759         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
2760         Include <unistd.h>.  On some systems,
2761         it is required for the definition of _SC_PAGESIZE.
2762
2763 2003-08-15  Jim Meyering  <jim@meyering.net>
2764         and Paul Eggert  <eggert@cs.ucla.edu>
2765
2766         Merges from coreutils, etc.
2767         * strftime.m4 (_jm_STRFTIME_PREREQS):
2768         Require gl_FUNC_TZSET_CLOBBER.
2769         * readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit, ut_exit.e_exit,
2770         ut_exit.ut_termination, and ut_exit.e_termination members.
2771
2772 2003-08-14  Paul Eggert  <eggert@twinsun.com>
2773
2774         Help the merge from coreutils.
2775         * gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
2776         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
2777         * tzset.m4: Use it too.
2778
2779 2003-08-14  Jim Meyering  <jim@meyering.net>
2780
2781         Merge from coreutils.
2782         * tzset.m4: New file.
2783         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the MOUNTED_VMOUNT
2784         test to precede the MOUNTED_GETMNTENT1 tests, since otherwise, AIX 5.1
2785         systems would end up using the latter.  MOUNTED_GETMNTENT1 support
2786         is inadequate on such systems: 1) detecting whether a file system
2787         is remote doesn't work  2) the MOUNTED_VMOUNT code reports the
2788         HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1 code reports
2789         merely /MOUNT_POINT.  Reported by Mike Jetzer.
2790
2791 2003-08-13  Paul Eggert  <eggert@twinsun.com>
2792
2793         * exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
2794         Check for isascii.
2795
2796         * gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
2797         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
2798         Undo previous (whitespace-only) change.
2799
2800 2003-08-12  Paul Eggert  <eggert@twinsun.com>
2801
2802         * gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
2803         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
2804         Normalize leading white space and remove trailing white space.
2805
2806         Merge from coreutils
2807         * euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
2808
2809         * lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
2810         0.12.1.  These files are now being upgraded automatically by
2811         ../config/srclist-update.
2812
2813 2003-08-11  Bruno Haible  <bruno@clisp.org>
2814
2815         * vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
2816
2817 2003-08-09  Paul Eggert  <eggert@twinsun.com>
2818
2819         * regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
2820         apparently Emacs's Unicode mode got confused before my 2003-08-05
2821         checkin.
2822
2823 2003-08-08  Paul Eggert  <eggert@twinsun.com>
2824
2825         * extensions.m4: New file.
2826         * timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
2827         Require gl_USE_SYSTEM_EXTENSIONS.
2828         * unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
2829         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
2830
2831 2003-08-07  Paul Eggert  <eggert@twinsun.com>
2832
2833         * restrict.m4: New file.
2834         * regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
2835
2836 2003-08-07  Bruno Haible  <bruno@clisp.org>
2837
2838         * getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This makes
2839         the module 'getndelim2' compatible with the module 'getline'.
2840
2841 2003-08-05  Paul Eggert  <eggert@twinsun.com>
2842
2843         * regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
2844         byte with "\201" to avoid glitches when editing that source file
2845         with multi-gnome-terminal.
2846
2847 2003-07-31  Bruno Haible  <bruno@clisp.org>
2848
2849         * getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
2850
2851 2003-07-18  Bruno Haible  <bruno@clisp.org>
2852
2853         * getndelim2.m4: New file.
2854         * getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
2855         invoke gl_PREREQ_GETNDELIM2.
2856         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
2857         gl_PREREQ_GETNDELIM2.
2858         * getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
2859         gl_GETNDELIM2.
2860
2861 2003-07-17  Bruno Haible  <bruno@clisp.org>
2862
2863         * Makefile.am.in: Remove file.
2864         * Makefile.am: Remove file.
2865         * Makefile.in: Remove file.
2866
2867 2003-07-17  Bruno Haible  <bruno@clisp.org>
2868
2869         * getnline.m4: New file.
2870
2871 2003-07-14  Simon Josefsson  <jas@extundo.com>
2872
2873         * mempcpy.m4: New file.
2874
2875 2003-07-10  Jim Meyering  <jim@meyering.net>
2876
2877         * clock_time.m4: Remove trailing blank.
2878         * intmax_t.m4: Likewise.
2879
2880 2003-07-01  Paul Eggert  <eggert@twinsun.com>
2881
2882         * xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
2883         xreadlink.c now includes it unconditionally.
2884
2885 2003-07-01  Bruno Haible  <bruno@clisp.org>
2886
2887         * ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>. <sys/types.h>
2888         should be sufficient.
2889         Reported by Paul Eggert.
2890
2891 2003-06-25  Bruno Haible  <bruno@clisp.org>
2892
2893         * readlink.m4: New file.
2894
2895 2003-06-22  Bruno Haible  <bruno@clisp.org>
2896
2897         Portability to mingw32.
2898         * ssize_t.m4: New file, from GNU gettext.
2899         * safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
2900         * xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
2901
2902 2003-06-11  Bruno Haible  <bruno@clisp.org>
2903
2904         * sysexits.m4: New file.
2905
2906 2003-06-10  Simon Josefsson  <jas@extundo.com>
2907
2908         * strchrnul.m4: New file.
2909
2910 2003-06-07  Bruno Haible  <bruno@clisp.org>
2911
2912         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
2913         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
2914         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
2915         directory.
2916         * poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
2917         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
2918         directory.
2919
2920 2003-06-04  Paul Eggert  <eggert@twinsun.com>
2921
2922         * human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
2923         locale.h, localeconv.  This merges changes from coreutils.
2924
2925         * mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
2926         It can be removed after the next Autoconf is released.
2927         * exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
2928         needed.
2929
2930 2003-05-30  Bruno Haible  <bruno@clisp.org>
2931
2932         * gettext.m4: Upgrade to gettext-0.12.1.
2933         * nls.m4: New file, from gettext-0.12.1.
2934         * po.m4: New file, from gettext-0.12.1.
2935         * progtest.m4: Upgrade to gettext-0.12.1.
2936
2937 2003-05-28  Paul Eggert  <eggert@twinsun.com>
2938
2939         Assume the headers required for C89 freestanding compilers.
2940         * backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
2941         * fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
2942         * human.m4 (gl_HUMAN): Likewise.
2943         * pathmax.m4 (gl_PATHMAX): Likewise.
2944         * rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
2945         * userspec.m4 (gl_USERSPEC): Likewise.
2946         * xreadlink.m4 (gl_XREADLINK): Likewise.
2947         * xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
2948         * quote.m4 (gl_QUOTE): Don't check for stddef.h.
2949
2950 2003-05-26  Jim Meyering  <jim@meyering.net>
2951
2952         Merge in a change from coreutils:
2953         * dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
2954         that is guaranteed to be `no'.  Use `no_such_member' to indicate
2955         that condition, rather than `-1' which is slightly misleading.
2956         Change the name of the cache variable to have the gl_ prefix.
2957         Prompted by a patch from Richard Dawe for DJGPP.
2958
2959 2003-05-17  Bruno Haible  <bruno@clisp.org>
2960
2961         * dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an invalid
2962         expansion for AC_EGREP_CPP.
2963         * strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
2964         * strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2965         Suggested by Akim Demaille <akim@epita.fr> in
2966         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
2967
2968 2003-04-21  Paul Eggert  <eggert@twinsun.com>
2969
2970         * error.m4 (gl_ERROR): Do not put under dynamic conditions some
2971         code which expansion is under static control.  Patch imported from
2972         Akim Demaille's patch to Bison; see
2973         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
2974
2975 2003-04-14  Bruno Haible  <bruno@clisp.org>
2976
2977         * error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
2978
2979 2003-04-10  Bruno Haible  <bruno@clisp.org>
2980
2981         * findprog.m4: New file.
2982         * eaccess.m4: New file.
2983
2984 2003-04-04  Bruno Haible  <bruno@clisp.org>
2985
2986         * linebreak.m4: New file.
2987
2988 2003-04-03  Bruno Haible  <bruno@clisp.org>
2989
2990         * utf-ucs4.m4: New file.
2991         * ucs4-utf.m4: New file.
2992
2993 2003-03-30  Bruno Haible  <bruno@clisp.org>
2994
2995         * copy-file.m4 (gl_COPY_FILE): Add check for chown().
2996
2997 2003-03-28  Bruno Haible  <bruno@clisp.org>
2998
2999         * copy-file.m4: New file.
3000
3001 2003-03-18  Bruno Haible  <bruno@clisp.org>
3002
3003         * onceonly.m4: Use m4_defn instead of defn, for better error checking.
3004         * onceonly_2_57.m4: Likewise.
3005
3006 2003-03-17  Bruno Haible  <bruno@clisp.org>
3007
3008         * onceonly.m4: Require autoconf 2.54 or newer.
3009         (m4_quote): Remove macro.
3010         * onceonly_2_57.m4: Require autoconf 2.54 or newer.
3011
3012 2003-03-14  Bruno Haible  <bruno@clisp.org>
3013
3014         * onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
3015         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
3016
3017 2003-03-13  Paul Eggert  <eggert@twinsun.com>
3018
3019         * onceonly.m4 (m4_quote): New macro.
3020         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
3021         Quote AC_FOREACH variable-expansions properly.
3022
3023 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
3024
3025         * poll.m4: New file.
3026
3027 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
3028
3029         * mathl.m4: New file.
3030
3031 2003-02-17  Bruno Haible  <bruno@clisp.org>
3032
3033         * mkdtemp.m4: New file, from GNU gettext with modifications.
3034
3035 2003-02-02  Jim Meyering  <jim@meyering.net>
3036
3037         * regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
3038         e.g. glibc-2.2.93.
3039
3040 2003-01-31  Bruno Haible  <bruno@clisp.org>
3041
3042         * rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
3043         'rpl_rename'.
3044         * strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
3045         'rpl_strnlen'.
3046         * strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
3047         'rpl_strtod'.
3048         * utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
3049         'rpl_utime'.
3050
3051 2003-01-30  Bruno Haible  <bruno@clisp.org>
3052
3053         * signed.m4: New file, from GNU gettext.
3054         * longdouble.m4: New file, from GNU gettext.
3055         * wchar_t.m4: New file, from GNU gettext.
3056         * wint_t.m4: New file, from GNU gettext.
3057         * vasnprintf.m4: New file.
3058         * vasprintf.m4: New file.
3059
3060 2003-01-29  Bruno Haible  <bruno@clisp.org>
3061
3062         * stpncpy.m4: New file.
3063
3064 2003-01-23  Jim Meyering  <jim@meyering.net>
3065
3066         * dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
3067         from working on systems without dirfd (at least Irix and OSF1/Tru64).
3068
3069 2003-01-16  Jim Meyering  <jim@meyering.net>
3070
3071         * regex.m4: The `regex' struct is both input and output.
3072         Initialize it before each use.  Patch by Tim Waugh.
3073
3074 2003-01-11  Bruno Haible  <bruno@clisp.org>
3075
3076         * longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
3077         * ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
3078         suffix.
3079
3080 2003-01-11  Bruno Haible  <bruno@clisp.org>
3081
3082         * md5.m4 (gl_MD5): Require AC_C_INLINE.
3083
3084 2003-01-11  Bruno Haible  <bruno@clisp.org>
3085
3086         * alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
3087
3088 2003-01-12  Paul Eggert  <eggert@twinsun.com>
3089
3090         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
3091         to avoid collisions with libcurses and libreadline.
3092
3093         * getstr.m4: Remove.
3094         * getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
3095
3096 2003-01-10  Bruno Haible  <bruno@clisp.org>
3097
3098         * alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
3099
3100 2003-01-09  Bruno Haible  <bruno@clisp.org>
3101
3102         * stdbool.m4 (AM_STDBOOL_H): New macro.
3103
3104 2002-12-31  Paul Eggert  <eggert@twinsun.com>
3105
3106         * memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
3107
3108 2002-12-24  Bruno Haible  <bruno@clisp.org>
3109
3110         General infrasructure.
3111         * README: Rewritten.
3112         * onceonly.m4: New file.
3113         * onceonly_2_57.m4: New file.
3114
3115         Module atexit.
3116         * atexit.m4: New file.
3117
3118         Module strtod.
3119         * strtod.m4: New file.
3120
3121         Module strtol.
3122         * strtol.m4: New file.
3123
3124         Module strtoul.
3125         * strtoul.m4: New file.
3126
3127         Module memchr.
3128         * memchr.m4: New file.
3129
3130         Module memcmp.
3131         * memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
3132         (jm_FUNC_MEMCMP): Invoke it.
3133
3134         Module memcpy.
3135         * memcpy.m4: New file.
3136
3137         Module memmove.
3138         * memmove.m4: New file.
3139
3140         Module memset.
3141         * memset.m4: New file.
3142
3143         Module strcspn.
3144         * strcspn.m4: New file.
3145
3146         Module strpbrk.
3147         * strpbrk.m4: New file.
3148
3149         Module strstr.
3150         * strstr.m4: New file.
3151
3152         Module strerror.
3153         * strerror.m4: New file.
3154
3155         Module mktime.
3156         * mktime.m4: Renamed from jm-mktime.m4.
3157         (gl_PREREQ_MKTIME): New macro.
3158         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
3159
3160         Module malloc.
3161         * malloc.m4 (gl_PREREQ_MALLOC): New macro.
3162         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
3163         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
3164
3165         Module realloc.
3166         * realloc.m4 (gl_PREREQ_REALLOC): New macro.
3167         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
3168         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
3169
3170         Module strftime.
3171         * tm_gmtoff.m4: New file, extracted from strftime.m4.
3172         * strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
3173         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
3174         gl_TM_GMTOFF.
3175         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
3176
3177         Module xalloc.
3178         * xalloc.m4: New file.
3179
3180         Module alloca.
3181         * alloca.m4: New file.
3182
3183         Module putenv.
3184         * putenv.m4 (gl_PREREQ_PUTENV): New macro.
3185         (jm_FUNC_PUTENV): Invoke it.
3186
3187         Module setenv.
3188         * setenv.m4 (gt_FUNC_SETENV): New macro.
3189         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
3190         when invoked twice.
3191         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
3192         gt_FUNC_SETENV.
3193
3194         Module memrchr.
3195         * memrchr.m4: New file.
3196
3197         Module stpcpy.
3198         * stpcpy.m4: New file.
3199
3200         Module strcase.
3201         * strcase.m4: New file.
3202
3203         Module strdup.
3204         * strdup.m4: New file.
3205
3206         Module strnlen.
3207         * strnlen.m4: New file.
3208
3209         Module strndup.
3210         * strndup.m4: New file.
3211
3212         Module xstrtod.
3213         * xstrtod.m4: New file.
3214
3215         Module xstrtol.
3216         * xstrtol.m4: New file.
3217
3218         Module getdate.
3219         * getdate.m4: New file.
3220
3221         Module unlocked-io.
3222         * unlocked-io.m4: Renamed from jm-glibc-io.m4.
3223         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
3224         * jm-glibc-io.m4n: Remove file.
3225
3226         Module long-options.
3227         * long-options.m4: New file.
3228
3229         Module md5.
3230         * md5.m4: New file.
3231
3232         Module sha.
3233         * sha.m4: New file.
3234
3235         Module getstr.
3236         * getstr.m4: New file.
3237
3238         Module getline.
3239         * getline.m4 (gl_PREREQ_GETLINE): New macro.
3240         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
3241         <sys/types.h>, for size_t. Use the function name gnu_getline, not
3242         simply getline. Infoke gl_PREREQ_GETLINE.
3243
3244         Module obstack.
3245         * obstack.m4: New file.
3246
3247         Module hash.
3248         * hash.m4: New file.
3249
3250         Module readtokens.
3251         * readtokens.m4: New file.
3252
3253         Module strverscmp.
3254         * strverscmp.m4: New file.
3255
3256         Module stdbool.
3257         * stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for OSF/1.
3258
3259         Module strtoll.
3260         * strtoll.m4: New file.
3261
3262         Module strtoull.
3263         * strtoull.m4: New file.
3264
3265         Module strtoimax.
3266         * strtoimax.m4: New file.
3267
3268         Module strtoumax.
3269         * strtoumax.m4: New file.
3270
3271         Module xstrtoimax.
3272         * xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from jm_AC_PREREQ_XSTRTOIMAX.
3273         Moved the strtol prerequisites to strtol.m4.
3274         Moved the strtoll prerequisites to strtoll.m4.
3275         Moved the strtoimax prerequisites to strtoimax.m4.
3276
3277         Module xstrtoumax.
3278         * xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from jm_AC_PREREQ_XSTRTOUMAX.
3279         Moved the strtoul prerequisites to strtoul.m4.
3280         Moved the strtoull prerequisites to strtoull.m4.
3281         Moved the strtoumax prerequisites to strtoumax.m4.
3282
3283         Module chown.
3284         * chown.m4 (gl_PREREQ_CHOWN): New macro.
3285         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
3286
3287         Module dup2.
3288         * dup2.m4: New file.
3289
3290         Module ftruncate.
3291         * ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
3292         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
3293
3294         Module getgroups.
3295         * getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
3296         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
3297
3298         Module gettimeofday.
3299         * gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
3300         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
3301         gl_PREREQ_GETTIMEOFDAY.
3302
3303         Module mkdir.
3304         * mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
3305         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
3306
3307         Module mkstemp.
3308         * mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
3309         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
3310         jm_AC_TYPE_UINTMAX_T.
3311         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
3312
3313         Module stat.
3314         * stat.m4 (gl_PREREQ_STAT): New macro.
3315         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
3316
3317         Module lstat.
3318         * lstat.m4 (gl_PREREQ_LSTAT): New macro.
3319         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
3320
3321         Module timespec.
3322         * timespec.m4 (gl_TIMESPEC): New macro.
3323         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
3324         * st_mtim.m4: Indentation.
3325
3326         Module nanosleep.
3327         * nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
3328         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
3329         gl_PREREQ_NANOSLEEP.
3330
3331         Module regex.
3332         * regex.m4 (jm_PREREQ_REGEX): New macro.
3333         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
3334         (gl_REGEX): New macro.
3335
3336         Module rename.
3337         * rename.m4 (gl_PREREQ_RENAME): New macro.
3338         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
3339
3340         Module rmdir.
3341         * rmdir.m4: New file.
3342
3343         Module utime.
3344         * utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
3345         * utime.m4 (gl_PREREQ_UTIME): New macro.
3346         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
3347
3348         Module dirname.
3349         * dirname.m4: New file.
3350
3351         Module getopt.
3352         * getopt.m4: New file.
3353
3354         Module unistd-safer.
3355         * unistd-safer.m4: New file.
3356
3357         Module fnmatch.
3358         * fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
3359         declaration.
3360         (gl_PREREQ_FNMATCH_EXTRA): New macro.
3361         (gl_FUNC_FNMATCH_POSIX): New macro.
3362         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
3363         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
3364         simply fnmatch.
3365
3366         Module exclude.
3367         * exclude.m4: New file.
3368
3369         Module human.
3370         * human.m4: New file.
3371
3372         Module acl.
3373         * acl.m4: Nop.
3374
3375         Module backupfile.
3376         * backupfile.m4: New file.
3377         * d-ino.m4: Indentation.
3378
3379         Module fsusage.
3380         * fsusage.m4 (gl_FSUSAGE): New macro.
3381         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
3382         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
3383
3384         Module dirfd.
3385         * dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP requirements.
3386
3387         Module euidaccess.
3388         * euidaccess.m4: New file.
3389
3390         Module file-type.
3391         * file-type.m4: New file.
3392
3393         Module fileblocks.
3394         * fileblocks.m4: New file.
3395
3396         Module filemode.
3397         * filemode.m4: New file.
3398
3399         Module isdir.
3400         * isdir.m4: New file.
3401
3402         Module lchown.
3403         * lchown.m4 (gl_PREREQ_LCHOWN): New macro.
3404         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
3405
3406         Module makepath.
3407         * makepath.m4: New file.
3408
3409         Module modechange.
3410         * modechange.m4: New file.
3411
3412         Module mountlist.
3413         * mountlist.m4: New file.
3414         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
3415         Indentation.
3416
3417         Module path-concat.
3418         * path-concat.m4: New file.
3419
3420         Module pathmax.
3421         * pathmax.m4: New file.
3422
3423         Module same.
3424         * same.m4: New file.
3425
3426         Module save-cwd.
3427         * save-cwd.m4: New file.
3428
3429         Module savedir.
3430         * savedir.m4: New file.
3431
3432         Module xgetcwd.
3433         * xgetcwd.m4: New file.
3434         * getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
3435
3436         Module xreadlink.
3437         * xreadlink.m4: New file.
3438
3439         Module safe-read.
3440         * safe-read.m4: New file.
3441
3442         Module safe-write.
3443         * safe-write.m4: New file.
3444
3445         Module closeout.
3446         * closeout.m4: New file.
3447
3448         Module stdio-safer.
3449         * stdio-safer.m4: New file.
3450
3451         Module getpass.
3452         * getpass.m4: New file.
3453
3454         Module getugroups.
3455         * getugroups.m4: New file.
3456
3457         Module group-member.
3458         * group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
3459         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
3460
3461         Module idcache.
3462         * idcache.m4: New file.
3463
3464         Module userspec.
3465         * userspec.m4: New file.
3466
3467         Module gettime.
3468         * clock_time.m4: New file.
3469         * gettime.m4: New file.
3470
3471         Module settime.
3472         * settime.m4: New file.
3473
3474         Module posixtm.
3475         * posixtm.m4: New file.
3476
3477         Module gethostname.
3478         * gethostname.m4: New file.
3479
3480         Module canon-host.
3481         * canon-host.m4: New file.
3482
3483         Module gettext.
3484         * codeset.m4: New file, from gettext-0.11.5.
3485         * gettext.m4: New file, from gettext-0.11.5.
3486         * glibc21.m4: New file, from gettext-0.11.5.
3487         * iconv.m4: New file, from gettext-0.11.5.
3488         * intdiv0.m4: New file, from gettext-0.11.5.
3489         * inttypes-pri.m4: New file, from gettext-0.11.5.
3490         * inttypes.m4: New file, from gettext-0.11.5.
3491         * inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
3492         * isc-posix.m4: New file, from gettext-0.11.5.
3493         * lcmessage.m4: New file, from gettext-0.11.5.
3494         * lib-ld.m4: New file, from gettext-0.11.5.
3495         * lib-link.m4: New file, from gettext-0.11.5.
3496         * lib-prefix.m4: New file, from gettext-0.11.5.
3497         * progtest.m4: New file, from gettext-0.11.5.
3498         * stdint_h.m4: New file, from gettext-0.11.5 with modifications.
3499         * uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
3500         * ulonglong.m4: New file, from gettext-0.11.5 with modifications.
3501
3502         Module localcharset.
3503         * localcharset.m4: New file.
3504
3505         Module hard-locale.
3506         * hard-locale.m4: New file.
3507
3508         Module mbswidth.
3509         * mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
3510         onceonly macros.
3511         * mbrtowc.m4: Add comment.
3512
3513         Module memcasecmp.
3514         * memcasecmp.m4: New file.
3515
3516         Module memcoll.
3517         * memcoll.m4: New file.
3518
3519         Module unicodeio.
3520         * unicodeio.m4: New file.
3521
3522         Module rpmatch.
3523         * rpmatch.m4: New file.
3524
3525         Module yesno.
3526         * yesno.m4: New file.
3527
3528         Module exitfail.
3529         * exitfail.m4: New file.
3530
3531         Module c-stack.
3532         * c-stack.m4 (gl_C_STACK): New macro.
3533         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
3534
3535         Module error.
3536         * error.m4 (gl_ERROR): New macro.
3537         (jm_PREREQ_ERROR): Use onceonly macros.
3538
3539         Module fatal.
3540         * fatal.m4: New file.
3541
3542         Module getloadavg.
3543         * getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
3544         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
3545
3546         Module getpagesize.
3547         * getpagesize.m4: New file.
3548
3549         Module getusershell.
3550         * getusershell.m4: New file.
3551
3552         Module physmem.
3553         * physmem.m4: New file.
3554
3555         Module posixver.
3556         * posixver.m4: New file.
3557
3558         Module quotearg.
3559         * quotearg.m4: New file.
3560
3561         Module quote.
3562         * quote.m4: New file.
3563
3564         Module readutmp.
3565         * readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
3566
3567         Module sig2str.
3568         * sig2str.m4: New file.
3569
3570         Other.
3571         * longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
3572         ulonglong.m4.
3573         * intmax_t.m4: New file.
3574         * d-type.m4: Indentation.
3575         * jm-macros.m4: Update.
3576         * prereq.m4 (jm_PREREQ): Update.
3577         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
3578         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
3579         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
3580         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
3581         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
3582         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
3583         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
3584         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
3585         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
3586         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
3587         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
3588         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
3589         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
3590         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
3591         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
3592         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
3593         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
3594         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
3595         * readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
3596
3597 2002-12-18  Bruno Haible  <bruno@clisp.org>
3598
3599         * strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
3600         * jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
3601
3602 2002-12-17  Bruno Haible  <bruno@clisp.org>
3603
3604         * mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
3605         stdlib.h, string.h.
3606
3607 2002-12-11  Bruno Haible  <bruno@clisp.org>
3608
3609         * setenv.m4: New file, from gettext-0.11.5.
3610
3611 2002-12-06  Paul Eggert  <eggert@twinsun.com>
3612
3613         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
3614         a pain in practice to deal with generated m4 files.  This change
3615         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
3616
3617         * Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
3618         and jm-glibc-io.m4, as they are no longer a special case.
3619         * jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
3620         kludge and the auto-generation stuff.  Check only whether the
3621         functions are declared, not whether they exist, since older hosts
3622         that don't declare the functions can't use the optimization anyway.
3623
3624 2002-07-06  Jim Meyering  <meyering@lucent.com>
3625
3626         * README: Don't mention Makefile.am.in.
3627         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
3628
3629 2002-06-11  Paul Eggert  <eggert@twinsun.com>
3630
3631         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
3632
3633 2002-06-22  Jim Meyering  <meyering@lucent.com>
3634
3635         * c-stack.m4: New file, from diffutils-2.8.2.
3636         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
3637
3638         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
3639         now that configure.ac uses AC_GNU_SOURCE.
3640         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
3641         * prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
3642
3643         Update to latest tools.  Suggestions from Paul Eggert.
3644         * stdbool.m4: New file, from diffutils-2.8.2.
3645         * gnu-source.m4: Update from diffutils-2.8.2.
3646         * fnmatch.m4: Likewise.
3647         * prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
3648         to AC_HEADER_STDBOOL
3649
3650 2002-06-21  Jim Meyering  <meyering@lucent.com>
3651
3652         * c-bs-a.m4: Add comment, from diffutils-2.8.2.
3653         * mbrtowc.m4: Likewise.
3654
3655         * mbstate_t.m4: Update from diffutils-2.8.2.
3656         * mbswidth.m4: Reflect name change:
3657         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
3658         * prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
3659
3660         * lib-link.m4: Update from gettext-0.11.2.
3661         * gettext.m4: Likewise.
3662
3663         * jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
3664         From Alfred M. Szmidt.
3665
3666 2002-05-19  Paul Eggert  <eggert@twinsun.com>
3667
3668         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
3669
3670 2002-06-07  Jim Meyering  <meyering@lucent.com>
3671
3672         * prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
3673         They're needed at least for NetBSD 1.5.2.
3674         ($statxfs_includes): Include those same headers.
3675         ($statxfs_includes): Include sys/vfs.h if available.
3676         ($statxfs_includes): Likewise for sys/statvfs.h.
3677         Check for the following members in both structs statfs and statvfs:
3678         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
3679
3680 2002-06-01  Jim Meyering  <meyering@lucent.com>
3681
3682         * d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
3683         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
3684
3685 2002-05-28  Jim Meyering  <meyering@lucent.com>
3686
3687         * readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
3688         Reported by Volker Borchert.
3689
3690 2002-05-27  Jim Meyering  <meyering@lucent.com>
3691
3692         * gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
3693         localtime.
3694
3695         * readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
3696         use the replacement function; it wouldn't resolve at link time.
3697         Reported by Volker Borchert.
3698
3699 2002-04-30  Jim Meyering  <meyering@lucent.com>
3700
3701         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
3702
3703 2002-04-29  Paul Eggert  <eggert@twinsun.com>
3704
3705         * prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
3706         Do not check for alloca.h (no longer used) or stdbool.h (was never
3707         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
3708
3709 2002-04-28  Paul Eggert  <eggert@twinsun.com>
3710
3711         * prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
3712
3713 2002-04-29  Jim Meyering  <meyering@lucent.com>
3714
3715         * jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
3716         * prereq.m4: Add jm_PREREQ_STRNLEN.
3717         Use AC_FUNC_STRNLEN here instead.
3718
3719         * jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
3720         With autoconf-2.53a, it's part of AC_PROG_CC.
3721
3722 2002-04-28  Paul Eggert  <eggert@twinsun.com>
3723
3724         * jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
3725         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
3726
3727 2002-04-24  Jim Meyering  <meyering@lucent.com>
3728
3729         * prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
3730         (jm_PREREQ): Use it.
3731
3732         * getloadavg.m4: Check for these headers: locale.h unistd.h
3733         mach/mach.h fcntl.h.
3734         Check for this function: setlocale.
3735
3736 2002-04-16  Jim Meyering  <meyering@lucent.com>
3737
3738         * prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
3739         ut_pid, ut_id, ut_exit.
3740
3741 2002-04-12  Jim Meyering  <meyering@lucent.com>
3742
3743         * ls-mntd-fs.m4 (checking for getmntinfo function...): Remove now-bogus
3744         check for f_type in sys/mount.h.  Instead, just test for the existence
3745         of the getmntinfo function.  Needed for Darwin 5.3.
3746
3747         * dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
3748         This is necessary at least on Darwin 5.3.
3749
3750         * jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
3751         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of strnlen.o
3752         in the library, and that makes some versions of ranlib object.
3753
3754 2002-04-09  Jim Meyering  <meyering@lucent.com>
3755
3756         * malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
3757         to be more precise.  Rather than saying we're checking whether the
3758         function `works', say what we're testing.
3759         * realloc.m4 (jm_FUNC_REALLOC): Likewise.
3760         Reported by Bruno Haible.
3761
3762 2002-02-27  Paul Eggert  <eggert@twinsun.com>
3763
3764         * jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
3765         Check for clock_settime.
3766
3767 2002-02-25  Paul Eggert  <eggert@twinsun.com>
3768
3769         * acl.m4: New file.
3770         * jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
3771         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
3772
3773 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
3774
3775         * codeset.m4: Upgrade to gettext-0.11.
3776         * gettext.m4: Upgrade to gettext-0.11.
3777         * glibc21.m4: Upgrade to gettext-0.11.
3778         * iconv.m4: Upgrade to gettext-0.11.
3779         * isc-posix.m4: Upgrade to gettext-0.11.
3780         * lcmessage.m4: Upgrade to gettext-0.11.
3781         * lib-ld.m4: New file, from gettext-0.11.
3782         * lib-link.m4: New file, from gettext-0.11.
3783         * lib-prefix.m4: New file, from gettext-0.11.
3784         * progtest.m4: Upgrade to gettext-0.11.
3785
3786 2002-02-15  Paul Eggert  <eggert@twinsun.com>
3787
3788         * prereq.m4 (jm_PREREQ_POSIXVER): New macro.
3789         (jm_PREREQ): Use it.
3790
3791 2002-01-26  Jim Meyering  <meyering@lucent.com>
3792
3793         * jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
3794         * strnlen.m4: Remove file, now that it's part of autoconf.
3795
3796 2002-01-22  Paul Eggert  <eggert@twinsun.com>
3797
3798         * jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
3799
3800 2002-01-19  Jim Meyering  <meyering@lucent.com>
3801
3802         * jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
3803         Remove useless quotes: DF_PROG="df".
3804         * strnlen.m4: New file.
3805
3806 2001-12-14  Jim Meyering  <meyering@lucent.com>
3807
3808         * jm-macros.m4 (jm_MACROS): Check for iswspace.
3809         Suggestion from Bruno Haible.
3810
3811 2001-11-20  Jim Meyering  <meyering@lucent.com>
3812
3813         * mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
3814         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
3815
3816 2001-11-19  Jim Meyering  <meyering@lucent.com>
3817
3818         * mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
3819         directory.  Use "conftestXXXXXX" as the template.
3820         Suggestion from Paul Eggert.
3821
3822         * mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor immediately,
3823         so the test doesn't mistakenly hit the max-open-files limit.
3824
3825 2001-11-18  Jim Meyering  <meyering@lucent.com>
3826
3827         * prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
3828
3829 2001-11-17  Jim Meyering  <meyering@lucent.com>
3830
3831         * mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
3832         Prompted by a report from Bob Proulx.
3833
3834         * jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
3835         Instead, require UTILS_FUNC_MKSTEMP.
3836
3837 2001-11-11  Jim Meyering  <meyering@lucent.com>
3838
3839         * jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
3840         Now, that's done as part of AC_FUNC_STRTOD.
3841
3842 2001-10-22  Paul Eggert  <eggert@twinsun.com>
3843
3844         * jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
3845         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
3846
3847 2001-11-10  Jim Meyering  <meyering@lucent.com>
3848
3849         * prereq.m4 (jm_PREREQ_PHYSMEM): New function.
3850         (jm_PREREQ): Use it.
3851
3852 2001-11-09  Jim Meyering  <meyering@lucent.com>
3853
3854         * jm-macros.m4: Require autoconf-2.52f.
3855         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
3856         Use these AC_-prefixed names, not the AM_-prefixed ones.
3857
3858         * afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
3859
3860 2001-11-04  Jim Meyering  <meyering@lucent.com>
3861
3862         * fpending.m4: Remove unused cruft that saved, set, and restored $DEFS.
3863
3864 2001-11-03  Jim Meyering  <meyering@lucent.com>
3865
3866         * jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
3867         of AC_DEFUN.
3868
3869         * dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
3870         know the name of the variable in the macro definition.
3871
3872 2001-11-01  Jim Meyering  <meyering@lucent.com>
3873
3874         * dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
3875         * jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
3876
3877 2001-10-20  Paul Eggert  <eggert@twinsun.com>
3878
3879         * error.m4 (jm_PREREQ_ERROR):
3880         Do not invoke AC_CHECK_FUNCS with strerror_r, as
3881         AC_FUNC_STRERROR_R does that.
3882         Check for strerror declaration.
3883
3884         * strerror_r.m4: Add copyright notice, as nontrivial m4 files
3885         are supposed to have them these days.
3886         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
3887         Merge changes from latest Autoconf CVS.
3888         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
3889         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
3890         POSIX decided to standardize on the int flavor of strerror_r.
3891
3892 2001-09-30  Jim Meyering  <meyering@lucent.com>
3893
3894         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
3895         `struct fsstat' has the `f_fstypename' member.
3896         Use that to define FS_TYPE, which is now used to make
3897         the getfsstat link test tighter.
3898
3899 2001-09-29  Jim Meyering  <meyering@lucent.com>
3900
3901         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
3902         [one-argument getmntent function]): Include stdio.h before mntent.h.
3903         SunOS 4.1.x needs it for the declaration of `FILE'.
3904         Patch by Volker Borchert.
3905
3906         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
3907         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
3908         sys/fs_types.h, and make the link-test for getfsstat guard #include
3909         directives with appropriate #if HAVE_*_H tests so that we can
3910         detect getfsstat on Apple Darwin1.3.7 systems.
3911         Reported by Nelson Beebe.
3912         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
3913
3914 2001-09-28  Paul Eggert  <eggert@twinsun.com>
3915
3916         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
3917         #defines strtoimax.  Also treat the other strto* functions
3918         like strtoimax.
3919
3920         * xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
3921         Check for strtoul and strtoumax,
3922         as those declarations are made even in the signed case.
3923         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
3924         Likewise, for strtol and strtoimax.
3925
3926 2001-09-24  Jim Meyering  <meyering@lucent.com>
3927
3928         * gettext.m4: Use the version from gettext-0.10.40, not CVS.
3929
3930 2001-09-23  Jim Meyering  <meyering@lucent.com>
3931
3932         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
3933         instead of the mere test for existence of mntent.h.  The latter
3934         would get a false-positive on AIX 3.4 systems.
3935         In the outer getmntent if-block, don't die if neither of the getmntent
3936         tests succeeds.  Instead, just fall through and continue with the
3937         remaining tests.
3938
3939 2001-09-22  Jim Meyering  <meyering@lucent.com>
3940
3941         * gettext.m4: New file.  From gettext.
3942         * lcmessage.m4: Sync with gettext -- this changes only comments.
3943         * progtest.m4: Likewise
3944         * isc-posix.m4: Decrement serial number to sync with gettext.
3945         * glibc21.m4: Likewise.
3946
3947         * libintl.m4: Remove.  No longer used.
3948
3949 2001-09-20  Jim Meyering  <meyering@lucent.com>
3950
3951         * xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
3952         strtoimax.
3953         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
3954         strtoumax.
3955
3956 2001-09-17  Jim Meyering  <meyering@lucent.com>
3957
3958         * chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
3959         * jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
3960         * nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
3961         * st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
3962         * utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
3963         whenever the right hand side need not be expanded by the shell.
3964
3965 2001-09-16  Paul Eggert  <eggert@twinsun.com>
3966
3967         * fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
3968         library.  It's not correct, as some older glibcs are buggy.
3969         fnmatch wasn't fixed until glibc 2.2.
3970
3971         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
3972         special shell magic here.
3973
3974 2001-09-16  Jim Meyering  <meyering@lucent.com>
3975
3976         * mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
3977         * jm-macros.m4: Require it.
3978
3979 2001-09-15  Jim Meyering  <meyering@lucent.com>
3980
3981         * jm-macros.m4: Check for help2man.
3982
3983 2001-09-11  Jim Meyering  <meyering@lucent.com>
3984
3985         * host-os.m4 (UTILS_HOST_OS): New file/macro.
3986         The body, by Paul Eggert, was moved here from configure.in.
3987         * jm-macros.m4: Require UTILS_HOST_OS.
3988
3989 2001-09-04  Paul Eggert  <eggert@twinsun.com>
3990
3991         * prereq.m4 (jm_PREREQ_XREADLINK): New macro.
3992         (jm_PREREQ): Use it.
3993
3994 2001-09-03  Paul Eggert  <eggert@twinsun.com>
3995
3996         * prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
3997         sys/param.h, as pathmax.h includes them.
3998
3999 2001-09-03  Paul Eggert  <eggert@twinsun.com>
4000
4001         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
4002         (jm_PREREQ_XGETCWD): New macro.
4003
4004         * getcwd.m4: New file.
4005
4006 2001-09-01  Jim Meyering  <meyering@lucent.com>
4007
4008         * jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
4009         Used by df.
4010
4011 2001-08-30  Paul Eggert  <eggert@twinsun.com>
4012
4013         Simplify code, partly by assuming autoconf 2.52 semantics.
4014
4015         * Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
4016
4017         * inttypes.m4 (AC_PREREQ): Bump to 2.52.
4018         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
4019         All uses removed.
4020         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
4021         Move AC_REQUIRE to next-to-top level, to avoid confusion.
4022         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
4023         * prereq.m4 (jm_PREREQ_HUMAN): Don't require jm_AC_HEADER_INTTYPES_H.
4024         * jm-macros.m4 (jm_MACROS): Likewise.
4025
4026         * uintmax_t.m4: Remove, as it duplicates inttypes.m4.
4027
4028         * xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
4029         Quote first arg of AC_DEFUN.
4030         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
4031         since they are needed to parse the include file even if we need
4032         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
4033         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
4034         but with opposite signedness.
4035
4036 2001-08-30  Paul Eggert  <eggert@twinsun.com>
4037
4038         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
4039         (jm_PREREQ_EXCLUDE): New macro.
4040
4041 2001-08-26  Jim Meyering  <meyering@lucent.com>
4042
4043         * jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
4044
4045         * xstrtoimax.m4: New file.
4046         * xstrtoumax.m4: Add comments explaining why we
4047         AC_REPLACE_FUNCS(strtol).
4048
4049 2001-06-20  Paul Eggert  <eggert@twinsun.com>
4050
4051         * inttypes.m4: Add AC_PREREQ(2.13).
4052         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
4053         (jm_AC_TYPE_INTMAX_T): New macro.
4054         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
4055
4056         * longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
4057
4058         * longlong.m4: Renamed from ulonglong.m4.
4059         * inttypes.m4: Renamed from inttypes_h.m4.
4060         * uintmax_t.m4: Removed.
4061
4062 2001-08-12  Jim Meyering  <meyering@lucent.com>
4063
4064         * afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
4065         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
4066         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
4067         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
4068         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
4069         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
4070         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
4071         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
4072         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
4073         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
4074         utime.m4, utimes.m4, xstrtoumax.m4:
4075         Quote the first argument in each use of AC_DEFUN.
4076
4077 2001-08-05  Jim Meyering  <meyering@lucent.com>
4078
4079         * jm-macros.m4: Require autoconf-2.52.
4080
4081 2001-08-03  Paul Eggert  <eggert@twinsun.com>
4082
4083         The following changes are from gettext 0.10.39 as maintained by
4084         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
4085
4086         * codeset.m4: Upgrade to serial AM1.
4087         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
4088         all uses changed.  Quote first arg of AC_DEFUN.
4089         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
4090
4091         * iconv.m4: Upgrade to serial AM2.
4092         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
4093         Add --with-libconv-prefix.
4094         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
4095         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
4096         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
4097         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
4098         * jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
4099
4100         * c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
4101         * getline.m4 (AM_FUNC_GETLINE): Likewise.
4102         * glibc21.m4 (jm_GLIBC21): Likewise.
4103         * inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
4104         * isc-posix.m4 (AC_ISC_POSIX): Likewise.
4105         * lcmessage.m4 (AM_LC_MESSAGES): Likewise.
4106         * progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
4107         * uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
4108         * ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
4109
4110         * getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
4111         string.h any more.
4112
4113         * progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
4114         not the default value.
4115
4116         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
4117         * mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
4118         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
4119         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
4120         Also check for iswcntrl, used for wcwidth fallback.
4121         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
4122         to Autoconf 2.13.
4123
4124 2001-08-03  Jim Meyering  <meyering@lucent.com>
4125
4126         * mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
4127         as it was in the original.  Reported by Paul Eggert.
4128
4129 2001-07-16  Jim Meyering  <meyering@lucent.com>
4130
4131         * gettimeofday.m4: New file.
4132         Prompted by a report from Bernhard Baehr.
4133
4134 2001-07-15  Jim Meyering  <meyering@lucent.com>
4135
4136         * Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h stuff.
4137         Now it's in ../Makefile.cfg.
4138
4139 2001-07-04  Jim Meyering  <meyering@lucent.com>
4140
4141         * Makefile.am.in (glibc-io.struct): New target.  Rework the code
4142         that generates jm-glibc-io.m4 so that it doesn't trigger any make
4143         distcheck failure.
4144
4145 2001-07-02  Jim Meyering  <meyering@lucent.com>
4146
4147         The following changes were prompted by suggestions from Bruno Haible.
4148
4149         * jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
4150         is now generated.
4151         * Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
4152         definition of EXTRA_DIST.
4153         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
4154         ensure that the generated file is created/updated whenever the list
4155         of $(unlocked_functions) is changed.
4156         (jm-glibc-io.m4): New rule.
4157         (unlocked-io.h): New rule -- currently unused.
4158
4159 2001-06-24  Jim Meyering  <meyering@lucent.com>
4160
4161         * regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
4162         unmatched right bracket, rather than kludging it with an extra,
4163         falsely-matching quote in a comment.  Patch by Akim Demaille.
4164
4165 2001-05-27  Jim Meyering  <meyering@lucent.com>
4166
4167         * prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
4168         Check for ut_type in struct utmp.
4169
4170 2001-05-22  Jim Meyering  <meyering@lucent.com>
4171
4172         * strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
4173         now that we use the package-supplied version unconditionally.
4174         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
4175
4176 2001-05-21  Jim Meyering  <meyering@lucent.com>
4177
4178         * regex.m4: Change a couple backticks to single quotes to avoid shell
4179         syntax errors.
4180
4181 2001-05-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
4182
4183         * dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
4184
4185 2001-05-11  Paul Eggert  <eggert@twinsun.com>
4186
4187         * strftime.m4 (jm_FUNC_GNU_STRFTIME):
4188         Don't bother to check library strftime, since
4189         we'll be using our own my_strftime function anyway.
4190         Define my_strftime instead of strftime.
4191
4192 2001-05-15  Jim Meyering  <meyering@lucent.com>
4193
4194         * regex.m4: Use proper quoting so brackets appear in the test program.
4195         Reported by, and with help from, Bruno Haible.
4196
4197 2001-05-13  Jim Meyering  <meyering@lucent.com>
4198
4199         * jm-macros.m4 (major_t, minor_t): Define to unsigned int if undefined.
4200
4201 2000-11-26  Paul Eggert  <eggert@twinsun.com>
4202
4203         * jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
4204
4205 2001-04-21  Jim Meyering  <meyering@lucent.com>
4206
4207         * rmdir-errno.m4: Write to a new file, so that a restrictive umask
4208         doesn't interfere.
4209
4210 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
4211
4212         * ftruncate.m4: Check for chsize.
4213         Link with ftruncate.o unconditionally if ftruncate is missing.
4214         This was required when cross-compiling to i586-mingw32msvc.
4215
4216 2001-03-24  Jim Meyering  <meyering@lucent.com>
4217
4218         * jm-macros.m4: Require autoconf-2.49d.
4219
4220 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
4221
4222         * iconv.m4 (jm_ICONV): Recommend GNU libiconv.
4223
4224 2001-03-17  Jim Meyering  <meyering@lucent.com>
4225
4226         * memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
4227         now that the version in autoconf is equivalent.
4228         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
4229
4230         * error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
4231         Suggestion from Akim Demaille.
4232
4233         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
4234         (jm_PREREQ_TEMPNAME): New function.
4235
4236 2001-02-25  Paul Eggert  <eggert@twinsun.com>
4237
4238         * jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
4239         lacks mkstemp.  Compile our own tempname.c if we compile our own
4240         mkstemp.c, as mkstemp relies on tempname.
4241
4242 2001-03-01  Jim Meyering  <meyering@lucent.com>
4243
4244         * dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
4245         AH_VERBATIM really does output its argument verbatim.
4246
4247 2001-02-18  Paul Eggert  <eggert@twinsun.com>
4248
4249         * jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
4250
4251 2001-02-17  Jim Meyering  <meyering@lucent.com>
4252
4253         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
4254         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
4255         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
4256         UnixWare 7.1.1.
4257
4258         * mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
4259         rather than AC_CACHE_VAL.
4260
4261 2001-02-17  Paul Eggert  <eggert@twinsun.com>
4262
4263         * mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
4264         * mbswidth.m4 (jm_PREREQ_MBSWIDTH):
4265         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
4266         * prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
4267
4268 2001-02-07  Jim Meyering  <meyering@lucent.com>
4269
4270         * regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
4271
4272 2001-02-05  Jim Meyering  <meyering@lucent.com>
4273
4274         * jm-macros.m4: Require autoconf-2.14d (not yet released), because
4275         it includes the patch required for `large file' support with at least
4276         HP-UX's 10.20 /bin/cc.
4277
4278 2001-02-03  Jim Meyering  <meyering@lucent.com>
4279
4280         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
4281         AS_IF, now that it works once again (mysteriously).
4282         * fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
4283
4284 2001-01-30  Jim Meyering  <meyering@lucent.com>
4285
4286         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
4287         * chown.m4: Rename conftestchown to conftest.chown.
4288         * rename.m4: s/conftestdir/conftest.d1/ and s/conftestdir2/conftest.d2/.
4289         * utimes.m4: s/conftestdata/conftest.data/
4290         Inspired by Pavel Roskin's change in autoconf.
4291
4292 2001-01-27  Jim Meyering  <meyering@lucent.com>
4293
4294         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
4295         a use of AS_IF.
4296         * fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
4297
4298 2001-01-26  Jim Meyering  <meyering@lucent.com>
4299
4300         * prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
4301         quotearg.c includes it.
4302
4303 2001-01-15  Bruno Haible  <haible@clisp.cons.org>
4304
4305         * iconv.m4 (jm_ICONV): Also check whether the iconv declaration
4306         has const.
4307
4308 2001-01-20  Jim Meyering  <meyering@lucent.com>
4309
4310         Be sure that headers are checked before used in code compiled
4311         for the type checks.
4312         * jm-macros.m4 (jm_MACROS): Remove all header checks.
4313         In place of that, invoke jm_CHECK_ALL_TYPES.
4314         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
4315         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
4316         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
4317         The check for ssize_t was mistakenly run before the test for unistd.h.
4318
4319         The configure-time check for stdbool.h was missing.
4320         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
4321         (jm_PREREQ_HASH): New function.
4322
4323 2001-01-17  Jim Meyering  <meyering@lucent.com>
4324
4325         * fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
4326         for autoconf-2.49c.
4327         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
4328
4329 2001-01-14  Jim Meyering  <meyering@lucent.com>
4330
4331         * rename.m4: Use temporary directories named conftestdir{,2}, not
4332         foo and bar.  Create conftestdir/ in the script, not in the C code.
4333         Remove directories in the script, not in the C code.
4334         Remove conftestdir{,2} before trying to create the directory.
4335         Make the entire configure script fail if the mkdir fails.
4336
4337 2001-01-02  Volker Borchert  <bt@teknon.de>
4338
4339         * rename.m4: New file.
4340         * jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
4341
4342 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
4343
4344         * libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
4345         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
4346         so `make install' also works in VPATH builds.
4347
4348 2001-01-01  Jim Meyering  <meyering@lucent.com>
4349
4350         * prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available), even
4351         on systems with utmpx.h.  It's necessary for the declaration of utmp's
4352         ut_user member.  Reported by Andreas Jaeger.
4353
4354         * check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if available.
4355         They are required for the declarations of getgrgid and getpwuid resp.
4356         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
4357         Reported by Andreas Jaeger.
4358
4359 2000-12-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
4360
4361         * libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
4362         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
4363         can be used in subdirectories.
4364
4365 2000-12-26  Jim Meyering  <meyering@lucent.com>
4366
4367         * dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work better
4368         with autoheader.
4369
4370 2000-12-17  Jim Meyering  <meyering@lucent.com>
4371
4372         * dos.m4 (jm_AC_DOS): New file and macro.
4373         * jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
4374
4375 2000-12-06  Paul Eggert  <eggert@twinsun.com>
4376
4377         * off_t-format.m4: Remove this file.
4378         * jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
4379
4380 2000-12-06  Jim Meyering  <meyering@lucent.com>
4381
4382         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the replacement
4383         strtoull, we may well need the replacement strtoul, too.
4384         Check for declarations of strtoul and strtoull.
4385         Check for strtol.  Mainly as a cue to cause automake to include
4386         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
4387         Check for limits.h -- strtol.c needs it.
4388
4389 2000-12-02  Jim Meyering  <meyering@lucent.com>
4390
4391         * off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
4392         * jm-macros.m4 (jm_MACROS): require it.
4393
4394 2000-11-30  Jim Meyering  <meyering@lucent.com>
4395
4396         * jm-macros.m4 (jm_MACROS): Check for stdint.h.
4397
4398 2000-11-30  Jim Meyering  <meyering@lucent.com>
4399
4400         * getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
4401
4402 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
4403
4404         * jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
4405
4406 2000-11-04  Jim Meyering  <meyering@lucent.com>
4407
4408         * regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
4409
4410 2000-10-29  Jim Meyering  <meyering@lucent.com>
4411
4412         * fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf renaming.
4413         * ls-mntd-fs.m4: Likewise
4414
4415 2000-10-28  Jim Meyering  <meyering@lucent.com>
4416
4417         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
4418         (jm_PREREQ_MEMCHR): New function.
4419
4420 2000-10-21  Jim Meyering  <meyering@lucent.com>
4421
4422         * check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
4423         * prereq.m4 (jm_PREREQ_DIRNAME): New macro.
4424         * jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
4425
4426 2000-09-18  Jim Meyering  <meyering@lucent.com>
4427
4428         * getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of LIBS.
4429         Otherwise, everyone ends up linking with -lelf for some configurations.
4430         Reported by Mike Stone.
4431
4432 2000-08-26  Jim Meyering  <meyering@lucent.com>
4433
4434         * jm-macros.m4: Use jm_FUNC_FPENDING.
4435         * fpending.m4: New file.
4436
4437 2000-08-20  Jim Meyering  <meyering@lucent.com>
4438
4439         * check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
4440         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
4441         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
4442
4443 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
4444
4445         Improve fileutils installation on systems where running
4446         programs (like install) can't be unlinked.
4447         * unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
4448         * jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
4449
4450 2000-08-06  Paul Eggert  <eggert@twinsun.com>
4451
4452         * mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
4453         not char, for compatibility with glibc 2.1.3 strftime.c.
4454
4455 2000-07-23  Paul Eggert  <eggert@twinsun.com>
4456
4457         * mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
4458
4459 2000-07-23  Jim Meyering  <meyering@lucent.com>
4460
4461         * check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these, too:
4462         getgrgid, getpwuid, getuid.
4463
4464 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
4465
4466         * mbswidth.m4: New file.
4467         * prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
4468
4469 2000-07-14  Jim Meyering  <meyering@lucent.com>
4470
4471         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require jm_AC_TYPE_UINTMAX_T.
4472
4473 2000-07-10  Paul Eggert  <eggert@twinsun.com>
4474
4475         From a suggestion by Bruno Haible.
4476         * mbstate_t.m4 (AC_MBSTATE_T):
4477         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
4478         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
4479         and mbstate_t, to a single-part test that simply defines mbstate_t.
4480         * prereq.m4 (jm_PREREQ_QUOTEARG): s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
4481
4482 2000-07-10  Jim Meyering  <meyering@lucent.com>
4483
4484         * strerror_r.m4: Mirror the correction made in autoconf.
4485
4486         * gnu-source.m4: Output to confdefs.h directly.
4487         Suggestion from Akim Demaille.
4488
4489 2000-07-09  Jim Meyering  <meyering@lucent.com>
4490
4491         * jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
4492         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
4493
4494         * gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
4495         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
4496
4497 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
4498
4499         * strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
4500         to strerror_r.
4501         Include <ctype.h> for use of isalpha.
4502
4503 2000-07-05  Paul Eggert  <eggert@twinsun.com>
4504         and Bruno Haible  <haible@clisp.cons.org>
4505
4506         * mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
4507         only if the test for an object-type mbstate_t fails.  This
4508         prevents us from mistakenly reporting that mbstate_t is a
4509         system object type after we "#define mbstate_t int" to work
4510         around its lack.
4511
4512 2000-07-04  Jim Meyering  <meyering@lucent.com>
4513
4514         * fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
4515         of the deprecated AC_CHECKING.
4516
4517 2000-07-03  Jim Meyering  <meyering@lucent.com>
4518
4519         * check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
4520
4521 2000-07-03  Paul Eggert  <eggert@twinsun.com>
4522
4523         * mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
4524         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
4525
4526 2000-07-02  Jim Meyering  <meyering@lucent.com>
4527
4528         * mbstate_t.m4: Also define mbstate_t, if necessary.
4529
4530         * chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
4531         AC_LIBOBJ(function_name).
4532         * chown.m4: Likewise.
4533         * fnmatch.m4: Likewise.
4534         * ftruncate.m4: Likewise.
4535         * getgroups.m4: Likewise.
4536         * getline.m4: Likewise.
4537         * group-member.m4: Likewise.
4538         * jm-macros.m4: Likewise.
4539         * lstat.m4: Likewise.
4540         * malloc.m4: Likewise.
4541         * memcmp.m4: Likewise.
4542         * nanosleep.m4: Likewise.
4543         * putenv.m4: Likewise.
4544         * realloc.m4: Likewise.
4545         * regex.m4: Likewise.
4546         * stat.m4: Likewise.
4547         * strftime.m4: Likewise.
4548
4549 2000-07-01  Jim Meyering  <meyering@lucent.com>
4550
4551         * ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
4552         problem.
4553
4554 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
4555
4556         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
4557         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
4558
4559 2000-07-01  Jim Meyering  <meyering@lucent.com>
4560
4561         * uptime.m4: Put double quotes around use of $cross_compiling.
4562
4563 2000-06-28  Jim Meyering  <meyering@lucent.com>
4564
4565         * mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not included
4566         by quotearg.c, for which we perform this test.  From Bruno Haible.
4567
4568 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
4569
4570         * check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
4571         * prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
4572         <utmpx.h> exists, put readutmp.o into LIBOBJS.
4573
4574 2000-06-25  Jim Meyering  <meyering@lucent.com>
4575
4576         * mbstate_t.m4: Include stdio.h before wchar.h to work around
4577         Linux header bug when _XOPEN_SOURCE is defined to 500.
4578
4579 2000-06-24  Jim Meyering  <meyering@lucent.com>
4580
4581         * strerror_r.m4: Revive this file -- to try out an experimental
4582         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
4583         for which strerror does return char*, but which lacks a conveniently
4584         accessible declaration of the function.  If the compile-test says
4585         strerror_r doesn't work, then resort to a `run'-test that works on
4586         BeOS and segfaults on DEC Unix.
4587
4588 2000-06-19  Paul Eggert  <eggert@twinsun.com>
4589
4590         * mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
4591         * prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
4592
4593 2000-06-23  Jim Meyering  <meyering@lucent.com>
4594
4595         * afs.m4: Add missing AC_MSG_RESULT.
4596         Reported by Bruno Haible.
4597
4598         * fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
4599         Suggestion from Bruno Haible.
4600
4601 2000-06-21  Jim Meyering  <meyering@lucent.com>
4602
4603         * jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
4604
4605 2000-06-18  Jim Meyering  <meyering@lucent.com>
4606
4607         * jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
4608
4609         * link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
4610         `checking whether...' message to be consistent with that of the
4611         lstat test.
4612
4613 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
4614
4615         * glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
4616
4617 2000-06-12  Jim Meyering  <meyering@lucent.com>
4618
4619         * getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with AC_FUNC_GETLOADAVG
4620         from autoconf, and tweak the latter to accept an optional argument.
4621         * jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
4622         the optional argument, `lib'.
4623
4624 2000-06-08  Jim Meyering  <meyering@lucent.com>
4625
4626         * largefile.m4: Remove file (now that it's part of autoconf).
4627
4628 2000-06-04  Paul Eggert  <eggert@twinsun.com>
4629
4630         Rewrite largefile configuration so that we don't need to run
4631         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
4632         AC_CANONICAL_HOST in configure.in -- jmm]
4633
4634         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
4635         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
4636         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
4637         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
4638         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
4639         All uses changed.
4640         Instead of inspecting the output of getconf, try to compile the
4641         test program without and with the macro definition.
4642         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
4643         for getconf.  Instead, check for the needed flags by compiling
4644         test programs.
4645
4646 2000-06-03  Jim Meyering  <meyering@lucent.com>
4647
4648         * prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
4649         now that autoconf requires that.
4650
4651         * jm-glibc-io.m4: Add a kludge to make autoheader emit the required
4652         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
4653         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
4654
4655 2000-05-26  Bruno Haible  <haible@clisp.cons.org>
4656
4657         * glibc21.m4: New file.
4658         * jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
4659
4660 2000-05-28  Jim Meyering  <meyering@lucent.com>
4661
4662         * jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
4663         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4664         * stat.m4: Likewise.
4665         * lstat.m4: Likewise.
4666         * lstat-slash.m4: Remove file (absorbed into autoconf).
4667
4668         * jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
4669         * strerror_r.m4: Remove file (absorbed into autoconf).
4670
4671 2000-05-26  Jim Meyering  <meyering@lucent.com>
4672
4673         * uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
4674
4675 2000-05-24  Jim Meyering  <meyering@lucent.com>
4676
4677         * prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
4678         autoconf requires that.
4679         * lib-check.m4: Likewise.
4680         * jm-macros.m4: Likewise.
4681         * strftime.m4: Likewise.
4682
4683         * check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in AC_CHECK_DECLS,
4684         now that autoconf requires that.
4685
4686 2000-05-22  Jim Meyering  <meyering@lucent.com>
4687
4688         * stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4689         * lstat.m4: Likewise.
4690
4691 2000-05-20  Jim Meyering  <meyering@lucent.com>
4692
4693         * prereq.m4 (jm_PREREQ_HUMAN): New macro.
4694         (jm_PREREQ): Use it.
4695
4696 2000-05-09  Jim Meyering  <meyering@lucent.com>
4697
4698         * gettext.m4: Rename this...
4699         * libintl.m4: ...to this.
4700
4701 2000-05-06  Jim Meyering  <meyering@lucent.com>
4702
4703         * jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
4704         (AC_REPLACE_FUNCS): Add strnlen.
4705
4706         * rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
4707         * jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
4708
4709         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
4710         AC_SEARCH_LIBS call for nanosleep.
4711         (LIB_NANOSLEEP): Set and AC_SUBST.
4712
4713 2000-05-03  Paul Eggert  <eggert@twinsun.com>
4714
4715         * largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
4716         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
4717         2.1.3 bug.  This avoids a clash when files like regex.c define
4718         _GNU_SOURCE.
4719
4720 2000-05-05  Jim Meyering  <meyering@lucent.com>
4721
4722         * jm-macros.m4 (jm_MACROS): Save and restore LIBS around AC_SEARCH_LIBS
4723         call for clock_gettime.
4724         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
4725
4726         * search-libs.m4: Update from autoconf.
4727
4728         su doesn't work on Solaris 2.6.
4729         * lib-check.m4: When checking for struct spwd.sp_pwdp, also include
4730         <shadow.h>.  Reported by Dragos Harabor.
4731
4732 2000-05-03  Jim Meyering  <meyering@lucent.com>
4733
4734         * check-decl.m4 (AC_CHECK_DECLS): Add strndup.
4735
4736 2000-05-02  Paul Eggert  <eggert@twinsun.com>
4737
4738         * largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
4739         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
4740         compile-time test, rather than inspecting host and OS, to
4741         decide whether to define _LARGEFILE_SOURCE.
4742
4743 2000-05-01  Jim Meyering  <meyering@lucent.com>
4744
4745         * fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
4746
4747         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
4748         Based on a patch from Bruno Haible.
4749
4750 2000-04-18  Jim Meyering  <meyering@lucent.com>
4751
4752         * prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
4753         (jm_PREREQ): Use it.
4754
4755 2000-04-17  Jim Meyering  <meyering@lucent.com>
4756
4757         Get it right :-)
4758         * jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
4759         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
4760         Suggestion from Akim Demaille.
4761
4762 2000-04-14  Jim Meyering  <meyering@lucent.com>
4763
4764         * jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg form
4765         of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets clobbered.
4766
4767 2000-04-13  Jim Meyering  <meyering@lucent.com>
4768
4769         * jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new AH_VERBATIM
4770         to insert required #ifndef into config.h.in.
4771         Suggestion from Akim Demaille.
4772
4773 2000-04-12  Jim Meyering  <meyering@lucent.com>
4774
4775         * getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
4776         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
4777         Christian Krackowizer.
4778
4779         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
4780         * jm-macros.m4 (_GNU_SOURCE): Define.
4781         (AC_SYS_LARGEFILE): Require.
4782         (AM_C_PROTOTYPES): Require.
4783
4784 2000-04-05  Paul Eggert  <eggert@twinsun.com>
4785
4786         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
4787         IRIX if the installer said otherwise.
4788
4789 2000-04-05  Jim Meyering  <meyering@lucent.com>
4790
4791         Portability tweaks required for ultrix4.3.
4792         * check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
4793         (jm_CHECK_DECLS): Add getutent to the list of functions.
4794         (_jm_DECL_HEADERS): Add utmpx.h.
4795         From John David Anglin.
4796
4797         * strftime.m4: Back out the 2000-04-02 change.
4798         Instead of that change, simply undefine putenv in the test program.
4799
4800 2000-04-03  Jim Meyering  <meyering@lucent.com>
4801
4802         * gettext.m4: Fix typo in comment.
4803
4804         * codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
4805         textutils/configure.in).  Suggestion from Paul Eggert.
4806         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
4807
4808 2000-04-02  Paul Eggert  <eggert@twinsun.com>
4809
4810         * strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
4811         variable in the shell rather than using putenv, which isn't
4812         portable.  This avoids the configure-time inter-test dependency
4813         on the potentially-renamed putenv function.
4814
4815 2000-03-30  Paul Eggert  <eggert@twinsun.com>
4816
4817         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
4818         before checking struct stat.st_blksize, so that
4819         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
4820
4821 2000-03-29  Paul Eggert  <eggert@twinsun.com>
4822
4823         * strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
4824         since strftime.c uses HAVE_STRFTIME to decide whether to use
4825         the underlying strftime.
4826
4827 2000-03-10  Jim Meyering  <meyering@lucent.com>
4828
4829         * lib-check.m4: Look for getspnam in -lgen, too.
4830         From Marco Franzen.
4831
4832 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
4833
4834         * codeset.m4: New file.
4835         * iconv.m4: New file.
4836         * jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
4837
4838 2000-03-04  Jim Meyering  <meyering@lucent.com>
4839
4840         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
4841         for lib/localcharset.c.
4842
4843 2000-03-03  Jim Meyering  <meyering@lucent.com>
4844
4845         * regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
4846
4847 2000-03-02  Jim Meyering  <meyering@lucent.com>
4848
4849         * timespec.m4: Require AC_HEADER_TIME before the cache check so
4850         the messages come out on separate lines.
4851
4852         * jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
4853         rather than jm_CHECK_DECLARATIONS.
4854         * decl.m4: Remove now-unused file.
4855
4856         * check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and geteuid.
4857
4858 2000-02-27  Jim Meyering  <meyering@lucent.com>
4859
4860         * check-decl.m4: Add getenv to the list.
4861
4862 2000-02-23  Jim Meyering  <meyering@lucent.com>
4863
4864         * check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
4865         in place of my hack.
4866
4867 2000-02-10  Jim Meyering  <meyering@lucent.com>
4868
4869         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
4870         gnu_nanosleep to rpl_nanosleep.
4871
4872 2000-02-09  Jim Meyering  <meyering@lucent.com>
4873
4874         * lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
4875         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
4876
4877 2000-02-08  Akim Demaille  <akim@epita.fr>
4878
4879         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
4880         `[' and `]' and remove uses of `changequote'.
4881         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
4882         (AC_SYS_LARGEFILE): Likewise.
4883         * gettext.m4 (AM_GNU_GETTEXT): Likewise.
4884         * strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
4885         of changequote.
4886         * regex.m4 (jm_INCLUDED_REGEX): Likewise.
4887         * readdir.m4 (jm_FUNC_READDIR): Likewise
4888         * memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
4889         * getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
4890
4891 2000-02-05  Jim Meyering  <meyering@lucent.com>
4892
4893         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
4894         Remove explicit use of AC_HEADER_TIME.  It is required by
4895         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
4896         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
4897         in autoconf whereby the expansion of the latter ended up preceding
4898         the expansion of its prerequisite, AC_HEADER_TIME.
4899         Reported by Volker Borchert.
4900
4901 2000-02-03  Jim Meyering  <meyering@lucent.com>
4902
4903         * prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
4904
4905 2000-02-02  Jim Meyering  <meyering@lucent.com>
4906
4907         * prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
4908         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
4909         Reported by Eli Zaretskii.
4910
4911 2000-01-31  Jim Meyering  <meyering@lucent.com>
4912
4913         * check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
4914         functions.  Add the time.h and sys/time.h headers along with the
4915         AC_REQUIRE'ment of AC_HEADER_TIME.
4916
4917 2000-01-30  Jim Meyering  <meyering@lucent.com>
4918
4919         * lib-check.m4: Clean up some kludgy old shadow password tests.
4920
4921         * prereq.m4 (utmp_includes): Define.
4922         Check for ut_user and ut_name members in both struct utmpx
4923         and struct utmp.
4924
4925 2000-01-29  Jim Meyering  <meyering@lucent.com>
4926
4927         * lib-check.m4: New file containing library-related checks from
4928         fileutils and sh-utils (textutils had none).
4929
4930 2000-01-28  Jim Meyering  <meyering@lucent.com>
4931
4932         * perl.m4: Change format of warning message to look more like that
4933         from the missing script.  Suggestion from François Pinard.
4934
4935 2000-01-25  Jim Meyering  <meyering@lucent.com>
4936
4937         * timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as well
4938         as time.h in the compile check.
4939         * nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
4940         Fix typo in cross-compiling case: s/yes/no/.
4941
4942 2000-01-23  Jim Meyering  <meyering@lucent.com>
4943
4944         * jm-macros.m4: Move df-related tests here from fileutils/configure.in
4945
4946         * ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
4947         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
4948
4949         * fsusage.m4: New file.  Extracted from fileutils/configure.in.
4950         s/space/ac_fsusage_space/.
4951         (jm_FILE_SYSTEM_USAGE): Take two parameters.
4952
4953         * ftruncate.m4: New file (derived from part of fileutils/configure.in).
4954         * jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
4955         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
4956
4957         * jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
4958         AC_SUBST these here, rather than just in sh-util/configure.in, so
4959         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
4960         all the same.
4961         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
4962         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
4963         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
4964         (AC_SUBST(POW_LIBM)): Likewise.
4965         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
4966
4967 2000-01-22  Jim Meyering  <meyering@lucent.com>
4968
4969         * jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
4970
4971         * prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
4972
4973         * jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
4974         configure.in
4975         (AC_CHECK_HEADERS): Likewise for sh-utils.
4976         (AC_CHECK_HEADERS): Likewise for textutils.
4977         Merge the three lists of headers.
4978
4979         * prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
4980         from fileutils' configure.in.
4981
4982         * decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)' code.
4983         Moved tests into their own function (_jm_DECL_HEADERS) in check-decl.m4.
4984
4985         * check-decl.m4: Use #if rather than #ifdef.
4986         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
4987         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
4988         (_jm_DECL_HEADERS): Define new function.
4989         (jm_CHECK_DECLARATIONS): Require it.
4990
4991 2000-01-19  Jim Meyering  <meyering@lucent.com>
4992
4993         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
4994         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
4995         defines `struct timespec' in <sys/time.h>
4996
4997         * c-bs-a.m4: Remove uses of changequote altogether.
4998         Thanks to Akim for explaining.
4999
5000 2000-01-16  Jim Meyering  <meyering@lucent.com>
5001
5002         * jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
5003         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
5004         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
5005         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
5006
5007 2000-01-16  Jim Meyering  <meyering@lucent.com>
5008
5009         * c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
5010         because the latter didn't work.
5011
5012 2000-01-15  Jim Meyering  <meyering@lucent.com>
5013
5014         * jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
5015         (AC_REPLACE_FUNCS): Add memcpy and memset.
5016         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
5017         Add strpbrk.
5018         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
5019
5020 2000-01-12  Jim Meyering  <meyering@lucent.com>
5021
5022         * prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
5023         (jm_PREREQ): Use it.
5024         (jm_PREREQ_READUTMP): New macro.
5025         (jm_PREREQ): Use it.
5026
5027 2000-01-11  Paul Eggert  <eggert@twinsun.com>
5028
5029         Quote multibyte characters correctly.
5030         * c-bs-a.m4: New file.
5031         * prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
5032         (jm_PREREQ): Use it.
5033
5034 2000-01-11  Paul Eggert  <eggert@twinsun.com>
5035
5036         * uintmax_t.m4: Port to autoconf 2.13.
5037
5038 2000-01-08  Jim Meyering  <meyering@ascend.com>
5039
5040         * strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
5041         * jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
5042
5043 2000-01-04  Jim Meyering  <meyering@ascend.com>
5044
5045         * d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
5046         jm_STRUCT_DIRENT_D_TYPE.
5047         * d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
5048         jm_STRUCT_DIRENT_D_INO.
5049         * utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
5050         jm_STRUCT_UTIMBUF.
5051         * jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/ renamings.
5052         * utime.m4: Likewise.
5053
5054         * timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
5055         * jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
5056
5057 2000-01-03  Paul Eggert  <eggert@twinsun.com>
5058
5059         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
5060         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
5061
5062 2000-01-02  Jim Meyering  <meyering@ascend.com>
5063
5064         * search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
5065         remember if this is necessary.
5066
5067 1999-12-26  Jim Meyering  <meyering@ascend.com>
5068
5069         * jm-macros.m4: Use it here.
5070         * nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
5071
5072 1999-12-23  Jim Meyering  <meyering@ascend.com>
5073
5074         * jm-macros.m4: Check for clock_gettime (moved from
5075         fileutils/configure.in)
5076         Check for gettimeofday.
5077
5078 1999-12-20  Jim Meyering  <meyering@ascend.com>
5079
5080         * strftime.m4: Remove kludge, now that I'm using the fixed
5081         autoconf-2.14a-1999-12-20.
5082
5083 1999-12-19  Jim Meyering  <meyering@ascend.com>
5084
5085         * lstat-slash.m4: New file.
5086         * jm-macros.m4: Use the new macro:
5087         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5088
5089 1999-12-07  Jim Meyering  <meyering@ascend.com>
5090
5091         * perl.m4: Require that File::Compare be available, too.
5092         Too many systems seem to lack it.
5093
5094         * strftime.m4: Add checks for most of the cpp macros tested in
5095         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
5096
5097 1999-11-18  Paul Eggert  <eggert@twinsun.com>
5098
5099         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
5100         problem with the QNX 4.25 shell, which doesn't propagate exit
5101         status of failed commands inside shell assignments.
5102
5103 1999-11-17  Jim Meyering  <meyering@ascend.com>
5104
5105         * gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
5106
5107 1999-11-07  Jim Meyering  <meyering@ascend.com>
5108
5109         * getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
5110
5111 1999-11-06  Jim Meyering  <meyering@ascend.com>
5112
5113         * link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
5114         * jm-macros.m4 (jm_MACROS): Use it here.
5115
5116 1999-11-05  Jim Meyering  <meyering@ascend.com>
5117
5118         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from configure.in
5119         of textutils, fileutils, and sh-utils into this one (shared between
5120         those packages) file.
5121         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
5122         AC_STRUCT_ST_BLKSIZE.
5123
5124 1999-11-03  Jim Meyering  <meyering@ascend.com>
5125
5126         * ssize_t.m4: Remove file.  No longer needed since the new version of
5127         AC_CHECK_TYPE checks includes unistd.h.
5128         * jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
5129         Suggestion from Akim Demaille.
5130
5131 1999-10-30  Jim Meyering  <meyering@ascend.com>
5132
5133         * uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
5134         m4-quoted string.
5135         * ls-mntd-fs.m4: Likewise.
5136         * jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
5137         * jm-winsz1.m4: Likewise.
5138
5139         * const.m4: Remove file, since the fix made it into the experimental
5140         version of autoconf.
5141         * mktime.m4: Likewise.
5142
5143         * check-type.m4: Remove file, now that the latest version of
5144         AC_CHECK_TYPE takes a third arg to specify additional #includes.
5145
5146         * ssize_t.m4: New file, requires experimental version of autoconf.
5147         * jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
5148         AC_CHECK_TYPE.
5149
5150 1999-10-04  Jim Meyering  <meyering@ascend.com>
5151
5152         * jm-macros.m4: Don't require autoconf-2.14.1.
5153
5154 1999-09-22  Paul Eggert  <eggert@twinsun.com>
5155
5156         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
5157         2.95.1 bug with HP-UX 10.20.
5158
5159 1999-09-17  Jim Meyering  <meyering@ascend.com>
5160
5161         * jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
5162         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
5163         due to missing strdup (against sh-utils-2.0).
5164
5165 1999-08-29  Jim Meyering  <meyering@ascend.com>
5166
5167         * jm-macros.m4: Require jm_BISON.
5168         * bison.m4: New file.
5169
5170 1999-08-17  Paul Eggert  <eggert@twinsun.com>
5171
5172         * largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
5173         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
5174
5175 1999-08-05  Jim Meyering  <meyering@ascend.com>
5176
5177         * getline.m4: Rename test file from conftestdata to conftest.data
5178         to avoid conflicts with `conftest' on 8+3 filesystems.
5179         Suggestion from Eli Zaretskii.
5180
5181 1999-08-04  Jim Meyering  <meyering@ascend.com>
5182
5183         * jm-macros.m4: Move a 4-line block of code from the configure.in of
5184         fileutils and sh-utils (textutils's getline test was inadequate).
5185         (AM_FUNC_GETLINE): Run this test.
5186         (AC_CHECK_FUNCS): Check for getdelim.
5187         Reported by Bob Proulx.
5188
5189 1999-08-02  Jim Meyering  <meyering@ascend.com>
5190
5191         * jm-macros.m4: Add a comment.
5192
5193 1999-08-01  Jim Meyering  <meyering@ascend.com>
5194
5195         * mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from m4.
5196
5197 1999-08-01  Paul Eggert  <eggert@twinsun.com>
5198
5199         * lfs.m4: Remove this file.
5200         * largefile.m4: New file.  It contains the old contents of
5201         lfs.m4, except that all names with prefix AC_LFS have been
5202         changed to use the prefix AC_SYS_LARGEFILE instead, to be
5203         compatible with future autoconf versions.  Also, some minor m4
5204         quoting problems have been fixed.
5205
5206 1999-07-16  Paul Eggert  <eggert@twinsun.com>
5207
5208         * ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
5209         that we can shift, multiply and divide unsigned long long
5210         values; Ultrix cc can't do it.
5211
5212 1999-07-14  Paul Eggert  <eggert@twinsun.com>
5213
5214         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
5215         <inttypes.h> defines strtoumax as a macro (and not as a
5216         function).
5217
5218 1999-07-05  Paul Eggert  <eggert@twinsun.com>
5219
5220         * gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
5221         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
5222         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
5223         and simplify the shell code.
5224
5225 1999-07-03  Paul Eggert  <eggert@twinsun.com>
5226
5227         * mktime.m4: New file, which is a preview of what should appear
5228         in the next public autoconf release.
5229
5230 1999-07-20  Jim Meyering  <meyering@ascend.com>
5231
5232         * jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
5233
5234 1999-07-15  Jim Meyering  <meyering@ascend.com>
5235
5236         * jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
5237
5238 1999-05-22  Jim Meyering  <meyering@ascend.com>
5239
5240         * jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
5241
5242 1999-05-20  Jim Meyering  <meyering@ascend.com>
5243
5244         * search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
5245         Add a colon after each `then' in case $4 is empty.
5246
5247 1999-05-16  Jim Meyering  <meyering@ascend.com>
5248
5249         * search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
5250
5251 1999-05-10  Jim Meyering  <meyering@ascend.com>
5252
5253         * jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
5254
5255         * jm-macros.m4: Require 2.14.1, since we use newly-renamed
5256         AC_FUNC_MKTIME.
5257
5258 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
5259
5260         * jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
5261
5262 1999-05-04  Paul Eggert  <eggert@twinsun.com>
5263
5264         * lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
5265         not CPPFLAGS, so that linking works correctly in IRIX.
5266
5267 1999-04-30  Paul Eggert  <eggert@twinsun.com>
5268
5269         * jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
5270
5271 1999-04-20  Jim Meyering  <meyering@ascend.com>
5272
5273         * xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
5274         AC_REPLACE xstroull if necessary.  From Paul Eggert.
5275         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
5276
5277 1999-04-20  Paul Eggert  <eggert@twinsun.com>
5278
5279         * uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
5280         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
5281         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
5282         jm_AC_TYPE_UNSIGNED_LONG_LONG.
5283         * ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
5284
5285         * lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
5286
5287 1999-04-18  Jim Meyering  <meyering@ascend.com>
5288
5289         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
5290         * jm-macros.m4: Use it.
5291
5292 1999-04-06  Jim Meyering  <meyering@ascend.com>
5293
5294         * strftime.m4: Remove test for %f.
5295
5296 1999-03-29  Jim Meyering  <meyering@ascend.com>
5297
5298         * jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
5299         superset of the AC_TYPE_* checks in the textutils, fileutils,
5300         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
5301         AC_TYPE_PID_T.
5302
5303 1999-03-28  Jim Meyering  <meyering@ascend.com>
5304
5305         * jm-macros.m4: Define GNU_PACKAGE here.
5306         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
5307         replaced e.g., in the *.sh files of the sh-utils.
5308
5309 1999-03-20  Jim Meyering  <meyering@ascend.com>
5310
5311         * jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
5312         * regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
5313         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
5314
5315 1999-03-19  Jim Meyering  <meyering@ascend.com>
5316
5317         * jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
5318
5319 1999-03-12  Jim Meyering  <meyering@ascend.com>
5320
5321         * jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
5322
5323 1999-03-07  Jim Meyering  <meyering@ascend.com>
5324
5325         * jm-glibc-io.m4: Use only those *_unlocked macros that are declared.
5326
5327 1999-02-17  Jim Meyering  <meyering@ascend.com>
5328
5329         * gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of brackets
5330         in macro definition.  From Eli Zaretskii and Alain Magloire.
5331
5332 1999-02-07  Jim Meyering  <meyering@ascend.com>
5333
5334         * group-member.m4: New file -- extracted from sh-utils' configure.in.
5335
5336         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
5337         * gettext.m4: Support DOS-style d:/foo/bar absolute file names.
5338
5339 1999-02-06  Jim Meyering  <meyering@ascend.com>
5340
5341         * chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
5342         * fnmatch.m4: Likewise.
5343         * getgroups.m4: Likewise.
5344         * lstat.m4: Likewise.
5345         * malloc.m4: Likewise.
5346         * putenv.m4: Likewise.
5347         * realloc.m4: Likewise.
5348         * regex.m4: Likewise.
5349         * stat.m4: Likewise.
5350         * strftime.m4: Likewise.
5351         Suggestion from Alain Magloire.
5352
5353         * chown.m4: Use `.$ac_objext', not `.o'.
5354         * fnmatch.m4: Likewise.
5355         * getgroups.m4: Likewise.
5356         * getline.m4: Likewise.
5357         * lstat.m4: Likewise.
5358         * malloc.m4: Likewise.
5359         * memcmp.m4: Likewise.
5360         * putenv.m4: Likewise.
5361         * realloc.m4: Likewise.
5362         * regex.m4: Likewise.
5363         * stat.m4: Likewise.
5364         * strftime.m4: Likewise.
5365         Suggestion from Alain Magloire.
5366
5367         * jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
5368         an argument.
5369
5370         * regex.m4: Add a run-time Test for proper operation of
5371         re_compile_pattern.
5372
5373 1999-01-31  Jim Meyering  <meyering@ascend.com>
5374
5375         * getloadavg.m4: Check for locale.h and the function, setlocale.
5376
5377 1999-01-30  Jim Meyering  <meyering@ascend.com>
5378
5379         * check-type.m4: Use 3-arg form of AC_DEFINE.
5380
5381         * jm-mktime.m4: Make this a wrapper around the official AM_FUNC_MKTIME
5382         rather than my private copy, now that the official one is up to date.
5383         * mktime.m4: Remove file.
5384
5385         * getloadavg.m4: Use 3-arg form of AC_DEFINE.
5386         * uptime.m4: Likewise.
5387         * uintmax_t.m4: Likewise.
5388
5389 1999-01-28  Jim Meyering  <meyering@ascend.com>
5390
5391         * jm-macros.m4: Use jm_AFS.
5392         * afs.m4: New file (from fileutils' configure.in).
5393
5394         * assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
5395         * chown.m4: Likewise.
5396         * d-ino.m4: Likewise.
5397         * d-type.m4: Likewise.
5398         * fnmatch.m4: Likewise.
5399         * getgroups.m4: Likewise.
5400         * gettext.m4: Likewise.
5401         * jm-mktime.m4: Likewise.
5402         * jm-winsz2.m4: Likewise.
5403         * lcmessage.m4: Likewise.
5404         * ls-mntd-fs.m4: Likewise.
5405         * malloc.m4: Likewise.
5406         * memcmp.m4: Likewise.
5407         * putenv.m4: Likewise.
5408         * realloc.m4: Likewise.
5409         * st_mtim.m4: Likewise.
5410         * strftime.m4: Likewise.
5411
5412 1999-01-16  Jim Meyering  <meyering@ascend.com>
5413
5414         * jm-macros.m4 (ARGMATCH_DIE): Define.
5415         (ARGMATCH_DIE_DECL): Define.
5416
5417 1999-01-12  Jim Meyering  <meyering@ascend.com>
5418
5419         * Makefile.am.in: Rewrite to avoid using fmt.
5420         Reported by Lars Hecking.
5421
5422 1999-01-10  Jim Meyering  <meyering@ascend.com>
5423
5424         * fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
5425         gross kludge.
5426         * inttypes_h.m4: Likewise.
5427         * lstat.m4: Likewise.
5428         * malloc.m4: Likewise.
5429         * readdir.m4: Likewise.
5430         * realloc.m4: Likewise.
5431         * st_dm_mode.m4: Likewise.
5432         * stat.m4: Likewise.
5433         * utimbuf.m4: Likewise.
5434         * utimes.m4: Likewise.
5435
5436         * check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
5437         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
5438         comments in config.h.in are meaningful.
5439
5440         * jm-macros.m4: Require autoconf-2.13 here.
5441
5442         * regex.m4: By default, don't use the included regex.c on systems
5443         with glibc 2.  Suggestion from Uli Drepper.
5444
5445 1999-01-02  Jim Meyering  <meyering@ascend.com>
5446
5447         * jm-macros.m4: Replace strcasecmp and strncasecmp.
5448
5449 1998-12-18  Jim Meyering  <meyering@ascend.com>
5450
5451         * Makefile.am.in (Makefile.am): Simplify rule.
5452         Based on a suggestion from Lars Hecking.
5453
5454 1998-11-16  Jim Meyering  <meyering@ascend.com>
5455
5456         * lfs.m4: Double-quote the `uname...` expression.
5457
5458 1998-11-16  Paul Eggert  <eggert@twinsun.com>
5459
5460         * lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
5461
5462 1998-11-14  Jim Meyering  <meyering@ascend.com>
5463
5464         * lstat.m4: Correct comment.  POSIX does not permit it to succeed.
5465         * stat.m4: Likewise.
5466
5467 1998-11-03  Jim Meyering  <meyering@ascend.com>
5468
5469         * stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
5470         * lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
5471
5472 1998-10-18  Jim Meyering  <meyering@ascend.com>
5473
5474         * check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
5475
5476 1998-10-17  Jim Meyering  <meyering@ascend.com>
5477
5478         * decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
5479         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
5480         calls for those previously hard-coded headers.  Instead, take a new
5481         parameter.
5482         (jm_CHECK_DECLARATIONS): Reflect interface change.
5483         * check-decl.m4 (jm_CHECK_DECLS): Likewise.
5484         (jm_CHECK_DECL_LOCALTIME_R): New macro.
5485
5486         * mktime.m4: Test for spring-forward gap before long-running test.
5487
5488 1998-10-14  Jim Meyering  <meyering@ascend.com>
5489
5490         * mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
5491         instead of "TZ=America/Vancouver".  From Paul Eggert.
5492
5493 1998-10-11  Jim Meyering  <meyering@ascend.com>
5494
5495         * mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
5496         This adds a test for a recently added compatibility fix for mktime.c.
5497         * jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
5498
5499 1998-09-27  Jim Meyering  <meyering@ascend.com>
5500
5501         * jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
5502
5503         * fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
5504         ../configure.in, including a change from Gordon Matzigkeit to allow
5505         cross-compiling for the Hurd.
5506
5507         * glibc.m4: New file/macro to test for the GNU C Library
5508         versions 1 and 2.  From Gordon Matzigkeit.
5509         Indent.
5510
5511 1998-09-21  Jim Meyering  <meyering@ascend.com>
5512
5513         * chown.m4: Declare locals: before, after.  From Andries Brouwer.
5514
5515 1998-08-18  Paul Eggert  <eggert@twinsun.com>
5516
5517         Port nanosecond-resolution times to UnixWare 2.1.2 and
5518         pedantic Solaris 2.6.
5519
5520         * st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
5521         AC_STRUCT_ST_MTIM.
5522         * st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
5523         Generate name of ns member, instead of just 1 or undef.
5524         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
5525
5526 1998-08-15  Jim Meyering  <meyering@ascend.com>
5527
5528         * ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
5529         * check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
5530         * jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
5531         instead of jm_TYPE_SSIZE_T.
5532
5533 1998-08-12  Jim Meyering  <meyering@ascend.com>
5534
5535         * st_dm_mode.m4: New file.  From Johan Danielsson.
5536
5537 1998-08-02  Jim Meyering  <meyering@ascend.com>
5538
5539         * st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
5540         in acconfig.h manually.
5541
5542 1998-07-31  Paul Eggert  <eggert@twinsun.com>
5543
5544         * st_mtim.m4: New file.
5545
5546 1998-07-28  Jim Meyering  <meyering@ascend.com>
5547
5548         * utimes.m4: Undef stat.
5549
5550 1998-07-25  Jim Meyering  <meyering@ascend.com>
5551
5552         * utime.m4 (jm_FUNC_UTIME): New file and macro.
5553         * utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
5554
5555 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
5556
5557         * chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
5558         uid and gid actually remain unchanged.
5559
5560 1998-07-07  Jim Meyering  <meyering@ascend.com>
5561
5562         * jm-glibc-io.m4: Remove fclose_unlocked.
5563
5564 1998-07-04  Jim Meyering  <meyering@ascend.com>
5565
5566         * regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
5567         to prove that this macro can be used in packages without regex.c.
5568
5569 1998-07-02  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5570
5571         * gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
5572         is to be used.
5573
5574 1998-07-03  Jim Meyering  <meyering@ascend.com>
5575
5576         * gettext.m4: Add -lintl if it's found to be necessary.
5577
5578         * gettext.m4: New file -- from gettext-0.10.35.
5579         * lcmessage.m4: Likewise.
5580         * progtest.m4: Likewise.
5581
5582         * regex.m4 (jm_WITH_REGEX): New file and macro.
5583         * jm-macros.m4: Require the new macro.
5584
5585 1998-06-29  Jim Meyering  <meyering@ascend.com>
5586
5587         * fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
5588         for the definition of NGROUPS (used in a system header included
5589         by sys/mount.h).
5590
5591 1998-06-28  Jim Meyering  <meyering@ascend.com>
5592
5593         * ls-mntd-fs.m4: New file.
5594         * fstypename.m4: New file.
5595
5596         * jm-macros.m4: Require the new macro.
5597         * jm-glibc-io.m4: New file.
5598
5599 1998-05-19  Jim Meyering  <meyering@ascend.com>
5600
5601         * jm-macros.m4: Add jm_FUNC_LCHOWN.
5602         * lchown.m4: New file.
5603
5604         * Makefile.am.in: New file.
5605         * Makefile.am (Makefile.am): Depend on Makefile.am.in.
5606
5607 1998-05-14  Jim Meyering  <meyering@ascend.com>
5608
5609         * Makefile.am (EXTRA_DIST): Add them.
5610         * jm-macros.m4: New file.
5611         * utimbuf.m4: New file.
5612
5613 1998-05-12  Jim Meyering  <meyering@ascend.com>
5614
5615         * Makefile.am (EXTRA_DIST): Add isc-posix.m4.
5616
5617 1998-05-11  Jim Meyering  <meyering@ascend.com>
5618
5619         * isc-posix.m4: New file.
5620
5621 1998-05-10  Jim Meyering  <meyering@ascend.com>
5622
5623         * jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
5624
5625 1998-05-09  Jim Meyering  <meyering@ascend.com>
5626
5627         * Makefile.am (EXTRA_DIST): Add ssize_t.m4.
5628         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
5629         with automake.
5630
5631         * ssize_t.m4: New file.
5632         * mktime.m4: Remove file -- the new automake has this now.
5633
5634 1998-04-26  Jim Meyering  <meyering@ascend.com>
5635
5636         * assert.m4: New file.
5637         * Makefile.am (EXTRA_DIST): Add assert.m4.
5638
5639 1998-04-05  Jim Meyering  <meyering@ascend.com>
5640
5641         * prereq.m4 (jm_PREREQ_REGEX): New macro.
5642         (jm_PREREQ): Use it here.
5643
5644 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
5645
5646         * inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
5647         in acconfig.h.
5648
5649 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
5650
5651         * prereq.m4: New file.
5652         * error.m4: New file.
5653         * Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
5654
5655 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
5656
5657         * getline.m4: Don't set am_cv_func_working_getline before the
5658         cache-check for the same variable -- that defeated the purpose of
5659         the test; the test program was never run.  This was a problem only
5660         on systems with losing getline functions -- HP-UX 10.20 is one.
5661         Reported by Bjorn Helgaas.
5662
5663 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
5664
5665         * Makefile.am (EXTRA_DIST): Add perl.m4.
5666
5667 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
5668
5669         * Makefile.am (EXTRA_DIST): Add const.m4.
5670
5671         * const.m4: New file.  Use an initializer in this declaration
5672         typedef int charset[2]; const charset x;
5673         Reported by Bob Glickstein.
5674
5675 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
5676
5677         * chown.m4: Fix reversed types on -1 args to chown.
5678         From Kaveh Ghazi.
5679
5680 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
5681
5682         * check-decl.m4: s/DECLARATION_/DECL_/g.
5683         Add lseek and memchr.
5684
5685         * decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
5686         T.E.Dickey <dickey@clark.net> said that some older preprocessors
5687         have a 20-character limit on names.
5688
5689 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
5690
5691         * inttypes_h.m4: New file.
5692         * uintmax_t.m4: New file.
5693         * Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
5694
5695 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
5696   Free Software Foundation, Inc.
5697 Copying and distribution of this file, with or without modification,
5698 are permitted provided the copyright notice and this notice are preserved.