]> git.ipfire.org Git - thirdparty/squid.git/blame - helpers/storeid_rewrite/modules.m4
Boilerplate: update copyright blurbs on Squid helpers
[thirdparty/squid.git] / helpers / storeid_rewrite / modules.m4
CommitLineData
ca02e0ec
AJ
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
0d5ee502
AM
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_storeid_rewrite_helpers list containing double entries.
12
13#define list of modules to build
14if test "x${enable_storeid_rewrite_helpers:=yes}" = "xyes" ; then
15 SQUID_LOOK_FOR_MODULES([$srcdir/helpers/storeid_rewrite],[enable_storeid_rewrite_helpers])
16fi
17
18enable_storeid_rewrite_helpers="`echo $enable_storeid_rewrite_helpers| sed -e 's/,/ /g;s/ */ /g'`"
19AC_MSG_NOTICE([Store-ID rewrite helper candidates: $enable_storeid_rewrite_helpers])
20STOREID_REWRITE_HELPERS=""
21if test "x$enable_storeid_rewrite_helpers" != "xno" ; then
22 for helper in $enable_storeid_rewrite_helpers; do
23 dir="$srcdir/helpers/storeid_rewrite/$helper"
24
25 # modules converted to autoconf macros already
26 # NP: we only need this list because m4_include() does not accept variables
27 if test "x$helper" = "xfile" ; then
28 m4_include([helpers/storeid_rewrite/file/required.m4])
29
30 # modules not yet converted to autoconf macros (or third party drop-in's)
31 elif test -f "$dir/config.test" && sh "$dir/config.test" "$squid_host_os"; then
32 BUILD_HELPER="$helper"
33 fi
34
35 if test -d "$srcdir/helpers/storeid_rewrite/$helper"; then
36 if test "$BUILD_HELPER" != "$helper"; then
37 AC_MSG_NOTICE([Store-ID rewrite helper $helper ... found but cannot be built])
38 else
39 STOREID_REWRITE_HELPERS="$STOREID_REWRITE_HELPERS $BUILD_HELPER"
40 fi
41 else
42 AC_MSG_ERROR([Store-ID rewrite helper $helper ... not found])
43 fi
44 done
45fi
46AC_MSG_NOTICE([Store-ID rewrite helpers to be built: $STOREID_REWRITE_HELPERS])
47AC_SUBST(STOREID_REWRITE_HELPERS)