* ext/socket/extconf.rb (have_struct_member): don't print checked

result.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2002-03-08 23:47:36 +00:00
parent 301fec6ac9
commit 81930da895
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Sat Mar 9 08:45:58 2002 Tanaka Akira <akr@m17n.org>
* ext/socket/extconf.rb (have_struct_member): don't print checked
result.
Fri Mar 8 12:19:15 2002 Tanaka Akira <akr@m17n.org> Fri Mar 8 12:19:15 2002 Tanaka Akira <akr@m17n.org>
* lib/resolv.rb: use its own thread group for background threads. * lib/resolv.rb: use its own thread group for background threads.

View File

@ -3,8 +3,8 @@ require 'mkmf'
$CPPFLAGS += " -Dss_family=__ss_family -Dss_len=__ss_len" $CPPFLAGS += " -Dss_family=__ss_family -Dss_len=__ss_len"
def have_struct_member(type, member, header=nil) def have_struct_member(type, member, header=nil)
printf "checking for %s.%s... ", type, member #printf "checking for %s.%s... ", type, member
STDOUT.flush #STDOUT.flush
libs = $libs libs = $libs
src = src =
@ -30,11 +30,11 @@ int s = (char *)&((#{type}*)0)->#{member} - (char *)0;
SRC SRC
r = try_link(src, libs) # xxx try_compile is not available. r = try_link(src, libs) # xxx try_compile is not available.
unless r unless r
print "no\n" #print "no\n"
return false return false
end end
$defs.push(format("-DHAVE_ST_%s", member.upcase)) $defs.push(format("-DHAVE_ST_%s", member.upcase))
print "yes\n" #print "yes\n"
return true return true
end end