summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-06-09 11:58:35 +1000
committerDamien Miller <djm@mindrot.org>2000-06-09 11:58:35 +1000
commita1cb64484e070c5bdd2e0f832bd2ebaa0a6af8b5 (patch)
tree54cc9ff9d74c20072689386909105a287bbfaf52 /configure.in
parent7206ad170c0463478c00da88b163410eec1aa5c3 (diff)
- (djm) Patch from Kenji Miyake <kenji@miyake.org> to disable utmp usageV_2_1_1_P1
(in favour of utmpx) on Solaris 8
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index a886fbbd..9eb38393 100644
--- a/configure.in
+++ b/configure.in
@@ -106,6 +106,15 @@ case "$host" in
need_dash_r=1
# hardwire lastlog location (can't detect it on some versions)
conf_lastlog_location="/var/adm/lastlog"
+ AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x)
+ sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'`
+ if test "$sol2ver" -ge 8; then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(DISABLE_UTMP)
+ AC_DEFINE(DISABLE_WTMP)
+ else
+ AC_MSG_RESULT(no)
+ fi
;;
*-*-sunos4*)
CFLAGS="$CFLAGS -DSUNOS4"