From f0dfa73982b372017b9f9f72d8b40b533b8593ae Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 14 Sep 2005 11:00:34 +0000 Subject: [PATCH] AIX 5.1 has but no updwtmpx(). Treat the latter as a reason to OMIT_UTMP. Reported by Mike Protts. [originally from svn r6311] --- unix/configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/configure.ac b/unix/configure.ac index 40e6d569..5b0c0c9e 100644 --- a/unix/configure.ac +++ b/unix/configure.ac @@ -23,7 +23,7 @@ AC_SUBST([all_targets]) AC_SEARCH_LIBS([socket], [xnet]) -AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal]) +AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal updwtmpx]) AC_OUTPUT @@ -39,7 +39,7 @@ AH_BOTTOM([ #ifndef HAVE_STRSIGNAL # define HAVE_NO_STRSIGNAL #endif -#ifndef HAVE_UTMPX_H +#if !defined(HAVE_UTMPX_H) || !defined(HAVE_UPDWTMPX) # define OMIT_UTMP #endif #ifndef HAVE_PTSNAME