Next: , Previous: , Up: The Macros  





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

  #include DB_HEADER

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.

when specified user-selected spot (via –with-libdb) also sets

  DB_CPPFLAGS to the include directives required
  DB_LDFLAGS to the -L flags required

Source Code

Download the latest version of ax_berkeley_db.m4 or browse the macro’s revision history.


Copyright © 2008 Vaclav Slavik
Copyright © 2014 Kirill A. Korinskiy

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.