Commit 87eaa052 87eaa052018987b325535a9ca2418b9b4636459f by Sergey Poznyakoff

Check if crypt is declared.

1 parent 51ea95ed
......@@ -305,6 +305,16 @@ if test x"$testpam" = x"yes"; then
fi
AC_CHECK_HEADERS(crypt.h)
AC_CHECK_DECLS(crypt, , ,[
#include <unistd.h>
#ifdef HAVE_CRYPT_H
# include <crypt.h>
#endif])
AH_BOTTOM([
#if !HAVE_DECL_CRYPT
char *crypt(const char *key, const char *salt);
#endif])
AC_CHECK_LIB(crypt, crypt)
AC_SUBST(AUTHLIBS)
......