diff options
Diffstat (limited to '')
-rw-r--r-- | m4/crypt.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/crypt.m4 b/m4/crypt.m4 new file mode 100644 index 0000000..5aa1e14 --- /dev/null +++ b/m4/crypt.m4 @@ -0,0 +1,11 @@ +AC_DEFUN([DOVECOT_CRYPT], [ + AC_CHECK_FUNC(crypt,, [ + AC_CHECK_LIB(crypt, crypt, [ + AUTH_LIBS="-lcrypt $AUTH_LIBS" + CRYPT_LIBS="-lcrypt" + ], [ + AC_MSG_ERROR([crypt() wasn't found]) + ]) + ]) + AC_SUBST(CRYPT_LIBS) +]) |