dnl
dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
dnl
-dnl $Id: configure.in,v 1.398 2006/03/20 03:44:34 hno Exp $
+dnl $Id: configure.in,v 1.399 2006/03/20 23:03:16 hno Exp $
dnl
dnl
dnl
AC_CONFIG_AUX_DIR(cfgaux)
AM_INIT_AUTOMAKE(squid, 3.0-PRE3-CVS)
AM_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.398 $)dnl
+AC_REVISION($Revision: 1.399 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AM_MAINTAINER_MODE
AC_SUBST(LIB_LDAP)
AC_SUBST(LIB_LBER)
+dnl Check for libdb
+DBLIB=
+AC_CHECK_LIB(dbopen, db, [DBLIB="-ldb"])
+AC_SUBST(DBLIB)
+
dnl System-specific library modifications
dnl
case "$host" in
#
# Makefile for the Squid LDAP authentication helper
#
-# $Id: Makefile.am,v 1.1 2006/03/19 01:11:44 hno Exp $
+# $Id: Makefile.am,v 1.2 2006/03/20 23:03:16 hno Exp $
#
# Uncomment and customize the following to suit your needs:
#
EXTRA_DIST = squid_session.8
squid_session_SOURCES = squid_session.c
-LDADD = -ldb
+LDADD = $(LIBDB}
INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include