Maybe I misunderstand what you're asking for, but isn't Dpathconf the
right way to retrieve this information?
Perhaps it is but I've got qed which wouldn't compile without this #define :) I guess Alan is right and it has something to do with gcc, as I'm using a cross compiler.
--