I believe the Right Way to do this is to use something like autoconf.
If you want to hack it, try calling uname and putting the result in a symbol. You can then parse out the relevant parts
I believe the Right Way to do this is to use something like autoconf.
If you want to hack it, try calling uname and putting the result in a symbol. You can then parse out the relevant parts