1999-01-20 07:59:39 +03:00
|
|
|
require 'mkmf'
|
1999-08-24 12:21:56 +04:00
|
|
|
|
1999-08-13 09:37:52 +04:00
|
|
|
dir_config("dbm")
|
1999-08-24 12:21:56 +04:00
|
|
|
if have_library("gdbm", "dbm_open")
|
|
|
|
gdbm = true
|
|
|
|
end
|
|
|
|
gdbm or have_library("db", "dbm_open") or have_library("dbm", "dbm_open")
|
1999-08-13 09:37:52 +04:00
|
|
|
have_header("cdefs.h")
|
2000-09-12 09:37:38 +04:00
|
|
|
have_header("sys/cdefs.h")
|
1999-08-13 09:37:52 +04:00
|
|
|
if have_header("ndbm.h") and have_func("dbm_open")
|
1999-08-24 12:21:56 +04:00
|
|
|
have_func("dbm_clearerr") unless gdbm
|
1998-01-16 15:13:05 +03:00
|
|
|
create_makefile("dbm")
|
|
|
|
end
|