From 8c3a110c6a3ba04545623e1dca752954e47acf6e Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Mon, 11 Dec 2017 08:29:30 +0100 Subject: [PATCH] make the check for libpam conditional (#165) --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d4bceb0..3402736 100644 --- a/configure.ac +++ b/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])]) -- 2.39.5