Mergr etc from github repository.
* ext/etc/extconf.rb: It supports to generate dependency header on standalone gem with github repository. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d303a2c45a
commit
a852002779
@ -41,6 +41,12 @@ have_struct_member('struct passwd', 'pw_expire', 'pwd.h')
|
|||||||
have_struct_member('struct passwd', 'pw_passwd', 'pwd.h')
|
have_struct_member('struct passwd', 'pw_passwd', 'pwd.h')
|
||||||
have_struct_member('struct group', 'gr_passwd', 'grp.h')
|
have_struct_member('struct group', 'gr_passwd', 'grp.h')
|
||||||
|
|
||||||
|
# for https://github.com/ruby/etc
|
||||||
|
srcdir = File.expand_path("..", __FILE__)
|
||||||
|
if !File.exists?("#{srcdir}/constdefs.h")
|
||||||
|
%x[#{RbConfig.ruby} #{srcdir}/mkconstants.rb -o #{srcdir}/constdefs.h]
|
||||||
|
end
|
||||||
|
|
||||||
$distcleanfiles << "constdefs.h"
|
$distcleanfiles << "constdefs.h"
|
||||||
|
|
||||||
create_makefile("etc")
|
create_makefile("etc")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user