mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/dbm/extconf.rb: fix support for *BSD and set $CFLAGS
properly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
79f2ee2f04
commit
dcd6223c64
2 changed files with 8 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri May 25 00:53:41 2001 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* ext/dbm/extconf.rb: fix support for *BSD and set $CFLAGS
|
||||
properly.
|
||||
|
||||
Thu May 24 16:08:21 2001 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* mkconfig.rb: autoconf 2.50 support.
|
||||
|
|
|
@ -6,7 +6,7 @@ dblib = with_config("dbm-type", nil)
|
|||
|
||||
$dbm_conf_headers = {
|
||||
"db" => ["db.h"],
|
||||
"db1" => ["db1/ndbm.h", "db1.h"],
|
||||
"db1" => ["db1/ndbm.h", "db1.h", "ndbm.h"],
|
||||
"db2" => ["db2/db.h", "db2.h", "db.h"],
|
||||
"dbm" => ["ndbm.h"],
|
||||
"gdbm" => ["gdbm-ndbm.h", "gdbm.h"],
|
||||
|
@ -28,12 +28,10 @@ def db_check(db)
|
|||
if have_func(db_prefix("dbm_open")) || have_library(db, db_prefix("dbm_open"))
|
||||
for hdr in $dbm_conf_headers.fetch(db, ["ndbm.h"])
|
||||
if have_header(hdr.dup)
|
||||
$CFLAGS = "-DDBM_HDR='<"+hdr+">'"
|
||||
break
|
||||
$CFLAGS += " " + hsearch + "-DDBM_HDR='<"+hdr+">'"
|
||||
return true
|
||||
end
|
||||
end
|
||||
$CFLAGS = hsearch + "-DDBM_HDR='<"+hdr+">'"
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue