require 'mkmf'
$LDFLAGS = "-L/usr/local/lib"
have_library("gdbm", "dbm_open") or
  have_library("db", "dbm_open") or
  have_library("dbm", "dbm_open")
if have_func("dbm_open")
  have_func("dbm_clearerr")
  create_makefile("dbm")
end
