mirror of
https://github.com/Raymo111/i3lock-color.git
synced 2025-02-24 16:06:26 -05:00
make the check for libpam conditional (#165)
This commit is contained in:
parent
ef4f9e4057
commit
8c3a110c6a
1 changed files with 9 additions and 1 deletions
10
configure.ac
10
configure.ac
|
@ -76,7 +76,15 @@ AC_SEARCH_LIBS([ev_run], [ev], , [AC_MSG_FAILURE([cannot find the required ev_ru
|
|||
|
||||
AC_SEARCH_LIBS([shm_open], [rt])
|
||||
|
||||
AC_SEARCH_LIBS([pam_authenticate], [pam])
|
||||
# Only disable PAM on OpenBSD where i3lock uses BSD Auth instead
|
||||
case "$host" in
|
||||
*-openbsd*)
|
||||
# Nothing yet.
|
||||
;;
|
||||
*)
|
||||
AC_SEARCH_LIBS([pam_authenticate], [pam])
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_SEARCH_LIBS([iconv_open], [iconv], , [AC_MSG_FAILURE([cannot find the required iconv_open() function despite trying to link with -liconv])])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue