aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2014-12-05 07:49:41 +0200
committerSergey Poznyakoff <gray@gnu.org>2014-12-05 07:49:41 +0200
commit399768dde3450a6184859ae0929f7debbe3521e3 (patch)
tree6d674761a1f533baa78ac17039ba418b2d906d05 /configure.ac
parente094d8082007687103893671c4a032d5bbf4ee36 (diff)
downloadpam-modules-399768dde3450a6184859ae0929f7debbe3521e3.tar.gz
pam-modules-399768dde3450a6184859ae0929f7debbe3521e3.tar.bz2
Build pam_fshadow even if fgetpwent is not defined.
* configure.ac: Only check if fgetpwent is defined, don't disable the module if it is not. * pam_fshadow/pam_fshadow.c [!HAVE_FGETPWENT] (fgetpwent): Provide a replacement.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 4 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac
index b553612..b2be844 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,10 +63,8 @@ AC_CHECK_HEADERS(security/pam_appl.h security/pam_modules.h,
:,
AC_MSG_ERROR([Required PAM header files not found]))
AC_CHECK_HEADERS(fcntl.h syslog.h unistd.h crypt.h security/_pam_aconf.h \
- security/pam_misc.h security/pam_ext.h termios.h)
-AC_CHECK_HEADER(shadow.h,
- [],
- [build_fshadow=no])
+ security/pam_misc.h security/pam_ext.h termios.h \
+ shadow.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
@@ -79,19 +77,10 @@ AC_CHECK_MEMBERS([struct spwd.sp_expire], , ,
[ #include <shadow.h> ])
dnl Checks for library functions.
-AC_CHECK_FUNCS(strerror tcgetattr)
+AC_CHECK_FUNCS(strerror tcgetattr fgetpwent)
-PM_ENABLE(fshadow,[
- AC_CHECK_FUNC(fgetpwent,
- [build_fshadow=yes],
- [if $build_fshadow = yes; then
- AC_MSG_ERROR([cannot build requested pam_fgetpwent, because the fgetpwent function is not available])
- else
- build_fshadow=no
- fi])
-])
-
+PM_ENABLE(fshadow)
PM_ENABLE(log)
PM_ENABLE(regex)
PM_ENABLE(groupmember)

Return to:

Send suggestions and report system problems to the System administrator.