* ext/dbm/extconf.rb (rb_check): support for GNU dbm 1.8.3.
(-with-dbm-type=gdbm_compat). link against -lgdbm_compat and -lgdbm. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d4298a3c4
commit
c79e877836
@ -1,3 +1,9 @@
|
|||||||
|
Sat Dec 14 01:51:29 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/dbm/extconf.rb (rb_check): support for GNU dbm 1.8.3.
|
||||||
|
(-with-dbm-type=gdbm_compat). link against -lgdbm_compat
|
||||||
|
and -lgdbm.
|
||||||
|
|
||||||
Fri Dec 13 23:42:16 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
Fri Dec 13 23:42:16 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* ext/dbm/extconf.rb (db_check): check existence of the function
|
* ext/dbm/extconf.rb (db_check): check existence of the function
|
||||||
|
@ -10,6 +10,7 @@ $dbm_conf_headers = {
|
|||||||
"db2" => ["db2/db.h", "db2.h", "db.h"],
|
"db2" => ["db2/db.h", "db2.h", "db.h"],
|
||||||
"dbm" => ["ndbm.h"],
|
"dbm" => ["ndbm.h"],
|
||||||
"gdbm" => ["gdbm-ndbm.h", "ndbm.h"],
|
"gdbm" => ["gdbm-ndbm.h", "ndbm.h"],
|
||||||
|
"gdbm_compat" => ["gdbm-ndbm.h", "ndbm.h"],
|
||||||
}
|
}
|
||||||
|
|
||||||
def db_check(db)
|
def db_check(db)
|
||||||
@ -23,6 +24,9 @@ def db_check(db)
|
|||||||
hsearch = "-DDB_DBM_HSEARCH "
|
hsearch = "-DDB_DBM_HSEARCH "
|
||||||
when "gdbm"
|
when "gdbm"
|
||||||
$dbm_conf_have_gdbm = true
|
$dbm_conf_have_gdbm = true
|
||||||
|
when "gdbm_compat"
|
||||||
|
$dbm_conf_have_gdbm = true
|
||||||
|
have_library("gdbm") or return false
|
||||||
end
|
end
|
||||||
|
|
||||||
if have_library(db, db_prefix("dbm_open")) || have_func(db_prefix("dbm_open"))
|
if have_library(db, db_prefix("dbm_open")) || have_func(db_prefix("dbm_open"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user