net-misc/cfengine-2.0.6 tries to link with db4 if that is available, but it should try to link to db-3. The configure script needs to be changed in that respect.
The dependency was wrong, it should work with db4, but to that extend I had to change the configure script.