summaryrefslogtreecommitdiffstats
path: root/m4/crypt.m4
blob: 5aa1e148322ab53c1dcc8b2641c6e16247650814 (plain)
1
2
3
4
5
6
7
8
9
10
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)
])