]> git.sur5r.net Git - i3/i3lock/commitdiff
make the check for libpam conditional (#165)
authorJasper Lievisse Adriaanse <jasper@humppa.nl>
Mon, 11 Dec 2017 07:29:30 +0000 (08:29 +0100)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Mon, 11 Dec 2017 07:29:30 +0000 (08:29 +0100)
configure.ac

index d4bceb0188e714928ab351b72c24d8125a8b8e43..3402736ef89689ab90e948c7f64f62a9f10e8cb7 100644 (file)
@@ -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])])