diff options
author | Jim Meyering <jim@meyering.net> | 2000-01-30 16:47:31 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-01-30 16:47:31 +0000 |
commit | 744efcce69ed95710ba0e21b76154da9e8e22b81 (patch) | |
tree | cde08245ae93ba4b8cbae700234a3e4d145201d5 /m4 | |
parent | 3d64706c7e5df94c12fa4f958ff82cbc2de1c7eb (diff) | |
download | coreutils-744efcce69ed95710ba0e21b76154da9e8e22b81.tar.xz |
(utmp_includes): Define.
Check for ut_user and ut_name members in both struct utmpx
and struct utmp.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/prereq.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/m4/prereq.m4 b/m4/prereq.m4 index f478a14d9..2f97d3938 100644 --- a/m4/prereq.m4 +++ b/m4/prereq.m4 @@ -51,6 +51,19 @@ AC_DEFUN(jm_PREREQ_READUTMP, AC_CHECK_HEADERS(string.h utmpx.h sys/param.h) AC_CHECK_FUNCS(utmpname) AM_C_PROTOTYPES + + utmp_includes="\ +$ac_includes_default +#ifdef HAVE_UTMPX_H +# include <utmpx.h> +#else +# include <utmp.h> +#endif +" + AC_CHECK_MEMBERS((struct utmpx.ut_user),,,[$utmp_includes]) + AC_CHECK_MEMBERS((struct utmp.ut_user),,,[$utmp_includes]) + AC_CHECK_MEMBERS((struct utmpx.ut_name),,,[$utmp_includes]) + AC_CHECK_MEMBERS((struct utmp.ut_name),,,[$utmp_includes]) ]) AC_DEFUN(jm_PREREQ_REGEX, |