]>
Commit | Line | Data |
---|---|---|
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 |
8 | SQUID_CHECK_LIBTDB |
9 | if test "$with_tdb" != "no"; then | |
b65d2165 | 10 | BUILD_HELPER="session" |
acd207af AJ |
11 | fi |
12 | ||
13 | LIBBDB_LIBS= | |
14 | AH_TEMPLATE(USE_BERKLEYDB,[BerkleyDB support is available]) | |
15 | if 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 | ]) | |
26 | fi | |
27 | AC_SUBST(LIBBDB_LIBS) |