aboutsummaryrefslogtreecommitdiffstats
path: root/config/user-pam.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/user-pam.m4')
-rw-r--r--config/user-pam.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/config/user-pam.m4 b/config/user-pam.m4
index fc29a1e1b..9db35808c 100644
--- a/config/user-pam.m4
+++ b/config/user-pam.m4
@@ -12,8 +12,9 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_PAM], [
AC_ARG_WITH(pamconfigsdir,
AS_HELP_STRING([--with-pamconfigsdir=DIR],
- [install pam-config files in dir [[/usr/share/pamconfigs]]]),
- [pamconfigsdir="$withval"],[pamconfigsdir=/usr/share/pam-configs])
+ [install pam-config files in dir [DATADIR/pam-configs]]),
+ [pamconfigsdir="$withval"],
+ [pamconfigsdir='${datadir}/pam-configs'])
AS_IF([test "x$enable_pam" != "xno"], [
AC_CHECK_HEADERS([security/pam_modules.h], [
@@ -29,7 +30,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_PAM], [
])
])
AS_IF([test "x$enable_pam" = "xyes"], [
- DEFINE_PAM='--with "pam" --define "_pamconfigsdir $(pamconfigsdir)"'
+ DEFINE_PAM='--with pam'
])
AC_SUBST(DEFINE_PAM)
AC_SUBST(pammoduledir)