]> git.ipfire.org Git - thirdparty/squid.git/blob - helpers/log_daemon/modules.m4
Boilerplate: update copyright blurbs on Squid helpers
[thirdparty/squid.git] / helpers / log_daemon / modules.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 # 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_log_daemon_helpers list containing double entries.
12
13 #define list of modules to build
14 if test "x${enable_log_daemon_helpers:=yes}" = "xyes" ;then
15 enable_log_daemon_helpers=""
16 SQUID_LOOK_FOR_MODULES([$srcdir/helpers/log_daemon],[enable_log_daemon_helpers])
17 fi
18 if test "x$enable_log_daemon_helpers" = "xnone" ; then
19 enable_log_daemon_helpers=""
20 fi
21
22 LOG_DAEMON_HELPERS=""
23 enable_log_daemon_helpers="`echo $enable_log_daemon_helpers| sed -e 's/,/ /g;s/ */ /g'`"
24 if test "x$enable_log_daemon_helpers" != "xno"; then
25 for helper in $enable_log_daemon_helpers ; do
26 dir="$srcdir/helpers/log_daemon/$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" = "xDB" ; then
31 m4_include([helpers/log_daemon/DB/required.m4])
32
33 elif test "x$helper" = "xfile" ; then
34 m4_include([helpers/log_daemon/file/required.m4])
35
36 # modules not yet converted to autoconf macros (or third party drop-in's)
37 elif test -f "$dir/config.test" && sh "$dir/config.test" "$squid_host_os"; then
38 BUILD_HELPER="$helper"
39 fi
40
41 if test -d "$srcdir/helpers/log_daemon/$helper"; then
42 if test "$BUILD_HELPER" != "$helper"; then
43 AC_MSG_NOTICE([Log daemon helper $helper ... found but cannot be built])
44 else
45 LOG_DAEMON_HELPERS="$LOG_DAEMON_HELPERS $BUILD_HELPER"
46 fi
47 else
48 AC_MSG_ERROR([Log daemon helper $helper ... not found])
49 fi
50 done
51 fi
52 AC_MSG_NOTICE([Log daemon helpers to be built: $LOG_DAEMON_HELPERS])
53 AC_SUBST(LOG_DAEMON_HELPERS)