aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2015-06-17 21:18:05 +0800
committerTomáš Mráz <t8m@users.noreply.github.com>2019-01-04 12:21:34 +0100
commit73bf6d25ddb7a2cb73bceda3d880174b1d1e4a26 (patch)
tree9a680e2fe00ccf11146b621470219f59aae4daff /configure.ac
parent1d1d3b59af50c40efcc74f9c3f37b446a921e83e (diff)
downloadpam-73bf6d25ddb7a2cb73bceda3d880174b1d1e4a26.tar.gz
pam-73bf6d25ddb7a2cb73bceda3d880174b1d1e4a26.tar.bz2
pam-73bf6d25ddb7a2cb73bceda3d880174b1d1e4a26.zip
build: ignore pam_lastlog when logwtmp is not available.
* configure.ac: check logwtmp and set COND_BUILD_PAM_LASTLOG * modules/pam_lastlog/Makefile.am: check COND_BUILD_PAM_LASTLOG Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 69748614..4d1b1965 100644
--- a/configure.ac
+++ b/configure.ac
@@ -534,8 +534,10 @@ AC_CHECK_FUNCS(getutent_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r
AC_CHECK_FUNCS(getgrouplist getline getdelim)
AC_CHECK_FUNCS(inet_ntop inet_pton innetgr)
AC_CHECK_FUNCS([ruserok_af ruserok], [break])
+AC_CHECK_FUNCS([logwtmp])
AM_CONDITIONAL([COND_BUILD_PAM_RHOSTS], [test "$ac_cv_func_ruserok_af" = yes -o "$ac_cv_func_ruserok" = yes])
+AM_CONDITIONAL([COND_BUILD_PAM_LASTLOG], [test "$ac_cv_func_logwtmp" = yes])
AC_CHECK_FUNCS(unshare, [UNSHARE=yes], [UNSHARE=no])
AM_CONDITIONAL([HAVE_UNSHARE], [test "$UNSHARE" = yes])