summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
* Remove old stub file.Bruno Haible2007-09-081-1/+0
|
* * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspellingPaul Eggert2007-09-061-1/+1
| | | | in variable name.
* Fix mis-recognition of 'mcs' on QNX 6.Bruno Haible2007-09-021-3/+4
|
* Getline touchups.Eric Blake2007-08-232-7/+10
| | | | | | | | | | | | | | * lib/getdelim.c (getdelim): Revert regression that required *n to be 0 when *lineptr is NULL. Preserve errno across funlockfile. * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of getdelim, rather than whether implementation is missing. * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline. * lib/stdio_.h (getline): Also declare if replacement is required. * doc/functions/getdelim.texi: New file. * doc/functions/getline.texi: Likewise. * doc/gnulib.texi (Function Substitutes): Add new files. Reported by Bruno Haible.
* Move getline and getdelim into stdio.h, per POSIX 200x.Eric Blake2007-08-223-10/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * modules/getline (Files): Remove getline.h. (Depends-on): Add stdio. (configure.ac): Add module indicator. * modules/getdelim (Files): Remove getdelim.h. (Depends-on): Add stdio. (configure.ac): Add module indicator. * modules/stdio (Makefile.am): Work with new indicators. * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults. * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs. * m4/getline.m4 (gl_FUNC_GETLINE): Likewise. * lib/getdelim.h: Delete. * lib/getline.h: Delete. * lib/stdio_.h (getdelim, getline): Declare. * modules/getdelim-tests: New module. * modules/getline-tests: Likewise. * tests/test-getdelim.c: New file. * tests/test-getline.c: Likewise. * NEWS: Document the change. * lib/getline.c: Update choice of header. * lib/csharpcomp.c: Likewise. * lib/getpass.c: Likewise. * lib/javacomp.c: Likewise. * lib/javaversion.c: Likewise. * lib/yesno.c: Likewise. * lib/getdelim.c: Likewise. (getdelim): Set errno on failure, and avoid memory leak.
* Work around lseek bug on BeOS.Bruno Haible2007-08-191-3/+3
|
* Move xstrtol messages into gnulib domain, when --pobase is used.Eric Blake2007-08-081-2/+4
| | | | | | | | | | | | | | | | | | * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro... * lib/xstrtol-error.c (xstrtol_error): ...into new file. * modules/xstrtol (Files): Distribute new file. * m4/xstrtol.m4 (gl_XSTRTOL): Build new file. * lib/xstrtol.c (TESTING_XSTRTO): Move tests... * tests/test-xstrtol.c: ...into new file. * tests/test-xstrtoul.c: Also test xstrtoul. * tests/test-xstrtoimax.c: Also test xstrtoimax. * tests/test-xstrtoumax.c: Also test xstrtoumax. * tests/test-xstrtol.sh: Drive the tests. * tests/test-xstrtoimax.sh: Likewise. * tests/test-xstrtoumax.sh: Likewise. * modules/xstrtol-tests: New module. * modules/xstrtoimax-tests: Likewise. * modules/xstrtoumax-tests: Likewise.
* Avoid gcc warning: "__STDC_LIMIT_MACROS_TRIGGER" redefinedBruno Haible2007-08-071-3/+3
|
* Don't pretend that stdint.h conforms to C99 if it doesn't define WCHAR_MINBruno Haible2007-07-311-3/+9
| | | | and WCHAR_MAX.
* Fix the include_next test so that it rejects AIX 4.3 xlc.Bruno Haible2007-07-251-3/+25
|
* Improve name: "count-one-bits" is better than "popcount".Ben Pfaff2007-07-251-3/+3
| | | | | | | | | | | | * MODULES.html.sh: Update name. * lib/popcount.h: Renamed lib/count-one-bits.h. (popcount): Renamed count_one_bits. (popcountl): Renamed count_one_bits_l. (popcountll): Renamed count_one_bits_ll. * m4/popcount.m4: Renamed m4/count-one-bits.m4. * modules/popcount: Renamed module/count-one-bits. * modules/popcount-tests: Renamed module/count-one-bits-tests. * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
* New module: popcount.Ben Pfaff2007-07-231-0/+12
| | | | | | | | | * MODULES.html.sh: Add popcount. * modules/popcount: New file. * modules/popcount-tests: New file. * tests/test-popcount.c: New file. * lib/popcount.h: New file. * m4/popcount.m4: New file.
* df: Don't fail for Tru64's "file-on-file mount".Jim Meyering2007-07-131-3/+7
| | | | | | | * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs, so we fall through and use statfs instead. Details here: <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878> Reported by Albert Chin.
* Work around MacOS X wcwidth(0x0301) bug.Bruno Haible2007-07-071-1/+39
|
* Remove the wcwidth.h file. Move wcwidth's declaration to wchar_.h.Bruno Haible2007-07-072-15/+45
|
* wcwidth.h no longer needs 'inline'.Bruno Haible2007-07-071-1/+0
|
* Provide wcwidth replacement in separate file wcwidth.c.Bruno Haible2007-07-071-2/+7
|
* Ensure that <stdint.h> defines all the *_MAX and *_MIN macros that gnulib'sBruno Haible2007-07-021-1/+17
| | | | inttypes.h requires.
* 2007-06-27 Simon Josefsson <simon@josefsson.org>Simon Josefsson2007-06-281-3/+28
| | | | | | | | | | Bruno Haible <bruno@clisp.org> * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using HAVE_WS2TCPIP_H. Check for gai_strerror through an explicit link test, rather than AC_REPLACE_FUNCS - for mingw. (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
* * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typosPaul Eggert2007-06-231-5/+11
| | | | exposed by Sun Studio 11 cc on Solaris 8.
* * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.Paul Eggert2007-06-217-30/+14
| | | | | | | | | | | | | | | | | | | | | | | | * m4/iconv_h.m4 (gl_ICONV_H): Likewise. * m4/locale_h.m4 (gl_LOCALE_H): Likewise. * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise. * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise. * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. * m4/sysexits.m4 (gl_SYSEXITS): Likewise. SCALAR(0x828a248) * lib/dirent_.h: Likewise. * lib/iconv_.h: Likewise. * lib/locale_.h: Likewise. * lib/netinet_in_.h: Likewise. * lib/sys_select_.h: Likewise. * lib/sys_socket_.h: Likewise. * lib/sysexits_.h: Likewise. * modules/fchdir: Likewise. * modules/iconv_open: Likewise. * modules/locale: Likewise. * modules/netinet_in: Likewise. * modules/sys_select: Likewise. * modules/sys_socket: Likewise. * modules/sysexits: Likewise.
* * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBSTPaul Eggert2007-06-2117-90/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | INCLUDE_NEXT. (gl_CHECK_NEXT_HEADERS): New macro. * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of the obsolescent gl_ABSOLUTE_HEADER. * m4/float_h.m4 (gl_FLOAT_H): Likewise. * m4/inttypes.m4 (gl_INTTYPES_H): Likewise. * m4/math_h.m4 (gl_MATH_H): Likewise. * m4/search_h.m4 (gl_SEARCH_H): Likewise. * m4/signal_h.m4 (gl_SIGNAL_H): Likewise. * m4/stdint.m4 (gl_STDINT_H): Likewise. * m4/stdio_h.m4 (gl_STDIO_H): Likewise. * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise. * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise. * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise. * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise. * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise. * m4/unistd_h.m4 (gl_UNISTD_H): Likewise. * m4/wchar.m4 (gl_WCHAR_H): Likewise. * m4/wctype.m4 (gl_WCTYPE_H): Likewise. * m4/inttypes.m4 (gl_INTTYPES_H): Define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean builds, since ABSOLUTE_INTTYPES_H is no longer being defined. * m4/stdint.m4 (gl_STDINT_H): Likewise, for _GL_JUST_INCLUDE_SYSTEM_STDINT_H. * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@ rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@. * lib/float_.h: Likewise. * lib/inttypes_.h: Likewise. * lib/math_.h: Likewise. * lib/search_.h: Likewise. * lib/signal_.h: Likewise. * lib/stdint_.h: Likewise. * lib/stdio_.h: Likewise. * lib/stdlib_.h: Likewise. * lib/string_.h: Likewise. * lib/sys_stat_.h: Likewise. * lib/sys_time_.h: Likewise. * lib/time_.h: Likewise. * lib/unistd_.h: Likewise. * lib/wchar_.h: Likewise. * lib/wctype_.h: Likewise. * modules/fcntl (Depends-on): Depend on absolute-header, not include_next. (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H. * modules/float: Likewise. * modules/inttypes: Likewise. * modules/math: Likewise. * modules/search: Likewise. * modules/signal: Likewise. * modules/stdint: Likewise. * modules/stdio: Likewise. * modules/stdlib: Likewise. * modules/string: Likewise. * modules/sys_stat: Likewise. * modules/sys_time: Likewise. * modules/time: Likewise. * modules/unistd: Likewise. * modules/wchar: Likewise. * modules/wctype: Likewise. * modules/sys_stat: Change maintainer to "all". * modules/unistd: Likewise.
* Work around a buggy frexpl function on MacOS X 10.4/PowerPC.Bruno Haible2007-06-161-6/+18
|
* Revamp lchown so that it lives in unistd.h where it belongs.Paul Eggert2007-06-162-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | * lib/lchown.h: Remove. * lib/dirchownmod.c: Don't include lib/lchown.h. * lib/fchownat.c: Likewise. * lib/openat.c: Likewise. * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown does not follow symlinks. (EOPNOTSUPP): Define if not defined. * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN is defined to 0. (lchown): New decl. * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS. Do not check for lchown decl. Set REPLACE_LCHOWN. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN, REPLACE_LCHOWN. * modules/chown: Make it clear it follows symlinks. * modules/lchown: Make it clear it doesn't follow symlinks. (Files): Remove lib/lchown.h (Depends-on): Add unistd. (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]). (Include): Include <unistd.h>, not "lchown.h". * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and REPLACE_LCHOWN.
* Guess isnanl does not work when cross-compiling to ia64, x86_64, i386.Bruno Haible2007-06-131-4/+10
|
* x86_64 has the same 'long double' format as i386.Bruno Haible2007-06-131-3/+3
|
* * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portabilityPaul Eggert2007-06-121-3/+8
| | | | | glitch reported by Ralf Wildenhues in <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
* * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported byPaul Eggert2007-06-121-1/+12
| | | | Vin Shelton.
* Add support for Unicode strings (both as output format and as arguments toBruno Haible2007-06-111-1/+14
| | | | the %U directive).
* New module 'mbsnlen'.Bruno Haible2007-06-112-0/+17
|
* Test for _snprintf (missing since 2003-11-16).Bruno Haible2007-06-101-1/+4
|
* Move to malloca.m4.Bruno Haible2007-06-091-14/+0
|
* Move to here from allocsa.m4.Bruno Haible2007-06-091-0/+14
|
* Move gt_INTL_MACOSX to file intlmacosx.m4.Bruno Haible2007-06-092-39/+52
|
* New module 'localename'.Bruno Haible2007-06-071-0/+12
|
* Linux uClibc built without wide character support lacks <wchar.h>.Bruno Haible2007-06-072-5/+20
|
* Work around problem reported by Steven M. Schweda inPaul Eggert2007-06-062-2/+2
| | | | | | | | | | <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>: Tru64 5.1B with the Compaq compiler environment installed declares an 'isblank' function but does not define it in the C library. * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too. * lib/regex_internal.h (isblank): Likewise. * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence. * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
* Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64, ia64.Bruno Haible2007-06-061-19/+140
|
* Recognize non-IEEE numbers on i386, x86_64, ia64.Bruno Haible2007-06-061-3/+71
|
* Fix typo.Bruno Haible2007-06-061-2/+2
|
* * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.Eric Blake2007-06-051-11/+11
| | | | Reported by Simon Josefsson.
* Fix incorrect values of SIG_ATOMIC_MIN, SIG_ATOMIC_MAX on FreeBSD/ia64.Bruno Haible2007-06-021-9/+27
|
* Update after Eric Blake found that frexpl doesn't work right on mingw.Bruno Haible2007-06-021-3/+5
|
* * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw whenEric Blake2007-05-311-1/+1
| | | | cross compiling.
* autoupdateKarl Berry2007-05-311-1/+14
|
* Work around mingw test failures exposed by m4-1.4.9b.Eric Blake2007-05-311-2/+4
| | | | | | * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug. * tests/test-unistd.c: Disable uid_t and git_t tests for the moment.
* Fix typo.Bruno Haible2007-05-291-1/+1
|
* Avoid "checking..." message inside "checking..." message.Bruno Haible2007-05-291-1/+7
|
* Fix typo in cross-compiling case.Bruno Haible2007-05-291-2/+2
|
* Fix last patch for real.Bruno Haible2007-05-291-1/+5
|