AX_BERKELEY_DB([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
This macro tries to find Berkeley DB. It honors MINIMUM-VERSION if given.
If libdb is found, DB_HEADER and DB_LIBS variables are set and ACTION-IF-FOUND shell code is executed if specified. DB_HEADER is set to location of db.h header in quotes (e.g. "db3/db.h") and AC_DEFINE_UNQUOTED is called on it, so that you can type
in your C/C++ code. DB_LIBS is set to linker flags needed to link against the library (e.g. -ldb3.1) and AC_SUBST is called on it.
Download the latest version of ax_berkeley_db.m4 or browse the macro’s revision history.
Copyright © 2008 Vaclav Slavik firstname.lastname@example.org
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.