commit 01476c56333cccae80cdd3f125b0b9f3a0fe2cb3
parent 046784b4c40cf21228f7dd6bcad202aea3c75633
Author: Pandora <Pandora@techfo.xyz>
Date: Mon, 11 Dec 2017 13:42:10 -0500
Merge branch 'master' of https://github.com/i3/i3lock
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git 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])])