]>
Commit | Line | Data |
---|---|---|
5b74111a | 1 | ## Copyright (C) 1996-2018 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 | 15 | if test "x${enable_external_acl_helpers:=yes}" = "xyes" ;then |
e046643f | 16 | SQUID_LOOK_FOR_MODULES([$srcdir/src/acl/external],[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 | |
e046643f | 26 | dir="$srcdir/src/acl/external/$helper" |
5eabe4b4 AJ |
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 | |
e046643f | 31 | m4_include([src/acl/external/AD_group/required.m4]) |
5eabe4b4 AJ |
32 | |
33 | elif test "x$helper" = "xLDAP_group" ; then | |
e046643f | 34 | m4_include([src/acl/external/LDAP_group/required.m4]) |
5eabe4b4 AJ |
35 | |
36 | elif test "x$helper" = "xLM_group" ; then | |
e046643f | 37 | m4_include([src/acl/external/LM_group/required.m4]) |
5eabe4b4 | 38 | |
ec1fac73 | 39 | elif test "x$helper" = "xdelayer" ; then |
e046643f | 40 | m4_include([src/acl/external/delayer/required.m4]) |
ec1fac73 | 41 | |
5eabe4b4 | 42 | elif test "x$helper" = "xSQL_session" ; then |
e046643f | 43 | m4_include([src/acl/external/SQL_session/required.m4]) |
5eabe4b4 AJ |
44 | |
45 | elif test "x$helper" = "xeDirectory_userip" ; then | |
e046643f | 46 | m4_include([src/acl/external/eDirectory_userip/required.m4]) |
5eabe4b4 AJ |
47 | |
48 | elif test "x$helper" = "xfile_userip" ; then | |
e046643f | 49 | m4_include([src/acl/external/file_userip/required.m4]) |
5eabe4b4 AJ |
50 | |
51 | elif test "x$helper" = "xkerberos_ldap_group" ; then | |
e046643f | 52 | m4_include([src/acl/external/kerberos_ldap_group/required.m4]) |
5eabe4b4 AJ |
53 | |
54 | elif test "x$helper" = "xsession" ; then | |
e046643f | 55 | m4_include([src/acl/external/session/required.m4]) |
5eabe4b4 AJ |
56 | |
57 | elif test "x$helper" = "xtime_quota" ; then | |
e046643f | 58 | m4_include([src/acl/external/time_quota/required.m4]) |
5eabe4b4 AJ |
59 | |
60 | elif test "x$helper" = "xunix_group" ; then | |
e046643f | 61 | m4_include([src/acl/external/unix_group/required.m4]) |
5eabe4b4 AJ |
62 | |
63 | elif test "x$helper" = "xwbinfo_group" ; then | |
e046643f | 64 | m4_include([src/acl/external/wbinfo_group/required.m4]) |
5eabe4b4 AJ |
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 | ||
e046643f | 71 | if test -d "$srcdir/src/acl/external/$helper"; then |
5eabe4b4 | 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) |