]> git.ipfire.org Git - thirdparty/squid.git/blob - helpers/basic_auth/getpwnam/required.m4
Boilerplate: update copyright blurbs for Basic authentication helpers
[thirdparty/squid.git] / helpers / basic_auth / getpwnam / required.m4
1 ## Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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
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
16 if test "x$ac_cv_func_crypt" != "x"; then
17 AC_CHECK_HEADERS(unistd.h crypt.h shadow.h)
18
19 BUILD_HELPER="getpwnam"
20 fi
21 ])