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