Many people compile BerkeleyDb 4.8 themselves and understandably don’t want to install it system-wide.
I’d suggest the following names:
0--with-bdb-libdir=
1--with-bdb-includedir=
One can always override LDFLAGS and CFLAGS to find them manually, don’t forget that you need to manualy specify optimization flags in that case ie:
0./configure LDFLAGS="-L/path/to/libs" CPPFLAGS="-I/path/to/includes -O2"
But it’d be easier if there was a flag for this as it is very common now.
Alternative would be BDB_CFLAGS
and BDB_LIBS
, analogous to SSL_CFLAGS
and SSL_LIBS
.