mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/dbm/extconf.rb: create makefile according to the result of check
for dbm header. fixed: [ruby-dev:29445] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7f0f585f32
commit
eff9686ded
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Sep 4 21:43:57 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/dbm/extconf.rb: create makefile according to the result of check
|
||||||
|
for dbm header. fixed: [ruby-dev:29445]
|
||||||
|
|
||||||
Mon Sep 4 21:39:42 2006 Tadayoshi Funaba <tadf@dotrb.org>
|
Mon Sep 4 21:39:42 2006 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* lib/date.rb, lib/date/format.rb: updated based on date2 3.9.
|
* lib/date.rb, lib/date/format.rb: updated based on date2 3.9.
|
||||||
|
|
|
@ -46,16 +46,16 @@ def db_prefix(func)
|
||||||
end
|
end
|
||||||
|
|
||||||
if dblib
|
if dblib
|
||||||
db_check(dblib)
|
dbm_hdr = db_check(dblib)
|
||||||
else
|
else
|
||||||
for dblib in %w(db db2 db1 dbm gdbm gdbm_compat qdbm)
|
dbm_hdr = %w(db db2 db1 dbm gdbm gdbm_compat qdbm).any? do |dblib|
|
||||||
db_check(dblib) and break
|
db_check(dblib)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
have_header("cdefs.h")
|
have_header("cdefs.h")
|
||||||
have_header("sys/cdefs.h")
|
have_header("sys/cdefs.h")
|
||||||
if /DBM_HDR/ =~ $defs.join(" ") and have_func(db_prefix("dbm_open"))
|
if dbm_hdr and have_func(db_prefix("dbm_open"))
|
||||||
have_func(db_prefix("dbm_clearerr")) unless $dbm_conf_have_gdbm
|
have_func(db_prefix("dbm_clearerr")) unless $dbm_conf_have_gdbm
|
||||||
create_makefile("dbm")
|
create_makefile("dbm")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue