X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3lock;a=blobdiff_plain;f=configure.ac;h=3402736ef89689ab90e948c7f64f62a9f10e8cb7;hp=d4bceb0188e714928ab351b72c24d8125a8b8e43;hb=8c3a110c6a3ba04545623e1dca752954e47acf6e;hpb=ef4f9e40570d020571d277bde5703e32b126b9e4 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])])