]>
Commit | Line | Data |
---|---|---|
b8ae064d | 1 | ## Copyright (C) 1996-2023 The Squid Software Foundation and contributors |
acd207af 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 | ||
8 | dnl check for --with-tdb option | |
4f3f75b7 AJ |
9 | AC_DEFUN_ONCE([SQUID_CHECK_LIBTDB],[ |
10 | SQUID_AUTO_LIB(tdb,[Samba TrivialDB],[LIBTDB]) | |
11 | SQUID_CHECK_LIB_WORKS(tdb,[ | |
acd207af AJ |
12 | SQUID_STATE_SAVE(squid_libtdb_state) |
13 | LIBS="$LIBS $LIBTDB_PATH" | |
4f3f75b7 AJ |
14 | PKG_CHECK_MODULES([LIBTDB],[tdb],[:],[:]) |
15 | CPPFLAGS="$CPPFLAGS $LIBTDB_CFLAGS" | |
acd207af AJ |
16 | AC_CHECK_HEADERS([sys/stat.h tdb.h],,,[ |
17 | #if HAVE_SYS_STAT_H | |
18 | #include <sys/stat.h> | |
19 | #endif | |
20 | ]) | |
21 | SQUID_STATE_ROLLBACK(squid_libtdb_state) #de-pollute LIBS | |
acd207af | 22 | ]) |
acd207af | 23 | ]) |