mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
configure: discover pam_wrapper directory from pkg-config
Signed-off-by: Mike Miller <mtmiller@debian.org>
This commit is contained in:
committed by
Nikos Mavrogiannopoulos
parent
eed6ff6902
commit
e3ccd247a0
32
configure.ac
32
configure.ac
@@ -473,20 +473,26 @@ LIBS="$oldlibs"
|
|||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(PCL, test "$with_local_pcl" = no)
|
AM_CONDITIONAL(PCL, test "$with_local_pcl" = no)
|
||||||
|
|
||||||
if test -f /usr/lib64/pam_wrapper/pam_matrix.so;then
|
if test "$have_cwrap_pam" = yes; then
|
||||||
AC_SUBST([PAMWRAPDIR], [/usr/lib64/pam_wrapper])
|
m4_ifdef([PKG_CHECK_VAR], [PKG_CHECK_VAR([CWRAP_PAM_MODULES], [pam_wrapper], [modules])])
|
||||||
elif test -f /usr/lib/pam_wrapper/pam_matrix.so;then
|
|
||||||
AC_SUBST([PAMWRAPDIR], [/usr/lib/pam_wrapper])
|
|
||||||
else
|
|
||||||
AC_SUBST([PAMWRAPDIR], [/usr/lib/pam_wrapper])
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -f /usr/lib64/security/pam_oath.so;then
|
if test -f $CWRAP_PAM_MODULES/pam_matrix.so;then
|
||||||
AC_SUBST([PAMDIR], [/usr/lib64/security])
|
AC_SUBST([PAMWRAPDIR], [$CWRAP_PAM_MODULES])
|
||||||
elif test -f /usr/lib/security/pam_oath.so;then
|
elif test -f /usr/lib64/pam_wrapper/pam_matrix.so;then
|
||||||
AC_SUBST([PAMDIR], [/usr/lib/security])
|
AC_SUBST([PAMWRAPDIR], [/usr/lib64/pam_wrapper])
|
||||||
else
|
elif test -f /usr/lib/pam_wrapper/pam_matrix.so;then
|
||||||
AC_SUBST([PAMDIR], [/usr/lib/security])
|
AC_SUBST([PAMWRAPDIR], [/usr/lib/pam_wrapper])
|
||||||
|
else
|
||||||
|
AC_SUBST([PAMWRAPDIR], [/usr/lib/pam_wrapper])
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -f /usr/lib64/security/pam_oath.so;then
|
||||||
|
AC_SUBST([PAMDIR], [/usr/lib64/security])
|
||||||
|
elif test -f /usr/lib/security/pam_oath.so;then
|
||||||
|
AC_SUBST([PAMDIR], [/usr/lib/security])
|
||||||
|
else
|
||||||
|
AC_SUBST([PAMDIR], [/usr/lib/security])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
uid=$(id -u)
|
uid=$(id -u)
|
||||||
|
|||||||
Reference in New Issue
Block a user