]>
Commit | Line | Data |
---|---|---|
ef57eb7b | 1 | ## Copyright (C) 1996-2016 The Squid Software Foundation and contributors |
ca02e0ec 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 | ||
5eabe4b4 AJ |
8 | # This file is supposed to run all the tests required to identify which |
9 | # configured modules are able to be built in this environment | |
10 | ||
11 | # FIXME: de-duplicate $enable_external_acl_helpers list containing double entries. | |
12 | ||
13 | #define list of modules to build | |
c1bbd56c | 14 | auto_ext_acl_modules=no |
5eabe4b4 AJ |
15 | if test "x${enable_external_acl_helpers:=yes}" = "xyes" ;then |
16 | SQUID_LOOK_FOR_MODULES([$srcdir/helpers/external_acl],[enable_external_acl_helpers]) | |
c1bbd56c | 17 | auto_ext_acl_modules=yes |
5eabe4b4 AJ |
18 | fi |
19 | if test "x$enable_external_acl_helpers" = "xnone" ; then | |
20 | enable_external_acl_helpers="" | |
21 | fi | |
22 | EXTERNAL_ACL_HELPERS="" | |
23 | enable_external_acl_helpers="`echo $enable_external_acl_helpers| sed -e 's/,/ /g;s/ */ /g'`" | |
24 | if test "x$enable_external_acl_helpers" != "xno" ; then | |
25 | for helper in $enable_external_acl_helpers ; do | |
26 | dir="$srcdir/helpers/external_acl/$helper" | |
27 | ||
28 | # modules converted to autoconf macros already | |
29 | # NP: we only need this list because m4_include() does not accept variables | |
30 | if test "x$helper" = "xAD_group" ; then | |
31 | m4_include([helpers/external_acl/AD_group/required.m4]) | |
32 | ||
33 | elif test "x$helper" = "xLDAP_group" ; then | |
34 | m4_include([helpers/external_acl/LDAP_group/required.m4]) | |
35 | ||
36 | elif test "x$helper" = "xLM_group" ; then | |
37 | m4_include([helpers/external_acl/LM_group/required.m4]) | |
38 | ||
ec1fac73 FC |
39 | elif test "x$helper" = "xdelayer" ; then |
40 | m4_include([helpers/external_acl/delayer/required.m4]) | |
41 | ||
5eabe4b4 AJ |
42 | elif test "x$helper" = "xSQL_session" ; then |
43 | m4_include([helpers/external_acl/SQL_session/required.m4]) | |
44 | ||
45 | elif test "x$helper" = "xeDirectory_userip" ; then | |
46 | m4_include([helpers/external_acl/eDirectory_userip/required.m4]) | |
47 | ||
48 | elif test "x$helper" = "xfile_userip" ; then | |
49 | m4_include([helpers/external_acl/file_userip/required.m4]) | |
50 | ||
51 | elif test "x$helper" = "xkerberos_ldap_group" ; then | |
52 | m4_include([helpers/external_acl/kerberos_ldap_group/required.m4]) | |
53 | ||
54 | elif test "x$helper" = "xsession" ; then | |
55 | m4_include([helpers/external_acl/session/required.m4]) | |
56 | ||
57 | elif test "x$helper" = "xtime_quota" ; then | |
58 | m4_include([helpers/external_acl/time_quota/required.m4]) | |
59 | ||
60 | elif test "x$helper" = "xunix_group" ; then | |
61 | m4_include([helpers/external_acl/unix_group/required.m4]) | |
62 | ||
63 | elif test "x$helper" = "xwbinfo_group" ; then | |
64 | m4_include([helpers/external_acl/wbinfo_group/required.m4]) | |
65 | ||
66 | # modules not yet converted to autoconf macros (or third party drop-in's) | |
67 | elif test -f "$dir/config.test" && sh "$dir/config.test" "$squid_host_os"; then | |
68 | BUILD_HELPER="$helper" | |
69 | fi | |
70 | ||
71 | if test -d "$srcdir/helpers/external_acl/$helper"; then | |
72 | if test "$BUILD_HELPER" != "$helper"; then | |
c1bbd56c AJ |
73 | if test "x$auto_ext_acl_modules" = "xyes"; then |
74 | AC_MSG_NOTICE([external acl helper $helper ... found but cannot be built]) | |
75 | else | |
76 | AC_MSG_ERROR([external acl helper $helper ... found but cannot be built]) | |
77 | fi | |
5eabe4b4 AJ |
78 | else |
79 | EXTERNAL_ACL_HELPERS="$EXTERNAL_ACL_HELPERS $BUILD_HELPER" | |
80 | fi | |
81 | else | |
82 | AC_MSG_ERROR([external acl helper $helper ... not found]) | |
83 | fi | |
84 | done | |
85 | fi | |
86 | AC_MSG_NOTICE([External acl helpers to be built: $EXTERNAL_ACL_HELPERS]) | |
87 | AC_SUBST(EXTERNAL_ACL_HELPERS) |