]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/external/session/required.m4
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / external / session / required.m4
CommitLineData
f6e9a3ee 1## Copyright (C) 1996-2019 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
acd207af
AJ
8SQUID_CHECK_LIBTDB
9if test "$with_tdb" != "no"; then
b65d2165 10 BUILD_HELPER="session"
acd207af
AJ
11fi
12
13LIBBDB_LIBS=
14AH_TEMPLATE(USE_BERKLEYDB,[BerkleyDB support is available])
15if test "x$with_tdb" = "xno"; then
16 AC_CHECK_HEADERS(db.h,[
17 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <db.h>]],[[
18 DB_ENV *db_env = nullptr;
19 db_env_create(&db_env, 0);
20 ]])],[
21 AC_DEFINE_UNQUOTED(USE_BERKLEYDB, HAVE_DB_H, [BerkleyDB support is available])
22 BUILD_HELPER="session"
23 LIBBDB_LIBS="-ldb"
24 ],[])
25 ])
26fi
27AC_SUBST(LIBBDB_LIBS)