Is there an ExtUtils::*
or Module::Build
(or other) analog to Ruby's mkmf.have_struct_member
?
I'd like to do something like (in the manner of a hints/ file):
....
if struct_has_member("msghdr", "msg_accrights") {
$self->{CCFLAGS} = join(' ', $self->{CCFLAGS}, "-DTRY_ACCRIGHTS_NOT_CMSG");
}
...
Config.pm
doesn't track the specific information I'm looking for, and ExtUtils::FindFunctions
didn't seem quite appropriate here...