add checks for berkeley DB code to configure.ac