summaryrefslogtreecommitdiff
path: root/am/utmp.m4
diff options
context:
space:
mode:
Diffstat (limited to 'am/utmp.m4')
-rw-r--r--am/utmp.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/am/utmp.m4 b/am/utmp.m4
new file mode 100644
index 000000000..ce9406a91
--- /dev/null
+++ b/am/utmp.m4
@@ -0,0 +1,14 @@
+dnl MU_CHECK_UTMP -- Check for the presence of utmp.h, setutent, getutent
+dnl and endutent calls.
+AC_DEFUN([MU_CHECK_UTMP],
+[
+ AC_CHECK_HEADERS([utmp.h])
+ # The three functions setutent,getutent and endutent depend on each other,
+ # so it seems reasonable to provide replacements for all three if getutent
+ # is not present.
+ AC_CHECK_FUNC(getutent,
+ AC_DEFINE(HAVE_GETUTENT_CALLS,,
+ [Define if your system has the three ???utent functions]),
+ [if test "$ac_cv_header_utmp_h" = "yes"; then
+ AC_LIBOBJ([utmp])
+ fi])])

Return to:

Send suggestions and report system problems to the System administrator.