Add copyright and copying conditions.
[pspp] / m4 / ChangeLog
1 2004-11-30  Simon Josefsson  <jas@extundo.com>
2
3         * restrict.m4: Add copyright and copying conditions.
4
5 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6
7         * getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
8         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
9         Use the _ONCE methods, for efficiency.
10         Check for fcntl.h.  In test program, include <errno.h>
11         and <fcntl.h> if available.  Remove old K&R cruft from
12         test program.  Check for common errors in GNU/Linux,
13         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
14         don't do AC_LIBOBJ, as that's getcwd.m4's job.
15         * getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
16         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
17         name accordingly.
18         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
19         accommodate new getcwd.c.
20         * jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
21         * prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
22         * xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
23         that's all we need now.
24
25 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
26
27         * utimens.m4 (gl_UTIMENS): Check for futimes function.
28
29 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30
31         * argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
32         argp-parse.c depends on getopt internals, that means we should
33         always use our getopt, to be on the safe side.
34         * getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
35         order not to spoil the result of an eventual previous invocation
36         of gl_GETOPT_SUBSTITUTE.
37
38 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39
40         * calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc implementations
41         that mishandle size_t overflow.
42
43 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44
45         * canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
46
47 2004-11-13  Jim Meyering  <jim@meyering.net>
48
49         * jm-macros.m4: Do require gl_FUNC_FPENDING.
50
51 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52
53         * getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54         of replacing opterr, getopt, etc.  This should handle the
55         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
56
57 2004-11-11  Simon Josefsson  <jas@extundo.com>
58
59         * strtok_r.m4: New file.
60
61         * getopt.m4: Replace opterr.
62
63 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64
65         * prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
66
67 2004-11-10  Jim Meyering  <jim@meyering.net>
68
69         * jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
70
71 2004-11-08  Simon Josefsson  <jas@extundo.com>
72
73         * getaddrinfo.m4: New file.
74
75 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76
77         * strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78         gl_FUNC_STRFTIME.
79         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80         and AC_REQUIRE when possible, to avoid duplicate checks.
81         Check for <wchar.h>.
82
83 2004-11-09  Bruno Haible  <bruno@clisp.org>
84
85         * sockpfaf.m4: New file.
86
87 2004-11-03  Albert Chin <china@thewrittenword.com>
88             Paul Eggert  <eggert@cs.ucla.edu>
89
90         * uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
91         equivalent, substitute $ac_type for equivalent type rather than
92         blindly using uint32_t *always* which won't work if uint32_t is not
93         available.  Define _UINT32_T to work around typedef of uint32_t if
94         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
95         2.5.1.
96
97 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
98
99         * jm-macros.m4: Sync from coreutils.
100         (gl_MACROS): Check for mbrlen, for pathchk.
101         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
102
103 2004-11-02  Bruno Haible  <bruno@clisp.org>
104
105         * setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
106         returns void.
107
108 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
109
110         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
111         fflush_unlocked, flockfile, funlockfile, funlockfile,
112         fputs_unlocked, putc_unlocked.
113
114 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
115
116         * getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
117
118 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
119
120         * getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
121         implementation of getopt_long.  Problem reported by Alexander Taler in:
122         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
123
124 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125
126         * vsnprintf.m4: New file.
127
128 2004-10-05  Bruno Haible  <bruno@clisp.org>
129
130         * strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
131         for the declaration of strsep.
132
133 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
134
135         * xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
136
137         * unlocked-io.m4: Add copyright notice.
138         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
139
140 2004-10-04  Simon Josefsson  <jas@extundo.com>
141
142         * memmem.m4: New file.
143
144 2004-10-01  Yoann Vandoorselaere <yoann@prelude-ids.org>
145
146         * strsep.m4: New file.
147
148 2004-09-30  Simon Josefsson  <jas@extundo.com>
149
150         * snprintf.m4: New file.
151
152 2004-09-09  Bruno Haible  <bruno@clisp.org>
153
154         * eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
155         modifications.
156         * vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
157
158 2004-09-08  Bruno Haible  <bruno@clisp.org>
159
160         * stdint.m4: New file, taken from GNU clisp with modifications.
161
162 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
163
164         * userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
165
166 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
167
168         * argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
169         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
170         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
171         Check for program_invocation_name, program_invocation_short_name,
172         flockfile, funlockfile, features.h, _getopt_long_only_r.
173
174 2004-08-12  Simon Josefsson  <jas@extundo.com>
175
176         * getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
177         as discussed with Paul Eggert in threads rooted at
178         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
179         and
180         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
181         Before, the test was empty, and relied on ELIDE_CODE in source
182         code.)
183         (gl_PREREQ_GETOPT): New macro.
184         (gl_GETOPT): Use them.
185
186 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
187
188         Merge from coreutils.
189
190         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
191
192         * obstack.m4 (gl_PREREQ_OBSTACK): Require
193         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
194
195 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
196
197         * uint32_t.m4, uintptr_t.m4: New files.
198         * sha1.m4: Renamed from sha.m4.
199         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
200
201 2004-08-08  Simon Josefsson  <jas@extundo.com>
202
203         * getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
204         Check getpass declaration.
205
206 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
207
208         More merge from coreutils.
209
210         * utimens.m4, utimecmp.m4: New files.
211         * backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
212         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
213         prereq.m4, sha.m4: Import changes from coreutils.
214
215 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
216
217         Merge from coreutils.
218
219         * c-strtod.m4, canonicalize.m4, fcntl-safer.m4, getcwd-path-max.m4:
220         New files.
221
222         * dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
223         FILESYSTEM_PREFIX_LEN ->
224         FILE_SYSTEM_PREFIX_LEN.
225         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
226         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
227         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
228         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
229
230         * path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
231         prerequisite modules now handle the DOS stuff.
232         Don't check for unistd.h.
233
234 2004-08-03  Simon Josefsson  <jas@extundo.com>
235
236         * strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
237
238 2004-08-02  Simon Josefsson  <jas@extundo.com>
239
240         * getsubopt.m4: New file.
241
242 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
243
244         * fatal.m4: Remove, as the "fatal" module wasn't used or working.
245
246 2004-07-13  Robert Millan  <robertmh@gnu.org>
247
248         * host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
249
250 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
251
252         * argz.m4: New file, which is autoupdated from libtool.
253
254 2004-06-01  Jim Meyering  <jim@meyering.net>
255
256         * calloc.m4: New file.
257
258 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
259
260         Merge from coreutils CVS.
261
262         * backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
263         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
264         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
265         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
266         xstrtol.m4: Fix copyright date and/or serial number.
267
268         * chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
269         See if we need an fchown replacement.
270         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
271         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
272         and use the replacement function if we detect either defect.
273
274         * prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
275         gl_UTIMECMP.
276
277 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
278
279         * stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
280         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
281         Also, fix a typo in a diagnostic.
282
283 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
284
285         * xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
286         or AC_FUNC_REALLOC.
287
288 2004-05-20  Andreas Schwab  <schwab@suse.de>
289
290         * free.m4: Replace free if it not known to work, not the other
291         way round.
292
293 2004-05-17  Derek R. Price  <derek@ximbiot.com>
294             Paul Eggert  <eggert@cs.ucla.edu>
295
296         * argp: Depend on alloca.
297
298 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
299
300         * alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
301         for backward compatibility with older code.  We need our own
302         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
303         it under some other name, and our alloca.h will define it.
304
305 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
306
307         * gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
308         Check for gettimeofday.
309         * settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
310         Check for settimeofday, stime.
311
312 2004-04-20  Paul Eggert  <eggert@twinsun.com>
313
314         * host-os.m4: Add a copyright notice.
315
316 2004-04-20  Jim Meyering  <jim@meyering.net>
317
318         Change UTILS_ to gl_ in AC_DEFINE'd names.
319         Change utils_- and jm_-prefixed variables, too.
320         * mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
321         UTILS_FUNC_MKDIR_TRAILING_SLASH.
322         * mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
323
324         * dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
325         Don't emit trailing blanks.
326         Also rename jm_-prefixed variables to have gl_ prefix.
327
328         * host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
329         Also rename jm_-prefixed variables to have gl_ prefix.
330
331         * jm-macros.m4: Reflect the renamings.
332         * prereq.m4: Likewise.
333
334 2004-04-19  Jim Meyering  <jim@meyering.net>
335
336         * readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
337         now that readutmp.c may call `free (0)'.
338
339 2004-04-19  Bruno Haible  <bruno@clisp.org>
340
341         * mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
342         * inttypes_h.m4: Likewise.
343         * stdint_h.m4: Likewise.
344         * intmax_t.m4: Likewise.
345         * uintmax_t.m4: Likewise.
346
347 2004-04-18  Jim Meyering  <jim@meyering.net>
348
349         * prereq.m4: Don't forbid jm_ prefix.
350
351         * afs.m4, allocsa.m4, assert.m4, backupfile.m4, bison.m4:
352         * check-decl.m4, chown.m4, d-ino.m4, d-type.m4, dirname.m4, dos.m4:
353         * error.m4, fpending.m4, fstypename.m4, fsusage.m4, ftruncate.m4:
354         * getdate.m4, getgroups.m4, gettext.m4, glibc21.m4, group-member.m4:
355         * human.m4, intmax.m4, intmax_t.m4, inttostr.m4, inttypes.m4:
356         * inttypes_h.m4, jm-macros.m4, jm-winsz1.m4, jm-winsz2.m4, lchown.m4:
357         * lib-check.m4, link-follow.m4, localcharset.m4, longlong.m4:
358         * ls-mntd-fs.m4, lstat.m4, makepath.m4, mbrtowc.m4, mbswidth.m4:
359         * memchr.m4, memcmp.m4, mkdtemp.m4, mkstemp.m4, mountlist.m4:
360         * nanosleep.m4, path-concat.m4, perl.m4, prereq.m4, putenv.m4:
361         * quotearg.m4, regex.m4, stat.m4, stdint_h.m4, strftime.m4:
362         * strtoimax.m4, strtoll.m4, strtoull.m4, strtoumax.m4, timespec.m4:
363         * uintmax_t.m4, ulonglong.m4, unlink-busy.m4, unlocked-io.m4:
364         * uptime.m4, utimbuf.m4, utime.m4, utimes-null.m4, vasnprintf.m4:
365         * xstrtoimax.m4, xstrtol.m4, xstrtoumax.m4:
366         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
367
368 2004-04-16  Jim Meyering  <jim@meyering.net>
369
370         * prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
371         coreutils' stat program.
372         (gl_PREREQ): Don't require jm_PREREQ_STAT.
373
374 2004-03-31  Jim Meyering  <jim@meyering.net>
375
376         * prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
377         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
378         * xalloc.m4: Likewise.
379
380 2004-03-30  Jim Meyering  <jim@meyering.net>
381
382         * realloc.m4: Remove file, since now it does no more than
383         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
384         the `configure.ac' section of module/realloc.
385         * malloc.m4: Likewise, but for AC_FUNC_MALLOC.
386
387 2004-03-30  Paul Eggert  <eggert@twinsun.com>
388
389         Merge from coreutils.
390
391         * inttostr.m4: New file.
392         * getdate.m4 (gl_GETDATE): Remove time-related stuff.
393         Require AM_STDBOOL_H and gl_TIMESPEC instead.
394         Require gl_CLOCK_TIME.
395         * clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
396
397 2004-03-30  Jim Meyering  <jim@meyering.net>
398
399         Merge from coreutils.
400
401         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
402         * ls-mntd-fs.m4: Test for sys/ucred.h separately, since
403         on some systems one must include <grp.h> before it.
404         Reported by Christian Krackowizer.
405
406 2004-03-29  Paul Eggert  <eggert@twinsun.com>
407
408         * cloexec.m4: New file.
409
410 2004-03-18  Paul Eggert  <eggert@twinsun.com>
411             Bruno Haible  <bruno@clisp.org>
412
413         * mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
414         mbswidth.
415
416 2004-03-07  Paul Eggert  <eggert@twinsun.com>
417
418         * c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
419         All uses changed.  Check for sa_sigaction member; this fixes
420         a bug first reported by Jason Andrade in
421         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
422
423 2004-01-18  Simon Josefsson  <jas@extundo.com>
424
425         * strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
426
427 2004-02-18  Bruno Haible  <bruno@clisp.org>
428
429         * xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
430         Reported by Derek Robert Price <derek@ximbiot.com>.
431
432 2004-02-06  Karl Berry  <karl@gnu.org>
433
434         * po.m4: update from gettext 0.14.1.
435
436 2004-02-03  Bruno Haible  <bruno@clisp.org>
437
438         * pipe.m4: New file, from GNU gettext.
439
440 2004-01-27  Bruno Haible  <bruno@clisp.org>
441
442         * execute.m4: New file, from GNU gettext.
443
444 2003-11-24  Bruno Haible  <bruno@clisp.org>
445
446         * allocsa.m4: New file, from GNU gettext.
447
448 2003-11-24  Bruno Haible  <bruno@clisp.org>
449
450         * eealloc.m4: New file, from GNU gettext.
451
452 2004-01-15  Paul Eggert  <eggert@twinsun.com>
453
454         Merge from coreutils.
455
456         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
457         * posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
458         (gl_DEFAULT_POSIX2_VERSION): Move
459         the documentation from 'configure' into 'config.hin',
460         so that 'configure --help' isn't burdened by it and
461         we don't have to worry about its formatting there.
462         Reword the documentation so that it's more succinct
463         and can be run together into a single paragraph.
464         * same.m4 (gl_SAME): Check for pathconf.
465
466 2004-01-15  Jim Meyering  <jim@meyering.net>
467
468         Merge from coreutils.
469
470         * clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
471         if no library is required.
472         * jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
473         * jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
474         * jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
475         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
476         * jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
477         * lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
478         value, $ac_cv_search_crypt, if it's "none required".
479         * posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
480         * prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
481         not gl_FUNC_GETLOADAVG.
482         * prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
483         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
484
485 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
486
487         Merge from coreutils.
488
489         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
490         value, $ac_cv_search_nanosleep, if it's "none required".
491
492 2003-12-03  Bruno Haible  <bruno@clisp.org>
493
494         * gettext.m4: Upgrade from gettext-0.13.
495         * po.m4: Upgrade from gettext-0.13.
496         * size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
497         * intmax.m4: New file, from gettext-0.13.
498         * printf-posix.m4: New file, from gettext-0.13.
499
500 2003-11-25  Bruno Haible  <bruno@clisp.org>
501
502         * vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
503         gt_TYPE_SSIZE_T.
504
505 2003-11-17  Bruno Haible  <bruno@clisp.org>
506
507         * vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
508
509 2003-11-12  Paul Eggert  <eggert@twinsun.com>
510
511         * xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
512         gl_PTRDIFF_MAX.
513
514 2003-11-11  Bruno Haible  <bruno@clisp.org>
515
516         * size_max.m4: New file.
517         * ptrdiff_max.m4: New file.
518         * xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
519         * xalloc.m4 (gl_PREREQ_XALLOC): New macro.
520         (gl_XALLOC): Invoke it.
521
522 2003-11-04  Bruno Haible  <bruno@clisp.org>
523
524         * xsize.m4: New file.
525
526 2003-11-03  Bruno Haible  <bruno@clisp.org>
527
528         * wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
529
530 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
531
532         * host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
533         netbsd*-gnu*.  Suggested by Robert Millan.
534
535 2003-10-29  Paul Eggert  <eggert@twinsun.com>
536
537         * xalloc.m4 (gl_XALLOC): Undo previous change.
538
539 2003-10-29  Paul Eggert  <eggert@twinsun.com>
540
541         * host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
542         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
543         after the 'gnu' in these cases.  This fixes some bugs in the
544         previous change, and is based on suggestions by Robert Millan.
545
546 2003-10-28  Paul Eggert  <eggert@twinsun.com>
547
548         * host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
549         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
550         NetBSD kernels.  Requested by Richard Stallman.
551
552 2003-10-26  Paul Eggert  <eggert@twinsun.com>
553
554         * xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
555         now uses inline.
556
557 2003-10-23  Paul Eggert  <eggert@twinsun.com>
558
559         * getline.m4 (AM_FUNC_GETLINE):
560         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
561         hosts.  Problem reported by Derek Robert Price in
562         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
563         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
564         * getndelim2.m4 (gl_GETNDELIM2): Likewise.
565
566 2003-10-20  Bruno Haible  <bruno@clisp.org>
567
568         * wait-process.m4: New file.
569
570 2003-10-14  Bruno Haible  <bruno@clisp.org>
571
572         * sig_atomic_t: New file, from GNU gettext.
573         * fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
574
575 2003-10-12  Paul Eggert  <eggert@twinsun.com>
576
577         * xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
578
579 2003-10-10  Simon Josefsson  <jas@extundo.com>
580
581         * argp.m4: Add AC_C_INLINE.
582
583 2003-10-08  Paul Eggert  <eggert@twinsun.com>
584
585         * getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
586
587 2003-10-06  Bruno Haible  <bruno@clisp.org>
588
589         * fatal-signal.m4: New file.
590         * signalblocking.m4: New file, from GNU gettext.
591
592 2003-09-27  Paul Eggert  <eggert@twinsun.com>
593
594         * free.m4: New file.
595
596 2003-09-26  Bruno Haible  <bruno@clisp.org>
597
598         * stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX stpncpy().
599         Don't define stpncpy through config.h; it's now done through stpncpy.h.
600
601 2003-09-25  Simon Josefsson  <jas@extundo.com>
602             Bruno Haible  <bruno@clisp.org>
603
604         * getdomainname.m4: New file.
605
606 2003-09-17  Paul Eggert  <eggert@twinsun.com>
607
608         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
609         to avoid spurious warnings like "AC_RUN_IFELSE was called before
610         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
611
612 2003-09-12  Paul Eggert  <eggert@twinsun.com>
613
614         * error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
615
616         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
617         and AC_MINIX, too, so that their extensions are available.
618
619         * prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
620         This macro has been superseded by gl_BACKUPFILE.
621
622         More patches to assume C89 or better.
623
624         * error.m4 (gl_ERROR): Don't check for vprintf.
625
626         * check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
627         unconditionally.
628         * closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
629         * gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
630         Include <string.h>, <stdlib.h> unconditionally.
631         * lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
632         * readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
633         * readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C headers
634         or for string.h.
635         * strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
636         or strtoul.
637
638         * mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C headers.
639         * strdup.m4 (gl_PREREQ_STRDUP): Likewise.
640         * userspec.m4 (gl_USERSPEC): Likewise.
641         * xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
642         * xstrtod.m4 (gl_XSTRTOD): Likewise.
643         * xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
644         * strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
645         memcpy, memset.
646         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
647         * strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
648         * strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h, strtol.
649         * strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
650         * userspec.m4 (gl_USERSPEC): Do not check for string.h.
651         * xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
652         strtoul.
653
654 2003-09-11  Paul Eggert  <eggert@twinsun.com>
655
656         More patches to assume C89 or better.
657         * strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
658         * strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
659         string.h, memchr, STDC_HEADERS.
660
661 2003-09-10  Bruno Haible  <bruno@clisp.org>
662
663         * strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
664         * strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
665         * strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
666         * unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
667         * setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
668         <stdlib.h> and <string.h> checks.
669         * xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
670         * yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
671
672 2003-09-09  Paul Eggert  <eggert@twinsun.com>
673
674         More patches to assume C89 or better.
675         * getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
676         * getopt.m4 (gl_GETOPT): Don't check for string.h.
677         * getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
678         or for string.h.
679         * getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for stdlib.h.
680         * group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard C
681         headers.
682         * hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
683         string.h.
684         * hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
685         * human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
686         * idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
687         or for string.h.
688         * long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
689         * makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
690         C headers.
691         * md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
692         memcpy.
693         * sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
694         * memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
695         * memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
696         * memcoll.m4 (gl_MEMCOLL): Likewise.
697         * memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
698         * mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
699         string.h, free.
700         * mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
701         * modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
702         * mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
703         C headers, or for string.h.
704         * obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
705         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
706         * path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
707         headers, memory.h, stdlib.h, string.h, strings.h.
708         * posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
709         * posixver.m4 (gl_POSIXVER): Don't check for getenv.
710         * putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
711         strchr.
712         * readtokens.m4 (gl_READTOKENS): Don't check for standard C
713         headers, memory.h, string.h.
714         * regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
715         * rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
716         free.
717         * rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C headers.
718         * same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
719         * save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
720         * savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
721         * strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
722         * xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
723
724 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
725
726         * getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
727         C89 spec.
728
729 2003-09-08  Paul Eggert  <eggert@twinsun.com>
730
731         Assume C89 or better; remove K&R cruft.
732         * alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
733         * backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
734         string.h, getenv, malloc.
735         * dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
736         headers.
737         * canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
738         * error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
739         do not check for strerror.
740         * exclude.m4: Do not check for stdlib.h, string.h, strings.h.
741         * exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
742         * fatal.m4 (gl_FATAL): Do not require STDC headers, and
743         do not check for doprnt or vprintf.
744         * fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
745         * getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
746
747 2003-09-06  Paul Eggert  <eggert@twinsun.com>
748
749         * time_r.m4: New file.
750         * mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
751         * timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime is.
752         Check for timegm declaration.
753         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
754         Do not check for gmtime_r.
755         Replace mktime if __mktime_internal does not exist and if mktime
756         hasn't been replaced already.
757
758 2003-08-31  Simon Josefsson  <jas@extundo.com>
759
760         * timegm.m4: New file.
761
762 2003-08-26  Bruno Haible  <bruno@clisp.org>
763
764         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
765         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
766         followed by '#define fnmatch fnmatch_posix' gives an error.
767
768 2003-08-27  Jim Meyering  <jim@meyering.net>
769
770         * mkstemp.m4: Require that the system mkstemp be able to create
771         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
772         would fail after 32.  Reported by Danny Levinson.  Details here:
773         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
774
775 2003-08-20  Karl Berry  <karl@gnu.org>
776
777         * lib-ld.m4: serial 1003 from gettext, no changes besides serial.
778
779 2003-08-19  Jim Meyering  <jim@meyering.net>
780
781         * lib-ld.m4: Revert yesterday's change, per Bruno's request here:
782         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
783
784 2003-08-19  Bruno Haible  <bruno@clisp.org>
785
786         * xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any more.
787
788 2003-08-18  Jim Meyering  <jim@meyering.net>
789
790         * getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
791         * lib-ld.m4: Likewise.
792
793 2003-08-17  Simon Josefsson  <jas@extundo.com>
794
795         * argp.m4: New file.
796
797 2003-08-17  Simon Josefsson  <jas@extundo.com>
798
799         * xstrndup.m4: New file.
800
801 2003-08-16  Jim Meyering  <jim@meyering.net>
802
803         * utimes.m4 (gl_FUNC_UTIMES): New file.
804         * utimes.m4: Removed.
805         * utimes-null.m4: Renamed from utimes.m4.
806
807         * c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
808         to 1MB, so as not to render systems with no stack size limit (e.g.,
809         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
810         Include <unistd.h>.  On some systems,
811         it is required for the definition of _SC_PAGESIZE.
812
813 2003-08-16  Paul Eggert  <eggert@twinsun.com>
814
815         Merges from coreutils, etc.
816         * rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
817         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
818         * readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
819         fixing a typo.
820         * host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
821         * hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
822
823 2003-08-16  Jim Meyering  <jim@meyering.net>
824         and Paul Eggert  <eggert@cs.ucla.edu>
825
826         Merges from coreutils, etc.
827
828         * jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
829         using the latest version from cvs.  This avoids problems with #line
830         directives using a vendor (Sun) compiler.
831         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
832         Don't set GETGROUPS_LIB here; now it's
833         done via getgroups.m4's wrapper function.
834         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
835         rather than just in sh-util/configure.in, so that the
836         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
837         same.
838         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
839         AC_FUNC_GETLOADAVG where to find getloadavg.c.
840         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
841         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
842         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
843         Remove code that is now done by the newly-required macros.
844         Append $(EXEEXT) to DF_PROG.
845         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
846         Do not invoke or require the following here,
847         since prereq.m4 or some gnulib .m4 now does this for us:
848         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
849         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
850         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
851         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
852         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
853         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
854         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
855         AC_FUNC_OBSTACK.
856         Do not replace the following functions, as this is now the job
857         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
858         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
859         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
860         atexit getpass, strdup, getpagesize.
861         Replace 'raise'.
862         Do not check for the following functions, as this is now the job
863         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
864         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
865         setregid.
866         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
867         Check for sys/sysctl.h.
868         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
869         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
870         of checking for ssize_t ourselves.
871
872         * prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
873         Require every macro that gnulib/modules/* suggests for us.
874         (jm_PREREQ_ADDEXT): New macro.
875         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
876         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
877
878         * physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
879         (gl_PHYSMEM): Use it.
880         Also check for `table' function.
881         Check for new headers and functions.
882         Add check for sys/sysmp.h.
883         With suggestions from Kaveh Ghazi.
884         Ignore headers that are present but cannot be compiled.  This
885         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
886         C 5.4.
887
888 2003-08-16  Jim Meyering  <jim@meyering.net>
889
890         Merges from coreutils.
891         * readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
892         prefix.  Adjust cache variables similarly.  Create 500 rather than
893         just 300 files, to exercise bug on Darwin6.5, too.
894         * perl.m4 (jm_PERL): Use $am_missing_run, not undefined $missing_dir.
895         * jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not AM_SYS_POSIX_TERMIOS.
896         Reported by mkc@mathdogs.com.
897         Also change use of $am_cv_sys_posix_termios
898         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
899         * getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
900         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
901         * fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point in
902         /proc/mounts until it finds one with matching device number.  This is
903         unnecessary when the FILE argument *is* a mount point.  No stat call
904         is necessary in that case.  So, disable the statvfs-testing code on
905         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
906         as RedHat bug# 84846.
907         * c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
908         to 1MB, so as not to render systems with no stack size limit (e.g.,
909         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
910         Include <unistd.h>.  On some systems,
911         it is required for the definition of _SC_PAGESIZE.
912
913 2003-08-15  Jim Meyering  <jim@meyering.net>
914         and Paul Eggert  <eggert@cs.ucla.edu>
915
916         Merges from coreutils, etc.
917         * strftime.m4 (_jm_STRFTIME_PREREQS):
918         Require gl_FUNC_TZSET_CLOBBER.
919         * readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit, ut_exit.e_exit,
920         ut_exit.ut_termination, and ut_exit.e_termination members.
921
922 2003-08-14  Paul Eggert  <eggert@twinsun.com>
923
924         Help the merge from coreutils.
925         * gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
926         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
927         * tzset.m4: Use it too.
928
929 2003-08-14  Jim Meyering  <jim@meyering.net>
930
931         Merge from coreutils.
932         * tzset.m4: New file.
933         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the MOUNTED_VMOUNT
934         test to precede the MOUNTED_GETMNTENT1 tests, since otherwise, AIX 5.1
935         systems would end up using the latter.  MOUNTED_GETMNTENT1 support
936         is inadequate on such systems: 1) detecting whether a file system
937         is remote doesn't work  2) the MOUNTED_VMOUNT code reports the
938         HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1 code reports
939         merely /MOUNT_POINT.  Reported by Mike Jetzer.
940
941 2003-08-13  Paul Eggert  <eggert@twinsun.com>
942
943         * exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
944         Check for isascii.
945
946         * gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
947         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
948         Undo previous (whitespace-only) change.
949
950 2003-08-12  Paul Eggert  <eggert@twinsun.com>
951
952         * gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
953         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
954         Normalize leading white space and remove trailing white space.
955
956         Merge from coreutils
957         * euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
958
959         * lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
960         0.12.1.  These files are now being upgraded automatically by
961         ../config/srclist-update.
962
963 2003-08-11  Bruno Haible  <bruno@clisp.org>
964
965         * vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
966
967 2003-08-09  Paul Eggert  <eggert@twinsun.com>
968
969         * regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
970         apparently Emacs's Unicode mode got confused before my 2003-08-05
971         checkin.
972
973 2003-08-08  Paul Eggert  <eggert@twinsun.com>
974
975         * extensions.m4: New file.
976         * timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
977         Require gl_USE_SYSTEM_EXTENSIONS.
978         * unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
979         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
980
981 2003-08-07  Paul Eggert  <eggert@twinsun.com>
982
983         * restrict.m4: New file.
984         * regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
985
986 2003-08-07  Bruno Haible  <bruno@clisp.org>
987
988         * getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This makes
989         the module 'getndelim2' compatible with the module 'getline'.
990
991 2003-08-05  Paul Eggert  <eggert@twinsun.com>
992
993         * regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
994         byte with "\201" to avoid glitches when editing that source file
995         with multi-gnome-terminal.
996
997 2003-07-31  Bruno Haible  <bruno@clisp.org>
998
999         * getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
1000
1001 2003-07-18  Bruno Haible  <bruno@clisp.org>
1002
1003         * getndelim2.m4: New file.
1004         * getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
1005         invoke gl_PREREQ_GETNDELIM2.
1006         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
1007         gl_PREREQ_GETNDELIM2.
1008         * getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
1009         gl_GETNDELIM2.
1010
1011 2003-07-17  Bruno Haible  <bruno@clisp.org>
1012
1013         * Makefile.am.in: Remove file.
1014         * Makefile.am: Remove file.
1015         * Makefile.in: Remove file.
1016
1017 2003-07-17  Bruno Haible  <bruno@clisp.org>
1018
1019         * getnline.m4: New file.
1020
1021 2003-07-14  Simon Josefsson  <jas@extundo.com>
1022
1023         * mempcpy.m4: New file.
1024
1025 2003-07-10  Jim Meyering  <jim@meyering.net>
1026
1027         * clock_time.m4: Remove trailing blank.
1028         * intmax_t.m4: Likewise.
1029
1030 2003-07-01  Paul Eggert  <eggert@twinsun.com>
1031
1032         * xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
1033         xreadlink.c now includes it unconditionally.
1034
1035 2003-07-01  Bruno Haible  <bruno@clisp.org>
1036
1037         * ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>. <sys/types.h>
1038         should be sufficient.
1039         Reported by Paul Eggert.
1040
1041 2003-06-25  Bruno Haible  <bruno@clisp.org>
1042
1043         * readlink.m4: New file.
1044
1045 2003-06-22  Bruno Haible  <bruno@clisp.org>
1046
1047         Portability to mingw32.
1048         * ssize_t.m4: New file, from GNU gettext.
1049         * safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
1050         * xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
1051
1052 2003-06-11  Bruno Haible  <bruno@clisp.org>
1053
1054         * sysexits.m4: New file.
1055
1056 2003-06-10  Simon Josefsson  <jas@extundo.com>
1057
1058         * strchrnul.m4: New file.
1059
1060 2003-06-07  Bruno Haible  <bruno@clisp.org>
1061
1062         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
1063         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
1064         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
1065         directory.
1066         * poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
1067         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
1068         directory.
1069
1070 2003-06-04  Paul Eggert  <eggert@twinsun.com>
1071
1072         * human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
1073         locale.h, localeconv.  This merges changes from coreutils.
1074
1075         * mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
1076         It can be removed after the next Autoconf is released.
1077         * exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
1078         needed.
1079
1080 2003-05-30  Bruno Haible  <bruno@clisp.org>
1081
1082         * gettext.m4: Upgrade to gettext-0.12.1.
1083         * nls.m4: New file, from gettext-0.12.1.
1084         * po.m4: New file, from gettext-0.12.1.
1085         * progtest.m4: Upgrade to gettext-0.12.1.
1086
1087 2003-05-28  Paul Eggert  <eggert@twinsun.com>
1088
1089         Assume the headers required for C89 freestanding compilers.
1090         * backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
1091         * fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
1092         * human.m4 (gl_HUMAN): Likewise.
1093         * pathmax.m4 (gl_PATHMAX): Likewise.
1094         * rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
1095         * userspec.m4 (gl_USERSPEC): Likewise.
1096         * xreadlink.m4 (gl_XREADLINK): Likewise.
1097         * xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
1098         * quote.m4 (gl_QUOTE): Don't check for stddef.h.
1099
1100 2003-05-26  Jim Meyering  <jim@meyering.net>
1101
1102         Merge in a change from coreutils:
1103         * dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
1104         that is guaranteed to be `no'.  Use `no_such_member' to indicate
1105         that condition, rather than `-1' which is slightly misleading.
1106         Change the name of the cache variable to have the gl_ prefix.
1107         Prompted by a patch from Richard Dawe for DJGPP.
1108
1109 2003-05-17  Bruno Haible  <bruno@clisp.org>
1110
1111         * dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an invalid
1112         expansion for AC_EGREP_CPP.
1113         * strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
1114         * strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1115         Suggested by Akim Demaille <akim@epita.fr> in
1116         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
1117
1118 2003-04-21  Paul Eggert  <eggert@twinsun.com>
1119
1120         * error.m4 (gl_ERROR): Do not put under dynamic conditions some
1121         code which expansion is under static control.  Patch imported from
1122         Akim Demaille's patch to Bison; see
1123         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
1124
1125 2003-04-14  Bruno Haible  <bruno@clisp.org>
1126
1127         * error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
1128
1129 2003-04-10  Bruno Haible  <bruno@clisp.org>
1130
1131         * findprog.m4: New file.
1132         * eaccess.m4: New file.
1133
1134 2003-04-04  Bruno Haible  <bruno@clisp.org>
1135
1136         * linebreak.m4: New file.
1137
1138 2003-04-03  Bruno Haible  <bruno@clisp.org>
1139
1140         * utf-ucs4.m4: New file.
1141         * ucs4-utf.m4: New file.
1142
1143 2003-03-30  Bruno Haible  <bruno@clisp.org>
1144
1145         * copy-file.m4 (gl_COPY_FILE): Add check for chown().
1146
1147 2003-03-28  Bruno Haible  <bruno@clisp.org>
1148
1149         * copy-file.m4: New file.
1150
1151 2003-03-18  Bruno Haible  <bruno@clisp.org>
1152
1153         * onceonly.m4: Use m4_defn instead of defn, for better error checking.
1154         * onceonly_2_57.m4: Likewise.
1155
1156 2003-03-17  Bruno Haible  <bruno@clisp.org>
1157
1158         * onceonly.m4: Require autoconf 2.54 or newer.
1159         (m4_quote): Remove macro.
1160         * onceonly_2_57.m4: Require autoconf 2.54 or newer.
1161
1162 2003-03-14  Bruno Haible  <bruno@clisp.org>
1163
1164         * onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
1165         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
1166
1167 2003-03-13  Paul Eggert  <eggert@twinsun.com>
1168
1169         * onceonly.m4 (m4_quote): New macro.
1170         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
1171         Quote AC_FOREACH variable-expansions properly.
1172
1173 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
1174
1175         * poll.m4: New file.
1176
1177 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
1178
1179         * mathl.m4: New file.
1180
1181 2003-02-17  Bruno Haible  <bruno@clisp.org>
1182
1183         * mkdtemp.m4: New file, from GNU gettext with modifications.
1184
1185 2003-02-02  Jim Meyering  <jim@meyering.net>
1186
1187         * regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
1188         e.g. glibc-2.2.93.
1189
1190 2003-01-31  Bruno Haible  <bruno@clisp.org>
1191
1192         * rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
1193         'rpl_rename'.
1194         * strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
1195         'rpl_strnlen'.
1196         * strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
1197         'rpl_strtod'.
1198         * utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
1199         'rpl_utime'.
1200
1201 2003-01-30  Bruno Haible  <bruno@clisp.org>
1202
1203         * signed.m4: New file, from GNU gettext.
1204         * longdouble.m4: New file, from GNU gettext.
1205         * wchar_t.m4: New file, from GNU gettext.
1206         * wint_t.m4: New file, from GNU gettext.
1207         * vasnprintf.m4: New file.
1208         * vasprintf.m4: New file.
1209
1210 2003-01-29  Bruno Haible  <bruno@clisp.org>
1211
1212         * stpncpy.m4: New file.
1213
1214 2003-01-23  Jim Meyering  <jim@meyering.net>
1215
1216         * dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
1217         from working on systems without dirfd (at least Irix and OSF1/Tru64).
1218
1219 2003-01-16  Jim Meyering  <jim@meyering.net>
1220
1221         * regex.m4: The `regex' struct is both input and output.
1222         Initialize it before each use.  Patch by Tim Waugh.
1223
1224 2003-01-11  Bruno Haible  <bruno@clisp.org>
1225
1226         * longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
1227         * ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
1228         suffix.
1229
1230 2003-01-11  Bruno Haible  <bruno@clisp.org>
1231
1232         * md5.m4 (gl_MD5): Require AC_C_INLINE.
1233
1234 2003-01-11  Bruno Haible  <bruno@clisp.org>
1235
1236         * alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
1237
1238 2003-01-12  Paul Eggert  <eggert@twinsun.com>
1239
1240         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
1241         to avoid collisions with libcurses and libreadline.
1242
1243         * getstr.m4: Remove.
1244         * getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
1245
1246 2003-01-10  Bruno Haible  <bruno@clisp.org>
1247
1248         * alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
1249
1250 2003-01-09  Bruno Haible  <bruno@clisp.org>
1251
1252         * stdbool.m4 (AM_STDBOOL_H): New macro.
1253
1254 2002-12-31  Paul Eggert  <eggert@twinsun.com>
1255
1256         * memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
1257
1258 2002-12-24  Bruno Haible  <bruno@clisp.org>
1259
1260         General infrasructure.
1261         * README: Rewritten.
1262         * onceonly.m4: New file.
1263         * onceonly_2_57.m4: New file.
1264
1265         Module atexit.
1266         * atexit.m4: New file.
1267
1268         Module strtod.
1269         * strtod.m4: New file.
1270
1271         Module strtol.
1272         * strtol.m4: New file.
1273
1274         Module strtoul.
1275         * strtoul.m4: New file.
1276
1277         Module memchr.
1278         * memchr.m4: New file.
1279
1280         Module memcmp.
1281         * memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
1282         (jm_FUNC_MEMCMP): Invoke it.
1283
1284         Module memcpy.
1285         * memcpy.m4: New file.
1286
1287         Module memmove.
1288         * memmove.m4: New file.
1289
1290         Module memset.
1291         * memset.m4: New file.
1292
1293         Module strcspn.
1294         * strcspn.m4: New file.
1295
1296         Module strpbrk.
1297         * strpbrk.m4: New file.
1298
1299         Module strstr.
1300         * strstr.m4: New file.
1301
1302         Module strerror.
1303         * strerror.m4: New file.
1304
1305         Module mktime.
1306         * mktime.m4: Renamed from jm-mktime.m4.
1307         (gl_PREREQ_MKTIME): New macro.
1308         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
1309
1310         Module malloc.
1311         * malloc.m4 (gl_PREREQ_MALLOC): New macro.
1312         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
1313         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
1314
1315         Module realloc.
1316         * realloc.m4 (gl_PREREQ_REALLOC): New macro.
1317         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
1318         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
1319
1320         Module strftime.
1321         * tm_gmtoff.m4: New file, extracted from strftime.m4.
1322         * strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
1323         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
1324         gl_TM_GMTOFF.
1325         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
1326
1327         Module xalloc.
1328         * xalloc.m4: New file.
1329
1330         Module alloca.
1331         * alloca.m4: New file.
1332
1333         Module putenv.
1334         * putenv.m4 (gl_PREREQ_PUTENV): New macro.
1335         (jm_FUNC_PUTENV): Invoke it.
1336
1337         Module setenv.
1338         * setenv.m4 (gt_FUNC_SETENV): New macro.
1339         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
1340         when invoked twice.
1341         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
1342         gt_FUNC_SETENV.
1343
1344         Module memrchr.
1345         * memrchr.m4: New file.
1346
1347         Module stpcpy.
1348         * stpcpy.m4: New file.
1349
1350         Module strcase.
1351         * strcase.m4: New file.
1352
1353         Module strdup.
1354         * strdup.m4: New file.
1355
1356         Module strnlen.
1357         * strnlen.m4: New file.
1358
1359         Module strndup.
1360         * strndup.m4: New file.
1361
1362         Module xstrtod.
1363         * xstrtod.m4: New file.
1364
1365         Module xstrtol.
1366         * xstrtol.m4: New file.
1367
1368         Module getdate.
1369         * getdate.m4: New file.
1370
1371         Module unlocked-io.
1372         * unlocked-io.m4: Renamed from jm-glibc-io.m4.
1373         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
1374         * jm-glibc-io.m4n: Remove file.
1375
1376         Module long-options.
1377         * long-options.m4: New file.
1378
1379         Module md5.
1380         * md5.m4: New file.
1381
1382         Module sha.
1383         * sha.m4: New file.
1384
1385         Module getstr.
1386         * getstr.m4: New file.
1387
1388         Module getline.
1389         * getline.m4 (gl_PREREQ_GETLINE): New macro.
1390         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
1391         <sys/types.h>, for size_t. Use the function name gnu_getline, not
1392         simply getline. Infoke gl_PREREQ_GETLINE.
1393
1394         Module obstack.
1395         * obstack.m4: New file.
1396
1397         Module hash.
1398         * hash.m4: New file.
1399
1400         Module readtokens.
1401         * readtokens.m4: New file.
1402
1403         Module strverscmp.
1404         * strverscmp.m4: New file.
1405
1406         Module stdbool.
1407         * stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for OSF/1.
1408
1409         Module strtoll.
1410         * strtoll.m4: New file.
1411
1412         Module strtoull.
1413         * strtoull.m4: New file.
1414
1415         Module strtoimax.
1416         * strtoimax.m4: New file.
1417
1418         Module strtoumax.
1419         * strtoumax.m4: New file.
1420
1421         Module xstrtoimax.
1422         * xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from jm_AC_PREREQ_XSTRTOIMAX.
1423         Moved the strtol prerequisites to strtol.m4.
1424         Moved the strtoll prerequisites to strtoll.m4.
1425         Moved the strtoimax prerequisites to strtoimax.m4.
1426
1427         Module xstrtoumax.
1428         * xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from jm_AC_PREREQ_XSTRTOUMAX.
1429         Moved the strtoul prerequisites to strtoul.m4.
1430         Moved the strtoull prerequisites to strtoull.m4.
1431         Moved the strtoumax prerequisites to strtoumax.m4.
1432
1433         Module chown.
1434         * chown.m4 (gl_PREREQ_CHOWN): New macro.
1435         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
1436
1437         Module dup2.
1438         * dup2.m4: New file.
1439
1440         Module ftruncate.
1441         * ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
1442         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
1443
1444         Module getgroups.
1445         * getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
1446         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
1447
1448         Module gettimeofday.
1449         * gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
1450         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
1451         gl_PREREQ_GETTIMEOFDAY.
1452
1453         Module mkdir.
1454         * mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
1455         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
1456
1457         Module mkstemp.
1458         * mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
1459         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
1460         jm_AC_TYPE_UINTMAX_T.
1461         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
1462
1463         Module stat.
1464         * stat.m4 (gl_PREREQ_STAT): New macro.
1465         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
1466
1467         Module lstat.
1468         * lstat.m4 (gl_PREREQ_LSTAT): New macro.
1469         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
1470
1471         Module timespec.
1472         * timespec.m4 (gl_TIMESPEC): New macro.
1473         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
1474         * st_mtim.m4: Indentation.
1475
1476         Module nanosleep.
1477         * nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
1478         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
1479         gl_PREREQ_NANOSLEEP.
1480
1481         Module regex.
1482         * regex.m4 (jm_PREREQ_REGEX): New macro.
1483         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
1484         (gl_REGEX): New macro.
1485
1486         Module rename.
1487         * rename.m4 (gl_PREREQ_RENAME): New macro.
1488         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
1489
1490         Module rmdir.
1491         * rmdir.m4: New file.
1492
1493         Module utime.
1494         * utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
1495         * utime.m4 (gl_PREREQ_UTIME): New macro.
1496         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
1497
1498         Module dirname.
1499         * dirname.m4: New file.
1500
1501         Module getopt.
1502         * getopt.m4: New file.
1503
1504         Module unistd-safer.
1505         * unistd-safer.m4: New file.
1506
1507         Module fnmatch.
1508         * fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
1509         declaration.
1510         (gl_PREREQ_FNMATCH_EXTRA): New macro.
1511         (gl_FUNC_FNMATCH_POSIX): New macro.
1512         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
1513         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
1514         simply fnmatch.
1515
1516         Module exclude.
1517         * exclude.m4: New file.
1518
1519         Module human.
1520         * human.m4: New file.
1521
1522         Module acl.
1523         * acl.m4: Nop.
1524
1525         Module backupfile.
1526         * backupfile.m4: New file.
1527         * d-ino.m4: Indentation.
1528
1529         Module fsusage.
1530         * fsusage.m4 (gl_FSUSAGE): New macro.
1531         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
1532         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
1533
1534         Module dirfd.
1535         * dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP requirements.
1536
1537         Module euidaccess.
1538         * euidaccess.m4: New file.
1539
1540         Module file-type.
1541         * file-type.m4: New file.
1542
1543         Module fileblocks.
1544         * fileblocks.m4: New file.
1545
1546         Module filemode.
1547         * filemode.m4: New file.
1548
1549         Module isdir.
1550         * isdir.m4: New file.
1551
1552         Module lchown.
1553         * lchown.m4 (gl_PREREQ_LCHOWN): New macro.
1554         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
1555
1556         Module makepath.
1557         * makepath.m4: New file.
1558
1559         Module modechange.
1560         * modechange.m4: New file.
1561
1562         Module mountlist.
1563         * mountlist.m4: New file.
1564         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
1565         Indentation.
1566
1567         Module path-concat.
1568         * path-concat.m4: New file.
1569
1570         Module pathmax.
1571         * pathmax.m4: New file.
1572
1573         Module same.
1574         * same.m4: New file.
1575
1576         Module save-cwd.
1577         * save-cwd.m4: New file.
1578
1579         Module savedir.
1580         * savedir.m4: New file.
1581
1582         Module xgetcwd.
1583         * xgetcwd.m4: New file.
1584         * getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
1585
1586         Module xreadlink.
1587         * xreadlink.m4: New file.
1588
1589         Module safe-read.
1590         * safe-read.m4: New file.
1591
1592         Module safe-write.
1593         * safe-write.m4: New file.
1594
1595         Module closeout.
1596         * closeout.m4: New file.
1597
1598         Module stdio-safer.
1599         * stdio-safer.m4: New file.
1600
1601         Module getpass.
1602         * getpass.m4: New file.
1603
1604         Module getugroups.
1605         * getugroups.m4: New file.
1606
1607         Module group-member.
1608         * group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
1609         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
1610
1611         Module idcache.
1612         * idcache.m4: New file.
1613
1614         Module userspec.
1615         * userspec.m4: New file.
1616
1617         Module gettime.
1618         * clock_time.m4: New file.
1619         * gettime.m4: New file.
1620
1621         Module settime.
1622         * settime.m4: New file.
1623
1624         Module posixtm.
1625         * posixtm.m4: New file.
1626
1627         Module gethostname.
1628         * gethostname.m4: New file.
1629
1630         Module canon-host.
1631         * canon-host.m4: New file.
1632
1633         Module gettext.
1634         * codeset.m4: New file, from gettext-0.11.5.
1635         * gettext.m4: New file, from gettext-0.11.5.
1636         * glibc21.m4: New file, from gettext-0.11.5.
1637         * iconv.m4: New file, from gettext-0.11.5.
1638         * intdiv0.m4: New file, from gettext-0.11.5.
1639         * inttypes-pri.m4: New file, from gettext-0.11.5.
1640         * inttypes.m4: New file, from gettext-0.11.5.
1641         * inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
1642         * isc-posix.m4: New file, from gettext-0.11.5.
1643         * lcmessage.m4: New file, from gettext-0.11.5.
1644         * lib-ld.m4: New file, from gettext-0.11.5.
1645         * lib-link.m4: New file, from gettext-0.11.5.
1646         * lib-prefix.m4: New file, from gettext-0.11.5.
1647         * progtest.m4: New file, from gettext-0.11.5.
1648         * stdint_h.m4: New file, from gettext-0.11.5 with modifications.
1649         * uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
1650         * ulonglong.m4: New file, from gettext-0.11.5 with modifications.
1651
1652         Module localcharset.
1653         * localcharset.m4: New file.
1654
1655         Module hard-locale.
1656         * hard-locale.m4: New file.
1657
1658         Module mbswidth.
1659         * mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
1660         onceonly macros.
1661         * mbrtowc.m4: Add comment.
1662
1663         Module memcasecmp.
1664         * memcasecmp.m4: New file.
1665
1666         Module memcoll.
1667         * memcoll.m4: New file.
1668
1669         Module unicodeio.
1670         * unicodeio.m4: New file.
1671
1672         Module rpmatch.
1673         * rpmatch.m4: New file.
1674
1675         Module yesno.
1676         * yesno.m4: New file.
1677
1678         Module exitfail.
1679         * exitfail.m4: New file.
1680
1681         Module c-stack.
1682         * c-stack.m4 (gl_C_STACK): New macro.
1683         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
1684
1685         Module error.
1686         * error.m4 (gl_ERROR): New macro.
1687         (jm_PREREQ_ERROR): Use onceonly macros.
1688
1689         Module fatal.
1690         * fatal.m4: New file.
1691
1692         Module getloadavg.
1693         * getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
1694         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
1695
1696         Module getpagesize.
1697         * getpagesize.m4: New file.
1698
1699         Module getusershell.
1700         * getusershell.m4: New file.
1701
1702         Module physmem.
1703         * physmem.m4: New file.
1704
1705         Module posixver.
1706         * posixver.m4: New file.
1707
1708         Module quotearg.
1709         * quotearg.m4: New file.
1710
1711         Module quote.
1712         * quote.m4: New file.
1713
1714         Module readutmp.
1715         * readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
1716
1717         Module sig2str.
1718         * sig2str.m4: New file.
1719
1720         Other.
1721         * longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
1722         ulonglong.m4.
1723         * intmax_t.m4: New file.
1724         * d-type.m4: Indentation.
1725         * jm-macros.m4: Update.
1726         * prereq.m4 (jm_PREREQ): Update.
1727         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
1728         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
1729         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
1730         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
1731         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
1732         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
1733         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
1734         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
1735         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
1736         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
1737         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
1738         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
1739         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
1740         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
1741         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
1742         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
1743         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
1744         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
1745         * readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
1746
1747 2002-12-18  Bruno Haible  <bruno@clisp.org>
1748
1749         * strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
1750         * jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
1751
1752 2002-12-17  Bruno Haible  <bruno@clisp.org>
1753
1754         * mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
1755         stdlib.h, string.h.
1756
1757 2002-12-11  Bruno Haible  <bruno@clisp.org>
1758
1759         * setenv.m4: New file, from gettext-0.11.5.
1760
1761 2002-12-06  Paul Eggert  <eggert@twinsun.com>
1762
1763         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
1764         a pain in practice to deal with generated m4 files.  This change
1765         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
1766
1767         * Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
1768         and jm-glibc-io.m4, as they are no longer a special case.
1769         * jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
1770         kludge and the auto-generation stuff.  Check only whether the
1771         functions are declared, not whether they exist, since older hosts
1772         that don't declare the functions can't use the optimization anyway.
1773
1774 2002-07-06  Jim Meyering  <meyering@lucent.com>
1775
1776         * README: Don't mention Makefile.am.in.
1777         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
1778
1779 2002-06-11  Paul Eggert  <eggert@twinsun.com>
1780
1781         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
1782
1783 2002-06-22  Jim Meyering  <meyering@lucent.com>
1784
1785         * c-stack.m4: New file, from diffutils-2.8.2.
1786         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
1787
1788         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
1789         now that configure.ac uses AC_GNU_SOURCE.
1790         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
1791         * prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
1792
1793         Update to latest tools.  Suggestions from Paul Eggert.
1794         * stdbool.m4: New file, from diffutils-2.8.2.
1795         * gnu-source.m4: Update from diffutils-2.8.2.
1796         * fnmatch.m4: Likewise.
1797         * prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
1798         to AC_HEADER_STDBOOL
1799
1800 2002-06-21  Jim Meyering  <meyering@lucent.com>
1801
1802         * c-bs-a.m4: Add comment, from diffutils-2.8.2.
1803         * mbrtowc.m4: Likewise.
1804
1805         * mbstate_t.m4: Update from diffutils-2.8.2.
1806         * mbswidth.m4: Reflect name change:
1807         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
1808         * prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
1809
1810         * lib-link.m4: Update from gettext-0.11.2.
1811         * gettext.m4: Likewise.
1812
1813         * jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
1814         From Alfred M. Szmidt.
1815
1816 2002-05-19  Paul Eggert  <eggert@twinsun.com>
1817
1818         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
1819
1820 2002-06-07  Jim Meyering  <meyering@lucent.com>
1821
1822         * prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
1823         They're needed at least for NetBSD 1.5.2.
1824         ($statxfs_includes): Include those same headers.
1825         ($statxfs_includes): Include sys/vfs.h if available.
1826         ($statxfs_includes): Likewise for sys/statvfs.h.
1827         Check for the following members in both structs statfs and statvfs:
1828         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
1829
1830 2002-06-01  Jim Meyering  <meyering@lucent.com>
1831
1832         * d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
1833         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
1834
1835 2002-05-28  Jim Meyering  <meyering@lucent.com>
1836
1837         * readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
1838         Reported by Volker Borchert.
1839
1840 2002-05-27  Jim Meyering  <meyering@lucent.com>
1841
1842         * gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
1843         localtime.
1844
1845         * readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
1846         use the replacement function; it wouldn't resolve at link time.
1847         Reported by Volker Borchert.
1848
1849 2002-04-30  Jim Meyering  <meyering@lucent.com>
1850
1851         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
1852
1853 2002-04-29  Paul Eggert  <eggert@twinsun.com>
1854
1855         * prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
1856         Do not check for alloca.h (no longer used) or stdbool.h (was never
1857         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
1858
1859 2002-04-28  Paul Eggert  <eggert@twinsun.com>
1860
1861         * prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
1862
1863 2002-04-29  Jim Meyering  <meyering@lucent.com>
1864
1865         * jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
1866         * prereq.m4: Add jm_PREREQ_STRNLEN.
1867         Use AC_FUNC_STRNLEN here instead.
1868
1869         * jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
1870         With autoconf-2.53a, it's part of AC_PROG_CC.
1871
1872 2002-04-28  Paul Eggert  <eggert@twinsun.com>
1873
1874         * jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
1875         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
1876
1877 2002-04-24  Jim Meyering  <meyering@lucent.com>
1878
1879         * prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
1880         (jm_PREREQ): Use it.
1881
1882         * getloadavg.m4: Check for these headers: locale.h unistd.h
1883         mach/mach.h fcntl.h.
1884         Check for this function: setlocale.
1885
1886 2002-04-16  Jim Meyering  <meyering@lucent.com>
1887
1888         * prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
1889         ut_pid, ut_id, ut_exit.
1890
1891 2002-04-12  Jim Meyering  <meyering@lucent.com>
1892
1893         * ls-mntd-fs.m4 (checking for getmntinfo function...): Remove now-bogus
1894         check for f_type in sys/mount.h.  Instead, just test for the existence
1895         of the getmntinfo function.  Needed for Darwin 5.3.
1896
1897         * dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
1898         This is necessary at least on Darwin 5.3.
1899
1900         * jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
1901         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of strnlen.o
1902         in the library, and that makes some versions of ranlib object.
1903
1904 2002-04-09  Jim Meyering  <meyering@lucent.com>
1905
1906         * malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
1907         to be more precise.  Rather than saying we're checking whether the
1908         function `works', say what we're testing.
1909         * realloc.m4 (jm_FUNC_REALLOC): Likewise.
1910         Reported by Bruno Haible.
1911
1912 2002-02-27  Paul Eggert  <eggert@twinsun.com>
1913
1914         * jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
1915         Check for clock_settime.
1916
1917 2002-02-25  Paul Eggert  <eggert@twinsun.com>
1918
1919         * acl.m4: New file.
1920         * jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
1921         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
1922
1923 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
1924
1925         * codeset.m4: Upgrade to gettext-0.11.
1926         * gettext.m4: Upgrade to gettext-0.11.
1927         * glibc21.m4: Upgrade to gettext-0.11.
1928         * iconv.m4: Upgrade to gettext-0.11.
1929         * isc-posix.m4: Upgrade to gettext-0.11.
1930         * lcmessage.m4: Upgrade to gettext-0.11.
1931         * lib-ld.m4: New file, from gettext-0.11.
1932         * lib-link.m4: New file, from gettext-0.11.
1933         * lib-prefix.m4: New file, from gettext-0.11.
1934         * progtest.m4: Upgrade to gettext-0.11.
1935
1936 2002-02-15  Paul Eggert  <eggert@twinsun.com>
1937
1938         * prereq.m4 (jm_PREREQ_POSIXVER): New macro.
1939         (jm_PREREQ): Use it.
1940
1941 2002-01-26  Jim Meyering  <meyering@lucent.com>
1942
1943         * jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
1944         * strnlen.m4: Remove file, now that it's part of autoconf.
1945
1946 2002-01-22  Paul Eggert  <eggert@twinsun.com>
1947
1948         * jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
1949
1950 2002-01-19  Jim Meyering  <meyering@lucent.com>
1951
1952         * jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
1953         Remove useless quotes: DF_PROG="df".
1954         * strnlen.m4: New file.
1955
1956 2001-12-14  Jim Meyering  <meyering@lucent.com>
1957
1958         * jm-macros.m4 (jm_MACROS): Check for iswspace.
1959         Suggestion from Bruno Haible.
1960
1961 2001-11-20  Jim Meyering  <meyering@lucent.com>
1962
1963         * mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
1964         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
1965
1966 2001-11-19  Jim Meyering  <meyering@lucent.com>
1967
1968         * mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
1969         directory.  Use "conftestXXXXXX" as the template.
1970         Suggestion from Paul Eggert.
1971
1972         * mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor immediately,
1973         so the test doesn't mistakenly hit the max-open-files limit.
1974
1975 2001-11-18  Jim Meyering  <meyering@lucent.com>
1976
1977         * prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
1978
1979 2001-11-17  Jim Meyering  <meyering@lucent.com>
1980
1981         * mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
1982         Prompted by a report from Bob Proulx.
1983
1984         * jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
1985         Instead, require UTILS_FUNC_MKSTEMP.
1986
1987 2001-11-11  Jim Meyering  <meyering@lucent.com>
1988
1989         * jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
1990         Now, that's done as part of AC_FUNC_STRTOD.
1991
1992 2001-10-22  Paul Eggert  <eggert@twinsun.com>
1993
1994         * jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
1995         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
1996
1997 2001-11-10  Jim Meyering  <meyering@lucent.com>
1998
1999         * prereq.m4 (jm_PREREQ_PHYSMEM): New function.
2000         (jm_PREREQ): Use it.
2001
2002 2001-11-09  Jim Meyering  <meyering@lucent.com>
2003
2004         * jm-macros.m4: Require autoconf-2.52f.
2005         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
2006         Use these AC_-prefixed names, not the AM_-prefixed ones.
2007
2008         * afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
2009
2010 2001-11-04  Jim Meyering  <meyering@lucent.com>
2011
2012         * fpending.m4: Remove unused cruft that saved, set, and restored $DEFS.
2013
2014 2001-11-03  Jim Meyering  <meyering@lucent.com>
2015
2016         * jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
2017         of AC_DEFUN.
2018
2019         * dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
2020         know the name of the variable in the macro definition.
2021
2022 2001-11-01  Jim Meyering  <meyering@lucent.com>
2023
2024         * dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
2025         * jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
2026
2027 2001-10-20  Paul Eggert  <eggert@twinsun.com>
2028
2029         * error.m4 (jm_PREREQ_ERROR):
2030         Do not invoke AC_CHECK_FUNCS with strerror_r, as
2031         AC_FUNC_STRERROR_R does that.
2032         Check for strerror declaration.
2033
2034         * strerror_r.m4: Add copyright notice, as nontrivial m4 files
2035         are supposed to have them these days.
2036         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
2037         Merge changes from latest Autoconf CVS.
2038         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
2039         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
2040         POSIX decided to standardize on the int flavor of strerror_r.
2041
2042 2001-09-30  Jim Meyering  <meyering@lucent.com>
2043
2044         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
2045         `struct fsstat' has the `f_fstypename' member.
2046         Use that to define FS_TYPE, which is now used to make
2047         the getfsstat link test tighter.
2048
2049 2001-09-29  Jim Meyering  <meyering@lucent.com>
2050
2051         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
2052         [one-argument getmntent function]): Include stdio.h before mntent.h.
2053         SunOS 4.1.x needs it for the declaration of `FILE'.
2054         Patch by Volker Borchert.
2055
2056         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
2057         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
2058         sys/fs_types.h, and make the link-test for getfsstat guard #include
2059         directives with appropriate #if HAVE_*_H tests so that we can
2060         detect getfsstat on Apple Darwin1.3.7 systems.
2061         Reported by Nelson Beebe.
2062         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
2063
2064 2001-09-28  Paul Eggert  <eggert@twinsun.com>
2065
2066         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
2067         #defines strtoimax.  Also treat the other strto* functions
2068         like strtoimax.
2069
2070         * xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
2071         Check for strtoul and strtoumax,
2072         as those declarations are made even in the signed case.
2073         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
2074         Likewise, for strtol and strtoimax.
2075
2076 2001-09-24  Jim Meyering  <meyering@lucent.com>
2077
2078         * gettext.m4: Use the version from gettext-0.10.40, not CVS.
2079
2080 2001-09-23  Jim Meyering  <meyering@lucent.com>
2081
2082         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
2083         instead of the mere test for existence of mntent.h.  The latter
2084         would get a false-positive on AIX 3.4 systems.
2085         In the outer getmntent if-block, don't die if neither of the getmntent
2086         tests succeeds.  Instead, just fall through and continue with the
2087         remaining tests.
2088
2089 2001-09-22  Jim Meyering  <meyering@lucent.com>
2090
2091         * gettext.m4: New file.  From gettext.
2092         * lcmessage.m4: Sync with gettext -- this changes only comments.
2093         * progtest.m4: Likewise
2094         * isc-posix.m4: Decrement serial number to sync with gettext.
2095         * glibc21.m4: Likewise.
2096
2097         * libintl.m4: Remove.  No longer used.
2098
2099 2001-09-20  Jim Meyering  <meyering@lucent.com>
2100
2101         * xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
2102         strtoimax.
2103         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
2104         strtoumax.
2105
2106 2001-09-17  Jim Meyering  <meyering@lucent.com>
2107
2108         * chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
2109         * jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
2110         * nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
2111         * st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
2112         * utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
2113         whenever the right hand side need not be expanded by the shell.
2114
2115 2001-09-16  Paul Eggert  <eggert@twinsun.com>
2116
2117         * fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
2118         library.  It's not correct, as some older glibcs are buggy.
2119         fnmatch wasn't fixed until glibc 2.2.
2120
2121         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
2122         special shell magic here.
2123
2124 2001-09-16  Jim Meyering  <meyering@lucent.com>
2125
2126         * mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
2127         * jm-macros.m4: Require it.
2128
2129 2001-09-15  Jim Meyering  <meyering@lucent.com>
2130
2131         * jm-macros.m4: Check for help2man.
2132
2133 2001-09-11  Jim Meyering  <meyering@lucent.com>
2134
2135         * host-os.m4 (UTILS_HOST_OS): New file/macro.
2136         The body, by Paul Eggert, was moved here from configure.in.
2137         * jm-macros.m4: Require UTILS_HOST_OS.
2138
2139 2001-09-04  Paul Eggert  <eggert@twinsun.com>
2140
2141         * prereq.m4 (jm_PREREQ_XREADLINK): New macro.
2142         (jm_PREREQ): Use it.
2143
2144 2001-09-03  Paul Eggert  <eggert@twinsun.com>
2145
2146         * prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
2147         sys/param.h, as pathmax.h includes them.
2148
2149 2001-09-03  Paul Eggert  <eggert@twinsun.com>
2150
2151         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
2152         (jm_PREREQ_XGETCWD): New macro.
2153
2154         * getcwd.m4: New file.
2155
2156 2001-09-01  Jim Meyering  <meyering@lucent.com>
2157
2158         * jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
2159         Used by df.
2160
2161 2001-08-30  Paul Eggert  <eggert@twinsun.com>
2162
2163         Simplify code, partly by assuming autoconf 2.52 semantics.
2164
2165         * Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
2166
2167         * inttypes.m4 (AC_PREREQ): Bump to 2.52.
2168         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
2169         All uses removed.
2170         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
2171         Move AC_REQUIRE to next-to-top level, to avoid confusion.
2172         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
2173         * prereq.m4 (jm_PREREQ_HUMAN): Don't require jm_AC_HEADER_INTTYPES_H.
2174         * jm-macros.m4 (jm_MACROS): Likewise.
2175
2176         * uintmax_t.m4: Remove, as it duplicates inttypes.m4.
2177
2178         * xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
2179         Quote first arg of AC_DEFUN.
2180         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
2181         since they are needed to parse the include file even if we need
2182         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
2183         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
2184         but with opposite signedness.
2185
2186 2001-08-30  Paul Eggert  <eggert@twinsun.com>
2187
2188         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
2189         (jm_PREREQ_EXCLUDE): New macro.
2190
2191 2001-08-26  Jim Meyering  <meyering@lucent.com>
2192
2193         * jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
2194
2195         * xstrtoimax.m4: New file.
2196         * xstrtoumax.m4: Add comments explaining why we
2197         AC_REPLACE_FUNCS(strtol).
2198
2199 2001-06-20  Paul Eggert  <eggert@twinsun.com>
2200
2201         * inttypes.m4: Add AC_PREREQ(2.13).
2202         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
2203         (jm_AC_TYPE_INTMAX_T): New macro.
2204         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
2205
2206         * longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
2207
2208         * longlong.m4: Renamed from ulonglong.m4.
2209         * inttypes.m4: Renamed from inttypes_h.m4.
2210         * uintmax_t.m4: Removed.
2211
2212 2001-08-12  Jim Meyering  <meyering@lucent.com>
2213
2214         * afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
2215         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
2216         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
2217         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
2218         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
2219         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
2220         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
2221         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
2222         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
2223         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
2224         utime.m4, utimes.m4, xstrtoumax.m4:
2225         Quote the first argument in each use of AC_DEFUN.
2226
2227 2001-08-05  Jim Meyering  <meyering@lucent.com>
2228
2229         * jm-macros.m4: Require autoconf-2.52.
2230
2231 2001-08-03  Paul Eggert  <eggert@twinsun.com>
2232
2233         The following changes are from gettext 0.10.39 as maintained by
2234         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
2235
2236         * codeset.m4: Upgrade to serial AM1.
2237         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
2238         all uses changed.  Quote first arg of AC_DEFUN.
2239         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
2240
2241         * iconv.m4: Upgrade to serial AM2.
2242         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
2243         Add --with-libconv-prefix.
2244         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
2245         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
2246         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
2247         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
2248         * jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
2249
2250         * c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
2251         * getline.m4 (AM_FUNC_GETLINE): Likewise.
2252         * glibc21.m4 (jm_GLIBC21): Likewise.
2253         * inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
2254         * isc-posix.m4 (AC_ISC_POSIX): Likewise.
2255         * lcmessage.m4 (AM_LC_MESSAGES): Likewise.
2256         * progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
2257         * uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
2258         * ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
2259
2260         * getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
2261         string.h any more.
2262
2263         * progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
2264         not the default value.
2265
2266         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
2267         * mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
2268         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
2269         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
2270         Also check for iswcntrl, used for wcwidth fallback.
2271         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
2272         to Autoconf 2.13.
2273
2274 2001-08-03  Jim Meyering  <meyering@lucent.com>
2275
2276         * mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
2277         as it was in the original.  Reported by Paul Eggert.
2278
2279 2001-07-16  Jim Meyering  <meyering@lucent.com>
2280
2281         * gettimeofday.m4: New file.
2282         Prompted by a report from Bernhard Baehr.
2283
2284 2001-07-15  Jim Meyering  <meyering@lucent.com>
2285
2286         * Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h stuff.
2287         Now it's in ../Makefile.cfg.
2288
2289 2001-07-04  Jim Meyering  <meyering@lucent.com>
2290
2291         * Makefile.am.in (glibc-io.struct): New target.  Rework the code
2292         that generates jm-glibc-io.m4 so that it doesn't trigger any make
2293         distcheck failure.
2294
2295 2001-07-02  Jim Meyering  <meyering@lucent.com>
2296
2297         The following changes were prompted by suggestions from Bruno Haible.
2298
2299         * jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
2300         is now generated.
2301         * Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
2302         definition of EXTRA_DIST.
2303         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
2304         ensure that the generated file is created/updated whenever the list
2305         of $(unlocked_functions) is changed.
2306         (jm-glibc-io.m4): New rule.
2307         (unlocked-io.h): New rule -- currently unused.
2308
2309 2001-06-24  Jim Meyering  <meyering@lucent.com>
2310
2311         * regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
2312         unmatched right bracket, rather than kludging it with an extra,
2313         falsely-matching quote in a comment.  Patch by Akim Demaille.
2314
2315 2001-05-27  Jim Meyering  <meyering@lucent.com>
2316
2317         * prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
2318         Check for ut_type in struct utmp.
2319
2320 2001-05-22  Jim Meyering  <meyering@lucent.com>
2321
2322         * strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
2323         now that we use the package-supplied version unconditionally.
2324         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
2325
2326 2001-05-21  Jim Meyering  <meyering@lucent.com>
2327
2328         * regex.m4: Change a couple backticks to single quotes to avoid shell
2329         syntax errors.
2330
2331 2001-05-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
2332
2333         * dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
2334
2335 2001-05-11  Paul Eggert  <eggert@twinsun.com>
2336
2337         * strftime.m4 (jm_FUNC_GNU_STRFTIME):
2338         Don't bother to check library strftime, since
2339         we'll be using our own my_strftime function anyway.
2340         Define my_strftime instead of strftime.
2341
2342 2001-05-15  Jim Meyering  <meyering@lucent.com>
2343
2344         * regex.m4: Use proper quoting so brackets appear in the test program.
2345         Reported by, and with help from, Bruno Haible.
2346
2347 2001-05-13  Jim Meyering  <meyering@lucent.com>
2348
2349         * jm-macros.m4 (major_t, minor_t): Define to unsigned int if undefined.
2350
2351 2000-11-26  Paul Eggert  <eggert@twinsun.com>
2352
2353         * jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
2354
2355 2001-04-21  Jim Meyering  <meyering@lucent.com>
2356
2357         * rmdir-errno.m4: Write to a new file, so that a restrictive umask
2358         doesn't interfere.
2359
2360 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
2361
2362         * ftruncate.m4: Check for chsize.
2363         Link with ftruncate.o unconditionally if ftruncate is missing.
2364         This was required when cross-compiling to i586-mingw32msvc.
2365
2366 2001-03-24  Jim Meyering  <meyering@lucent.com>
2367
2368         * jm-macros.m4: Require autoconf-2.49d.
2369
2370 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
2371
2372         * iconv.m4 (jm_ICONV): Recommend GNU libiconv.
2373
2374 2001-03-17  Jim Meyering  <meyering@lucent.com>
2375
2376         * memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
2377         now that the version in autoconf is equivalent.
2378         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
2379
2380         * error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
2381         Suggestion from Akim Demaille.
2382
2383         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
2384         (jm_PREREQ_TEMPNAME): New function.
2385
2386 2001-02-25  Paul Eggert  <eggert@twinsun.com>
2387
2388         * jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
2389         lacks mkstemp.  Compile our own tempname.c if we compile our own
2390         mkstemp.c, as mkstemp relies on tempname.
2391
2392 2001-03-01  Jim Meyering  <meyering@lucent.com>
2393
2394         * dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
2395         AH_VERBATIM really does output its argument verbatim.
2396
2397 2001-02-18  Paul Eggert  <eggert@twinsun.com>
2398
2399         * jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
2400
2401 2001-02-17  Jim Meyering  <meyering@lucent.com>
2402
2403         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
2404         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
2405         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
2406         UnixWare 7.1.1.
2407
2408         * mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
2409         rather than AC_CACHE_VAL.
2410
2411 2001-02-17  Paul Eggert  <eggert@twinsun.com>
2412
2413         * mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
2414         * mbswidth.m4 (jm_PREREQ_MBSWIDTH):
2415         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
2416         * prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
2417
2418 2001-02-07  Jim Meyering  <meyering@lucent.com>
2419
2420         * regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
2421
2422 2001-02-05  Jim Meyering  <meyering@lucent.com>
2423
2424         * jm-macros.m4: Require autoconf-2.14d (not yet released), because
2425         it includes the patch required for `large file' support with at least
2426         HP-UX's 10.20 /bin/cc.
2427
2428 2001-02-03  Jim Meyering  <meyering@lucent.com>
2429
2430         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
2431         AS_IF, now that it works once again (mysteriously).
2432         * fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
2433
2434 2001-01-30  Jim Meyering  <meyering@lucent.com>
2435
2436         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
2437         * chown.m4: Rename conftestchown to conftest.chown.
2438         * rename.m4: s/conftestdir/conftest.d1/ and s/conftestdir2/conftest.d2/.
2439         * utimes.m4: s/conftestdata/conftest.data/
2440         Inspired by Pavel Roskin's change in autoconf.
2441
2442 2001-01-27  Jim Meyering  <meyering@lucent.com>
2443
2444         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
2445         a use of AS_IF.
2446         * fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
2447
2448 2001-01-26  Jim Meyering  <meyering@lucent.com>
2449
2450         * prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
2451         quotearg.c includes it.
2452
2453 2001-01-15  Bruno Haible  <haible@clisp.cons.org>
2454
2455         * iconv.m4 (jm_ICONV): Also check whether the iconv declaration
2456         has const.
2457
2458 2001-01-20  Jim Meyering  <meyering@lucent.com>
2459
2460         Be sure that headers are checked before used in code compiled
2461         for the type checks.
2462         * jm-macros.m4 (jm_MACROS): Remove all header checks.
2463         In place of that, invoke jm_CHECK_ALL_TYPES.
2464         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
2465         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
2466         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
2467         The check for ssize_t was mistakenly run before the test for unistd.h.
2468
2469         The configure-time check for stdbool.h was missing.
2470         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
2471         (jm_PREREQ_HASH): New function.
2472
2473 2001-01-17  Jim Meyering  <meyering@lucent.com>
2474
2475         * fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
2476         for autoconf-2.49c.
2477         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
2478
2479 2001-01-14  Jim Meyering  <meyering@lucent.com>
2480
2481         * rename.m4: Use temporary directories named conftestdir{,2}, not
2482         foo and bar.  Create conftestdir/ in the script, not in the C code.
2483         Remove directories in the script, not in the C code.
2484         Remove conftestdir{,2} before trying to create the directory.
2485         Make the entire configure script fail if the mkdir fails.
2486
2487 2001-01-02  Volker Borchert  <bt@teknon.de>
2488
2489         * rename.m4: New file.
2490         * jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
2491
2492 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
2493
2494         * libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
2495         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
2496         so `make install' also works in VPATH builds.
2497
2498 2001-01-01  Jim Meyering  <meyering@lucent.com>
2499
2500         * prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available), even
2501         on systems with utmpx.h.  It's necessary for the declaration of utmp's
2502         ut_user member.  Reported by Andreas Jaeger.
2503
2504         * check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if available.
2505         They are required for the declarations of getgrgid and getpwuid resp.
2506         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
2507         Reported by Andreas Jaeger.
2508
2509 2000-12-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
2510
2511         * libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
2512         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
2513         can be used in subdirectories.
2514
2515 2000-12-26  Jim Meyering  <meyering@lucent.com>
2516
2517         * dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work better
2518         with autoheader.
2519
2520 2000-12-17  Jim Meyering  <meyering@lucent.com>
2521
2522         * dos.m4 (jm_AC_DOS): New file and macro.
2523         * jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
2524
2525 2000-12-06  Paul Eggert  <eggert@twinsun.com>
2526
2527         * off_t-format.m4: Remove this file.
2528         * jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
2529
2530 2000-12-06  Jim Meyering  <meyering@lucent.com>
2531
2532         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the replacement
2533         strtoull, we may well need the replacement strtoul, too.
2534         Check for declarations of strtoul and strtoull.
2535         Check for strtol.  Mainly as a cue to cause automake to include
2536         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
2537         Check for limits.h -- strtol.c needs it.
2538
2539 2000-12-02  Jim Meyering  <meyering@lucent.com>
2540
2541         * off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
2542         * jm-macros.m4 (jm_MACROS): require it.
2543
2544 2000-11-30  Jim Meyering  <meyering@lucent.com>
2545
2546         * jm-macros.m4 (jm_MACROS): Check for stdint.h.
2547
2548 2000-11-30  Jim Meyering  <meyering@lucent.com>
2549
2550         * getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
2551
2552 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
2553
2554         * jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
2555
2556 2000-11-04  Jim Meyering  <meyering@lucent.com>
2557
2558         * regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
2559
2560 2000-10-29  Jim Meyering  <meyering@lucent.com>
2561
2562         * fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf renaming.
2563         * ls-mntd-fs.m4: Likewise
2564
2565 2000-10-28  Jim Meyering  <meyering@lucent.com>
2566
2567         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
2568         (jm_PREREQ_MEMCHR): New function.
2569
2570 2000-10-21  Jim Meyering  <meyering@lucent.com>
2571
2572         * check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
2573         * prereq.m4 (jm_PREREQ_DIRNAME): New macro.
2574         * jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
2575
2576 2000-09-18  Jim Meyering  <meyering@lucent.com>
2577
2578         * getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of LIBS.
2579         Otherwise, everyone ends up linking with -lelf for some configurations.
2580         Reported by Mike Stone.
2581
2582 2000-08-26  Jim Meyering  <meyering@lucent.com>
2583
2584         * jm-macros.m4: Use jm_FUNC_FPENDING.
2585         * fpending.m4: New file.
2586
2587 2000-08-20  Jim Meyering  <meyering@lucent.com>
2588
2589         * check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
2590         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
2591         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
2592
2593 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2594
2595         Improve fileutils installation on systems where running
2596         programs (like install) can't be unlinked.
2597         * unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
2598         * jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
2599
2600 2000-08-06  Paul Eggert  <eggert@twinsun.com>
2601
2602         * mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
2603         not char, for compatibility with glibc 2.1.3 strftime.c.
2604
2605 2000-07-23  Paul Eggert  <eggert@twinsun.com>
2606
2607         * mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
2608
2609 2000-07-23  Jim Meyering  <meyering@lucent.com>
2610
2611         * check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these, too:
2612         getgrgid, getpwuid, getuid.
2613
2614 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
2615
2616         * mbswidth.m4: New file.
2617         * prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
2618
2619 2000-07-14  Jim Meyering  <meyering@lucent.com>
2620
2621         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require jm_AC_TYPE_UINTMAX_T.
2622
2623 2000-07-10  Paul Eggert  <eggert@twinsun.com>
2624
2625         From a suggestion by Bruno Haible.
2626         * mbstate_t.m4 (AC_MBSTATE_T):
2627         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
2628         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
2629         and mbstate_t, to a single-part test that simply defines mbstate_t.
2630         * prereq.m4 (jm_PREREQ_QUOTEARG): s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
2631
2632 2000-07-10  Jim Meyering  <meyering@lucent.com>
2633
2634         * strerror_r.m4: Mirror the correction made in autoconf.
2635
2636         * gnu-source.m4: Output to confdefs.h directly.
2637         Suggestion from Akim Demaille.
2638
2639 2000-07-09  Jim Meyering  <meyering@lucent.com>
2640
2641         * jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
2642         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
2643
2644         * gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
2645         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
2646
2647 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
2648
2649         * strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
2650         to strerror_r.
2651         Include <ctype.h> for use of isalpha.
2652
2653 2000-07-05  Paul Eggert  <eggert@twinsun.com>
2654         and Bruno Haible  <haible@clisp.cons.org>
2655
2656         * mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
2657         only if the test for an object-type mbstate_t fails.  This
2658         prevents us from mistakenly reporting that mbstate_t is a
2659         system object type after we "#define mbstate_t int" to work
2660         around its lack.
2661
2662 2000-07-04  Jim Meyering  <meyering@lucent.com>
2663
2664         * fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
2665         of the deprecated AC_CHECKING.
2666
2667 2000-07-03  Jim Meyering  <meyering@lucent.com>
2668
2669         * check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
2670
2671 2000-07-03  Paul Eggert  <eggert@twinsun.com>
2672
2673         * mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
2674         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
2675
2676 2000-07-02  Jim Meyering  <meyering@lucent.com>
2677
2678         * mbstate_t.m4: Also define mbstate_t, if necessary.
2679
2680         * chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
2681         AC_LIBOBJ(function_name).
2682         * chown.m4: Likewise.
2683         * fnmatch.m4: Likewise.
2684         * ftruncate.m4: Likewise.
2685         * getgroups.m4: Likewise.
2686         * getline.m4: Likewise.
2687         * group-member.m4: Likewise.
2688         * jm-macros.m4: Likewise.
2689         * lstat.m4: Likewise.
2690         * malloc.m4: Likewise.
2691         * memcmp.m4: Likewise.
2692         * nanosleep.m4: Likewise.
2693         * putenv.m4: Likewise.
2694         * realloc.m4: Likewise.
2695         * regex.m4: Likewise.
2696         * stat.m4: Likewise.
2697         * strftime.m4: Likewise.
2698
2699 2000-07-01  Jim Meyering  <meyering@lucent.com>
2700
2701         * ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
2702         problem.
2703
2704 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
2705
2706         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
2707         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
2708
2709 2000-07-01  Jim Meyering  <meyering@lucent.com>
2710
2711         * uptime.m4: Put double quotes around use of $cross_compiling.
2712
2713 2000-06-28  Jim Meyering  <meyering@lucent.com>
2714
2715         * mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not included
2716         by quotearg.c, for which we perform this test.  From Bruno Haible.
2717
2718 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
2719
2720         * check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
2721         * prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
2722         <utmpx.h> exists, put readutmp.o into LIBOBJS.
2723
2724 2000-06-25  Jim Meyering  <meyering@lucent.com>
2725
2726         * mbstate_t.m4: Include stdio.h before wchar.h to work around
2727         Linux header bug when _XOPEN_SOURCE is defined to 500.
2728
2729 2000-06-24  Jim Meyering  <meyering@lucent.com>
2730
2731         * strerror_r.m4: Revive this file -- to try out an experimental
2732         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
2733         for which strerror does return char*, but which lacks a conveniently
2734         accessible declaration of the function.  If the compile-test says
2735         strerror_r doesn't work, then resort to a `run'-test that works on
2736         BeOS and segfaults on DEC Unix.
2737
2738 2000-06-19  Paul Eggert  <eggert@twinsun.com>
2739
2740         * mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
2741         * prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
2742
2743 2000-06-23  Jim Meyering  <meyering@lucent.com>
2744
2745         * afs.m4: Add missing AC_MSG_RESULT.
2746         Reported by Bruno Haible.
2747
2748         * fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
2749         Suggestion from Bruno Haible.
2750
2751 2000-06-21  Jim Meyering  <meyering@lucent.com>
2752
2753         * jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
2754
2755 2000-06-18  Jim Meyering  <meyering@lucent.com>
2756
2757         * jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
2758
2759         * link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
2760         `checking whether...' message to be consistent with that of the
2761         lstat test.
2762
2763 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
2764
2765         * glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
2766
2767 2000-06-12  Jim Meyering  <meyering@lucent.com>
2768
2769         * getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with AC_FUNC_GETLOADAVG
2770         from autoconf, and tweak the latter to accept an optional argument.
2771         * jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
2772         the optional argument, `lib'.
2773
2774 2000-06-08  Jim Meyering  <meyering@lucent.com>
2775
2776         * largefile.m4: Remove file (now that it's part of autoconf).
2777
2778 2000-06-04  Paul Eggert  <eggert@twinsun.com>
2779
2780         Rewrite largefile configuration so that we don't need to run
2781         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
2782         AC_CANONICAL_HOST in configure.in -- jmm]
2783
2784         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
2785         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
2786         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
2787         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
2788         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
2789         All uses changed.
2790         Instead of inspecting the output of getconf, try to compile the
2791         test program without and with the macro definition.
2792         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
2793         for getconf.  Instead, check for the needed flags by compiling
2794         test programs.
2795
2796 2000-06-03  Jim Meyering  <meyering@lucent.com>
2797
2798         * prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
2799         now that autoconf requires that.
2800
2801         * jm-glibc-io.m4: Add a kludge to make autoheader emit the required
2802         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
2803         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
2804
2805 2000-05-26  Bruno Haible  <haible@clisp.cons.org>
2806
2807         * glibc21.m4: New file.
2808         * jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
2809
2810 2000-05-28  Jim Meyering  <meyering@lucent.com>
2811
2812         * jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
2813         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2814         * stat.m4: Likewise.
2815         * lstat.m4: Likewise.
2816         * lstat-slash.m4: Remove file (absorbed into autoconf).
2817
2818         * jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
2819         * strerror_r.m4: Remove file (absorbed into autoconf).
2820
2821 2000-05-26  Jim Meyering  <meyering@lucent.com>
2822
2823         * uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
2824
2825 2000-05-24  Jim Meyering  <meyering@lucent.com>
2826
2827         * prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
2828         autoconf requires that.
2829         * lib-check.m4: Likewise.
2830         * jm-macros.m4: Likewise.
2831         * strftime.m4: Likewise.
2832
2833         * check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in AC_CHECK_DECLS,
2834         now that autoconf requires that.
2835
2836 2000-05-22  Jim Meyering  <meyering@lucent.com>
2837
2838         * stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2839         * lstat.m4: Likewise.
2840
2841 2000-05-20  Jim Meyering  <meyering@lucent.com>
2842
2843         * prereq.m4 (jm_PREREQ_HUMAN): New macro.
2844         (jm_PREREQ): Use it.
2845
2846 2000-05-09  Jim Meyering  <meyering@lucent.com>
2847
2848         * gettext.m4: Rename this...
2849         * libintl.m4: ...to this.
2850
2851 2000-05-06  Jim Meyering  <meyering@lucent.com>
2852
2853         * jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
2854         (AC_REPLACE_FUNCS): Add strnlen.
2855
2856         * rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
2857         * jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
2858
2859         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
2860         AC_SEARCH_LIBS call for nanosleep.
2861         (LIB_NANOSLEEP): Set and AC_SUBST.
2862
2863 2000-05-03  Paul Eggert  <eggert@twinsun.com>
2864
2865         * largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
2866         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
2867         2.1.3 bug.  This avoids a clash when files like regex.c define
2868         _GNU_SOURCE.
2869
2870 2000-05-05  Jim Meyering  <meyering@lucent.com>
2871
2872         * jm-macros.m4 (jm_MACROS): Save and restore LIBS around AC_SEARCH_LIBS
2873         call for clock_gettime.
2874         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
2875
2876         * search-libs.m4: Update from autoconf.
2877
2878         su doesn't work on Solaris 2.6.
2879         * lib-check.m4: When checking for struct spwd.sp_pwdp, also include
2880         <shadow.h>.  Reported by Dragos Harabor.
2881
2882 2000-05-03  Jim Meyering  <meyering@lucent.com>
2883
2884         * check-decl.m4 (AC_CHECK_DECLS): Add strndup.
2885
2886 2000-05-02  Paul Eggert  <eggert@twinsun.com>
2887
2888         * largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
2889         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
2890         compile-time test, rather than inspecting host and OS, to
2891         decide whether to define _LARGEFILE_SOURCE.
2892
2893 2000-05-01  Jim Meyering  <meyering@lucent.com>
2894
2895         * fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
2896
2897         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
2898         Based on a patch from Bruno Haible.
2899
2900 2000-04-18  Jim Meyering  <meyering@lucent.com>
2901
2902         * prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
2903         (jm_PREREQ): Use it.
2904
2905 2000-04-17  Jim Meyering  <meyering@lucent.com>
2906
2907         Get it right :-)
2908         * jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
2909         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
2910         Suggestion from Akim Demaille.
2911
2912 2000-04-14  Jim Meyering  <meyering@lucent.com>
2913
2914         * jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg form
2915         of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets clobbered.
2916
2917 2000-04-13  Jim Meyering  <meyering@lucent.com>
2918
2919         * jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new AH_VERBATIM
2920         to insert required #ifndef into config.h.in.
2921         Suggestion from Akim Demaille.
2922
2923 2000-04-12  Jim Meyering  <meyering@lucent.com>
2924
2925         * getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
2926         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
2927         Christian Krackowizer.
2928
2929         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
2930         * jm-macros.m4 (_GNU_SOURCE): Define.
2931         (AC_SYS_LARGEFILE): Require.
2932         (AM_C_PROTOTYPES): Require.
2933
2934 2000-04-05  Paul Eggert  <eggert@twinsun.com>
2935
2936         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
2937         IRIX if the installer said otherwise.
2938
2939 2000-04-05  Jim Meyering  <meyering@lucent.com>
2940
2941         Portability tweaks required for ultrix4.3.
2942         * check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
2943         (jm_CHECK_DECLS): Add getutent to the list of functions.
2944         (_jm_DECL_HEADERS): Add utmpx.h.
2945         From John David Anglin.
2946
2947         * strftime.m4: Back out the 2000-04-02 change.
2948         Instead of that change, simply undefine putenv in the test program.
2949
2950 2000-04-03  Jim Meyering  <meyering@lucent.com>
2951
2952         * gettext.m4: Fix typo in comment.
2953
2954         * codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
2955         textutils/configure.in).  Suggestion from Paul Eggert.
2956         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
2957
2958 2000-04-02  Paul Eggert  <eggert@twinsun.com>
2959
2960         * strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
2961         variable in the shell rather than using putenv, which isn't
2962         portable.  This avoids the configure-time inter-test dependency
2963         on the potentially-renamed putenv function.
2964
2965 2000-03-30  Paul Eggert  <eggert@twinsun.com>
2966
2967         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
2968         before checking struct stat.st_blksize, so that
2969         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
2970
2971 2000-03-29  Paul Eggert  <eggert@twinsun.com>
2972
2973         * strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
2974         since strftime.c uses HAVE_STRFTIME to decide whether to use
2975         the underlying strftime.
2976
2977 2000-03-10  Jim Meyering  <meyering@lucent.com>
2978
2979         * lib-check.m4: Look for getspnam in -lgen, too.
2980         From Marco Franzen.
2981
2982 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
2983
2984         * codeset.m4: New file.
2985         * iconv.m4: New file.
2986         * jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
2987
2988 2000-03-04  Jim Meyering  <meyering@lucent.com>
2989
2990         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
2991         for lib/localcharset.c.
2992
2993 2000-03-03  Jim Meyering  <meyering@lucent.com>
2994
2995         * regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
2996
2997 2000-03-02  Jim Meyering  <meyering@lucent.com>
2998
2999         * timespec.m4: Require AC_HEADER_TIME before the cache check so
3000         the messages come out on separate lines.
3001
3002         * jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
3003         rather than jm_CHECK_DECLARATIONS.
3004         * decl.m4: Remove now-unused file.
3005
3006         * check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and geteuid.
3007
3008 2000-02-27  Jim Meyering  <meyering@lucent.com>
3009
3010         * check-decl.m4: Add getenv to the list.
3011
3012 2000-02-23  Jim Meyering  <meyering@lucent.com>
3013
3014         * check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
3015         in place of my hack.
3016
3017 2000-02-10  Jim Meyering  <meyering@lucent.com>
3018
3019         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
3020         gnu_nanosleep to rpl_nanosleep.
3021
3022 2000-02-09  Jim Meyering  <meyering@lucent.com>
3023
3024         * lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
3025         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
3026
3027 2000-02-08  Akim Demaille  <akim@epita.fr>
3028
3029         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
3030         `[' and `]' and remove uses of `changequote'.
3031         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
3032         (AC_SYS_LARGEFILE): Likewise.
3033         * gettext.m4 (AM_GNU_GETTEXT): Likewise.
3034         * strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
3035         of changequote.
3036         * regex.m4 (jm_INCLUDED_REGEX): Likewise.
3037         * readdir.m4 (jm_FUNC_READDIR): Likewise
3038         * memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
3039         * getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
3040
3041 2000-02-05  Jim Meyering  <meyering@lucent.com>
3042
3043         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
3044         Remove explicit use of AC_HEADER_TIME.  It is required by
3045         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
3046         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
3047         in autoconf whereby the expansion of the latter ended up preceding
3048         the expansion of its prerequisite, AC_HEADER_TIME.
3049         Reported by Volker Borchert.
3050
3051 2000-02-03  Jim Meyering  <meyering@lucent.com>
3052
3053         * prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
3054
3055 2000-02-02  Jim Meyering  <meyering@lucent.com>
3056
3057         * prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
3058         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
3059         Reported by Eli Zaretskii.
3060
3061 2000-01-31  Jim Meyering  <meyering@lucent.com>
3062
3063         * check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
3064         functions.  Add the time.h and sys/time.h headers along with the
3065         AC_REQUIRE'ment of AC_HEADER_TIME.
3066
3067 2000-01-30  Jim Meyering  <meyering@lucent.com>
3068
3069         * lib-check.m4: Clean up some kludgy old shadow password tests.
3070
3071         * prereq.m4 (utmp_includes): Define.
3072         Check for ut_user and ut_name members in both struct utmpx
3073         and struct utmp.
3074
3075 2000-01-29  Jim Meyering  <meyering@lucent.com>
3076
3077         * lib-check.m4: New file containing library-related checks from
3078         fileutils and sh-utils (textutils had none).
3079
3080 2000-01-28  Jim Meyering  <meyering@lucent.com>
3081
3082         * perl.m4: Change format of warning message to look more like that
3083         from the missing script.  Suggestion from François Pinard.
3084
3085 2000-01-25  Jim Meyering  <meyering@lucent.com>
3086
3087         * timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as well
3088         as time.h in the compile check.
3089         * nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
3090         Fix typo in cross-compiling case: s/yes/no/.
3091
3092 2000-01-23  Jim Meyering  <meyering@lucent.com>
3093
3094         * jm-macros.m4: Move df-related tests here from fileutils/configure.in
3095
3096         * ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
3097         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
3098
3099         * fsusage.m4: New file.  Extracted from fileutils/configure.in.
3100         s/space/ac_fsusage_space/.
3101         (jm_FILE_SYSTEM_USAGE): Take two parameters.
3102
3103         * ftruncate.m4: New file (derived from part of fileutils/configure.in).
3104         * jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
3105         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
3106
3107         * jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
3108         AC_SUBST these here, rather than just in sh-util/configure.in, so
3109         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
3110         all the same.
3111         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
3112         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
3113         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
3114         (AC_SUBST(POW_LIBM)): Likewise.
3115         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
3116
3117 2000-01-22  Jim Meyering  <meyering@lucent.com>
3118
3119         * jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
3120
3121         * prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
3122
3123         * jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
3124         configure.in
3125         (AC_CHECK_HEADERS): Likewise for sh-utils.
3126         (AC_CHECK_HEADERS): Likewise for textutils.
3127         Merge the three lists of headers.
3128
3129         * prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
3130         from fileutils' configure.in.
3131
3132         * decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)' code.
3133         Moved tests into their own function (_jm_DECL_HEADERS) in check-decl.m4.
3134
3135         * check-decl.m4: Use #if rather than #ifdef.
3136         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
3137         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
3138         (_jm_DECL_HEADERS): Define new function.
3139         (jm_CHECK_DECLARATIONS): Require it.
3140
3141 2000-01-19  Jim Meyering  <meyering@lucent.com>
3142
3143         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
3144         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
3145         defines `struct timespec' in <sys/time.h>
3146
3147         * c-bs-a.m4: Remove uses of changequote altogether.
3148         Thanks to Akim for explaining.
3149
3150 2000-01-16  Jim Meyering  <meyering@lucent.com>
3151
3152         * jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
3153         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
3154         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
3155         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
3156
3157 2000-01-16  Jim Meyering  <meyering@lucent.com>
3158
3159         * c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
3160         because the latter didn't work.
3161
3162 2000-01-15  Jim Meyering  <meyering@lucent.com>
3163
3164         * jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
3165         (AC_REPLACE_FUNCS): Add memcpy and memset.
3166         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
3167         Add strpbrk.
3168         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
3169
3170 2000-01-12  Jim Meyering  <meyering@lucent.com>
3171
3172         * prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
3173         (jm_PREREQ): Use it.
3174         (jm_PREREQ_READUTMP): New macro.
3175         (jm_PREREQ): Use it.
3176
3177 2000-01-11  Paul Eggert  <eggert@twinsun.com>
3178
3179         Quote multibyte characters correctly.
3180         * c-bs-a.m4: New file.
3181         * prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
3182         (jm_PREREQ): Use it.
3183
3184 2000-01-11  Paul Eggert  <eggert@twinsun.com>
3185
3186         * uintmax_t.m4: Port to autoconf 2.13.
3187
3188 2000-01-08  Jim Meyering  <meyering@ascend.com>
3189
3190         * strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
3191         * jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
3192
3193 2000-01-04  Jim Meyering  <meyering@ascend.com>
3194
3195         * d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
3196         jm_STRUCT_DIRENT_D_TYPE.
3197         * d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
3198         jm_STRUCT_DIRENT_D_INO.
3199         * utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
3200         jm_STRUCT_UTIMBUF.
3201         * jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/ renamings.
3202         * utime.m4: Likewise.
3203
3204         * timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
3205         * jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
3206
3207 2000-01-03  Paul Eggert  <eggert@twinsun.com>
3208
3209         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
3210         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
3211
3212 2000-01-02  Jim Meyering  <meyering@ascend.com>
3213
3214         * search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
3215         remember if this is necessary.
3216
3217 1999-12-26  Jim Meyering  <meyering@ascend.com>
3218
3219         * jm-macros.m4: Use it here.
3220         * nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
3221
3222 1999-12-23  Jim Meyering  <meyering@ascend.com>
3223
3224         * jm-macros.m4: Check for clock_gettime (moved from
3225         fileutils/configure.in)
3226         Check for gettimeofday.
3227
3228 1999-12-20  Jim Meyering  <meyering@ascend.com>
3229
3230         * strftime.m4: Remove kludge, now that I'm using the fixed
3231         autoconf-2.14a-1999-12-20.
3232
3233 1999-12-19  Jim Meyering  <meyering@ascend.com>
3234
3235         * lstat-slash.m4: New file.
3236         * jm-macros.m4: Use the new macro:
3237         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3238
3239 1999-12-07  Jim Meyering  <meyering@ascend.com>
3240
3241         * perl.m4: Require that File::Compare be available, too.
3242         Too many systems seem to lack it.
3243
3244         * strftime.m4: Add checks for most of the cpp macros tested in
3245         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
3246
3247 1999-11-18  Paul Eggert  <eggert@twinsun.com>
3248
3249         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
3250         problem with the QNX 4.25 shell, which doesn't propagate exit
3251         status of failed commands inside shell assignments.
3252
3253 1999-11-17  Jim Meyering  <meyering@ascend.com>
3254
3255         * gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
3256
3257 1999-11-07  Jim Meyering  <meyering@ascend.com>
3258
3259         * getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
3260
3261 1999-11-06  Jim Meyering  <meyering@ascend.com>
3262
3263         * link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
3264         * jm-macros.m4 (jm_MACROS): Use it here.
3265
3266 1999-11-05  Jim Meyering  <meyering@ascend.com>
3267
3268         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from configure.in
3269         of textutils, fileutils, and sh-utils into this one (shared between
3270         those packages) file.
3271         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
3272         AC_STRUCT_ST_BLKSIZE.
3273
3274 1999-11-03  Jim Meyering  <meyering@ascend.com>
3275
3276         * ssize_t.m4: Remove file.  No longer needed since the new version of
3277         AC_CHECK_TYPE checks includes unistd.h.
3278         * jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
3279         Suggestion from Akim Demaille.
3280
3281 1999-10-30  Jim Meyering  <meyering@ascend.com>
3282
3283         * uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
3284         m4-quoted string.
3285         * ls-mntd-fs.m4: Likewise.
3286         * jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
3287         * jm-winsz1.m4: Likewise.
3288
3289         * const.m4: Remove file, since the fix made it into the experimental
3290         version of autoconf.
3291         * mktime.m4: Likewise.
3292
3293         * check-type.m4: Remove file, now that the latest version of
3294         AC_CHECK_TYPE takes a third arg to specify additional #includes.
3295
3296         * ssize_t.m4: New file, requires experimental version of autoconf.
3297         * jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
3298         AC_CHECK_TYPE.
3299
3300 1999-10-04  Jim Meyering  <meyering@ascend.com>
3301
3302         * jm-macros.m4: Don't require autoconf-2.14.1.
3303
3304 1999-09-22  Paul Eggert  <eggert@twinsun.com>
3305
3306         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
3307         2.95.1 bug with HP-UX 10.20.
3308
3309 1999-09-17  Jim Meyering  <meyering@ascend.com>
3310
3311         * jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
3312         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
3313         due to missing strdup (against sh-utils-2.0).
3314
3315 1999-08-29  Jim Meyering  <meyering@ascend.com>
3316
3317         * jm-macros.m4: Require jm_BISON.
3318         * bison.m4: New file.
3319
3320 1999-08-17  Paul Eggert  <eggert@twinsun.com>
3321
3322         * largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
3323         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
3324
3325 1999-08-05  Jim Meyering  <meyering@ascend.com>
3326
3327         * getline.m4: Rename test file from conftestdata to conftest.data
3328         to avoid conflicts with `conftest' on 8+3 filesystems.
3329         Suggestion from Eli Zaretskii.
3330
3331 1999-08-04  Jim Meyering  <meyering@ascend.com>
3332
3333         * jm-macros.m4: Move a 4-line block of code from the configure.in of
3334         fileutils and sh-utils (textutils's getline test was inadequate).
3335         (AM_FUNC_GETLINE): Run this test.
3336         (AC_CHECK_FUNCS): Check for getdelim.
3337         Reported by Bob Proulx.
3338
3339 1999-08-02  Jim Meyering  <meyering@ascend.com>
3340
3341         * jm-macros.m4: Add a comment.
3342
3343 1999-08-01  Jim Meyering  <meyering@ascend.com>
3344
3345         * mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from m4.
3346
3347 1999-08-01  Paul Eggert  <eggert@twinsun.com>
3348
3349         * lfs.m4: Remove this file.
3350         * largefile.m4: New file.  It contains the old contents of
3351         lfs.m4, except that all names with prefix AC_LFS have been
3352         changed to use the prefix AC_SYS_LARGEFILE instead, to be
3353         compatible with future autoconf versions.  Also, some minor m4
3354         quoting problems have been fixed.
3355
3356 1999-07-16  Paul Eggert  <eggert@twinsun.com>
3357
3358         * ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
3359         that we can shift, multiply and divide unsigned long long
3360         values; Ultrix cc can't do it.
3361
3362 1999-07-14  Paul Eggert  <eggert@twinsun.com>
3363
3364         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
3365         <inttypes.h> defines strtoumax as a macro (and not as a
3366         function).
3367
3368 1999-07-05  Paul Eggert  <eggert@twinsun.com>
3369
3370         * gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
3371         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
3372         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
3373         and simplify the shell code.
3374
3375 1999-07-03  Paul Eggert  <eggert@twinsun.com>
3376
3377         * mktime.m4: New file, which is a preview of what should appear
3378         in the next public autoconf release.
3379
3380 1999-07-20  Jim Meyering  <meyering@ascend.com>
3381
3382         * jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
3383
3384 1999-07-15  Jim Meyering  <meyering@ascend.com>
3385
3386         * jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
3387
3388 1999-05-22  Jim Meyering  <meyering@ascend.com>
3389
3390         * jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
3391
3392 1999-05-20  Jim Meyering  <meyering@ascend.com>
3393
3394         * search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
3395         Add a colon after each `then' in case $4 is empty.
3396
3397 1999-05-16  Jim Meyering  <meyering@ascend.com>
3398
3399         * search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
3400
3401 1999-05-10  Jim Meyering  <meyering@ascend.com>
3402
3403         * jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
3404
3405         * jm-macros.m4: Require 2.14.1, since we use newly-renamed
3406         AC_FUNC_MKTIME.
3407
3408 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
3409
3410         * jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
3411
3412 1999-05-04  Paul Eggert  <eggert@twinsun.com>
3413
3414         * lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
3415         not CPPFLAGS, so that linking works correctly in IRIX.
3416
3417 1999-04-30  Paul Eggert  <eggert@twinsun.com>
3418
3419         * jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
3420
3421 1999-04-20  Jim Meyering  <meyering@ascend.com>
3422
3423         * xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
3424         AC_REPLACE xstroull if necessary.  From Paul Eggert.
3425         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
3426
3427 1999-04-20  Paul Eggert  <eggert@twinsun.com>
3428
3429         * uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
3430         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
3431         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
3432         jm_AC_TYPE_UNSIGNED_LONG_LONG.
3433         * ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
3434
3435         * lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
3436
3437 1999-04-18  Jim Meyering  <meyering@ascend.com>
3438
3439         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
3440         * jm-macros.m4: Use it.
3441
3442 1999-04-06  Jim Meyering  <meyering@ascend.com>
3443
3444         * strftime.m4: Remove test for %f.
3445
3446 1999-03-29  Jim Meyering  <meyering@ascend.com>
3447
3448         * jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
3449         superset of the AC_TYPE_* checks in the textutils, fileutils,
3450         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
3451         AC_TYPE_PID_T.
3452
3453 1999-03-28  Jim Meyering  <meyering@ascend.com>
3454
3455         * jm-macros.m4: Define GNU_PACKAGE here.
3456         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
3457         replaced e.g., in the *.sh files of the sh-utils.
3458
3459 1999-03-20  Jim Meyering  <meyering@ascend.com>
3460
3461         * jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
3462         * regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
3463         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
3464
3465 1999-03-19  Jim Meyering  <meyering@ascend.com>
3466
3467         * jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
3468
3469 1999-03-12  Jim Meyering  <meyering@ascend.com>
3470
3471         * jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
3472
3473 1999-03-07  Jim Meyering  <meyering@ascend.com>
3474
3475         * jm-glibc-io.m4: Use only those *_unlocked macros that are declared.
3476
3477 1999-02-17  Jim Meyering  <meyering@ascend.com>
3478
3479         * gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of brackets
3480         in macro definition.  From Eli Zaretskii and Alain Magloire.
3481
3482 1999-02-07  Jim Meyering  <meyering@ascend.com>
3483
3484         * group-member.m4: New file -- extracted from sh-utils' configure.in.
3485
3486         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
3487         * gettext.m4: Support DOS-style d:/foo/bar absolute file names.
3488
3489 1999-02-06  Jim Meyering  <meyering@ascend.com>
3490
3491         * chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
3492         * fnmatch.m4: Likewise.
3493         * getgroups.m4: Likewise.
3494         * lstat.m4: Likewise.
3495         * malloc.m4: Likewise.
3496         * putenv.m4: Likewise.
3497         * realloc.m4: Likewise.
3498         * regex.m4: Likewise.
3499         * stat.m4: Likewise.
3500         * strftime.m4: Likewise.
3501         Suggestion from Alain Magloire.
3502
3503         * chown.m4: Use `.$ac_objext', not `.o'.
3504         * fnmatch.m4: Likewise.
3505         * getgroups.m4: Likewise.
3506         * getline.m4: Likewise.
3507         * lstat.m4: Likewise.
3508         * malloc.m4: Likewise.
3509         * memcmp.m4: Likewise.
3510         * putenv.m4: Likewise.
3511         * realloc.m4: Likewise.
3512         * regex.m4: Likewise.
3513         * stat.m4: Likewise.
3514         * strftime.m4: Likewise.
3515         Suggestion from Alain Magloire.
3516
3517         * jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
3518         an argument.
3519
3520         * regex.m4: Add a run-time Test for proper operation of
3521         re_compile_pattern.
3522
3523 1999-01-31  Jim Meyering  <meyering@ascend.com>
3524
3525         * getloadavg.m4: Check for locale.h and the function, setlocale.
3526
3527 1999-01-30  Jim Meyering  <meyering@ascend.com>
3528
3529         * check-type.m4: Use 3-arg form of AC_DEFINE.
3530
3531         * jm-mktime.m4: Make this a wrapper around the official AM_FUNC_MKTIME
3532         rather than my private copy, now that the official one is up to date.
3533         * mktime.m4: Remove file.
3534
3535         * getloadavg.m4: Use 3-arg form of AC_DEFINE.
3536         * uptime.m4: Likewise.
3537         * uintmax_t.m4: Likewise.
3538
3539 1999-01-28  Jim Meyering  <meyering@ascend.com>
3540
3541         * jm-macros.m4: Use jm_AFS.
3542         * afs.m4: New file (from fileutils' configure.in).
3543
3544         * assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
3545         * chown.m4: Likewise.
3546         * d-ino.m4: Likewise.
3547         * d-type.m4: Likewise.
3548         * fnmatch.m4: Likewise.
3549         * getgroups.m4: Likewise.
3550         * gettext.m4: Likewise.
3551         * jm-mktime.m4: Likewise.
3552         * jm-winsz2.m4: Likewise.
3553         * lcmessage.m4: Likewise.
3554         * ls-mntd-fs.m4: Likewise.
3555         * malloc.m4: Likewise.
3556         * memcmp.m4: Likewise.
3557         * putenv.m4: Likewise.
3558         * realloc.m4: Likewise.
3559         * st_mtim.m4: Likewise.
3560         * strftime.m4: Likewise.
3561
3562 1999-01-16  Jim Meyering  <meyering@ascend.com>
3563
3564         * jm-macros.m4 (ARGMATCH_DIE): Define.
3565         (ARGMATCH_DIE_DECL): Define.
3566
3567 1999-01-12  Jim Meyering  <meyering@ascend.com>
3568
3569         * Makefile.am.in: Rewrite to avoid using fmt.
3570         Reported by Lars Hecking.
3571
3572 1999-01-10  Jim Meyering  <meyering@ascend.com>
3573
3574         * fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
3575         gross kludge.
3576         * inttypes_h.m4: Likewise.
3577         * lstat.m4: Likewise.
3578         * malloc.m4: Likewise.
3579         * readdir.m4: Likewise.
3580         * realloc.m4: Likewise.
3581         * st_dm_mode.m4: Likewise.
3582         * stat.m4: Likewise.
3583         * utimbuf.m4: Likewise.
3584         * utimes.m4: Likewise.
3585
3586         * check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
3587         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
3588         comments in config.h.in are meaningful.
3589
3590         * jm-macros.m4: Require autoconf-2.13 here.
3591
3592         * regex.m4: By default, don't use the included regex.c on systems
3593         with glibc 2.  Suggestion from Uli Drepper.
3594
3595 1999-01-02  Jim Meyering  <meyering@ascend.com>
3596
3597         * jm-macros.m4: Replace strcasecmp and strncasecmp.
3598
3599 1998-12-18  Jim Meyering  <meyering@ascend.com>
3600
3601         * Makefile.am.in (Makefile.am): Simplify rule.
3602         Based on a suggestion from Lars Hecking.
3603
3604 1998-11-16  Jim Meyering  <meyering@ascend.com>
3605
3606         * lfs.m4: Double-quote the `uname...` expression.
3607
3608 1998-11-16  Paul Eggert  <eggert@twinsun.com>
3609
3610         * lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
3611
3612 1998-11-14  Jim Meyering  <meyering@ascend.com>
3613
3614         * lstat.m4: Correct comment.  POSIX does not permit it to succeed.
3615         * stat.m4: Likewise.
3616
3617 1998-11-03  Jim Meyering  <meyering@ascend.com>
3618
3619         * stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
3620         * lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
3621
3622 1998-10-18  Jim Meyering  <meyering@ascend.com>
3623
3624         * check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
3625
3626 1998-10-17  Jim Meyering  <meyering@ascend.com>
3627
3628         * decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
3629         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
3630         calls for those previously hard-coded headers.  Instead, take a new
3631         parameter.
3632         (jm_CHECK_DECLARATIONS): Reflect interface change.
3633         * check-decl.m4 (jm_CHECK_DECLS): Likewise.
3634         (jm_CHECK_DECL_LOCALTIME_R): New macro.
3635
3636         * mktime.m4: Test for spring-forward gap before long-running test.
3637
3638 1998-10-14  Jim Meyering  <meyering@ascend.com>
3639
3640         * mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
3641         instead of "TZ=America/Vancouver".  From Paul Eggert.
3642
3643 1998-10-11  Jim Meyering  <meyering@ascend.com>
3644
3645         * mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
3646         This adds a test for a recently added compatibility fix for mktime.c.
3647         * jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
3648
3649 1998-09-27  Jim Meyering  <meyering@ascend.com>
3650
3651         * jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
3652
3653         * fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
3654         ../configure.in, including a change from Gordon Matzigkeit to allow
3655         cross-compiling for the Hurd.
3656
3657         * glibc.m4: New file/macro to test for the GNU C Library
3658         versions 1 and 2.  From Gordon Matzigkeit.
3659         Indent.
3660
3661 1998-09-21  Jim Meyering  <meyering@ascend.com>
3662
3663         * chown.m4: Declare locals: before, after.  From Andries Brouwer.
3664
3665 1998-08-18  Paul Eggert  <eggert@twinsun.com>
3666
3667         Port nanosecond-resolution times to UnixWare 2.1.2 and
3668         pedantic Solaris 2.6.
3669
3670         * st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
3671         AC_STRUCT_ST_MTIM.
3672         * st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
3673         Generate name of ns member, instead of just 1 or undef.
3674         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
3675
3676 1998-08-15  Jim Meyering  <meyering@ascend.com>
3677
3678         * ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
3679         * check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
3680         * jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
3681         instead of jm_TYPE_SSIZE_T.
3682
3683 1998-08-12  Jim Meyering  <meyering@ascend.com>
3684
3685         * st_dm_mode.m4: New file.  From Johan Danielsson.
3686
3687 1998-08-02  Jim Meyering  <meyering@ascend.com>
3688
3689         * st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
3690         in acconfig.h manually.
3691
3692 1998-07-31  Paul Eggert  <eggert@twinsun.com>
3693
3694         * st_mtim.m4: New file.
3695
3696 1998-07-28  Jim Meyering  <meyering@ascend.com>
3697
3698         * utimes.m4: Undef stat.
3699
3700 1998-07-25  Jim Meyering  <meyering@ascend.com>
3701
3702         * utime.m4 (jm_FUNC_UTIME): New file and macro.
3703         * utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
3704
3705 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
3706
3707         * chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
3708         uid and gid actually remain unchanged.
3709
3710 1998-07-07  Jim Meyering  <meyering@ascend.com>
3711
3712         * jm-glibc-io.m4: Remove fclose_unlocked.
3713
3714 1998-07-04  Jim Meyering  <meyering@ascend.com>
3715
3716         * regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
3717         to prove that this macro can be used in packages without regex.c.
3718
3719 1998-07-02  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3720
3721         * gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
3722         is to be used.
3723
3724 1998-07-03  Jim Meyering  <meyering@ascend.com>
3725
3726         * gettext.m4: Add -lintl if it's found to be necessary.
3727
3728         * gettext.m4: New file -- from gettext-0.10.35.
3729         * lcmessage.m4: Likewise.
3730         * progtest.m4: Likewise.
3731
3732         * regex.m4 (jm_WITH_REGEX): New file and macro.
3733         * jm-macros.m4: Require the new macro.
3734
3735 1998-06-29  Jim Meyering  <meyering@ascend.com>
3736
3737         * fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
3738         for the definition of NGROUPS (used in a system header included
3739         by sys/mount.h).
3740
3741 1998-06-28  Jim Meyering  <meyering@ascend.com>
3742
3743         * ls-mntd-fs.m4: New file.
3744         * fstypename.m4: New file.
3745
3746         * jm-macros.m4: Require the new macro.
3747         * jm-glibc-io.m4: New file.
3748
3749 1998-05-19  Jim Meyering  <meyering@ascend.com>
3750
3751         * jm-macros.m4: Add jm_FUNC_LCHOWN.
3752         * lchown.m4: New file.
3753
3754         * Makefile.am.in: New file.
3755         * Makefile.am (Makefile.am): Depend on Makefile.am.in.
3756
3757 1998-05-14  Jim Meyering  <meyering@ascend.com>
3758
3759         * Makefile.am (EXTRA_DIST): Add them.
3760         * jm-macros.m4: New file.
3761         * utimbuf.m4: New file.
3762
3763 1998-05-12  Jim Meyering  <meyering@ascend.com>
3764
3765         * Makefile.am (EXTRA_DIST): Add isc-posix.m4.
3766
3767 1998-05-11  Jim Meyering  <meyering@ascend.com>
3768
3769         * isc-posix.m4: New file.
3770
3771 1998-05-10  Jim Meyering  <meyering@ascend.com>
3772
3773         * jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
3774
3775 1998-05-09  Jim Meyering  <meyering@ascend.com>
3776
3777         * Makefile.am (EXTRA_DIST): Add ssize_t.m4.
3778         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
3779         with automake.
3780
3781         * ssize_t.m4: New file.
3782         * mktime.m4: Remove file -- the new automake has this now.
3783
3784 1998-04-26  Jim Meyering  <meyering@ascend.com>
3785
3786         * assert.m4: New file.
3787         * Makefile.am (EXTRA_DIST): Add assert.m4.
3788
3789 1998-04-05  Jim Meyering  <meyering@ascend.com>
3790
3791         * prereq.m4 (jm_PREREQ_REGEX): New macro.
3792         (jm_PREREQ): Use it here.
3793
3794 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
3795
3796         * inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
3797         in acconfig.h.
3798
3799 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
3800
3801         * prereq.m4: New file.
3802         * error.m4: New file.
3803         * Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
3804
3805 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
3806
3807         * getline.m4: Don't set am_cv_func_working_getline before the
3808         cache-check for the same variable -- that defeated the purpose of
3809         the test; the test program was never run.  This was a problem only
3810         on systems with losing getline functions -- HP-UX 10.20 is one.
3811         Reported by Bjorn Helgaas.
3812
3813 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
3814
3815         * Makefile.am (EXTRA_DIST): Add perl.m4.
3816
3817 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
3818
3819         * Makefile.am (EXTRA_DIST): Add const.m4.
3820
3821         * const.m4: New file.  Use an initializer in this declaration
3822         typedef int charset[2]; const charset x;
3823         Reported by Bob Glickstein.
3824
3825 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
3826
3827         * chown.m4: Fix reversed types on -1 args to chown.
3828         From Kaveh Ghazi.
3829
3830 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
3831
3832         * check-decl.m4: s/DECLARATION_/DECL_/g.
3833         Add lseek and memchr.
3834
3835         * decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
3836         T.E.Dickey <dickey@clark.net> said that some older preprocessors
3837         have a 20-character limit on names.
3838
3839 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
3840
3841         * inttypes_h.m4: New file.
3842         * uintmax_t.m4: New file.
3843         * Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
3844
3845 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
3846   Free Software Foundation, Inc.
3847 Copying and distribution of this file, with or without modification,
3848 are permitted provided the copyright notice and this notice are preserved.