diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2006-09-22 18:09:47 +0000 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2006-09-22 18:09:47 +0000 |
commit | e40cf4e4eb8a15c5982664e9ae8546661e02f4fd (patch) | |
tree | 863809d5aca8d5bdc9d48ddc19bb80cb35e5bec2 /m4/readutmp.m4 | |
parent | 9e6ff18cbbceffb66ed4a9d52159f01f7b3f84a2 (diff) | |
download | gnulib-e40cf4e4eb8a15c5982664e9ae8546661e02f4fd.tar.gz |
* fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
* getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
* jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
also add missing comma that caused broken test.
* link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
stdlib.h, for `abort'.
* ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
variables.
* mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
include unistd.h if present, for `rmdir'.
* physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
variables.
* putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
in the process include standard headers for prototypes.
* readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
gets declared on GNU/Linux.
* rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
unistd.h, for `rmdir'.
* time_r.m4 (gl_TIME_R): Avoid unused variables.
Diffstat (limited to 'm4/readutmp.m4')
-rw-r--r-- | m4/readutmp.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/readutmp.m4 b/m4/readutmp.m4 index bc85c5f4cf..33ed4e848a 100644 --- a/m4/readutmp.m4 +++ b/m4/readutmp.m4 @@ -1,4 +1,4 @@ -# readutmp.m4 serial 11 +# readutmp.m4 serial 12 dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -6,6 +6,9 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_READUTMP], [ + dnl Persuade utmpx.h to declare utmpxname + AC_REQUIRE([AC_GNU_SOURCE]) + AC_CHECK_HEADERS_ONCE(utmp.h utmpx.h) if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then AC_LIBOBJ([readutmp]) |