Skip to content
Snippets Groups Projects
Commit cb742873 authored by Moe Jette's avatar Moe Jette
Browse files

Add autoconf support for PAM module.

parent f0117190
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ EXTRA_DIST = \
x_ac_elan.m4 \
x_ac_federation.m4 \
x_ac_gpl_licensed.m4 \
x_ac_pam.m4 \
x_ac_munge.m4 \
x_ac_ncurses.m4 \
x_ac_ptrace.m4 \
......
##*****************************************************************************
# $Id$
##*****************************************************************************
# AUTHOR:
# Morris Jette <jette1@llnl.gov>
#
# SYNOPSIS:
# X_AC_PAM
#
# DESCRIPTION:
# Test for PAM (Pluggable Authentication Module) support.
#
# WARNINGS:
# This macro must be placed after AC_PROG_CC or equivalent.
##*****************************************************************************
AC_DEFUN([X_AC_PAM], [
AC_CHECK_LIB([pam],
[pam_get_user],
[ac_have_pam=yes; PAM_LIBS="-lpam"])
AC_SUBST(PAM_LIBS)
AM_CONDITIONAL(HAVE_PAM, test "x$ac_have_pam" = "xyes")
if test "x$ac_have_pam" = "xyes"; then
AC_DEFINE(HAVE_PAM, 1, [define if you have the PAM library])
else
AC_MSG_WARN([Unable to locate PAM library])
fi
])
......@@ -67,6 +67,10 @@ dnl Check of sched_getaffinity exists and it's argument count
dnl
X_AC_AFFINITY
dnl
dnl Check for PAM module support
X_AC_PAM
dnl Checks for types.
dnl
X_AC_SLURM_BIGENDIAN
......
......@@ -12,7 +12,7 @@ slurmstepd_LDADD = \
$(top_builddir)/src/common/libcommon.la \
$(top_builddir)/src/common/libdaemonize.la \
$(top_builddir)/src/common/libeio.la \
$(SSL_LIBS)
$(SSL_LIBS) $(PAM_LIBS)
slurmstepd_SOURCES = \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment