Add --with-database=gdbm.
If tdb is installed it will prefer tdb over gdbm. So make it use gdbm.
Feature safe: yes