2015-12-16 00:31:54 -05:00
|
|
|
# frozen_string_literal: false
|
2013-10-01 07:57:02 -04:00
|
|
|
$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"
|
2015-03-24 04:30:15 -04:00
|
|
|
|
|
|
|
headers = %w[sys/param.h sys/mount.h sys/vfs.h].select {|h| have_header(h)}
|
|
|
|
if have_type("struct statfs", headers)
|
|
|
|
have_struct_member("struct statfs", "f_fstypename", headers)
|
|
|
|
have_struct_member("struct statfs", "f_type", headers)
|
|
|
|
end
|
|
|
|
|
2015-05-03 09:54:54 -04:00
|
|
|
headers = %w[sys/statvfs.h].select {|h| have_header(h)}
|
2015-03-24 04:30:15 -04:00
|
|
|
if have_type("struct statvfs", headers)
|
|
|
|
have_struct_member("struct statvfs", "f_fstypename", headers)
|
|
|
|
have_struct_member("struct statvfs", "f_basetype", headers)
|
|
|
|
have_struct_member("struct statvfs", "f_type", headers)
|
|
|
|
end
|
|
|
|
|
2013-10-01 07:57:02 -04:00
|
|
|
$srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")]
|
|
|
|
inits = $srcs.map {|s| File.basename(s, ".*")}
|
|
|
|
inits.delete("init")
|
|
|
|
inits.map! {|s|"X(#{s})"}
|
|
|
|
$defs << "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\""
|
|
|
|
create_makefile("-test-/file")
|