ax_berkeley_db_cxx
==================

Synopsis
********

     AX_BERKELEY_DB_CXX([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])

Description
***********

This macro tries to find Berkeley DB C++ support. It honors MINIMUM-VERSION if given.

If libdb_cxx is found, DB_CXX_HEADER and DB_CXX_LIBS variables are set and ACTION-IF-FOUND shell code is executed if specified. DB_CXX_HEADER is set to location of db.h header in quotes (e.g. "db3/db_cxx.h") and AC_DEFINE_UNQUOTED is called on it, so that you can type

       #include DB_CXX_HEADER

in your C/C++ code. DB_CXX_LIBS is set to linker flags needed to link against the library (e.g. -ldb3.1_cxx) and AC_SUBST is called on it.

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

       DB_CXX_CPPFLAGS to the include directives required
       DB_CXX_LDFLAGS to the -L flags required

Source Code
***********

Download the latest version of ax_berkeley_db_cxx.m4 (http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_berkeley_db_cxx.m4) or browse the macro's revision history (http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=history;f=m4/ax_berkeley_db_cxx.m4).

License
*******

Copyright © 2008 Vaclav Slavik vaclav.slavik@matfyz.cz
 Copyright © 2011 Stephan Suerken absurd@debian.org
 Copyright © 2014 Kirill A. Korinskiy catap@catap.ru

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.