Check if crypt is declared.
Showing
1 changed file
with
10 additions
and
0 deletions
... | @@ -305,6 +305,16 @@ if test x"$testpam" = x"yes"; then | ... | @@ -305,6 +305,16 @@ if test x"$testpam" = x"yes"; then |
305 | fi | 305 | fi |
306 | 306 | ||
307 | AC_CHECK_HEADERS(crypt.h) | 307 | AC_CHECK_HEADERS(crypt.h) |
308 | AC_CHECK_DECLS(crypt, , ,[ | ||
309 | #include <unistd.h> | ||
310 | #ifdef HAVE_CRYPT_H | ||
311 | # include <crypt.h> | ||
312 | #endif]) | ||
313 | AH_BOTTOM([ | ||
314 | #if !HAVE_DECL_CRYPT | ||
315 | char *crypt(const char *key, const char *salt); | ||
316 | #endif]) | ||
317 | |||
308 | AC_CHECK_LIB(crypt, crypt) | 318 | AC_CHECK_LIB(crypt, crypt) |
309 | 319 | ||
310 | AC_SUBST(AUTHLIBS) | 320 | AC_SUBST(AUTHLIBS) | ... | ... |
-
Please register or sign in to post a comment