From: Daniel Berger Date: 2005-02-10T01:35:11+09:00 Subject: mkmf and enum values Hi all, What's the best way to tell if an enum member contains a particular value? My question in particular centers around the idtype_t enum, and I'm writing some code that I want to make cross platform. On Solaris 9, the enum contains values like P_ALL, P_CID, etc. I don't know that all of these exist, or if they have slightly different names, on other platforms. I think in older versions of Linux they were PS_, instead of P_, for example. With a struct, for example, I know you can do something like this: have_struct_member("struct type","member","someheader.h") However, I didn't see anything like a "have_enum_value". Any suggestions? Regards, Dan