How to ./configure a built for Raspberry Pi?
You can follow the instructions for Debian at the build docs: 

https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md

For Berkely DB, specifically:

Berkeley DB



It is recommended to use Berkeley DB 4.8. If you have to build it yourself,

you can use the installation script included in contrib/

like so:




./contrib/install_db4.sh `pwd`



from the root of the repository.

Note: You only need Berkeley DB if the wallet is enabled (see Disable-wallet mode).