summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
* non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStopPaul Eggert2013-03-041-3/+0
| | | | | | | * m4/non-recursive-gnulib-prefix-hack.m4 (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA. Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in <http://bugs.gnu.org/10305#237>.
* sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.Bruno Haible2013-03-021-2/+2
| | | | * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
* gettext: Update to version 0.18.2.Bruno Haible2013-03-022-8/+8
| | | | | | * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular: 2012-12-07 Stefano Lattarini <stefano.lattarini@gmailcom> * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
* getcwd: support coreutils betterPaul Eggert2013-02-202-1/+4
| | | | | | | | | | | | | | Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD, but this might not be correct in coreutils, which disables the raw decl checks. Problem reported by Nagendra in <http://bugs.gnu.org/10305#192>. * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD. * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Test the getcwd function, not any macro, since getcwd.c wants the function. * m4/getcwd.m4 (gl_FUNC_GETCWD): Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't compile, as might happen if there's a macro but no function.
* extern-inline: avoid compilation error with HP-UX ccPaul Eggert2013-02-181-1/+4
| | | | | | | | | Reported by Richard Lloyd in <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>. * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Suppress extern inline with HP-UX cc. This should be safe, though it may hurt performance. Perhaps someone with some HP-UX experience can come up with a higher-performance fix.
* putenv: fix heap corruption with mixed putenv/_putenvPaul Eggert2013-02-141-0/+6
| | | | | | | | | Problem reported by Michael Goffioul in <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>. * lib/putenv.c (putenv) [HAVE__PUTENV]: Rely on _putenv to allocate the new environment. * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro. * modules/putenv (configure.ac): Use it.
* extensions: port better to HP-UXPaul Eggert2013-02-081-6/+23
| | | | | | | This is merged from git Autoconf. * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): On hosts that need _XOPEN_SOURCE, define it when configuring, too, so that it's compatible with the value used when compiling.
* openpty: fix bug where HAVE_OPENPTY is mistakenly 1Paul Eggert2013-02-081-10/+8
| | | | | | | | | Problem reported by Mats Erik Andersson in <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>. * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the openpty function exists, not merely when we intend to replace it. This corrects the 2013-01-31 patch, which mistakenly defined HAVE_OPENPTY even on hosts that lacked it.
* secure_getenv: port better to FreeBSD and SolarisPaul Eggert2013-02-071-0/+3
| | | | | | | | | * lib/secure_getenv.c [!HAVE___SECURE_GETENV]: Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid. (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid. This works better on BSDish platforms. * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Test for issetugid if __secure_getenv is missing.
* extensions: port better to MINUX 3, HP-UX, autoheader 2.62Paul Eggert2013-02-061-15/+13
| | | | | | | | | | Some of these changes are merged in from git Autoconf. * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): When deciding whether to define _XOPEN_SOURCE, inspect the preprocessor macro __hpux instead of the more-heavyweight operation of requiring AC_CANONICAL_HOST. Define _NETBSD_HOST on MINUX, for MINUX 3. Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__, as the key for __EXTENSIONS__.
* tmpdir: use secure_getenvPaul Eggert2013-02-041-5/+2
| | | | | | | | * lib/tmpdir.c (__secure_getenv) [!LIBC]: Define to secure_getenv, not getenv. * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv, as that's now secure_getenv's job. * modules/tmpdir (Depends-on): Add secure_getenv.
* secure_getenv: new modulePaul Eggert2013-02-042-2/+26
| | | | | | | | | | | | | * MODULES.html.sh (Extra functions based on ANSI C 89): Add secure_getenv. * doc/glibc-functions/secure_getenv.texi: New file. * doc/gnulib.texi: Include it. * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv: New files. * lib/stdlib.in.h (secure_getenv): New decl. * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS): * modules/stdlib (stdlib.h): Add secure_getenv checks.
* getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)Paul Eggert2013-02-031-26/+36
| | | | | | | | | | | | | | | Reported for OS X 10.8.2 by Assaf Gordon in <http://bugs.gnu.org/13516>. * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if !HAVE_OPENAT && !HAVE_FDOPENDIR. * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c so that they can be kept in sync more easily. Avoid PATH_MAX test on the Hurd. Sync from test-getcwd.c for errno tests after mkdir or chdir failure. * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from lib/getcwd.c. (test_abort_bug): Do not test for the deep directory bug unless we have openat support. Avoid PATH_MAX test on the Hurd.
* regex-tests, regex: fix bug: memset undeclaredPaul Eggert2013-02-031-9/+10
| | | | | | | | | | * tests/test-regex.c: Don't include regex.h twice. Include string.h, to declare memset. Christensen's report also mentioned this issue. * m4/regex.m4 (gl_REGEX): Keep test program more in sync with test-regex.c, to avoid future problems like this. Remove AC_INCLUDES_DEFAULT. Include <string.h>. Don't include <regex.h> twice.
* regex: fix off-by-one error in configure testPaul Eggert2013-01-311-1/+1
| | | | * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
* regex: avoid infinite configure testEric Blake2013-01-311-1/+11
| | | | | | | | | At least glibc 2.15 on Ubuntu ended up hanging. * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch. Reported by Reuben Thomas. Signed-off-by: Eric Blake <eblake@redhat.com>
* openpty: fix bug where HAVE_OPENPTY wasn't definedReuben Thomas2013-01-311-8/+10
| | | | | | | See the thread starting at: http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the openpty function exists, not merely when we intend to replace it.
* regex: test for buffer overrunPaul Eggert2013-01-291-19/+42
| | | | | * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab, for the just-fixed regex bug.
* readlinkat: don't depend on gl_FUNC_OPENATPaul Eggert2013-01-231-2/+1
| | | | | | * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT. Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4, renameat.m4, symlinkat.m4; but one thing at a time.
* Fix typo in comment.Paul Eggert2013-01-161-1/+1
|
* largefile: port better to Mac OS X 10.5Paul Eggert2013-01-161-13/+10
| | | | | | | | | This patch is backported from Autoconf git. * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems with ino_t size being different for configuration time versus build/run time. Problem reported by PHO in <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
* maint: update all copyright year number rangesEric Blake2013-01-01743-743/+743
| | | | | | Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
* dup2: work around cygwin bugEric Blake2012-12-311-1/+4
| | | | | | | | | | | | | | Detected by './gnulib-tool --test dup2 cloexec'. Reported upstream: http://cygwin.com/ml/cygwin/2012-12/msg00377.html and fixed already: http://cygwin.com/ml/cygwin-cvs/2012-q4/msg00202.html but as we want to work with older cygwin, we'll have to carry this in gnulib for a while. * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump. * lib/dup2.c (rpl_dup2): Work around it. * doc/posix-functions/dup2.texi (dup2): Document it. Signed-off-by: Eric Blake <eblake@redhat.com>
* regex: port to hosts where malloc (0) == NULLPaul Eggert2012-12-301-0/+1
| | | | | | | | | | Reported by Aharon Robbins in <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>. * lib/regex_internal.c (re_node_set_alloc): Don't assume that malloc (0) yields nonnull. * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro. * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC. * modules/regex (Files): Add m4/eealloc.m4.
* gettext: avoid obsolete macro AM_PROG_MKDIR_PPaul Eggert2012-12-232-4/+4
| | | | | | | | | | | It is obsolete and is planned to be removed from Automake 1.14; see <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>. * build-aux/po/Makefile.in.in (install-data, install-data-yes) (installdirs-data, installdirs-data-yes): Use $(MKDIR_P), not $(mkdir_p). * m4/intl.m4 (AM_INTL_SUBDIR): * m4/po.m4 (AM_PO_SUBDIRS): Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
* AC_PROG_MKDIR_P: port workaround to pre-2.62 AutoconfPaul Eggert2012-12-211-2/+4
| | | | | | | | | * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT): Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1], ...), as the latter is fatal with older Autoconfs. Problewm reported by Eric Blake in <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
* AC_PROG_MKDIR_P: don't workaround if not buggyPaul Eggert2012-12-201-1/+3
| | | | | | | | | | * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Define only for Autoconf versions before 2.62. (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not undocumented m4_PACKAGE_VERSION, for consistency with the abovementioned change to AC_PROG_MKDIR_P. This should suffice since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION was introduced in 2.62.
* extern-inline: avoid incompatibility with Darwin LibcPaul Eggert2012-12-111-7/+13
| | | | | | | * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use extern inline if __APPLE__. Use _GL_UNUSED in the non-inline branch. Problem reported by Akim Demaille in <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
* sys_stat: no 'static inline'Paul Eggert2012-11-291-4/+1
| | | | | * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline. * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
* extern-inline: no 'static inline'Paul Eggert2012-11-291-3/+2
| | | | | | | * m4/extern-inline.m4 (gl_EXTERN_INLINE): Do not require AC_C_INLINE. (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as 'static inline', for older compilers.
* xvasprintf: no 'static inline'Paul Eggert2012-11-291-6/+3
| | | | | | | * lib/xvasprintf.c (xstrcat): Now static, not static inline. * m4/xvasprintf.m4 (gl_XVASPRINTF): Do not require AC_C_INLINE.
* parse-datetime, parse-duration: no 'static inline'Paul Eggert2012-11-291-2/+1
| | | | | | | | | | * lib/parse-datetime.y (to_uchar): * lib/parse-duration.c (str_const_to_ul, str_const_to_l) (scale_n_add): Now static, not static inline. * m4/parse-datetime.m4 (gl_PARSE_DATETIME): * modules/parse-duration (configure.ac): Do not require AC_C_INLINE.
* getaddrinfo: no 'static inline'Paul Eggert2012-11-291-2/+1
| | | | | | | * lib/getaddrinfo.c (validate_family): Now static, not static inline. * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Do not require AC_C_INLINE.
* ftruncate, fts, lstat, openat, raise: no 'static inline'Paul Eggert2012-11-295-16/+7
| | | | | | | | | | | | | | | * lib/ftruncate.c (chsize_nothrow): * lib/fts.c (opendirat, diropen): * lib/lstat.c (orig_lstat): * lib/openat.c (orig_openat): * lib/raise.c (raise_nothrow): Now static, not static inline. * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): * m4/fts.m4 (gl_FUNC_FTS_CORE): * m4/lstat.m4 (gl_PREREQ_LSTAT): * m4/openat.m4 (gl_PREREQ_OPENAT): * m4/raise.m4 (gl_PREREQ_RAISE): Do not require AC_C_INLINE.
* fflush, stat: no 'static inline'Paul Eggert2012-11-292-12/+4
| | | | | | | | | | | | | | * lib/fflush.c (clear_ungetc_buffer_preserving_position) (clear_ungetc_buffer, disable_seek_optimization) (restore_seek_optimization, update_fpos_cache): * lib/stat.c (orig_stat): Now static, not static inline. * lib/fflush.c (disable_seek_optimization, restore_seek_optimization) (update_fpos_cache): Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1). * m4/fflush.m4 (gl_PREREQ_FFLUSH): * m4/stat.m4 (gl_PREREQ_STAT): Do not require AC_C_INLINE.
* error, filevercmp: no 'static inline'Paul Eggert2012-11-291-1/+0
| | | | | | | | | * lib/error.c (is_open, flush_stdout): * lib/filevercmp.c (order): Now static, not static inline. * m4/error.m4 (gl_PREREQ_ERROR): * modules/filevercmp (configure.ac): Do not require AC_C_INLINE.
* dup, execute, fatal-signal, etc.: no 'static inline'Paul Eggert2012-11-2916-55/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/dup.c (dup_nothrow): * lib/execute.c (nonintr_close, nonintr_open): * lib/fatal-signal.c (uninstall_handlers, install_handlers): * lib/fopen.c (orig_fopen): * lib/freadseek.c (freadptrinc): * lib/freopen.c (orig_freopen): * lib/fstat.c (orig_fstat, fstat_nothrow): * lib/get-rusage-as.c (get_rusage_as_via_setrlimit) (get_rusage_as_via_iterator): * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): * lib/getdtablesize.c (_setmaxstdio_nothrow): * lib/isatty.c (_isatty_nothrow): * lib/open.c (orig_open): * lib/read.c (read_nothrow): * lib/sigprocmask.c (signal_nothrow): * lib/spawn-pipe.c (nonintr_close, nonintr_open): * lib/vasnprintf.c (MAX_ROOM_NEEDED): * lib/wait-process.c (unregister_slave_subprocess): * lib/write.c (write_nothrow): Now static, not static inline. * lib/spawn-pipe.c (nonintr_open): Define only if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__. * m4/dup.m4 (gl_PREREQ_DUP): * m4/execute.m4 (gl_EXECUTE): * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): * m4/fopen.m4 (gl_PREREQ_FOPEN): * m4/freadseek.m4 (gl_FUNC_FREADSEEK): * m4/freopen.m4 (gl_PREREQ_FREOPEN): * m4/fstat.m4 (gl_PREREQ_FSTAT): * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): * m4/isatty.m4 (gl_PREREQ_ISATTY): * m4/open.m4 (gl_PREREQ_OPEN): * m4/read.m4 (gl_PREREQ_READ): * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): * m4/spawn-pipe.m4 (gl_SPAWN_PIPE): * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): * m4/wait-process.m4 (gl_WAIT_PROCESS): * m4/write.m4 (gl_PREREQ_WRITE): * modules/get-rusage-as, modules/get-rusage-data (configure.ac): Do not require AC_C_INLINE.
* c-strtod, memcoll, readutmp: no 'static inline'Paul Eggert2012-11-293-14/+4
| | | | | | | | | | | * lib/c-strtod.c (c_locale): * lib/memcoll.c (strcoll_loop): * lib/readutmp.c (desirable_utmp_entry): Now static, not static inline. * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): * m4/memcoll.m4 (gl_MEMCOLL): * m4/readutmp.m4 (gl_READUTMP): Do not require AC_C_INLINE.
* arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'Paul Eggert2012-11-296-16/+7
| | | | | | | | | | | | | | | | | | * lib/arctwo.c (to_uchar): * lib/md4.c (set_uint32): * lib/md5.c (set_uint32): * lib/sha1.c (set_uint32): * lib/sha256.c (set_uint32): * lib/sha512.c (set_uint64): Now static, not static inline. This is a bit simpler, and doesn't affect performance with GCC and default optimization. * m4/arctwo.m4 (gl_ARCTWO): * m4/md4.m4 (gl_MD4): * m4/md5.m4 (gl_MD5): * m4/sha1.m4 (gl_SHA1): * m4/sha256.m4 (gl_SHA256): * m4/sha512.m4 (gl_SHA512): Do not require AC_C_INLINE.
* cond, lock, thread: better 'inline'Paul Eggert2012-11-293-9/+5
| | | | | | | | | | | | | | | | | | | * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE): * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE): New macros. Use them instead of static inline, for header functions. * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove) (gl_waitqueue_notify_first, gl_waitqueue_notify_all): * lib/glthread/lock.c (gl_waitqueue_init) (gl_waitqueue_notify_first, gl_waitqueue_notify_all): * lib/glthread/thread.c (get_current_thread_handle): Change 'static inline' to 'inline'. * lib/glthread/cond.h, lib/glthread/thread.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/cond.m4 (gl_COND): * m4/lock.m4 (gl_PREREQ_LOCK): * m4/thread.m4 (gl_THREAD): Do not require AC_C_INLINE. * modules/cond, modules/thread (Depends-on): Add extern-inline.
* chdir-long, cycle-check, savewd: better 'inline'Paul Eggert2012-11-293-13/+5
| | | | | | | | | | | | | | | | | * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free) (find_non_slash): * lib/cycle-check.c (is_zero_or_power_of_two): * lib/savewd.c (savewd_delegating): Change 'static inline' to 'inline'. * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro. Replace all remaining uses of 'static inline' with it. * lib/savewd.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): * m4/cycle-check.m4 (gl_CYCLE_CHECK): * m4/savewd.m4 (gl_SAVEWD): Do not require AC_C_INLINE. * modules/savewd (Depends-on): Add extern-inline.
* base32, base64: no need for 'inline'Paul Eggert2012-11-292-4/+2
| | | | | | | | | * lib/base32.c (to_uchar, get_8, decode_8): * lib/base64.c (to_uchar, get_4, decode_4): Change 'static inline' to 'inline'. * m4/base32.m4 (gl_PREREQ_BASE32): * m4/base64.m4 (gl_PREREQ_BASE64): Do not require AC_C_INLINE.
* list, oset, xlist, xoset, xsublist: simplify via extern inlinePaul Eggert2012-11-291-10/+0
| | | | | | | | | | | | | | | | | | | | | | | * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE): * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE): * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE): * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE): * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE): New macro. Replace all uses of 'static inline' with it. [HAVE_INLINE]: Implement functions as *_INLINE functions, instead of as macros FOO that are defined to static inline functions FOO_inline. * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c: * lib/gl_xsublist.c: Reimplement from scratch, by defining the corresponding *_INLINE macro and including the corresponding .h file. This is simpler. * m4/gl_list.m4: Remove. * modules/list, modules/oset, modules/xlist, modules/xoset: (Files): Remove m4/gl_list.m4. (configure.ac): Remove gl_LIST. * modules/list, modules/oset, modules/xlist, modules/xoset: * modules/xsublist: (Depends-on): Depend on extern-inline, not inline.
* xalloc: better 'inline'Paul Eggert2012-11-291-17/+2
| | | | | | | | | | | | * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE): New macro. Replace all uses of 'static inline' with it. (static_inline): Remove. * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc): Let 'extern inline' do the work automatically, instead of doing it by hand. * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC): Remove. All uses removed. * modules/xalloc (Depends-on): Remove 'inline'. Add 'extern-inline'.
* gethrxtime: better 'inline'Paul Eggert2012-11-291-11/+5
| | | | | | | | | | | | | | | | | | | | | * lib/xtime.c: New file. * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE): * lib/xtime.h (XTIME_INCLUDE): New macros. Replace all uses of 'static inline' with them. * lib/gethrxtime.c (gethrxtime): Define only if ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since this source file is now always compiled, because of the extern inline. * lib/gethrxtime.h, lib/xtime.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros if gethrtime works, as they're not needed in that case. (gl_XTIME): Do not require AC_C_INLINE. (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always compiled now. Move the check into gl_GETHRXTIME. * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c. (Depends-on): Add extern-inline. (configure.ac): gethrxtime is always compiled now. (lib_SOURCES): Add gethrxtime.c.
* wctype-h: better 'inline'Paul Eggert2012-11-291-3/+1
| | | | | | | | | | * lib/wctype-h.c: New file. * lib/wctype.in.h (_GL_WCTYPE_INLINE): New macro. Replace all uses of 'static inline' with it. Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE. * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c. (Depends-on): Add extern-inline.
* unistd: better 'inline'Paul Eggert2012-11-291-2/+1
| | | | | | | | | | * lib/unistd.c: New file. * lib/unistd.in.h (_GL_UNISTD_INLINE): New macro. Replace all uses of 'static inline' with it. Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE. * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c. (Depends-on): Add extern-inline.
* sys_socket: better 'inline'Paul Eggert2012-11-291-2/+1
| | | | | | | | | | * lib/sys_socket.c: New file. * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE): New macro. Replace all uses of 'static inline' with it. Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE. * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c. (Depends-on): Add extern-inline.
* stdio: better 'inline'Paul Eggert2012-11-291-2/+1
| | | | | | | | | | * lib/stdio.c: New file. * lib/stdio.in.h (_GL_STDIO_INLINE): New macro. Replace all uses of 'static inline' with it. Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE. * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c. (Depends-on): Add extern-inline.
* sigaction: better 'inline'Paul Eggert2012-11-291-5/+2
| | | | | | | | | | * lib/sig-handler.c: New file. * lib/sig-handler.h (SIG_HANDLER_INLINE): New macro. Replace all uses of 'static inline' with it. Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE. * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c. (Depends-on): Add extern-inline.