I'm trying to build proper option support into wip/am-utils. There is a configure option to am-utils whether to use (n)dbm: apperantly it can live with either gdbm, db1 or built-in dbm functions in libc. What's the correct way to handle this? I.e., given the option is set, how do I find out whether I need to pull-in gdbm?