1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/dbm/extconf.rb (db_check): check existence of the function

in the specified library before checking it in libc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2002-12-13 14:54:24 +00:00
parent 1d15fa691a
commit 3d4298a3c4
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Dec 13 23:42:16 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/dbm/extconf.rb (db_check): check existence of the function
in the specified library before checking it in libc.
Fri Dec 13 12:33:22 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net> Fri Dec 13 12:33:22 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* parse.y (expr): rescue clause was ignored. * parse.y (expr): rescue clause was ignored.

View file

@ -25,7 +25,7 @@ def db_check(db)
$dbm_conf_have_gdbm = true $dbm_conf_have_gdbm = true
end end
if have_func(db_prefix("dbm_open")) || have_library(db, db_prefix("dbm_open")) if have_library(db, db_prefix("dbm_open")) || have_func(db_prefix("dbm_open"))
for hdr in $dbm_conf_headers.fetch(db, ["ndbm.h"]) for hdr in $dbm_conf_headers.fetch(db, ["ndbm.h"])
if have_header(hdr.dup) if have_header(hdr.dup)
$CFLAGS += " " + hsearch + "-DDBM_HDR='<"+hdr+">'" $CFLAGS += " " + hsearch + "-DDBM_HDR='<"+hdr+">'"