]>
Commit | Line | Data |
---|---|---|
ef57eb7b | 1 | ## Copyright (C) 1996-2016 The Squid Software Foundation and contributors |
5b95b903 AJ |
2 | ## |
3 | ## Squid software is distributed under GPLv2+ license and includes | |
4 | ## contributions from numerous individuals and organizations. | |
5 | ## Please see the COPYING and CONTRIBUTORS files for details. | |
6 | ## | |
7 | ||
e59a64d7 AJ |
8 | AC_CHECK_HEADERS([pwd.h],[ |
9 | # check for crypt(3), may require -lcrypt | |
10 | SQUID_STATE_SAVE(getpwnam_helper) | |
11 | LIBS="$LIBS $CRYPTLIB" | |
12 | AC_CHECK_FUNCS(crypt) | |
13 | SQUID_STATE_ROLLBACK(getpwnam_helper) | |
14 | ||
15 | # unconditionally requires crypt(3), for now | |
ce92dbbc | 16 | if test "x$ac_cv_func_crypt" != "x"; then |
e59a64d7 AJ |
17 | AC_CHECK_HEADERS(unistd.h crypt.h shadow.h) |
18 | ||
19 | BUILD_HELPER="getpwnam" | |
20 | fi | |
21 | ]) |