> On 03/02/2008, at 8:29 PM, Lyndon Nerenberg wrote: > > > Autoconf is nothing but a stinking rotten corpse that lives only > > because the cult of GNU adherents cannot (no, refuse to) grok the > > concept of POSIX. > > the problem with POSIX is that it doesn't specify enough. > > for instance, if you have to write some code to list the network > interfaces on a (*nix) machine, you have some that provide a specific > function to do so (getifaddrs), some where you should use > SIOCGIFCONF, another where SIOCGLIFCONF is better and one where your > best bet is to hope the /proc filesystem is mounted and read from that. > > POSIX doesn't help for things like this. and autoconf, for all its > failings, does.
sometimes. you should really look at how russ did p9p. he's delt with with exactly this problem by writing a small amount of code and simply detecting the os in the makefile. there is very little os-dependent code in p9p and it is easy to follow what gets compiled when. (for those following along at home, src/libip/[A-Z]*.c) - erik
